ssr-emotion-react 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,15 @@
1
1
  import { createRequire } from 'module';const require = createRequire(import.meta.url);
2
2
  import{a as Ir,b as Gr,c as oy,d as s,e as u,f as E,g as w,h as D,i as uP}from"./chunk-QRCR45N4.js";var Eg=Gr(_m=>{"use strict";_m.removeLeadingAndTrailingHTTPWhitespace=l=>l.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");_m.removeTrailingHTTPWhitespace=l=>l.replace(/[ \t\n\r]+$/u,"");_m.isHTTPWhitespaceChar=l=>l===" "||l===" "||l===`
3
- `||l==="\r";_m.solelyContainsHTTPTokenCodePoints=l=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(l);_m.soleyContainsHTTPQuotedStringTokenCodePoints=l=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(l);_m.asciiLowercase=l=>l.replace(/[A-Z]/ug,e=>e.toLowerCase());_m.collectAnHTTPQuotedString=(l,e)=>{let t="";for(e++;;){for(;e<l.length&&l[e]!=='"'&&l[e]!=="\\";)t+=l[e],++e;if(e>=l.length)break;let r=l[e];if(++e,r==="\\"){if(e>=l.length){t+="\\";break}t+=l[e],++e}else break}return[t,e]}});var OL=Gr((Uit,DL)=>{"use strict";var{asciiLowercase:WS,solelyContainsHTTPTokenCodePoints:bG,soleyContainsHTTPQuotedStringTokenCodePoints:gG}=Eg();DL.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=WS(String(e)),this._map.get(e)}has(e){return e=WS(String(e)),this._map.has(e)}set(e,t){if(e=WS(String(e)),t=String(t),!bG(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!gG(t))throw new Error(`Invalid MIME type parameter value "${t}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,t)}clear(){this._map.clear()}delete(e){return e=WS(String(e)),this._map.delete(e)}forEach(e,t){this._map.forEach(e,t)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var GL=Gr((Git,UL)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:fG,removeTrailingHTTPWhitespace:VL,isHTTPWhitespaceChar:SG,solelyContainsHTTPTokenCodePoints:QA,soleyContainsHTTPQuotedStringTokenCodePoints:PG,asciiLowercase:$A,collectAnHTTPQuotedString:AG}=Eg();UL.exports=l=>{l=fG(l);let e=0,t="";for(;e<l.length&&l[e]!=="/";)t+=l[e],++e;if(t.length===0||!QA(t)||e>=l.length)return null;++e;let r="";for(;e<l.length&&l[e]!==";";)r+=l[e],++e;if(r=VL(r),r.length===0||!QA(r))return null;let o={type:$A(t),subtype:$A(r),parameters:new Map};for(;e<l.length;){for(++e;SG(l[e]);)++e;let i="";for(;e<l.length&&l[e]!==";"&&l[e]!=="=";)i+=l[e],++e;if(i=$A(i),e<l.length){if(l[e]===";")continue;++e}let n=null;if(l[e]==='"')for([n,e]=AG(l,e);e<l.length&&l[e]!==";";)++e;else{for(n="";e<l.length&&l[e]!==";";)n+=l[e],++e;if(n=VL(n),n==="")continue}i.length>0&&QA(i)&&PG(n)&&!o.parameters.has(i)&&o.parameters.set(i,n)}return o}});var HL=Gr((_it,_L)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:wG}=Eg();_L.exports=l=>{let e=`${l.type}/${l.subtype}`;if(l.parameters.size===0)return e;for(let[t,r]of l.parameters)e+=";",e+=t,e+="=",(!wG(r)||r.length===0)&&(r=r.replace(/(["\\])/ug,"\\$1"),r=`"${r}"`),e+=r;return e}});var KL=Gr((Wit,qL)=>{"use strict";var EG=OL(),xG=GL(),vG=HL(),{asciiLowercase:WL,solelyContainsHTTPTokenCodePoints:YL}=Eg();qL.exports=class{constructor(e){e=String(e);let t=xG(e);if(t===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=t.type,this._subtype=t.subtype,this._parameters=new EG(t.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=WL(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!YL(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=WL(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!YL(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return vG(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var ya=Gr((ust,i0)=>{"use strict";var r0=["nodebuffer","arraybuffer","fragments"],o0=typeof Blob<"u";o0&&r0.push("blob");i0.exports={BINARY_TYPES:r0,CLOSE_TIMEOUT:3e4,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:o0,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}});var Cg=Gr((pst,YS)=>{"use strict";var{EMPTY_BUFFER:kG}=ya(),ew=Buffer[Symbol.species];function IG(l,e){if(l.length===0)return kG;if(l.length===1)return l[0];let t=Buffer.allocUnsafe(e),r=0;for(let o=0;o<l.length;o++){let i=l[o];t.set(i,r),r+=i.length}return r<e?new ew(t.buffer,t.byteOffset,r):t}function s0(l,e,t,r,o){for(let i=0;i<o;i++)t[r+i]=l[i]^e[i&3]}function n0(l,e){for(let t=0;t<l.length;t++)l[t]^=e[t&3]}function MG(l){return l.length===l.buffer.byteLength?l.buffer:l.buffer.slice(l.byteOffset,l.byteOffset+l.length)}function rw(l){if(rw.readOnly=!0,Buffer.isBuffer(l))return l;let e;return l instanceof ArrayBuffer?e=new ew(l):ArrayBuffer.isView(l)?e=new ew(l.buffer,l.byteOffset,l.byteLength):(e=Buffer.from(l),rw.readOnly=!1),e}YS.exports={concat:IG,mask:s0,toArrayBuffer:MG,toBuffer:rw,unmask:n0};if(!process.env.WS_NO_BUFFER_UTIL)try{let l=Ir("bufferutil");YS.exports.mask=function(e,t,r,o,i){i<48?s0(e,t,r,o,i):l.mask(e,t,r,o,i)},YS.exports.unmask=function(e,t){e.length<32?n0(e,t):l.unmask(e,t)}}catch{}});var m0=Gr((hst,a0)=>{"use strict";var l0=Symbol("kDone"),ow=Symbol("kRun"),iw=class{constructor(e){this[l0]=()=>{this.pending--,this[ow]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[ow]()}[ow](){if(this.pending!==this.concurrency&&this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[l0])}}};a0.exports=iw});var Lg=Gr((cst,h0)=>{"use strict";var Ng=Ir("zlib"),y0=Cg(),RG=m0(),{kStatusCode:u0}=ya(),FG=Buffer[Symbol.species],BG=Buffer.from([0,0,255,255]),KS=Symbol("permessage-deflate"),ua=Symbol("total-length"),sc=Symbol("callback"),Ym=Symbol("buffers"),nc=Symbol("error"),qS,sw=class{constructor(e,t,r){if(this._maxPayload=r|0,this._options=e||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._isServer=!!t,this._deflate=null,this._inflate=null,this.params=null,!qS){let o=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;qS=new RG(o)}}static get extensionName(){return"permessage-deflate"}offer(){let e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits==null&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){let e=this._deflate[sc];this._deflate.close(),this._deflate=null,e&&e(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){let t=this._options,r=e.find(o=>!(t.serverNoContextTakeover===!1&&o.server_no_context_takeover||o.server_max_window_bits&&(t.serverMaxWindowBits===!1||typeof t.serverMaxWindowBits=="number"&&t.serverMaxWindowBits>o.server_max_window_bits)||typeof t.clientMaxWindowBits=="number"&&!o.client_max_window_bits));if(!r)throw new Error("None of the extension offers can be accepted");return t.serverNoContextTakeover&&(r.server_no_context_takeover=!0),t.clientNoContextTakeover&&(r.client_no_context_takeover=!0),typeof t.serverMaxWindowBits=="number"&&(r.server_max_window_bits=t.serverMaxWindowBits),typeof t.clientMaxWindowBits=="number"?r.client_max_window_bits=t.clientMaxWindowBits:(r.client_max_window_bits===!0||t.clientMaxWindowBits===!1)&&delete r.client_max_window_bits,r}acceptAsClient(e){let t=e[0];if(this._options.clientNoContextTakeover===!1&&t.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(!t.client_max_window_bits)typeof this._options.clientMaxWindowBits=="number"&&(t.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits=="number"&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"');return t}normalizeParams(e){return e.forEach(t=>{Object.keys(t).forEach(r=>{let o=t[r];if(o.length>1)throw new Error(`Parameter "${r}" must have only a single value`);if(o=o[0],r==="client_max_window_bits"){if(o!==!0){let i=+o;if(!Number.isInteger(i)||i<8||i>15)throw new TypeError(`Invalid value for parameter "${r}": ${o}`);o=i}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${r}": ${o}`)}else if(r==="server_max_window_bits"){let i=+o;if(!Number.isInteger(i)||i<8||i>15)throw new TypeError(`Invalid value for parameter "${r}": ${o}`);o=i}else if(r==="client_no_context_takeover"||r==="server_no_context_takeover"){if(o!==!0)throw new TypeError(`Invalid value for parameter "${r}": ${o}`)}else throw new Error(`Unknown parameter "${r}"`);t[r]=o})}),e}decompress(e,t,r){qS.add(o=>{this._decompress(e,t,(i,n)=>{o(),r(i,n)})})}compress(e,t,r){qS.add(o=>{this._compress(e,t,(i,n)=>{o(),r(i,n)})})}_decompress(e,t,r){let o=this._isServer?"client":"server";if(!this._inflate){let i=`${o}_max_window_bits`,n=typeof this.params[i]!="number"?Ng.Z_DEFAULT_WINDOWBITS:this.params[i];this._inflate=Ng.createInflateRaw({...this._options.zlibInflateOptions,windowBits:n}),this._inflate[KS]=this,this._inflate[ua]=0,this._inflate[Ym]=[],this._inflate.on("error",OG),this._inflate.on("data",p0)}this._inflate[sc]=r,this._inflate.write(e),t&&this._inflate.write(BG),this._inflate.flush(()=>{let i=this._inflate[nc];if(i){this._inflate.close(),this._inflate=null,r(i);return}let n=y0.concat(this._inflate[Ym],this._inflate[ua]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[ua]=0,this._inflate[Ym]=[],t&&this.params[`${o}_no_context_takeover`]&&this._inflate.reset()),r(null,n)})}_compress(e,t,r){let o=this._isServer?"server":"client";if(!this._deflate){let i=`${o}_max_window_bits`,n=typeof this.params[i]!="number"?Ng.Z_DEFAULT_WINDOWBITS:this.params[i];this._deflate=Ng.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:n}),this._deflate[ua]=0,this._deflate[Ym]=[],this._deflate.on("data",DG)}this._deflate[sc]=r,this._deflate.write(e),this._deflate.flush(Ng.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let i=y0.concat(this._deflate[Ym],this._deflate[ua]);t&&(i=new FG(i.buffer,i.byteOffset,i.length-4)),this._deflate[sc]=null,this._deflate[ua]=0,this._deflate[Ym]=[],t&&this.params[`${o}_no_context_takeover`]&&this._deflate.reset(),r(null,i)})}};h0.exports=sw;function DG(l){this[Ym].push(l),this[ua]+=l.length}function p0(l){if(this[ua]+=l.length,this[KS]._maxPayload<1||this[ua]<=this[KS]._maxPayload){this[Ym].push(l);return}this[nc]=new RangeError("Max payload size exceeded"),this[nc].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[nc][u0]=1009,this.removeListener("data",p0),this.reset()}function OG(l){if(this[KS]._inflate=null,this[nc]){this[sc](this[nc]);return}l[u0]=1007,this[sc](l)}});var lc=Gr((dst,jS)=>{"use strict";var{isUtf8:c0}=Ir("buffer"),{hasBlob:VG}=ya(),UG=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function GG(l){return l>=1e3&&l<=1014&&l!==1004&&l!==1005&&l!==1006||l>=3e3&&l<=4999}function nw(l){let e=l.length,t=0;for(;t<e;)if((l[t]&128)===0)t++;else if((l[t]&224)===192){if(t+1===e||(l[t+1]&192)!==128||(l[t]&254)===192)return!1;t+=2}else if((l[t]&240)===224){if(t+2>=e||(l[t+1]&192)!==128||(l[t+2]&192)!==128||l[t]===224&&(l[t+1]&224)===128||l[t]===237&&(l[t+1]&224)===160)return!1;t+=3}else if((l[t]&248)===240){if(t+3>=e||(l[t+1]&192)!==128||(l[t+2]&192)!==128||(l[t+3]&192)!==128||l[t]===240&&(l[t+1]&240)===128||l[t]===244&&l[t+1]>143||l[t]>244)return!1;t+=4}else return!1;return!0}function _G(l){return VG&&typeof l=="object"&&typeof l.arrayBuffer=="function"&&typeof l.type=="string"&&typeof l.stream=="function"&&(l[Symbol.toStringTag]==="Blob"||l[Symbol.toStringTag]==="File")}jS.exports={isBlob:_G,isValidStatusCode:GG,isValidUTF8:nw,tokenChars:UG};if(c0)jS.exports.isValidUTF8=function(l){return l.length<24?nw(l):c0(l)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let l=Ir("utf-8-validate");jS.exports.isValidUTF8=function(e){return e.length<32?nw(e):l(e)}}catch{}});var uw=Gr((bst,A0)=>{"use strict";var{Writable:HG}=Ir("stream"),d0=Lg(),{BINARY_TYPES:WG,EMPTY_BUFFER:b0,kStatusCode:YG,kWebSocket:qG}=ya(),{concat:lw,toArrayBuffer:KG,unmask:jG}=Cg(),{isValidStatusCode:QG,isValidUTF8:g0}=lc(),QS=Buffer[Symbol.species],us=0,f0=1,S0=2,P0=3,aw=4,mw=5,$S=6,yw=class extends HG{constructor(e={}){super(),this._allowSynchronousEvents=e.allowSynchronousEvents!==void 0?e.allowSynchronousEvents:!0,this._binaryType=e.binaryType||WG[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxPayload=e.maxPayload|0,this._skipUTF8Validation=!!e.skipUTF8Validation,this[qG]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=us}_write(e,t,r){if(this._opcode===8&&this._state==us)return r();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(r)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){let r=this._buffers[0];return this._buffers[0]=new QS(r.buffer,r.byteOffset+e,r.length-e),new QS(r.buffer,r.byteOffset,e)}let t=Buffer.allocUnsafe(e);do{let r=this._buffers[0],o=t.length-e;e>=r.length?t.set(this._buffers.shift(),o):(t.set(new Uint8Array(r.buffer,r.byteOffset,e),o),this._buffers[0]=new QS(r.buffer,r.byteOffset+e,r.length-e)),e-=r.length}while(e>0);return t}startLoop(e){this._loop=!0;do switch(this._state){case us:this.getInfo(e);break;case f0:this.getPayloadLength16(e);break;case S0:this.getPayloadLength64(e);break;case P0:this.getMask();break;case aw:this.getData(e);break;case mw:case $S:this._loop=!1;return}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2){this._loop=!1;return}let t=this.consume(2);if((t[0]&48)!==0){let o=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");e(o);return}let r=(t[0]&64)===64;if(r&&!this._extensions[d0.extensionName]){let o=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(o);return}if(this._fin=(t[0]&128)===128,this._opcode=t[0]&15,this._payloadLength=t[1]&127,this._opcode===0){if(r){let o=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(o);return}if(!this._fragmented){let o=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");e(o);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let o=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(o);return}this._compressed=r}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let o=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");e(o);return}if(r){let o=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(o);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let o=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");e(o);return}}else{let o=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(o);return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(t[1]&128)===128,this._isServer){if(!this._masked){let o=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");e(o);return}}else if(this._masked){let o=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");e(o);return}this._payloadLength===126?this._state=f0:this._payloadLength===127?this._state=S0:this.haveLength(e)}getPayloadLength16(e){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e)}getPayloadLength64(e){if(this._bufferedBytes<8){this._loop=!1;return}let t=this.consume(8),r=t.readUInt32BE(0);if(r>Math.pow(2,21)-1){let o=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");e(o);return}this._payloadLength=r*Math.pow(2,32)+t.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){let t=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");e(t);return}this._masked?this._state=P0:this._state=aw}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=aw}getData(e){let t=b0;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}t=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0&&jG(t,this._mask)}if(this._opcode>7){this.controlMessage(t,e);return}if(this._compressed){this._state=mw,this.decompress(t,e);return}t.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(t)),this.dataMessage(e)}decompress(e,t){this._extensions[d0.extensionName].decompress(e,this._fin,(o,i)=>{if(o)return t(o);if(i.length){if(this._messageLength+=i.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let n=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");t(n);return}this._fragments.push(i)}this.dataMessage(t),this._state===us&&this.startLoop(t)})}dataMessage(e){if(!this._fin){this._state=us;return}let t=this._messageLength,r=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let o;this._binaryType==="nodebuffer"?o=lw(r,t):this._binaryType==="arraybuffer"?o=KG(lw(r,t)):this._binaryType==="blob"?o=new Blob(r):o=r,this._allowSynchronousEvents?(this.emit("message",o,!0),this._state=us):(this._state=$S,setImmediate(()=>{this.emit("message",o,!0),this._state=us,this.startLoop(e)}))}else{let o=lw(r,t);if(!this._skipUTF8Validation&&!g0(o)){let i=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");e(i);return}this._state===mw||this._allowSynchronousEvents?(this.emit("message",o,!1),this._state=us):(this._state=$S,setImmediate(()=>{this.emit("message",o,!1),this._state=us,this.startLoop(e)}))}}controlMessage(e,t){if(this._opcode===8){if(e.length===0)this._loop=!1,this.emit("conclude",1005,b0),this.end();else{let r=e.readUInt16BE(0);if(!QG(r)){let i=this.createError(RangeError,`invalid status code ${r}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");t(i);return}let o=new QS(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!g0(o)){let i=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");t(i);return}this._loop=!1,this.emit("conclude",r,o),this.end()}this._state=us;return}this._allowSynchronousEvents?(this.emit(this._opcode===9?"ping":"pong",e),this._state=us):(this._state=$S,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",e),this._state=us,this.startLoop(t)}))}createError(e,t,r,o,i){this._loop=!1,this._errored=!0;let n=new e(r?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(n,this.createError),n.code=i,n[YG]=o,n}};A0.exports=yw});var cw=Gr((fst,x0)=>{"use strict";var{Duplex:gst}=Ir("stream"),{randomFillSync:$G}=Ir("crypto"),w0=Lg(),{EMPTY_BUFFER:XG,kWebSocket:zG,NOOP:JG}=ya(),{isBlob:ac,isValidStatusCode:ZG}=lc(),{mask:E0,toBuffer:lu}=Cg(),ps=Symbol("kByteLength"),t_=Buffer.alloc(4),XS=8*1024,au,mc=XS,Ys=0,e_=1,r_=2,pw=class l{constructor(e,t,r){this._extensions=t||{},r&&(this._generateMask=r,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=Ys,this.onerror=JG,this[zG]=void 0}static frame(e,t){let r,o=!1,i=2,n=!1;t.mask&&(r=t.maskBuffer||t_,t.generateMask?t.generateMask(r):(mc===XS&&(au===void 0&&(au=Buffer.alloc(XS)),$G(au,0,XS),mc=0),r[0]=au[mc++],r[1]=au[mc++],r[2]=au[mc++],r[3]=au[mc++]),n=(r[0]|r[1]|r[2]|r[3])===0,i=6);let a;typeof e=="string"?(!t.mask||n)&&t[ps]!==void 0?a=t[ps]:(e=Buffer.from(e),a=e.length):(a=e.length,o=t.mask&&t.readOnly&&!n);let y=a;a>=65536?(i+=8,y=127):a>125&&(i+=2,y=126);let p=Buffer.allocUnsafe(o?a+i:i);return p[0]=t.fin?t.opcode|128:t.opcode,t.rsv1&&(p[0]|=64),p[1]=y,y===126?p.writeUInt16BE(a,2):y===127&&(p[2]=p[3]=0,p.writeUIntBE(a,4,6)),t.mask?(p[1]|=128,p[i-4]=r[0],p[i-3]=r[1],p[i-2]=r[2],p[i-1]=r[3],n?[p,e]:o?(E0(e,r,p,i,a),[p]):(E0(e,r,e,0,a),[p,e])):[p,e]}close(e,t,r,o){let i;if(e===void 0)i=XG;else{if(typeof e!="number"||!ZG(e))throw new TypeError("First argument must be a valid error code number");if(t===void 0||!t.length)i=Buffer.allocUnsafe(2),i.writeUInt16BE(e,0);else{let a=Buffer.byteLength(t);if(a>123)throw new RangeError("The message must not be greater than 123 bytes");i=Buffer.allocUnsafe(2+a),i.writeUInt16BE(e,0),typeof t=="string"?i.write(t,2):i.set(t,2)}}let n={[ps]:i.length,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._state!==Ys?this.enqueue([this.dispatch,i,!1,n,o]):this.sendFrame(l.frame(i,n),o)}ping(e,t,r){let o,i;if(typeof e=="string"?(o=Buffer.byteLength(e),i=!1):ac(e)?(o=e.size,i=!1):(e=lu(e),o=e.length,i=lu.readOnly),o>125)throw new RangeError("The data size must not be greater than 125 bytes");let n={[ps]:o,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:9,readOnly:i,rsv1:!1};ac(e)?this._state!==Ys?this.enqueue([this.getBlobData,e,!1,n,r]):this.getBlobData(e,!1,n,r):this._state!==Ys?this.enqueue([this.dispatch,e,!1,n,r]):this.sendFrame(l.frame(e,n),r)}pong(e,t,r){let o,i;if(typeof e=="string"?(o=Buffer.byteLength(e),i=!1):ac(e)?(o=e.size,i=!1):(e=lu(e),o=e.length,i=lu.readOnly),o>125)throw new RangeError("The data size must not be greater than 125 bytes");let n={[ps]:o,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:10,readOnly:i,rsv1:!1};ac(e)?this._state!==Ys?this.enqueue([this.getBlobData,e,!1,n,r]):this.getBlobData(e,!1,n,r):this._state!==Ys?this.enqueue([this.dispatch,e,!1,n,r]):this.sendFrame(l.frame(e,n),r)}send(e,t,r){let o=this._extensions[w0.extensionName],i=t.binary?2:1,n=t.compress,a,y;typeof e=="string"?(a=Buffer.byteLength(e),y=!1):ac(e)?(a=e.size,y=!1):(e=lu(e),a=e.length,y=lu.readOnly),this._firstFragment?(this._firstFragment=!1,n&&o&&o.params[o._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(n=a>=o._threshold),this._compress=n):(n=!1,i=0),t.fin&&(this._firstFragment=!0);let p={[ps]:a,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:i,readOnly:y,rsv1:n};ac(e)?this._state!==Ys?this.enqueue([this.getBlobData,e,this._compress,p,r]):this.getBlobData(e,this._compress,p,r):this._state!==Ys?this.enqueue([this.dispatch,e,this._compress,p,r]):this.dispatch(e,this._compress,p,r)}getBlobData(e,t,r,o){this._bufferedBytes+=r[ps],this._state=r_,e.arrayBuffer().then(i=>{if(this._socket.destroyed){let a=new Error("The socket was closed while the blob was being read");process.nextTick(hw,this,a,o);return}this._bufferedBytes-=r[ps];let n=lu(i);t?this.dispatch(n,t,r,o):(this._state=Ys,this.sendFrame(l.frame(n,r),o),this.dequeue())}).catch(i=>{process.nextTick(o_,this,i,o)})}dispatch(e,t,r,o){if(!t){this.sendFrame(l.frame(e,r),o);return}let i=this._extensions[w0.extensionName];this._bufferedBytes+=r[ps],this._state=e_,i.compress(e,r.fin,(n,a)=>{if(this._socket.destroyed){let y=new Error("The socket was closed while data was being compressed");hw(this,y,o);return}this._bufferedBytes-=r[ps],this._state=Ys,r.readOnly=!1,this.sendFrame(l.frame(a,r),o),this.dequeue()})}dequeue(){for(;this._state===Ys&&this._queue.length;){let e=this._queue.shift();this._bufferedBytes-=e[3][ps],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][ps],this._queue.push(e)}sendFrame(e,t){e.length===2?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}};x0.exports=pw;function hw(l,e,t){typeof t=="function"&&t(e);for(let r=0;r<l._queue.length;r++){let o=l._queue[r],i=o[o.length-1];typeof i=="function"&&i(e)}}function o_(l,e,t){hw(l,e,t),l.onerror(e)}});var R0=Gr((Sst,M0)=>{"use strict";var{kForOnEventAttribute:kg,kListener:dw}=ya(),v0=Symbol("kCode"),T0=Symbol("kData"),C0=Symbol("kError"),N0=Symbol("kMessage"),L0=Symbol("kReason"),yc=Symbol("kTarget"),k0=Symbol("kType"),I0=Symbol("kWasClean"),pa=class{constructor(e){this[yc]=null,this[k0]=e}get target(){return this[yc]}get type(){return this[k0]}};Object.defineProperty(pa.prototype,"target",{enumerable:!0});Object.defineProperty(pa.prototype,"type",{enumerable:!0});var mu=class extends pa{constructor(e,t={}){super(e),this[v0]=t.code===void 0?0:t.code,this[L0]=t.reason===void 0?"":t.reason,this[I0]=t.wasClean===void 0?!1:t.wasClean}get code(){return this[v0]}get reason(){return this[L0]}get wasClean(){return this[I0]}};Object.defineProperty(mu.prototype,"code",{enumerable:!0});Object.defineProperty(mu.prototype,"reason",{enumerable:!0});Object.defineProperty(mu.prototype,"wasClean",{enumerable:!0});var uc=class extends pa{constructor(e,t={}){super(e),this[C0]=t.error===void 0?null:t.error,this[N0]=t.message===void 0?"":t.message}get error(){return this[C0]}get message(){return this[N0]}};Object.defineProperty(uc.prototype,"error",{enumerable:!0});Object.defineProperty(uc.prototype,"message",{enumerable:!0});var Ig=class extends pa{constructor(e,t={}){super(e),this[T0]=t.data===void 0?null:t.data}get data(){return this[T0]}};Object.defineProperty(Ig.prototype,"data",{enumerable:!0});var i_={addEventListener(l,e,t={}){for(let o of this.listeners(l))if(!t[kg]&&o[dw]===e&&!o[kg])return;let r;if(l==="message")r=function(i,n){let a=new Ig("message",{data:n?i:i.toString()});a[yc]=this,zS(e,this,a)};else if(l==="close")r=function(i,n){let a=new mu("close",{code:i,reason:n.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});a[yc]=this,zS(e,this,a)};else if(l==="error")r=function(i){let n=new uc("error",{error:i,message:i.message});n[yc]=this,zS(e,this,n)};else if(l==="open")r=function(){let i=new pa("open");i[yc]=this,zS(e,this,i)};else return;r[kg]=!!t[kg],r[dw]=e,t.once?this.once(l,r):this.on(l,r)},removeEventListener(l,e){for(let t of this.listeners(l))if(t[dw]===e&&!t[kg]){this.removeListener(l,t);break}}};M0.exports={CloseEvent:mu,ErrorEvent:uc,Event:pa,EventTarget:i_,MessageEvent:Ig};function zS(l,e,t){typeof l=="object"&&l.handleEvent?l.handleEvent.call(l,t):l.call(e,t)}});var bw=Gr((Pst,F0)=>{"use strict";var{tokenChars:Mg}=lc();function il(l,e,t){l[e]===void 0?l[e]=[t]:l[e].push(t)}function s_(l){let e=Object.create(null),t=Object.create(null),r=!1,o=!1,i=!1,n,a,y=-1,p=-1,d=-1,b=0;for(;b<l.length;b++)if(p=l.charCodeAt(b),n===void 0)if(d===-1&&Mg[p]===1)y===-1&&(y=b);else if(b!==0&&(p===32||p===9))d===-1&&y!==-1&&(d=b);else if(p===59||p===44){if(y===-1)throw new SyntaxError(`Unexpected character at index ${b}`);d===-1&&(d=b);let S=l.slice(y,d);p===44?(il(e,S,t),t=Object.create(null)):n=S,y=d=-1}else throw new SyntaxError(`Unexpected character at index ${b}`);else if(a===void 0)if(d===-1&&Mg[p]===1)y===-1&&(y=b);else if(p===32||p===9)d===-1&&y!==-1&&(d=b);else if(p===59||p===44){if(y===-1)throw new SyntaxError(`Unexpected character at index ${b}`);d===-1&&(d=b),il(t,l.slice(y,d),!0),p===44&&(il(e,n,t),t=Object.create(null),n=void 0),y=d=-1}else if(p===61&&y!==-1&&d===-1)a=l.slice(y,b),y=d=-1;else throw new SyntaxError(`Unexpected character at index ${b}`);else if(o){if(Mg[p]!==1)throw new SyntaxError(`Unexpected character at index ${b}`);y===-1?y=b:r||(r=!0),o=!1}else if(i)if(Mg[p]===1)y===-1&&(y=b);else if(p===34&&y!==-1)i=!1,d=b;else if(p===92)o=!0;else throw new SyntaxError(`Unexpected character at index ${b}`);else if(p===34&&l.charCodeAt(b-1)===61)i=!0;else if(d===-1&&Mg[p]===1)y===-1&&(y=b);else if(y!==-1&&(p===32||p===9))d===-1&&(d=b);else if(p===59||p===44){if(y===-1)throw new SyntaxError(`Unexpected character at index ${b}`);d===-1&&(d=b);let S=l.slice(y,d);r&&(S=S.replace(/\\/g,""),r=!1),il(t,a,S),p===44&&(il(e,n,t),t=Object.create(null),n=void 0),a=void 0,y=d=-1}else throw new SyntaxError(`Unexpected character at index ${b}`);if(y===-1||i||p===32||p===9)throw new SyntaxError("Unexpected end of input");d===-1&&(d=b);let f=l.slice(y,d);return n===void 0?il(e,f,t):(a===void 0?il(t,f,!0):r?il(t,a,f.replace(/\\/g,"")):il(t,a,f),il(e,n,t)),e}function n_(l){return Object.keys(l).map(e=>{let t=l[e];return Array.isArray(t)||(t=[t]),t.map(r=>[e].concat(Object.keys(r).map(o=>{let i=r[o];return Array.isArray(i)||(i=[i]),i.map(n=>n===!0?o:`${o}=${n}`).join("; ")})).join("; ")).join(", ")}).join(", ")}F0.exports={format:n_,parse:s_}});var eP=Gr((Est,K0)=>{"use strict";var l_=Ir("events"),a_=Ir("https"),m_=Ir("http"),O0=Ir("net"),y_=Ir("tls"),{randomBytes:u_,createHash:p_}=Ir("crypto"),{Duplex:Ast,Readable:wst}=Ir("stream"),{URL:gw}=Ir("url"),qm=Lg(),h_=uw(),c_=cw(),{isBlob:d_}=lc(),{BINARY_TYPES:B0,CLOSE_TIMEOUT:b_,EMPTY_BUFFER:JS,GUID:g_,kForOnEventAttribute:fw,kListener:f_,kStatusCode:S_,kWebSocket:no,NOOP:V0}=ya(),{EventTarget:{addEventListener:P_,removeEventListener:A_}}=R0(),{format:w_,parse:E_}=bw(),{toBuffer:x_}=Cg(),U0=Symbol("kAborted"),Sw=[8,13],ha=["CONNECTING","OPEN","CLOSING","CLOSED"],v_=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/,or=class l extends l_{constructor(e,t,r){super(),this._binaryType=B0[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=JS,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=l.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,e!==null?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,t===void 0?t=[]:Array.isArray(t)||(typeof t=="object"&&t!==null?(r=t,t=[]):t=[t]),G0(this,e,t,r)):(this._autoPong=r.autoPong,this._closeTimeout=r.closeTimeout,this._isServer=!0)}get binaryType(){return this._binaryType}set binaryType(e){B0.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,t,r){let o=new h_({allowSynchronousEvents:r.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:r.maxPayload,skipUTF8Validation:r.skipUTF8Validation}),i=new c_(e,this._extensions,r.generateMask);this._receiver=o,this._sender=i,this._socket=e,o[no]=this,i[no]=this,e[no]=this,o.on("conclude",N_),o.on("drain",L_),o.on("error",k_),o.on("message",I_),o.on("ping",M_),o.on("pong",R_),i.onerror=F_,e.setTimeout&&e.setTimeout(0),e.setNoDelay&&e.setNoDelay(),t.length>0&&e.unshift(t),e.on("close",W0),e.on("data",tP),e.on("end",Y0),e.on("error",q0),this._readyState=l.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=l.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}this._extensions[qm.extensionName]&&this._extensions[qm.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=l.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState!==l.CLOSED){if(this.readyState===l.CONNECTING){_i(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===l.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=l.CLOSING,this._sender.close(e,t,!this._isServer,r=>{r||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),H0(this)}}pause(){this.readyState===l.CONNECTING||this.readyState===l.CLOSED||(this._paused=!0,this._socket.pause())}ping(e,t,r){if(this.readyState===l.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(r=e,e=t=void 0):typeof t=="function"&&(r=t,t=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==l.OPEN){Pw(this,e,r);return}t===void 0&&(t=!this._isServer),this._sender.ping(e||JS,t,r)}pong(e,t,r){if(this.readyState===l.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(r=e,e=t=void 0):typeof t=="function"&&(r=t,t=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==l.OPEN){Pw(this,e,r);return}t===void 0&&(t=!this._isServer),this._sender.pong(e||JS,t,r)}resume(){this.readyState===l.CONNECTING||this.readyState===l.CLOSED||(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(e,t,r){if(this.readyState===l.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof t=="function"&&(r=t,t={}),typeof e=="number"&&(e=e.toString()),this.readyState!==l.OPEN){Pw(this,e,r);return}let o={binary:typeof e!="string",mask:!this._isServer,compress:!0,fin:!0,...t};this._extensions[qm.extensionName]||(o.compress=!1),this._sender.send(e||JS,o,r)}terminate(){if(this.readyState!==l.CLOSED){if(this.readyState===l.CONNECTING){_i(this,this._req,"WebSocket was closed before the connection was established");return}this._socket&&(this._readyState=l.CLOSING,this._socket.destroy())}}};Object.defineProperty(or,"CONNECTING",{enumerable:!0,value:ha.indexOf("CONNECTING")});Object.defineProperty(or.prototype,"CONNECTING",{enumerable:!0,value:ha.indexOf("CONNECTING")});Object.defineProperty(or,"OPEN",{enumerable:!0,value:ha.indexOf("OPEN")});Object.defineProperty(or.prototype,"OPEN",{enumerable:!0,value:ha.indexOf("OPEN")});Object.defineProperty(or,"CLOSING",{enumerable:!0,value:ha.indexOf("CLOSING")});Object.defineProperty(or.prototype,"CLOSING",{enumerable:!0,value:ha.indexOf("CLOSING")});Object.defineProperty(or,"CLOSED",{enumerable:!0,value:ha.indexOf("CLOSED")});Object.defineProperty(or.prototype,"CLOSED",{enumerable:!0,value:ha.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(l=>{Object.defineProperty(or.prototype,l,{enumerable:!0})});["open","error","close","message"].forEach(l=>{Object.defineProperty(or.prototype,`on${l}`,{enumerable:!0,get(){for(let e of this.listeners(l))if(e[fw])return e[f_];return null},set(e){for(let t of this.listeners(l))if(t[fw]){this.removeListener(l,t);break}typeof e=="function"&&this.addEventListener(l,e,{[fw]:!0})}})});or.prototype.addEventListener=P_;or.prototype.removeEventListener=A_;K0.exports=or;function G0(l,e,t,r){let o={allowSynchronousEvents:!0,autoPong:!0,closeTimeout:b_,protocolVersion:Sw[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...r,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(l._autoPong=o.autoPong,l._closeTimeout=o.closeTimeout,!Sw.includes(o.protocolVersion))throw new RangeError(`Unsupported protocol version: ${o.protocolVersion} (supported versions: ${Sw.join(", ")})`);let i;if(e instanceof gw)i=e;else try{i=new gw(e)}catch{throw new SyntaxError(`Invalid URL: ${e}`)}i.protocol==="http:"?i.protocol="ws:":i.protocol==="https:"&&(i.protocol="wss:"),l._url=i.href;let n=i.protocol==="wss:",a=i.protocol==="ws+unix:",y;if(i.protocol!=="ws:"&&!n&&!a?y=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`:a&&!i.pathname?y="The URL's pathname is empty":i.hash&&(y="The URL contains a fragment identifier"),y){let N=new SyntaxError(y);if(l._redirects===0)throw N;ZS(l,N);return}let p=n?443:80,d=u_(16).toString("base64"),b=n?a_.request:m_.request,f=new Set,S;if(o.createConnection=o.createConnection||(n?C_:T_),o.defaultPort=o.defaultPort||p,o.port=i.port||p,o.host=i.hostname.startsWith("[")?i.hostname.slice(1,-1):i.hostname,o.headers={...o.headers,"Sec-WebSocket-Version":o.protocolVersion,"Sec-WebSocket-Key":d,Connection:"Upgrade",Upgrade:"websocket"},o.path=i.pathname+i.search,o.timeout=o.handshakeTimeout,o.perMessageDeflate&&(S=new qm(o.perMessageDeflate!==!0?o.perMessageDeflate:{},!1,o.maxPayload),o.headers["Sec-WebSocket-Extensions"]=w_({[qm.extensionName]:S.offer()})),t.length){for(let N of t){if(typeof N!="string"||!v_.test(N)||f.has(N))throw new SyntaxError("An invalid or duplicated subprotocol was specified");f.add(N)}o.headers["Sec-WebSocket-Protocol"]=t.join(",")}if(o.origin&&(o.protocolVersion<13?o.headers["Sec-WebSocket-Origin"]=o.origin:o.headers.Origin=o.origin),(i.username||i.password)&&(o.auth=`${i.username}:${i.password}`),a){let N=o.path.split(":");o.socketPath=N[0],o.path=N[1]}let M;if(o.followRedirects){if(l._redirects===0){l._originalIpc=a,l._originalSecure=n,l._originalHostOrSocketPath=a?o.socketPath:i.host;let N=r&&r.headers;if(r={...r,headers:{}},N)for(let[K,mt]of Object.entries(N))r.headers[K.toLowerCase()]=mt}else if(l.listenerCount("redirect")===0){let N=a?l._originalIpc?o.socketPath===l._originalHostOrSocketPath:!1:l._originalIpc?!1:i.host===l._originalHostOrSocketPath;(!N||l._originalSecure&&!n)&&(delete o.headers.authorization,delete o.headers.cookie,N||delete o.headers.host,o.auth=void 0)}o.auth&&!r.headers.authorization&&(r.headers.authorization="Basic "+Buffer.from(o.auth).toString("base64")),M=l._req=b(o),l._redirects&&l.emit("redirect",l.url,M)}else M=l._req=b(o);o.timeout&&M.on("timeout",()=>{_i(l,M,"Opening handshake has timed out")}),M.on("error",N=>{M===null||M[U0]||(M=l._req=null,ZS(l,N))}),M.on("response",N=>{let K=N.headers.location,mt=N.statusCode;if(K&&o.followRedirects&&mt>=300&&mt<400){if(++l._redirects>o.maxRedirects){_i(l,M,"Maximum redirects exceeded");return}M.abort();let Nt;try{Nt=new gw(K,e)}catch{let at=new SyntaxError(`Invalid URL: ${K}`);ZS(l,at);return}G0(l,Nt,t,r)}else l.emit("unexpected-response",M,N)||_i(l,M,`Unexpected server response: ${N.statusCode}`)}),M.on("upgrade",(N,K,mt)=>{if(l.emit("upgrade",N),l.readyState!==or.CONNECTING)return;M=l._req=null;let Nt=N.headers.upgrade;if(Nt===void 0||Nt.toLowerCase()!=="websocket"){_i(l,K,"Invalid Upgrade header");return}let qt=p_("sha1").update(d+g_).digest("base64");if(N.headers["sec-websocket-accept"]!==qt){_i(l,K,"Invalid Sec-WebSocket-Accept header");return}let at=N.headers["sec-websocket-protocol"],xt;if(at!==void 0?f.size?f.has(at)||(xt="Server sent an invalid subprotocol"):xt="Server sent a subprotocol but none was requested":f.size&&(xt="Server sent no subprotocol"),xt){_i(l,K,xt);return}at&&(l._protocol=at);let It=N.headers["sec-websocket-extensions"];if(It!==void 0){if(!S){_i(l,K,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let At;try{At=E_(It)}catch{_i(l,K,"Invalid Sec-WebSocket-Extensions header");return}let Xe=Object.keys(At);if(Xe.length!==1||Xe[0]!==qm.extensionName){_i(l,K,"Server indicated an extension that was not requested");return}try{S.accept(At[qm.extensionName])}catch{_i(l,K,"Invalid Sec-WebSocket-Extensions header");return}l._extensions[qm.extensionName]=S}l.setSocket(K,mt,{allowSynchronousEvents:o.allowSynchronousEvents,generateMask:o.generateMask,maxPayload:o.maxPayload,skipUTF8Validation:o.skipUTF8Validation})}),o.finishRequest?o.finishRequest(M,l):M.end()}function ZS(l,e){l._readyState=or.CLOSING,l._errorEmitted=!0,l.emit("error",e),l.emitClose()}function T_(l){return l.path=l.socketPath,O0.connect(l)}function C_(l){return l.path=void 0,!l.servername&&l.servername!==""&&(l.servername=O0.isIP(l.host)?"":l.host),y_.connect(l)}function _i(l,e,t){l._readyState=or.CLOSING;let r=new Error(t);Error.captureStackTrace(r,_i),e.setHeader?(e[U0]=!0,e.abort(),e.socket&&!e.socket.destroyed&&e.socket.destroy(),process.nextTick(ZS,l,r)):(e.destroy(r),e.once("error",l.emit.bind(l,"error")),e.once("close",l.emitClose.bind(l)))}function Pw(l,e,t){if(e){let r=d_(e)?e.size:x_(e).length;l._socket?l._sender._bufferedBytes+=r:l._bufferedAmount+=r}if(t){let r=new Error(`WebSocket is not open: readyState ${l.readyState} (${ha[l.readyState]})`);process.nextTick(t,r)}}function N_(l,e){let t=this[no];t._closeFrameReceived=!0,t._closeMessage=e,t._closeCode=l,t._socket[no]!==void 0&&(t._socket.removeListener("data",tP),process.nextTick(_0,t._socket),l===1005?t.close():t.close(l,e))}function L_(){let l=this[no];l.isPaused||l._socket.resume()}function k_(l){let e=this[no];e._socket[no]!==void 0&&(e._socket.removeListener("data",tP),process.nextTick(_0,e._socket),e.close(l[S_])),e._errorEmitted||(e._errorEmitted=!0,e.emit("error",l))}function D0(){this[no].emitClose()}function I_(l,e){this[no].emit("message",l,e)}function M_(l){let e=this[no];e._autoPong&&e.pong(l,!this._isServer,V0),e.emit("ping",l)}function R_(l){this[no].emit("pong",l)}function _0(l){l.resume()}function F_(l){let e=this[no];e.readyState!==or.CLOSED&&(e.readyState===or.OPEN&&(e._readyState=or.CLOSING,H0(e)),this._socket.end(),e._errorEmitted||(e._errorEmitted=!0,e.emit("error",l)))}function H0(l){l._closeTimer=setTimeout(l._socket.destroy.bind(l._socket),l._closeTimeout)}function W0(){let l=this[no];if(this.removeListener("close",W0),this.removeListener("data",tP),this.removeListener("end",Y0),l._readyState=or.CLOSING,!this._readableState.endEmitted&&!l._closeFrameReceived&&!l._receiver._writableState.errorEmitted&&this._readableState.length!==0){let e=this.read(this._readableState.length);l._receiver.write(e)}l._receiver.end(),this[no]=void 0,clearTimeout(l._closeTimer),l._receiver._writableState.finished||l._receiver._writableState.errorEmitted?l.emitClose():(l._receiver.on("error",D0),l._receiver.on("finish",D0))}function tP(l){this[no]._receiver.write(l)||this.pause()}function Y0(){let l=this[no];l._readyState=or.CLOSING,l._receiver.end(),this.end()}function q0(){let l=this[no];this.removeListener("error",q0),this.on("error",V0),l&&(l._readyState=or.CLOSING,this.destroy())}});var X0=Gr((vst,$0)=>{"use strict";var xst=eP(),{Duplex:B_}=Ir("stream");function j0(l){l.emit("close")}function D_(){!this.destroyed&&this._writableState.finished&&this.destroy()}function Q0(l){this.removeListener("error",Q0),this.destroy(),this.listenerCount("error")===0&&this.emit("error",l)}function O_(l,e){let t=!0,r=new B_({...e,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return l.on("message",function(i,n){let a=!n&&r._readableState.objectMode?i.toString():i;r.push(a)||l.pause()}),l.once("error",function(i){r.destroyed||(t=!1,r.destroy(i))}),l.once("close",function(){r.destroyed||r.push(null)}),r._destroy=function(o,i){if(l.readyState===l.CLOSED){i(o),process.nextTick(j0,r);return}let n=!1;l.once("error",function(y){n=!0,i(y)}),l.once("close",function(){n||i(o),process.nextTick(j0,r)}),t&&l.terminate()},r._final=function(o){if(l.readyState===l.CONNECTING){l.once("open",function(){r._final(o)});return}l._socket!==null&&(l._socket._writableState.finished?(o(),r._readableState.endEmitted&&r.destroy()):(l._socket.once("finish",function(){o()}),l.close()))},r._read=function(){l.isPaused&&l.resume()},r._write=function(o,i,n){if(l.readyState===l.CONNECTING){l.once("open",function(){r._write(o,i,n)});return}l.send(o,n)},r.on("end",D_),r.on("error",Q0),r}$0.exports=O_});var J0=Gr((Tst,z0)=>{"use strict";var{tokenChars:V_}=lc();function U_(l){let e=new Set,t=-1,r=-1,o=0;for(o;o<l.length;o++){let n=l.charCodeAt(o);if(r===-1&&V_[n]===1)t===-1&&(t=o);else if(o!==0&&(n===32||n===9))r===-1&&t!==-1&&(r=o);else if(n===44){if(t===-1)throw new SyntaxError(`Unexpected character at index ${o}`);r===-1&&(r=o);let a=l.slice(t,r);if(e.has(a))throw new SyntaxError(`The "${a}" subprotocol is duplicated`);e.add(a),t=r=-1}else throw new SyntaxError(`Unexpected character at index ${o}`)}if(t===-1||r!==-1)throw new SyntaxError("Unexpected end of input");let i=l.slice(t,o);if(e.has(i))throw new SyntaxError(`The "${i}" subprotocol is duplicated`);return e.add(i),e}z0.exports={parse:U_}});var sk=Gr((Nst,ik)=>{"use strict";var G_=Ir("events"),rP=Ir("http"),{Duplex:Cst}=Ir("stream"),{createHash:__}=Ir("crypto"),Z0=bw(),yu=Lg(),H_=J0(),W_=eP(),{CLOSE_TIMEOUT:Y_,GUID:q_,kWebSocket:K_}=ya(),j_=/^[+/0-9A-Za-z]{22}==$/,tk=0,ek=1,ok=2,Aw=class extends G_{constructor(e,t){if(super(),e={allowSynchronousEvents:!0,autoPong:!0,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,closeTimeout:Y_,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:W_,...e},e.port==null&&!e.server&&!e.noServer||e.port!=null&&(e.server||e.noServer)||e.server&&e.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(e.port!=null?(this._server=rP.createServer((r,o)=>{let i=rP.STATUS_CODES[426];o.writeHead(426,{"Content-Length":i.length,"Content-Type":"text/plain"}),o.end(i)}),this._server.listen(e.port,e.host,e.backlog,t)):e.server&&(this._server=e.server),this._server){let r=this.emit.bind(this,"connection");this._removeListeners=Q_(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(o,i,n)=>{this.handleUpgrade(o,i,n,r)}})}e.perMessageDeflate===!0&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=tk}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(e){if(this._state===ok){e&&this.once("close",()=>{e(new Error("The server is not running"))}),process.nextTick(Rg,this);return}if(e&&this.once("close",e),this._state!==ek)if(this._state=ek,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients?this.clients.size?this._shouldEmitClose=!0:process.nextTick(Rg,this):process.nextTick(Rg,this);else{let t=this._server;this._removeListeners(),this._removeListeners=this._server=null,t.close(()=>{Rg(this)})}}shouldHandle(e){if(this.options.path){let t=e.url.indexOf("?");if((t!==-1?e.url.slice(0,t):e.url)!==this.options.path)return!1}return!0}handleUpgrade(e,t,r,o){t.on("error",rk);let i=e.headers["sec-websocket-key"],n=e.headers.upgrade,a=+e.headers["sec-websocket-version"];if(e.method!=="GET"){uu(this,e,t,405,"Invalid HTTP method");return}if(n===void 0||n.toLowerCase()!=="websocket"){uu(this,e,t,400,"Invalid Upgrade header");return}if(i===void 0||!j_.test(i)){uu(this,e,t,400,"Missing or invalid Sec-WebSocket-Key header");return}if(a!==13&&a!==8){uu(this,e,t,400,"Missing or invalid Sec-WebSocket-Version header",{"Sec-WebSocket-Version":"13, 8"});return}if(!this.shouldHandle(e)){Fg(t,400);return}let y=e.headers["sec-websocket-protocol"],p=new Set;if(y!==void 0)try{p=H_.parse(y)}catch{uu(this,e,t,400,"Invalid Sec-WebSocket-Protocol header");return}let d=e.headers["sec-websocket-extensions"],b={};if(this.options.perMessageDeflate&&d!==void 0){let f=new yu(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let S=Z0.parse(d);S[yu.extensionName]&&(f.accept(S[yu.extensionName]),b[yu.extensionName]=f)}catch{uu(this,e,t,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let f={origin:e.headers[`${a===8?"sec-websocket-origin":"origin"}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(f,(S,M,N,K)=>{if(!S)return Fg(t,M||401,N,K);this.completeUpgrade(b,i,p,e,t,r,o)});return}if(!this.options.verifyClient(f))return Fg(t,401)}this.completeUpgrade(b,i,p,e,t,r,o)}completeUpgrade(e,t,r,o,i,n,a){if(!i.readable||!i.writable)return i.destroy();if(i[K_])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>tk)return Fg(i,503);let p=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${__("sha1").update(t+q_).digest("base64")}`],d=new this.options.WebSocket(null,void 0,this.options);if(r.size){let b=this.options.handleProtocols?this.options.handleProtocols(r,o):r.values().next().value;b&&(p.push(`Sec-WebSocket-Protocol: ${b}`),d._protocol=b)}if(e[yu.extensionName]){let b=e[yu.extensionName].params,f=Z0.format({[yu.extensionName]:[b]});p.push(`Sec-WebSocket-Extensions: ${f}`),d._extensions=e}this.emit("headers",p,o),i.write(p.concat(`\r
3
+ `||l==="\r";_m.solelyContainsHTTPTokenCodePoints=l=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(l);_m.soleyContainsHTTPQuotedStringTokenCodePoints=l=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(l);_m.asciiLowercase=l=>l.replace(/[A-Z]/ug,e=>e.toLowerCase());_m.collectAnHTTPQuotedString=(l,e)=>{let t="";for(e++;;){for(;e<l.length&&l[e]!=='"'&&l[e]!=="\\";)t+=l[e],++e;if(e>=l.length)break;let r=l[e];if(++e,r==="\\"){if(e>=l.length){t+="\\";break}t+=l[e],++e}else break}return[t,e]}});var OL=Gr((Git,DL)=>{"use strict";var{asciiLowercase:WS,solelyContainsHTTPTokenCodePoints:gG,soleyContainsHTTPQuotedStringTokenCodePoints:fG}=Eg();DL.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=WS(String(e)),this._map.get(e)}has(e){return e=WS(String(e)),this._map.has(e)}set(e,t){if(e=WS(String(e)),t=String(t),!gG(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!fG(t))throw new Error(`Invalid MIME type parameter value "${t}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,t)}clear(){this._map.clear()}delete(e){return e=WS(String(e)),this._map.delete(e)}forEach(e,t){this._map.forEach(e,t)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var GL=Gr((_it,UL)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:SG,removeTrailingHTTPWhitespace:VL,isHTTPWhitespaceChar:PG,solelyContainsHTTPTokenCodePoints:QA,soleyContainsHTTPQuotedStringTokenCodePoints:AG,asciiLowercase:$A,collectAnHTTPQuotedString:wG}=Eg();UL.exports=l=>{l=SG(l);let e=0,t="";for(;e<l.length&&l[e]!=="/";)t+=l[e],++e;if(t.length===0||!QA(t)||e>=l.length)return null;++e;let r="";for(;e<l.length&&l[e]!==";";)r+=l[e],++e;if(r=VL(r),r.length===0||!QA(r))return null;let o={type:$A(t),subtype:$A(r),parameters:new Map};for(;e<l.length;){for(++e;PG(l[e]);)++e;let i="";for(;e<l.length&&l[e]!==";"&&l[e]!=="=";)i+=l[e],++e;if(i=$A(i),e<l.length){if(l[e]===";")continue;++e}let n=null;if(l[e]==='"')for([n,e]=wG(l,e);e<l.length&&l[e]!==";";)++e;else{for(n="";e<l.length&&l[e]!==";";)n+=l[e],++e;if(n=VL(n),n==="")continue}i.length>0&&QA(i)&&AG(n)&&!o.parameters.has(i)&&o.parameters.set(i,n)}return o}});var HL=Gr((Hit,_L)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:EG}=Eg();_L.exports=l=>{let e=`${l.type}/${l.subtype}`;if(l.parameters.size===0)return e;for(let[t,r]of l.parameters)e+=";",e+=t,e+="=",(!EG(r)||r.length===0)&&(r=r.replace(/(["\\])/ug,"\\$1"),r=`"${r}"`),e+=r;return e}});var KL=Gr((Yit,qL)=>{"use strict";var xG=OL(),vG=GL(),TG=HL(),{asciiLowercase:WL,solelyContainsHTTPTokenCodePoints:YL}=Eg();qL.exports=class{constructor(e){e=String(e);let t=vG(e);if(t===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=t.type,this._subtype=t.subtype,this._parameters=new xG(t.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=WL(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!YL(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=WL(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!YL(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return TG(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var ya=Gr((pst,i0)=>{"use strict";var r0=["nodebuffer","arraybuffer","fragments"],o0=typeof Blob<"u";o0&&r0.push("blob");i0.exports={BINARY_TYPES:r0,CLOSE_TIMEOUT:3e4,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:o0,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}});var Cg=Gr((hst,YS)=>{"use strict";var{EMPTY_BUFFER:IG}=ya(),ew=Buffer[Symbol.species];function MG(l,e){if(l.length===0)return IG;if(l.length===1)return l[0];let t=Buffer.allocUnsafe(e),r=0;for(let o=0;o<l.length;o++){let i=l[o];t.set(i,r),r+=i.length}return r<e?new ew(t.buffer,t.byteOffset,r):t}function s0(l,e,t,r,o){for(let i=0;i<o;i++)t[r+i]=l[i]^e[i&3]}function n0(l,e){for(let t=0;t<l.length;t++)l[t]^=e[t&3]}function RG(l){return l.length===l.buffer.byteLength?l.buffer:l.buffer.slice(l.byteOffset,l.byteOffset+l.length)}function rw(l){if(rw.readOnly=!0,Buffer.isBuffer(l))return l;let e;return l instanceof ArrayBuffer?e=new ew(l):ArrayBuffer.isView(l)?e=new ew(l.buffer,l.byteOffset,l.byteLength):(e=Buffer.from(l),rw.readOnly=!1),e}YS.exports={concat:MG,mask:s0,toArrayBuffer:RG,toBuffer:rw,unmask:n0};if(!process.env.WS_NO_BUFFER_UTIL)try{let l=Ir("bufferutil");YS.exports.mask=function(e,t,r,o,i){i<48?s0(e,t,r,o,i):l.mask(e,t,r,o,i)},YS.exports.unmask=function(e,t){e.length<32?n0(e,t):l.unmask(e,t)}}catch{}});var m0=Gr((cst,a0)=>{"use strict";var l0=Symbol("kDone"),ow=Symbol("kRun"),iw=class{constructor(e){this[l0]=()=>{this.pending--,this[ow]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[ow]()}[ow](){if(this.pending!==this.concurrency&&this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[l0])}}};a0.exports=iw});var Lg=Gr((dst,h0)=>{"use strict";var Ng=Ir("zlib"),y0=Cg(),FG=m0(),{kStatusCode:u0}=ya(),BG=Buffer[Symbol.species],DG=Buffer.from([0,0,255,255]),KS=Symbol("permessage-deflate"),ua=Symbol("total-length"),sc=Symbol("callback"),Ym=Symbol("buffers"),nc=Symbol("error"),qS,sw=class{constructor(e,t,r){if(this._maxPayload=r|0,this._options=e||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._isServer=!!t,this._deflate=null,this._inflate=null,this.params=null,!qS){let o=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;qS=new FG(o)}}static get extensionName(){return"permessage-deflate"}offer(){let e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits==null&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){let e=this._deflate[sc];this._deflate.close(),this._deflate=null,e&&e(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){let t=this._options,r=e.find(o=>!(t.serverNoContextTakeover===!1&&o.server_no_context_takeover||o.server_max_window_bits&&(t.serverMaxWindowBits===!1||typeof t.serverMaxWindowBits=="number"&&t.serverMaxWindowBits>o.server_max_window_bits)||typeof t.clientMaxWindowBits=="number"&&!o.client_max_window_bits));if(!r)throw new Error("None of the extension offers can be accepted");return t.serverNoContextTakeover&&(r.server_no_context_takeover=!0),t.clientNoContextTakeover&&(r.client_no_context_takeover=!0),typeof t.serverMaxWindowBits=="number"&&(r.server_max_window_bits=t.serverMaxWindowBits),typeof t.clientMaxWindowBits=="number"?r.client_max_window_bits=t.clientMaxWindowBits:(r.client_max_window_bits===!0||t.clientMaxWindowBits===!1)&&delete r.client_max_window_bits,r}acceptAsClient(e){let t=e[0];if(this._options.clientNoContextTakeover===!1&&t.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(!t.client_max_window_bits)typeof this._options.clientMaxWindowBits=="number"&&(t.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits=="number"&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"');return t}normalizeParams(e){return e.forEach(t=>{Object.keys(t).forEach(r=>{let o=t[r];if(o.length>1)throw new Error(`Parameter "${r}" must have only a single value`);if(o=o[0],r==="client_max_window_bits"){if(o!==!0){let i=+o;if(!Number.isInteger(i)||i<8||i>15)throw new TypeError(`Invalid value for parameter "${r}": ${o}`);o=i}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${r}": ${o}`)}else if(r==="server_max_window_bits"){let i=+o;if(!Number.isInteger(i)||i<8||i>15)throw new TypeError(`Invalid value for parameter "${r}": ${o}`);o=i}else if(r==="client_no_context_takeover"||r==="server_no_context_takeover"){if(o!==!0)throw new TypeError(`Invalid value for parameter "${r}": ${o}`)}else throw new Error(`Unknown parameter "${r}"`);t[r]=o})}),e}decompress(e,t,r){qS.add(o=>{this._decompress(e,t,(i,n)=>{o(),r(i,n)})})}compress(e,t,r){qS.add(o=>{this._compress(e,t,(i,n)=>{o(),r(i,n)})})}_decompress(e,t,r){let o=this._isServer?"client":"server";if(!this._inflate){let i=`${o}_max_window_bits`,n=typeof this.params[i]!="number"?Ng.Z_DEFAULT_WINDOWBITS:this.params[i];this._inflate=Ng.createInflateRaw({...this._options.zlibInflateOptions,windowBits:n}),this._inflate[KS]=this,this._inflate[ua]=0,this._inflate[Ym]=[],this._inflate.on("error",VG),this._inflate.on("data",p0)}this._inflate[sc]=r,this._inflate.write(e),t&&this._inflate.write(DG),this._inflate.flush(()=>{let i=this._inflate[nc];if(i){this._inflate.close(),this._inflate=null,r(i);return}let n=y0.concat(this._inflate[Ym],this._inflate[ua]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[ua]=0,this._inflate[Ym]=[],t&&this.params[`${o}_no_context_takeover`]&&this._inflate.reset()),r(null,n)})}_compress(e,t,r){let o=this._isServer?"server":"client";if(!this._deflate){let i=`${o}_max_window_bits`,n=typeof this.params[i]!="number"?Ng.Z_DEFAULT_WINDOWBITS:this.params[i];this._deflate=Ng.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:n}),this._deflate[ua]=0,this._deflate[Ym]=[],this._deflate.on("data",OG)}this._deflate[sc]=r,this._deflate.write(e),this._deflate.flush(Ng.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let i=y0.concat(this._deflate[Ym],this._deflate[ua]);t&&(i=new BG(i.buffer,i.byteOffset,i.length-4)),this._deflate[sc]=null,this._deflate[ua]=0,this._deflate[Ym]=[],t&&this.params[`${o}_no_context_takeover`]&&this._deflate.reset(),r(null,i)})}};h0.exports=sw;function OG(l){this[Ym].push(l),this[ua]+=l.length}function p0(l){if(this[ua]+=l.length,this[KS]._maxPayload<1||this[ua]<=this[KS]._maxPayload){this[Ym].push(l);return}this[nc]=new RangeError("Max payload size exceeded"),this[nc].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[nc][u0]=1009,this.removeListener("data",p0),this.reset()}function VG(l){if(this[KS]._inflate=null,this[nc]){this[sc](this[nc]);return}l[u0]=1007,this[sc](l)}});var lc=Gr((bst,jS)=>{"use strict";var{isUtf8:c0}=Ir("buffer"),{hasBlob:UG}=ya(),GG=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function _G(l){return l>=1e3&&l<=1014&&l!==1004&&l!==1005&&l!==1006||l>=3e3&&l<=4999}function nw(l){let e=l.length,t=0;for(;t<e;)if((l[t]&128)===0)t++;else if((l[t]&224)===192){if(t+1===e||(l[t+1]&192)!==128||(l[t]&254)===192)return!1;t+=2}else if((l[t]&240)===224){if(t+2>=e||(l[t+1]&192)!==128||(l[t+2]&192)!==128||l[t]===224&&(l[t+1]&224)===128||l[t]===237&&(l[t+1]&224)===160)return!1;t+=3}else if((l[t]&248)===240){if(t+3>=e||(l[t+1]&192)!==128||(l[t+2]&192)!==128||(l[t+3]&192)!==128||l[t]===240&&(l[t+1]&240)===128||l[t]===244&&l[t+1]>143||l[t]>244)return!1;t+=4}else return!1;return!0}function HG(l){return UG&&typeof l=="object"&&typeof l.arrayBuffer=="function"&&typeof l.type=="string"&&typeof l.stream=="function"&&(l[Symbol.toStringTag]==="Blob"||l[Symbol.toStringTag]==="File")}jS.exports={isBlob:HG,isValidStatusCode:_G,isValidUTF8:nw,tokenChars:GG};if(c0)jS.exports.isValidUTF8=function(l){return l.length<24?nw(l):c0(l)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let l=Ir("utf-8-validate");jS.exports.isValidUTF8=function(e){return e.length<32?nw(e):l(e)}}catch{}});var uw=Gr((gst,A0)=>{"use strict";var{Writable:WG}=Ir("stream"),d0=Lg(),{BINARY_TYPES:YG,EMPTY_BUFFER:b0,kStatusCode:qG,kWebSocket:KG}=ya(),{concat:lw,toArrayBuffer:jG,unmask:QG}=Cg(),{isValidStatusCode:$G,isValidUTF8:g0}=lc(),QS=Buffer[Symbol.species],us=0,f0=1,S0=2,P0=3,aw=4,mw=5,$S=6,yw=class extends WG{constructor(e={}){super(),this._allowSynchronousEvents=e.allowSynchronousEvents!==void 0?e.allowSynchronousEvents:!0,this._binaryType=e.binaryType||YG[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxPayload=e.maxPayload|0,this._skipUTF8Validation=!!e.skipUTF8Validation,this[KG]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=us}_write(e,t,r){if(this._opcode===8&&this._state==us)return r();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(r)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){let r=this._buffers[0];return this._buffers[0]=new QS(r.buffer,r.byteOffset+e,r.length-e),new QS(r.buffer,r.byteOffset,e)}let t=Buffer.allocUnsafe(e);do{let r=this._buffers[0],o=t.length-e;e>=r.length?t.set(this._buffers.shift(),o):(t.set(new Uint8Array(r.buffer,r.byteOffset,e),o),this._buffers[0]=new QS(r.buffer,r.byteOffset+e,r.length-e)),e-=r.length}while(e>0);return t}startLoop(e){this._loop=!0;do switch(this._state){case us:this.getInfo(e);break;case f0:this.getPayloadLength16(e);break;case S0:this.getPayloadLength64(e);break;case P0:this.getMask();break;case aw:this.getData(e);break;case mw:case $S:this._loop=!1;return}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2){this._loop=!1;return}let t=this.consume(2);if((t[0]&48)!==0){let o=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");e(o);return}let r=(t[0]&64)===64;if(r&&!this._extensions[d0.extensionName]){let o=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(o);return}if(this._fin=(t[0]&128)===128,this._opcode=t[0]&15,this._payloadLength=t[1]&127,this._opcode===0){if(r){let o=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(o);return}if(!this._fragmented){let o=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");e(o);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let o=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(o);return}this._compressed=r}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let o=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");e(o);return}if(r){let o=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(o);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let o=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");e(o);return}}else{let o=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(o);return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(t[1]&128)===128,this._isServer){if(!this._masked){let o=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");e(o);return}}else if(this._masked){let o=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");e(o);return}this._payloadLength===126?this._state=f0:this._payloadLength===127?this._state=S0:this.haveLength(e)}getPayloadLength16(e){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e)}getPayloadLength64(e){if(this._bufferedBytes<8){this._loop=!1;return}let t=this.consume(8),r=t.readUInt32BE(0);if(r>Math.pow(2,21)-1){let o=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");e(o);return}this._payloadLength=r*Math.pow(2,32)+t.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){let t=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");e(t);return}this._masked?this._state=P0:this._state=aw}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=aw}getData(e){let t=b0;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}t=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0&&QG(t,this._mask)}if(this._opcode>7){this.controlMessage(t,e);return}if(this._compressed){this._state=mw,this.decompress(t,e);return}t.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(t)),this.dataMessage(e)}decompress(e,t){this._extensions[d0.extensionName].decompress(e,this._fin,(o,i)=>{if(o)return t(o);if(i.length){if(this._messageLength+=i.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let n=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");t(n);return}this._fragments.push(i)}this.dataMessage(t),this._state===us&&this.startLoop(t)})}dataMessage(e){if(!this._fin){this._state=us;return}let t=this._messageLength,r=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let o;this._binaryType==="nodebuffer"?o=lw(r,t):this._binaryType==="arraybuffer"?o=jG(lw(r,t)):this._binaryType==="blob"?o=new Blob(r):o=r,this._allowSynchronousEvents?(this.emit("message",o,!0),this._state=us):(this._state=$S,setImmediate(()=>{this.emit("message",o,!0),this._state=us,this.startLoop(e)}))}else{let o=lw(r,t);if(!this._skipUTF8Validation&&!g0(o)){let i=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");e(i);return}this._state===mw||this._allowSynchronousEvents?(this.emit("message",o,!1),this._state=us):(this._state=$S,setImmediate(()=>{this.emit("message",o,!1),this._state=us,this.startLoop(e)}))}}controlMessage(e,t){if(this._opcode===8){if(e.length===0)this._loop=!1,this.emit("conclude",1005,b0),this.end();else{let r=e.readUInt16BE(0);if(!$G(r)){let i=this.createError(RangeError,`invalid status code ${r}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");t(i);return}let o=new QS(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!g0(o)){let i=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");t(i);return}this._loop=!1,this.emit("conclude",r,o),this.end()}this._state=us;return}this._allowSynchronousEvents?(this.emit(this._opcode===9?"ping":"pong",e),this._state=us):(this._state=$S,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",e),this._state=us,this.startLoop(t)}))}createError(e,t,r,o,i){this._loop=!1,this._errored=!0;let n=new e(r?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(n,this.createError),n.code=i,n[qG]=o,n}};A0.exports=yw});var cw=Gr((Sst,x0)=>{"use strict";var{Duplex:fst}=Ir("stream"),{randomFillSync:XG}=Ir("crypto"),w0=Lg(),{EMPTY_BUFFER:zG,kWebSocket:JG,NOOP:ZG}=ya(),{isBlob:ac,isValidStatusCode:t_}=lc(),{mask:E0,toBuffer:lu}=Cg(),ps=Symbol("kByteLength"),e_=Buffer.alloc(4),XS=8*1024,au,mc=XS,Ys=0,r_=1,o_=2,pw=class l{constructor(e,t,r){this._extensions=t||{},r&&(this._generateMask=r,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=Ys,this.onerror=ZG,this[JG]=void 0}static frame(e,t){let r,o=!1,i=2,n=!1;t.mask&&(r=t.maskBuffer||e_,t.generateMask?t.generateMask(r):(mc===XS&&(au===void 0&&(au=Buffer.alloc(XS)),XG(au,0,XS),mc=0),r[0]=au[mc++],r[1]=au[mc++],r[2]=au[mc++],r[3]=au[mc++]),n=(r[0]|r[1]|r[2]|r[3])===0,i=6);let a;typeof e=="string"?(!t.mask||n)&&t[ps]!==void 0?a=t[ps]:(e=Buffer.from(e),a=e.length):(a=e.length,o=t.mask&&t.readOnly&&!n);let y=a;a>=65536?(i+=8,y=127):a>125&&(i+=2,y=126);let p=Buffer.allocUnsafe(o?a+i:i);return p[0]=t.fin?t.opcode|128:t.opcode,t.rsv1&&(p[0]|=64),p[1]=y,y===126?p.writeUInt16BE(a,2):y===127&&(p[2]=p[3]=0,p.writeUIntBE(a,4,6)),t.mask?(p[1]|=128,p[i-4]=r[0],p[i-3]=r[1],p[i-2]=r[2],p[i-1]=r[3],n?[p,e]:o?(E0(e,r,p,i,a),[p]):(E0(e,r,e,0,a),[p,e])):[p,e]}close(e,t,r,o){let i;if(e===void 0)i=zG;else{if(typeof e!="number"||!t_(e))throw new TypeError("First argument must be a valid error code number");if(t===void 0||!t.length)i=Buffer.allocUnsafe(2),i.writeUInt16BE(e,0);else{let a=Buffer.byteLength(t);if(a>123)throw new RangeError("The message must not be greater than 123 bytes");i=Buffer.allocUnsafe(2+a),i.writeUInt16BE(e,0),typeof t=="string"?i.write(t,2):i.set(t,2)}}let n={[ps]:i.length,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._state!==Ys?this.enqueue([this.dispatch,i,!1,n,o]):this.sendFrame(l.frame(i,n),o)}ping(e,t,r){let o,i;if(typeof e=="string"?(o=Buffer.byteLength(e),i=!1):ac(e)?(o=e.size,i=!1):(e=lu(e),o=e.length,i=lu.readOnly),o>125)throw new RangeError("The data size must not be greater than 125 bytes");let n={[ps]:o,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:9,readOnly:i,rsv1:!1};ac(e)?this._state!==Ys?this.enqueue([this.getBlobData,e,!1,n,r]):this.getBlobData(e,!1,n,r):this._state!==Ys?this.enqueue([this.dispatch,e,!1,n,r]):this.sendFrame(l.frame(e,n),r)}pong(e,t,r){let o,i;if(typeof e=="string"?(o=Buffer.byteLength(e),i=!1):ac(e)?(o=e.size,i=!1):(e=lu(e),o=e.length,i=lu.readOnly),o>125)throw new RangeError("The data size must not be greater than 125 bytes");let n={[ps]:o,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:10,readOnly:i,rsv1:!1};ac(e)?this._state!==Ys?this.enqueue([this.getBlobData,e,!1,n,r]):this.getBlobData(e,!1,n,r):this._state!==Ys?this.enqueue([this.dispatch,e,!1,n,r]):this.sendFrame(l.frame(e,n),r)}send(e,t,r){let o=this._extensions[w0.extensionName],i=t.binary?2:1,n=t.compress,a,y;typeof e=="string"?(a=Buffer.byteLength(e),y=!1):ac(e)?(a=e.size,y=!1):(e=lu(e),a=e.length,y=lu.readOnly),this._firstFragment?(this._firstFragment=!1,n&&o&&o.params[o._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(n=a>=o._threshold),this._compress=n):(n=!1,i=0),t.fin&&(this._firstFragment=!0);let p={[ps]:a,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:i,readOnly:y,rsv1:n};ac(e)?this._state!==Ys?this.enqueue([this.getBlobData,e,this._compress,p,r]):this.getBlobData(e,this._compress,p,r):this._state!==Ys?this.enqueue([this.dispatch,e,this._compress,p,r]):this.dispatch(e,this._compress,p,r)}getBlobData(e,t,r,o){this._bufferedBytes+=r[ps],this._state=o_,e.arrayBuffer().then(i=>{if(this._socket.destroyed){let a=new Error("The socket was closed while the blob was being read");process.nextTick(hw,this,a,o);return}this._bufferedBytes-=r[ps];let n=lu(i);t?this.dispatch(n,t,r,o):(this._state=Ys,this.sendFrame(l.frame(n,r),o),this.dequeue())}).catch(i=>{process.nextTick(i_,this,i,o)})}dispatch(e,t,r,o){if(!t){this.sendFrame(l.frame(e,r),o);return}let i=this._extensions[w0.extensionName];this._bufferedBytes+=r[ps],this._state=r_,i.compress(e,r.fin,(n,a)=>{if(this._socket.destroyed){let y=new Error("The socket was closed while data was being compressed");hw(this,y,o);return}this._bufferedBytes-=r[ps],this._state=Ys,r.readOnly=!1,this.sendFrame(l.frame(a,r),o),this.dequeue()})}dequeue(){for(;this._state===Ys&&this._queue.length;){let e=this._queue.shift();this._bufferedBytes-=e[3][ps],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][ps],this._queue.push(e)}sendFrame(e,t){e.length===2?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}};x0.exports=pw;function hw(l,e,t){typeof t=="function"&&t(e);for(let r=0;r<l._queue.length;r++){let o=l._queue[r],i=o[o.length-1];typeof i=="function"&&i(e)}}function i_(l,e,t){hw(l,e,t),l.onerror(e)}});var R0=Gr((Pst,M0)=>{"use strict";var{kForOnEventAttribute:kg,kListener:dw}=ya(),v0=Symbol("kCode"),T0=Symbol("kData"),C0=Symbol("kError"),N0=Symbol("kMessage"),L0=Symbol("kReason"),yc=Symbol("kTarget"),k0=Symbol("kType"),I0=Symbol("kWasClean"),pa=class{constructor(e){this[yc]=null,this[k0]=e}get target(){return this[yc]}get type(){return this[k0]}};Object.defineProperty(pa.prototype,"target",{enumerable:!0});Object.defineProperty(pa.prototype,"type",{enumerable:!0});var mu=class extends pa{constructor(e,t={}){super(e),this[v0]=t.code===void 0?0:t.code,this[L0]=t.reason===void 0?"":t.reason,this[I0]=t.wasClean===void 0?!1:t.wasClean}get code(){return this[v0]}get reason(){return this[L0]}get wasClean(){return this[I0]}};Object.defineProperty(mu.prototype,"code",{enumerable:!0});Object.defineProperty(mu.prototype,"reason",{enumerable:!0});Object.defineProperty(mu.prototype,"wasClean",{enumerable:!0});var uc=class extends pa{constructor(e,t={}){super(e),this[C0]=t.error===void 0?null:t.error,this[N0]=t.message===void 0?"":t.message}get error(){return this[C0]}get message(){return this[N0]}};Object.defineProperty(uc.prototype,"error",{enumerable:!0});Object.defineProperty(uc.prototype,"message",{enumerable:!0});var Ig=class extends pa{constructor(e,t={}){super(e),this[T0]=t.data===void 0?null:t.data}get data(){return this[T0]}};Object.defineProperty(Ig.prototype,"data",{enumerable:!0});var s_={addEventListener(l,e,t={}){for(let o of this.listeners(l))if(!t[kg]&&o[dw]===e&&!o[kg])return;let r;if(l==="message")r=function(i,n){let a=new Ig("message",{data:n?i:i.toString()});a[yc]=this,zS(e,this,a)};else if(l==="close")r=function(i,n){let a=new mu("close",{code:i,reason:n.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});a[yc]=this,zS(e,this,a)};else if(l==="error")r=function(i){let n=new uc("error",{error:i,message:i.message});n[yc]=this,zS(e,this,n)};else if(l==="open")r=function(){let i=new pa("open");i[yc]=this,zS(e,this,i)};else return;r[kg]=!!t[kg],r[dw]=e,t.once?this.once(l,r):this.on(l,r)},removeEventListener(l,e){for(let t of this.listeners(l))if(t[dw]===e&&!t[kg]){this.removeListener(l,t);break}}};M0.exports={CloseEvent:mu,ErrorEvent:uc,Event:pa,EventTarget:s_,MessageEvent:Ig};function zS(l,e,t){typeof l=="object"&&l.handleEvent?l.handleEvent.call(l,t):l.call(e,t)}});var bw=Gr((Ast,F0)=>{"use strict";var{tokenChars:Mg}=lc();function il(l,e,t){l[e]===void 0?l[e]=[t]:l[e].push(t)}function n_(l){let e=Object.create(null),t=Object.create(null),r=!1,o=!1,i=!1,n,a,y=-1,p=-1,d=-1,b=0;for(;b<l.length;b++)if(p=l.charCodeAt(b),n===void 0)if(d===-1&&Mg[p]===1)y===-1&&(y=b);else if(b!==0&&(p===32||p===9))d===-1&&y!==-1&&(d=b);else if(p===59||p===44){if(y===-1)throw new SyntaxError(`Unexpected character at index ${b}`);d===-1&&(d=b);let S=l.slice(y,d);p===44?(il(e,S,t),t=Object.create(null)):n=S,y=d=-1}else throw new SyntaxError(`Unexpected character at index ${b}`);else if(a===void 0)if(d===-1&&Mg[p]===1)y===-1&&(y=b);else if(p===32||p===9)d===-1&&y!==-1&&(d=b);else if(p===59||p===44){if(y===-1)throw new SyntaxError(`Unexpected character at index ${b}`);d===-1&&(d=b),il(t,l.slice(y,d),!0),p===44&&(il(e,n,t),t=Object.create(null),n=void 0),y=d=-1}else if(p===61&&y!==-1&&d===-1)a=l.slice(y,b),y=d=-1;else throw new SyntaxError(`Unexpected character at index ${b}`);else if(o){if(Mg[p]!==1)throw new SyntaxError(`Unexpected character at index ${b}`);y===-1?y=b:r||(r=!0),o=!1}else if(i)if(Mg[p]===1)y===-1&&(y=b);else if(p===34&&y!==-1)i=!1,d=b;else if(p===92)o=!0;else throw new SyntaxError(`Unexpected character at index ${b}`);else if(p===34&&l.charCodeAt(b-1)===61)i=!0;else if(d===-1&&Mg[p]===1)y===-1&&(y=b);else if(y!==-1&&(p===32||p===9))d===-1&&(d=b);else if(p===59||p===44){if(y===-1)throw new SyntaxError(`Unexpected character at index ${b}`);d===-1&&(d=b);let S=l.slice(y,d);r&&(S=S.replace(/\\/g,""),r=!1),il(t,a,S),p===44&&(il(e,n,t),t=Object.create(null),n=void 0),a=void 0,y=d=-1}else throw new SyntaxError(`Unexpected character at index ${b}`);if(y===-1||i||p===32||p===9)throw new SyntaxError("Unexpected end of input");d===-1&&(d=b);let f=l.slice(y,d);return n===void 0?il(e,f,t):(a===void 0?il(t,f,!0):r?il(t,a,f.replace(/\\/g,"")):il(t,a,f),il(e,n,t)),e}function l_(l){return Object.keys(l).map(e=>{let t=l[e];return Array.isArray(t)||(t=[t]),t.map(r=>[e].concat(Object.keys(r).map(o=>{let i=r[o];return Array.isArray(i)||(i=[i]),i.map(n=>n===!0?o:`${o}=${n}`).join("; ")})).join("; ")).join(", ")}).join(", ")}F0.exports={format:l_,parse:n_}});var eP=Gr((xst,K0)=>{"use strict";var a_=Ir("events"),m_=Ir("https"),y_=Ir("http"),O0=Ir("net"),u_=Ir("tls"),{randomBytes:p_,createHash:h_}=Ir("crypto"),{Duplex:wst,Readable:Est}=Ir("stream"),{URL:gw}=Ir("url"),qm=Lg(),c_=uw(),d_=cw(),{isBlob:b_}=lc(),{BINARY_TYPES:B0,CLOSE_TIMEOUT:g_,EMPTY_BUFFER:JS,GUID:f_,kForOnEventAttribute:fw,kListener:S_,kStatusCode:P_,kWebSocket:no,NOOP:V0}=ya(),{EventTarget:{addEventListener:A_,removeEventListener:w_}}=R0(),{format:E_,parse:x_}=bw(),{toBuffer:v_}=Cg(),U0=Symbol("kAborted"),Sw=[8,13],ha=["CONNECTING","OPEN","CLOSING","CLOSED"],T_=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/,or=class l extends a_{constructor(e,t,r){super(),this._binaryType=B0[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=JS,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=l.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,e!==null?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,t===void 0?t=[]:Array.isArray(t)||(typeof t=="object"&&t!==null?(r=t,t=[]):t=[t]),G0(this,e,t,r)):(this._autoPong=r.autoPong,this._closeTimeout=r.closeTimeout,this._isServer=!0)}get binaryType(){return this._binaryType}set binaryType(e){B0.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,t,r){let o=new c_({allowSynchronousEvents:r.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:r.maxPayload,skipUTF8Validation:r.skipUTF8Validation}),i=new d_(e,this._extensions,r.generateMask);this._receiver=o,this._sender=i,this._socket=e,o[no]=this,i[no]=this,e[no]=this,o.on("conclude",L_),o.on("drain",k_),o.on("error",I_),o.on("message",M_),o.on("ping",R_),o.on("pong",F_),i.onerror=B_,e.setTimeout&&e.setTimeout(0),e.setNoDelay&&e.setNoDelay(),t.length>0&&e.unshift(t),e.on("close",W0),e.on("data",tP),e.on("end",Y0),e.on("error",q0),this._readyState=l.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=l.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}this._extensions[qm.extensionName]&&this._extensions[qm.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=l.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState!==l.CLOSED){if(this.readyState===l.CONNECTING){_i(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===l.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=l.CLOSING,this._sender.close(e,t,!this._isServer,r=>{r||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),H0(this)}}pause(){this.readyState===l.CONNECTING||this.readyState===l.CLOSED||(this._paused=!0,this._socket.pause())}ping(e,t,r){if(this.readyState===l.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(r=e,e=t=void 0):typeof t=="function"&&(r=t,t=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==l.OPEN){Pw(this,e,r);return}t===void 0&&(t=!this._isServer),this._sender.ping(e||JS,t,r)}pong(e,t,r){if(this.readyState===l.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(r=e,e=t=void 0):typeof t=="function"&&(r=t,t=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==l.OPEN){Pw(this,e,r);return}t===void 0&&(t=!this._isServer),this._sender.pong(e||JS,t,r)}resume(){this.readyState===l.CONNECTING||this.readyState===l.CLOSED||(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(e,t,r){if(this.readyState===l.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof t=="function"&&(r=t,t={}),typeof e=="number"&&(e=e.toString()),this.readyState!==l.OPEN){Pw(this,e,r);return}let o={binary:typeof e!="string",mask:!this._isServer,compress:!0,fin:!0,...t};this._extensions[qm.extensionName]||(o.compress=!1),this._sender.send(e||JS,o,r)}terminate(){if(this.readyState!==l.CLOSED){if(this.readyState===l.CONNECTING){_i(this,this._req,"WebSocket was closed before the connection was established");return}this._socket&&(this._readyState=l.CLOSING,this._socket.destroy())}}};Object.defineProperty(or,"CONNECTING",{enumerable:!0,value:ha.indexOf("CONNECTING")});Object.defineProperty(or.prototype,"CONNECTING",{enumerable:!0,value:ha.indexOf("CONNECTING")});Object.defineProperty(or,"OPEN",{enumerable:!0,value:ha.indexOf("OPEN")});Object.defineProperty(or.prototype,"OPEN",{enumerable:!0,value:ha.indexOf("OPEN")});Object.defineProperty(or,"CLOSING",{enumerable:!0,value:ha.indexOf("CLOSING")});Object.defineProperty(or.prototype,"CLOSING",{enumerable:!0,value:ha.indexOf("CLOSING")});Object.defineProperty(or,"CLOSED",{enumerable:!0,value:ha.indexOf("CLOSED")});Object.defineProperty(or.prototype,"CLOSED",{enumerable:!0,value:ha.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(l=>{Object.defineProperty(or.prototype,l,{enumerable:!0})});["open","error","close","message"].forEach(l=>{Object.defineProperty(or.prototype,`on${l}`,{enumerable:!0,get(){for(let e of this.listeners(l))if(e[fw])return e[S_];return null},set(e){for(let t of this.listeners(l))if(t[fw]){this.removeListener(l,t);break}typeof e=="function"&&this.addEventListener(l,e,{[fw]:!0})}})});or.prototype.addEventListener=A_;or.prototype.removeEventListener=w_;K0.exports=or;function G0(l,e,t,r){let o={allowSynchronousEvents:!0,autoPong:!0,closeTimeout:g_,protocolVersion:Sw[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...r,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(l._autoPong=o.autoPong,l._closeTimeout=o.closeTimeout,!Sw.includes(o.protocolVersion))throw new RangeError(`Unsupported protocol version: ${o.protocolVersion} (supported versions: ${Sw.join(", ")})`);let i;if(e instanceof gw)i=e;else try{i=new gw(e)}catch{throw new SyntaxError(`Invalid URL: ${e}`)}i.protocol==="http:"?i.protocol="ws:":i.protocol==="https:"&&(i.protocol="wss:"),l._url=i.href;let n=i.protocol==="wss:",a=i.protocol==="ws+unix:",y;if(i.protocol!=="ws:"&&!n&&!a?y=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`:a&&!i.pathname?y="The URL's pathname is empty":i.hash&&(y="The URL contains a fragment identifier"),y){let N=new SyntaxError(y);if(l._redirects===0)throw N;ZS(l,N);return}let p=n?443:80,d=p_(16).toString("base64"),b=n?m_.request:y_.request,f=new Set,S;if(o.createConnection=o.createConnection||(n?N_:C_),o.defaultPort=o.defaultPort||p,o.port=i.port||p,o.host=i.hostname.startsWith("[")?i.hostname.slice(1,-1):i.hostname,o.headers={...o.headers,"Sec-WebSocket-Version":o.protocolVersion,"Sec-WebSocket-Key":d,Connection:"Upgrade",Upgrade:"websocket"},o.path=i.pathname+i.search,o.timeout=o.handshakeTimeout,o.perMessageDeflate&&(S=new qm(o.perMessageDeflate!==!0?o.perMessageDeflate:{},!1,o.maxPayload),o.headers["Sec-WebSocket-Extensions"]=E_({[qm.extensionName]:S.offer()})),t.length){for(let N of t){if(typeof N!="string"||!T_.test(N)||f.has(N))throw new SyntaxError("An invalid or duplicated subprotocol was specified");f.add(N)}o.headers["Sec-WebSocket-Protocol"]=t.join(",")}if(o.origin&&(o.protocolVersion<13?o.headers["Sec-WebSocket-Origin"]=o.origin:o.headers.Origin=o.origin),(i.username||i.password)&&(o.auth=`${i.username}:${i.password}`),a){let N=o.path.split(":");o.socketPath=N[0],o.path=N[1]}let M;if(o.followRedirects){if(l._redirects===0){l._originalIpc=a,l._originalSecure=n,l._originalHostOrSocketPath=a?o.socketPath:i.host;let N=r&&r.headers;if(r={...r,headers:{}},N)for(let[K,mt]of Object.entries(N))r.headers[K.toLowerCase()]=mt}else if(l.listenerCount("redirect")===0){let N=a?l._originalIpc?o.socketPath===l._originalHostOrSocketPath:!1:l._originalIpc?!1:i.host===l._originalHostOrSocketPath;(!N||l._originalSecure&&!n)&&(delete o.headers.authorization,delete o.headers.cookie,N||delete o.headers.host,o.auth=void 0)}o.auth&&!r.headers.authorization&&(r.headers.authorization="Basic "+Buffer.from(o.auth).toString("base64")),M=l._req=b(o),l._redirects&&l.emit("redirect",l.url,M)}else M=l._req=b(o);o.timeout&&M.on("timeout",()=>{_i(l,M,"Opening handshake has timed out")}),M.on("error",N=>{M===null||M[U0]||(M=l._req=null,ZS(l,N))}),M.on("response",N=>{let K=N.headers.location,mt=N.statusCode;if(K&&o.followRedirects&&mt>=300&&mt<400){if(++l._redirects>o.maxRedirects){_i(l,M,"Maximum redirects exceeded");return}M.abort();let Nt;try{Nt=new gw(K,e)}catch{let at=new SyntaxError(`Invalid URL: ${K}`);ZS(l,at);return}G0(l,Nt,t,r)}else l.emit("unexpected-response",M,N)||_i(l,M,`Unexpected server response: ${N.statusCode}`)}),M.on("upgrade",(N,K,mt)=>{if(l.emit("upgrade",N),l.readyState!==or.CONNECTING)return;M=l._req=null;let Nt=N.headers.upgrade;if(Nt===void 0||Nt.toLowerCase()!=="websocket"){_i(l,K,"Invalid Upgrade header");return}let qt=h_("sha1").update(d+f_).digest("base64");if(N.headers["sec-websocket-accept"]!==qt){_i(l,K,"Invalid Sec-WebSocket-Accept header");return}let at=N.headers["sec-websocket-protocol"],xt;if(at!==void 0?f.size?f.has(at)||(xt="Server sent an invalid subprotocol"):xt="Server sent a subprotocol but none was requested":f.size&&(xt="Server sent no subprotocol"),xt){_i(l,K,xt);return}at&&(l._protocol=at);let It=N.headers["sec-websocket-extensions"];if(It!==void 0){if(!S){_i(l,K,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let At;try{At=x_(It)}catch{_i(l,K,"Invalid Sec-WebSocket-Extensions header");return}let ze=Object.keys(At);if(ze.length!==1||ze[0]!==qm.extensionName){_i(l,K,"Server indicated an extension that was not requested");return}try{S.accept(At[qm.extensionName])}catch{_i(l,K,"Invalid Sec-WebSocket-Extensions header");return}l._extensions[qm.extensionName]=S}l.setSocket(K,mt,{allowSynchronousEvents:o.allowSynchronousEvents,generateMask:o.generateMask,maxPayload:o.maxPayload,skipUTF8Validation:o.skipUTF8Validation})}),o.finishRequest?o.finishRequest(M,l):M.end()}function ZS(l,e){l._readyState=or.CLOSING,l._errorEmitted=!0,l.emit("error",e),l.emitClose()}function C_(l){return l.path=l.socketPath,O0.connect(l)}function N_(l){return l.path=void 0,!l.servername&&l.servername!==""&&(l.servername=O0.isIP(l.host)?"":l.host),u_.connect(l)}function _i(l,e,t){l._readyState=or.CLOSING;let r=new Error(t);Error.captureStackTrace(r,_i),e.setHeader?(e[U0]=!0,e.abort(),e.socket&&!e.socket.destroyed&&e.socket.destroy(),process.nextTick(ZS,l,r)):(e.destroy(r),e.once("error",l.emit.bind(l,"error")),e.once("close",l.emitClose.bind(l)))}function Pw(l,e,t){if(e){let r=b_(e)?e.size:v_(e).length;l._socket?l._sender._bufferedBytes+=r:l._bufferedAmount+=r}if(t){let r=new Error(`WebSocket is not open: readyState ${l.readyState} (${ha[l.readyState]})`);process.nextTick(t,r)}}function L_(l,e){let t=this[no];t._closeFrameReceived=!0,t._closeMessage=e,t._closeCode=l,t._socket[no]!==void 0&&(t._socket.removeListener("data",tP),process.nextTick(_0,t._socket),l===1005?t.close():t.close(l,e))}function k_(){let l=this[no];l.isPaused||l._socket.resume()}function I_(l){let e=this[no];e._socket[no]!==void 0&&(e._socket.removeListener("data",tP),process.nextTick(_0,e._socket),e.close(l[P_])),e._errorEmitted||(e._errorEmitted=!0,e.emit("error",l))}function D0(){this[no].emitClose()}function M_(l,e){this[no].emit("message",l,e)}function R_(l){let e=this[no];e._autoPong&&e.pong(l,!this._isServer,V0),e.emit("ping",l)}function F_(l){this[no].emit("pong",l)}function _0(l){l.resume()}function B_(l){let e=this[no];e.readyState!==or.CLOSED&&(e.readyState===or.OPEN&&(e._readyState=or.CLOSING,H0(e)),this._socket.end(),e._errorEmitted||(e._errorEmitted=!0,e.emit("error",l)))}function H0(l){l._closeTimer=setTimeout(l._socket.destroy.bind(l._socket),l._closeTimeout)}function W0(){let l=this[no];if(this.removeListener("close",W0),this.removeListener("data",tP),this.removeListener("end",Y0),l._readyState=or.CLOSING,!this._readableState.endEmitted&&!l._closeFrameReceived&&!l._receiver._writableState.errorEmitted&&this._readableState.length!==0){let e=this.read(this._readableState.length);l._receiver.write(e)}l._receiver.end(),this[no]=void 0,clearTimeout(l._closeTimer),l._receiver._writableState.finished||l._receiver._writableState.errorEmitted?l.emitClose():(l._receiver.on("error",D0),l._receiver.on("finish",D0))}function tP(l){this[no]._receiver.write(l)||this.pause()}function Y0(){let l=this[no];l._readyState=or.CLOSING,l._receiver.end(),this.end()}function q0(){let l=this[no];this.removeListener("error",q0),this.on("error",V0),l&&(l._readyState=or.CLOSING,this.destroy())}});var X0=Gr((Tst,$0)=>{"use strict";var vst=eP(),{Duplex:D_}=Ir("stream");function j0(l){l.emit("close")}function O_(){!this.destroyed&&this._writableState.finished&&this.destroy()}function Q0(l){this.removeListener("error",Q0),this.destroy(),this.listenerCount("error")===0&&this.emit("error",l)}function V_(l,e){let t=!0,r=new D_({...e,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return l.on("message",function(i,n){let a=!n&&r._readableState.objectMode?i.toString():i;r.push(a)||l.pause()}),l.once("error",function(i){r.destroyed||(t=!1,r.destroy(i))}),l.once("close",function(){r.destroyed||r.push(null)}),r._destroy=function(o,i){if(l.readyState===l.CLOSED){i(o),process.nextTick(j0,r);return}let n=!1;l.once("error",function(y){n=!0,i(y)}),l.once("close",function(){n||i(o),process.nextTick(j0,r)}),t&&l.terminate()},r._final=function(o){if(l.readyState===l.CONNECTING){l.once("open",function(){r._final(o)});return}l._socket!==null&&(l._socket._writableState.finished?(o(),r._readableState.endEmitted&&r.destroy()):(l._socket.once("finish",function(){o()}),l.close()))},r._read=function(){l.isPaused&&l.resume()},r._write=function(o,i,n){if(l.readyState===l.CONNECTING){l.once("open",function(){r._write(o,i,n)});return}l.send(o,n)},r.on("end",O_),r.on("error",Q0),r}$0.exports=V_});var J0=Gr((Cst,z0)=>{"use strict";var{tokenChars:U_}=lc();function G_(l){let e=new Set,t=-1,r=-1,o=0;for(o;o<l.length;o++){let n=l.charCodeAt(o);if(r===-1&&U_[n]===1)t===-1&&(t=o);else if(o!==0&&(n===32||n===9))r===-1&&t!==-1&&(r=o);else if(n===44){if(t===-1)throw new SyntaxError(`Unexpected character at index ${o}`);r===-1&&(r=o);let a=l.slice(t,r);if(e.has(a))throw new SyntaxError(`The "${a}" subprotocol is duplicated`);e.add(a),t=r=-1}else throw new SyntaxError(`Unexpected character at index ${o}`)}if(t===-1||r!==-1)throw new SyntaxError("Unexpected end of input");let i=l.slice(t,o);if(e.has(i))throw new SyntaxError(`The "${i}" subprotocol is duplicated`);return e.add(i),e}z0.exports={parse:G_}});var sk=Gr((Lst,ik)=>{"use strict";var __=Ir("events"),rP=Ir("http"),{Duplex:Nst}=Ir("stream"),{createHash:H_}=Ir("crypto"),Z0=bw(),yu=Lg(),W_=J0(),Y_=eP(),{CLOSE_TIMEOUT:q_,GUID:K_,kWebSocket:j_}=ya(),Q_=/^[+/0-9A-Za-z]{22}==$/,tk=0,ek=1,ok=2,Aw=class extends __{constructor(e,t){if(super(),e={allowSynchronousEvents:!0,autoPong:!0,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,closeTimeout:q_,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:Y_,...e},e.port==null&&!e.server&&!e.noServer||e.port!=null&&(e.server||e.noServer)||e.server&&e.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(e.port!=null?(this._server=rP.createServer((r,o)=>{let i=rP.STATUS_CODES[426];o.writeHead(426,{"Content-Length":i.length,"Content-Type":"text/plain"}),o.end(i)}),this._server.listen(e.port,e.host,e.backlog,t)):e.server&&(this._server=e.server),this._server){let r=this.emit.bind(this,"connection");this._removeListeners=$_(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(o,i,n)=>{this.handleUpgrade(o,i,n,r)}})}e.perMessageDeflate===!0&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=tk}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(e){if(this._state===ok){e&&this.once("close",()=>{e(new Error("The server is not running"))}),process.nextTick(Rg,this);return}if(e&&this.once("close",e),this._state!==ek)if(this._state=ek,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients?this.clients.size?this._shouldEmitClose=!0:process.nextTick(Rg,this):process.nextTick(Rg,this);else{let t=this._server;this._removeListeners(),this._removeListeners=this._server=null,t.close(()=>{Rg(this)})}}shouldHandle(e){if(this.options.path){let t=e.url.indexOf("?");if((t!==-1?e.url.slice(0,t):e.url)!==this.options.path)return!1}return!0}handleUpgrade(e,t,r,o){t.on("error",rk);let i=e.headers["sec-websocket-key"],n=e.headers.upgrade,a=+e.headers["sec-websocket-version"];if(e.method!=="GET"){uu(this,e,t,405,"Invalid HTTP method");return}if(n===void 0||n.toLowerCase()!=="websocket"){uu(this,e,t,400,"Invalid Upgrade header");return}if(i===void 0||!Q_.test(i)){uu(this,e,t,400,"Missing or invalid Sec-WebSocket-Key header");return}if(a!==13&&a!==8){uu(this,e,t,400,"Missing or invalid Sec-WebSocket-Version header",{"Sec-WebSocket-Version":"13, 8"});return}if(!this.shouldHandle(e)){Fg(t,400);return}let y=e.headers["sec-websocket-protocol"],p=new Set;if(y!==void 0)try{p=W_.parse(y)}catch{uu(this,e,t,400,"Invalid Sec-WebSocket-Protocol header");return}let d=e.headers["sec-websocket-extensions"],b={};if(this.options.perMessageDeflate&&d!==void 0){let f=new yu(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let S=Z0.parse(d);S[yu.extensionName]&&(f.accept(S[yu.extensionName]),b[yu.extensionName]=f)}catch{uu(this,e,t,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let f={origin:e.headers[`${a===8?"sec-websocket-origin":"origin"}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(f,(S,M,N,K)=>{if(!S)return Fg(t,M||401,N,K);this.completeUpgrade(b,i,p,e,t,r,o)});return}if(!this.options.verifyClient(f))return Fg(t,401)}this.completeUpgrade(b,i,p,e,t,r,o)}completeUpgrade(e,t,r,o,i,n,a){if(!i.readable||!i.writable)return i.destroy();if(i[j_])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>tk)return Fg(i,503);let p=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${H_("sha1").update(t+K_).digest("base64")}`],d=new this.options.WebSocket(null,void 0,this.options);if(r.size){let b=this.options.handleProtocols?this.options.handleProtocols(r,o):r.values().next().value;b&&(p.push(`Sec-WebSocket-Protocol: ${b}`),d._protocol=b)}if(e[yu.extensionName]){let b=e[yu.extensionName].params,f=Z0.format({[yu.extensionName]:[b]});p.push(`Sec-WebSocket-Extensions: ${f}`),d._extensions=e}this.emit("headers",p,o),i.write(p.concat(`\r
4
4
  `).join(`\r
5
- `)),i.removeListener("error",rk),d.setSocket(i,n,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(d),d.on("close",()=>{this.clients.delete(d),this._shouldEmitClose&&!this.clients.size&&process.nextTick(Rg,this)})),a(d,o)}};ik.exports=Aw;function Q_(l,e){for(let t of Object.keys(e))l.on(t,e[t]);return function(){for(let r of Object.keys(e))l.removeListener(r,e[r])}}function Rg(l){l._state=ok,l.emit("close")}function rk(){this.destroy()}function Fg(l,e,t,r){t=t||rP.STATUS_CODES[e],r={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(t),...r},l.once("finish",l.destroy),l.end(`HTTP/1.1 ${e} ${rP.STATUS_CODES[e]}\r
5
+ `)),i.removeListener("error",rk),d.setSocket(i,n,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(d),d.on("close",()=>{this.clients.delete(d),this._shouldEmitClose&&!this.clients.size&&process.nextTick(Rg,this)})),a(d,o)}};ik.exports=Aw;function $_(l,e){for(let t of Object.keys(e))l.on(t,e[t]);return function(){for(let r of Object.keys(e))l.removeListener(r,e[r])}}function Rg(l){l._state=ok,l.emit("close")}function rk(){this.destroy()}function Fg(l,e,t,r){t=t||rP.STATUS_CODES[e],r={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(t),...r},l.once("finish",l.destroy),l.end(`HTTP/1.1 ${e} ${rP.STATUS_CODES[e]}\r
6
6
  `+Object.keys(r).map(o=>`${o}: ${r[o]}`).join(`\r
7
7
  `)+`\r
8
8
  \r
9
- `+t)}function uu(l,e,t,r,o,i){if(l.listenerCount("wsClientError")){let n=new Error(o);Error.captureStackTrace(n,uu),l.emit("wsClientError",n,t,e)}else Fg(t,r,o,i)}});var VV=Gr((Bxt,Rw)=>{var yP=process||{},DV=yP.argv||[],mP=yP.env||{},wH=!(mP.NO_COLOR||DV.includes("--no-color"))&&(!!mP.FORCE_COLOR||DV.includes("--color")||yP.platform==="win32"||(yP.stdout||{}).isTTY&&mP.TERM!=="dumb"||!!mP.CI),EH=(l,e,t=l)=>r=>{let o=""+r,i=o.indexOf(e,l.length);return~i?l+xH(o,e,t,i)+e:l+o+e},xH=(l,e,t,r)=>{let o="",i=0;do o+=l.substring(i,r)+t,i=r+e.length,r=l.indexOf(e,i);while(~r);return o+l.substring(i)},OV=(l=wH)=>{let e=l?EH:()=>String;return{isColorSupported:l,reset:e("\x1B[0m","\x1B[0m"),bold:e("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:e("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:e("\x1B[3m","\x1B[23m"),underline:e("\x1B[4m","\x1B[24m"),inverse:e("\x1B[7m","\x1B[27m"),hidden:e("\x1B[8m","\x1B[28m"),strikethrough:e("\x1B[9m","\x1B[29m"),black:e("\x1B[30m","\x1B[39m"),red:e("\x1B[31m","\x1B[39m"),green:e("\x1B[32m","\x1B[39m"),yellow:e("\x1B[33m","\x1B[39m"),blue:e("\x1B[34m","\x1B[39m"),magenta:e("\x1B[35m","\x1B[39m"),cyan:e("\x1B[36m","\x1B[39m"),white:e("\x1B[37m","\x1B[39m"),gray:e("\x1B[90m","\x1B[39m"),bgBlack:e("\x1B[40m","\x1B[49m"),bgRed:e("\x1B[41m","\x1B[49m"),bgGreen:e("\x1B[42m","\x1B[49m"),bgYellow:e("\x1B[43m","\x1B[49m"),bgBlue:e("\x1B[44m","\x1B[49m"),bgMagenta:e("\x1B[45m","\x1B[49m"),bgCyan:e("\x1B[46m","\x1B[49m"),bgWhite:e("\x1B[47m","\x1B[49m"),blackBright:e("\x1B[90m","\x1B[39m"),redBright:e("\x1B[91m","\x1B[39m"),greenBright:e("\x1B[92m","\x1B[39m"),yellowBright:e("\x1B[93m","\x1B[39m"),blueBright:e("\x1B[94m","\x1B[39m"),magentaBright:e("\x1B[95m","\x1B[39m"),cyanBright:e("\x1B[96m","\x1B[39m"),whiteBright:e("\x1B[97m","\x1B[39m"),bgBlackBright:e("\x1B[100m","\x1B[49m"),bgRedBright:e("\x1B[101m","\x1B[49m"),bgGreenBright:e("\x1B[102m","\x1B[49m"),bgYellowBright:e("\x1B[103m","\x1B[49m"),bgBlueBright:e("\x1B[104m","\x1B[49m"),bgMagentaBright:e("\x1B[105m","\x1B[49m"),bgCyanBright:e("\x1B[106m","\x1B[49m"),bgWhiteBright:e("\x1B[107m","\x1B[49m")}};Rw.exports=OV();Rw.exports.createColors=OV});import{createRequire as CH}from"node:module";import{fileURLToPath as NH,pathToFileURL as LH}from"node:url";import wu from"node:fs";import Yf from"node:path";import vH from"node:crypto";import{fileURLToPath as TH}from"node:url";import{URLSearchParams as rAt}from"url";var gs=Symbol("abort"),qe=Symbol("activeElement"),gt=Symbol("asyncTaskManager"),fs=Symbol("bodyBuffer"),Mt=Symbol("buffer"),Ki=Symbol("cachedResponse"),Ss=Symbol("callbacks"),xa=Symbol("checked"),ul=Symbol("childNodes"),Mr=Symbol("children"),Eu=Symbol("classList"),Io=Symbol("connectedToNode"),en=Symbol("disconnectedFromNode"),Rr=Symbol("connectedToDocument"),Fr=Symbol("disconnectedFromDocument"),iy=Symbol("contentLength"),Fe=Symbol("contentType"),Xr=Symbol("cssText"),vi=Symbol("currentScript"),Ti=Symbol("currentTarget"),Xt=Symbol("data"),mo=Symbol("defaultView"),wt=Symbol("destroy"),va=Symbol("dirtyness"),j=Symbol("end"),Pr=Symbol("entries");var Ci=Symbol("evaluateScript"),_r=Symbol("exceptionObserver"),Ht=Symbol("formNode"),Ta=Symbol("internalId"),O=Symbol("height"),pl=Symbol("immediatePropagationStopped"),Ca=Symbol("indeterminate"),rn=Symbol("isFirstWrite"),on=Symbol("isFirstWriteAfterOpen"),xu=Symbol("isInPassiveEventListener"),Mo=Symbol("isValue"),hl=Symbol("listenerOptions"),fe=Symbol("listeners"),Eo=Symbol("itemsByName"),cl=Symbol("nextActiveElement"),sy=Symbol("observeMutations"),Ro=Symbol("mutationListeners"),T=Symbol("ownerDocument"),Lt=Symbol("ownerElement"),dl=Symbol("propagationStopped"),yi=Symbol("readyStateManager"),zr=Symbol("referrer"),Ps=Symbol("registry"),Fo=Symbol("relList"),vu=Symbol("resetSelection"),Be=Symbol("rootNode"),Ke=Symbol("selectNode"),Jr=Symbol("selectedness"),Na=Symbol("selection"),kc=Symbol("setupVMContext"),Ee=Symbol("shadowRoot"),_=Symbol("start"),xe=Symbol("style"),Zr=Symbol("target"),Ar=Symbol("textAreaNode"),Tu=Symbol("unobserveMutations"),sn=Symbol("reportMutation"),La=Symbol("updateSelectedness"),Ie=Symbol("url"),z=Symbol("value"),V=Symbol("width"),m=Symbol("window"),jf=Symbol("windowResizeListener"),ka=Symbol("mutationObservers"),xo=Symbol("openerFrame"),ji=Symbol("openerWindow"),Ic=Symbol("pointerCaptures"),bl=Symbol("popup"),it=Symbol("isConnected"),Y=Symbol("parentNode"),U=Symbol("nodeType"),Z=Symbol("tagName"),Ot=Symbol("prefix"),pP=Symbol("scrollHeight"),hP=Symbol("scrollWidth"),Qf=Symbol("scrollTop"),$f=Symbol("scrollLeft"),ft=Symbol("attributes"),Cu=Symbol("attributesProxy"),tt=Symbol("namespaceURI"),Nu=Symbol("accessKey");var cP=Symbol("offsetHeight"),dP=Symbol("offsetWidth"),bP=Symbol("offsetLeft"),gP=Symbol("offsetTop"),fP=Symbol("clientHeight"),SP=Symbol("clientWidth"),PP=Symbol("clientLeft"),AP=Symbol("clientTop"),st=Symbol("name"),Mc=Symbol("specified"),gl=Symbol("adoptedStyleSheets"),Xf=Symbol("implementation"),Ia=Symbol("readyState"),fl=Symbol("publicId"),Sl=Symbol("systemId"),_e=Symbol("validationMessage"),pr=Symbol("validity"),zf=Symbol("returnValue"),nn=Symbol("elements");var wP=Symbol("complete"),EP=Symbol("naturalHeight"),xP=Symbol("naturalWidth"),Bw=Symbol("loading"),R=Symbol("x"),F=Symbol("y");var Qi=Symbol("files"),Je=Symbol("sheet"),Jf=Symbol("volume"),ny=Symbol("paused"),Zf=Symbol("currentTime"),tS=Symbol("playbackRate"),eS=Symbol("defaultPlaybackRate"),Lu=Symbol("muted"),ly=Symbol("defaultMuted"),rS=Symbol("preservesPitch"),vP=Symbol("buffered"),TP=Symbol("duration"),hr=Symbol("error"),CP=Symbol("ended"),NP=Symbol("networkState"),oS=Symbol("textTracks"),LP=Symbol("seeking"),kP=Symbol("seekable"),IP=Symbol("played"),ln=Symbol("options"),Bo=Symbol("content"),Me=Symbol("mode"),Ma=Symbol("host"),yo=Symbol("setURL"),nt=Symbol("localName"),ku=Symbol("classRegistry"),Rc=Symbol("nodeStream"),vo=Symbol("location"),je=Symbol("history"),iS=Symbol("navigator"),sS=Symbol("screen"),nS=Symbol("sessionStorage"),lS=Symbol("localStorage"),Fc=Symbol("sandbox"),ct=Symbol("cloneNode"),vt=Symbol("appendChild"),Hr=Symbol("removeChild"),uo=Symbol("insertBefore"),Iu=Symbol("replaceChild"),As=Symbol("tracks"),Mu=Symbol("constraints"),ws=Symbol("capabilities"),Ra=Symbol("settings");var Pl=Symbol("removeNamedItem"),$=Symbol("items"),Fa=Symbol("selectedOptions"),Wr=Symbol("styleNode"),Ba=Symbol("updateSheet"),po=Symbol("clearCache"),Qe=Symbol("onSetAttribute"),Yr=Symbol("onRemoveAttribute"),q=Symbol("nodeArray"),dt=Symbol("elementArray"),W=Symbol("cache"),ir=Symbol("affectsCache"),Ru=Symbol("forms"),$i=Symbol("affectsComputedStyleCache"),ay=Symbol("query"),my=Symbol("computedStyle"),Do=Symbol("getFormControlItems"),Bc=Symbol("getFormControlNamedItem"),aS=Symbol("dataset");var Es=Symbol("itemsByNamespaceURI"),Vt=Symbol("proxy"),Xi=Symbol("setNamedItem"),to=Symbol("getTokenList"),Al=Symbol("attributeName"),Ni=Symbol("selectedIndex"),Da=Symbol("self"),Oo=Symbol("parent"),zi=Symbol("top"),Dc=Symbol("areas"),Vo=Symbol("defaultValue"),xs=Symbol("elementIdMap"),Oa=Symbol("clonable"),yy=Symbol("delegatesFocus"),an=Symbol("serializable"),vs=Symbol("slotAssignment"),mn=Symbol("assignedNodes"),Ji=Symbol("assignedToSlot"),Oc=Symbol("cells"),Vc=Symbol("rows"),mS=Symbol("headers"),Uc=Symbol("tBodies"),Fu=Symbol("track"),Gc=Symbol("controlsList"),yS=Symbol("mediaKeys"),MP=Symbol("remote"),uS=Symbol("sinkId"),pS=Symbol("srcObject"),uy=Symbol("cues"),RP=Symbol("activeCues"),ui=Symbol("kind"),wl=Symbol("label"),py=Symbol("language"),_c=Symbol("id"),h=Symbol("illegalConstructor"),FP=Symbol("state"),Hc=Symbol("canvas"),Va=Symbol("popoverTargetElement"),Wc=Symbol("composed"),El=Symbol("bubbles"),yn=Symbol("cancelable"),Br=Symbol("defaultPrevented"),eo=Symbol("eventPhase"),BP=Symbol("timeStamp"),zt=Symbol("type"),Yc=Symbol("detail");var qc=Symbol("destroyed"),ve=Symbol("aborted"),Kc=Symbol("browserFrames"),hS=Symbol("windowInternalId"),Q=Symbol("getItemList"),un=Symbol("requiredExtensions"),pn=Symbol("systemLanguage"),jc=Symbol("transform"),pe=Symbol("baseVal"),he=Symbol("animVal"),Qc=Symbol("pathLength");var hn=Symbol("viewBox"),$c=Symbol("markerUnits"),Xc=Symbol("markerWidth"),zc=Symbol("markerHeight"),wr=Symbol("values"),Jc=Symbol("orientType"),Zc=Symbol("orientAngle"),td=Symbol("refX"),ed=Symbol("refY"),X=Symbol("readOnly"),Dr=Symbol("preserveAspectRatio"),cn=Symbol("animatedPoints"),dn=Symbol("points"),bn=Symbol("rx"),gn=Symbol("ry"),Uo=Symbol("cx"),Go=Symbol("cy"),fn=Symbol("r"),rd=Symbol("clipPathUnits"),od=Symbol("maskUnits"),id=Symbol("maskContentUnits"),sd=Symbol("filterUnits"),nd=Symbol("primitiveUnits"),Rt=Symbol("href"),Sn=Symbol("x1"),Pn=Symbol("y1"),An=Symbol("x2"),wn=Symbol("y2"),ld=Symbol("gradientUnits"),ad=Symbol("gradientTransform"),md=Symbol("spreadMethod"),yd=Symbol("patternUnits"),ud=Symbol("patternContentUnits"),pd=Symbol("patternTransform"),hd=Symbol("fx"),cd=Symbol("fy"),En=Symbol("offset"),Ua=Symbol("disabled"),dd=Symbol("textLength"),bd=Symbol("lengthAdjust"),C=Symbol("getAttribute"),x=Symbol("setAttribute"),ho=Symbol("z"),hy=Symbol("w"),gd=Symbol("toArray"),cy=Symbol("fromString"),pi=Symbol("fromArray");var Ft=Symbol("m11"),Ut=Symbol("m12"),ie=Symbol("m13"),se=Symbol("m14"),Bt=Symbol("m21"),Gt=Symbol("m22"),ne=Symbol("m23"),le=Symbol("m24"),Kt=Symbol("m31"),Jt=Symbol("m32"),Zt=Symbol("m33"),jt=Symbol("m34"),Dt=Symbol("m41"),_t=Symbol("m42"),te=Symbol("m43"),ee=Symbol("m44"),Bu=Symbol("setMatrixValue"),hi=Symbol("translateSelf"),xl=Symbol("rotateSelf"),vl=Symbol("rotateAxisAngleSelf"),xn=Symbol("scaleSelf"),fd=Symbol("scale3dSelf"),Sd=Symbol("scaleNonUniformSelf"),dy=Symbol("skewXSelf"),by=Symbol("skewYSelf"),ci=Symbol("multiplySelf"),Tl=Symbol("matrix");var He=Symbol("getDOMMatrix"),qr=Symbol("setDOMMatrix"),B=Symbol("attributeValue"),Pd=Symbol("startOffset"),Cl=Symbol("method"),Ad=Symbol("spacing"),ut=Symbol("in1"),_o=Symbol("in2"),et=Symbol("result"),wd=Symbol("bias"),Ed=Symbol("divisor"),vn=Symbol("edgeMode"),xd=Symbol("kernelMatrix"),Ho=Symbol("kernelUnitLengthX"),Wo=Symbol("kernelUnitLengthY"),vd=Symbol("orderX"),Td=Symbol("orderY"),Cd=Symbol("preserveAlpha"),Nd=Symbol("targetX"),Ld=Symbol("targetY"),kd=Symbol("diffuseConstant"),Tn=Symbol("surfaceScale"),Id=Symbol("scale"),Md=Symbol("xChannelSelector"),Rd=Symbol("yChannelSelector"),Fd=Symbol("azimuth"),Bd=Symbol("elevation"),Yo=Symbol("dx"),qo=Symbol("dy"),Cn=Symbol("stdDeviationX"),Nn=Symbol("stdDeviationY"),Dd=Symbol("tableValues"),Od=Symbol("slope"),Vd=Symbol("intercept"),Ud=Symbol("amplitude"),Gd=Symbol("exponent"),Dw=Symbol("crossOrigin"),_d=Symbol("operator"),Hd=Symbol("radiusX"),Wd=Symbol("radiusY"),Yd=Symbol("specularConstant"),Ln=Symbol("specularExponent"),qd=Symbol("pointsAtX"),Kd=Symbol("pointsAtY"),jd=Symbol("pointsAtZ"),Qd=Symbol("limitingConeAngle"),$d=Symbol("baseFrequencyX"),Xd=Symbol("baseFrequencyY"),zd=Symbol("numOctaves"),Jd=Symbol("seed"),Zd=Symbol("stitchTiles"),tb=Symbol("rotateFromVectorSelf"),eb=Symbol("flipXSelf"),rb=Symbol("flipYSelf"),ob=Symbol("invertSelf"),DP=Symbol("getLength"),cS=Symbol("currentScale"),ib=Symbol("rotate"),OP=Symbol("bindMethods"),Ga=Symbol("xmlProcessingInstruction");var Li=Symbol("filterNode"),Nl=Symbol("customElementReactionStack"),_a=Symbol("dispatching"),kn=Symbol("modules"),co=Symbol("preloads"),Ll=Symbol("body"),dS=Symbol("redirect"),Du=Symbol("referrerPolicy"),bS=Symbol("signal"),Ts=Symbol("bodyUsed"),gS=Symbol("credentials"),sb=Symbol("blocking"),gy=Symbol("moduleImportMap"),ce=Symbol("dispatchError"),fS=Symbol("supports"),di=Symbol("reason"),c=Symbol("propertyEventListeners"),sr=Symbol("cssRules"),kl=Symbol("parentRule"),bi=Symbol("parentStyleSheet"),Ko=Symbol("conditionText"),In=Symbol("keyText"),VP=Symbol("media"),nb=Symbol("styleMap"),fy=Symbol("selectorText"),Sy=Symbol("cssParser"),Il=Symbol("cssRule"),bo=Symbol("rulePrefix"),To=Symbol("virtualServerFile"),UP=Symbol("frames"),Ml=Symbol("disableEvaluation"),GP=Symbol("validateJavaScriptExecutionEnvironment");var Ha=Symbol("openWebSockets"),ro=Symbol("webSocket"),Py=Symbol("moduleCache");var _P;(function(l){l.strict="Strict",l.lax="Lax",l.none="None"})(_P||(_P={}));var Rl=_P;var SS={key:null,originURL:null,value:null,domain:"",path:"",expires:null,httpOnly:!1,secure:!1,sameSite:Rl.lax};var Ou=class{static hasExpired(e){return e.expires&&e.expires.getTime()<Date.now()}};var lb=class{static cookieMatchesURL(e,t){let r=t.hostname==="localhost"||t.hostname?.endsWith(".localhost");return(!e.secure||t.protocol==="https:"||r)&&(!e.domain||t.hostname?.endsWith(e.domain))&&(!e.path||t.pathname?.startsWith(e.path))&&(e.sameSite===Rl.none&&e.secure||e.originURL?.hostname===t.hostname)}};var Mn,Ay=class{constructor(){E(this,Mn,[])}addCookies(e){let t=new Map,r=o=>`${o.key}-${o.originURL.hostname}-${o.path}-${typeof o.value}`;for(let o=0,i=u(this,Mn).length;o<i;o++)t.set(r(u(this,Mn)[o]),o);for(let o of e){let i=Object.assign({},SS,o);if(i&&i.key&&i.originURL){let n=t.get(r(i));n!==void 0&&u(this,Mn).splice(n,1),Ou.hasExpired(i)||(t.set(r(i),u(this,Mn).length),u(this,Mn).push(i))}}}getCookies(e=null,t=!1){let r=[];for(let o of u(this,Mn))!Ou.hasExpired(o)&&(!t||!o.httpOnly)&&(!e||lb.cookieMatchesURL(o,e||o.originURL))&&r.push(o);return r}clearCookies(){w(this,Mn,[])}};Mn=new WeakMap;var HP;(function(l){l.fresh="fresh",l.stale="stale"})(HP||(HP={}));var Wa=HP;var WP;(function(l){l.invalidStateError="InvalidStateError",l.indexSizeError="IndexSizeError",l.syntaxError="SyntaxError",l.hierarchyRequestError="HierarchyRequestError",l.notSupportedError="NotSupportedError",l.wrongDocumentError="WrongDocumentError",l.invalidNodeTypeError="InvalidNodeTypeError",l.invalidCharacterError="InvalidCharacterError",l.notFoundError="NotFoundError",l.securityError="SecurityError",l.networkError="NetworkError",l.domException="DOMException",l.invalidAccessError="InvalidAccessError",l.unknownError="UnknownError",l.abortError="AbortError",l.timeoutError="TimeoutError",l.encodingError="EncodingError",l.uriMismatchError="URIMismatchError",l.inUseAttributeError="InUseAttributeError",l.namespaceError="NamespaceError"})(WP||(WP={}));var v=WP;var ae=class extends Error{constructor(e,t=null){super(e),this.name=t||v.domException}};var Ow,Cs=class l{constructor(e){s(this,Ow,{});if(e)if(e instanceof l)this[Pr]=JSON.parse(JSON.stringify(e[Pr]));else if(Array.isArray(e))for(let t of e){if(t.length!==2)throw new ae('Failed to construct "Headers": The provided init is not a valid array.',v.invalidStateError);this.append(t[0],t[1])}else for(let t of Object.keys(e))this.set(t,e[t])}append(e,t){let r=e.toLowerCase();this[Pr][r]?this[Pr][r].value.push(t):this[Pr][r]={name:e,value:[t]}}delete(e){delete this[Pr][e.toLowerCase()]}get(e){return this[Pr][e.toLowerCase()]?.value.join(", ")??null}set(e,t){this[Pr][e.toLowerCase()]={name:e,value:[t]}}getSetCookie(){let e=this[Pr]["set-cookie"];return e?e.value:[]}has(e){return!!this[Pr][e.toLowerCase()]}forEach(e,t){let r=t??this[m];for(let o of Object.values(this[Pr]))e.call(r,o.value.join(", "),o.name,this)}*keys(){for(let e of Object.values(this[Pr]))yield e.name}*values(){for(let e of Object.values(this[Pr]))yield e.value.join(", ")}*entries(){for(let e of Object.values(this[Pr]))yield[e.name,e.value.join(", ")]}*[(Ow=Pr,Symbol.iterator)](){for(let e of Object.values(this[Pr]))yield[e.name,e.value.join(", ")]}};import Vu from"fs";import Uu from"path";import WV from"crypto";var mb,yb,wy,ab=class{constructor(e){E(this,mb,new Set);E(this,yb,new Set);E(this,wy);w(this,wy,e)}async load(e){if(!e)throw new Error("Failed to execute 'load' on 'ResponseCacheFileSystem': Directory is not specified.");let t=Uu.resolve(e),r=[];try{r=await Vu.promises.readdir(t)}catch{return}let o=[],i=u(this,wy);for(let n of r)n.endsWith(".json")&&o.push(Vu.promises.readFile(Uu.join(t,n),"utf8").then(a=>{let y=JSON.parse(a);if(y.response&&y.request&&!y.virtual)return y.response.headers=new Cs(y.response.headers),y.request.headers=new Cs(y.request.headers),Vu.promises.readFile(Uu.join(t,n.split(".")[0]+".data")).then(p=>{y.response.body=p;let d=i.get(y.response.url);d||(d=[],i.set(y.response.url,d)),d.push(y)}).catch(()=>{let p=i.get(y.response.url);p||(p=[],i.set(y.response.url,p)),p.push(y)})}).catch(()=>{}));await Promise.all(o)}async save(e){if(!e)throw new Error("Failed to execute 'store' on 'ResponseCacheFileSystem': Directory is not specified.");if(!u(this,wy).size)return;let t=Uu.resolve(e);if(!u(this,mb).has(t)){u(this,mb).add(t);try{await Vu.promises.mkdir(t,{recursive:!0})}catch{}}let o=u(this,wy),i=[];for(let n of o.values())for(let a of n)if(!a.virtual){let y={},p={};for(let[S,M]of a.response.headers.entries())y[S]=M;for(let[S,M]of a.request.headers.entries())p[S]=M;let d={...a,response:{...a.response,headers:y,body:null},request:{...a.request,headers:p}},b=JSON.stringify(d,null,3),f=WV.createHash("md5").update(b).digest("hex");u(this,yb).has(f)||(u(this,yb).add(f),i.push(Vu.promises.writeFile(Uu.join(t,`${f}.json`),b)),a.response.body&&i.push(Vu.promises.writeFile(Uu.join(t,`${f}.data`),a.response.body)))}await Promise.all(i)}};mb=new WeakMap,yb=new WeakMap,wy=new WeakMap;var YV=["Cache-Control","Last-Modified","Vary","ETag"],gi,Ey=class{constructor(){s(this,"fileSystem");E(this,gi,new Map);this.fileSystem=new ab(u(this,gi))}get(e){if(e.headers.get("Cache-Control")?.includes("no-cache"))return null;let t=e.url,r=u(this,gi).get(t);if(r)for(let o=0,i=r.length;o<i;o++){let n=r[o],a=n.request.method===e.method;if(a)for(let y of Object.keys(n.vary)){let p=e.headers.get(y);if(p!==null&&n.vary[y]!==p){a=!1;break}}if(a){if(n.expires&&n.expires<Date.now()){if(n.lastModified)n.state=Wa.stale;else if(!n.etag)return r.splice(o,1),null}return n}}return null}add(e,t){if(e.method!=="GET"&&e.method!=="HEAD"||e.headers.get("Cache-Control")?.includes("no-cache"))return null;let r=e.url,o=this.get(e);if(t.status===304){if(!o)throw new Error("ResponseCache: Cached response not found.");for(let i of YV)t.headers.has(i)&&o.response.headers.set(i,t.headers.get(i));o.cacheUpdateTime=Date.now(),o.state=Wa.fresh}else{if(o){let n=u(this,gi).get(r);if(n){let a=n.indexOf(o);a!==-1&&n.splice(a,1)}}o={response:{status:t.status,statusText:t.statusText,url:t.url,headers:new Cs(t.headers),waitingForBody:t.waitingForBody,body:t.body??null},request:{headers:e.headers,method:e.method},vary:{},expires:null,etag:null,cacheUpdateTime:Date.now(),lastModified:null,mustRevalidate:!1,staleWhileRevalidate:!1,state:Wa.fresh,virtual:t.virtual??!1};let i=u(this,gi).get(r);i||(i=[],u(this,gi).set(r,i)),i.push(o)}if(t.headers.has("Cache-Control")){let i=t.headers.get("Age");for(let n of t.headers.get("Cache-Control").split(",")){let[a,y]=n.trim().split("=");switch(a){case"max-age":o.expires=Date.now()+parseFloat(y)*1e3-(i?parseFloat(i)*1e3:0);break;case"no-cache":case"no-store":let p=u(this,gi).get(r);if(p){let d=p.indexOf(o);d!==-1&&p.splice(d,1)}return null;case"must-revalidate":o.mustRevalidate=!0;break;case"stale-while-revalidate":o.staleWhileRevalidate=!0;break}}}if(t.headers.has("Last-Modified")&&(o.lastModified=Date.parse(t.headers.get("Last-Modified"))),t.headers.has("Vary"))for(let i of t.headers.get("Vary").split(",")){let n=i.trim(),a=e.headers.get(n);a&&(o.vary[n]=a)}if(t.headers.has("ETag")&&(o.etag=t.headers.get("ETag")),!o.expires){let i=t.headers.get("Expires");i&&(o.expires=Date.parse(i))}if(!o.etag&&(!o.expires||o.expires<Date.now())){let i=u(this,gi).get(r);if(i){let n=i.indexOf(o);n!==-1&&i.splice(n,1)}return null}return o}clear(e){if(e)if(e.toTime)for(let t of e.url?[e.url]:u(this,gi).keys()){let r=u(this,gi).get(t);if(r)for(let o=0,i=r.length;o<i;o++)r[o].cacheUpdateTime<e.toTime&&(r.splice(o,1),o--,i--)}else e.url&&u(this,gi).delete(e.url);else u(this,gi).clear()}};gi=new WeakMap;var YP;(function(l){l[l.log=0]="log",l[l.info=1]="info",l[l.warn=2]="warn",l[l.error=3]="error"})(YP||(YP={}));var Or=YP;var qP;(function(l){l[l.elementNode=1]="elementNode",l[l.attributeNode=2]="attributeNode",l[l.textNode=3]="textNode",l[l.cdataSectionNode=4]="cdataSectionNode",l[l.commentNode=8]="commentNode",l[l.documentNode=9]="documentNode",l[l.documentTypeNode=10]="documentTypeNode",l[l.documentFragmentNode=11]="documentFragmentNode",l[l.processingInstructionNode=7]="processingInstructionNode"})(qP||(qP={}));var L=qP;var KP;(function(l){l[l.none=0]="none",l[l.capturing=1]="capturing",l[l.atTarget=2]="atTarget",l[l.bubbling=3]="bubbling"})(KP||(KP={}));var de=KP;var Vw,Uw,Gw,_w,Hw,Ww,Yw,qw,Kw,jw,Qw,$w,Xw;Xw=Wc,$w=El,Qw=yn,jw=Br,Kw=eo,qw=BP,Yw=zt,Ww=_a,Hw=pl,_w=dl,Gw=Zr,Uw=Ti,Vw=xu;var Rn=class Rn{constructor(e,t=null){s(this,"NONE",Rn.NONE);s(this,"CAPTURING_PHASE",Rn.CAPTURING_PHASE);s(this,"AT_TARGET",Rn.AT_TARGET);s(this,"BUBBLING_PHASE",Rn.BUBBLING_PHASE);s(this,Xw,!1);s(this,$w,!1);s(this,Qw,!1);s(this,jw,!1);s(this,Kw,de.none);s(this,qw,performance.now());s(this,Yw);s(this,Ww,!1);s(this,Hw,!1);s(this,_w,!1);s(this,Gw,null);s(this,Uw,null);s(this,Vw,!1);this[zt]=e,this[El]=t?.bubbles??!1,this[yn]=t?.cancelable??!1,this[Wc]=t?.composed??!1}get composed(){return this[Wc]}get bubbles(){return this[El]}get cancelable(){return this[yn]}get defaultPrevented(){return this[Br]}get eventPhase(){return this[eo]}get timeStamp(){return this[BP]}get type(){return this[zt]}get target(){return this[Zr]}get currentTarget(){return this[Ti]}get cancelBubble(){return this[dl]}composedPath(){if(!this[Zr])return[];let e=[],t=this[Zr];for(;t;)if(e.push(t),t.parentNode)t=t.parentNode;else if(this[Wc]&&t[U]===L.documentFragmentNode&&t.host)t=t.host;else if(t[U]===L.documentNode&&this[zt]!=="load")t=t[m];else break;return e}initEvent(e,t=!1,r=!1){this[zt]=e,this[El]=t,this[yn]=r,this[dl]=!1,this[pl]=!1,this[Br]=!1}preventDefault(){!this[xu]&&this.cancelable&&(this[Br]=!0)}stopImmediatePropagation(){this[pl]=!0}stopPropagation(){this[dl]=!0}};s(Rn,"NONE",de.none),s(Rn,"CAPTURING_PHASE",de.capturing),s(Rn,"AT_TARGET",de.atTarget),s(Rn,"BUBBLING_PHASE",de.bubbling);var k=Rn;var jP;(function(l){l.log="log",l.table="table",l.trace="trace",l.dir="dir",l.dirxml="dirxml",l.group="group",l.groupCollapsed="groupCollapsed",l.debug="debug",l.timeLog="timeLog",l.info="info",l.count="count",l.timeEnd="timeEnd",l.warn="warn",l.countReset="countReset",l.error="error",l.assert="assert"})(jP||(jP={}));var $e=jP;var ub=class{static toString(e){if(this.isLogEntryCollapsed(e))return"";let t=this.getLogEntryGroupTabbing(e),r=t;for(let o of e.message)if(r+=r!==""&&r!==t?" ":"",typeof o=="object"&&(o===null||o.constructor.name==="Object"||Array.isArray(o)))try{r+=JSON.stringify(o)}catch{r+=new Error("Failed to JSON stringify object in log entry.").stack.replace(/\n at/gm,`
9
+ `+t)}function uu(l,e,t,r,o,i){if(l.listenerCount("wsClientError")){let n=new Error(o);Error.captureStackTrace(n,uu),l.emit("wsClientError",n,t,e)}else Fg(t,r,o,i)}});var VV=Gr((Dxt,Rw)=>{var yP=process||{},DV=yP.argv||[],mP=yP.env||{},EH=!(mP.NO_COLOR||DV.includes("--no-color"))&&(!!mP.FORCE_COLOR||DV.includes("--color")||yP.platform==="win32"||(yP.stdout||{}).isTTY&&mP.TERM!=="dumb"||!!mP.CI),xH=(l,e,t=l)=>r=>{let o=""+r,i=o.indexOf(e,l.length);return~i?l+vH(o,e,t,i)+e:l+o+e},vH=(l,e,t,r)=>{let o="",i=0;do o+=l.substring(i,r)+t,i=r+e.length,r=l.indexOf(e,i);while(~r);return o+l.substring(i)},OV=(l=EH)=>{let e=l?xH:()=>String;return{isColorSupported:l,reset:e("\x1B[0m","\x1B[0m"),bold:e("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:e("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:e("\x1B[3m","\x1B[23m"),underline:e("\x1B[4m","\x1B[24m"),inverse:e("\x1B[7m","\x1B[27m"),hidden:e("\x1B[8m","\x1B[28m"),strikethrough:e("\x1B[9m","\x1B[29m"),black:e("\x1B[30m","\x1B[39m"),red:e("\x1B[31m","\x1B[39m"),green:e("\x1B[32m","\x1B[39m"),yellow:e("\x1B[33m","\x1B[39m"),blue:e("\x1B[34m","\x1B[39m"),magenta:e("\x1B[35m","\x1B[39m"),cyan:e("\x1B[36m","\x1B[39m"),white:e("\x1B[37m","\x1B[39m"),gray:e("\x1B[90m","\x1B[39m"),bgBlack:e("\x1B[40m","\x1B[49m"),bgRed:e("\x1B[41m","\x1B[49m"),bgGreen:e("\x1B[42m","\x1B[49m"),bgYellow:e("\x1B[43m","\x1B[49m"),bgBlue:e("\x1B[44m","\x1B[49m"),bgMagenta:e("\x1B[45m","\x1B[49m"),bgCyan:e("\x1B[46m","\x1B[49m"),bgWhite:e("\x1B[47m","\x1B[49m"),blackBright:e("\x1B[90m","\x1B[39m"),redBright:e("\x1B[91m","\x1B[39m"),greenBright:e("\x1B[92m","\x1B[39m"),yellowBright:e("\x1B[93m","\x1B[39m"),blueBright:e("\x1B[94m","\x1B[39m"),magentaBright:e("\x1B[95m","\x1B[39m"),cyanBright:e("\x1B[96m","\x1B[39m"),whiteBright:e("\x1B[97m","\x1B[39m"),bgBlackBright:e("\x1B[100m","\x1B[49m"),bgRedBright:e("\x1B[101m","\x1B[49m"),bgGreenBright:e("\x1B[102m","\x1B[49m"),bgYellowBright:e("\x1B[103m","\x1B[49m"),bgBlueBright:e("\x1B[104m","\x1B[49m"),bgMagentaBright:e("\x1B[105m","\x1B[49m"),bgCyanBright:e("\x1B[106m","\x1B[49m"),bgWhiteBright:e("\x1B[107m","\x1B[49m")}};Rw.exports=OV();Rw.exports.createColors=OV});import{createRequire as NH}from"node:module";import{fileURLToPath as LH,pathToFileURL as kH}from"node:url";import wu from"node:fs";import Yf from"node:path";import TH from"node:crypto";import{fileURLToPath as CH}from"node:url";import{URLSearchParams as oAt}from"url";var gs=Symbol("abort"),Ke=Symbol("activeElement"),gt=Symbol("asyncTaskManager"),fs=Symbol("bodyBuffer"),Mt=Symbol("buffer"),Ki=Symbol("cachedResponse"),Ss=Symbol("callbacks"),xa=Symbol("checked"),ul=Symbol("childNodes"),Mr=Symbol("children"),Eu=Symbol("classList"),Io=Symbol("connectedToNode"),en=Symbol("disconnectedFromNode"),Rr=Symbol("connectedToDocument"),Fr=Symbol("disconnectedFromDocument"),iy=Symbol("contentLength"),Fe=Symbol("contentType"),Xr=Symbol("cssText"),vi=Symbol("currentScript"),Ti=Symbol("currentTarget"),Xt=Symbol("data"),mo=Symbol("defaultView"),wt=Symbol("destroy"),va=Symbol("dirtyness"),j=Symbol("end"),Pr=Symbol("entries");var Ci=Symbol("evaluateScript"),_r=Symbol("exceptionObserver"),Ht=Symbol("formNode"),Ta=Symbol("internalId"),O=Symbol("height"),pl=Symbol("immediatePropagationStopped"),Ca=Symbol("indeterminate"),rn=Symbol("isFirstWrite"),on=Symbol("isFirstWriteAfterOpen"),xu=Symbol("isInPassiveEventListener"),Mo=Symbol("isValue"),hl=Symbol("listenerOptions"),fe=Symbol("listeners"),Eo=Symbol("itemsByName"),cl=Symbol("nextActiveElement"),sy=Symbol("observeMutations"),Ro=Symbol("mutationListeners"),T=Symbol("ownerDocument"),Lt=Symbol("ownerElement"),dl=Symbol("propagationStopped"),yi=Symbol("readyStateManager"),zr=Symbol("referrer"),Ps=Symbol("registry"),Fo=Symbol("relList"),vu=Symbol("resetSelection"),Be=Symbol("rootNode"),je=Symbol("selectNode"),Jr=Symbol("selectedness"),Na=Symbol("selection"),kc=Symbol("setupVMContext"),Ee=Symbol("shadowRoot"),_=Symbol("start"),xe=Symbol("style"),Zr=Symbol("target"),Ar=Symbol("textAreaNode"),Tu=Symbol("unobserveMutations"),sn=Symbol("reportMutation"),La=Symbol("updateSelectedness"),ke=Symbol("url"),z=Symbol("value"),V=Symbol("width"),m=Symbol("window"),jf=Symbol("windowResizeListener"),ka=Symbol("mutationObservers"),xo=Symbol("openerFrame"),ji=Symbol("openerWindow"),Ic=Symbol("pointerCaptures"),bl=Symbol("popup"),it=Symbol("isConnected"),Y=Symbol("parentNode"),U=Symbol("nodeType"),Z=Symbol("tagName"),Ot=Symbol("prefix"),pP=Symbol("scrollHeight"),hP=Symbol("scrollWidth"),Qf=Symbol("scrollTop"),$f=Symbol("scrollLeft"),ft=Symbol("attributes"),Cu=Symbol("attributesProxy"),tt=Symbol("namespaceURI"),Nu=Symbol("accessKey");var cP=Symbol("offsetHeight"),dP=Symbol("offsetWidth"),bP=Symbol("offsetLeft"),gP=Symbol("offsetTop"),fP=Symbol("clientHeight"),SP=Symbol("clientWidth"),PP=Symbol("clientLeft"),AP=Symbol("clientTop"),st=Symbol("name"),Mc=Symbol("specified"),gl=Symbol("adoptedStyleSheets"),Xf=Symbol("implementation"),Ia=Symbol("readyState"),fl=Symbol("publicId"),Sl=Symbol("systemId"),_e=Symbol("validationMessage"),pr=Symbol("validity"),zf=Symbol("returnValue"),nn=Symbol("elements");var wP=Symbol("complete"),EP=Symbol("naturalHeight"),xP=Symbol("naturalWidth"),Bw=Symbol("loading"),R=Symbol("x"),F=Symbol("y");var Qi=Symbol("files"),Je=Symbol("sheet"),Jf=Symbol("volume"),ny=Symbol("paused"),Zf=Symbol("currentTime"),tS=Symbol("playbackRate"),eS=Symbol("defaultPlaybackRate"),Lu=Symbol("muted"),ly=Symbol("defaultMuted"),rS=Symbol("preservesPitch"),vP=Symbol("buffered"),TP=Symbol("duration"),hr=Symbol("error"),CP=Symbol("ended"),NP=Symbol("networkState"),oS=Symbol("textTracks"),LP=Symbol("seeking"),kP=Symbol("seekable"),IP=Symbol("played"),ln=Symbol("options"),Bo=Symbol("content"),Me=Symbol("mode"),Ma=Symbol("host"),yo=Symbol("setURL"),nt=Symbol("localName"),ku=Symbol("classRegistry"),Rc=Symbol("nodeStream"),vo=Symbol("location"),Qe=Symbol("history"),iS=Symbol("navigator"),sS=Symbol("screen"),nS=Symbol("sessionStorage"),lS=Symbol("localStorage"),Fc=Symbol("sandbox"),ct=Symbol("cloneNode"),vt=Symbol("appendChild"),Hr=Symbol("removeChild"),uo=Symbol("insertBefore"),Iu=Symbol("replaceChild"),As=Symbol("tracks"),Mu=Symbol("constraints"),ws=Symbol("capabilities"),Ra=Symbol("settings");var Pl=Symbol("removeNamedItem"),$=Symbol("items"),Fa=Symbol("selectedOptions"),Wr=Symbol("styleNode"),Ba=Symbol("updateSheet"),po=Symbol("clearCache"),$e=Symbol("onSetAttribute"),Yr=Symbol("onRemoveAttribute"),q=Symbol("nodeArray"),dt=Symbol("elementArray"),W=Symbol("cache"),ir=Symbol("affectsCache"),Ru=Symbol("forms"),$i=Symbol("affectsComputedStyleCache"),ay=Symbol("query"),my=Symbol("computedStyle"),Do=Symbol("getFormControlItems"),Bc=Symbol("getFormControlNamedItem"),aS=Symbol("dataset");var Es=Symbol("itemsByNamespaceURI"),Vt=Symbol("proxy"),Xi=Symbol("setNamedItem"),to=Symbol("getTokenList"),Al=Symbol("attributeName"),Ni=Symbol("selectedIndex"),Da=Symbol("self"),Oo=Symbol("parent"),zi=Symbol("top"),Dc=Symbol("areas"),Vo=Symbol("defaultValue"),xs=Symbol("elementIdMap"),Oa=Symbol("clonable"),yy=Symbol("delegatesFocus"),an=Symbol("serializable"),vs=Symbol("slotAssignment"),mn=Symbol("assignedNodes"),Ji=Symbol("assignedToSlot"),Oc=Symbol("cells"),Vc=Symbol("rows"),mS=Symbol("headers"),Uc=Symbol("tBodies"),Fu=Symbol("track"),Gc=Symbol("controlsList"),yS=Symbol("mediaKeys"),MP=Symbol("remote"),uS=Symbol("sinkId"),pS=Symbol("srcObject"),uy=Symbol("cues"),RP=Symbol("activeCues"),ui=Symbol("kind"),wl=Symbol("label"),py=Symbol("language"),_c=Symbol("id"),h=Symbol("illegalConstructor"),FP=Symbol("state"),Hc=Symbol("canvas"),Va=Symbol("popoverTargetElement"),Wc=Symbol("composed"),El=Symbol("bubbles"),yn=Symbol("cancelable"),Br=Symbol("defaultPrevented"),eo=Symbol("eventPhase"),BP=Symbol("timeStamp"),zt=Symbol("type"),Yc=Symbol("detail");var qc=Symbol("destroyed"),ve=Symbol("aborted"),Kc=Symbol("browserFrames"),hS=Symbol("windowInternalId"),Q=Symbol("getItemList"),un=Symbol("requiredExtensions"),pn=Symbol("systemLanguage"),jc=Symbol("transform"),pe=Symbol("baseVal"),he=Symbol("animVal"),Qc=Symbol("pathLength");var hn=Symbol("viewBox"),$c=Symbol("markerUnits"),Xc=Symbol("markerWidth"),zc=Symbol("markerHeight"),wr=Symbol("values"),Jc=Symbol("orientType"),Zc=Symbol("orientAngle"),td=Symbol("refX"),ed=Symbol("refY"),X=Symbol("readOnly"),Dr=Symbol("preserveAspectRatio"),cn=Symbol("animatedPoints"),dn=Symbol("points"),bn=Symbol("rx"),gn=Symbol("ry"),Uo=Symbol("cx"),Go=Symbol("cy"),fn=Symbol("r"),rd=Symbol("clipPathUnits"),od=Symbol("maskUnits"),id=Symbol("maskContentUnits"),sd=Symbol("filterUnits"),nd=Symbol("primitiveUnits"),Rt=Symbol("href"),Sn=Symbol("x1"),Pn=Symbol("y1"),An=Symbol("x2"),wn=Symbol("y2"),ld=Symbol("gradientUnits"),ad=Symbol("gradientTransform"),md=Symbol("spreadMethod"),yd=Symbol("patternUnits"),ud=Symbol("patternContentUnits"),pd=Symbol("patternTransform"),hd=Symbol("fx"),cd=Symbol("fy"),En=Symbol("offset"),Ua=Symbol("disabled"),dd=Symbol("textLength"),bd=Symbol("lengthAdjust"),C=Symbol("getAttribute"),x=Symbol("setAttribute"),ho=Symbol("z"),hy=Symbol("w"),gd=Symbol("toArray"),cy=Symbol("fromString"),pi=Symbol("fromArray");var Ft=Symbol("m11"),Ut=Symbol("m12"),ie=Symbol("m13"),se=Symbol("m14"),Bt=Symbol("m21"),Gt=Symbol("m22"),ne=Symbol("m23"),le=Symbol("m24"),Kt=Symbol("m31"),Jt=Symbol("m32"),Zt=Symbol("m33"),jt=Symbol("m34"),Dt=Symbol("m41"),_t=Symbol("m42"),te=Symbol("m43"),ee=Symbol("m44"),Bu=Symbol("setMatrixValue"),hi=Symbol("translateSelf"),xl=Symbol("rotateSelf"),vl=Symbol("rotateAxisAngleSelf"),xn=Symbol("scaleSelf"),fd=Symbol("scale3dSelf"),Sd=Symbol("scaleNonUniformSelf"),dy=Symbol("skewXSelf"),by=Symbol("skewYSelf"),ci=Symbol("multiplySelf"),Tl=Symbol("matrix");var He=Symbol("getDOMMatrix"),qr=Symbol("setDOMMatrix"),B=Symbol("attributeValue"),Pd=Symbol("startOffset"),Cl=Symbol("method"),Ad=Symbol("spacing"),ut=Symbol("in1"),_o=Symbol("in2"),et=Symbol("result"),wd=Symbol("bias"),Ed=Symbol("divisor"),vn=Symbol("edgeMode"),xd=Symbol("kernelMatrix"),Ho=Symbol("kernelUnitLengthX"),Wo=Symbol("kernelUnitLengthY"),vd=Symbol("orderX"),Td=Symbol("orderY"),Cd=Symbol("preserveAlpha"),Nd=Symbol("targetX"),Ld=Symbol("targetY"),kd=Symbol("diffuseConstant"),Tn=Symbol("surfaceScale"),Id=Symbol("scale"),Md=Symbol("xChannelSelector"),Rd=Symbol("yChannelSelector"),Fd=Symbol("azimuth"),Bd=Symbol("elevation"),Yo=Symbol("dx"),qo=Symbol("dy"),Cn=Symbol("stdDeviationX"),Nn=Symbol("stdDeviationY"),Dd=Symbol("tableValues"),Od=Symbol("slope"),Vd=Symbol("intercept"),Ud=Symbol("amplitude"),Gd=Symbol("exponent"),Dw=Symbol("crossOrigin"),_d=Symbol("operator"),Hd=Symbol("radiusX"),Wd=Symbol("radiusY"),Yd=Symbol("specularConstant"),Ln=Symbol("specularExponent"),qd=Symbol("pointsAtX"),Kd=Symbol("pointsAtY"),jd=Symbol("pointsAtZ"),Qd=Symbol("limitingConeAngle"),$d=Symbol("baseFrequencyX"),Xd=Symbol("baseFrequencyY"),zd=Symbol("numOctaves"),Jd=Symbol("seed"),Zd=Symbol("stitchTiles"),tb=Symbol("rotateFromVectorSelf"),eb=Symbol("flipXSelf"),rb=Symbol("flipYSelf"),ob=Symbol("invertSelf"),DP=Symbol("getLength"),cS=Symbol("currentScale"),ib=Symbol("rotate"),OP=Symbol("bindMethods"),Ga=Symbol("xmlProcessingInstruction");var Li=Symbol("filterNode"),Nl=Symbol("customElementReactionStack"),_a=Symbol("dispatching"),kn=Symbol("modules"),co=Symbol("preloads"),Ll=Symbol("body"),dS=Symbol("redirect"),Du=Symbol("referrerPolicy"),bS=Symbol("signal"),Ts=Symbol("bodyUsed"),gS=Symbol("credentials"),sb=Symbol("blocking"),gy=Symbol("moduleImportMap"),ce=Symbol("dispatchError"),fS=Symbol("supports"),di=Symbol("reason"),c=Symbol("propertyEventListeners"),sr=Symbol("cssRules"),kl=Symbol("parentRule"),bi=Symbol("parentStyleSheet"),Ko=Symbol("conditionText"),In=Symbol("keyText"),VP=Symbol("media"),nb=Symbol("styleMap"),fy=Symbol("selectorText"),Sy=Symbol("cssParser"),Il=Symbol("cssRule"),bo=Symbol("rulePrefix"),To=Symbol("virtualServerFile"),UP=Symbol("frames"),Ml=Symbol("disableEvaluation"),GP=Symbol("validateJavaScriptExecutionEnvironment");var Ha=Symbol("openWebSockets"),ro=Symbol("webSocket"),Py=Symbol("moduleCache");var _P;(function(l){l.strict="Strict",l.lax="Lax",l.none="None"})(_P||(_P={}));var Rl=_P;var SS={key:null,originURL:null,value:null,domain:"",path:"",expires:null,httpOnly:!1,secure:!1,sameSite:Rl.lax};var Ou=class{static hasExpired(e){return e.expires&&e.expires.getTime()<Date.now()}};var lb=class{static cookieMatchesURL(e,t){let r=t.hostname==="localhost"||t.hostname?.endsWith(".localhost");return(!e.secure||t.protocol==="https:"||r)&&(!e.domain||t.hostname?.endsWith(e.domain))&&(!e.path||t.pathname?.startsWith(e.path))&&(e.sameSite===Rl.none&&e.secure||e.originURL?.hostname===t.hostname)}};var Mn,Ay=class{constructor(){E(this,Mn,[])}addCookies(e){let t=new Map,r=o=>`${o.key}-${o.originURL.hostname}-${o.path}-${typeof o.value}`;for(let o=0,i=u(this,Mn).length;o<i;o++)t.set(r(u(this,Mn)[o]),o);for(let o of e){let i=Object.assign({},SS,o);if(i&&i.key&&i.originURL){let n=t.get(r(i));n!==void 0&&u(this,Mn).splice(n,1),Ou.hasExpired(i)||(t.set(r(i),u(this,Mn).length),u(this,Mn).push(i))}}}getCookies(e=null,t=!1){let r=[];for(let o of u(this,Mn))!Ou.hasExpired(o)&&(!t||!o.httpOnly)&&(!e||lb.cookieMatchesURL(o,e))&&r.push(o);return r}clearCookies(){w(this,Mn,[])}};Mn=new WeakMap;var HP;(function(l){l.fresh="fresh",l.stale="stale"})(HP||(HP={}));var Wa=HP;var WP;(function(l){l.invalidStateError="InvalidStateError",l.indexSizeError="IndexSizeError",l.syntaxError="SyntaxError",l.hierarchyRequestError="HierarchyRequestError",l.notSupportedError="NotSupportedError",l.wrongDocumentError="WrongDocumentError",l.invalidNodeTypeError="InvalidNodeTypeError",l.invalidCharacterError="InvalidCharacterError",l.notFoundError="NotFoundError",l.securityError="SecurityError",l.networkError="NetworkError",l.domException="DOMException",l.invalidAccessError="InvalidAccessError",l.unknownError="UnknownError",l.abortError="AbortError",l.timeoutError="TimeoutError",l.encodingError="EncodingError",l.uriMismatchError="URIMismatchError",l.inUseAttributeError="InUseAttributeError",l.namespaceError="NamespaceError"})(WP||(WP={}));var v=WP;var ae=class extends Error{constructor(e,t=null){super(e),this.name=t||v.domException}};var Ow,Cs=class l{constructor(e){s(this,Ow,{});if(e)if(e instanceof l)this[Pr]=JSON.parse(JSON.stringify(e[Pr]));else if(Array.isArray(e))for(let t of e){if(t.length!==2)throw new ae('Failed to construct "Headers": The provided init is not a valid array.',v.invalidStateError);this.append(t[0],t[1])}else for(let t of Object.keys(e))this.set(t,e[t])}append(e,t){let r=e.toLowerCase();this[Pr][r]?this[Pr][r].value.push(t):this[Pr][r]={name:e,value:[t]}}delete(e){delete this[Pr][e.toLowerCase()]}get(e){return this[Pr][e.toLowerCase()]?.value.join(", ")??null}set(e,t){this[Pr][e.toLowerCase()]={name:e,value:[t]}}getSetCookie(){let e=this[Pr]["set-cookie"];return e?e.value:[]}has(e){return!!this[Pr][e.toLowerCase()]}forEach(e,t){let r=t??this[m];for(let o of Object.values(this[Pr]))e.call(r,o.value.join(", "),o.name,this)}*keys(){for(let e of Object.values(this[Pr]))yield e.name}*values(){for(let e of Object.values(this[Pr]))yield e.value.join(", ")}*entries(){for(let e of Object.values(this[Pr]))yield[e.name,e.value.join(", ")]}*[(Ow=Pr,Symbol.iterator)](){for(let e of Object.values(this[Pr]))yield[e.name,e.value.join(", ")]}};import Vu from"fs";import Uu from"path";import WV from"crypto";var mb,yb,wy,ab=class{constructor(e){E(this,mb,new Set);E(this,yb,new Set);E(this,wy);w(this,wy,e)}async load(e){if(!e)throw new Error("Failed to execute 'load' on 'ResponseCacheFileSystem': Directory is not specified.");let t=Uu.resolve(e),r=[];try{r=await Vu.promises.readdir(t)}catch{return}let o=[],i=u(this,wy);for(let n of r)n.endsWith(".json")&&o.push(Vu.promises.readFile(Uu.join(t,n),"utf8").then(a=>{let y=JSON.parse(a);if(y.response&&y.request&&!y.virtual)return y.response.headers=new Cs(y.response.headers),y.request.headers=new Cs(y.request.headers),Vu.promises.readFile(Uu.join(t,n.split(".")[0]+".data")).then(p=>{y.response.body=p;let d=i.get(y.response.url);d||(d=[],i.set(y.response.url,d)),d.push(y)}).catch(()=>{let p=i.get(y.response.url);p||(p=[],i.set(y.response.url,p)),p.push(y)})}).catch(()=>{}));await Promise.all(o)}async save(e){if(!e)throw new Error("Failed to execute 'store' on 'ResponseCacheFileSystem': Directory is not specified.");if(!u(this,wy).size)return;let t=Uu.resolve(e);if(!u(this,mb).has(t)){u(this,mb).add(t);try{await Vu.promises.mkdir(t,{recursive:!0})}catch{}}let o=u(this,wy),i=[];for(let n of o.values())for(let a of n)if(!a.virtual){let y={},p={};for(let[S,M]of a.response.headers.entries())y[S]=M;for(let[S,M]of a.request.headers.entries())p[S]=M;let d={...a,response:{...a.response,headers:y,body:null},request:{...a.request,headers:p}},b=JSON.stringify(d,null,3),f=WV.createHash("md5").update(b).digest("hex");u(this,yb).has(f)||(u(this,yb).add(f),i.push(Vu.promises.writeFile(Uu.join(t,`${f}.json`),b)),a.response.body&&i.push(Vu.promises.writeFile(Uu.join(t,`${f}.data`),a.response.body)))}await Promise.all(i)}};mb=new WeakMap,yb=new WeakMap,wy=new WeakMap;var YV=["Cache-Control","Last-Modified","Vary","ETag"],gi,Ey=class{constructor(){s(this,"fileSystem");E(this,gi,new Map);this.fileSystem=new ab(u(this,gi))}get(e){if(e.headers.get("Cache-Control")?.includes("no-cache"))return null;let t=e.url,r=u(this,gi).get(t);if(r)for(let o=0,i=r.length;o<i;o++){let n=r[o],a=n.request.method===e.method;if(a)for(let y of Object.keys(n.vary)){let p=e.headers.get(y);if(p!==null&&n.vary[y]!==p){a=!1;break}}if(a){if(n.expires&&n.expires<Date.now()){if(n.lastModified)n.state=Wa.stale;else if(!n.etag)return r.splice(o,1),null}return n}}return null}add(e,t){if(e.method!=="GET"&&e.method!=="HEAD"||e.headers.get("Cache-Control")?.includes("no-cache"))return null;let r=e.url,o=this.get(e);if(t.status===304){if(!o)throw new Error("ResponseCache: Cached response not found.");for(let i of YV)t.headers.has(i)&&o.response.headers.set(i,t.headers.get(i));o.cacheUpdateTime=Date.now(),o.state=Wa.fresh}else{if(o){let n=u(this,gi).get(r);if(n){let a=n.indexOf(o);a!==-1&&n.splice(a,1)}}o={response:{status:t.status,statusText:t.statusText,url:t.url,headers:new Cs(t.headers),waitingForBody:t.waitingForBody,body:t.body??null},request:{headers:e.headers,method:e.method},vary:{},expires:null,etag:null,cacheUpdateTime:Date.now(),lastModified:null,mustRevalidate:!1,staleWhileRevalidate:!1,state:Wa.fresh,virtual:t.virtual??!1};let i=u(this,gi).get(r);i||(i=[],u(this,gi).set(r,i)),i.push(o)}if(t.headers.has("Cache-Control")){let i=t.headers.get("Age");for(let n of t.headers.get("Cache-Control").split(",")){let[a,y]=n.trim().split("=");switch(a){case"max-age":o.expires=Date.now()+parseFloat(y)*1e3-(i?parseFloat(i)*1e3:0);break;case"no-cache":case"no-store":let p=u(this,gi).get(r);if(p){let d=p.indexOf(o);d!==-1&&p.splice(d,1)}return null;case"must-revalidate":o.mustRevalidate=!0;break;case"stale-while-revalidate":o.staleWhileRevalidate=!0;break}}}if(t.headers.has("Last-Modified")&&(o.lastModified=Date.parse(t.headers.get("Last-Modified"))),t.headers.has("Vary"))for(let i of t.headers.get("Vary").split(",")){let n=i.trim(),a=e.headers.get(n);a&&(o.vary[n]=a)}if(t.headers.has("ETag")&&(o.etag=t.headers.get("ETag")),!o.expires){let i=t.headers.get("Expires");i&&(o.expires=Date.parse(i))}if(!o.etag&&(!o.expires||o.expires<Date.now())){let i=u(this,gi).get(r);if(i){let n=i.indexOf(o);n!==-1&&i.splice(n,1)}return null}return o}clear(e){if(e)if(e.toTime)for(let t of e.url?[e.url]:u(this,gi).keys()){let r=u(this,gi).get(t);if(r)for(let o=0,i=r.length;o<i;o++)r[o].cacheUpdateTime<e.toTime&&(r.splice(o,1),o--,i--)}else e.url&&u(this,gi).delete(e.url);else u(this,gi).clear()}};gi=new WeakMap;var YP;(function(l){l[l.log=0]="log",l[l.info=1]="info",l[l.warn=2]="warn",l[l.error=3]="error"})(YP||(YP={}));var Or=YP;var qP;(function(l){l[l.elementNode=1]="elementNode",l[l.attributeNode=2]="attributeNode",l[l.textNode=3]="textNode",l[l.cdataSectionNode=4]="cdataSectionNode",l[l.commentNode=8]="commentNode",l[l.documentNode=9]="documentNode",l[l.documentTypeNode=10]="documentTypeNode",l[l.documentFragmentNode=11]="documentFragmentNode",l[l.processingInstructionNode=7]="processingInstructionNode"})(qP||(qP={}));var L=qP;var KP;(function(l){l[l.none=0]="none",l[l.capturing=1]="capturing",l[l.atTarget=2]="atTarget",l[l.bubbling=3]="bubbling"})(KP||(KP={}));var de=KP;var Vw,Uw,Gw,_w,Hw,Ww,Yw,qw,Kw,jw,Qw,$w,Xw;Xw=Wc,$w=El,Qw=yn,jw=Br,Kw=eo,qw=BP,Yw=zt,Ww=_a,Hw=pl,_w=dl,Gw=Zr,Uw=Ti,Vw=xu;var Rn=class Rn{constructor(e,t=null){s(this,"NONE",Rn.NONE);s(this,"CAPTURING_PHASE",Rn.CAPTURING_PHASE);s(this,"AT_TARGET",Rn.AT_TARGET);s(this,"BUBBLING_PHASE",Rn.BUBBLING_PHASE);s(this,Xw,!1);s(this,$w,!1);s(this,Qw,!1);s(this,jw,!1);s(this,Kw,de.none);s(this,qw,performance.now());s(this,Yw);s(this,Ww,!1);s(this,Hw,!1);s(this,_w,!1);s(this,Gw,null);s(this,Uw,null);s(this,Vw,!1);this[zt]=e,this[El]=t?.bubbles??!1,this[yn]=t?.cancelable??!1,this[Wc]=t?.composed??!1}get composed(){return this[Wc]}get bubbles(){return this[El]}get cancelable(){return this[yn]}get defaultPrevented(){return this[Br]}get eventPhase(){return this[eo]}get timeStamp(){return this[BP]}get type(){return this[zt]}get target(){return this[Zr]}get currentTarget(){return this[Ti]}get cancelBubble(){return this[dl]}composedPath(){if(!this[Zr])return[];let e=[],t=this[Zr];for(;t;)if(e.push(t),t.parentNode)t=t.parentNode;else if(this[Wc]&&t[U]===L.documentFragmentNode&&t.host)t=t.host;else if(t[U]===L.documentNode&&this[zt]!=="load")t=t[m];else break;return e}initEvent(e,t=!1,r=!1){this[zt]=e,this[El]=t,this[yn]=r,this[dl]=!1,this[pl]=!1,this[Br]=!1}preventDefault(){!this[xu]&&this.cancelable&&(this[Br]=!0)}stopImmediatePropagation(){this[pl]=!0}stopPropagation(){this[dl]=!0}};s(Rn,"NONE",de.none),s(Rn,"CAPTURING_PHASE",de.capturing),s(Rn,"AT_TARGET",de.atTarget),s(Rn,"BUBBLING_PHASE",de.bubbling);var k=Rn;var jP;(function(l){l.log="log",l.table="table",l.trace="trace",l.dir="dir",l.dirxml="dirxml",l.group="group",l.groupCollapsed="groupCollapsed",l.debug="debug",l.timeLog="timeLog",l.info="info",l.count="count",l.timeEnd="timeEnd",l.warn="warn",l.countReset="countReset",l.error="error",l.assert="assert"})(jP||(jP={}));var Xe=jP;var ub=class{static toString(e){if(this.isLogEntryCollapsed(e))return"";let t=this.getLogEntryGroupTabbing(e),r=t;for(let o of e.message)if(r+=r!==""&&r!==t?" ":"",typeof o=="object"&&(o===null||o.constructor.name==="Object"||Array.isArray(o)))try{r+=JSON.stringify(o)}catch{r+=new Error("Failed to JSON stringify object in log entry.").stack.replace(/\n at/gm,`
10
10
  `+t+"at")}else typeof o=="object"&&o.message&&o.stack?r+=o.stack.replace(/\n at/gm,`
11
11
  `+t+"at"):r+=this.getLogEntryIcon(e)+String(o);return r+`
12
- `}static getLogEntryIcon(e){switch(e.type){case $e.group:return"\u25BC ";case $e.groupCollapsed:return"\u25B6 "}return""}static getLogEntryGroupTabbing(e){let t="",r=e.type===$e.group||e.type===$e.groupCollapsed?e.group?.parent:e.group;for(;r;)t+=" ",r=r.parent;return t}static isLogEntryCollapsed(e){let t=e.type===$e.group||e.type===$e.groupCollapsed?e.group?.parent:e.group;for(;t;){if(t.collapsed)return!0;t=t.parent}return!1}};var Ya,Fn,Ns,qa=class{constructor(){E(this,Ya,[]);E(this,Fn,{print:[],clear:[]});E(this,Ns,!1)}get closed(){return u(this,Ns)}print(e){u(this,Ns)||(u(this,Ya).push(e),this.dispatchEvent(new k("print")))}clear(){u(this,Ns)||(w(this,Ya,[]),this.dispatchEvent(new k("clear")))}close(){u(this,Ns)||(w(this,Ya,[]),w(this,Fn,{print:[],clear:[]}),w(this,Ns,!0))}addEventListener(e,t){if(!u(this,Ns)){if(!u(this,Fn)[e])throw new Error(`Event type "${e}" is not supported.`);u(this,Fn)[e].push(t)}}removeEventListener(e,t){if(u(this,Ns))return;if(!u(this,Fn)[e])throw new Error(`Event type "${e}" is not supported.`);let r=u(this,Fn)[e].indexOf(t);r!==-1&&u(this,Fn)[e].splice(r,1)}dispatchEvent(e){if(!u(this,Ns))switch(e.type){case"print":case"clear":for(let t of u(this,Fn)[e.type])t(e);break;default:throw new Error(`Event type "${e.type}" is not supported.`)}}read(){let e=u(this,Ya);return w(this,Ya,[]),e}readAsString(e=Or.log){let t=this.read(),r="";for(let o of t)o.level>=e&&(r+=ub.toString(o));return r}};Ya=new WeakMap,Fn=new WeakMap,Ns=new WeakMap;var xy=class extends Error{constructor(e){super(e),this.name="AsyncTaskManagerDebugError"}};var fi={setTimeout:globalThis.setTimeout.bind(globalThis),clearTimeout:globalThis.clearTimeout.bind(globalThis),clearImmediate:globalThis.clearImmediate.bind(globalThis)},Ka,Zi,ts=class{constructor(e){s(this,"runningTasks",{});s(this,"runningTaskCount",0);s(this,"runningTimers",[]);s(this,"runningImmediates",[]);s(this,"debugTrace",new Map);s(this,"waitUntilCompleteTimer",null);s(this,"waitUntilCompleteResolvers",[]);s(this,"destroyed",!1);E(this,Ka,null);E(this,Zi);w(this,Zi,e)}waitUntilComplete(){return new Promise((e,t)=>{this.waitUntilCompleteResolvers.push({resolve:e,reject:t}),this.resolveWhenComplete()})}abort(){return this.destroyed?new Promise((e,t)=>{this.waitUntilCompleteResolvers.push({resolve:e,reject:t}),this.resolveWhenComplete()}):this.abortAll(!1)}destroy(){return this.destroyed?new Promise((e,t)=>{this.waitUntilCompleteResolvers.push({resolve:e,reject:t}),this.resolveWhenComplete()}):this.abortAll(!0)}startTimer(e){if(this.destroyed){fi.clearTimeout(e);return}this.waitUntilCompleteTimer&&(fi.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null),this.runningTimers.push(e),u(this,Zi).page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.set(e,new xy().stack)}endTimer(e){if(this.destroyed){fi.clearTimeout(e);return}let t=this.runningTimers.indexOf(e);t!==-1&&(this.runningTimers.splice(t,1),this.resolveWhenComplete()),u(this,Zi).page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.delete(e)}startImmediate(e){if(this.destroyed){fi.clearImmediate(e);return}this.waitUntilCompleteTimer&&(fi.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null),this.runningImmediates.push(e),u(this,Zi).page?.context?.browser?.settings?.debug?.traceWaitUntilComplete>0&&this.debugTrace.set(e,new xy().stack)}endImmediate(e){if(this.destroyed){fi.clearImmediate(e);return}let t=this.runningImmediates.indexOf(e);t!==-1&&(this.runningImmediates.splice(t,1),this.resolveWhenComplete()),u(this,Zi).page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.delete(e)}startTask(e){if(this.destroyed)throw e&&e(this.destroyed),new(u(this,Zi)).window.Error("Failed to execute 'startTask()' on 'AsyncTaskManager': The asynchronous task manager has been destroyed. This error can be thrown if scripts continue to run while a browser frame is closed.");this.waitUntilCompleteTimer&&(fi.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null);let t=this.newTaskID();return this.runningTasks[t]=e||(()=>{}),this.runningTaskCount++,u(this,Zi).page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.set(t,new xy().stack),t}endTask(e){this.destroyed||(this.runningTasks[e]&&(delete this.runningTasks[e],this.runningTaskCount--,this.resolveWhenComplete()),u(this,Zi).page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.delete(e))}getTaskCount(){return this.runningTaskCount}newTaskID(){return this.constructor.taskID++,this.constructor.taskID}resolveWhenComplete(){this.applyDebugging(),!(this.runningTaskCount||this.runningTimers.length||this.runningImmediates.length)&&(this.waitUntilCompleteTimer&&(fi.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null),this.waitUntilCompleteTimer=fi.setTimeout(()=>{if(this.waitUntilCompleteTimer=null,!this.runningTaskCount&&!this.runningTimers.length&&!this.runningImmediates.length){u(this,Ka)&&fi.clearTimeout(u(this,Ka));let e=this.waitUntilCompleteResolvers;this.waitUntilCompleteResolvers=[];for(let t of e)t.resolve();this.destroyed=!1}else this.applyDebugging()},1))}applyDebugging(){let e=u(this,Zi).page.context.browser.settings.debug;!e?.traceWaitUntilComplete||e.traceWaitUntilComplete<1||u(this,Ka)||w(this,Ka,fi.setTimeout(()=>{w(this,Ka,null);let t=`The maximum time was reached for "waitUntilComplete()".
12
+ `}static getLogEntryIcon(e){switch(e.type){case Xe.group:return"\u25BC ";case Xe.groupCollapsed:return"\u25B6 "}return""}static getLogEntryGroupTabbing(e){let t="",r=e.type===Xe.group||e.type===Xe.groupCollapsed?e.group?.parent:e.group;for(;r;)t+=" ",r=r.parent;return t}static isLogEntryCollapsed(e){let t=e.type===Xe.group||e.type===Xe.groupCollapsed?e.group?.parent:e.group;for(;t;){if(t.collapsed)return!0;t=t.parent}return!1}};var Ya,Fn,Ns,qa=class{constructor(){E(this,Ya,[]);E(this,Fn,{print:[],clear:[]});E(this,Ns,!1)}get closed(){return u(this,Ns)}print(e){u(this,Ns)||(u(this,Ya).push(e),this.dispatchEvent(new k("print")))}clear(){u(this,Ns)||(w(this,Ya,[]),this.dispatchEvent(new k("clear")))}close(){u(this,Ns)||(w(this,Ya,[]),w(this,Fn,{print:[],clear:[]}),w(this,Ns,!0))}addEventListener(e,t){if(!u(this,Ns)){if(!u(this,Fn)[e])throw new Error(`Event type "${e}" is not supported.`);u(this,Fn)[e].push(t)}}removeEventListener(e,t){if(u(this,Ns))return;if(!u(this,Fn)[e])throw new Error(`Event type "${e}" is not supported.`);let r=u(this,Fn)[e].indexOf(t);r!==-1&&u(this,Fn)[e].splice(r,1)}dispatchEvent(e){if(!u(this,Ns))switch(e.type){case"print":case"clear":for(let t of u(this,Fn)[e.type])t(e);break;default:throw new Error(`Event type "${e.type}" is not supported.`)}}read(){let e=u(this,Ya);return w(this,Ya,[]),e}readAsString(e=Or.log){let t=this.read(),r="";for(let o of t)o.level>=e&&(r+=ub.toString(o));return r}};Ya=new WeakMap,Fn=new WeakMap,Ns=new WeakMap;var xy=class extends Error{constructor(e){super(e),this.name="AsyncTaskManagerDebugError"}};var fi={setTimeout:globalThis.setTimeout.bind(globalThis),clearTimeout:globalThis.clearTimeout.bind(globalThis),clearImmediate:globalThis.clearImmediate.bind(globalThis)},Ka,Zi,ts=class{constructor(e){s(this,"runningTasks",{});s(this,"runningTaskCount",0);s(this,"runningTimers",[]);s(this,"runningImmediates",[]);s(this,"debugTrace",new Map);s(this,"waitUntilCompleteTimer",null);s(this,"waitUntilCompleteResolvers",[]);s(this,"destroyed",!1);E(this,Ka,null);E(this,Zi);w(this,Zi,e)}waitUntilComplete(){return new Promise((e,t)=>{this.waitUntilCompleteResolvers.push({resolve:e,reject:t}),this.resolveWhenComplete()})}abort(){return this.destroyed?new Promise((e,t)=>{this.waitUntilCompleteResolvers.push({resolve:e,reject:t}),this.resolveWhenComplete()}):this.abortAll(!1)}destroy(){return this.destroyed?new Promise((e,t)=>{this.waitUntilCompleteResolvers.push({resolve:e,reject:t}),this.resolveWhenComplete()}):this.abortAll(!0)}startTimer(e){if(this.destroyed){fi.clearTimeout(e);return}this.waitUntilCompleteTimer&&(fi.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null),this.runningTimers.push(e),u(this,Zi).page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.set(e,new xy().stack)}endTimer(e){if(this.destroyed){fi.clearTimeout(e);return}let t=this.runningTimers.indexOf(e);t!==-1&&(this.runningTimers.splice(t,1),this.resolveWhenComplete()),u(this,Zi).page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.delete(e)}startImmediate(e){if(this.destroyed){fi.clearImmediate(e);return}this.waitUntilCompleteTimer&&(fi.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null),this.runningImmediates.push(e),u(this,Zi).page?.context?.browser?.settings?.debug?.traceWaitUntilComplete>0&&this.debugTrace.set(e,new xy().stack)}endImmediate(e){if(this.destroyed){fi.clearImmediate(e);return}let t=this.runningImmediates.indexOf(e);t!==-1&&(this.runningImmediates.splice(t,1),this.resolveWhenComplete()),u(this,Zi).page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.delete(e)}startTask(e){if(this.destroyed)throw e&&e(this.destroyed),new(u(this,Zi)).window.Error("Failed to execute 'startTask()' on 'AsyncTaskManager': The asynchronous task manager has been destroyed. This error can be thrown if scripts continue to run while a browser frame is closed.");this.waitUntilCompleteTimer&&(fi.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null);let t=this.newTaskID();return this.runningTasks[t]=e||(()=>{}),this.runningTaskCount++,u(this,Zi).page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.set(t,new xy().stack),t}endTask(e){this.destroyed||(this.runningTasks[e]&&(delete this.runningTasks[e],this.runningTaskCount--,this.resolveWhenComplete()),u(this,Zi).page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.delete(e))}getTaskCount(){return this.runningTaskCount}newTaskID(){return this.constructor.taskID++,this.constructor.taskID}resolveWhenComplete(){this.applyDebugging(),!(this.runningTaskCount||this.runningTimers.length||this.runningImmediates.length)&&(this.waitUntilCompleteTimer&&(fi.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null),this.waitUntilCompleteTimer=fi.setTimeout(()=>{if(this.waitUntilCompleteTimer=null,!this.runningTaskCount&&!this.runningTimers.length&&!this.runningImmediates.length){u(this,Ka)&&fi.clearTimeout(u(this,Ka));let e=this.waitUntilCompleteResolvers;this.waitUntilCompleteResolvers=[];for(let t of e)t.resolve();this.destroyed=!1}else this.applyDebugging()},1))}applyDebugging(){let e=u(this,Zi).page.context.browser.settings.debug;!e?.traceWaitUntilComplete||e.traceWaitUntilComplete<1||u(this,Ka)||w(this,Ka,fi.setTimeout(()=>{w(this,Ka,null);let t=`The maximum time was reached for "waitUntilComplete()".
13
13
 
14
14
  ${this.debugTrace.size} task${this.debugTrace.size===1?"":"s"} did not end in time.
15
15
 
@@ -19,10 +19,10 @@ The following traces were recorded:
19
19
  \u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E${n.replace(/AsyncTaskManagerDebugError:{0,1}/,"").replace(/\s+at /gm,`
20
20
  > `)}
21
21
 
22
- `,r++;let o=new Error(t);for(let i of this.waitUntilCompleteResolvers)i.reject(o);this.abortAll(!0)},e.traceWaitUntilComplete))}abortAll(e){let t=this.runningTimers,r=this.runningImmediates,o=this.runningTasks;e&&(this.destroyed=!0),this.runningTasks={},this.runningTaskCount=0,this.runningImmediates=[],this.runningTimers=[],this.debugTrace=new Map,this.waitUntilCompleteTimer&&(fi.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null);for(let i of r)fi.clearImmediate(i);for(let i of t)fi.clearTimeout(i);for(let i of Object.keys(o))o[i](e);return new Promise((i,n)=>{this.waitUntilCompleteResolvers.push({resolve:i,reject:n}),this.resolveWhenComplete()})}};Ka=new WeakMap,Zi=new WeakMap,s(ts,"taskID",0);import{Buffer as yH}from"buffer";import{webcrypto as uH}from"crypto";import{TextEncoder as pH,TextDecoder as hH}from"util";import tV from"stream";import{ReadableStream as cH}from"stream/web";import{URLSearchParams as dH}from"url";import Lw from"vm";var zw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Gu=class{static btoa(e){let t=e.toString();if(/[^\u0000-\u00ff]/.test(t))throw new ae("Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.",v.invalidCharacterError);let r="",o=-6,i=0,n=0,a=0,y;for(;n<t.length||o>-6;)o<0&&(n<t.length?(y=t.charCodeAt(n++),a+=8):y=0,i=(i&255)<<8|y&255,o+=8),r+=zw.charAt(a>0?i>>o&63:64),o-=6,a-=6;return r}static atob(e){let t=e.toString();if(/[^\u0000-\u00ff]/.test(t))throw new ae("Failed to execute 'atob' on 'Window': The string to be decoded contains characters outside of the Latin1 range.",v.invalidCharacterError);if(/[^A-Za-z\d+/=]/.test(t)||t.length%4==1)throw new ae("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.",v.invalidCharacterError);let r="",o=-8,i=0,n,a;for(let y=0;y<t.length;y++)(n=zw.indexOf(t.charAt(y)))<0||(i=i<<6|n&63,(o+=6)>=0&&(a=i>>o&255,n!==64&&(r+=String.fromCharCode(a)),i&=63,o-=8));return r}};var QP;(function(l){l.tryAndCatch="tryAndCatch",l.processLevel="processLevel",l.disabled="disabled"})(QP||(QP={}));var ue=QP;import{Buffer as pb}from"buffer";import{ReadableStream as qV}from"stream/web";var Jw;Jw=Mt;var PS=class PS{constructor(e,t){s(this,"type","");s(this,Jw);let r=[];if(e)for(let o of e){let i;o instanceof ArrayBuffer?i=pb.from(new Uint8Array(o)):o instanceof PS?i=o[Mt]:o instanceof pb?i=o:ArrayBuffer.isView(o)?i=pb.from(new Uint8Array(o.buffer,o.byteOffset,o.byteLength)):i=pb.from(typeof o=="string"?o:String(o)),r.push(i)}this[Mt]=pb.concat(r),t&&t.type&&t.type.match(/^[\u0020-\u007E]*$/)&&(this.type=String(t.type).toLowerCase())}get size(){return this[Mt].length}slice(e=0,t=null,r=""){let o=this.size,i,n,a;e===void 0?i=0:e<0?i=Math.max(o+e,0):i=Math.min(e,o),t===null?n=o:t<0?n=Math.max(o+t,0):n=Math.min(t,o),r===void 0?a="":a=r;let y=Math.max(n-i,0),d=this[Mt].slice(i,i+y),b=new PS([],{type:a});return b[Mt]=d,b}async arrayBuffer(){return new Uint8Array(this[Mt]).buffer}async text(){return this[Mt].toString()}stream(){let e=this[Mt];return new qV({start(t){t.enqueue(e),t.close()}})}toString(){return"[object Blob]"}},be=PS;var ki,vy,ja=class{constructor(e){E(this,ki);E(this,vy,[]);if(!e)throw new TypeError("Illegal constructor");w(this,ki,e)}async read(){if((await u(this,ki).navigator.permissions.query({name:"clipboard-read"})).state==="denied")throw new(u(this,ki)).DOMException("Failed to execute 'read' on 'Clipboard': The request is not allowed");return u(this,vy)}async readText(){if((await u(this,ki).navigator.permissions.query({name:"clipboard-read"})).state==="denied")throw new(u(this,ki)).DOMException("Failed to execute 'readText' on 'Clipboard': The request is not allowed");let t="";for(let r of u(this,vy))if(r.types.includes("text/plain")){let o=await r.getType("text/plain");typeof o=="string"?t+=o:t+=await o.text()}return t}async write(e){if((await u(this,ki).navigator.permissions.query({name:"clipboard-write"})).state==="denied")throw new(u(this,ki)).DOMException("Failed to execute 'write' on 'Clipboard': The request is not allowed");w(this,vy,e)}async writeText(e){if((await u(this,ki).navigator.permissions.query({name:"clipboard-write"})).state==="denied")throw new(u(this,ki)).DOMException("Failed to execute 'writeText' on 'Clipboard': The request is not allowed");w(this,vy,[new(u(this,ki)).ClipboardItem({"text/plain":new be([e],{type:"text/plain"})})])}};ki=new WeakMap,vy=new WeakMap;var Fl,_u=class{constructor(e,t){s(this,"presentationStyle","unspecified");E(this,Fl);w(this,Fl,e),t?.presentationStyle&&(this.presentationStyle=t.presentationStyle)}get types(){return Object.keys(u(this,Fl))}async getType(e){if(!u(this,Fl)[e])throw new ae(`Failed to execute 'getType' on 'ClipboardItem': The type '${e}' was not found`);return u(this,Fl)[e]instanceof be?u(this,Fl)[e]:new be([await u(this,Fl)[e]],{type:e})}};Fl=new WeakMap;var hb=class{static escape(e){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),r=t.length,o=-1,i,n="",a=t.charCodeAt(0);if(r==1&&a==45)return"\\"+t;for(;++o<r;){if(i=t.charCodeAt(o),i==0){n+="\uFFFD";continue}if(i>=1&&i<=31||i==127||o==0&&i>=48&&i<=57||o==1&&i>=48&&i<=57&&a==45){n+="\\"+i.toString(16)+" ";continue}if(i>=128||i==45||i==95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){n+=t.charAt(o);continue}n+="\\"+t.charAt(o)}return n}};var Zw=["Hz","Q","ch","cm","deg","dpcm","dpi","dppx","em","ex","fr","grad","in","kHz","mm","ms","number","pc","percent","pt","px","rad","rem","s","turn","vh","vmax","vmin","vw"];var ge=class{constructor(e,t){s(this,"unit");s(this,"value");if(typeof e!="number")throw new TypeError("The provided double value is non-finite");if(!Zw.includes(t))throw new TypeError("Invalid unit: "+t);this.value=e,this.unit=t}};var cb=class{constructor(){s(this,"Hz",e=>new ge(e,"Hz"));s(this,"Q",e=>new ge(e,"Q"));s(this,"ch",e=>new ge(e,"ch"));s(this,"cm",e=>new ge(e,"cm"));s(this,"deg",e=>new ge(e,"deg"));s(this,"dpcm",e=>new ge(e,"dpcm"));s(this,"dpi",e=>new ge(e,"dpi"));s(this,"dppx",e=>new ge(e,"dppx"));s(this,"em",e=>new ge(e,"em"));s(this,"ex",e=>new ge(e,"ex"));s(this,"fr",e=>new ge(e,"fr"));s(this,"grad",e=>new ge(e,"grad"));s(this,"in",e=>new ge(e,"in"));s(this,"kHz",e=>new ge(e,"kHz"));s(this,"mm",e=>new ge(e,"mm"));s(this,"ms",e=>new ge(e,"ms"));s(this,"number",e=>new ge(e,"number"));s(this,"pc",e=>new ge(e,"pc"));s(this,"percent",e=>new ge(e,"percent"));s(this,"pt",e=>new ge(e,"pt"));s(this,"px",e=>new ge(e,"px"));s(this,"rad",e=>new ge(e,"rad"));s(this,"rem",e=>new ge(e,"rem"));s(this,"s",e=>new ge(e,"s"));s(this,"turn",e=>new ge(e,"turn"));s(this,"vh",e=>new ge(e,"vh"));s(this,"vmax",e=>new ge(e,"vmax"));s(this,"vmin",e=>new ge(e,"vmin"));s(this,"vw",e=>new ge(e,"vw"))}supports(e,t){return!0}escape(e){return hb.escape(e)}};var $P;(function(l){l[l.containerRule=0]="containerRule",l[l.styleRule=1]="styleRule",l[l.importRule=3]="importRule",l[l.mediaRule=4]="mediaRule",l[l.fontFaceRule=5]="fontFaceRule",l[l.pageRule=6]="pageRule",l[l.keyframesRule=7]="keyframesRule",l[l.keyframeRule=8]="keyframeRule",l[l.namespaceRule=10]="namespaceRule",l[l.counterStyleRule=11]="counterStyleRule",l[l.supportsRule=12]="supportsRule",l[l.documentRule=13]="documentRule",l[l.fontFeatureValuesRule=14]="fontFeatureValuesRule",l[l.regionStyleRule=16]="regionStyleRule"})($P||($P={}));var ht=$P;var tE,eE,rE,oE;oE=m,rE=Sy,eE=kl,tE=bi;var Re=class{constructor(e,t,r){s(this,oE);s(this,rE);s(this,eE,null);s(this,tE,null);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[Sy]=r}get parentRule(){return this[kl]}get parentStyleSheet(){return this[bi]}};s(Re,"CONTAINER_RULE",ht.containerRule),s(Re,"STYLE_RULE",ht.styleRule),s(Re,"IMPORT_RULE",ht.importRule),s(Re,"MEDIA_RULE",ht.mediaRule),s(Re,"FONT_FACE_RULE",ht.fontFaceRule),s(Re,"PAGE_RULE",ht.pageRule),s(Re,"KEYFRAMES_RULE",ht.keyframesRule),s(Re,"KEYFRAME_RULE",ht.keyframeRule),s(Re,"NAMESPACE_RULE",ht.namespaceRule),s(Re,"COUNTER_STYLE_RULE",ht.counterStyleRule),s(Re,"SUPPORTS_RULE",ht.supportsRule),s(Re,"DOCUMENT_RULE",ht.documentRule),s(Re,"FONT_FEATURE_VALUES_RULE",ht.fontFeatureValuesRule),s(Re,"REGION_STYLE_RULE",ht.regionStyleRule);var KV=/[,()]/gm,jV=/[()]|\s+/gm,Qa=class{static splitByComma(e){let t=[],r=new RegExp(KV),o,i=0,n=0;for(;o=r.exec(e);)switch(o[0]){case"(":i++;break;case")":i--;break;case",":if(i===0){let a=e.substring(n,o.index).trim();a&&t.push(a),n=r.lastIndex}break}return n<e.length&&t.push(e.substring(n).trim()),t}static splitBySpace(e){let t=[],r=new RegExp(jV),o,i=0,n=0;for(;o=r.exec(e);)switch(o[0]){case"(":i++;break;case")":i--;break;default:if(i===0){let a=e.substring(n,o.index).trim();a&&t.push(a),n=r.lastIndex}break}if(n<e.length){let a=e.substring(n).trim();a&&t.push(a)}return t}};var QV=/^#([0-9a-fA-F]{3,4}){1,2}$|^rgb\(([^)]*)\)$|^rgba\(([^)]*)\)$|^hsla?\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*(,\s*(-?\d+|-?\d*.\d+)\s*)?\)|(?:(rgba?|hsla?)\((var\(\s*(--[^)\s]+)\))\))/,$V=/^(0|[-+]?[0-9]*\.?[0-9]+)(in|cm|em|mm|pt|pc|px|ex|rem|vh|vw|ch|vw|vh|vmin|vmax|Q)$/,XV=/^[-+]?[0-9]*\.?[0-9]+%$/,zV=/^[0-9]+deg$/,JV=/^url\(\s*([^)]*)\s*\)$/,ZV=/^[0-9]+$/,t2=/^[0-9.]+$/,e2=/^calc\([^^)]+\)$/,r2=/^var\(\s*(--[^)\s]+)\)$/,o2=/^fit-content\([^^)]+\)$/,i2=/^((repeating-linear|linear|radial|repeating-radial|conic|repeating-conic)-gradient)\(((?:[^()]|\([^()]*\))*)\)$/,iE=["inherit","initial","unset","revert"],s2=["none","currentcolor","transparent","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aliceblue","aqua","antiquewhite","aquamarine","azure","beige","bisque","black","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rebeccapurple","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen"],g=class{static getLength(e){if(e==="0")return"0px";let t=e.match($V);if(t){let r=parseFloat(t[1]);if(isNaN(r))return null;let o=t[2];return`${Math.round(r*1e6)/1e6}${o}`}return null}static getPercentage(e){return e==="0"?"0%":XV.test(e)?e:null}static getDegree(e){return e==="0"?"0deg":zV.test(e)?e:null}static getCalc(e){return e2.test(e)?e:null}static getFitContent(e){let t=e.toLowerCase();return t==="auto"||t==="max-content"||t==="min-content"||t==="fit-content"||o2.test(t)?t:null}static getMeasurement(e){return this.getLength(e)||this.getPercentage(e)||this.getCalc(e)}static getContentMeasurement(e){return this.getFitContent(e)||this.getMeasurement(e)}static getAutoMeasurement(e){return e.toLocaleLowerCase()==="auto"?"auto":this.getMeasurement(e)}static getInteger(e){return ZV.test(e)?e:null}static getFloat(e){if(t2.test(e)){let t=parseFloat(e);return isNaN(t)?null:String(Math.round(t*1e6)/1e6)}return null}static getGradient(e){let t=e.match(i2);if(t){let r=t[3].trim(),o=Qa.splitByComma(r);return`${t[1]}(${o.join(", ")})`}return null}static getColor(e){let t=e.toLowerCase();return s2.includes(t)?t:QV.test(e)?e.replace(/,([^ ])/g,", $1"):null}static getURL(e){if(!e)return null;if(e.toLowerCase()==="none")return"none";let t=JV.exec(e);if(!t)return null;let r=t[1].trim();if((r[0]==='"'||r[0]==="'")&&r[0]!==r[r.length-1])return null;(r[0]==='"'||r[0]==="'")&&(r=r.substring(1,r.length-1));for(let o=0;o<r.length;o++)switch(r[o]){case"(":case")":case" ":case" ":case`
22
+ `,r++;let o=new Error(t);for(let i of this.waitUntilCompleteResolvers)i.reject(o);this.abortAll(!0)},e.traceWaitUntilComplete))}abortAll(e){let t=this.runningTimers,r=this.runningImmediates,o=this.runningTasks;e&&(this.destroyed=!0),this.runningTasks={},this.runningTaskCount=0,this.runningImmediates=[],this.runningTimers=[],this.debugTrace=new Map,this.waitUntilCompleteTimer&&(fi.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null);for(let i of r)fi.clearImmediate(i);for(let i of t)fi.clearTimeout(i);for(let i of Object.keys(o))o[i](e);return new Promise((i,n)=>{this.waitUntilCompleteResolvers.push({resolve:i,reject:n}),this.resolveWhenComplete()})}};Ka=new WeakMap,Zi=new WeakMap,s(ts,"taskID",0);import{Buffer as uH}from"buffer";import{webcrypto as pH}from"crypto";import{TextEncoder as hH,TextDecoder as cH}from"util";import tV from"stream";import{ReadableStream as dH}from"stream/web";import{URLSearchParams as bH}from"url";import Lw from"vm";var zw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Gu=class{static btoa(e){let t=e.toString();if(/[^\u0000-\u00ff]/.test(t))throw new ae("Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.",v.invalidCharacterError);let r="",o=-6,i=0,n=0,a=0,y;for(;n<t.length||o>-6;)o<0&&(n<t.length?(y=t.charCodeAt(n++),a+=8):y=0,i=(i&255)<<8|y&255,o+=8),r+=zw.charAt(a>0?i>>o&63:64),o-=6,a-=6;return r}static atob(e){let t=e.toString();if(/[^\u0000-\u00ff]/.test(t))throw new ae("Failed to execute 'atob' on 'Window': The string to be decoded contains characters outside of the Latin1 range.",v.invalidCharacterError);if(/[^A-Za-z\d+/=]/.test(t)||t.length%4==1)throw new ae("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.",v.invalidCharacterError);let r="",o=-8,i=0,n,a;for(let y=0;y<t.length;y++)(n=zw.indexOf(t.charAt(y)))<0||(i=i<<6|n&63,(o+=6)>=0&&(a=i>>o&255,n!==64&&(r+=String.fromCharCode(a)),i&=63,o-=8));return r}};var QP;(function(l){l.tryAndCatch="tryAndCatch",l.processLevel="processLevel",l.disabled="disabled"})(QP||(QP={}));var ue=QP;import{Buffer as pb}from"buffer";import{ReadableStream as qV}from"stream/web";var Jw;Jw=Mt;var PS=class PS{constructor(e,t){s(this,"type","");s(this,Jw);let r=[];if(e)for(let o of e){let i;o instanceof ArrayBuffer?i=pb.from(new Uint8Array(o)):o instanceof PS?i=o[Mt]:o instanceof pb?i=o:ArrayBuffer.isView(o)?i=pb.from(new Uint8Array(o.buffer,o.byteOffset,o.byteLength)):i=pb.from(typeof o=="string"?o:String(o)),r.push(i)}this[Mt]=pb.concat(r),t&&t.type&&t.type.match(/^[\u0020-\u007E]*$/)&&(this.type=String(t.type).toLowerCase())}get size(){return this[Mt].length}slice(e=0,t=null,r=""){let o=this.size,i,n,a;e===void 0?i=0:e<0?i=Math.max(o+e,0):i=Math.min(e,o),t===null?n=o:t<0?n=Math.max(o+t,0):n=Math.min(t,o),r===void 0?a="":a=r;let y=Math.max(n-i,0),d=this[Mt].slice(i,i+y),b=new PS([],{type:a});return b[Mt]=d,b}async arrayBuffer(){return new Uint8Array(this[Mt]).buffer}async text(){return this[Mt].toString()}stream(){let e=this[Mt];return new qV({start(t){t.enqueue(e),t.close()}})}toString(){return"[object Blob]"}},be=PS;var ki,vy,ja=class{constructor(e){E(this,ki);E(this,vy,[]);if(!e)throw new TypeError("Illegal constructor");w(this,ki,e)}async read(){if((await u(this,ki).navigator.permissions.query({name:"clipboard-read"})).state==="denied")throw new(u(this,ki)).DOMException("Failed to execute 'read' on 'Clipboard': The request is not allowed");return u(this,vy)}async readText(){if((await u(this,ki).navigator.permissions.query({name:"clipboard-read"})).state==="denied")throw new(u(this,ki)).DOMException("Failed to execute 'readText' on 'Clipboard': The request is not allowed");let t="";for(let r of u(this,vy))if(r.types.includes("text/plain")){let o=await r.getType("text/plain");typeof o=="string"?t+=o:t+=await o.text()}return t}async write(e){if((await u(this,ki).navigator.permissions.query({name:"clipboard-write"})).state==="denied")throw new(u(this,ki)).DOMException("Failed to execute 'write' on 'Clipboard': The request is not allowed");w(this,vy,e)}async writeText(e){if((await u(this,ki).navigator.permissions.query({name:"clipboard-write"})).state==="denied")throw new(u(this,ki)).DOMException("Failed to execute 'writeText' on 'Clipboard': The request is not allowed");w(this,vy,[new(u(this,ki)).ClipboardItem({"text/plain":new be([e],{type:"text/plain"})})])}};ki=new WeakMap,vy=new WeakMap;var Fl,_u=class{constructor(e,t){s(this,"presentationStyle","unspecified");E(this,Fl);w(this,Fl,e),t?.presentationStyle&&(this.presentationStyle=t.presentationStyle)}get types(){return Object.keys(u(this,Fl))}async getType(e){if(!u(this,Fl)[e])throw new ae(`Failed to execute 'getType' on 'ClipboardItem': The type '${e}' was not found`);return u(this,Fl)[e]instanceof be?u(this,Fl)[e]:new be([await u(this,Fl)[e]],{type:e})}};Fl=new WeakMap;var hb=class{static escape(e){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),r=t.length,o=-1,i,n="",a=t.charCodeAt(0);if(r==1&&a==45)return"\\"+t;for(;++o<r;){if(i=t.charCodeAt(o),i==0){n+="\uFFFD";continue}if(i>=1&&i<=31||i==127||o==0&&i>=48&&i<=57||o==1&&i>=48&&i<=57&&a==45){n+="\\"+i.toString(16)+" ";continue}if(i>=128||i==45||i==95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){n+=t.charAt(o);continue}n+="\\"+t.charAt(o)}return n}};var Zw=["Hz","Q","ch","cm","deg","dpcm","dpi","dppx","em","ex","fr","grad","in","kHz","mm","ms","number","pc","percent","pt","px","rad","rem","s","turn","vh","vmax","vmin","vw"];var ge=class{constructor(e,t){s(this,"unit");s(this,"value");if(typeof e!="number")throw new TypeError("The provided double value is non-finite");if(!Zw.includes(t))throw new TypeError("Invalid unit: "+t);this.value=e,this.unit=t}};var cb=class{constructor(){s(this,"Hz",e=>new ge(e,"Hz"));s(this,"Q",e=>new ge(e,"Q"));s(this,"ch",e=>new ge(e,"ch"));s(this,"cm",e=>new ge(e,"cm"));s(this,"deg",e=>new ge(e,"deg"));s(this,"dpcm",e=>new ge(e,"dpcm"));s(this,"dpi",e=>new ge(e,"dpi"));s(this,"dppx",e=>new ge(e,"dppx"));s(this,"em",e=>new ge(e,"em"));s(this,"ex",e=>new ge(e,"ex"));s(this,"fr",e=>new ge(e,"fr"));s(this,"grad",e=>new ge(e,"grad"));s(this,"in",e=>new ge(e,"in"));s(this,"kHz",e=>new ge(e,"kHz"));s(this,"mm",e=>new ge(e,"mm"));s(this,"ms",e=>new ge(e,"ms"));s(this,"number",e=>new ge(e,"number"));s(this,"pc",e=>new ge(e,"pc"));s(this,"percent",e=>new ge(e,"percent"));s(this,"pt",e=>new ge(e,"pt"));s(this,"px",e=>new ge(e,"px"));s(this,"rad",e=>new ge(e,"rad"));s(this,"rem",e=>new ge(e,"rem"));s(this,"s",e=>new ge(e,"s"));s(this,"turn",e=>new ge(e,"turn"));s(this,"vh",e=>new ge(e,"vh"));s(this,"vmax",e=>new ge(e,"vmax"));s(this,"vmin",e=>new ge(e,"vmin"));s(this,"vw",e=>new ge(e,"vw"))}supports(e,t){return!0}escape(e){return hb.escape(e)}};var $P;(function(l){l[l.containerRule=0]="containerRule",l[l.styleRule=1]="styleRule",l[l.importRule=3]="importRule",l[l.mediaRule=4]="mediaRule",l[l.fontFaceRule=5]="fontFaceRule",l[l.pageRule=6]="pageRule",l[l.keyframesRule=7]="keyframesRule",l[l.keyframeRule=8]="keyframeRule",l[l.namespaceRule=10]="namespaceRule",l[l.counterStyleRule=11]="counterStyleRule",l[l.supportsRule=12]="supportsRule",l[l.documentRule=13]="documentRule",l[l.fontFeatureValuesRule=14]="fontFeatureValuesRule",l[l.regionStyleRule=16]="regionStyleRule"})($P||($P={}));var ht=$P;var tE,eE,rE,oE;oE=m,rE=Sy,eE=kl,tE=bi;var Re=class{constructor(e,t,r){s(this,oE);s(this,rE);s(this,eE,null);s(this,tE,null);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[Sy]=r}get parentRule(){return this[kl]}get parentStyleSheet(){return this[bi]}};s(Re,"CONTAINER_RULE",ht.containerRule),s(Re,"STYLE_RULE",ht.styleRule),s(Re,"IMPORT_RULE",ht.importRule),s(Re,"MEDIA_RULE",ht.mediaRule),s(Re,"FONT_FACE_RULE",ht.fontFaceRule),s(Re,"PAGE_RULE",ht.pageRule),s(Re,"KEYFRAMES_RULE",ht.keyframesRule),s(Re,"KEYFRAME_RULE",ht.keyframeRule),s(Re,"NAMESPACE_RULE",ht.namespaceRule),s(Re,"COUNTER_STYLE_RULE",ht.counterStyleRule),s(Re,"SUPPORTS_RULE",ht.supportsRule),s(Re,"DOCUMENT_RULE",ht.documentRule),s(Re,"FONT_FEATURE_VALUES_RULE",ht.fontFeatureValuesRule),s(Re,"REGION_STYLE_RULE",ht.regionStyleRule);var KV=/[,()]/gm,jV=/[()]|\s+/gm,Qa=class{static splitByComma(e){let t=[],r=new RegExp(KV),o,i=0,n=0;for(;o=r.exec(e);)switch(o[0]){case"(":i++;break;case")":i--;break;case",":if(i===0){let a=e.substring(n,o.index).trim();a&&t.push(a),n=r.lastIndex}break}return n<e.length&&t.push(e.substring(n).trim()),t}static splitBySpace(e){let t=[],r=new RegExp(jV),o,i=0,n=0;for(;o=r.exec(e);)switch(o[0]){case"(":i++;break;case")":i--;break;default:if(i===0){let a=e.substring(n,o.index).trim();a&&t.push(a),n=r.lastIndex}break}if(n<e.length){let a=e.substring(n).trim();a&&t.push(a)}return t}};var QV=/^#([0-9a-fA-F]{3,4}){1,2}$|^rgb\(([^)]*)\)$|^rgba\(([^)]*)\)$|^hsla?\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*(,\s*(-?\d+|-?\d*.\d+)\s*)?\)|(?:(rgba?|hsla?)\((var\(\s*(--[^)\s]+)\))\))/,$V=/^(0|[-+]?[0-9]*\.?[0-9]+)(in|cm|em|mm|pt|pc|px|ex|rem|vh|vw|ch|vw|vh|vmin|vmax|Q)$/,XV=/^[-+]?[0-9]*\.?[0-9]+%$/,zV=/^[0-9]+deg$/,JV=/^url\(\s*([^)]*)\s*\)$/,ZV=/^[0-9]+$/,t2=/^[0-9.]+$/,e2=/^calc\([^^)]+\)$/,r2=/^var\(\s*(--[^)\s]+)\)$/,o2=/^fit-content\([^^)]+\)$/,i2=/^((repeating-linear|linear|radial|repeating-radial|conic|repeating-conic)-gradient)\(((?:[^()]|\([^()]*\))*)\)$/,iE=["inherit","initial","unset","revert"],s2=["none","currentcolor","transparent","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aliceblue","aqua","antiquewhite","aquamarine","azure","beige","bisque","black","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rebeccapurple","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen"],g=class{static getLength(e){if(e==="0")return"0px";let t=e.match($V);if(t){let r=parseFloat(t[1]);if(isNaN(r))return null;let o=t[2];return`${Math.round(r*1e6)/1e6}${o}`}return null}static getPercentage(e){return e==="0"?"0%":XV.test(e)?e:null}static getDegree(e){return e==="0"?"0deg":zV.test(e)?e:null}static getCalc(e){return e2.test(e)?e:null}static getFitContent(e){let t=e.toLowerCase();return t==="auto"||t==="max-content"||t==="min-content"||t==="fit-content"||o2.test(t)?t:null}static getMeasurement(e){return this.getLength(e)||this.getPercentage(e)||this.getCalc(e)}static getContentMeasurement(e){return this.getFitContent(e)||this.getMeasurement(e)}static getAutoMeasurement(e){return e.toLocaleLowerCase()==="auto"?"auto":this.getMeasurement(e)}static getInteger(e){return ZV.test(e)?e:null}static getFloat(e){if(t2.test(e)){let t=parseFloat(e);return isNaN(t)?null:String(Math.round(t*1e6)/1e6)}return null}static getGradient(e){let t=e.match(i2);if(t){let r=t[3].trim(),o=Qa.splitByComma(r);return`${t[1]}(${o.join(", ")})`}return null}static getColor(e){let t=e.toLowerCase();return s2.includes(t)?t:QV.test(e)?e.replace(/,([^ ])/g,", $1"):null}static getURL(e){if(!e)return null;if(e.toLowerCase()==="none")return"none";let t=JV.exec(e);if(!t)return null;let r=t[1].trim();if((r[0]==='"'||r[0]==="'")&&r[0]!==r[r.length-1])return null;(r[0]==='"'||r[0]==="'")&&(r=r.substring(1,r.length-1));for(let o=0;o<r.length;o++)switch(r[o]){case"(":case")":case" ":case" ":case`
23
23
  `:case"'":case'"':return null;case"\\":o++;break}return`url("${r}")`}static getInitial(e){return e.toLowerCase()==="initial"?"initial":null}static getVariable(e){let t=e.match(r2);return t?`var(${t[1]})`:null}static getGlobal(e){let t=e.toLowerCase();return iE.includes(t)?t:null}static getGlobalExceptInitial(e){let t=e.toLowerCase();return t!=="initial"&&iE.includes(t)?t:null}};var n2=/^rect\((.*)\)$/i,AS=/,(?=(?:(?:(?!\))[\s\S])*\()|[^\(\)]*$)/,cr=/\s+(?=(?:(?:(?!\))[\s\S])*\()|[^\(\)]*$)/,l2=/\s+/gm,db=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],bb=["thin","medium","thick"],a2=["separate","collapse"],m2=["repeat","repeat-x","repeat-y","no-repeat"],y2=["border-box","padding-box","content-box"],u2=["border-box","padding-box","content-box"],p2=["scroll","fixed"],h2=["auto","fill","content"],c2=["none","left","right","both"],d2=["none","left","right","inline-start","inline-end"],b2=["caption","icon","menu","message-box","small-caption","status-bar"],g2=["normal","bold","bolder","lighter"],f2=["normal","italic","oblique"],S2=["xx-small","x-small","small","medium","large","x-large","xx-large","xxx-large","smaller","larger"],P2=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],A2=["block","inline","inline-block","flex","inline-flex","grid","inline-grid","flow-root","none","contents","block flow","inline flow","inline flow-root","block flex","inline flex","block grid","inline grid","block flow-root","table","table-row","list-item"],w2=["stretch","repeat","round","space"],E2=["capitalize","uppercase","lowercase","none","full-width","full-size-kana"],x2=["visible","hidden","collapse"],J=class{static getBorderCollapse(e,t){let r=g.getVariable(e);if(r)return{"border-collapse":{value:r,important:t}};let o=e.toLowerCase();return g.getGlobal(o)||a2.includes(o)?{"border-collapse":{value:o,important:t}}:null}static getDisplay(e,t){let r=g.getVariable(e);if(r)return{display:{value:r,important:t}};let o=e.toLowerCase();return g.getGlobal(o)||A2.includes(o)?{display:{value:o,important:t}}:null}static getDirection(e,t){let r=g.getVariable(e);if(r)return{direction:{value:r,important:t}};let o=e.toLowerCase();return g.getGlobal(o)||o==="ltr"||o==="rtl"?{direction:{value:o,important:t}}:null}static getLetterSpacing(e,t){let r=g.getVariable(e)||g.getGlobal(e)||g.getContentMeasurement(e);return r?{"letter-spacing":{value:r,important:t}}:null}static getWordSpacing(e,t){let r=g.getVariable(e)||g.getGlobal(e)||g.getContentMeasurement(e);return r?{"word-spacing":{value:r,important:t}}:null}static getTextIndent(e,t){let r=g.getVariable(e)||g.getGlobal(e)||g.getContentMeasurement(e);return r?{"text-indent":{value:r,important:t}}:null}static getWidth(e,t){let r=g.getVariable(e)||g.getGlobal(e)||g.getContentMeasurement(e);return r?{width:{value:r,important:t}}:null}static getHeight(e,t){let r=g.getVariable(e)||g.getGlobal(e)||g.getContentMeasurement(e);return r?{height:{value:r,important:t}}:null}static getTop(e,t){let r=g.getVariable(e)||g.getGlobal(e)||g.getContentMeasurement(e);return r?{top:{value:r,important:t}}:null}static getRight(e,t){let r=g.getVariable(e)||g.getGlobal(e)||g.getContentMeasurement(e);return r?{right:{value:r,important:t}}:null}static getBottom(e,t){let r=g.getVariable(e)||g.getGlobal(e)||g.getContentMeasurement(e);return r?{bottom:{value:r,important:t}}:null}static getLeft(e,t){let r=g.getVariable(e)||g.getGlobal(e)||g.getContentMeasurement(e);return r?{left:{value:r,important:t}}:null}static getClear(e,t){let r=g.getVariable(e);if(r)return{clear:{value:r,important:t}};let o=e.toLowerCase();return g.getGlobal(o)||c2.includes(o)?{clear:{value:o,important:t}}:null}static getClip(e,t){let r=g.getVariable(e);if(r)return{clip:{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o)||o==="auto")return{clip:{value:o,important:t}};let i=o.match(n2);if(!i)return null;let n=i[1].split(/\s*,\s*/);if(n.length!==4)return null;for(let a of n)if(!g.getMeasurement(a))return null;return{clip:{value:e,important:t}}}static getFloat(e,t){let r=g.getVariable(e);if(r)return{float:{value:r,important:t}};let o=e.toLowerCase();return g.getGlobal(o)||d2.includes(o)?{float:{value:o,important:t}}:null}static getCSSFloat(e,t){let r=g.getVariable(e);if(r)return{"css-float":{value:r,important:t}};let o=this.getFloat(e,t);return o?{"css-float":o.float}:null}static getOutline(e,t){let r=g.getVariable(e);if(r)return{outline:{value:r,important:t}};let o=g.getGlobal(e);if(o)return{...this.getOutlineColor(o,t),...this.getOutlineStyle(o,t),...this.getOutlineWidth(o,t)};let i={...this.getOutlineColor("initial",t),...this.getOutlineStyle("initial",t),...this.getOutlineWidth("initial",t)},n=e.split(cr);for(let a of n){let y=this.getOutlineWidth(a,t),p=this.getOutlineStyle(a,t),d=this.getOutlineColor(a,t);if(y===null&&p===null&&d===null)return null;Object.assign(i,y,p,d)}return i}static getOutlineColor(e,t){let r=g.getVariable(e)||g.getGlobal(e)||g.getColor(e);return r?{"outline-color":{value:r,important:t}}:null}static getOutlineOffset(e,t){let r=g.getVariable(e)||g.getLength(e);return r?{"outline-offset":{value:r,important:t}}:null}static getOutlineStyle(e,t){let r=g.getVariable(e);if(r)return{"outline-style":{value:r,important:t}};let o=e.toLowerCase();return g.getGlobal(o)||db.includes(o)?{"outline-style":{value:o,important:t}}:null}static getOutlineWidth(e,t){let r=g.getVariable(e);if(r)return{"outline-width":{value:r,important:t}};let o=e.toLowerCase(),i=bb.includes(o)||g.getGlobal(o)?o:g.getLength(e);return i?{"outline-width":{value:i,important:t}}:null}static getBorder(e,t){let r=g.getVariable(e);if(r)return{border:{value:r,important:t}};let o=g.getGlobal(e);if(o)return{...this.getBorderWidth(o,t),...this.getBorderStyle(o,t),...this.getBorderColor(o,t),...this.getBorderImage(o,t)};let i={...this.getBorderWidth("initial",t),...this.getBorderStyle("initial",t),...this.getBorderColor("initial",t),...this.getBorderImage("initial",t)},n=e.replace(/\s*,\s*/g,",").split(cr);for(let a of n){let y=this.getBorderWidth(a,t),p=this.getBorderStyle(a,t),d=this.getBorderColor(a,t);if(y===null&&p===null&&d===null)return null;Object.assign(i,y,p,d)}return i}static getBorderWidth(e,t){let r=g.getVariable(e);if(r)return{"border-width":{value:r,important:t}};let o=g.getGlobal(e);if(o)return{...this.getBorderTopWidth(o,t),...this.getBorderRightWidth(o,t),...this.getBorderBottomWidth(o,t),...this.getBorderLeftWidth(o,t)};let i=e.split(cr),n=this.getBorderTopWidth(i[0],t),a=this.getBorderRightWidth(i[1]||i[0],t),y=this.getBorderBottomWidth(i[2]||i[0],t),p=this.getBorderLeftWidth(i[3]||i[1]||i[0],t);return!n||!a||!y||!p?null:{...n,...a,...y,...p}}static getBorderStyle(e,t){let r=g.getVariable(e);if(r)return{"border-style":{value:r,important:t}};let o=g.getGlobal(e);if(o)return{...this.getBorderTopStyle(o,t),...this.getBorderRightStyle(o,t),...this.getBorderBottomStyle(o,t),...this.getBorderLeftStyle(o,t)};let i=e.split(cr),n=this.getBorderTopStyle(i[0],t),a=this.getBorderRightStyle(i[1]||i[0],t),y=this.getBorderBottomStyle(i[2]||i[0],t),p=this.getBorderLeftStyle(i[3]||i[1]||i[0],t);return!n||!a||!y||!p?null:{...n,...a,...y,...p}}static getBorderColor(e,t){let r=g.getVariable(e);if(r)return{"border-color":{value:r,important:t}};let o=g.getGlobal(e);if(o)return{...this.getBorderTopColor(o,t),...this.getBorderRightColor(o,t),...this.getBorderBottomColor(o,t),...this.getBorderLeftColor(o,t)};let i=e.split(cr),n=this.getBorderTopColor(i[0],t),a=this.getBorderRightColor(i[1]||i[0],t),y=this.getBorderBottomColor(i[2]||i[0],t),p=this.getBorderLeftColor(i[3]||i[1]||i[0],t);return!n||!a||!y||!p?null:{...n,...a,...y,...p}}static getBorderImage(e,t){let r=g.getVariable(e);if(r)return{"border-image":{value:r,important:t}};let o=g.getGlobal(e);if(o)return{...this.getBorderImageSource(o,t),...this.getBorderImageSlice(o,t),...this.getBorderImageWidth(o,t),...this.getBorderImageOutset(o,t),...this.getBorderImageRepeat(o,t)};let i=e.replace(/\s\/\s/g,"/"),n=i.match(/\s*([a-zA-Z-]+\([^)]*\))\s*/);n&&(i=i.replace(n[0],""));let a=i.split(cr);n&&a.push(n[1]);let y={...this.getBorderImageSource("none",t),...this.getBorderImageSlice("100%",t),...this.getBorderImageWidth("1",t),...this.getBorderImageOutset("0",t),...this.getBorderImageRepeat("stretch",t)};for(let p=0,d=a.length;p<d;p++){let b=a[p],f=p>0?a[p-1]:"";if(!b.startsWith("url")&&b.includes("/")){let[S,M,N]=b.split("/"),K=this.getBorderImageSlice(`${f} ${S}`,t)||this.getBorderImageSlice(S,t),mt=this.getBorderImageWidth(M,t),Nt=N&&this.getBorderImageOutset(N,t);if(!K||!mt||Nt===null)return null;Object.assign(y,K,mt,Nt)}else{let S=this.getBorderImageSlice(`${f} ${b}`,t)||this.getBorderImageSlice(b,t),M=this.getBorderImageSource(b,t),N=this.getBorderImageRepeat(b,t);if(!S&&!M&&!N)return null;Object.assign(y,S,M,N)}}return y}static getBorderImageSource(e,t){let r=g.getVariable(e);if(r)return{"border-image-source":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o)||o==="none")return{"border-image-source":{important:t,value:o}};let i=g.getURL(e)||g.getGradient(e);return i?{"border-image-source":{important:t,value:i}}:null}static getBorderImageSlice(e,t){let r=g.getVariable(e);if(r)return{"border-image-slice":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o))return{"border-image-slice":{important:t,value:o}};if(o!==o.trim())return null;let i=/(fill)|(calc\([^^)]+\))|([0-9]+%)|([0-9]+)/g,n=[],a;for(;a=i.exec(o);){let y=o[a.index-1],p=o[a.index+a[0].length];if(y&&y!==" "||p&&p!==" ")return null;let d=a[1]&&"fill",b=a[2]&&g.getCalc(a[2]),f=a[3]&&g.getPercentage(a[3]),S=a[4]&&g.getInteger(a[4]);if(!d&&!b&&!f&&!S)return null;n.push(d||b||f||S)}return!n.length||n.length>4?null:{"border-image-slice":{important:t,value:n.join(" ")}}}static getBorderImageWidth(e,t){let r=g.getVariable(e);if(r)return{"border-image-width":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o))return{"border-image-width":{important:t,value:o}};let i=o.split(cr);if(i.length>4)return null;for(let n of i)if(!g.getInteger(n)&&!g.getAutoMeasurement(n))return null;return{"border-image-width":{important:t,value:e}}}static getBorderImageOutset(e,t){if(e==="0")return{"border-image-outset":{important:t,value:e}};let r=g.getVariable(e);if(r)return{"border-image-outset":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o))return{"border-image-outset":{important:t,value:o}};let i=e.split(cr);if(i.length>4)return null;let n=[];for(let a of i){let y=g.getLength(a)||g.getFloat(a);if(!y)return null;n.push(y==="0px"?"0":y)}return{"border-image-outset":{important:t,value:n.join(" ")}}}static getBorderImageRepeat(e,t){let r=g.getVariable(e);if(r)return{"border-image-repeat":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o))return{"border-image-repeat":{important:t,value:o}};let i=o.split(cr);if(i.length>2)return null;for(let n of i)if(!w2.includes(n))return null;return{"border-image-repeat":{important:t,value:e}}}static getBorderTopWidth(e,t){let r=g.getVariable(e);if(r)return{"border-top-width":{value:r,important:t}};let o=e.toLowerCase(),i=bb.includes(o)||g.getGlobal(o)?o:g.getLength(e);return i?{"border-top-width":{value:i,important:t}}:null}static getBorderRightWidth(e,t){let r=g.getVariable(e);if(r)return{"border-right-width":{value:r,important:t}};let o=e.toLowerCase(),i=bb.includes(o)||g.getGlobal(o)?o:g.getLength(e);return i?{"border-right-width":{value:i,important:t}}:null}static getBorderBottomWidth(e,t){let r=g.getVariable(e);if(r)return{"border-bottom-width":{value:r,important:t}};let o=e.toLowerCase(),i=bb.includes(o)||g.getGlobal(o)?o:g.getLength(e);return i?{"border-bottom-width":{value:i,important:t}}:null}static getBorderLeftWidth(e,t){let r=g.getVariable(e);if(r)return{"border-left-width":{value:r,important:t}};let o=e.toLowerCase(),i=bb.includes(o)||g.getGlobal(o)?o:g.getLength(e);return i?{"border-left-width":{value:i,important:t}}:null}static getBorderTopStyle(e,t){let r=g.getVariable(e);if(r)return{"border-top-style":{value:r,important:t}};let o=e.toLowerCase();return g.getGlobal(o)||db.includes(o)?{"border-top-style":{value:o,important:t}}:null}static getBorderRightStyle(e,t){let r=g.getVariable(e);if(r)return{"border-right-style":{value:r,important:t}};let o=e.toLowerCase();return g.getGlobal(o)||db.includes(o)?{"border-right-style":{value:o,important:t}}:null}static getBorderBottomStyle(e,t){let r=g.getVariable(e);if(r)return{"border-bottom-style":{value:r,important:t}};let o=e.toLowerCase();return g.getGlobal(o)||db.includes(o)?{"border-bottom-style":{value:o,important:t}}:null}static getBorderLeftStyle(e,t){let r=g.getVariable(e);if(r)return{"border-left-style":{value:r,important:t}};let o=e.toLowerCase();return g.getGlobal(o)||db.includes(o)?{"border-left-style":{value:o,important:t}}:null}static getBorderTopColor(e,t){let r=g.getVariable(e);if(r)return{"border-top-color":{value:r,important:t}};let o=g.getGlobal(e)||g.getColor(e);return o?{"border-top-color":{value:o,important:t}}:null}static getBorderRightColor(e,t){let r=g.getVariable(e);if(r)return{"border-right-color":{value:r,important:t}};let o=g.getGlobal(e)||g.getColor(e);return o?{"border-right-color":{value:o,important:t}}:null}static getBorderBottomColor(e,t){let r=g.getVariable(e);if(r)return{"border-bottom-color":{value:r,important:t}};let o=g.getGlobal(e)||g.getColor(e);return o?{"border-bottom-color":{value:o,important:t}}:null}static getBorderLeftColor(e,t){let r=g.getVariable(e);if(r)return{"border-left-color":{value:r,important:t}};let o=g.getGlobal(e)||g.getColor(e);return o?{"border-left-color":{value:o,important:t}}:null}static getBorderRadius(e,t){let r=g.getVariable(e);if(r)return{"border-radius":{value:r,important:t}};let o=g.getGlobal(e);if(o)return{...this.getBorderTopLeftRadius(o,t),...this.getBorderTopRightRadius(o,t),...this.getBorderBottomRightRadius(o,t),...this.getBorderBottomLeftRadius(o,t)};let i=e.split(cr),n=this.getBorderTopLeftRadius(i[0],t),a=this.getBorderTopRightRadius(i[1]||i[0],t),y=this.getBorderBottomRightRadius(i[2]||i[0],t),p=this.getBorderBottomLeftRadius(i[3]||i[1]||i[0],t);return!n||!a||!y||!p?null:{...n,...a,...y,...p}}static getBorderTopLeftRadius(e,t){let r=g.getVariable(e);if(r)return{"border-top-left-radius":{value:r,important:t}};let o=g.getGlobal(e)||g.getMeasurement(e);return o?{"border-top-left-radius":{important:t,value:o}}:null}static getBorderTopRightRadius(e,t){let r=g.getVariable(e);if(r)return{"border-top-right-radius":{value:r,important:t}};let o=g.getGlobal(e)||g.getMeasurement(e);return o?{"border-top-right-radius":{important:t,value:o}}:null}static getBorderBottomRightRadius(e,t){let r=g.getVariable(e);if(r)return{"border-bottom-right-radius":{value:r,important:t}};let o=g.getGlobal(e)||g.getMeasurement(e);return o?{"border-bottom-right-radius":{important:t,value:o}}:null}static getBorderBottomLeftRadius(e,t){let r=g.getVariable(e);if(r)return{"border-bottom-left-radius":{value:r,important:t}};let o=g.getGlobal(e)||g.getMeasurement(e);return o?{"border-bottom-left-radius":{important:t,value:o}}:null}static getBorderTop(e,t){let r=g.getVariable(e);if(r)return{"border-top":{value:r,important:t}};let o=g.getGlobal(e);if(o)return{...this.getBorderTopWidth(o,t),...this.getBorderTopStyle(o,t),...this.getBorderTopColor(o,t)};let i={...this.getBorderTopWidth("initial",t),...this.getBorderTopStyle("initial",t),...this.getBorderTopColor("initial",t)},n=e.split(cr);for(let a of n){let y=this.getBorderTopWidth(a,t),p=this.getBorderTopStyle(a,t),d=this.getBorderTopColor(a,t);if(y===null&&p===null&&d===null)return null;Object.assign(i,y,p,d)}return i}static getBorderRight(e,t){let r=g.getVariable(e);if(r)return{"border-right":{value:r,important:t}};let o=g.getGlobal(e);if(o)return{...this.getBorderRightWidth(o,t),...this.getBorderRightStyle(o,t),...this.getBorderRightColor(o,t)};let i={...this.getBorderRightWidth("initial",t),...this.getBorderRightStyle("initial",t),...this.getBorderRightColor("initial",t)},n=e.split(cr);for(let a of n){let y=this.getBorderRightWidth(a,t),p=this.getBorderRightStyle(a,t),d=this.getBorderRightColor(a,t);if(y===null&&p===null&&d===null)return null;Object.assign(i,y,p,d)}return i}static getBorderBottom(e,t){let r=g.getVariable(e);if(r)return{"border-bottom":{value:r,important:t}};let o=g.getGlobal(e);if(o)return{...this.getBorderBottomWidth(o,t),...this.getBorderBottomStyle(o,t),...this.getBorderBottomColor(o,t)};let i={...this.getBorderBottomWidth("initial",t),...this.getBorderBottomStyle("initial",t),...this.getBorderBottomColor("initial",t)},n=e.split(cr);for(let a of n){let y=this.getBorderBottomWidth(a,t),p=this.getBorderBottomStyle(a,t),d=this.getBorderBottomColor(a,t);if(y===null&&p===null&&d===null)return null;Object.assign(i,y,p,d)}return i}static getBorderLeft(e,t){let r=g.getVariable(e);if(r)return{"border-left":{value:r,important:t}};let o=g.getGlobal(e);if(o)return{...this.getBorderLeftWidth(o,t),...this.getBorderLeftStyle(o,t),...this.getBorderLeftColor(o,t)};let i={...this.getBorderLeftWidth("initial",t),...this.getBorderLeftStyle("initial",t),...this.getBorderLeftColor("initial",t)},n=e.split(cr);for(let a of n){let y=this.getBorderLeftWidth(a,t),p=this.getBorderLeftStyle(a,t),d=this.getBorderLeftColor(a,t);if(y===null&&p===null&&d===null)return null;Object.assign(i,y,p,d)}return i}static getPadding(e,t){let r=g.getVariable(e);if(r)return{padding:{value:r,important:t}};let o=g.getGlobal(e);if(o)return{...this.getPaddingTop(o,t),...this.getPaddingRight(o,t),...this.getPaddingBottom(o,t),...this.getPaddingLeft(o,t)};let i=e.split(cr),n=this.getPaddingTop(i[0],t),a=this.getPaddingRight(i[1]||i[0],t),y=this.getPaddingBottom(i[2]||i[0],t),p=this.getPaddingLeft(i[3]||i[1]||i[0],t);return!n||!a||!y||!p?null:{...n,...a,...y,...p}}static getPaddingTop(e,t){let r=g.getVariable(e);if(r)return{"padding-top":{value:r,important:t}};let o=g.getGlobal(e)||g.getMeasurement(e);return o?{"padding-top":{value:o,important:t}}:null}static getPaddingRight(e,t){let r=g.getVariable(e);if(r)return{"padding-right":{value:r,important:t}};let o=g.getGlobal(e)||g.getMeasurement(e);return o?{"padding-right":{value:o,important:t}}:null}static getPaddingBottom(e,t){let r=g.getVariable(e);if(r)return{"padding-bottom":{value:r,important:t}};let o=g.getGlobal(e)||g.getMeasurement(e);return o?{"padding-bottom":{value:o,important:t}}:null}static getPaddingLeft(e,t){let r=g.getVariable(e);if(r)return{"padding-left":{value:r,important:t}};let o=g.getGlobal(e)||g.getMeasurement(e);return o?{"padding-left":{value:o,important:t}}:null}static getMargin(e,t){let r=g.getVariable(e);if(r)return{margin:{value:r,important:t}};let o=g.getGlobal(e);if(o)return{...this.getMarginTop(o,t),...this.getMarginRight(o,t),...this.getMarginBottom(o,t),...this.getMarginLeft(o,t)};let i=e.split(cr),n=this.getMarginTop(i[0],t),a=this.getMarginRight(i[1]||i[0],t),y=this.getMarginBottom(i[2]||i[0],t),p=this.getMarginLeft(i[3]||i[1]||i[0],t);return!n||!a||!y||!p?null:{...n,...a,...y,...p}}static getMarginTop(e,t){let r=g.getVariable(e);if(r)return{"margin-top":{value:r,important:t}};let o=g.getGlobal(e)||g.getAutoMeasurement(e);return o?{"margin-top":{value:o,important:t}}:null}static getMarginRight(e,t){let r=g.getVariable(e);if(r)return{"margin-right":{value:r,important:t}};let o=g.getGlobal(e)||g.getAutoMeasurement(e);return o?{"margin-right":{value:o,important:t}}:null}static getMarginBottom(e,t){let r=g.getVariable(e);if(r)return{"margin-bottom":{value:r,important:t}};let o=g.getGlobal(e)||g.getAutoMeasurement(e);return o?{"margin-bottom":{value:o,important:t}}:null}static getMarginLeft(e,t){let r=g.getVariable(e);if(r)return{"margin-left":{value:r,important:t}};let o=g.getGlobal(e)||g.getAutoMeasurement(e);return o?{"margin-left":{value:o,important:t}}:null}static getFlex(e,t){let r=g.getVariable(e);if(r)return{flex:{value:r,important:t}};let o=e.trim().toLowerCase(),i=g.getGlobal(e);if(i)return{...this.getFlexGrow(i,t),...this.getFlexShrink(i,t),...this.getFlexBasis(i,t)};switch(o){case"none":return{...this.getFlexGrow("0",t),...this.getFlexShrink("0",t),...this.getFlexBasis("auto",t)};case"auto":return{...this.getFlexGrow("1",t),...this.getFlexShrink("1",t),...this.getFlexBasis("auto",t)}}let n=g.getContentMeasurement(o);if(n)return{...this.getFlexGrow("1",t),...this.getFlexShrink("1",t),...this.getFlexBasis(n,t)};let a=e.split(cr),y=this.getFlexGrow(a[0],t),p=this.getFlexShrink(a[1]||"1",t),d=this.getFlexBasis(a[2]||"0%",t);return!y||!p||!d?null:{...y,...p,...d}}static getFlexBasis(e,t){let r=g.getVariable(e);if(r)return{"flex-basis":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o)||h2.includes(o))return{"flex-basis":{value:o,important:t}};let i=g.getContentMeasurement(o);return i?{"flex-basis":{value:i,important:t}}:null}static getFlexShrink(e,t){let r=g.getVariable(e);if(r)return{"flex-shrink":{value:r,important:t}};let o=g.getGlobal(e)||g.getFloat(e);return o?{"flex-shrink":{value:o,important:t}}:null}static getFlexGrow(e,t){let r=g.getVariable(e);if(r)return{"flex-grow":{value:r,important:t}};let o=g.getGlobal(e)||g.getFloat(e);return o?{"flex-grow":{value:o,important:t}}:null}static getBackground(e,t){let r=g.getVariable(e);if(r)return{background:{value:r,important:t}};let o=g.getGlobal(e);if(o)return{...this.getBackgroundImage(o,t),...this.getBackgroundPosition(o,t),...this.getBackgroundSize(o,t),...this.getBackgroundRepeat(o,t),...this.getBackgroundAttachment(o,t),...this.getBackgroundOrigin(o,t),...this.getBackgroundClip(o,t),...this.getBackgroundColor(o,t)};let i={...this.getBackgroundImage("initial",t),...this.getBackgroundPosition("initial",t),...this.getBackgroundSize("initial",t),...this.getBackgroundRepeat("initial",t),...this.getBackgroundAttachment("initial",t),...this.getBackgroundOrigin("initial",t),...this.getBackgroundClip("initial",t),...this.getBackgroundColor("initial",t)},n=Qa.splitBySpace(e.replace(/\s+\/\s+/g,"/")),a=[];for(let y of n)if(!y.startsWith("url")&&y.includes("/")){let[p,d]=y.split("/"),b=this.getBackgroundPositionX(p,t),f=this.getBackgroundPositionY(p,t),S=this.getBackgroundSize(d,t);if(!b&&!f||!S)return null;f?a.push(f["background-position-y"].value):b&&a.push(b["background-position-x"].value),Object.assign(i,S)}else{let p=this.getBackgroundImage(y,t),d=this.getBackgroundRepeat(y,t),b=this.getBackgroundAttachment(y,t),f=this.getBackgroundPositionX(y,t),S=this.getBackgroundPositionY(y,t),M=this.getBackgroundColor(y,t),N=this.getBackgroundOrigin(y,t),K=this.getBackgroundClip(y,t);if(!p&&!d&&!b&&!f&&!S&&!M&&!N&&!K)return null;f?a.push(f["background-position-x"].value):S&&a.push(S["background-position-y"].value),Object.assign(i,p,d,b,M,N,K)}return a.length&&Object.assign(i,this.getBackgroundPosition(a.join(" "),t)),i}static getBackgroundSize(e,t){let r=g.getVariable(e);if(r)return{"background-size":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o))return{"background-size":{value:o,important:t}};let i=o.split(AS),n=[];for(let a of i){let y=a.trim().split(" ");if(y.length!==1&&y.length!==2)return null;if(y.length===1){if(y[0]!=="cover"&&y[0]!=="contain"&&!g.getAutoMeasurement(y[0]))return null;n.push(y[0])}else{if(!g.getAutoMeasurement(y[0])||!g.getAutoMeasurement(y[1]))return null;n.push(`${y[0]} ${y[1]}`)}}return n.length===1?{"background-size":{value:n.join(", "),important:t}}:null}static getBackgroundOrigin(e,t){let r=g.getVariable(e);if(r)return{"background-origin":{value:r,important:t}};let o=e.toLowerCase();return g.getGlobal(o)||y2.includes(o)?{"background-origin":{value:o,important:t}}:null}static getBackgroundClip(e,t){let r=g.getVariable(e);if(r)return{"background-clip":{value:r,important:t}};let o=e.toLowerCase();return g.getGlobal(o)||u2.includes(o)?{"background-clip":{value:o,important:t}}:null}static getBackgroundRepeat(e,t){let r=g.getVariable(e);if(r)return{"background-repeat":{value:r,important:t}};let o=e.toLowerCase();return g.getGlobal(o)||m2.includes(o)?{"background-repeat":{value:o,important:t}}:null}static getBackgroundAttachment(e,t){let r=g.getVariable(e);if(r)return{"background-attachment":{value:r,important:t}};let o=e.toLowerCase();return g.getGlobal(o)||p2.includes(o)?{"background-attachment":{value:o,important:t}}:null}static getBackgroundPosition(e,t){let r=g.getVariable(e);if(r)return{"background-position":{value:r,important:t}};let o=g.getGlobal(e);if(o)return{...this.getBackgroundPositionX(o,t),...this.getBackgroundPositionY(o,t)};let i=e.split(AS),n="",a="";for(let d of i){let b=d.trim().split(cr);switch(n&&(n+=",",a+=","),b.length){case 1:b[0]==="top"||b[0]==="bottom"?(n+="center",a+=b[0]):b[0]==="left"||b[0]==="right"?(n+=b[0],a+="center"):b[0]==="center"&&(n+="center",a+="center");break;case 2:n+=b[0]==="top"||b[0]==="bottom"?b[1]:b[0],a+=b[0]==="top"||b[0]==="bottom"?b[0]:b[1];break;case 3:b[0]==="top"||b[0]==="bottom"||b[1]==="left"||b[1]==="right"||b[2]==="left"||b[2]==="right"?g.getMeasurement(b[1])?(n+=b[2],a+=`${b[0]} ${b[1]}`):(n+=`${b[1]} ${b[2]}`,a+=b[0]):g.getMeasurement(b[1])?(n+=`${b[0]} ${b[1]}`,a+=b[2]):(n+=b[0],a+=`${b[1]} ${b[2]}`);break;case 4:n+=b[0]==="top"||b[0]==="bottom"||b[1]==="top"||b[1]==="bottom"?`${b[2]} ${b[3]}`:`${b[0]} ${b[1]}`,a+=b[0]==="top"||b[0]==="bottom"||b[1]==="top"||b[1]==="bottom"?`${b[0]} ${b[1]}`:`${b[2]} ${b[3]}`;break;default:return null}}let y=this.getBackgroundPositionX(n,t),p=this.getBackgroundPositionY(a,t);return y&&p?{...y,...p}:null}static getBackgroundPositionX(e,t){let r=g.getVariable(e);if(r)return{"background-position-x":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o))return{"background-position-x":{value:o,important:t}};let i=o.split(AS),n="";for(let a of i){let y=a.trim().split(cr);n&&(n+=",");for(let p of y){let d=g.getMeasurement(p);if(!d&&p!=="left"&&p!=="right"&&p!=="center")return null;n&&(n+=" "),n+=d||p}}return{"background-position-x":{value:n,important:t}}}static getBackgroundPositionY(e,t){let r=g.getVariable(e);if(r)return{"background-position-y":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o))return{"background-position-y":{value:o,important:t}};let i=o.split(AS),n="";for(let a of i){let y=a.trim().split(cr);n&&(n+=",");for(let p of y){let d=g.getMeasurement(p);if(!d&&p!=="top"&&p!=="bottom"&&p!=="center")return null;n&&(n+=" "),n+=d||p}}return{"background-position-y":{value:n,important:t}}}static getBackgroundColor(e,t){let r=g.getVariable(e);if(r)return{"background-color":{value:r,important:t}};let o=g.getGlobal(e)||g.getColor(e);return o?{"background-color":{important:t,value:o}}:null}static getBackgroundImage(e,t){let r=g.getVariable(e);if(r)return{"background-image":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o)||o==="none")return{"background-image":{value:o,important:t}};let i=Qa.splitByComma(e),n=[];for(let a of i){let y=g.getURL(a.trim())||g.getGradient(a.trim());if(!y)return null;n.push(y)}return n.length?{"background-image":{value:n.join(", "),important:t}}:null}static getColor(e,t){let r=g.getVariable(e);if(r)return{color:{value:r,important:t}};let o=g.getGlobal(e)||g.getColor(e);return o?{color:{important:t,value:o}}:null}static getFloodColor(e,t){let r=g.getVariable(e);if(r)return{"flood-color":{value:r,important:t}};let o=g.getGlobal(e)||g.getColor(e);return o?{"flood-color":{important:t,value:o}}:null}static getFont(e,t){let r=g.getVariable(e);if(r)return{font:{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o))return{...this.getFontStyle(o,t),...this.getFontVariant(o,t),...this.getFontWeight(o,t),...this.getFontStretch(o,t),...this.getFontSize(o,t),...this.getLineHeight(o,t),...this.getFontFamily(o,t)};if(b2.includes(o))return{font:{value:o,important:t}};let i={...this.getFontStyle("normal",t),...this.getFontVariant("normal",t),...this.getFontWeight("normal",t),...this.getFontStretch("normal",t),...this.getLineHeight("normal",t)},n=e.replace(/\s*\/\s*/g,"/").split(cr);for(let a=0,y=n.length;a<y;a++){let p=n[a];if(p.includes("/")){let[d,b]=p.split("/"),f=this.getFontSize(d,t),S=this.getLineHeight(b,t);if(!f||!S)return null;Object.assign(i,f,S)}else{let d=this.getFontStyle(p,t),b=this.getFontVariant(p,t),f=this.getFontWeight(p,t),S=this.getFontSize(p,t),M=this.getFontStretch(p,t);if(d)Object.assign(i,d);else if(b)Object.assign(i,b);else if(f)Object.assign(i,f);else if(S)Object.assign(i,S);else if(M)Object.assign(i,M);else{let N=n.slice(a).join(" "),K=this.getFontFamily(N,t);if(!K)return null;Object.assign(i,K);break}}}return i}static getFontStyle(e,t){let r=g.getVariable(e);if(r)return{"font-style":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o)||f2.includes(o))return{"font-style":{value:o,important:t}};let i=e.split(cr);return i.length===2&&i[0]==="oblique"&&g.getDegree(i[1])?{"font-style":{value:o,important:t}}:null}static getFontVariant(e,t){let r=g.getVariable(e);if(r)return{"font-variant":{value:r,important:t}};let o=e.toLowerCase();return g.getGlobal(o)||o==="normal"||o==="small-caps"?{"font-variant":{value:o,important:t}}:null}static getFontStretch(e,t){let r=g.getVariable(e);if(r)return{"font-stretch":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o)||P2.includes(o))return{"font-stretch":{value:o,important:t}};let i=g.getPercentage(e);return i?{"font-stretch":{value:i,important:t}}:null}static getFontWeight(e,t){let r=g.getVariable(e);if(r)return{"font-weight":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o)||g2.includes(o))return{"font-weight":{value:o,important:t}};let i=g.getInteger(e);return i?{"font-weight":{value:i,important:t}}:null}static getFontSize(e,t){let r=g.getVariable(e);if(r)return{"font-size":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o)||S2.includes(o))return{"font-size":{value:o,important:t}};let i=g.getMeasurement(e);return i?{"font-size":{value:i,important:t}}:null}static getLineHeight(e,t){let r=g.getVariable(e);if(r)return{"line-height":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o)||o==="normal")return{"line-height":{value:o,important:t}};let i=g.getFloat(e)||g.getMeasurement(e);return i?{"line-height":{value:i,important:t}}:null}static getFontFamily(e,t){let r=g.getVariable(e);if(r)return{"font-family":{value:r,important:t}};let o=g.getGlobal(e);if(o)return{"font-family":{value:o,important:t}};let i=e.split(","),n="",a=!1;for(let y=0,p=i.length;y<p;y++){let d=i[y].trim().replace(/'/g,'"');if(!d)return null;if(d.includes(" ")){let b=(d.match(/"/g)||[]).length;if((d[0]!=='"'||y!==0)&&b!==2&&b!==0)return null;d[0]==='"'&&d[d.length-1]!=='"'?a=!0:d[0]!=='"'&&d[d.length-1]!=='"'&&(d=`"${d}"`)}else d=d.replace(/"/g,"");y>0&&(n+=", "),n+=d}return a&&(n+='"'),n?{"font-family":{important:t,value:n}}:null}static getTextTransform(e,t){let r=g.getVariable(e);if(r)return{"text-transform":{value:r,important:t}};let o=e.toLowerCase(),i=g.getGlobal(o)||E2.includes(o)&&o;return i?{"text-transform":{value:i,important:t}}:null}static getVisibility(e,t){let r=g.getVariable(e);if(r)return{visibility:{value:r,important:t}};let o=e.toLowerCase(),i=g.getGlobal(o)||x2.includes(o)&&o;return i?{visibility:{value:i,important:t}}:null}static getAspectRatio(e,t){let r=g.getVariable(e);if(r)return{"aspect-ratio":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o))return{"aspect-ratio":{value:o,important:t}};let i=e,n=i.includes("auto");if(n&&(i=i.replace("auto","")),i=i.replace(l2,""),!i)return{"aspect-ratio":{value:"auto",important:t}};let a=i.split("/");if(a.length>3)return null;let y=Number(a[0]),p=a[1]?Number(a[1]):1;return isNaN(y)||isNaN(p)?null:n?{"aspect-ratio":{value:`auto ${y} / ${p}`,important:t}}:{"aspect-ratio":{value:`${y} / ${p}`,important:t}}}};var Er=class{static getMargin(e){return this.getPaddingLikeProperty(["margin-top","margin-right","margin-bottom","margin-left"],e)}static getPadding(e){return this.getPaddingLikeProperty(["padding-top","padding-right","padding-bottom","padding-left"],e)}static getOutline(e){if(!e["outline-color"]?.value||!e["outline-style"]?.value||!e["outline-width"]?.value)return null;let t=e["outline-color"].important&&e["outline-style"].important&&e["outline-width"].important;if(g.getGlobalExceptInitial(e["outline-width"].value)&&e["outline-width"].value===e["outline-style"].value&&e["outline-width"].value===e["outline-color"].value)return{important:t,value:e["outline-width"].value};let r=[];return g.getInitial(e["outline-color"]?.value)||r.push(e["outline-color"].value),g.getInitial(e["outline-style"]?.value)||r.push(e["outline-style"].value),g.getInitial(e["outline-width"].value)||r.push(e["outline-width"].value),{important:t,value:r.join(" ")}}static getBorder(e){if(!e["border-top-width"]?.value||e["border-top-width"]?.value!==e["border-right-width"]?.value||e["border-top-width"]?.value!==e["border-bottom-width"]?.value||e["border-top-width"]?.value!==e["border-left-width"]?.value||!e["border-top-style"]?.value||e["border-top-style"]?.value!==e["border-right-style"]?.value||e["border-top-style"]?.value!==e["border-bottom-style"]?.value||e["border-top-style"]?.value!==e["border-left-style"]?.value||!e["border-top-color"]?.value||e["border-top-color"]?.value!==e["border-right-color"]?.value||e["border-top-color"]?.value!==e["border-bottom-color"]?.value||e["border-top-color"]?.value!==e["border-left-color"]?.value||!e["border-image-source"]?.value||!e["border-image-slice"]?.value||!e["border-image-width"]?.value||!e["border-image-outset"]?.value||!e["border-image-repeat"]?.value)return null;let t=e["border-top-width"].important&&e["border-right-width"].important&&e["border-bottom-width"].important&&e["border-left-width"].important&&e["border-top-style"].important&&e["border-right-style"].important&&e["border-bottom-style"].important&&e["border-left-style"].important&&e["border-top-color"].important&&e["border-right-color"].important&&e["border-bottom-color"].important&&e["border-left-color"].important&&e["border-image-source"].important&&e["border-image-slice"].important&&e["border-image-width"].important&&e["border-image-outset"].important&&e["border-image-repeat"].important;if(g.getGlobalExceptInitial(e["border-top-width"].value)||g.getGlobalExceptInitial(e["border-top-style"].value)||g.getGlobalExceptInitial(e["border-top-color"].value)||g.getGlobalExceptInitial(e["border-image-source"].value)||g.getGlobalExceptInitial(e["border-image-slice"].value)||g.getGlobalExceptInitial(e["border-image-width"].value)||g.getGlobalExceptInitial(e["border-image-outset"].value)||g.getGlobalExceptInitial(e["border-image-repeat"].value))return e["border-top-width"].value!==e["border-top-style"].value||e["border-top-width"].value!==e["border-top-color"].value||e["border-top-width"].value!==e["border-image-source"].value||e["border-top-width"].value!==e["border-image-slice"].value||e["border-top-width"].value!==e["border-image-width"].value||e["border-top-width"].value!==e["border-image-outset"].value||e["border-top-width"].value!==e["border-image-repeat"].value?null:{important:t,value:e["border-top-width"].value};let r=[];return g.getInitial(e["border-top-width"].value)||r.push(e["border-top-width"].value),g.getInitial(e["border-top-style"].value)||r.push(e["border-top-style"].value),g.getInitial(e["border-top-color"].value)||r.push(e["border-top-color"].value),{important:t,value:r.join(" ")}}static getBorderTop(e){return this.getBorderTopRightBottomLeft("top",e)}static getBorderRight(e){return this.getBorderTopRightBottomLeft("right",e)}static getBorderBottom(e){return this.getBorderTopRightBottomLeft("bottom",e)}static getBorderLeft(e){return this.getBorderTopRightBottomLeft("left",e)}static getBorderColor(e){return this.getPaddingLikeProperty(["border-top-color","border-right-color","border-bottom-color","border-left-color"],e)}static getBorderWidth(e){return this.getPaddingLikeProperty(["border-top-width","border-right-width","border-bottom-width","border-left-width"],e)}static getBorderStyle(e){return this.getPaddingLikeProperty(["border-top-style","border-right-style","border-bottom-style","border-left-style"],e)}static getBorderRadius(e){return this.getPaddingLikeProperty(["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"],e)}static getBorderImage(e){if(!e["border-image-source"]?.value||!e["border-image-slice"]?.value||!e["border-image-width"]?.value||!e["border-image-outset"]?.value||!e["border-image-repeat"]?.value)return null;let t=e["border-image-source"].important&&e["border-image-slice"].important&&e["border-image-width"].important&&e["border-image-outset"].important&&e["border-image-repeat"].important;return g.getGlobal(e["border-image-source"].value)||g.getGlobal(e["border-image-slice"].value)||g.getGlobal(e["border-image-width"].value)||g.getGlobal(e["border-image-outset"].value)||g.getGlobal(e["border-image-repeat"].value)?e["border-image-source"].value!==e["border-image-slice"].value||e["border-image-source"].value!==e["border-image-width"].value||e["border-image-source"].value!==e["border-image-outset"].value||e["border-image-source"].value!==e["border-image-repeat"].value?null:{important:t,value:e["border-image-source"].value}:{important:t,value:`${e["border-image-source"].value} ${e["border-image-slice"].value} / ${e["border-image-width"].value} / ${e["border-image-outset"].value} ${e["border-image-repeat"].value}`}}static getBackground(e){if(!e["background-image"]?.value||!e["background-repeat"]?.value||!e["background-attachment"]?.value||!e["background-position-x"]?.value||!e["background-position-y"]?.value||!e["background-color"]?.value||!e["background-size"]?.value||!e["background-origin"]?.value||!e["background-clip"]?.value)return null;let t=e["background-image"].important&&e["background-repeat"].important&&e["background-attachment"].important&&e["background-position-x"].important&&e["background-position-y"].important&&e["background-color"].important&&e["background-size"].important&&e["background-origin"].important&&e["background-clip"].important;if(g.getGlobalExceptInitial(e["background-image"].value)||g.getGlobalExceptInitial(e["background-repeat"].value)||g.getGlobalExceptInitial(e["background-attachment"].value)||g.getGlobalExceptInitial(e["background-position-x"].value)||g.getGlobalExceptInitial(e["background-position-y"].value)||g.getGlobalExceptInitial(e["background-color"].value)||g.getGlobalExceptInitial(e["background-size"].value)||g.getGlobalExceptInitial(e["background-origin"].value)||g.getGlobalExceptInitial(e["background-clip"].value))return e["background-image"].value!==e["background-repeat"].value||e["background-image"].value!==e["background-attachment"].value||e["background-image"].value!==e["background-position-x"].value||e["background-image"].value!==e["background-position-y"].value||e["background-image"].value!==e["background-color"].value||e["background-image"].value!==e["background-size"].value||e["background-image"].value!==e["background-origin"].value||e["background-image"].value!==e["background-clip"].value?null:{important:t,value:e["background-image"].value};let r=[];return g.getInitial(e["background-image"].value)||r.push(e["background-image"].value),!g.getInitial(e["background-position-x"].value)&&!g.getInitial(e["background-position-y"].value)&&!g.getInitial(e["background-size"].value)?r.push(`${e["background-position-x"].value} ${e["background-position-y"].value} / ${e["background-size"].value}`):!g.getInitial(e["background-position-x"].value)&&!g.getInitial(e["background-position-y"].value)&&r.push(`${e["background-position-x"].value} ${e["background-position-y"].value}`),g.getInitial(e["background-repeat"].value)||r.push(e["background-repeat"].value),g.getInitial(e["background-attachment"].value)||r.push(e["background-attachment"].value),g.getInitial(e["background-origin"].value)||r.push(e["background-origin"].value),g.getInitial(e["background-clip"].value)||r.push(e["background-clip"].value),g.getInitial(e["background-color"].value)||r.push(e["background-color"].value),{important:t,value:r.join(" ")}}static getBackgroundPosition(e){if(!e["background-position-x"]?.value||!e["background-position-y"]?.value)return null;let t=e["background-position-x"].important&&e["background-position-y"].important;if(g.getGlobal(e["background-position-x"].value)||g.getGlobal(e["background-position-y"].value))return e["background-position-x"].value!==e["background-position-y"].value?null:{important:t,value:e["background-position-x"].value};let r=e["background-position-x"].value.replace(/ *, */g,",").split(","),o=e["background-position-y"].value.replace(/ *, */g,",").split(","),i=[];for(let n=0;n<r.length;n++)i.push(`${r[n]} ${o[n]}`);return{important:t,value:i.join(", ")}}static getFlex(e){if(!e["flex-grow"]?.value||!e["flex-shrink"]?.value||!e["flex-basis"]?.value)return null;let t=e["flex-grow"].important&&e["flex-shrink"].important&&e["flex-basis"].important;return g.getGlobal(e["flex-grow"].value)||g.getGlobal(e["flex-shrink"].value)||g.getGlobal(e["flex-basis"].value)?e["flex-grow"].value!==e["flex-shrink"].value||e["flex-grow"].value!==e["flex-basis"].value?null:{important:t,value:e["flex-grow"].value}:{important:t,value:`${e["flex-grow"].value} ${e["flex-shrink"].value} ${e["flex-basis"].value}`}}static getFont(e){if(!e["font-size"]?.value||!e["font-family"]?.value||!e["font-weight"]?.value||!e["font-style"]?.value||!e["font-variant"]?.value||!e["font-stretch"]?.value||!e["line-height"]?.value)return null;let t=e["font-size"].important&&e["font-family"].important&&e["font-weight"].important&&e["font-style"].important&&e["font-variant"].important&&e["font-stretch"].important&&e["line-height"].important;if(g.getGlobal(e["font-size"].value)||g.getGlobal(e["font-family"].value)||g.getGlobal(e["font-weight"].value)||g.getGlobal(e["font-style"].value)||g.getGlobal(e["font-variant"].value)||g.getGlobal(e["font-stretch"].value)||g.getGlobal(e["line-height"].value))return e["font-size"].value!==e["font-family"].value||e["font-size"].value!==e["font-weight"].value||e["font-size"].value!==e["font-style"].value||e["font-size"].value!==e["font-variant"].value||e["font-size"].value!==e["font-stretch"].value||e["font-size"].value!==e["line-height"].value?null:{important:t,value:e["font-size"].value};let r=[];return e["font-style"].value!=="normal"&&r.push(e["font-style"].value),e["font-variant"].value!=="normal"&&r.push(e["font-variant"].value),e["font-weight"].value!=="normal"&&r.push(e["font-weight"].value),e["font-stretch"].value!=="normal"&&r.push(e["font-stretch"].value),e["line-height"].value!=="normal"?r.push(`${e["font-size"].value} / ${e["line-height"].value}`):r.push(e["font-size"].value),r.push(e["font-family"].value),{important:t,value:r.join(" ")}}static getBorderTopRightBottomLeft(e,t){if(!t[`border-${e}-width`]?.value||!t[`border-${e}-style`]?.value||!t[`border-${e}-color`]?.value)return null;let r=t[`border-${e}-width`].important&&t[`border-${e}-style`].important&&t[`border-${e}-color`].important;if(g.getGlobalExceptInitial(t[`border-${e}-width`].value)&&t[`border-${e}-width`].value===t[`border-${e}-style`].value&&t[`border-${e}-width`].value===t[`border-${e}-color`].value)return{important:r,value:t[`border-${e}-width`].value};let o=[];return g.getInitial(t[`border-${e}-width`].value)||o.push(t[`border-${e}-width`].value),g.getInitial(t[`border-${e}-style`]?.value)||o.push(t[`border-${e}-style`].value),g.getInitial(t[`border-${e}-color`]?.value)||o.push(t[`border-${e}-color`].value),{important:r,value:o.join(" ")}}static getPaddingLikeProperty(e,t){if(!t[e[0]]?.value||!t[e[1]]?.value||!t[e[2]]?.value||!t[e[3]]?.value)return null;let r=t[e[0]].important&&t[e[1]].important&&t[e[2]].important&&t[e[3]].important;if(g.getGlobal(t[e[0]].value)||g.getGlobal(t[e[1]].value)||g.getGlobal(t[e[2]].value)||g.getGlobal(t[e[3]].value))return t[e[0]].value!==t[e[1]].value||t[e[0]].value!==t[e[2]].value||t[e[0]].value!==t[e[3]].value?null:{important:r,value:t[e[0]].value};let o=[t[e[0]].value];return(t[e[1]].value!==t[e[0]].value||t[e[2]].value!==t[e[0]].value||t[e[3]].value!==t[e[1]].value)&&o.push(t[e[1]].value),(t[e[2]].value!==t[e[0]].value||t[e[3]].value!==t[e[1]].value)&&o.push(t[e[2]].value),t[e[3]].value!==t[e[1]].value&&o.push(t[e[3]].value),{important:r,value:o.join(" ")}}};var v2=/\s*([^:;]+?)\s*:\s*((?:[^(;]*?(?:\([^)]*\))?)*?)\s*(!important)?\s*(?:$|;)/g,Ty=class{static parse(e){let t={},r=[],o=new RegExp(v2),i;for(;i=o.exec(e);){let n=(i[1]??"").trim(),a=(i[2]??"").trim(),y=!!i[3];n&&a&&(n.startsWith("--")&&(t[n]=a),r.push({name:n,value:a,important:y}))}return{rules:r,properties:t}}};var T2=[["margin"],["padding"],["border",["border-width","border-style","border-color","border-image"]],["border-radius"],["background","background-position"],["font"]],Ls=class{constructor(e){s(this,"properties",{});s(this,"definedPropertyNames",{});if(e?.cssText){let{rules:t}=Ty.parse(e.cssText);for(let r of t)(r.important||!this.get(r.name)?.important)&&this.set(r.name,r.value,r.important)}}get(e){if(this.properties[e])return this.properties[e];switch(e){case"margin":return Er.getMargin(this.properties);case"padding":return Er.getPadding(this.properties);case"border":return Er.getBorder(this.properties);case"border-top":return Er.getBorderTop(this.properties);case"border-right":return Er.getBorderRight(this.properties);case"border-bottom":return Er.getBorderBottom(this.properties);case"border-left":return Er.getBorderLeft(this.properties);case"border-color":return Er.getBorderColor(this.properties);case"border-style":return Er.getBorderStyle(this.properties);case"border-width":return Er.getBorderWidth(this.properties);case"border-radius":return Er.getBorderRadius(this.properties);case"border-image":return Er.getBorderImage(this.properties);case"outline":return Er.getOutline(this.properties);case"background":return Er.getBackground(this.properties);case"background-position":return Er.getBackgroundPosition(this.properties);case"flex":return Er.getFlex(this.properties);case"font":return Er.getFont(this.properties)}return this.properties[e]||null}remove(e){switch(delete this.properties[e],delete this.definedPropertyNames[e],e){case"border":delete this.properties["border-top-width"],delete this.properties["border-right-width"],delete this.properties["border-bottom-width"],delete this.properties["border-left-width"],delete this.properties["border-top-style"],delete this.properties["border-right-style"],delete this.properties["border-bottom-style"],delete this.properties["border-left-style"],delete this.properties["border-top-color"],delete this.properties["border-right-color"],delete this.properties["border-bottom-color"],delete this.properties["border-left-color"],delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case"border-top":delete this.properties["border-top-width"],delete this.properties["border-top-style"],delete this.properties["border-top-color"],delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case"border-right":delete this.properties["border-right-width"],delete this.properties["border-right-style"],delete this.properties["border-right-color"],delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case"border-bottom":delete this.properties["border-bottom-width"],delete this.properties["border-bottom-style"],delete this.properties["border-bottom-color"],delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case"border-left":delete this.properties["border-left-width"],delete this.properties["border-left-style"],delete this.properties["border-left-color"],delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case"border-width":delete this.properties["border-top-width"],delete this.properties["border-right-width"],delete this.properties["border-bottom-width"],delete this.properties["border-left-width"];break;case"border-style":delete this.properties["border-top-style"],delete this.properties["border-right-style"],delete this.properties["border-bottom-style"],delete this.properties["border-left-style"];break;case"border-color":delete this.properties["border-top-color"],delete this.properties["border-right-color"],delete this.properties["border-bottom-color"],delete this.properties["border-left-color"];break;case"border-image":delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case"border-radius":delete this.properties["border-top-left-radius"],delete this.properties["border-top-right-radius"],delete this.properties["border-bottom-right-radius"],delete this.properties["border-bottom-left-radius"];break;case"outline":delete this.properties["outline-color"],delete this.properties["outline-style"],delete this.properties["outline-width"];break;case"background":delete this.properties["background-color"],delete this.properties["background-image"],delete this.properties["background-repeat"],delete this.properties["background-attachment"],delete this.properties["background-position-x"],delete this.properties["background-position-y"],delete this.properties["background-size"],delete this.properties["background-origin"],delete this.properties["background-clip"];break;case"background-position":delete this.properties["background-position-x"],delete this.properties["background-position-y"];break;case"flex":delete this.properties["flex-grow"],delete this.properties["flex-shrink"],delete this.properties["flex-basis"];break;case"font":delete this.properties["font-style"],delete this.properties["font-variant"],delete this.properties["font-weight"],delete this.properties["font-stretch"],delete this.properties["font-size"],delete this.properties["line-height"],delete this.properties["font-family"];break;case"padding":delete this.properties["padding-top"],delete this.properties["padding-right"],delete this.properties["padding-bottom"],delete this.properties["padding-left"];break;case"margin":delete this.properties["margin-top"],delete this.properties["margin-right"],delete this.properties["margin-bottom"],delete this.properties["margin-left"];break}}set(e,t,r){if(t===null){this.remove(e);return}let o=null;switch(e){case"border":o=J.getBorder(t,r);break;case"border-top":o=J.getBorderTop(t,r);break;case"border-right":o=J.getBorderRight(t,r);break;case"border-bottom":o=J.getBorderBottom(t,r);break;case"border-left":o=J.getBorderLeft(t,r);break;case"border-width":o=J.getBorderWidth(t,r);break;case"border-style":o=J.getBorderStyle(t,r);break;case"border-color":o=J.getBorderColor(t,r);break;case"border-image":o=J.getBorderImage(t,r);break;case"border-image-source":o=J.getBorderImageSource(t,r);break;case"border-image-slice":o=J.getBorderImageSlice(t,r);break;case"border-image-width":o=J.getBorderImageWidth(t,r);break;case"border-image-outset":o=J.getBorderImageOutset(t,r);break;case"border-image-repeat":o=J.getBorderImageRepeat(t,r);break;case"border-top-width":o=J.getBorderTopWidth(t,r);break;case"border-right-width":o=J.getBorderRightWidth(t,r);break;case"border-bottom-width":o=J.getBorderBottomWidth(t,r);break;case"border-left-width":o=J.getBorderLeftWidth(t,r);break;case"border-top-color":o=J.getBorderTopColor(t,r);break;case"border-right-color":o=J.getBorderRightColor(t,r);break;case"border-bottom-color":o=J.getBorderBottomColor(t,r);break;case"border-left-color":o=J.getBorderLeftColor(t,r);break;case"border-top-style":o=J.getBorderTopStyle(t,r);break;case"border-right-style":o=J.getBorderRightStyle(t,r);break;case"border-bottom-style":o=J.getBorderBottomStyle(t,r);break;case"border-left-style":o=J.getBorderLeftStyle(t,r);break;case"border-radius":o=J.getBorderRadius(t,r);break;case"border-top-left-radius":o=J.getBorderTopLeftRadius(t,r);break;case"border-top-right-radius":o=J.getBorderTopRightRadius(t,r);break;case"border-bottom-right-radius":o=J.getBorderBottomRightRadius(t,r);break;case"border-bottom-left-radius":o=J.getBorderBottomLeftRadius(t,r);break;case"border-collapse":o=J.getBorderCollapse(t,r);break;case"outline":o=J.getOutline(t,r);break;case"outline-width":o=J.getOutlineWidth(t,r);break;case"outline-style":o=J.getOutlineStyle(t,r);break;case"outline-color":o=J.getOutlineColor(t,r);break;case"letter-spacing":o=J.getLetterSpacing(t,r);break;case"word-spacing":o=J.getWordSpacing(t,r);break;case"clear":o=J.getClear(t,r);break;case"clip":o=J.getClip(t,r);break;case"css-float":o=J.getCSSFloat(t,r);break;case"float":o=J.getFloat(t,r);break;case"display":o=J.getDisplay(t,r);break;case"direction":o=J.getDirection(t,r);break;case"flex":o=J.getFlex(t,r);break;case"flex-shrink":o=J.getFlexShrink(t,r);break;case"flex-grow":o=J.getFlexGrow(t,r);break;case"flex-basis":o=J.getFlexBasis(t,r);break;case"padding":o=J.getPadding(t,r);break;case"padding-top":o=J.getPaddingTop(t,r);break;case"padding-right":o=J.getPaddingRight(t,r);break;case"padding-bottom":o=J.getPaddingBottom(t,r);break;case"padding-left":o=J.getPaddingLeft(t,r);break;case"margin":o=J.getMargin(t,r);break;case"margin-top":o=J.getMarginTop(t,r);break;case"margin-right":o=J.getMarginRight(t,r);break;case"margin-bottom":o=J.getMarginBottom(t,r);break;case"margin-left":o=J.getMarginLeft(t,r);break;case"background":o=J.getBackground(t,r);break;case"background-image":o=J.getBackgroundImage(t,r);break;case"background-color":o=J.getBackgroundColor(t,r);break;case"background-repeat":o=J.getBackgroundRepeat(t,r);break;case"background-attachment":o=J.getBackgroundAttachment(t,r);break;case"background-position":o=J.getBackgroundPosition(t,r);break;case"width":o=J.getWidth(t,r);break;case"height":o=J.getHeight(t,r);break;case"top":o=J.getTop(t,r);break;case"right":o=J.getRight(t,r);break;case"bottom":o=J.getBottom(t,r);break;case"left":o=J.getLeft(t,r);break;case"font":o=J.getFont(t,r);break;case"font-style":o=J.getFontStyle(t,r);break;case"font-variant":o=J.getFontVariant(t,r);break;case"font-weight":o=J.getFontWeight(t,r);break;case"font-stretch":o=J.getFontStretch(t,r);break;case"font-size":o=J.getFontSize(t,r);break;case"line-height":o=J.getLineHeight(t,r);break;case"text-indent":o=J.getTextIndent(t,r);break;case"font-family":o=J.getFontFamily(t,r);break;case"color":o=J.getColor(t,r);break;case"flood-color":o=J.getFloodColor(t,r);break;case"text-transform":o=J.getTextTransform(t,r);break;case"visibility":o=J.getVisibility(t,r);break;case"aspect-ratio":o=J.getAspectRatio(t,r);break;default:let i=t.trim();if(i){let n=g.getGlobal(i);o={[e]:{value:n||i,important:r}}}break}o!==null&&Object.keys(o).length>0&&(this.definedPropertyNames[e]=!0,Object.assign(this.properties,o))}clone(){let e=this.constructor,t=new e;return t.properties=JSON.parse(JSON.stringify(this.properties)),t.definedPropertyNames=Object.assign({},this.definedPropertyNames),t}size(){return Object.keys(this.properties).length}item(e){return Object.keys(this.properties)[e]||""}toString(){let e=[],t=this.clone(),r={};for(let o of T2)for(let i of o)if(Array.isArray(i)){let n=!1;for(let a of i){let y=t.get(a);y&&(r[a]=y,t.remove(a),n=!0)}if(n)break}else{let n=t.get(i);if(n){r[i]=n,t.remove(i);break}}for(let o of Object.keys(t.properties))r[o]=t.get(o);for(let o of Object.keys(this.definedPropertyNames)){let i=r[o];i&&(e.push(`${o}: ${i.value}${i.important?" !important":""};`),delete r[o])}for(let o of Object.keys(r)){let i=r[o];i&&e.push(`${o}: ${i.value}${i.important?" !important":""};`)}return e.join(" ")}};var sE={default:"display: inline;",A:"",ABBR:"",ADDRESS:"display: block;",AREA:"",ARTICLE:"display: block;",ASIDE:"display: block;",AUDIO:"display: none;",B:"",BASE:"display: none;",BDI:"",BDO:"",BLOCKQUAOTE:"",BODY:"display: block;",TEMPLATE:"display: none;",FORM:"display: block;",INPUT:"display: inline-block;",TEXTAREA:"display: inline-block;",SCRIPT:"display: none;",IMG:"",LINK:"display: none;",STYLE:"display: none;",LABEL:"",SLOT:"display: contents;",SVG:"",CIRCLE:"",ELLIPSE:"",LINE:"",PATH:"",POLYGON:"",POLYLINE:"",RECT:"",STOP:"",USE:"",META:"display: none;",BLOCKQUOTE:"display: block;",BR:"",BUTTON:"display: inline-block;",CANVAS:"",CAPTION:"display: table-caption;",CITE:"",CODE:"",COL:"display: table-column;",COLGROUP:"display: table-column-group;",DATA:"",DATALIST:"display: none;",DD:"display: block;",DEL:"",DETAILS:"display: block;",DFN:"",DIALOG:{default:"display: none;",open:"display: block;"},DIV:"display: block;",DL:"display: block;",DT:"display: block;",EM:"",EMBED:"",FIELDSET:"display: block;",FIGCAPTION:"display: block;",FIGURE:"display: block;",FOOTER:"display: block;",H1:"display: block;",H2:"display: block;",H3:"display: block;",H4:"display: block;",H5:"display: block;",H6:"display: block;",HEAD:"display: none;",HEADER:"display: block;",HGROUP:"display: block;",HR:"display: block;",HTML:'display: block;direction: ltr;font: 16px "Times New Roman";',I:"",IFRAME:"",INS:"",KBD:"",LEGEND:"display: block;",LI:"display: list-item;",MAIN:"display: block;",MAP:"",MARK:"",MATH:"",MENU:"display: block;",MENUITEM:"",METER:"display: inline-block;",NAV:"display: block;",NOSCRIPT:"",OBJECT:"",OL:"display: block;",OPTGROUP:"display: block;",OPTION:"display: block;",OUTPUT:"unicode-bidi: isolate;",P:"display: block;",PARAM:"display: none;",PICTURE:"",PRE:"display: block;",PROGRESS:"display: inline-block;",Q:"",RB:"",RP:"display: none;",RT:"",RTC:"",RUBY:"",S:"",SAMP:"",SECTION:"display: block;",SELECT:"display: inline-block;",SMALL:"",SOURCE:"",SPAN:"",STRONG:"",SUB:"",SUMMARY:"display: block;",SUP:"",TABLE:"display: table;",TBODY:"display: table-row-group;",TD:"display: table-cell;",TFOOT:"display: table-footer-group;",TH:"display: table-cell;",THEAD:"display: table-header-group;",TIME:"",TITLE:"display: none;",TR:"display: table-row;",TRACK:"",U:"",UL:"display: block;",VAR:"",VIDEO:"",WBR:""};var nE={"border-collapse":!0,"border-spacing":!0,"caption-side":!0,color:!0,cursor:!0,direction:!0,"empty-cells":!0,"font-family":!0,"font-size":!0,"font-style":!0,"font-variant":!0,"font-weight":!0,"font-size-adjust":!0,"font-stretch":!0,font:!0,"letter-spacing":!0,"line-height":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,"list-style":!0,orphans:!0,quotes:!0,"tab-size":!0,"text-align":!0,"text-align-last":!0,"text-decoration-color":!0,"text-indent":!0,"text-justify":!0,"text-shadow":!0,"text-transform":!0,visibility:!0,"white-space":!0,widows:!0,"word-break":!0,"word-spacing":!0,"word-wrap":!0};var lE=["background-position-x","background-position-y","background-size","border-image-outset","border-top-width","border-right-width","border-bottom-width","border-left-width","border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius","border-image-width","clip","font-size","padding-top","padding-right","padding-bottom","padding-left","margin-top","margin-right","margin-bottom","margin-left","width","height","min-width","min-height","max-width","max-height","top","right","bottom","left","outline-width","outline-offset","letter-spacing","word-spacing","text-indent","line-height"];var Te=class{constructor(e,t){s(this,"target");s(this,"classes");s(this,"cache",new Map);this.target=e,this.classes=t}bind(e){if(this.cache.has(e)||e===Symbol.iterator||e==="constructor")return;this.cache.set(e,!0);let t=this.target;if(e in t)for(let r of this.classes){let o=Object.getOwnPropertyDescriptor(r.prototype,e);if(o){if(typeof o.value=="function"){if(o.value.toString().startsWith("class "))return;Object.defineProperty(t,e,{...o,value:o.value.bind(t)})}else o.get!==void 0&&Object.defineProperty(t,e,{...o,get:o.get?.bind(t),set:o.set?.bind(t)});return}}}preventBinding(e){this.cache.set(e,!0)}};var aE,mE,XP=class l{constructor(e,t){s(this,mE);s(this,aE);if(e!==h)throw new TypeError("Illegal constructor");this[$]=t;let r=new Te(this,this.constructor!==l?[this.constructor,l]:[l]),o=new Proxy(this,{get:(i,n)=>{if(n==="length")return t.length;if(n in i||typeof n=="symbol")return r.bind(n),i[n];if(n==="")return;let a=Number(n);if(!isNaN(a))return t[a]},set(i,n,a){if(r.bind(n),typeof n=="symbol")return i[n]=a,!0;let y=Number(n);return isNaN(y)&&(i[n]=a),!0},deleteProperty(i,n){if(typeof n=="symbol")return delete i[n],!0;let a=Number(n);return isNaN(a)&&delete i[n],!0},ownKeys(){return Object.keys(t)},has(i,n){if(n in i)return!0;if(typeof n=="symbol")return!1;let a=Number(n);return!isNaN(a)&&a>=0&&a<t.length},defineProperty(i,n,a){return r.preventBinding(n),n in i?(Object.defineProperty(i,n,a),!0):!1},getOwnPropertyDescriptor(i,n){if(n in i||typeof n=="symbol")return;let a=Number(n);if(!isNaN(a)&&t[a])return{value:t[a],writable:!1,enumerable:!0,configurable:!0}}});return this[Vt]=o,o}get length(){return this[$].length}get[(mE=$,aE=Vt,Symbol.toStringTag)](){return"NodeList"}toLocaleString(){return"[object NodeList]"}toString(){return"[object NodeList]"}item(e){let t=this[$];return e>=0&&t[e]?t[e]:null}[Symbol.iterator](){return this[$][Symbol.iterator]()}values(){return this[$].values()}entries(){return this[$].entries()}forEach(e,t){let r=this[$],o=this[Vt]??this;for(let i=0,n=r.length;i<n;i++){let a=r[i];e.call(t??a[m],a,i,o)}}keys(){return this[$].keys()}},Ii=XP;var zP;(function(l){l.none="none",l.descendant="descendant",l.child="child",l.adjacentSibling="adjacentSibling",l.subsequentSibling="subsequentSibling"})(zP||(zP={}));var we=zP;var Hu=class{constructor(e){s(this,"root");s(this,"scope");s(this,"tagName");s(this,"id");s(this,"classNames");s(this,"attributes");s(this,"pseudos");s(this,"isPseudoElement");s(this,"combinator");s(this,"ignoreErrors");this.root=e?.scope?.[T]?.documentElement||e?.scope?.[m].document?.documentElement||null,this.scope=e?.scope||null,this.tagName=e?.tagName||null,this.id=e?.id||null,this.classNames=e?.classNames||null,this.attributes=e?.attributes||null,this.pseudos=e?.pseudos||null,this.isPseudoElement=e?.isPseudoElement||!1,this.combinator=e?.combinator||we.none,this.ignoreErrors=e?.ignoreErrors||!1}match(e){let t=0;if(this.isPseudoElement)return null;if(this.tagName){if(this.tagName!=="*"&&this.tagName!==e[Z].toUpperCase())return null;t+=1}if(this.id){if(this.id!==e.id)return null;t+=100}if(this.classNames){let r=this.matchClass(e);if(!r)return null;t+=r.priorityWeight}if(this.attributes){let r=this.matchAttributes(e);if(!r)return null;t+=r.priorityWeight}if(this.pseudos){let r=this.matchPseudo(e);if(!r)return null;t+=r.priorityWeight}return{priorityWeight:t}}matchPseudo(e){let t=e[Y],r=e[Y]?e[Y][dt]:[];if(!this.pseudos)return{priorityWeight:0};let o=0;for(let i of this.pseudos){switch(i.name){case"not":case"nth-child":case"nth-of-type":case"nth-last-child":case"nth-last-of-type":case"is":case"where":if(!i.arguments){if(this.ignoreErrors)return null;throw new e[m].DOMException(`Failed to execute 'matches' on '${e.constructor.name}': '${this.getSelectorString()}' is not a valid selector.`)}break}if(!t)switch(i.name){case"first-child":case"last-child":case"only-child":case"first-of-type":case"last-of-type":case"only-of-type":case"nth-child":case"nth-of-type":case"nth-last-child":case"nth-last-of-type":return null}let n=this.matchPseudoItem(e,r,i);if(!n)return null;o+=n.priorityWeight}return{priorityWeight:o}}matchPseudoItem(e,t,r){switch(r.name){case"first-child":return t[0]===e?{priorityWeight:10}:null;case"last-child":return t.length&&t[t.length-1]===e?{priorityWeight:10}:null;case"only-child":return t.length===1&&t[0]===e?{priorityWeight:10}:null;case"first-of-type":for(let f of t)if(f[Z]===e[Z])return f===e?{priorityWeight:10}:null;return null;case"last-of-type":for(let f=t.length-1;f>=0;f--){let S=t[f];if(S[Z]===e[Z])return S===e?{priorityWeight:10}:null}return null;case"only-of-type":let o=!1;for(let f of t)if(f[Z]===e[Z]){if(o||f!==e)return null;o=!0}return o?{priorityWeight:10}:null;case"checked":return e[Z]==="INPUT"&&e.checked?{priorityWeight:10}:null;case"disabled":return"disabled"in e&&e.hasAttribute("disabled")?{priorityWeight:10}:null;case"empty":return e[dt].length?null:{priorityWeight:10};case"root":return this.root&&e===this.root?{priorityWeight:10}:null;case"not":for(let f of r.selectorItems)if(f.match(e))return null;return{priorityWeight:10};case"nth-child":let i=-1;if(r.selectorItems?.[0]&&!r.selectorItems[0].match(e))return null;for(let f=0,S=t.length;f<S;f++)if((!r.selectorItems?.[0]||r.selectorItems[0].match(t[f]))&&i++,t[f]===e)return i!==-1&&r.nthFunction(i+1)?{priorityWeight:10}:null;return null;case"nth-of-type":let n=-1;for(let f=0,S=t.length;f<S;f++)if(t[f][Z]===e[Z]&&n++,t[f]===e)return n!==-1&&r.nthFunction(n+1)?{priorityWeight:10}:null;return null;case"nth-last-child":let a=-1;if(r.selectorItems?.[0]&&!r.selectorItems[0].match(e))return null;for(let f=t.length-1;f>=0;f--)if((!r.selectorItems?.[0]||r.selectorItems[0].match(t[f]))&&a++,t[f]===e)return a!==-1&&r.nthFunction(a+1)?{priorityWeight:10}:null;return null;case"nth-last-of-type":let y=-1;for(let f=t.length-1;f>=0;f--)if(t[f][Z]===e[Z]&&y++,t[f]===e)return y!==-1&&r.nthFunction(y+1)?{priorityWeight:10}:null;return null;case"target":let p=e[T].location.hash;return p&&e.isConnected&&e.id===p.slice(1)?{priorityWeight:10}:null;case"is":let d=0;if(!r.selectorItems)return null;for(let f of r.selectorItems){let S=f.match(e);S&&d<S.priorityWeight&&(d=S.priorityWeight)}return d?{priorityWeight:d}:null;case"where":if(!r.selectorItems)return null;for(let f of r.selectorItems)if(f.match(e))return{priorityWeight:0};return null;case"has":let b=0;if(r.arguments&&r.selectorItems)if(r.arguments[0]==="+"){let f=e.nextElementSibling;if(!f)return null;for(let S of r.selectorItems){let M=S.match(f);M&&b<M.priorityWeight&&(b=M.priorityWeight)}}else if(r.arguments[0]===">")for(let f of r.selectorItems)for(let S of e[dt]){let M=f.match(S);if(M&&b<M.priorityWeight){b=M.priorityWeight;break}}else for(let f of r.selectorItems){let S=this.matchChildOfElement(f,e);S&&b<S.priorityWeight&&(b=S.priorityWeight)}return b?{priorityWeight:b}:null;case"focus":case"focus-visible":return e[T].activeElement===e?{priorityWeight:10}:null;case"scope":return this.scope&&this.scope===e?{priorityWeight:10}:null;default:return null}}matchAttributes(e){if(!this.attributes)return null;let t=0;for(let r of this.attributes){let o=e[ft].getNamedItem(r.name);if(!o||(t+=10,r.value!==null&&(o[z]===null||r.regExp&&!r.regExp.test(o[z])||!r.regExp&&r.value!==o[z])))return null}return{priorityWeight:t}}matchClass(e){if(!this.classNames)return null;let t=0;for(let r of this.classNames){if(!e.classList.contains(r))return null;t+=10}return{priorityWeight:t}}matchChildOfElement(e,t){for(let r of t[dt]){let o=e.match(r);if(o)return o;let i=this.matchChildOfElement(e,r);if(i)return i}return null}getSelectorString(){return`${this.tagName?this.tagName.toLowerCase():""}${this.id?`#${this.id}`:""}${this.classNames?`.${this.classNames.join(".")}`:""}${this.attributes?this.attributes.map(e=>`[${e.name}${e.value?`${e.operator||""}="${e.value}"`:""}]`).join(""):""}${this.pseudos?this.pseudos.map(e=>`:${e.name}${e.arguments?`(${e.arguments})`:""}`).join(""):""}`}};var C2=/(\s*[\s,+>~]\s*)|([\[\]\(\)"'])/gm,N2=/(\*)|([a-zA-Z0-9\u00A0-\uFFFF-]+)|#(([a-zA-Z0-9\u00A0-\uFFFF_-]|\\.)+)|\.(([a-zA-Z0-9\u00A0-\uFFFF_-]|\\.)+)|\[(([a-zA-Z0-9-_]|\\.)+)\]|\[(([a-zA-Z0-9-_]|\\.)+)\s*([~|^$*]{0,1})\s*=\s*("([^"]*)"|'([^']*)')\s*(s|i){0,1}\]|\[(([a-zA-Z0-9-_]|\\.)+)\s*([~|^$*]{0,1})\s*=\s*(([a-zA-Z0-9\u00A0-\uFFFF_¤£-]|\\.)+)\]|:([a-zA-Z-]+)\s*\(.+\)|:([a-zA-Z-]+)|::([a-zA-Z-]+)/gm,L2=/:([a-zA-Z-]+)|([()])/gm,gb=/\\/g,k2=/\\([0-9a-fA-F]{1,6})\s?|\\(.)/g,I2=/[.*+?^${}()|[\]\\]/g,yE={odd:l=>(l+1)%2===0,even:l=>(l+1)%2!==0,alwaysFalse:()=>!1},M2=/ /g,Bl=class l{constructor(e){s(this,"window");s(this,"scope");s(this,"ignoreErrors");this.window=e.window,this.scope=e.scope,this.ignoreErrors=e.ignoreErrors??!1}getSelectorItem(e){return this.getSelectorGroups(e)[0][0]}getSelectorGroups(e){e=e.trim();let t=[],r=[t],o=new RegExp(C2),i={parentheses:0,brackets:0,doubleApostrophe:0,singleApostrophe:0},n=this.scope.nodeType===L.documentNode?"Document":"Element",a=new this.window.SyntaxError(`Failed to execute 'querySelectorAll' on '${n}': '${e}' is not a valid selector.`),y=null,p=0,d=null,b=we.none;for(;y=o.exec(e);)if(y[1]){if(i.parentheses===0&&i.brackets===0&&i.singleApostrophe===0&&i.doubleApostrophe===0){let f=e.substring(p,y.index).trim();switch(y[1].trim()){case",":if(d=this.getSelectorGroupItem(f,b),!d){if(this.ignoreErrors)return[];throw a}t.push(d),t=[],r.push(t),b=we.none;break;case">":if(d=this.getSelectorGroupItem(f,b),!d){if(this.ignoreErrors)return[];throw a}t.push(d),b=we.child;break;case"+":if(d=this.getSelectorGroupItem(f,b),!d){if(this.ignoreErrors)return[];throw a}t.push(d),b=we.adjacentSibling;break;case"~":if(d=this.getSelectorGroupItem(f,b),!d){if(this.ignoreErrors)return[];throw a}t.push(d),b=we.subsequentSibling;break;case"":if(d=this.getSelectorGroupItem(f,b),!d){if(this.ignoreErrors)return[];throw a}t.push(d),b=we.descendant;break}p=o.lastIndex}}else switch(y[2]){case"(":i.singleApostrophe===0&&i.doubleApostrophe===0&&i.parentheses++;break;case")":i.singleApostrophe===0&&i.doubleApostrophe===0&&i.parentheses--;break;case"[":i.singleApostrophe===0&&i.doubleApostrophe===0&&i.brackets++;break;case"]":i.singleApostrophe===0&&i.doubleApostrophe===0&&i.brackets--;break;case'"':i.singleApostrophe===0&&(i.doubleApostrophe=i.doubleApostrophe===1?0:1);break;case"'":i.doubleApostrophe===0&&(i.singleApostrophe=i.singleApostrophe===1?0:1);break}if(d=this.getSelectorGroupItem(e.substring(p),b),!d||i.parentheses!==0||i.brackets!==0||i.singleApostrophe!==0||i.doubleApostrophe!==0){if(this.ignoreErrors)return[];throw a}return b===we.none&&t.length>0?r.push([d]):t.push(d),r}getSelectorGroupItem(e,t){e=e.trim();let r=this.ignoreErrors,o=this.scope;if(!e)return null;if(e==="*")return new Hu({scope:o,tagName:"*",combinator:t,ignoreErrors:r});let i=new RegExp(N2),n=new Hu({scope:o,combinator:t,ignoreErrors:r}),a,y=0;for(;a=i.exec(e);){if(e.substring(y,a.index).trim()!=="")return null;if(a[1])n.tagName="*";else if(a[2])n.tagName=a[2].toUpperCase();else if(a[3])n.id=a[3].replace(gb,"");else if(a[5])n.classNames=n.classNames||[],n.classNames.push(a[5].replace(gb,""));else if(a[7])n.attributes=n.attributes||[],n.attributes.push({name:a[7].replace(gb,""),operator:null,value:null,modifier:null,regExp:null});else if(a[9]&&(a[13]!==void 0||a[14]!==void 0)){let p=a[13]??a[14],d=l.cssUnescape(p);n.attributes=n.attributes||[],n.attributes.push({name:a[9].replace(gb,""),operator:a[11]||null,value:d,modifier:a[15]||null,regExp:this.getAttributeRegExp({operator:a[11],value:d,modifier:a[15]})})}else if(a[16]&&a[19]!==void 0){let p=l.cssUnescape(a[19]);n.attributes=n.attributes||[],n.attributes.push({name:a[16].replace(gb,""),operator:a[18]||null,value:p,modifier:null,regExp:this.getAttributeRegExp({operator:a[18],value:p})})}else if(a[21]){let p=new RegExp(L2),d=null,b=null,f=0,S=-1;for(;d=p.exec(a[0]);)if(d[1])f===0&&(b=d[1]);else if(d[2]){if(d[2]==="(")f===0&&(S=p.lastIndex),f++;else if(d[2]===")"){if(f--,f<0)return null;if(f===0){if(S===-1||!b)return null;n.pseudos=n.pseudos||[],n.pseudos.push(this.getPseudo(b,a[0].substring(S,d.index))),b=null,S=-1}}}}else a[22]?(n.pseudos=n.pseudos||[],n.pseudos.push(this.getPseudo(a[22],null))):a[23]&&(n.isPseudoElement=!0);y=i.lastIndex}return y<e.length?null:n}getAttributeRegExp(e){let t=e.modifier==="i"?"i":"";if(!e.operator||!e.value)return null;let r=e.value.replace(I2,"\\$&");switch(e.operator){case"~":return new RegExp(`[- ]${r}|${r}[- ]|^${r}$`,t);case"|":return new RegExp(`^${r}[- ]|^${r}$`,t);case"^":return new RegExp(`^${r}`,t);case"$":return new RegExp(`${r}$`,t);case"*":return new RegExp(`${r}`,t);default:return null}}getPseudo(e,t){let r=e.toLowerCase();if(t&&(t=t.trim()),!t)return{name:r,arguments:null,selectorItems:null,nthFunction:null};switch(r){case"nth-last-child":case"nth-child":let o=t.indexOf(" of "),i=o!==-1?t.substring(0,o):t,n=o!==-1?this.getSelectorItem(t.substring(o+4).trim()):null;return{name:r,arguments:t,selectorItems:n?[n]:null,nthFunction:this.getPseudoNthFunction(i)};case"nth-of-type":case"nth-last-of-type":return{name:r,arguments:t,selectorItems:null,nthFunction:this.getPseudoNthFunction(t)};case"not":let a=[];for(let d of this.getSelectorGroups(t))d[0]&&a.push(d[0]);return{name:r,arguments:t,selectorItems:a,nthFunction:null};case"is":case"where":let y=[];for(let d of this.getSelectorGroups(t))d[0]&&y.push(d[0]);return{name:r,arguments:t,selectorItems:y,nthFunction:null};case"has":let p=[];if(!t.includes(":has(")){let d=t;t[0]==="+"?d=t.replace("+",""):t[0]===">"&&(d=t.replace(">",""));for(let b of this.getSelectorGroups(d))b[0]&&p.push(b[0])}return{name:r,arguments:t||"",selectorItems:p,nthFunction:null};default:return{name:r,arguments:t,selectorItems:null,nthFunction:null}}}getPseudoNthFunction(e){if(!e)return null;if(e==="odd")return yE.odd;if(e==="even")return yE.even;let t=e.replace(M2,"").split("n"),r=parseInt(t[0],10)||0;if(t[0]=="-"&&(r=-1),t.length===1)return i=>i==r;let o=parseInt(t[1],10)||0;return t[0]=="+"&&(o=1),r>=1||r<=-1?r>=1?Math.abs(r)===1?i=>i>o-1:i=>i>o-1&&(i+-1*o)%r===0:Math.abs(r)===1?i=>i<o+1:i=>i<o+1&&(i+-1*o)%r===0:t[0]?i=>i===o:i=>i>o-1}static cssUnescape(e){return e.replace(k2,(t,r,o)=>r?String.fromCodePoint(parseInt(r,16)):o)}};var JP=/^[.#\[]?\d|[.#]$/,yt=class{static querySelectorAll(e,t){let r=e[m];if(t==="")throw new r.DOMException(`Failed to execute 'querySelectorAll' on '${e.constructor.name}': The provided selector is empty.`);if(typeof t=="function")throw new r.DOMException(`Failed to execute 'querySelectorAll' on '${e.constructor.name}': '${t}' is not a valid selector.`);if(typeof t=="symbol")throw new r.TypeError(`Failed to execute 'querySelectorAll' on '${e.constructor.name}': Cannot convert a Symbol value to a string`);if(t=String(t),JP.test(t))throw new r.DOMException(`Failed to execute 'querySelectorAll' on '${e.constructor.name}': '${t}' is not a valid selector.`);let o=e[W].querySelectorAll,i=o.get(t);if(i){if(i.result!==null){let M=i.result.deref();if(M)return M}o.delete(t)}let n=e[U]===L.documentNode?e.documentElement:e,a=new Bl({window:r,scope:n}).getSelectorGroups(t),y=[],p=new Ii(h,y),d=new Map,b=[],f={result:new WeakRef(p)};e[W].querySelectorAll.set(t,f),e[it]&&(e[T]||e)[ir].push(f);for(let M of a){let N=e[U]===L.elementNode?this.findAll(e,[e],M,f):this.findAll(null,e[dt],M,f);for(let K of N)d.has(K.documentPosition)||(d.set(K.documentPosition,K.element),b.push(K.documentPosition))}let S=b.sort();for(let M=0,N=S.length;M<N;M++)y.push(d.get(S[M]));return p}static querySelector(e,t){let r=e[m];if(t==="")throw new r.DOMException(`Failed to execute 'querySelector' on '${e.constructor.name}': The provided selector is empty.`);if(typeof t=="function")throw new r.DOMException(`Failed to execute 'querySelector' on '${e.constructor.name}': '${t}' is not a valid selector.`);if(typeof t=="symbol")throw new r.TypeError(`Failed to execute 'querySelector' on '${e.constructor.name}': Cannot convert a Symbol value to a string`);if(t=String(t),JP.test(t))throw new r.DOMException(`Failed to execute 'querySelector' on '${e.constructor.name}': '${t}' is not a valid selector.`);let o=e[W].querySelector.get(t);if(o){if(o.result!==null){if(!o.result.element)return null;let d=o.result.element.deref();if(d)return d}e[W].querySelector.delete(t)}let i={result:{element:null}};e[W].querySelector.set(t,i),e[it]&&(e[T]||e)[ir].push(i);let n=null,a=new Map,y=e[U]===L.documentNode?e.documentElement:e;for(let d of new Bl({window:r,scope:y}).getSelectorGroups(t)){let b=e[U]===L.elementNode?this.findFirst(e,[e],d,i):this.findFirst(null,e[dt],d,i);b&&!a.has(b.documentPosition)&&(a.set(b.documentPosition,!0),(!n||b.documentPosition<n.documentPosition)&&(n=b))}let p=n?.element||null;return i.result={element:p?new WeakRef(p):null},p}static matches(e,t,r){let o=r?.ignoreErrors,i=e[m];if(t==="*")return{priorityWeight:1};if(t===""){if(o)return null;throw new i.DOMException(`Failed to execute 'matches' on '${e.constructor.name}': The provided selector is empty.`)}if(typeof t=="function"){if(o)return null;throw new i.DOMException(`Failed to execute 'matches' on '${e.constructor.name}': '${t}' is not a valid selector.`)}if(typeof t=="symbol"){if(o)return null;throw new i.TypeError("Cannot convert a Symbol value to a string")}if(t=String(t),JP.test(t)){if(o)return null;throw new i.DOMException(`Failed to execute 'matches' on '${e.constructor.name}': '${t}' is not a valid selector.`)}let n=e[W].matches.get(t);if(n){if(n.result!==null)return n.result.match;e[W].matches.delete(t)}let a={result:{match:null}};e[W].matches.set(t,a),e[it]&&(e[T]||e)[ir].push(a);let y=r?.scope||e,p=y[U]===L.documentNode?y.documentElement:y;for(let d of new Bl({ignoreErrors:r?.ignoreErrors,window:i,scope:p}).getSelectorGroups(t)){let b=this.matchSelector(e,d.reverse(),a);if(b)return a.result.match=b,b}return null}static matchSelector(e,t,r,o=null,i=0){let n=t[0];if(!n)return null;let a=n.match(e);if(a){if(t.length===1)return{priorityWeight:i+a.priorityWeight};switch(n.combinator){case we.adjacentSibling:let y=e.previousElementSibling;if(y){y[ir].push(r);let b=this.matchSelector(y,t.slice(1),r,n,i+a.priorityWeight);if(b)return b}break;case we.none:case we.child:case we.descendant:let p=e.parentElement;if(p){p[ir].push(r);let b=this.matchSelector(p,t.slice(1),r,n,i+a.priorityWeight);if(b)return b}break;case we.subsequentSibling:let d=e.parentElement;if(d){let b=d[dt],f=b.indexOf(e);d[ir].push(r);for(let S=f-1;S>=0;S--){let M=b[S];M[ir].push(r);let N=this.matchSelector(M,t.slice(1),r,n,i+a.priorityWeight);if(N)return N}}break}}if(o?.combinator===we.none||o?.combinator===we.descendant){let y=e.parentElement;if(y)return this.matchSelector(y,t,r,o,i)}return null}static findAll(e,t,r,o,i){let n=r[0],a=r[1],y=[];if(!n)return[];for(let p=0,d=t.length;p<d;p++){let b=t[p],f=b[dt],S=(i?i+">":"")+String.fromCharCode(p);if(b[ir].push(o),n.match(b))if(!a)e!==b&&y.push({documentPosition:S,element:b});else switch(a.combinator){case we.adjacentSibling:let M=b.nextElementSibling;M&&(y=y.concat(this.findAll(e,[M],r.slice(1),o,S)));break;case we.none:case we.descendant:case we.child:y=y.concat(this.findAll(e,f,r.slice(1),o,S));break;case we.subsequentSibling:let N=t.indexOf(b);for(let K=N+1;K<t.length;K++){let mt=t[K];y=y.concat(this.findAll(e,[mt],r.slice(1),o,S))}break}(n.combinator===we.none||n.combinator===we.descendant)&&f.length&&(y=y.concat(this.findAll(e,f,r,o,S)))}return y}static findFirst(e,t,r,o,i){let n=r[0],a=r[1];if(!n)return null;for(let y=0,p=t.length;y<p;y++){let d=t[y],b=d[dt],f=(i?i+">":"")+String.fromCharCode(y);if(d[ir].push(o),n.match(d)){if(a)switch(a.combinator){case we.adjacentSibling:let S=d.nextElementSibling;if(S){let K=this.findFirst(e,[S],r.slice(1),o,f);if(K)return K}break;case we.none:case we.descendant:case we.child:let M=this.findFirst(e,b,r.slice(1),o,f);if(M)return M;break;case we.subsequentSibling:let N=t.indexOf(d);for(let K=N+1;K<t.length;K++){let mt=t[K],Nt=this.findFirst(e,[mt],r.slice(1),o,f);if(Nt)return Nt}break}else if(e!==d)return{documentPosition:f,element:d}}if((n.combinator===we.none||n.combinator===we.descendant)&&b.length){let S=this.findFirst(e,b,r,o,f);if(S)return S}}return null}};var $a=class{static toPixels(e){let t=parseFloat(e.value),r=e.value.replace(t.toString(),"");if(isNaN(t))return null;switch(r){case"px":return t;case"rem":return this.round(t*parseFloat(e.rootFontSize));case"em":return this.round(t*parseFloat(e.parentFontSize));case"vw":return this.round(t*e.window.innerWidth/100);case"vh":return this.round(t*e.window.innerHeight/100);case"%":return e.parentSize!==void 0&&e.parentSize!==null?this.round(t*parseFloat(e.parentSize)/100):null;case"vmin":return this.round(t*Math.min(e.window.innerWidth,e.window.innerHeight)/100);case"vmax":return t*Math.max(e.window.innerWidth,e.window.innerHeight)/100;case"cm":return this.round(t*37.7812);case"mm":return this.round(t*3.7781);case"in":return this.round(t*96);case"pt":return this.round(t*1.3281);case"pc":return this.round(t*16);case"Q":return this.round(t*.945);default:return null}}static round(e){return Math.round(e*1e4)/1e4}};var uE,pE,Wu;pE=Kc,uE=hS;var rt=class{constructor(e){E(this,Wu);w(this,Wu,e)}getSettings(){return this.getBrowserFrame()?.page.context.browser.settings||null}getBrowser(){return this.getBrowserFrame()?.page.context.browser||null}getBrowserPage(){return this.getBrowserFrame()?.page||null}getBrowserContext(){return this.getBrowserFrame()?.page.context||null}getBrowserFrame(){return u(this,Wu)&&this.constructor[Kc].get(u(this,Wu)[Ta])||null}getAsyncTaskManager(){return this.getBrowserFrame()?.[gt]||null}static setWindowBrowserFrameRelation(e,t){let r=this[Kc];e[Ta]===-1&&(e[Ta]=this[hS],this[hS]++),r.set(e[Ta],t)}static removeWindowBrowserFrameRelation(e){this[Kc].delete(e[Ta])}};Wu=new WeakMap,s(rt,pE,new Map),s(rt,uE,0);var hE,cE,Yu,dE,bE,Tt=class{constructor(){E(this,Yu);s(this,cE,{capturing:new Map,bubbling:new Map});s(this,hE,{capturing:new Map,bubbling:new Map})}get[(cE=fe,hE=hl,Symbol.toStringTag)](){return"EventTarget"}addEventListener(e,t,r){r=typeof r=="boolean"?{capture:r}:r||{};let o=r.capture?"capturing":"bubbling",i=this[fe][o].get(e),n;i?n=this[hl][o].get(e):(i=[],n=[],this[fe][o].set(e,i),this[hl][o].set(e,n)),!i.includes(t)&&(i.push(t),n.push(r),r.signal&&!r.signal.aborted&&r.signal.addEventListener("abort",()=>{this.removeEventListener(e,t)}))}removeEventListener(e,t){let r=this[fe].bubbling.get(e);if(r){let i=r.indexOf(t);if(i!==-1){r.splice(i,1),this[hl].bubbling.get(e).splice(i,1);return}}let o=this[fe].capturing.get(e);if(o){let i=o.indexOf(t);i!==-1&&(o.splice(i,1),this[hl].capturing.get(e).splice(i,1))}}dispatchEvent(e){if(!(e instanceof k))throw new this[m].TypeError("Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'.");return!e[_a]&&(e[zt]!=="load"||!e[Zr])?(e[_a]=!0,e[Zr]=this[Vt]||this,D(this,Yu,dE).call(this,e),e[_a]=!1,!(e[yn]&&e[Br])):(D(this,Yu,bE).call(this,e),!(e[yn]&&e[Br]))}attachEvent(e,t){this.addEventListener(e.replace("on",""),t)}detachEvent(e,t){this.removeEventListener(e.replace("on",""),t)}[wt](){this[fe].capturing.clear(),this[fe].bubbling.clear(),this[hl].capturing.clear(),this[hl].bubbling.clear()}};Yu=new WeakSet,dE=function(e){let t=e.composedPath();e[eo]=de.capturing;for(let r=t.length-1;r>=0;r--)if(e[Ti]=t[r],t[r].dispatchEvent(e),e[dl]||e[pl]){e[eo]=de.none,e[Ti]=null;return}if(e[eo]=de.atTarget,e[Ti]=this[Vt]||this,e[Zr].dispatchEvent(e),e[eo]=de.bubbling,e[El]&&!e[dl]&&!e[pl]){for(let r=1,o=t.length;r<o;r++)if(e[Ti]=t[r],t[r].dispatchEvent(e),e[dl]||e[pl]){e[eo]=de.none,e[Ti]=null;return}}e[eo]=de.none,e[Ti]=null},bE=function(e){let t=this[m],r=t?new rt(t).getSettings():null,o=e.eventPhase===de.capturing?"capturing":"bubbling",i=this[fe][o].get(e.type)?.slice();if(i&&i.length){let n=this[hl][o].get(e.type).slice();for(let a=0,y=i.length;a<y;a++){let p=i[a],d=n[a];if(d?.passive&&(e[xu]=!0),t&&(this!==t||e.type!=="error")&&!r?.disableErrorCapturing&&r?.errorCapture===ue.tryAndCatch)if(p.handleEvent){let b;try{b=p.handleEvent.call(p,e)}catch(f){t[ce](f)}b instanceof Promise&&b.catch(f=>t[ce](f))}else{let b;try{b=p.call(this,e)}catch(f){t[ce](f)}b instanceof Promise&&b.catch(f=>t[ce](f))}else p.handleEvent?p.handleEvent.call(p,e):p.call(this,e);if(e[xu]=!1,d?.once&&(i.splice(a,1),n.splice(a,1),this.removeEventListener(e.type,p),a--,y--),e[pl])return}}if(e.eventPhase!==de.capturing){let n="on"+e.type.toLowerCase(),a=this[c],y=!a&&Object.hasOwn(this,n)&&this.constructor.name!=="EventTarget";if(a||y){let p=a?.get(n)??this[n];if(typeof p=="function")if(t&&(this!==t||e.type!=="error")&&!r?.disableErrorCapturing&&r?.errorCapture===ue.tryAndCatch){let d;try{d=p(e)}catch(b){t[ce](b)}d instanceof Promise&&d.catch(b=>t[ce](b))}else p(e)}}};var Xa=class extends k{constructor(t,r=null){super(t,r);s(this,"matches");s(this,"media");this.matches=r?.matches??!1,this.media=r?.media??""}};var ZP;(function(l){l.all="all",l.print="print",l.screen="screen"})(ZP||(ZP={}));var wS=ZP;var Cy=class{constructor(e){s(this,"mediaTypes");s(this,"not");s(this,"rules");s(this,"ranges");s(this,"rootFontSize",null);s(this,"window");this.window=e.window,this.rootFontSize=e.rootFontSize||null,this.mediaTypes=e.mediaTypes||[],this.not=e.not||!1,this.rules=e.rules||[],this.ranges=e.ranges||[]}toString(){return`${this.not?"not ":""}${this.mediaTypes.join(", ")}${(this.not||this.mediaTypes.length>0)&&this.ranges.length?" and ":""}${this.ranges.map(e=>`(${e.before?`${e.before.value} ${e.before.operator} `:""}${e.type}${e.after?` ${e.after.operator} ${e.after.value}`:""})`).join(" and ")}${(this.not||this.mediaTypes.length>0)&&this.rules.length?" and ":""}${this.rules.map(e=>e.value?`(${e.name}: ${e.value})`:`(${e.name})`).join(" and ")}`}matches(){return this.not?!this.matchesAll():this.matchesAll()}matchesAll(){if(this.mediaTypes.length){let e=!1;for(let t of this.mediaTypes)if(this.matchesMediaType(t)){e=!0;break}if(!e)return!1}for(let e of this.rules)if(!this.matchesRule(e))return!1;for(let e of this.ranges)if(!this.matchesRange(e))return!1;return!0}matchesMediaType(e){return e===wS.all?!0:e===new rt(this.window).getSettings()?.device.mediaType}matchesRange(e){let t=e.type==="width"?this.window.innerWidth:this.window.innerHeight;if(e.before){let r=this.toPixels(e.before.value);if(r===null)return!1;switch(e.before.operator){case"<":if(r>=t)return!1;break;case"<=":if(r>t)return!1;break;case">":if(r<=t)return!1;break;case">=":if(r<t)return!1;break}}if(e.after){let r=this.toPixels(e.after.value);if(r===null)return!1;switch(e.after.operator){case"<":if(t>=r)return!1;break;case"<=":if(t>r)return!1;break;case">":if(t<=r)return!1;break;case">=":if(t<r)return!1;break}}return!0}matchesRule(e){let t=new rt(this.window).getSettings();if(!t)return!1;if(!e.value){switch(e.name){case"min-width":case"max-width":case"min-height":case"max-height":case"width":case"height":case"orientation":case"prefers-color-scheme":case"hover":case"any-hover":case"any-pointer":case"pointer":case"display-mode":case"min-aspect-ratio":case"max-aspect-ratio":case"aspect-ratio":return!0;case"prefers-reduced-motion":return t.device.prefersReducedMotion==="reduce";case"forced-colors":return t.device.forcedColors==="active"}return!1}switch(e.name){case"min-width":let r=this.toPixels(e.value);return r!==null&&this.window.innerWidth>=r;case"max-width":let o=this.toPixels(e.value);return o!==null&&this.window.innerWidth<=o;case"min-height":let i=this.toPixels(e.value);return i!==null&&this.window.innerHeight>=i;case"max-height":let n=this.toPixels(e.value);return n!==null&&this.window.innerHeight<=n;case"width":let a=this.toPixels(e.value);return a!==null&&this.window.innerWidth===a;case"height":let y=this.toPixels(e.value);return y!==null&&this.window.innerHeight===y;case"orientation":return e.value==="landscape"?this.window.innerWidth>this.window.innerHeight:this.window.innerWidth<this.window.innerHeight;case"prefers-color-scheme":return e.value===t.device.prefersColorScheme;case"prefers-reduced-motion":return e.value===t.device.prefersReducedMotion;case"forced-colors":return(e.value==="none"||e.value==="active")&&e.value===t.device.forcedColors;case"any-hover":case"hover":return e.value==="none"?this.window.navigator.maxTouchPoints>0:e.value==="hover"?this.window.navigator.maxTouchPoints===0:!1;case"any-pointer":case"pointer":return e.value==="none"?!1:e.value==="coarse"?this.window.navigator.maxTouchPoints>0:e.value==="fine"?this.window.navigator.maxTouchPoints===0:!1;case"display-mode":return e.value==="browser";case"min-aspect-ratio":case"max-aspect-ratio":case"aspect-ratio":let p=e.value.split("/"),d=parseInt(p[0],10),b=parseInt(p[1],10);if(isNaN(d)||isNaN(b))return!1;switch(e.name){case"min-aspect-ratio":return d/b<=this.window.innerWidth/this.window.innerHeight;case"max-aspect-ratio":return d/b>=this.window.innerWidth/this.window.innerHeight;case"aspect-ratio":return d/b===this.window.innerWidth/this.window.innerHeight}}return!1}toPixels(e){return!new rt(this.window).getSettings()?.disableComputedStyleRendering&&e.endsWith("em")?(this.rootFontSize=this.rootFontSize||parseFloat(this.window.getComputedStyle(this.window.document.documentElement).fontSize),$a.toPixels({window:this.window,value:e,rootFontSize:this.rootFontSize,parentFontSize:this.rootFontSize})):$a.toPixels({window:this.window,value:e,rootFontSize:16,parentFontSize:16})}};var R2=/(not|only|all|screen|print)|\(([^\)]+)(\)){0,1}|(,)| +(or|and) +/g,F2=/[<>]/,B2=/(?:([0-9]+[a-z]+) *(<|<=|>|>=)){0,1} *(width|height) *(?:(<|<=|>|>=) *([0-9]+[a-z]+)){0,1}/,qu=class{static parse(e){let t=new Cy({window:e.window,rootFontSize:e.rootFontSize}),r=[t],o=new RegExp(R2),i=null;for(;i=o.exec(e.mediaQuery.toLowerCase());)if(i[4]===","||i[5]==="or")t=new Cy({window:e.window,rootFontSize:e.rootFontSize}),r.push(t);else if(i[1]==="all"||i[1]==="screen"||i[1]==="print")t.mediaTypes.push(i[1]);else if(i[1]==="not")t.not=!0;else if(i[2]){let n=F2.test(i[2])?i[2].match(B2):null;if(n&&(n[1]||n[5]))t.ranges.push({before:n[1]?{value:n[1],operator:n[2]}:null,type:n[3],after:n[5]?{value:n[5],operator:n[4]}:null});else{let[a,y]=i[2].split(":"),p=y?y.trim():null;if(!p&&!i[3])return[new Cy({window:e.window,rootFontSize:e.rootFontSize,not:!0,mediaTypes:[wS.all]})];t.rules.push({name:a.trim(),value:p})}}return r}};var za,Dl,Ku,ju,Ny=class extends Tt{constructor(t){super();s(this,"onchange",null);E(this,za);E(this,Dl,null);E(this,Ku);E(this,ju,null);w(this,za,t.window),w(this,Ku,t.media),w(this,ju,t.rootFontSize||null)}get media(){return w(this,Dl,u(this,Dl)||qu.parse({window:u(this,za),mediaQuery:u(this,Ku),rootFontSize:u(this,ju)})),u(this,Dl).map(t=>t.toString()).join(", ")}get matches(){w(this,Dl,u(this,Dl)||qu.parse({window:u(this,za),mediaQuery:u(this,Ku),rootFontSize:u(this,ju)}));for(let t of u(this,Dl))if(!t.matches())return!1;return!0}addListener(t){this.addEventListener("change",t)}removeListener(t){this.removeEventListener("change",t)}addEventListener(t,r){if(super.addEventListener(t,r),t==="change"){let o=!1,i=()=>{let n=this.matches;n!==o&&(o=n,this.dispatchEvent(new Xa("change",{matches:n,media:this.media})))};r[jf]=i,u(this,za).addEventListener("resize",i)}}removeEventListener(t,r){super.removeEventListener(t,r),t==="change"&&r[jf]&&u(this,za).removeEventListener("resize",r[jf])}};za=new WeakMap,Dl=new WeakMap,Ku=new WeakMap,ju=new WeakMap;var gE,fE,es=class extends(fE=Re,gE=sr,fE){constructor(){super(...arguments);s(this,gE,[])}get cssRules(){return this[sr]}insertRule(t,r){if(arguments.length===0)throw new this[m].TypeError(`Failed to execute 'insertRule' on '${this.constructor.name}': 1 argument required, but only 0 present.`);let o=this[Sy].parseFromString(t);if(o.length===0||o.length>1)throw new this[m].DOMException(`Failed to execute 'insertRule' on '${this.constructor.name}': Failed to parse the rule '${t}'.`,v.syntaxError);if(r!==void 0){if(r=Number(r),isNaN(r)||r>this.cssRules.length)throw new this[m].DOMException(`Failed to execute 'insertRule' on '${this.constructor.name}': The index provided (${r}) is larger than the maximum index (${this.cssRules.length}).`,v.indexSizeError);return this.cssRules.splice(r,0,o[0]),r}let i=this.cssRules.length;return this.cssRules.unshift(o[0]),i}deleteRule(t){if(arguments.length===0)throw new this[m].TypeError(`Failed to execute 'deleteRule' on '${this.constructor.name}': 1 argument required, but only 0 present.`);if(t=Number(t),isNaN(t)||t<0||t>=this.cssRules.length)throw new this[m].DOMException(`Failed to execute 'deleteRule' on '${this.constructor.name}': the index (${t}) is greater than the length of the rule list.`,v.indexSizeError);this.cssRules.splice(t,1)}};var SE,PE,AE,wE,Bn=class extends(wE=es,AE=_,PE=j,SE=bo,wE){constructor(){super(...arguments);s(this,AE,"");s(this,PE,"");s(this,SE,"")}get type(){return ht.containerRule}get cssText(){let t="";for(let r of this[sr])t+=`
24
24
  `+r.cssText;return t+=`
25
- `,`@${this[bo]}scope${this[_]?` (${this[_]})`:""}${this[j]?` to (${this[j]})`:""} {${t}}`}get start(){return this[_]}get end(){return this[j]}};var D2=/[0-9.]+(px|rem|em|vw|vh|%|vmin|vmax|cm|mm|in|pt|pc|Q)/g,EE=/:host\s*\(([^)]+)\)|:host-context\s*\(([^)]+)\)/,O2=/var\( *(--[^), ]+)\)/,V2=/var\( *(--[^), ]+), *([^), ]+)\)/,fb=class{constructor(e){s(this,"element");this.element=e}getComputedStyle(){let e=[],t=[],r={element:this.element,cssTexts:[]},o=[],i=[];if(!this.element[it])return new Ls;let n=this.element[W].computedStyle;if(n?.result){let S=n.result.deref();if(S)return S}for(;r.element;)if(r.element[U]===L.elementNode&&(r.element.getRootNode()[U]===L.documentNode?e.unshift(r):o.unshift(r),r.element.shadowRoot&&i.push(r),t.unshift(r)),r.element===this.element[T]){let S=this.getStyleSheets(this.element[T]);for(let M of S)this.parseCSSRules({elements:e,cssRules:M.cssRules});for(let M of i){let N=this.getStyleSheets(M.element.shadowRoot);for(let K of N)this.parseCSSRules({elements:[],cssRules:K.cssRules,hostElement:M})}r={element:null,cssTexts:[]}}else if(r.element[U]===L.documentFragmentNode&&r.element.host){let S=r.element,M=this.getStyleSheets(S);r={element:S.host,cssTexts:[]};for(let N of M)this.parseCSSRules({elements:o,cssRules:N.cssRules,hostElement:r});for(let N of i){let K=this.getStyleSheets(N.element.shadowRoot);for(let mt of K)this.parseCSSRules({elements:[],cssRules:mt.cssRules,hostElement:N})}i=[],o=[]}else r={element:r.element[Y],cssTexts:[]};let a=t[t.length-1],y=new Ls,p={},d=16,b=16;for(let S of t){S.cssTexts.sort((qt,at)=>qt.priorityWeight-at.priorityWeight);let M=sE[S.element[Z]],N="";if(M)if(typeof M=="string")N+=M;else for(let qt of Object.keys(M))(qt==="default"||S.element[qt])&&(N+=M[qt]);for(let qt of S.cssTexts)N+=qt.cssText;let K=S.element.getAttribute("style");K&&(N+=K);let mt=Ty.parse(N),Nt=mt.rules;Object.assign(p,mt.properties);for(let{name:qt,value:at,important:xt}of Nt)if(nE[qt]||S===a){let It=this.parseCSSVariablesInValue(at.trim(),p);if(It&&(!y.get(qt)?.important||xt)&&(y.set(qt,It,xt),qt==="font"||qt==="font-size")){let At=y.properties["font-size"];if(At!==null){let Xe=this.parseMeasurementsInValue({value:At.value,rootFontSize:d,parentFontSize:b,parentSize:b});S.element[Z]==="HTML"?d=Xe:S!==a&&(b=Xe)}}}}for(let S of lE){let M=y.properties[S];M&&(M.value=this.parseMeasurementsInValue({value:M.value,rootFontSize:d,parentFontSize:b,parentSize:S==="font-size"?b:null}))}let f={result:new WeakRef(y)};return this.element[W].computedStyle=f,this.element[T][$i].push(f),y}getStyleSheets(e){if(!e)return[];let t=e.querySelectorAll('style,link[rel="stylesheet"]'),r=[];for(let o of t){let i=o.sheet;i&&r.push(i)}return e.adoptedStyleSheets&&(r=r.concat(e.adoptedStyleSheets)),r}parseCSSRules(e){if(!e.hostElement&&!e.elements.length)return;let t=this.element[m];for(let r of e.cssRules)if(r.type===ht.styleRule){let o=r.selectorText;if(o)if(o[0]===":"&&o.startsWith(":host")){if(e.hostElement){let i=!0;if(o!==":host"){let n=o.match(EE);if(n)if(yt.matches(e.hostElement.element,n[1]||n[2],{ignoreErrors:!0,scope:e.scopeElement?.element})){let y=o?.replace(EE,"").trim();if(y&&y[0]!==":"){i=!1;for(let p of e.elements){let d=yt.matches(p.element,y,{ignoreErrors:!0,scope:e.scopeElement?.element});d&&p.cssTexts.push({cssText:r[Xr],priorityWeight:10+d.priorityWeight})}}}else i=!1}i&&e.hostElement.cssTexts.push({cssText:r[Xr],priorityWeight:10})}}else for(let i of e.elements){let n=yt.matches(i.element,o,{ignoreErrors:!0,scope:e.scopeElement?.element});n&&i.cssTexts.push({cssText:r[Xr],priorityWeight:n.priorityWeight})}}else if(r.type===ht.mediaRule&&new Ny({window:t,media:r.conditionText,rootFontSize:this.element[Z]==="HTML"?16:null}).matches)this.parseCSSRules({elements:e.elements,cssRules:r.cssRules,hostElement:e.hostElement,scopeElement:e.scopeElement});else if(r.type===ht.supportsRule)t.CSS.supports(r.conditionText)&&this.parseCSSRules({elements:e.elements,cssRules:r.cssRules,hostElement:e.hostElement,scopeElement:e.scopeElement});else if(r.type===ht.containerRule&&r instanceof Bn){let o=[],i=null;for(let n of e.elements)if(i){if(r[j]&&yt.matches(n.element,r[j],{ignoreErrors:!0,scope:i.element}))break;o.push(n)}else yt.matches(n.element,r[_]||":root",{ignoreErrors:!0})&&(i=n,o.push(n));o.length&&this.parseCSSRules({elements:o,cssRules:r.cssRules,hostElement:e.hostElement,scopeElement:i})}}parseCSSVariablesInValue(e,t){let r=e,o;for(;(o=r.match(O2))!=null;)r=r.replace(o[0],t[o[1]]||"");for(;(o=r.match(V2))!==null;)r=r.replace(o[0],t[o[1]]||o[2]);return r}parseMeasurementsInValue(e){if(new rt(this.element[m]).getSettings()?.disableComputedStyleRendering)return e.value;let t=new RegExp(D2),r=e.value,o;for(;(o=t.exec(e.value))!==null;)if(o[1]!=="px"){let i=$a.toPixels({window:this.element[m],value:o[0],rootFontSize:e.rootFontSize,parentFontSize:e.parentFontSize,parentSize:e.parentSize});i!==null&&(r=r.replace(o[0],i+"px"))}return r}};var xE,Si,Ol,Pi,Dn,Ja;xE=m;var go=class{constructor(e,t,r){E(this,Dn);s(this,"parentRule",null);s(this,xE);E(this,Si);E(this,Ol);E(this,Pi,{attributeValue:null,propertyManager:null});if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,w(this,Si,r?.element||null),w(this,Ol,r?.element?!!r?.computed:!1)}get 0(){return this.item(0)||void 0}get 1(){return this.item(1)||void 0}get 2(){return this.item(2)||void 0}get 3(){return this.item(3)||void 0}get 4(){return this.item(4)||void 0}get 5(){return this.item(5)||void 0}get 6(){return this.item(6)||void 0}get 7(){return this.item(7)||void 0}get 8(){return this.item(8)||void 0}get 9(){return this.item(9)||void 0}get 10(){return this.item(10)||void 0}get 11(){return this.item(11)||void 0}get 12(){return this.item(12)||void 0}get 13(){return this.item(13)||void 0}get 14(){return this.item(14)||void 0}get 15(){return this.item(15)||void 0}get 16(){return this.item(16)||void 0}get 17(){return this.item(17)||void 0}get 18(){return this.item(18)||void 0}get 19(){return this.item(19)||void 0}get 20(){return this.item(20)||void 0}get 21(){return this.item(21)||void 0}get 22(){return this.item(22)||void 0}get 23(){return this.item(23)||void 0}get 24(){return this.item(24)||void 0}get 25(){return this.item(25)||void 0}get 26(){return this.item(26)||void 0}get 27(){return this.item(27)||void 0}get 28(){return this.item(28)||void 0}get 29(){return this.item(29)||void 0}get 30(){return this.item(30)||void 0}get 31(){return this.item(31)||void 0}get 32(){return this.item(32)||void 0}get 33(){return this.item(33)||void 0}get 34(){return this.item(34)||void 0}get 35(){return this.item(35)||void 0}get 36(){return this.item(36)||void 0}get 37(){return this.item(37)||void 0}get 38(){return this.item(38)||void 0}get 39(){return this.item(39)||void 0}get 40(){return this.item(40)||void 0}get 41(){return this.item(41)||void 0}get 42(){return this.item(42)||void 0}get 43(){return this.item(43)||void 0}get 44(){return this.item(44)||void 0}get 45(){return this.item(45)||void 0}get 46(){return this.item(46)||void 0}get 47(){return this.item(47)||void 0}get 48(){return this.item(48)||void 0}get 49(){return this.item(49)||void 0}get 50(){return this.item(50)||void 0}get 51(){return this.item(51)||void 0}get 52(){return this.item(52)||void 0}get 53(){return this.item(53)||void 0}get 54(){return this.item(54)||void 0}get 55(){return this.item(55)||void 0}get 56(){return this.item(56)||void 0}get 57(){return this.item(57)||void 0}get 58(){return this.item(58)||void 0}get 59(){return this.item(59)||void 0}get 60(){return this.item(60)||void 0}get 61(){return this.item(61)||void 0}get 62(){return this.item(62)||void 0}get 63(){return this.item(63)||void 0}get 64(){return this.item(64)||void 0}get 65(){return this.item(65)||void 0}get 66(){return this.item(66)||void 0}get 67(){return this.item(67)||void 0}get 68(){return this.item(68)||void 0}get 69(){return this.item(69)||void 0}get 70(){return this.item(70)||void 0}get 71(){return this.item(71)||void 0}get 72(){return this.item(72)||void 0}get 73(){return this.item(73)||void 0}get 74(){return this.item(74)||void 0}get 75(){return this.item(75)||void 0}get 76(){return this.item(76)||void 0}get 77(){return this.item(77)||void 0}get 78(){return this.item(78)||void 0}get 79(){return this.item(79)||void 0}get 80(){return this.item(80)||void 0}get 81(){return this.item(81)||void 0}get 82(){return this.item(82)||void 0}get 83(){return this.item(83)||void 0}get 84(){return this.item(84)||void 0}get 85(){return this.item(85)||void 0}get 86(){return this.item(86)||void 0}get 87(){return this.item(87)||void 0}get 88(){return this.item(88)||void 0}get 89(){return this.item(89)||void 0}get 90(){return this.item(90)||void 0}get 91(){return this.item(91)||void 0}get 92(){return this.item(92)||void 0}get 93(){return this.item(93)||void 0}get 94(){return this.item(94)||void 0}get 95(){return this.item(95)||void 0}get 96(){return this.item(96)||void 0}get 97(){return this.item(97)||void 0}get 98(){return this.item(98)||void 0}get 99(){return this.item(99)||void 0}get 100(){return this.item(100)||void 0}get 101(){return this.item(101)||void 0}get 102(){return this.item(102)||void 0}get 103(){return this.item(103)||void 0}get 104(){return this.item(104)||void 0}get 105(){return this.item(105)||void 0}get 106(){return this.item(106)||void 0}get 107(){return this.item(107)||void 0}get 108(){return this.item(108)||void 0}get 109(){return this.item(109)||void 0}get 110(){return this.item(110)||void 0}get 111(){return this.item(111)||void 0}get 112(){return this.item(112)||void 0}get 113(){return this.item(113)||void 0}get 114(){return this.item(114)||void 0}get 115(){return this.item(115)||void 0}get 116(){return this.item(116)||void 0}get 117(){return this.item(117)||void 0}get 118(){return this.item(118)||void 0}get 119(){return this.item(119)||void 0}get 120(){return this.item(120)||void 0}get 121(){return this.item(121)||void 0}get 122(){return this.item(122)||void 0}get 123(){return this.item(123)||void 0}get 124(){return this.item(124)||void 0}get 125(){return this.item(125)||void 0}get 126(){return this.item(126)||void 0}get 127(){return this.item(127)||void 0}get 128(){return this.item(128)||void 0}get 129(){return this.item(129)||void 0}get 130(){return this.item(130)||void 0}get 131(){return this.item(131)||void 0}get 132(){return this.item(132)||void 0}get 133(){return this.item(133)||void 0}get 134(){return this.item(134)||void 0}get 135(){return this.item(135)||void 0}get 136(){return this.item(136)||void 0}get 137(){return this.item(137)||void 0}get 138(){return this.item(138)||void 0}get 139(){return this.item(139)||void 0}get 140(){return this.item(140)||void 0}get 141(){return this.item(141)||void 0}get 142(){return this.item(142)||void 0}get 143(){return this.item(143)||void 0}get 144(){return this.item(144)||void 0}get 145(){return this.item(145)||void 0}get 146(){return this.item(146)||void 0}get 147(){return this.item(147)||void 0}get 148(){return this.item(148)||void 0}get 149(){return this.item(149)||void 0}get 150(){return this.item(150)||void 0}get 151(){return this.item(151)||void 0}get 152(){return this.item(152)||void 0}get 153(){return this.item(153)||void 0}get 154(){return this.item(154)||void 0}get 155(){return this.item(155)||void 0}get 156(){return this.item(156)||void 0}get 157(){return this.item(157)||void 0}get 158(){return this.item(158)||void 0}get 159(){return this.item(159)||void 0}get 160(){return this.item(160)||void 0}get 161(){return this.item(161)||void 0}get 162(){return this.item(162)||void 0}get 163(){return this.item(163)||void 0}get 164(){return this.item(164)||void 0}get 165(){return this.item(165)||void 0}get 166(){return this.item(166)||void 0}get 167(){return this.item(167)||void 0}get 168(){return this.item(168)||void 0}get 169(){return this.item(169)||void 0}get 170(){return this.item(170)||void 0}get 171(){return this.item(171)||void 0}get 172(){return this.item(172)||void 0}get 173(){return this.item(173)||void 0}get 174(){return this.item(174)||void 0}get 175(){return this.item(175)||void 0}get 176(){return this.item(176)||void 0}get 177(){return this.item(177)||void 0}get 178(){return this.item(178)||void 0}get 179(){return this.item(179)||void 0}get 180(){return this.item(180)||void 0}get 181(){return this.item(181)||void 0}get 182(){return this.item(182)||void 0}get 183(){return this.item(183)||void 0}get 184(){return this.item(184)||void 0}get 185(){return this.item(185)||void 0}get 186(){return this.item(186)||void 0}get 187(){return this.item(187)||void 0}get 188(){return this.item(188)||void 0}get 189(){return this.item(189)||void 0}get 190(){return this.item(190)||void 0}get 191(){return this.item(191)||void 0}get 192(){return this.item(192)||void 0}get 193(){return this.item(193)||void 0}get 194(){return this.item(194)||void 0}get 195(){return this.item(195)||void 0}get 196(){return this.item(196)||void 0}get 197(){return this.item(197)||void 0}get 198(){return this.item(198)||void 0}get 199(){return this.item(199)||void 0}get 200(){return this.item(200)||void 0}get 201(){return this.item(201)||void 0}get 202(){return this.item(202)||void 0}get 203(){return this.item(203)||void 0}get 204(){return this.item(204)||void 0}get 205(){return this.item(205)||void 0}get 206(){return this.item(206)||void 0}get 207(){return this.item(207)||void 0}get 208(){return this.item(208)||void 0}get 209(){return this.item(209)||void 0}get 210(){return this.item(210)||void 0}get 211(){return this.item(211)||void 0}get 212(){return this.item(212)||void 0}get 213(){return this.item(213)||void 0}get 214(){return this.item(214)||void 0}get 215(){return this.item(215)||void 0}get 216(){return this.item(216)||void 0}get 217(){return this.item(217)||void 0}get 218(){return this.item(218)||void 0}get 219(){return this.item(219)||void 0}get 220(){return this.item(220)||void 0}get 221(){return this.item(221)||void 0}get 222(){return this.item(222)||void 0}get 223(){return this.item(223)||void 0}get 224(){return this.item(224)||void 0}get 225(){return this.item(225)||void 0}get 226(){return this.item(226)||void 0}get 227(){return this.item(227)||void 0}get 228(){return this.item(228)||void 0}get 229(){return this.item(229)||void 0}get 230(){return this.item(230)||void 0}get 231(){return this.item(231)||void 0}get 232(){return this.item(232)||void 0}get 233(){return this.item(233)||void 0}get 234(){return this.item(234)||void 0}get 235(){return this.item(235)||void 0}get 236(){return this.item(236)||void 0}get 237(){return this.item(237)||void 0}get 238(){return this.item(238)||void 0}get 239(){return this.item(239)||void 0}get 240(){return this.item(240)||void 0}get 241(){return this.item(241)||void 0}get 242(){return this.item(242)||void 0}get 243(){return this.item(243)||void 0}get 244(){return this.item(244)||void 0}get 245(){return this.item(245)||void 0}get 246(){return this.item(246)||void 0}get 247(){return this.item(247)||void 0}get 248(){return this.item(248)||void 0}get 249(){return this.item(249)||void 0}get 250(){return this.item(250)||void 0}get 251(){return this.item(251)||void 0}get 252(){return this.item(252)||void 0}get 253(){return this.item(253)||void 0}get 254(){return this.item(254)||void 0}get 255(){return this.item(255)||void 0}get 256(){return this.item(256)||void 0}get 257(){return this.item(257)||void 0}get 258(){return this.item(258)||void 0}get 259(){return this.item(259)||void 0}get 260(){return this.item(260)||void 0}get 261(){return this.item(261)||void 0}get 262(){return this.item(262)||void 0}get 263(){return this.item(263)||void 0}get 264(){return this.item(264)||void 0}get 265(){return this.item(265)||void 0}get 266(){return this.item(266)||void 0}get 267(){return this.item(267)||void 0}get 268(){return this.item(268)||void 0}get 269(){return this.item(269)||void 0}get 270(){return this.item(270)||void 0}get 271(){return this.item(271)||void 0}get 272(){return this.item(272)||void 0}get 273(){return this.item(273)||void 0}get 274(){return this.item(274)||void 0}get 275(){return this.item(275)||void 0}get 276(){return this.item(276)||void 0}get 277(){return this.item(277)||void 0}get 278(){return this.item(278)||void 0}get 279(){return this.item(279)||void 0}get 280(){return this.item(280)||void 0}get 281(){return this.item(281)||void 0}get 282(){return this.item(282)||void 0}get 283(){return this.item(283)||void 0}get 284(){return this.item(284)||void 0}get 285(){return this.item(285)||void 0}get 286(){return this.item(286)||void 0}get 287(){return this.item(287)||void 0}get 288(){return this.item(288)||void 0}get 289(){return this.item(289)||void 0}get 290(){return this.item(290)||void 0}get 291(){return this.item(291)||void 0}get 292(){return this.item(292)||void 0}get 293(){return this.item(293)||void 0}get 294(){return this.item(294)||void 0}get 295(){return this.item(295)||void 0}get 296(){return this.item(296)||void 0}get 297(){return this.item(297)||void 0}get 298(){return this.item(298)||void 0}get 299(){return this.item(299)||void 0}get 300(){return this.item(300)||void 0}get 301(){return this.item(301)||void 0}get 302(){return this.item(302)||void 0}get 303(){return this.item(303)||void 0}get 304(){return this.item(304)||void 0}get 305(){return this.item(305)||void 0}get 306(){return this.item(306)||void 0}get 307(){return this.item(307)||void 0}get 308(){return this.item(308)||void 0}get 309(){return this.item(309)||void 0}get 310(){return this.item(310)||void 0}get 311(){return this.item(311)||void 0}get 312(){return this.item(312)||void 0}get 313(){return this.item(313)||void 0}get 314(){return this.item(314)||void 0}get 315(){return this.item(315)||void 0}get 316(){return this.item(316)||void 0}get 317(){return this.item(317)||void 0}get 318(){return this.item(318)||void 0}get 319(){return this.item(319)||void 0}get 320(){return this.item(320)||void 0}get 321(){return this.item(321)||void 0}get 322(){return this.item(322)||void 0}get 323(){return this.item(323)||void 0}get 324(){return this.item(324)||void 0}get 325(){return this.item(325)||void 0}get 326(){return this.item(326)||void 0}get 327(){return this.item(327)||void 0}get 328(){return this.item(328)||void 0}get 329(){return this.item(329)||void 0}get 330(){return this.item(330)||void 0}get 331(){return this.item(331)||void 0}get 332(){return this.item(332)||void 0}get 333(){return this.item(333)||void 0}get 334(){return this.item(334)||void 0}get 335(){return this.item(335)||void 0}get 336(){return this.item(336)||void 0}get 337(){return this.item(337)||void 0}get 338(){return this.item(338)||void 0}get 339(){return this.item(339)||void 0}get 340(){return this.item(340)||void 0}get 341(){return this.item(341)||void 0}get 342(){return this.item(342)||void 0}get 343(){return this.item(343)||void 0}get 344(){return this.item(344)||void 0}get 345(){return this.item(345)||void 0}get 346(){return this.item(346)||void 0}get 347(){return this.item(347)||void 0}get 348(){return this.item(348)||void 0}get 349(){return this.item(349)||void 0}get 350(){return this.item(350)||void 0}get 351(){return this.item(351)||void 0}get 352(){return this.item(352)||void 0}get 353(){return this.item(353)||void 0}get 354(){return this.item(354)||void 0}get 355(){return this.item(355)||void 0}get 356(){return this.item(356)||void 0}get 357(){return this.item(357)||void 0}get 358(){return this.item(358)||void 0}get 359(){return this.item(359)||void 0}get 360(){return this.item(360)||void 0}get 361(){return this.item(361)||void 0}get 362(){return this.item(362)||void 0}get 363(){return this.item(363)||void 0}get 364(){return this.item(364)||void 0}get 365(){return this.item(365)||void 0}get 366(){return this.item(366)||void 0}get 367(){return this.item(367)||void 0}get 368(){return this.item(368)||void 0}get 369(){return this.item(369)||void 0}get 370(){return this.item(370)||void 0}get 371(){return this.item(371)||void 0}get 372(){return this.item(372)||void 0}get 373(){return this.item(373)||void 0}get 374(){return this.item(374)||void 0}get 375(){return this.item(375)||void 0}get 376(){return this.item(376)||void 0}get 377(){return this.item(377)||void 0}get 378(){return this.item(378)||void 0}get 379(){return this.item(379)||void 0}get 380(){return this.item(380)||void 0}get 381(){return this.item(381)||void 0}get 382(){return this.item(382)||void 0}get 383(){return this.item(383)||void 0}get 384(){return this.item(384)||void 0}get 385(){return this.item(385)||void 0}get 386(){return this.item(386)||void 0}get 387(){return this.item(387)||void 0}get 388(){return this.item(388)||void 0}get 389(){return this.item(389)||void 0}get 390(){return this.item(390)||void 0}get 391(){return this.item(391)||void 0}get 392(){return this.item(392)||void 0}get 393(){return this.item(393)||void 0}get accentColor(){return this.getPropertyValue("accent-color")}set accentColor(e){this.setProperty("accent-color",e)}get appRegion(){return this.getPropertyValue("app-region")}set appRegion(e){this.setProperty("app-region",e)}get alignContent(){return this.getPropertyValue("align-content")}set alignContent(e){this.setProperty("align-content",e)}get alignItems(){return this.getPropertyValue("align-items")}set alignItems(e){this.setProperty("align-items",e)}get alignSelf(){return this.getPropertyValue("align-self")}set alignSelf(e){this.setProperty("align-self",e)}get alignmentBaseline(){return this.getPropertyValue("alignment-baseline")}set alignmentBaseline(e){this.setProperty("alignment-baseline",e)}get all(){return this.getPropertyValue("all")}set all(e){this.setProperty("all",e)}get animation(){return this.getPropertyValue("animation")}set animation(e){this.setProperty("animation",e)}get animationDelay(){return this.getPropertyValue("animation-delay")}set animationDelay(e){this.setProperty("animation-delay",e)}get animationDirection(){return this.getPropertyValue("animation-direction")}set animationDirection(e){this.setProperty("animation-direction",e)}get animationDuration(){return this.getPropertyValue("animation-duration")}set animationDuration(e){this.setProperty("animation-duration",e)}get animationFillMode(){return this.getPropertyValue("animation-fill-mode")}set animationFillMode(e){this.setProperty("animation-fill-mode",e)}get animationIterationCount(){return this.getPropertyValue("animation-iteration-count")}set animationIterationCount(e){this.setProperty("animation-iteration-count",e)}get animationName(){return this.getPropertyValue("animation-name")}set animationName(e){this.setProperty("animation-name",e)}get animationPlayState(){return this.getPropertyValue("animation-play-state")}set animationPlayState(e){this.setProperty("animation-play-state",e)}get animationTimingFunction(){return this.getPropertyValue("animation-timing-function")}set animationTimingFunction(e){this.setProperty("animation-timing-function",e)}get appearance(){return this.getPropertyValue("appearance")}set appearance(e){this.setProperty("appearance",e)}get backdropFilter(){return this.getPropertyValue("backdrop-filter")}set backdropFilter(e){this.setProperty("backdrop-filter",e)}get backfaceVisibility(){return this.getPropertyValue("backface-visibility")}set backfaceVisibility(e){this.setProperty("backface-visibility",e)}get background(){return this.getPropertyValue("background")}set background(e){this.setProperty("background",e)}get backgroundAttachment(){return this.getPropertyValue("background-attachment")}set backgroundAttachment(e){this.setProperty("background-attachment",e)}get backgroundBlendMode(){return this.getPropertyValue("background-blend-mode")}set backgroundBlendMode(e){this.setProperty("background-blend-mode",e)}get backgroundClip(){return this.getPropertyValue("background-clip")}set backgroundClip(e){this.setProperty("background-clip",e)}get backgroundColor(){return this.getPropertyValue("background-color")}set backgroundColor(e){this.setProperty("background-color",e)}get backgroundImage(){return this.getPropertyValue("background-image")}set backgroundImage(e){this.setProperty("background-image",e)}get backgroundOrigin(){return this.getPropertyValue("background-origin")}set backgroundOrigin(e){this.setProperty("background-origin",e)}get backgroundPosition(){return this.getPropertyValue("background-position")}set backgroundPosition(e){this.setProperty("background-position",e)}get backgroundPositionX(){return this.getPropertyValue("background-position-x")}set backgroundPositionX(e){this.setProperty("background-position-x",e)}get backgroundPositionY(){return this.getPropertyValue("background-position-y")}set backgroundPositionY(e){this.setProperty("background-position-y",e)}get backgroundRepeat(){return this.getPropertyValue("background-repeat")}set backgroundRepeat(e){this.setProperty("background-repeat",e)}get backgroundRepeatX(){return this.getPropertyValue("background-repeat-x")}set backgroundRepeatX(e){this.setProperty("background-repeat-x",e)}get backgroundRepeatY(){return this.getPropertyValue("background-repeat-y")}set backgroundRepeatY(e){this.setProperty("background-repeat-y",e)}get backgroundSize(){return this.getPropertyValue("background-size")}set backgroundSize(e){this.setProperty("background-size",e)}get baselineShift(){return this.getPropertyValue("baseline-shift")}set baselineShift(e){this.setProperty("baseline-shift",e)}get blockSize(){return this.getPropertyValue("block-size")}set blockSize(e){this.setProperty("block-size",e)}get border(){return this.getPropertyValue("border")}set border(e){this.setProperty("border",e)}get borderBlockEnd(){return this.getPropertyValue("border-block-end")}set borderBlockEnd(e){this.setProperty("border-block-end",e)}get borderBlockEndColor(){return this.getPropertyValue("border-block-end-color")}set borderBlockEndColor(e){this.setProperty("border-block-end-color",e)}get borderBlockEndStyle(){return this.getPropertyValue("border-block-end-style")}set borderBlockEndStyle(e){this.setProperty("border-block-end-style",e)}get borderBlockEndWidth(){return this.getPropertyValue("border-block-end-width")}set borderBlockEndWidth(e){this.setProperty("border-block-end-width",e)}get borderBlockStart(){return this.getPropertyValue("border-block-start")}set borderBlockStart(e){this.setProperty("border-block-start",e)}get borderBlockStartColor(){return this.getPropertyValue("border-block-start-color")}set borderBlockStartColor(e){this.setProperty("border-block-start-color",e)}get borderBlockStartStyle(){return this.getPropertyValue("border-block-start-style")}set borderBlockStartStyle(e){this.setProperty("border-block-start-style",e)}get borderBlockStartWidth(){return this.getPropertyValue("border-block-start-width")}set borderBlockStartWidth(e){this.setProperty("border-block-start-width",e)}get borderBottom(){return this.getPropertyValue("border-bottom")}set borderBottom(e){this.setProperty("border-bottom",e)}get borderBottomColor(){return this.getPropertyValue("border-bottom-color")}set borderBottomColor(e){this.setProperty("border-bottom-color",e)}get borderBottomLeftRadius(){return this.getPropertyValue("border-bottom-left-radius")}set borderBottomLeftRadius(e){this.setProperty("border-bottom-left-radius",e)}get borderBottomRightRadius(){return this.getPropertyValue("border-bottom-right-radius")}set borderBottomRightRadius(e){this.setProperty("border-bottom-right-radius",e)}get borderBottomStyle(){return this.getPropertyValue("border-bottom-style")}set borderBottomStyle(e){this.setProperty("border-bottom-style",e)}get borderBottomWidth(){return this.getPropertyValue("border-bottom-width")}set borderBottomWidth(e){this.setProperty("border-bottom-width",e)}get borderCollapse(){return this.getPropertyValue("border-collapse")}set borderCollapse(e){this.setProperty("border-collapse",e)}get borderColor(){return this.getPropertyValue("border-color")}set borderColor(e){this.setProperty("border-color",e)}get borderImage(){return this.getPropertyValue("border-image")}set borderImage(e){this.setProperty("border-image",e)}get borderImageOutset(){return this.getPropertyValue("border-image-outset")}set borderImageOutset(e){this.setProperty("border-image-outset",e)}get borderImageRepeat(){return this.getPropertyValue("border-image-repeat")}set borderImageRepeat(e){this.setProperty("border-image-repeat",e)}get borderImageSlice(){return this.getPropertyValue("border-image-slice")}set borderImageSlice(e){this.setProperty("border-image-slice",e)}get borderImageSource(){return this.getPropertyValue("border-image-source")}set borderImageSource(e){this.setProperty("border-image-source",e)}get borderImageWidth(){return this.getPropertyValue("border-image-width")}set borderImageWidth(e){this.setProperty("border-image-width",e)}get borderInlineEnd(){return this.getPropertyValue("border-inline-end")}set borderInlineEnd(e){this.setProperty("border-inline-end",e)}get borderInlineEndColor(){return this.getPropertyValue("border-inline-end-color")}set borderInlineEndColor(e){this.setProperty("border-inline-end-color",e)}get borderInlineEndStyle(){return this.getPropertyValue("border-inline-end-style")}set borderInlineEndStyle(e){this.setProperty("border-inline-end-style",e)}get borderInlineEndWidth(){return this.getPropertyValue("border-inline-end-width")}set borderInlineEndWidth(e){this.setProperty("border-inline-end-width",e)}get borderInlineStart(){return this.getPropertyValue("border-inline-start")}set borderInlineStart(e){this.setProperty("border-inline-start",e)}get borderInlineStartColor(){return this.getPropertyValue("border-inline-start-color")}set borderInlineStartColor(e){this.setProperty("border-inline-start-color",e)}get borderInlineStartStyle(){return this.getPropertyValue("border-inline-start-style")}set borderInlineStartStyle(e){this.setProperty("border-inline-start-style",e)}get borderInlineStartWidth(){return this.getPropertyValue("border-inline-start-width")}set borderInlineStartWidth(e){this.setProperty("border-inline-start-width",e)}get borderLeft(){return this.getPropertyValue("border-left")}set borderLeft(e){this.setProperty("border-left",e)}get borderLeftColor(){return this.getPropertyValue("border-left-color")}set borderLeftColor(e){this.setProperty("border-left-color",e)}get borderLeftStyle(){return this.getPropertyValue("border-left-style")}set borderLeftStyle(e){this.setProperty("border-left-style",e)}get borderLeftWidth(){return this.getPropertyValue("border-left-width")}set borderLeftWidth(e){this.setProperty("border-left-width",e)}get borderRadius(){return this.getPropertyValue("border-radius")}set borderRadius(e){this.setProperty("border-radius",e)}get borderRight(){return this.getPropertyValue("border-right")}set borderRight(e){this.setProperty("border-right",e)}get borderRightColor(){return this.getPropertyValue("border-right-color")}set borderRightColor(e){this.setProperty("border-right-color",e)}get borderRightStyle(){return this.getPropertyValue("border-right-style")}set borderRightStyle(e){this.setProperty("border-right-style",e)}get borderRightWidth(){return this.getPropertyValue("border-right-width")}set borderRightWidth(e){this.setProperty("border-right-width",e)}get borderSpacing(){return this.getPropertyValue("border-spacing")}set borderSpacing(e){this.setProperty("border-spacing",e)}get borderStyle(){return this.getPropertyValue("border-style")}set borderStyle(e){this.setProperty("border-style",e)}get borderTop(){return this.getPropertyValue("border-top")}set borderTop(e){this.setProperty("border-top",e)}get borderTopColor(){return this.getPropertyValue("border-top-color")}set borderTopColor(e){this.setProperty("border-top-color",e)}get borderTopLeftRadius(){return this.getPropertyValue("border-top-left-radius")}set borderTopLeftRadius(e){this.setProperty("border-top-left-radius",e)}get borderTopRightRadius(){return this.getPropertyValue("border-top-right-radius")}set borderTopRightRadius(e){this.setProperty("border-top-right-radius",e)}get borderTopStyle(){return this.getPropertyValue("border-top-style")}set borderTopStyle(e){this.setProperty("border-top-style",e)}get borderTopWidth(){return this.getPropertyValue("border-top-width")}set borderTopWidth(e){this.setProperty("border-top-width",e)}get borderWidth(){return this.getPropertyValue("border-width")}set borderWidth(e){this.setProperty("border-width",e)}get borderEndEndRadius(){return this.getPropertyValue("border-end-end-radius")}set borderEndEndRadius(e){this.setProperty("border-end-end-radius",e)}get borderEndStartRadius(){return this.getPropertyValue("border-end-start-radius")}set borderEndStartRadius(e){this.setProperty("border-end-start-radius",e)}get borderStartEndRadius(){return this.getPropertyValue("border-start-end-radius")}set borderStartEndRadius(e){this.setProperty("border-start-end-radius",e)}get borderStartStartRadius(){return this.getPropertyValue("border-start-start-radius")}set borderStartStartRadius(e){this.setProperty("border-start-start-radius",e)}get bottom(){return this.getPropertyValue("bottom")}set bottom(e){this.setProperty("bottom",e)}get boxShadow(){return this.getPropertyValue("box-shadow")}set boxShadow(e){this.setProperty("box-shadow",e)}get boxSizing(){return this.getPropertyValue("box-sizing")}set boxSizing(e){this.setProperty("box-sizing",e)}get breakAfter(){return this.getPropertyValue("break-after")}set breakAfter(e){this.setProperty("break-after",e)}get breakBefore(){return this.getPropertyValue("break-before")}set breakBefore(e){this.setProperty("break-before",e)}get breakInside(){return this.getPropertyValue("break-inside")}set breakInside(e){this.setProperty("break-inside",e)}get bufferedRendering(){return this.getPropertyValue("buffered-rendering")}set bufferedRendering(e){this.setProperty("buffered-rendering",e)}get captionSide(){return this.getPropertyValue("caption-side")}set captionSide(e){this.setProperty("caption-side",e)}get caretColor(){return this.getPropertyValue("caret-color")}set caretColor(e){this.setProperty("caret-color",e)}get clear(){return this.getPropertyValue("clear")}set clear(e){this.setProperty("clear",e)}get clip(){return this.getPropertyValue("clip")}set clip(e){this.setProperty("clip",e)}get clipPath(){return this.getPropertyValue("clip-path")}set clipPath(e){this.setProperty("clip-path",e)}get clipRule(){return this.getPropertyValue("clip-rule")}set clipRule(e){this.setProperty("clip-rule",e)}get color(){return this.getPropertyValue("color")}set color(e){this.setProperty("color",e)}get colorInterpolation(){return this.getPropertyValue("color-interpolation")}set colorInterpolation(e){this.setProperty("color-interpolation",e)}get colorInterpolationFilters(){return this.getPropertyValue("color-interpolation-filters")}set colorInterpolationFilters(e){this.setProperty("color-interpolation-filters",e)}get colorRendering(){return this.getPropertyValue("color-rendering")}set colorRendering(e){this.setProperty("color-rendering",e)}get colorScheme(){return this.getPropertyValue("color-scheme")}set colorScheme(e){this.setProperty("color-scheme",e)}get columnCount(){return this.getPropertyValue("column-count")}set columnCount(e){this.setProperty("column-count",e)}get columnFill(){return this.getPropertyValue("column-fill")}set columnFill(e){this.setProperty("column-fill",e)}get columnGap(){return this.getPropertyValue("column-gap")}set columnGap(e){this.setProperty("column-gap",e)}get columnRule(){return this.getPropertyValue("column-rule")}set columnRule(e){this.setProperty("column-rule",e)}get columnRuleColor(){return this.getPropertyValue("column-rule-color")}set columnRuleColor(e){this.setProperty("column-rule-color",e)}get columnRuleStyle(){return this.getPropertyValue("column-rule-style")}set columnRuleStyle(e){this.setProperty("column-rule-style",e)}get columnRuleWidth(){return this.getPropertyValue("column-rule-width")}set columnRuleWidth(e){this.setProperty("column-rule-width",e)}get columnSpan(){return this.getPropertyValue("column-span")}set columnSpan(e){this.setProperty("column-span",e)}get columnWidth(){return this.getPropertyValue("column-width")}set columnWidth(e){this.setProperty("column-width",e)}get columns(){return this.getPropertyValue("columns")}set columns(e){this.setProperty("columns",e)}get contain(){return this.getPropertyValue("contain")}set contain(e){this.setProperty("contain",e)}get containIntrinsicSize(){return this.getPropertyValue("contain-intrinsic-size")}set containIntrinsicSize(e){this.setProperty("contain-intrinsic-size",e)}get content(){return this.getPropertyValue("content")}set content(e){this.setProperty("content",e)}get contentVisibility(){return this.getPropertyValue("content-visibility")}set contentVisibility(e){this.setProperty("content-visibility",e)}get counterIncrement(){return this.getPropertyValue("counter-increment")}set counterIncrement(e){this.setProperty("counter-increment",e)}get counterReset(){return this.getPropertyValue("counter-reset")}set counterReset(e){this.setProperty("counter-reset",e)}get counterSet(){return this.getPropertyValue("counter-set")}set counterSet(e){this.setProperty("counter-set",e)}get containIntrinsicBlockSize(){return this.getPropertyValue("contain-intrinsic-block-size")}set containIntrinsicBlockSize(e){this.setProperty("contain-intrinsic-block-size",e)}get containIntrinsicHeight(){return this.getPropertyValue("contain-intrinsic-height")}set containIntrinsicHeight(e){this.setProperty("contain-intrinsic-height",e)}get containIntrinsicInlineSize(){return this.getPropertyValue("contain-intrinsic-inline-size")}set containIntrinsicInlineSize(e){this.setProperty("contain-intrinsic-inline-size",e)}get containIntrinsicWidth(){return this.getPropertyValue("contain-intrinsic-width")}set containIntrinsicWidth(e){this.setProperty("contain-intrinsic-width",e)}get cssFloat(){return this.getPropertyValue("css-float")}set cssFloat(e){this.setProperty("css-float",e)}get cursor(){return this.getPropertyValue("cursor")}set cursor(e){this.setProperty("cursor",e)}get cx(){return this.getPropertyValue("cx")}set cx(e){this.setProperty("cx",e)}get cy(){return this.getPropertyValue("cy")}set cy(e){this.setProperty("cy",e)}get d(){return this.getPropertyValue("d")}set d(e){this.setProperty("d",e)}get direction(){return this.getPropertyValue("direction")}set direction(e){this.setProperty("direction",e)}get display(){return this.getPropertyValue("display")}set display(e){this.setProperty("display",e)}get dominantBaseline(){return this.getPropertyValue("dominant-baseline")}set dominantBaseline(e){this.setProperty("dominant-baseline",e)}get emptyCells(){return this.getPropertyValue("empty-cells")}set emptyCells(e){this.setProperty("empty-cells",e)}get fill(){return this.getPropertyValue("fill")}set fill(e){this.setProperty("fill",e)}get fillOpacity(){return this.getPropertyValue("fill-opacity")}set fillOpacity(e){this.setProperty("fill-opacity",e)}get fillRule(){return this.getPropertyValue("fill-rule")}set fillRule(e){this.setProperty("fill-rule",e)}get filter(){return this.getPropertyValue("filter")}set filter(e){this.setProperty("filter",e)}get flex(){return this.getPropertyValue("flex")}set flex(e){this.setProperty("flex",e)}get flexBasis(){return this.getPropertyValue("flex-basis")}set flexBasis(e){this.setProperty("flex-basis",e)}get flexDirection(){return this.getPropertyValue("flex-direction")}set flexDirection(e){this.setProperty("flex-direction",e)}get flexFlow(){return this.getPropertyValue("flex-flow")}set flexFlow(e){this.setProperty("flex-flow",e)}get flexGrow(){return this.getPropertyValue("flex-grow")}set flexGrow(e){this.setProperty("flex-grow",e)}get flexShrink(){return this.getPropertyValue("flex-shrink")}set flexShrink(e){this.setProperty("flex-shrink",e)}get flexWrap(){return this.getPropertyValue("flex-wrap")}set flexWrap(e){this.setProperty("flex-wrap",e)}get float(){return this.getPropertyValue("float")}set float(e){this.setProperty("float",e)}get floodColor(){return this.getPropertyValue("flood-color")}set floodColor(e){this.setProperty("flood-color",e)}get floodOpacity(){return this.getPropertyValue("flood-opacity")}set floodOpacity(e){this.setProperty("flood-opacity",e)}get font(){return this.getPropertyValue("font")}set font(e){this.setProperty("font",e)}get fontDisplay(){return this.getPropertyValue("font-display")}set fontDisplay(e){this.setProperty("font-display",e)}get fontFamily(){return this.getPropertyValue("font-family")}set fontFamily(e){this.setProperty("font-family",e)}get fontFeatureSettings(){return this.getPropertyValue("font-feature-settings")}set fontFeatureSettings(e){this.setProperty("font-feature-settings",e)}get fontKerning(){return this.getPropertyValue("font-kerning")}set fontKerning(e){this.setProperty("font-kerning",e)}get fontOpticalSizing(){return this.getPropertyValue("font-optical-sizing")}set fontOpticalSizing(e){this.setProperty("font-optical-sizing",e)}get fontSize(){return this.getPropertyValue("font-size")}set fontSize(e){this.setProperty("font-size",e)}get fontStretch(){return this.getPropertyValue("font-stretch")}set fontStretch(e){this.setProperty("font-stretch",e)}get fontStyle(){return this.getPropertyValue("font-style")}set fontStyle(e){this.setProperty("font-style",e)}get fontVariant(){return this.getPropertyValue("font-variant")}set fontVariant(e){this.setProperty("font-variant",e)}get fontVariantCaps(){return this.getPropertyValue("font-variant-caps")}set fontVariantCaps(e){this.setProperty("font-variant-caps",e)}get fontVariantEastAsian(){return this.getPropertyValue("font-variant-east-asian")}set fontVariantEastAsian(e){this.setProperty("font-variant-east-asian",e)}get fontVariantLigatures(){return this.getPropertyValue("font-variant-ligatures")}set fontVariantLigatures(e){this.setProperty("font-variant-ligatures",e)}get fontVariantNumeric(){return this.getPropertyValue("font-variant-numeric")}set fontVariantNumeric(e){this.setProperty("font-variant-numeric",e)}get fontVariationSettings(){return this.getPropertyValue("font-variation-settings")}set fontVariationSettings(e){this.setProperty("font-variation-settings",e)}get fontPalette(){return this.getPropertyValue("font-palette")}set fontPalette(e){this.setProperty("font-palette",e)}get fontSynthesisSmallCaps(){return this.getPropertyValue("font-synthesis-small-caps")}set fontSynthesisSmallCaps(e){this.setProperty("font-synthesis-small-caps",e)}get fontSynthesisStyle(){return this.getPropertyValue("font-synthesis-style")}set fontSynthesisStyle(e){this.setProperty("font-synthesis-style",e)}get fontSynthesisWeight(){return this.getPropertyValue("font-synthesis-weight")}set fontSynthesisWeight(e){this.setProperty("font-synthesis-weight",e)}get fontWeight(){return this.getPropertyValue("font-weight")}set fontWeight(e){this.setProperty("font-weight",e)}get gap(){return this.getPropertyValue("gap")}set gap(e){this.setProperty("gap",e)}get grid(){return this.getPropertyValue("grid")}set grid(e){this.setProperty("grid",e)}get gridArea(){return this.getPropertyValue("grid-area")}set gridArea(e){this.setProperty("grid-area",e)}get gridAutoColumns(){return this.getPropertyValue("grid-auto-columns")}set gridAutoColumns(e){this.setProperty("grid-auto-columns",e)}get gridAutoFlow(){return this.getPropertyValue("grid-auto-flow")}set gridAutoFlow(e){this.setProperty("grid-auto-flow",e)}get gridAutoRows(){return this.getPropertyValue("grid-auto-rows")}set gridAutoRows(e){this.setProperty("grid-auto-rows",e)}get gridColumn(){return this.getPropertyValue("grid-column")}set gridColumn(e){this.setProperty("grid-column",e)}get gridColumnEnd(){return this.getPropertyValue("grid-column-end")}set gridColumnEnd(e){this.setProperty("grid-column-end",e)}get gridColumnGap(){return this.getPropertyValue("grid-column-gap")}set gridColumnGap(e){this.setProperty("grid-column-gap",e)}get gridColumnStart(){return this.getPropertyValue("grid-column-start")}set gridColumnStart(e){this.setProperty("grid-column-start",e)}get gridGap(){return this.getPropertyValue("grid-gap")}set gridGap(e){this.setProperty("grid-gap",e)}get gridRow(){return this.getPropertyValue("grid-row")}set gridRow(e){this.setProperty("grid-row",e)}get gridRowEnd(){return this.getPropertyValue("grid-row-end")}set gridRowEnd(e){this.setProperty("grid-row-end",e)}get gridRowGap(){return this.getPropertyValue("grid-row-gap")}set gridRowGap(e){this.setProperty("grid-row-gap",e)}get gridRowStart(){return this.getPropertyValue("grid-row-start")}set gridRowStart(e){this.setProperty("grid-row-start",e)}get gridTemplate(){return this.getPropertyValue("grid-template")}set gridTemplate(e){this.setProperty("grid-template",e)}get gridTemplateAreas(){return this.getPropertyValue("grid-template-areas")}set gridTemplateAreas(e){this.setProperty("grid-template-areas",e)}get gridTemplateColumns(){return this.getPropertyValue("grid-template-columns")}set gridTemplateColumns(e){this.setProperty("grid-template-columns",e)}get gridTemplateRows(){return this.getPropertyValue("grid-template-rows")}set gridTemplateRows(e){this.setProperty("grid-template-rows",e)}get height(){return this.getPropertyValue("height")}set height(e){this.setProperty("height",e)}get hyphens(){return this.getPropertyValue("hyphens")}set hyphens(e){this.setProperty("hyphens",e)}get imageOrientation(){return this.getPropertyValue("image-orientation")}set imageOrientation(e){this.setProperty("image-orientation",e)}get imageRendering(){return this.getPropertyValue("image-rendering")}set imageRendering(e){this.setProperty("image-rendering",e)}get inherits(){return this.getPropertyValue("inherits")}set inherits(e){this.setProperty("inherits",e)}get initialValue(){return this.getPropertyValue("initial-value")}set initialValue(e){this.setProperty("initial-value",e)}get inlineSize(){return this.getPropertyValue("inline-size")}set inlineSize(e){this.setProperty("inline-size",e)}get isolation(){return this.getPropertyValue("isolation")}set isolation(e){this.setProperty("isolation",e)}get insetBlockEnd(){return this.getPropertyValue("inset-block-end")}set insetBlockEnd(e){this.setProperty("inset-block-end",e)}get insetBlockStart(){return this.getPropertyValue("inset-block-start")}set insetBlockStart(e){this.setProperty("inset-block-start",e)}get insetInlineEnd(){return this.getPropertyValue("inset-inline-end")}set insetInlineEnd(e){this.setProperty("inset-inline-end",e)}get insetInlineStart(){return this.getPropertyValue("inset-inline-start")}set insetInlineStart(e){this.setProperty("inset-inline-start",e)}get justifyContent(){return this.getPropertyValue("justify-content")}set justifyContent(e){this.setProperty("justify-content",e)}get justifyItems(){return this.getPropertyValue("justify-items")}set justifyItems(e){this.setProperty("justify-items",e)}get justifySelf(){return this.getPropertyValue("justify-self")}set justifySelf(e){this.setProperty("justify-self",e)}get left(){return this.getPropertyValue("left")}set left(e){this.setProperty("left",e)}get letterSpacing(){return this.getPropertyValue("letter-spacing")}set letterSpacing(e){this.setProperty("letter-spacing",e)}get lightingColor(){return this.getPropertyValue("lighting-color")}set lightingColor(e){this.setProperty("lighting-color",e)}get lineBreak(){return this.getPropertyValue("line-break")}set lineBreak(e){this.setProperty("line-break",e)}get lineHeight(){return this.getPropertyValue("line-height")}set lineHeight(e){this.setProperty("line-height",e)}get listStyle(){return this.getPropertyValue("list-style")}set listStyle(e){this.setProperty("list-style",e)}get listStyleImage(){return this.getPropertyValue("list-style-image")}set listStyleImage(e){this.setProperty("list-style-image",e)}get listStylePosition(){return this.getPropertyValue("list-style-position")}set listStylePosition(e){this.setProperty("list-style-position",e)}get listStyleType(){return this.getPropertyValue("list-style-type")}set listStyleType(e){this.setProperty("list-style-type",e)}get margin(){return this.getPropertyValue("margin")}set margin(e){this.setProperty("margin",e)}get marginBlockEnd(){return this.getPropertyValue("margin-block-end")}set marginBlockEnd(e){this.setProperty("margin-block-end",e)}get marginBlockStart(){return this.getPropertyValue("margin-block-start")}set marginBlockStart(e){this.setProperty("margin-block-start",e)}get marginBottom(){return this.getPropertyValue("margin-bottom")}set marginBottom(e){this.setProperty("margin-bottom",e)}get marginInlineEnd(){return this.getPropertyValue("margin-inline-end")}set marginInlineEnd(e){this.setProperty("margin-inline-end",e)}get marginInlineStart(){return this.getPropertyValue("margin-inline-start")}set marginInlineStart(e){this.setProperty("margin-inline-start",e)}get marginLeft(){return this.getPropertyValue("margin-left")}set marginLeft(e){this.setProperty("margin-left",e)}get marginRight(){return this.getPropertyValue("margin-right")}set marginRight(e){this.setProperty("margin-right",e)}get marginTop(){return this.getPropertyValue("margin-top")}set marginTop(e){this.setProperty("margin-top",e)}get marker(){return this.getPropertyValue("marker")}set marker(e){this.setProperty("marker",e)}get markerEnd(){return this.getPropertyValue("marker-end")}set markerEnd(e){this.setProperty("marker-end",e)}get markerMid(){return this.getPropertyValue("marker-mid")}set markerMid(e){this.setProperty("marker-mid",e)}get markerStart(){return this.getPropertyValue("marker-start")}set markerStart(e){this.setProperty("marker-start",e)}get mask(){return this.getPropertyValue("mask")}set mask(e){this.setProperty("mask",e)}get maskType(){return this.getPropertyValue("mask-type")}set maskType(e){this.setProperty("mask-type",e)}get maxBlockSize(){return this.getPropertyValue("max-block-size")}set maxBlockSize(e){this.setProperty("max-block-size",e)}get maxHeight(){return this.getPropertyValue("max-height")}set maxHeight(e){this.setProperty("max-height",e)}get maxInlineSize(){return this.getPropertyValue("max-inline-size")}set maxInlineSize(e){this.setProperty("max-inline-size",e)}get maxWidth(){return this.getPropertyValue("max-width")}set maxWidth(e){this.setProperty("max-width",e)}get maxZoom(){return this.getPropertyValue("max-zoom")}set maxZoom(e){this.setProperty("max-zoom",e)}get minBlockSize(){return this.getPropertyValue("min-block-size")}set minBlockSize(e){this.setProperty("min-block-size",e)}get minHeight(){return this.getPropertyValue("min-height")}set minHeight(e){this.setProperty("min-height",e)}get minInlineSize(){return this.getPropertyValue("min-inline-size")}set minInlineSize(e){this.setProperty("min-inline-size",e)}get minWidth(){return this.getPropertyValue("min-width")}set minWidth(e){this.setProperty("min-width",e)}get minZoom(){return this.getPropertyValue("min-zoom")}set minZoom(e){this.setProperty("min-zoom",e)}get mixBlendMode(){return this.getPropertyValue("mix-blend-mode")}set mixBlendMode(e){this.setProperty("mix-blend-mode",e)}get objectFit(){return this.getPropertyValue("object-fit")}set objectFit(e){this.setProperty("object-fit",e)}get objectPosition(){return this.getPropertyValue("object-position")}set objectPosition(e){this.setProperty("object-position",e)}get offset(){return this.getPropertyValue("offset")}set offset(e){this.setProperty("offset",e)}get offsetDistance(){return this.getPropertyValue("offset-distance")}set offsetDistance(e){this.setProperty("offset-distance",e)}get offsetPath(){return this.getPropertyValue("offset-path")}set offsetPath(e){this.setProperty("offset-path",e)}get offsetRotate(){return this.getPropertyValue("offset-rotate")}set offsetRotate(e){this.setProperty("offset-rotate",e)}get opacity(){return this.getPropertyValue("opacity")}set opacity(e){this.setProperty("opacity",e)}get order(){return this.getPropertyValue("order")}set order(e){this.setProperty("order",e)}get orientation(){return this.getPropertyValue("orientation")}set orientation(e){this.setProperty("orientation",e)}get orphans(){return this.getPropertyValue("orphans")}set orphans(e){this.setProperty("orphans",e)}get outline(){return this.getPropertyValue("outline")}set outline(e){this.setProperty("outline",e)}get outlineColor(){return this.getPropertyValue("outline-color")}set outlineColor(e){this.setProperty("outline-color",e)}get outlineOffset(){return this.getPropertyValue("outline-offset")}set outlineOffset(e){this.setProperty("outline-offset",e)}get outlineStyle(){return this.getPropertyValue("outline-style")}set outlineStyle(e){this.setProperty("outline-style",e)}get outlineWidth(){return this.getPropertyValue("outline-width")}set outlineWidth(e){this.setProperty("outline-width",e)}get overflow(){return this.getPropertyValue("overflow")}set overflow(e){this.setProperty("overflow",e)}get overflowAnchor(){return this.getPropertyValue("overflow-anchor")}set overflowAnchor(e){this.setProperty("overflow-anchor",e)}get overflowWrap(){return this.getPropertyValue("overflow-wrap")}set overflowWrap(e){this.setProperty("overflow-wrap",e)}get overflowX(){return this.getPropertyValue("overflow-x")}set overflowX(e){this.setProperty("overflow-x",e)}get overflowY(){return this.getPropertyValue("overflow-y")}set overflowY(e){this.setProperty("overflow-y",e)}get overscrollBehavior(){return this.getPropertyValue("overscroll-behavior")}set overscrollBehavior(e){this.setProperty("overscroll-behavior",e)}get overscrollBehaviorBlock(){return this.getPropertyValue("overscroll-behavior-block")}set overscrollBehaviorBlock(e){this.setProperty("overscroll-behavior-block",e)}get overscrollBehaviorInline(){return this.getPropertyValue("overscroll-behavior-inline")}set overscrollBehaviorInline(e){this.setProperty("overscroll-behavior-inline",e)}get overscrollBehaviorX(){return this.getPropertyValue("overscroll-behavior-x")}set overscrollBehaviorX(e){this.setProperty("overscroll-behavior-x",e)}get overscrollBehaviorY(){return this.getPropertyValue("overscroll-behavior-y")}set overscrollBehaviorY(e){this.setProperty("overscroll-behavior-y",e)}get overflowClipMargin(){return this.getPropertyValue("overflow-clip-margin")}set overflowClipMargin(e){this.setProperty("overflow-clip-margin",e)}get padding(){return this.getPropertyValue("padding")}set padding(e){this.setProperty("padding",e)}get paddingBlockEnd(){return this.getPropertyValue("padding-block-end")}set paddingBlockEnd(e){this.setProperty("padding-block-end",e)}get paddingBlockStart(){return this.getPropertyValue("padding-block-start")}set paddingBlockStart(e){this.setProperty("padding-block-start",e)}get paddingBottom(){return this.getPropertyValue("padding-bottom")}set paddingBottom(e){this.setProperty("padding-bottom",e)}get paddingInlineEnd(){return this.getPropertyValue("padding-inline-end")}set paddingInlineEnd(e){this.setProperty("padding-inline-end",e)}get paddingInlineStart(){return this.getPropertyValue("padding-inline-start")}set paddingInlineStart(e){this.setProperty("padding-inline-start",e)}get paddingLeft(){return this.getPropertyValue("padding-left")}set paddingLeft(e){this.setProperty("padding-left",e)}get paddingRight(){return this.getPropertyValue("padding-right")}set paddingRight(e){this.setProperty("padding-right",e)}get paddingTop(){return this.getPropertyValue("padding-top")}set paddingTop(e){this.setProperty("padding-top",e)}get page(){return this.getPropertyValue("page")}set page(e){this.setProperty("page",e)}get pageBreakAfter(){return this.getPropertyValue("page-break-after")}set pageBreakAfter(e){this.setProperty("page-break-after",e)}get pageBreakBefore(){return this.getPropertyValue("page-break-before")}set pageBreakBefore(e){this.setProperty("page-break-before",e)}get pageBreakInside(){return this.getPropertyValue("page-break-inside")}set pageBreakInside(e){this.setProperty("page-break-inside",e)}get pageOrientation(){return this.getPropertyValue("page-orientation")}set pageOrientation(e){this.setProperty("page-orientation",e)}get paintOrder(){return this.getPropertyValue("paint-order")}set paintOrder(e){this.setProperty("paint-order",e)}get perspective(){return this.getPropertyValue("perspective")}set perspective(e){this.setProperty("perspective",e)}get perspectiveOrigin(){return this.getPropertyValue("perspective-origin")}set perspectiveOrigin(e){this.setProperty("perspective-origin",e)}get placeContent(){return this.getPropertyValue("place-content")}set placeContent(e){this.setProperty("place-content",e)}get placeItems(){return this.getPropertyValue("place-items")}set placeItems(e){this.setProperty("place-items",e)}get placeSelf(){return this.getPropertyValue("place-self")}set placeSelf(e){this.setProperty("place-self",e)}get pointerEvents(){return this.getPropertyValue("pointer-events")}set pointerEvents(e){this.setProperty("pointer-events",e)}get position(){return this.getPropertyValue("position")}set position(e){this.setProperty("position",e)}get quotes(){return this.getPropertyValue("quotes")}set quotes(e){this.setProperty("quotes",e)}get r(){return this.getPropertyValue("r")}set r(e){this.setProperty("r",e)}get resize(){return this.getPropertyValue("resize")}set resize(e){this.setProperty("resize",e)}get right(){return this.getPropertyValue("right")}set right(e){this.setProperty("right",e)}get rowGap(){return this.getPropertyValue("row-gap")}set rowGap(e){this.setProperty("row-gap",e)}get rubyPosition(){return this.getPropertyValue("ruby-position")}set rubyPosition(e){this.setProperty("ruby-position",e)}get rx(){return this.getPropertyValue("rx")}set rx(e){this.setProperty("rx",e)}get ry(){return this.getPropertyValue("ry")}set ry(e){this.setProperty("ry",e)}get scrollBehavior(){return this.getPropertyValue("scroll-behavior")}set scrollBehavior(e){this.setProperty("scroll-behavior",e)}get scrollMargin(){return this.getPropertyValue("scroll-margin")}set scrollMargin(e){this.setProperty("scroll-margin",e)}get scrollMarginBlock(){return this.getPropertyValue("scroll-margin-block")}set scrollMarginBlock(e){this.setProperty("scroll-margin-block",e)}get scrollMarginBlockEnd(){return this.getPropertyValue("scroll-margin-block-end")}set scrollMarginBlockEnd(e){this.setProperty("scroll-margin-block-end",e)}get scrollMarginBlockStart(){return this.getPropertyValue("scroll-margin-block-start")}set scrollMarginBlockStart(e){this.setProperty("scroll-margin-block-start",e)}get scrollMarginBottom(){return this.getPropertyValue("scroll-margin-bottom")}set scrollMarginBottom(e){this.setProperty("scroll-margin-bottom",e)}get scrollMarginInline(){return this.getPropertyValue("scroll-margin-inline")}set scrollMarginInline(e){this.setProperty("scroll-margin-inline",e)}get scrollMarginInlineEnd(){return this.getPropertyValue("scroll-margin-inline-end")}set scrollMarginInlineEnd(e){this.setProperty("scroll-margin-inline-end",e)}get scrollMarginInlineStart(){return this.getPropertyValue("scroll-margin-inline-start")}set scrollMarginInlineStart(e){this.setProperty("scroll-margin-inline-start",e)}get scrollMarginLeft(){return this.getPropertyValue("scroll-margin-left")}set scrollMarginLeft(e){this.setProperty("scroll-margin-left",e)}get scrollMarginRight(){return this.getPropertyValue("scroll-margin-right")}set scrollMarginRight(e){this.setProperty("scroll-margin-right",e)}get scrollMarginTop(){return this.getPropertyValue("scroll-margin-top")}set scrollMarginTop(e){this.setProperty("scroll-margin-top",e)}get scrollPadding(){return this.getPropertyValue("scroll-padding")}set scrollPadding(e){this.setProperty("scroll-padding",e)}get scrollPaddingBlock(){return this.getPropertyValue("scroll-padding-block")}set scrollPaddingBlock(e){this.setProperty("scroll-padding-block",e)}get scrollPaddingBlockEnd(){return this.getPropertyValue("scroll-padding-block-end")}set scrollPaddingBlockEnd(e){this.setProperty("scroll-padding-block-end",e)}get scrollPaddingBlockStart(){return this.getPropertyValue("scroll-padding-block-start")}set scrollPaddingBlockStart(e){this.setProperty("scroll-padding-block-start",e)}get scrollPaddingBottom(){return this.getPropertyValue("scroll-padding-bottom")}set scrollPaddingBottom(e){this.setProperty("scroll-padding-bottom",e)}get scrollPaddingInline(){return this.getPropertyValue("scroll-padding-inline")}set scrollPaddingInline(e){this.setProperty("scroll-padding-inline",e)}get scrollPaddingInlineEnd(){return this.getPropertyValue("scroll-padding-inline-end")}set scrollPaddingInlineEnd(e){this.setProperty("scroll-padding-inline-end",e)}get scrollPaddingInlineStart(){return this.getPropertyValue("scroll-padding-inline-start")}set scrollPaddingInlineStart(e){this.setProperty("scroll-padding-inline-start",e)}get scrollPaddingLeft(){return this.getPropertyValue("scroll-padding-left")}set scrollPaddingLeft(e){this.setProperty("scroll-padding-left",e)}get scrollPaddingRight(){return this.getPropertyValue("scroll-padding-right")}set scrollPaddingRight(e){this.setProperty("scroll-padding-right",e)}get scrollPaddingTop(){return this.getPropertyValue("scroll-padding-top")}set scrollPaddingTop(e){this.setProperty("scroll-padding-top",e)}get scrollSnapAlign(){return this.getPropertyValue("scroll-snap-align")}set scrollSnapAlign(e){this.setProperty("scroll-snap-align",e)}get scrollSnapStop(){return this.getPropertyValue("scroll-snap-stop")}set scrollSnapStop(e){this.setProperty("scroll-snap-stop",e)}get scrollSnapType(){return this.getPropertyValue("scroll-snap-type")}set scrollSnapType(e){this.setProperty("scroll-snap-type",e)}get shapeImageThreshold(){return this.getPropertyValue("shape-image-threshold")}set shapeImageThreshold(e){this.setProperty("shape-image-threshold",e)}get shapeMargin(){return this.getPropertyValue("shape-margin")}set shapeMargin(e){this.setProperty("shape-margin",e)}get shapeOutside(){return this.getPropertyValue("shape-outside")}set shapeOutside(e){this.setProperty("shape-outside",e)}get shapeRendering(){return this.getPropertyValue("shape-rendering")}set shapeRendering(e){this.setProperty("shape-rendering",e)}get size(){return this.getPropertyValue("size")}set size(e){this.setProperty("size",e)}get speak(){return this.getPropertyValue("speak")}set speak(e){this.setProperty("speak",e)}get src(){return this.getPropertyValue("src")}set src(e){this.setProperty("src",e)}get stopColor(){return this.getPropertyValue("stop-color")}set stopColor(e){this.setProperty("stop-color",e)}get stopOpacity(){return this.getPropertyValue("stop-opacity")}set stopOpacity(e){this.setProperty("stop-opacity",e)}get stroke(){return this.getPropertyValue("stroke")}set stroke(e){this.setProperty("stroke",e)}get strokeDasharray(){return this.getPropertyValue("stroke-dasharray")}set strokeDasharray(e){this.setProperty("stroke-dasharray",e)}get strokeDashoffset(){return this.getPropertyValue("stroke-dashoffset")}set strokeDashoffset(e){this.setProperty("stroke-dashoffset",e)}get strokeLinecap(){return this.getPropertyValue("stroke-linecap")}set strokeLinecap(e){this.setProperty("stroke-linecap",e)}get strokeLinejoin(){return this.getPropertyValue("stroke-linejoin")}set strokeLinejoin(e){this.setProperty("stroke-linejoin",e)}get strokeMiterlimit(){return this.getPropertyValue("stroke-miterlimit")}set strokeMiterlimit(e){this.setProperty("stroke-miterlimit",e)}get strokeOpacity(){return this.getPropertyValue("stroke-opacity")}set strokeOpacity(e){this.setProperty("stroke-opacity",e)}get strokeWidth(){return this.getPropertyValue("stroke-width")}set strokeWidth(e){this.setProperty("stroke-width",e)}get syntax(){return this.getPropertyValue("syntax")}set syntax(e){this.setProperty("syntax",e)}get scrollbarGutter(){return this.getPropertyValue("scrollbar-gutter")}set scrollbarGutter(e){this.setProperty("scrollbar-gutter",e)}get tabSize(){return this.getPropertyValue("tab-size")}set tabSize(e){this.setProperty("tab-size",e)}get tableLayout(){return this.getPropertyValue("table-layout")}set tableLayout(e){this.setProperty("table-layout",e)}get textAlign(){return this.getPropertyValue("text-align")}set textAlign(e){this.setProperty("text-align",e)}get textAlignLast(){return this.getPropertyValue("text-align-last")}set textAlignLast(e){this.setProperty("text-align-last",e)}get textAnchor(){return this.getPropertyValue("text-anchor")}set textAnchor(e){this.setProperty("text-anchor",e)}get textCombineUpright(){return this.getPropertyValue("text-combine-upright")}set textCombineUpright(e){this.setProperty("text-combine-upright",e)}get textDecoration(){return this.getPropertyValue("text-decoration")}set textDecoration(e){this.setProperty("text-decoration",e)}get textDecorationColor(){return this.getPropertyValue("text-decoration-color")}set textDecorationColor(e){this.setProperty("text-decoration-color",e)}get textDecorationLine(){return this.getPropertyValue("text-decoration-line")}set textDecorationLine(e){this.setProperty("text-decoration-line",e)}get textDecorationSkipInk(){return this.getPropertyValue("text-decoration-skip-ink")}set textDecorationSkipInk(e){this.setProperty("text-decoration-skip-ink",e)}get textDecorationStyle(){return this.getPropertyValue("text-decoration-style")}set textDecorationStyle(e){this.setProperty("text-decoration-style",e)}get textIndent(){return this.getPropertyValue("text-indent")}set textIndent(e){this.setProperty("text-indent",e)}get textOrientation(){return this.getPropertyValue("text-orientation")}set textOrientation(e){this.setProperty("text-orientation",e)}get textOverflow(){return this.getPropertyValue("text-overflow")}set textOverflow(e){this.setProperty("text-overflow",e)}get textRendering(){return this.getPropertyValue("text-rendering")}set textRendering(e){this.setProperty("text-rendering",e)}get textShadow(){return this.getPropertyValue("text-shadow")}set textShadow(e){this.setProperty("text-shadow",e)}get textSizeAdjust(){return this.getPropertyValue("text-size-adjust")}set textSizeAdjust(e){this.setProperty("text-size-adjust",e)}get textTransform(){return this.getPropertyValue("text-transform")}set textTransform(e){this.setProperty("text-transform",e)}get textUnderlinePosition(){return this.getPropertyValue("text-underline-position")}set textUnderlinePosition(e){this.setProperty("text-underline-position",e)}get top(){return this.getPropertyValue("top")}set top(e){this.setProperty("top",e)}get touchAction(){return this.getPropertyValue("touch-action")}set touchAction(e){this.setProperty("touch-action",e)}get transform(){return this.getPropertyValue("transform")}set transform(e){this.setProperty("transform",e)}get transformBox(){return this.getPropertyValue("transform-box")}set transformBox(e){this.setProperty("transform-box",e)}get transformOrigin(){return this.getPropertyValue("transform-origin")}set transformOrigin(e){this.setProperty("transform-origin",e)}get transformStyle(){return this.getPropertyValue("transform-style")}set transformStyle(e){this.setProperty("transform-style",e)}get transition(){return this.getPropertyValue("transition")}set transition(e){this.setProperty("transition",e)}get transitionDelay(){return this.getPropertyValue("transition-delay")}set transitionDelay(e){this.setProperty("transition-delay",e)}get transitionDuration(){return this.getPropertyValue("transition-duration")}set transitionDuration(e){this.setProperty("transition-duration",e)}get transitionProperty(){return this.getPropertyValue("transition-property")}set transitionProperty(e){this.setProperty("transition-property",e)}get transitionTimingFunction(){return this.getPropertyValue("transition-timing-function")}set transitionTimingFunction(e){this.setProperty("transition-timing-function",e)}get textEmphasisColor(){return this.getPropertyValue("text-emphasis-color")}set textEmphasisColor(e){this.setProperty("text-emphasis-color",e)}get textEmphasisPosition(){return this.getPropertyValue("text-emphasis-position")}set textEmphasisPosition(e){this.setProperty("text-emphasis-position",e)}get textEmphasisStyle(){return this.getPropertyValue("text-emphasis-style")}set textEmphasisStyle(e){this.setProperty("text-emphasis-style",e)}get unicodeBidi(){return this.getPropertyValue("unicode-bidi")}set unicodeBidi(e){this.setProperty("unicode-bidi",e)}get unicodeRange(){return this.getPropertyValue("unicode-range")}set unicodeRange(e){this.setProperty("unicode-range",e)}get userSelect(){return this.getPropertyValue("user-select")}set userSelect(e){this.setProperty("user-select",e)}get userZoom(){return this.getPropertyValue("user-zoom")}set userZoom(e){this.setProperty("user-zoom",e)}get vectorEffect(){return this.getPropertyValue("vector-effect")}set vectorEffect(e){this.setProperty("vector-effect",e)}get verticalAlign(){return this.getPropertyValue("vertical-align")}set verticalAlign(e){this.setProperty("vertical-align",e)}get visibility(){return this.getPropertyValue("visibility")}set visibility(e){this.setProperty("visibility",e)}get whiteSpace(){return this.getPropertyValue("white-space")}set whiteSpace(e){this.setProperty("white-space",e)}get widows(){return this.getPropertyValue("widows")}set widows(e){this.setProperty("widows",e)}get width(){return this.getPropertyValue("width")}set width(e){this.setProperty("width",e)}get willChange(){return this.getPropertyValue("will-change")}set willChange(e){this.setProperty("will-change",e)}get wordBreak(){return this.getPropertyValue("word-break")}set wordBreak(e){this.setProperty("word-break",e)}get wordSpacing(){return this.getPropertyValue("word-spacing")}set wordSpacing(e){this.setProperty("word-spacing",e)}get wordWrap(){return this.getPropertyValue("word-wrap")}set wordWrap(e){this.setProperty("word-wrap",e)}get writingMode(){return this.getPropertyValue("writing-mode")}set writingMode(e){this.setProperty("writing-mode",e)}get x(){return this.getPropertyValue("x")}set x(e){this.setProperty("x",e)}get y(){return this.getPropertyValue("y")}set y(e){this.setProperty("y",e)}get zIndex(){return this.getPropertyValue("z-index")}set zIndex(e){this.setProperty("z-index",e)}get zoom(){return this.getPropertyValue("zoom")}set zoom(e){this.setProperty("zoom",e)}get containerType(){return this.getPropertyValue("container-type")}set containerType(e){this.setProperty("container-type",e)}get containerName(){return this.getPropertyValue("container-name")}set containerName(e){this.setProperty("container-name",e)}get aspectRatio(){return this.getPropertyValue("aspect-ratio")}set aspectRatio(e){this.setProperty("aspect-ratio",e)}get length(){return D(this,Dn,Ja).call(this).size()}get cssText(){return u(this,Si)&&u(this,Ol)?"":D(this,Dn,Ja).call(this).toString()}set cssText(e){if(u(this,Ol))throw new this[m].DOMException("Failed to execute 'cssText' on 'CSSStyleDeclaration': These styles are computed, and the properties are therefore read-only.",v.domException);u(this,Si)?(u(this,Pi).propertyManager=new Ls({cssText:e}),u(this,Pi).attributeValue=e,u(this,Si).setAttribute("style",u(this,Pi).propertyManager.toString())):u(this,Pi).propertyManager=new Ls({cssText:e})}item(e){return D(this,Dn,Ja).call(this).item(e)}setProperty(e,t,r){if(u(this,Ol))throw new this[m].DOMException(`Failed to execute 'setProperty' on 'CSSStyleDeclaration': These styles are computed, and therefore the '${e}' property is read-only.`,v.domException);if(r!==""&&r!==void 0&&r!=="important")return;let o=String(t).trim(),i=D(this,Dn,Ja).call(this);o?i.set(e,o,!!r):i.remove(e),u(this,Si)&&(u(this,Pi).attributeValue=i.toString(),u(this,Pi).attributeValue?u(this,Si).setAttribute("style",u(this,Pi).attributeValue):u(this,Si).removeAttribute("style"))}removeProperty(e){if(u(this,Ol))throw new this[m].DOMException(`Failed to execute 'removeProperty' on 'CSSStyleDeclaration': These styles are computed, and therefore the '${e}' property is read-only.`,v.domException);let t=D(this,Dn,Ja).call(this);t.remove(e),u(this,Si)&&(u(this,Pi).attributeValue=t.toString(),u(this,Pi).attributeValue?u(this,Si).setAttribute("style",u(this,Pi).attributeValue):u(this,Si).removeAttribute("style"))}getPropertyValue(e){return D(this,Dn,Ja).call(this).get(e)?.value||""}getPropertyPriority(e){return D(this,Dn,Ja).call(this).get(e)?.important?"important":""}};Si=new WeakMap,Ol=new WeakMap,Pi=new WeakMap,Dn=new WeakSet,Ja=function(){let e=u(this,Si),t=u(this,Pi);if(!e)return t.propertyManager||(t.propertyManager=new Ls),t.propertyManager;if(u(this,Ol))return new fb(e).getComputedStyle();let r=e.getAttribute("style")||"";return t.attributeValue!==r&&(t.propertyManager=new Ls({cssText:r})),t.propertyManager};var vE,TE,rs=class extends(TE=es,vE=Ko,TE){constructor(){super(...arguments);s(this,vE,"")}get conditionText(){return this[Ko]}};var CE,NE,LE,Za=class extends(LE=rs,NE=zt,CE=bo,LE){constructor(){super(...arguments);s(this,NE,ht.containerRule);s(this,CE,"")}get type(){return ht.containerRule}get cssText(){let t="";for(let r of this[sr])t+=`
25
+ `,`@${this[bo]}scope${this[_]?` (${this[_]})`:""}${this[j]?` to (${this[j]})`:""} {${t}}`}get start(){return this[_]}get end(){return this[j]}};var D2=/[0-9.]+(px|rem|em|vw|vh|%|vmin|vmax|cm|mm|in|pt|pc|Q)/g,EE=/:host\s*\(([^)]+)\)|:host-context\s*\(([^)]+)\)/,O2=/var\( *(--[^), ]+)\)/,V2=/var\( *(--[^), ]+), *([^), ]+)\)/,fb=class{constructor(e){s(this,"element");this.element=e}getComputedStyle(){let e=[],t=[],r={element:this.element,cssTexts:[]},o=[],i=[];if(!this.element[it])return new Ls;let n=this.element[W].computedStyle;if(n?.result){let S=n.result.deref();if(S)return S}for(;r.element;)if(r.element[U]===L.elementNode&&(r.element.getRootNode()[U]===L.documentNode?e.unshift(r):o.unshift(r),r.element.shadowRoot&&i.push(r),t.unshift(r)),r.element===this.element[T]){let S=this.getStyleSheets(this.element[T]);for(let M of S)this.parseCSSRules({elements:e,cssRules:M.cssRules});for(let M of i){let N=this.getStyleSheets(M.element.shadowRoot);for(let K of N)this.parseCSSRules({elements:[],cssRules:K.cssRules,hostElement:M})}r={element:null,cssTexts:[]}}else if(r.element[U]===L.documentFragmentNode&&r.element.host){let S=r.element,M=this.getStyleSheets(S);r={element:S.host,cssTexts:[]};for(let N of M)this.parseCSSRules({elements:o,cssRules:N.cssRules,hostElement:r});for(let N of i){let K=this.getStyleSheets(N.element.shadowRoot);for(let mt of K)this.parseCSSRules({elements:[],cssRules:mt.cssRules,hostElement:N})}i=[],o=[]}else r={element:r.element[Y],cssTexts:[]};let a=t[t.length-1],y=new Ls,p={},d=16,b=16;for(let S of t){S.cssTexts.sort((qt,at)=>qt.priorityWeight-at.priorityWeight);let M=sE[S.element[Z]],N="";if(M)if(typeof M=="string")N+=M;else for(let qt of Object.keys(M))(qt==="default"||S.element[qt])&&(N+=M[qt]);for(let qt of S.cssTexts)N+=qt.cssText;let K=S.element.getAttribute("style");K&&(N+=K);let mt=Ty.parse(N),Nt=mt.rules;Object.assign(p,mt.properties);for(let{name:qt,value:at,important:xt}of Nt)if(nE[qt]||S===a){let It=this.parseCSSVariablesInValue(at.trim(),p);if(It&&(!y.get(qt)?.important||xt)&&(y.set(qt,It,xt),qt==="font"||qt==="font-size")){let At=y.properties["font-size"];if(At!==null){let ze=this.parseMeasurementsInValue({value:At.value,rootFontSize:d,parentFontSize:b,parentSize:b});S.element[Z]==="HTML"?d=ze:S!==a&&(b=ze)}}}}for(let S of lE){let M=y.properties[S];M&&(M.value=this.parseMeasurementsInValue({value:M.value,rootFontSize:d,parentFontSize:b,parentSize:S==="font-size"?b:null}))}let f={result:new WeakRef(y)};return this.element[W].computedStyle=f,this.element[T][$i].push(f),y}getStyleSheets(e){if(!e)return[];let t=e.querySelectorAll('style,link[rel="stylesheet"]'),r=[];for(let o of t){let i=o.sheet;i&&r.push(i)}return e.adoptedStyleSheets&&(r=r.concat(e.adoptedStyleSheets)),r}parseCSSRules(e){if(!e.hostElement&&!e.elements.length)return;let t=this.element[m];for(let r of e.cssRules)if(r.type===ht.styleRule){let o=r.selectorText;if(o)if(o[0]===":"&&o.startsWith(":host")){if(e.hostElement){let i=!0;if(o!==":host"){let n=o.match(EE);if(n)if(yt.matches(e.hostElement.element,n[1]||n[2],{ignoreErrors:!0,scope:e.scopeElement?.element})){let y=o?.replace(EE,"").trim();if(y&&y[0]!==":"){i=!1;for(let p of e.elements){let d=yt.matches(p.element,y,{ignoreErrors:!0,scope:e.scopeElement?.element});d&&p.cssTexts.push({cssText:r[Xr],priorityWeight:10+d.priorityWeight})}}}else i=!1}i&&e.hostElement.cssTexts.push({cssText:r[Xr],priorityWeight:10})}}else for(let i of e.elements){let n=yt.matches(i.element,o,{ignoreErrors:!0,scope:e.scopeElement?.element});n&&i.cssTexts.push({cssText:r[Xr],priorityWeight:n.priorityWeight})}}else if(r.type===ht.mediaRule&&new Ny({window:t,media:r.conditionText,rootFontSize:this.element[Z]==="HTML"?16:null}).matches)this.parseCSSRules({elements:e.elements,cssRules:r.cssRules,hostElement:e.hostElement,scopeElement:e.scopeElement});else if(r.type===ht.supportsRule)t.CSS.supports(r.conditionText)&&this.parseCSSRules({elements:e.elements,cssRules:r.cssRules,hostElement:e.hostElement,scopeElement:e.scopeElement});else if(r.type===ht.containerRule&&r instanceof Bn){let o=[],i=null;for(let n of e.elements)if(i){if(r[j]&&yt.matches(n.element,r[j],{ignoreErrors:!0,scope:i.element}))break;o.push(n)}else yt.matches(n.element,r[_]||":root",{ignoreErrors:!0})&&(i=n,o.push(n));o.length&&this.parseCSSRules({elements:o,cssRules:r.cssRules,hostElement:e.hostElement,scopeElement:i})}}parseCSSVariablesInValue(e,t){let r=e,o;for(;(o=r.match(O2))!=null;)r=r.replace(o[0],t[o[1]]||"");for(;(o=r.match(V2))!==null;)r=r.replace(o[0],t[o[1]]||o[2]);return r}parseMeasurementsInValue(e){if(new rt(this.element[m]).getSettings()?.disableComputedStyleRendering)return e.value;let t=new RegExp(D2),r=e.value,o;for(;(o=t.exec(e.value))!==null;)if(o[1]!=="px"){let i=$a.toPixels({window:this.element[m],value:o[0],rootFontSize:e.rootFontSize,parentFontSize:e.parentFontSize,parentSize:e.parentSize});i!==null&&(r=r.replace(o[0],i+"px"))}return r}};var xE,Si,Ol,Pi,Dn,Ja;xE=m;var go=class{constructor(e,t,r){E(this,Dn);s(this,"parentRule",null);s(this,xE);E(this,Si);E(this,Ol);E(this,Pi,{attributeValue:null,propertyManager:null});if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,w(this,Si,r?.element||null),w(this,Ol,r?.element?!!r?.computed:!1)}get 0(){return this.item(0)||void 0}get 1(){return this.item(1)||void 0}get 2(){return this.item(2)||void 0}get 3(){return this.item(3)||void 0}get 4(){return this.item(4)||void 0}get 5(){return this.item(5)||void 0}get 6(){return this.item(6)||void 0}get 7(){return this.item(7)||void 0}get 8(){return this.item(8)||void 0}get 9(){return this.item(9)||void 0}get 10(){return this.item(10)||void 0}get 11(){return this.item(11)||void 0}get 12(){return this.item(12)||void 0}get 13(){return this.item(13)||void 0}get 14(){return this.item(14)||void 0}get 15(){return this.item(15)||void 0}get 16(){return this.item(16)||void 0}get 17(){return this.item(17)||void 0}get 18(){return this.item(18)||void 0}get 19(){return this.item(19)||void 0}get 20(){return this.item(20)||void 0}get 21(){return this.item(21)||void 0}get 22(){return this.item(22)||void 0}get 23(){return this.item(23)||void 0}get 24(){return this.item(24)||void 0}get 25(){return this.item(25)||void 0}get 26(){return this.item(26)||void 0}get 27(){return this.item(27)||void 0}get 28(){return this.item(28)||void 0}get 29(){return this.item(29)||void 0}get 30(){return this.item(30)||void 0}get 31(){return this.item(31)||void 0}get 32(){return this.item(32)||void 0}get 33(){return this.item(33)||void 0}get 34(){return this.item(34)||void 0}get 35(){return this.item(35)||void 0}get 36(){return this.item(36)||void 0}get 37(){return this.item(37)||void 0}get 38(){return this.item(38)||void 0}get 39(){return this.item(39)||void 0}get 40(){return this.item(40)||void 0}get 41(){return this.item(41)||void 0}get 42(){return this.item(42)||void 0}get 43(){return this.item(43)||void 0}get 44(){return this.item(44)||void 0}get 45(){return this.item(45)||void 0}get 46(){return this.item(46)||void 0}get 47(){return this.item(47)||void 0}get 48(){return this.item(48)||void 0}get 49(){return this.item(49)||void 0}get 50(){return this.item(50)||void 0}get 51(){return this.item(51)||void 0}get 52(){return this.item(52)||void 0}get 53(){return this.item(53)||void 0}get 54(){return this.item(54)||void 0}get 55(){return this.item(55)||void 0}get 56(){return this.item(56)||void 0}get 57(){return this.item(57)||void 0}get 58(){return this.item(58)||void 0}get 59(){return this.item(59)||void 0}get 60(){return this.item(60)||void 0}get 61(){return this.item(61)||void 0}get 62(){return this.item(62)||void 0}get 63(){return this.item(63)||void 0}get 64(){return this.item(64)||void 0}get 65(){return this.item(65)||void 0}get 66(){return this.item(66)||void 0}get 67(){return this.item(67)||void 0}get 68(){return this.item(68)||void 0}get 69(){return this.item(69)||void 0}get 70(){return this.item(70)||void 0}get 71(){return this.item(71)||void 0}get 72(){return this.item(72)||void 0}get 73(){return this.item(73)||void 0}get 74(){return this.item(74)||void 0}get 75(){return this.item(75)||void 0}get 76(){return this.item(76)||void 0}get 77(){return this.item(77)||void 0}get 78(){return this.item(78)||void 0}get 79(){return this.item(79)||void 0}get 80(){return this.item(80)||void 0}get 81(){return this.item(81)||void 0}get 82(){return this.item(82)||void 0}get 83(){return this.item(83)||void 0}get 84(){return this.item(84)||void 0}get 85(){return this.item(85)||void 0}get 86(){return this.item(86)||void 0}get 87(){return this.item(87)||void 0}get 88(){return this.item(88)||void 0}get 89(){return this.item(89)||void 0}get 90(){return this.item(90)||void 0}get 91(){return this.item(91)||void 0}get 92(){return this.item(92)||void 0}get 93(){return this.item(93)||void 0}get 94(){return this.item(94)||void 0}get 95(){return this.item(95)||void 0}get 96(){return this.item(96)||void 0}get 97(){return this.item(97)||void 0}get 98(){return this.item(98)||void 0}get 99(){return this.item(99)||void 0}get 100(){return this.item(100)||void 0}get 101(){return this.item(101)||void 0}get 102(){return this.item(102)||void 0}get 103(){return this.item(103)||void 0}get 104(){return this.item(104)||void 0}get 105(){return this.item(105)||void 0}get 106(){return this.item(106)||void 0}get 107(){return this.item(107)||void 0}get 108(){return this.item(108)||void 0}get 109(){return this.item(109)||void 0}get 110(){return this.item(110)||void 0}get 111(){return this.item(111)||void 0}get 112(){return this.item(112)||void 0}get 113(){return this.item(113)||void 0}get 114(){return this.item(114)||void 0}get 115(){return this.item(115)||void 0}get 116(){return this.item(116)||void 0}get 117(){return this.item(117)||void 0}get 118(){return this.item(118)||void 0}get 119(){return this.item(119)||void 0}get 120(){return this.item(120)||void 0}get 121(){return this.item(121)||void 0}get 122(){return this.item(122)||void 0}get 123(){return this.item(123)||void 0}get 124(){return this.item(124)||void 0}get 125(){return this.item(125)||void 0}get 126(){return this.item(126)||void 0}get 127(){return this.item(127)||void 0}get 128(){return this.item(128)||void 0}get 129(){return this.item(129)||void 0}get 130(){return this.item(130)||void 0}get 131(){return this.item(131)||void 0}get 132(){return this.item(132)||void 0}get 133(){return this.item(133)||void 0}get 134(){return this.item(134)||void 0}get 135(){return this.item(135)||void 0}get 136(){return this.item(136)||void 0}get 137(){return this.item(137)||void 0}get 138(){return this.item(138)||void 0}get 139(){return this.item(139)||void 0}get 140(){return this.item(140)||void 0}get 141(){return this.item(141)||void 0}get 142(){return this.item(142)||void 0}get 143(){return this.item(143)||void 0}get 144(){return this.item(144)||void 0}get 145(){return this.item(145)||void 0}get 146(){return this.item(146)||void 0}get 147(){return this.item(147)||void 0}get 148(){return this.item(148)||void 0}get 149(){return this.item(149)||void 0}get 150(){return this.item(150)||void 0}get 151(){return this.item(151)||void 0}get 152(){return this.item(152)||void 0}get 153(){return this.item(153)||void 0}get 154(){return this.item(154)||void 0}get 155(){return this.item(155)||void 0}get 156(){return this.item(156)||void 0}get 157(){return this.item(157)||void 0}get 158(){return this.item(158)||void 0}get 159(){return this.item(159)||void 0}get 160(){return this.item(160)||void 0}get 161(){return this.item(161)||void 0}get 162(){return this.item(162)||void 0}get 163(){return this.item(163)||void 0}get 164(){return this.item(164)||void 0}get 165(){return this.item(165)||void 0}get 166(){return this.item(166)||void 0}get 167(){return this.item(167)||void 0}get 168(){return this.item(168)||void 0}get 169(){return this.item(169)||void 0}get 170(){return this.item(170)||void 0}get 171(){return this.item(171)||void 0}get 172(){return this.item(172)||void 0}get 173(){return this.item(173)||void 0}get 174(){return this.item(174)||void 0}get 175(){return this.item(175)||void 0}get 176(){return this.item(176)||void 0}get 177(){return this.item(177)||void 0}get 178(){return this.item(178)||void 0}get 179(){return this.item(179)||void 0}get 180(){return this.item(180)||void 0}get 181(){return this.item(181)||void 0}get 182(){return this.item(182)||void 0}get 183(){return this.item(183)||void 0}get 184(){return this.item(184)||void 0}get 185(){return this.item(185)||void 0}get 186(){return this.item(186)||void 0}get 187(){return this.item(187)||void 0}get 188(){return this.item(188)||void 0}get 189(){return this.item(189)||void 0}get 190(){return this.item(190)||void 0}get 191(){return this.item(191)||void 0}get 192(){return this.item(192)||void 0}get 193(){return this.item(193)||void 0}get 194(){return this.item(194)||void 0}get 195(){return this.item(195)||void 0}get 196(){return this.item(196)||void 0}get 197(){return this.item(197)||void 0}get 198(){return this.item(198)||void 0}get 199(){return this.item(199)||void 0}get 200(){return this.item(200)||void 0}get 201(){return this.item(201)||void 0}get 202(){return this.item(202)||void 0}get 203(){return this.item(203)||void 0}get 204(){return this.item(204)||void 0}get 205(){return this.item(205)||void 0}get 206(){return this.item(206)||void 0}get 207(){return this.item(207)||void 0}get 208(){return this.item(208)||void 0}get 209(){return this.item(209)||void 0}get 210(){return this.item(210)||void 0}get 211(){return this.item(211)||void 0}get 212(){return this.item(212)||void 0}get 213(){return this.item(213)||void 0}get 214(){return this.item(214)||void 0}get 215(){return this.item(215)||void 0}get 216(){return this.item(216)||void 0}get 217(){return this.item(217)||void 0}get 218(){return this.item(218)||void 0}get 219(){return this.item(219)||void 0}get 220(){return this.item(220)||void 0}get 221(){return this.item(221)||void 0}get 222(){return this.item(222)||void 0}get 223(){return this.item(223)||void 0}get 224(){return this.item(224)||void 0}get 225(){return this.item(225)||void 0}get 226(){return this.item(226)||void 0}get 227(){return this.item(227)||void 0}get 228(){return this.item(228)||void 0}get 229(){return this.item(229)||void 0}get 230(){return this.item(230)||void 0}get 231(){return this.item(231)||void 0}get 232(){return this.item(232)||void 0}get 233(){return this.item(233)||void 0}get 234(){return this.item(234)||void 0}get 235(){return this.item(235)||void 0}get 236(){return this.item(236)||void 0}get 237(){return this.item(237)||void 0}get 238(){return this.item(238)||void 0}get 239(){return this.item(239)||void 0}get 240(){return this.item(240)||void 0}get 241(){return this.item(241)||void 0}get 242(){return this.item(242)||void 0}get 243(){return this.item(243)||void 0}get 244(){return this.item(244)||void 0}get 245(){return this.item(245)||void 0}get 246(){return this.item(246)||void 0}get 247(){return this.item(247)||void 0}get 248(){return this.item(248)||void 0}get 249(){return this.item(249)||void 0}get 250(){return this.item(250)||void 0}get 251(){return this.item(251)||void 0}get 252(){return this.item(252)||void 0}get 253(){return this.item(253)||void 0}get 254(){return this.item(254)||void 0}get 255(){return this.item(255)||void 0}get 256(){return this.item(256)||void 0}get 257(){return this.item(257)||void 0}get 258(){return this.item(258)||void 0}get 259(){return this.item(259)||void 0}get 260(){return this.item(260)||void 0}get 261(){return this.item(261)||void 0}get 262(){return this.item(262)||void 0}get 263(){return this.item(263)||void 0}get 264(){return this.item(264)||void 0}get 265(){return this.item(265)||void 0}get 266(){return this.item(266)||void 0}get 267(){return this.item(267)||void 0}get 268(){return this.item(268)||void 0}get 269(){return this.item(269)||void 0}get 270(){return this.item(270)||void 0}get 271(){return this.item(271)||void 0}get 272(){return this.item(272)||void 0}get 273(){return this.item(273)||void 0}get 274(){return this.item(274)||void 0}get 275(){return this.item(275)||void 0}get 276(){return this.item(276)||void 0}get 277(){return this.item(277)||void 0}get 278(){return this.item(278)||void 0}get 279(){return this.item(279)||void 0}get 280(){return this.item(280)||void 0}get 281(){return this.item(281)||void 0}get 282(){return this.item(282)||void 0}get 283(){return this.item(283)||void 0}get 284(){return this.item(284)||void 0}get 285(){return this.item(285)||void 0}get 286(){return this.item(286)||void 0}get 287(){return this.item(287)||void 0}get 288(){return this.item(288)||void 0}get 289(){return this.item(289)||void 0}get 290(){return this.item(290)||void 0}get 291(){return this.item(291)||void 0}get 292(){return this.item(292)||void 0}get 293(){return this.item(293)||void 0}get 294(){return this.item(294)||void 0}get 295(){return this.item(295)||void 0}get 296(){return this.item(296)||void 0}get 297(){return this.item(297)||void 0}get 298(){return this.item(298)||void 0}get 299(){return this.item(299)||void 0}get 300(){return this.item(300)||void 0}get 301(){return this.item(301)||void 0}get 302(){return this.item(302)||void 0}get 303(){return this.item(303)||void 0}get 304(){return this.item(304)||void 0}get 305(){return this.item(305)||void 0}get 306(){return this.item(306)||void 0}get 307(){return this.item(307)||void 0}get 308(){return this.item(308)||void 0}get 309(){return this.item(309)||void 0}get 310(){return this.item(310)||void 0}get 311(){return this.item(311)||void 0}get 312(){return this.item(312)||void 0}get 313(){return this.item(313)||void 0}get 314(){return this.item(314)||void 0}get 315(){return this.item(315)||void 0}get 316(){return this.item(316)||void 0}get 317(){return this.item(317)||void 0}get 318(){return this.item(318)||void 0}get 319(){return this.item(319)||void 0}get 320(){return this.item(320)||void 0}get 321(){return this.item(321)||void 0}get 322(){return this.item(322)||void 0}get 323(){return this.item(323)||void 0}get 324(){return this.item(324)||void 0}get 325(){return this.item(325)||void 0}get 326(){return this.item(326)||void 0}get 327(){return this.item(327)||void 0}get 328(){return this.item(328)||void 0}get 329(){return this.item(329)||void 0}get 330(){return this.item(330)||void 0}get 331(){return this.item(331)||void 0}get 332(){return this.item(332)||void 0}get 333(){return this.item(333)||void 0}get 334(){return this.item(334)||void 0}get 335(){return this.item(335)||void 0}get 336(){return this.item(336)||void 0}get 337(){return this.item(337)||void 0}get 338(){return this.item(338)||void 0}get 339(){return this.item(339)||void 0}get 340(){return this.item(340)||void 0}get 341(){return this.item(341)||void 0}get 342(){return this.item(342)||void 0}get 343(){return this.item(343)||void 0}get 344(){return this.item(344)||void 0}get 345(){return this.item(345)||void 0}get 346(){return this.item(346)||void 0}get 347(){return this.item(347)||void 0}get 348(){return this.item(348)||void 0}get 349(){return this.item(349)||void 0}get 350(){return this.item(350)||void 0}get 351(){return this.item(351)||void 0}get 352(){return this.item(352)||void 0}get 353(){return this.item(353)||void 0}get 354(){return this.item(354)||void 0}get 355(){return this.item(355)||void 0}get 356(){return this.item(356)||void 0}get 357(){return this.item(357)||void 0}get 358(){return this.item(358)||void 0}get 359(){return this.item(359)||void 0}get 360(){return this.item(360)||void 0}get 361(){return this.item(361)||void 0}get 362(){return this.item(362)||void 0}get 363(){return this.item(363)||void 0}get 364(){return this.item(364)||void 0}get 365(){return this.item(365)||void 0}get 366(){return this.item(366)||void 0}get 367(){return this.item(367)||void 0}get 368(){return this.item(368)||void 0}get 369(){return this.item(369)||void 0}get 370(){return this.item(370)||void 0}get 371(){return this.item(371)||void 0}get 372(){return this.item(372)||void 0}get 373(){return this.item(373)||void 0}get 374(){return this.item(374)||void 0}get 375(){return this.item(375)||void 0}get 376(){return this.item(376)||void 0}get 377(){return this.item(377)||void 0}get 378(){return this.item(378)||void 0}get 379(){return this.item(379)||void 0}get 380(){return this.item(380)||void 0}get 381(){return this.item(381)||void 0}get 382(){return this.item(382)||void 0}get 383(){return this.item(383)||void 0}get 384(){return this.item(384)||void 0}get 385(){return this.item(385)||void 0}get 386(){return this.item(386)||void 0}get 387(){return this.item(387)||void 0}get 388(){return this.item(388)||void 0}get 389(){return this.item(389)||void 0}get 390(){return this.item(390)||void 0}get 391(){return this.item(391)||void 0}get 392(){return this.item(392)||void 0}get 393(){return this.item(393)||void 0}get accentColor(){return this.getPropertyValue("accent-color")}set accentColor(e){this.setProperty("accent-color",e)}get appRegion(){return this.getPropertyValue("app-region")}set appRegion(e){this.setProperty("app-region",e)}get alignContent(){return this.getPropertyValue("align-content")}set alignContent(e){this.setProperty("align-content",e)}get alignItems(){return this.getPropertyValue("align-items")}set alignItems(e){this.setProperty("align-items",e)}get alignSelf(){return this.getPropertyValue("align-self")}set alignSelf(e){this.setProperty("align-self",e)}get alignmentBaseline(){return this.getPropertyValue("alignment-baseline")}set alignmentBaseline(e){this.setProperty("alignment-baseline",e)}get all(){return this.getPropertyValue("all")}set all(e){this.setProperty("all",e)}get animation(){return this.getPropertyValue("animation")}set animation(e){this.setProperty("animation",e)}get animationDelay(){return this.getPropertyValue("animation-delay")}set animationDelay(e){this.setProperty("animation-delay",e)}get animationDirection(){return this.getPropertyValue("animation-direction")}set animationDirection(e){this.setProperty("animation-direction",e)}get animationDuration(){return this.getPropertyValue("animation-duration")}set animationDuration(e){this.setProperty("animation-duration",e)}get animationFillMode(){return this.getPropertyValue("animation-fill-mode")}set animationFillMode(e){this.setProperty("animation-fill-mode",e)}get animationIterationCount(){return this.getPropertyValue("animation-iteration-count")}set animationIterationCount(e){this.setProperty("animation-iteration-count",e)}get animationName(){return this.getPropertyValue("animation-name")}set animationName(e){this.setProperty("animation-name",e)}get animationPlayState(){return this.getPropertyValue("animation-play-state")}set animationPlayState(e){this.setProperty("animation-play-state",e)}get animationTimingFunction(){return this.getPropertyValue("animation-timing-function")}set animationTimingFunction(e){this.setProperty("animation-timing-function",e)}get appearance(){return this.getPropertyValue("appearance")}set appearance(e){this.setProperty("appearance",e)}get backdropFilter(){return this.getPropertyValue("backdrop-filter")}set backdropFilter(e){this.setProperty("backdrop-filter",e)}get backfaceVisibility(){return this.getPropertyValue("backface-visibility")}set backfaceVisibility(e){this.setProperty("backface-visibility",e)}get background(){return this.getPropertyValue("background")}set background(e){this.setProperty("background",e)}get backgroundAttachment(){return this.getPropertyValue("background-attachment")}set backgroundAttachment(e){this.setProperty("background-attachment",e)}get backgroundBlendMode(){return this.getPropertyValue("background-blend-mode")}set backgroundBlendMode(e){this.setProperty("background-blend-mode",e)}get backgroundClip(){return this.getPropertyValue("background-clip")}set backgroundClip(e){this.setProperty("background-clip",e)}get backgroundColor(){return this.getPropertyValue("background-color")}set backgroundColor(e){this.setProperty("background-color",e)}get backgroundImage(){return this.getPropertyValue("background-image")}set backgroundImage(e){this.setProperty("background-image",e)}get backgroundOrigin(){return this.getPropertyValue("background-origin")}set backgroundOrigin(e){this.setProperty("background-origin",e)}get backgroundPosition(){return this.getPropertyValue("background-position")}set backgroundPosition(e){this.setProperty("background-position",e)}get backgroundPositionX(){return this.getPropertyValue("background-position-x")}set backgroundPositionX(e){this.setProperty("background-position-x",e)}get backgroundPositionY(){return this.getPropertyValue("background-position-y")}set backgroundPositionY(e){this.setProperty("background-position-y",e)}get backgroundRepeat(){return this.getPropertyValue("background-repeat")}set backgroundRepeat(e){this.setProperty("background-repeat",e)}get backgroundRepeatX(){return this.getPropertyValue("background-repeat-x")}set backgroundRepeatX(e){this.setProperty("background-repeat-x",e)}get backgroundRepeatY(){return this.getPropertyValue("background-repeat-y")}set backgroundRepeatY(e){this.setProperty("background-repeat-y",e)}get backgroundSize(){return this.getPropertyValue("background-size")}set backgroundSize(e){this.setProperty("background-size",e)}get baselineShift(){return this.getPropertyValue("baseline-shift")}set baselineShift(e){this.setProperty("baseline-shift",e)}get blockSize(){return this.getPropertyValue("block-size")}set blockSize(e){this.setProperty("block-size",e)}get border(){return this.getPropertyValue("border")}set border(e){this.setProperty("border",e)}get borderBlockEnd(){return this.getPropertyValue("border-block-end")}set borderBlockEnd(e){this.setProperty("border-block-end",e)}get borderBlockEndColor(){return this.getPropertyValue("border-block-end-color")}set borderBlockEndColor(e){this.setProperty("border-block-end-color",e)}get borderBlockEndStyle(){return this.getPropertyValue("border-block-end-style")}set borderBlockEndStyle(e){this.setProperty("border-block-end-style",e)}get borderBlockEndWidth(){return this.getPropertyValue("border-block-end-width")}set borderBlockEndWidth(e){this.setProperty("border-block-end-width",e)}get borderBlockStart(){return this.getPropertyValue("border-block-start")}set borderBlockStart(e){this.setProperty("border-block-start",e)}get borderBlockStartColor(){return this.getPropertyValue("border-block-start-color")}set borderBlockStartColor(e){this.setProperty("border-block-start-color",e)}get borderBlockStartStyle(){return this.getPropertyValue("border-block-start-style")}set borderBlockStartStyle(e){this.setProperty("border-block-start-style",e)}get borderBlockStartWidth(){return this.getPropertyValue("border-block-start-width")}set borderBlockStartWidth(e){this.setProperty("border-block-start-width",e)}get borderBottom(){return this.getPropertyValue("border-bottom")}set borderBottom(e){this.setProperty("border-bottom",e)}get borderBottomColor(){return this.getPropertyValue("border-bottom-color")}set borderBottomColor(e){this.setProperty("border-bottom-color",e)}get borderBottomLeftRadius(){return this.getPropertyValue("border-bottom-left-radius")}set borderBottomLeftRadius(e){this.setProperty("border-bottom-left-radius",e)}get borderBottomRightRadius(){return this.getPropertyValue("border-bottom-right-radius")}set borderBottomRightRadius(e){this.setProperty("border-bottom-right-radius",e)}get borderBottomStyle(){return this.getPropertyValue("border-bottom-style")}set borderBottomStyle(e){this.setProperty("border-bottom-style",e)}get borderBottomWidth(){return this.getPropertyValue("border-bottom-width")}set borderBottomWidth(e){this.setProperty("border-bottom-width",e)}get borderCollapse(){return this.getPropertyValue("border-collapse")}set borderCollapse(e){this.setProperty("border-collapse",e)}get borderColor(){return this.getPropertyValue("border-color")}set borderColor(e){this.setProperty("border-color",e)}get borderImage(){return this.getPropertyValue("border-image")}set borderImage(e){this.setProperty("border-image",e)}get borderImageOutset(){return this.getPropertyValue("border-image-outset")}set borderImageOutset(e){this.setProperty("border-image-outset",e)}get borderImageRepeat(){return this.getPropertyValue("border-image-repeat")}set borderImageRepeat(e){this.setProperty("border-image-repeat",e)}get borderImageSlice(){return this.getPropertyValue("border-image-slice")}set borderImageSlice(e){this.setProperty("border-image-slice",e)}get borderImageSource(){return this.getPropertyValue("border-image-source")}set borderImageSource(e){this.setProperty("border-image-source",e)}get borderImageWidth(){return this.getPropertyValue("border-image-width")}set borderImageWidth(e){this.setProperty("border-image-width",e)}get borderInlineEnd(){return this.getPropertyValue("border-inline-end")}set borderInlineEnd(e){this.setProperty("border-inline-end",e)}get borderInlineEndColor(){return this.getPropertyValue("border-inline-end-color")}set borderInlineEndColor(e){this.setProperty("border-inline-end-color",e)}get borderInlineEndStyle(){return this.getPropertyValue("border-inline-end-style")}set borderInlineEndStyle(e){this.setProperty("border-inline-end-style",e)}get borderInlineEndWidth(){return this.getPropertyValue("border-inline-end-width")}set borderInlineEndWidth(e){this.setProperty("border-inline-end-width",e)}get borderInlineStart(){return this.getPropertyValue("border-inline-start")}set borderInlineStart(e){this.setProperty("border-inline-start",e)}get borderInlineStartColor(){return this.getPropertyValue("border-inline-start-color")}set borderInlineStartColor(e){this.setProperty("border-inline-start-color",e)}get borderInlineStartStyle(){return this.getPropertyValue("border-inline-start-style")}set borderInlineStartStyle(e){this.setProperty("border-inline-start-style",e)}get borderInlineStartWidth(){return this.getPropertyValue("border-inline-start-width")}set borderInlineStartWidth(e){this.setProperty("border-inline-start-width",e)}get borderLeft(){return this.getPropertyValue("border-left")}set borderLeft(e){this.setProperty("border-left",e)}get borderLeftColor(){return this.getPropertyValue("border-left-color")}set borderLeftColor(e){this.setProperty("border-left-color",e)}get borderLeftStyle(){return this.getPropertyValue("border-left-style")}set borderLeftStyle(e){this.setProperty("border-left-style",e)}get borderLeftWidth(){return this.getPropertyValue("border-left-width")}set borderLeftWidth(e){this.setProperty("border-left-width",e)}get borderRadius(){return this.getPropertyValue("border-radius")}set borderRadius(e){this.setProperty("border-radius",e)}get borderRight(){return this.getPropertyValue("border-right")}set borderRight(e){this.setProperty("border-right",e)}get borderRightColor(){return this.getPropertyValue("border-right-color")}set borderRightColor(e){this.setProperty("border-right-color",e)}get borderRightStyle(){return this.getPropertyValue("border-right-style")}set borderRightStyle(e){this.setProperty("border-right-style",e)}get borderRightWidth(){return this.getPropertyValue("border-right-width")}set borderRightWidth(e){this.setProperty("border-right-width",e)}get borderSpacing(){return this.getPropertyValue("border-spacing")}set borderSpacing(e){this.setProperty("border-spacing",e)}get borderStyle(){return this.getPropertyValue("border-style")}set borderStyle(e){this.setProperty("border-style",e)}get borderTop(){return this.getPropertyValue("border-top")}set borderTop(e){this.setProperty("border-top",e)}get borderTopColor(){return this.getPropertyValue("border-top-color")}set borderTopColor(e){this.setProperty("border-top-color",e)}get borderTopLeftRadius(){return this.getPropertyValue("border-top-left-radius")}set borderTopLeftRadius(e){this.setProperty("border-top-left-radius",e)}get borderTopRightRadius(){return this.getPropertyValue("border-top-right-radius")}set borderTopRightRadius(e){this.setProperty("border-top-right-radius",e)}get borderTopStyle(){return this.getPropertyValue("border-top-style")}set borderTopStyle(e){this.setProperty("border-top-style",e)}get borderTopWidth(){return this.getPropertyValue("border-top-width")}set borderTopWidth(e){this.setProperty("border-top-width",e)}get borderWidth(){return this.getPropertyValue("border-width")}set borderWidth(e){this.setProperty("border-width",e)}get borderEndEndRadius(){return this.getPropertyValue("border-end-end-radius")}set borderEndEndRadius(e){this.setProperty("border-end-end-radius",e)}get borderEndStartRadius(){return this.getPropertyValue("border-end-start-radius")}set borderEndStartRadius(e){this.setProperty("border-end-start-radius",e)}get borderStartEndRadius(){return this.getPropertyValue("border-start-end-radius")}set borderStartEndRadius(e){this.setProperty("border-start-end-radius",e)}get borderStartStartRadius(){return this.getPropertyValue("border-start-start-radius")}set borderStartStartRadius(e){this.setProperty("border-start-start-radius",e)}get bottom(){return this.getPropertyValue("bottom")}set bottom(e){this.setProperty("bottom",e)}get boxShadow(){return this.getPropertyValue("box-shadow")}set boxShadow(e){this.setProperty("box-shadow",e)}get boxSizing(){return this.getPropertyValue("box-sizing")}set boxSizing(e){this.setProperty("box-sizing",e)}get breakAfter(){return this.getPropertyValue("break-after")}set breakAfter(e){this.setProperty("break-after",e)}get breakBefore(){return this.getPropertyValue("break-before")}set breakBefore(e){this.setProperty("break-before",e)}get breakInside(){return this.getPropertyValue("break-inside")}set breakInside(e){this.setProperty("break-inside",e)}get bufferedRendering(){return this.getPropertyValue("buffered-rendering")}set bufferedRendering(e){this.setProperty("buffered-rendering",e)}get captionSide(){return this.getPropertyValue("caption-side")}set captionSide(e){this.setProperty("caption-side",e)}get caretColor(){return this.getPropertyValue("caret-color")}set caretColor(e){this.setProperty("caret-color",e)}get clear(){return this.getPropertyValue("clear")}set clear(e){this.setProperty("clear",e)}get clip(){return this.getPropertyValue("clip")}set clip(e){this.setProperty("clip",e)}get clipPath(){return this.getPropertyValue("clip-path")}set clipPath(e){this.setProperty("clip-path",e)}get clipRule(){return this.getPropertyValue("clip-rule")}set clipRule(e){this.setProperty("clip-rule",e)}get color(){return this.getPropertyValue("color")}set color(e){this.setProperty("color",e)}get colorInterpolation(){return this.getPropertyValue("color-interpolation")}set colorInterpolation(e){this.setProperty("color-interpolation",e)}get colorInterpolationFilters(){return this.getPropertyValue("color-interpolation-filters")}set colorInterpolationFilters(e){this.setProperty("color-interpolation-filters",e)}get colorRendering(){return this.getPropertyValue("color-rendering")}set colorRendering(e){this.setProperty("color-rendering",e)}get colorScheme(){return this.getPropertyValue("color-scheme")}set colorScheme(e){this.setProperty("color-scheme",e)}get columnCount(){return this.getPropertyValue("column-count")}set columnCount(e){this.setProperty("column-count",e)}get columnFill(){return this.getPropertyValue("column-fill")}set columnFill(e){this.setProperty("column-fill",e)}get columnGap(){return this.getPropertyValue("column-gap")}set columnGap(e){this.setProperty("column-gap",e)}get columnRule(){return this.getPropertyValue("column-rule")}set columnRule(e){this.setProperty("column-rule",e)}get columnRuleColor(){return this.getPropertyValue("column-rule-color")}set columnRuleColor(e){this.setProperty("column-rule-color",e)}get columnRuleStyle(){return this.getPropertyValue("column-rule-style")}set columnRuleStyle(e){this.setProperty("column-rule-style",e)}get columnRuleWidth(){return this.getPropertyValue("column-rule-width")}set columnRuleWidth(e){this.setProperty("column-rule-width",e)}get columnSpan(){return this.getPropertyValue("column-span")}set columnSpan(e){this.setProperty("column-span",e)}get columnWidth(){return this.getPropertyValue("column-width")}set columnWidth(e){this.setProperty("column-width",e)}get columns(){return this.getPropertyValue("columns")}set columns(e){this.setProperty("columns",e)}get contain(){return this.getPropertyValue("contain")}set contain(e){this.setProperty("contain",e)}get containIntrinsicSize(){return this.getPropertyValue("contain-intrinsic-size")}set containIntrinsicSize(e){this.setProperty("contain-intrinsic-size",e)}get content(){return this.getPropertyValue("content")}set content(e){this.setProperty("content",e)}get contentVisibility(){return this.getPropertyValue("content-visibility")}set contentVisibility(e){this.setProperty("content-visibility",e)}get counterIncrement(){return this.getPropertyValue("counter-increment")}set counterIncrement(e){this.setProperty("counter-increment",e)}get counterReset(){return this.getPropertyValue("counter-reset")}set counterReset(e){this.setProperty("counter-reset",e)}get counterSet(){return this.getPropertyValue("counter-set")}set counterSet(e){this.setProperty("counter-set",e)}get containIntrinsicBlockSize(){return this.getPropertyValue("contain-intrinsic-block-size")}set containIntrinsicBlockSize(e){this.setProperty("contain-intrinsic-block-size",e)}get containIntrinsicHeight(){return this.getPropertyValue("contain-intrinsic-height")}set containIntrinsicHeight(e){this.setProperty("contain-intrinsic-height",e)}get containIntrinsicInlineSize(){return this.getPropertyValue("contain-intrinsic-inline-size")}set containIntrinsicInlineSize(e){this.setProperty("contain-intrinsic-inline-size",e)}get containIntrinsicWidth(){return this.getPropertyValue("contain-intrinsic-width")}set containIntrinsicWidth(e){this.setProperty("contain-intrinsic-width",e)}get cssFloat(){return this.getPropertyValue("css-float")}set cssFloat(e){this.setProperty("css-float",e)}get cursor(){return this.getPropertyValue("cursor")}set cursor(e){this.setProperty("cursor",e)}get cx(){return this.getPropertyValue("cx")}set cx(e){this.setProperty("cx",e)}get cy(){return this.getPropertyValue("cy")}set cy(e){this.setProperty("cy",e)}get d(){return this.getPropertyValue("d")}set d(e){this.setProperty("d",e)}get direction(){return this.getPropertyValue("direction")}set direction(e){this.setProperty("direction",e)}get display(){return this.getPropertyValue("display")}set display(e){this.setProperty("display",e)}get dominantBaseline(){return this.getPropertyValue("dominant-baseline")}set dominantBaseline(e){this.setProperty("dominant-baseline",e)}get emptyCells(){return this.getPropertyValue("empty-cells")}set emptyCells(e){this.setProperty("empty-cells",e)}get fill(){return this.getPropertyValue("fill")}set fill(e){this.setProperty("fill",e)}get fillOpacity(){return this.getPropertyValue("fill-opacity")}set fillOpacity(e){this.setProperty("fill-opacity",e)}get fillRule(){return this.getPropertyValue("fill-rule")}set fillRule(e){this.setProperty("fill-rule",e)}get filter(){return this.getPropertyValue("filter")}set filter(e){this.setProperty("filter",e)}get flex(){return this.getPropertyValue("flex")}set flex(e){this.setProperty("flex",e)}get flexBasis(){return this.getPropertyValue("flex-basis")}set flexBasis(e){this.setProperty("flex-basis",e)}get flexDirection(){return this.getPropertyValue("flex-direction")}set flexDirection(e){this.setProperty("flex-direction",e)}get flexFlow(){return this.getPropertyValue("flex-flow")}set flexFlow(e){this.setProperty("flex-flow",e)}get flexGrow(){return this.getPropertyValue("flex-grow")}set flexGrow(e){this.setProperty("flex-grow",e)}get flexShrink(){return this.getPropertyValue("flex-shrink")}set flexShrink(e){this.setProperty("flex-shrink",e)}get flexWrap(){return this.getPropertyValue("flex-wrap")}set flexWrap(e){this.setProperty("flex-wrap",e)}get float(){return this.getPropertyValue("float")}set float(e){this.setProperty("float",e)}get floodColor(){return this.getPropertyValue("flood-color")}set floodColor(e){this.setProperty("flood-color",e)}get floodOpacity(){return this.getPropertyValue("flood-opacity")}set floodOpacity(e){this.setProperty("flood-opacity",e)}get font(){return this.getPropertyValue("font")}set font(e){this.setProperty("font",e)}get fontDisplay(){return this.getPropertyValue("font-display")}set fontDisplay(e){this.setProperty("font-display",e)}get fontFamily(){return this.getPropertyValue("font-family")}set fontFamily(e){this.setProperty("font-family",e)}get fontFeatureSettings(){return this.getPropertyValue("font-feature-settings")}set fontFeatureSettings(e){this.setProperty("font-feature-settings",e)}get fontKerning(){return this.getPropertyValue("font-kerning")}set fontKerning(e){this.setProperty("font-kerning",e)}get fontOpticalSizing(){return this.getPropertyValue("font-optical-sizing")}set fontOpticalSizing(e){this.setProperty("font-optical-sizing",e)}get fontSize(){return this.getPropertyValue("font-size")}set fontSize(e){this.setProperty("font-size",e)}get fontStretch(){return this.getPropertyValue("font-stretch")}set fontStretch(e){this.setProperty("font-stretch",e)}get fontStyle(){return this.getPropertyValue("font-style")}set fontStyle(e){this.setProperty("font-style",e)}get fontVariant(){return this.getPropertyValue("font-variant")}set fontVariant(e){this.setProperty("font-variant",e)}get fontVariantCaps(){return this.getPropertyValue("font-variant-caps")}set fontVariantCaps(e){this.setProperty("font-variant-caps",e)}get fontVariantEastAsian(){return this.getPropertyValue("font-variant-east-asian")}set fontVariantEastAsian(e){this.setProperty("font-variant-east-asian",e)}get fontVariantLigatures(){return this.getPropertyValue("font-variant-ligatures")}set fontVariantLigatures(e){this.setProperty("font-variant-ligatures",e)}get fontVariantNumeric(){return this.getPropertyValue("font-variant-numeric")}set fontVariantNumeric(e){this.setProperty("font-variant-numeric",e)}get fontVariationSettings(){return this.getPropertyValue("font-variation-settings")}set fontVariationSettings(e){this.setProperty("font-variation-settings",e)}get fontPalette(){return this.getPropertyValue("font-palette")}set fontPalette(e){this.setProperty("font-palette",e)}get fontSynthesisSmallCaps(){return this.getPropertyValue("font-synthesis-small-caps")}set fontSynthesisSmallCaps(e){this.setProperty("font-synthesis-small-caps",e)}get fontSynthesisStyle(){return this.getPropertyValue("font-synthesis-style")}set fontSynthesisStyle(e){this.setProperty("font-synthesis-style",e)}get fontSynthesisWeight(){return this.getPropertyValue("font-synthesis-weight")}set fontSynthesisWeight(e){this.setProperty("font-synthesis-weight",e)}get fontWeight(){return this.getPropertyValue("font-weight")}set fontWeight(e){this.setProperty("font-weight",e)}get gap(){return this.getPropertyValue("gap")}set gap(e){this.setProperty("gap",e)}get grid(){return this.getPropertyValue("grid")}set grid(e){this.setProperty("grid",e)}get gridArea(){return this.getPropertyValue("grid-area")}set gridArea(e){this.setProperty("grid-area",e)}get gridAutoColumns(){return this.getPropertyValue("grid-auto-columns")}set gridAutoColumns(e){this.setProperty("grid-auto-columns",e)}get gridAutoFlow(){return this.getPropertyValue("grid-auto-flow")}set gridAutoFlow(e){this.setProperty("grid-auto-flow",e)}get gridAutoRows(){return this.getPropertyValue("grid-auto-rows")}set gridAutoRows(e){this.setProperty("grid-auto-rows",e)}get gridColumn(){return this.getPropertyValue("grid-column")}set gridColumn(e){this.setProperty("grid-column",e)}get gridColumnEnd(){return this.getPropertyValue("grid-column-end")}set gridColumnEnd(e){this.setProperty("grid-column-end",e)}get gridColumnGap(){return this.getPropertyValue("grid-column-gap")}set gridColumnGap(e){this.setProperty("grid-column-gap",e)}get gridColumnStart(){return this.getPropertyValue("grid-column-start")}set gridColumnStart(e){this.setProperty("grid-column-start",e)}get gridGap(){return this.getPropertyValue("grid-gap")}set gridGap(e){this.setProperty("grid-gap",e)}get gridRow(){return this.getPropertyValue("grid-row")}set gridRow(e){this.setProperty("grid-row",e)}get gridRowEnd(){return this.getPropertyValue("grid-row-end")}set gridRowEnd(e){this.setProperty("grid-row-end",e)}get gridRowGap(){return this.getPropertyValue("grid-row-gap")}set gridRowGap(e){this.setProperty("grid-row-gap",e)}get gridRowStart(){return this.getPropertyValue("grid-row-start")}set gridRowStart(e){this.setProperty("grid-row-start",e)}get gridTemplate(){return this.getPropertyValue("grid-template")}set gridTemplate(e){this.setProperty("grid-template",e)}get gridTemplateAreas(){return this.getPropertyValue("grid-template-areas")}set gridTemplateAreas(e){this.setProperty("grid-template-areas",e)}get gridTemplateColumns(){return this.getPropertyValue("grid-template-columns")}set gridTemplateColumns(e){this.setProperty("grid-template-columns",e)}get gridTemplateRows(){return this.getPropertyValue("grid-template-rows")}set gridTemplateRows(e){this.setProperty("grid-template-rows",e)}get height(){return this.getPropertyValue("height")}set height(e){this.setProperty("height",e)}get hyphens(){return this.getPropertyValue("hyphens")}set hyphens(e){this.setProperty("hyphens",e)}get imageOrientation(){return this.getPropertyValue("image-orientation")}set imageOrientation(e){this.setProperty("image-orientation",e)}get imageRendering(){return this.getPropertyValue("image-rendering")}set imageRendering(e){this.setProperty("image-rendering",e)}get inherits(){return this.getPropertyValue("inherits")}set inherits(e){this.setProperty("inherits",e)}get initialValue(){return this.getPropertyValue("initial-value")}set initialValue(e){this.setProperty("initial-value",e)}get inlineSize(){return this.getPropertyValue("inline-size")}set inlineSize(e){this.setProperty("inline-size",e)}get isolation(){return this.getPropertyValue("isolation")}set isolation(e){this.setProperty("isolation",e)}get insetBlockEnd(){return this.getPropertyValue("inset-block-end")}set insetBlockEnd(e){this.setProperty("inset-block-end",e)}get insetBlockStart(){return this.getPropertyValue("inset-block-start")}set insetBlockStart(e){this.setProperty("inset-block-start",e)}get insetInlineEnd(){return this.getPropertyValue("inset-inline-end")}set insetInlineEnd(e){this.setProperty("inset-inline-end",e)}get insetInlineStart(){return this.getPropertyValue("inset-inline-start")}set insetInlineStart(e){this.setProperty("inset-inline-start",e)}get justifyContent(){return this.getPropertyValue("justify-content")}set justifyContent(e){this.setProperty("justify-content",e)}get justifyItems(){return this.getPropertyValue("justify-items")}set justifyItems(e){this.setProperty("justify-items",e)}get justifySelf(){return this.getPropertyValue("justify-self")}set justifySelf(e){this.setProperty("justify-self",e)}get left(){return this.getPropertyValue("left")}set left(e){this.setProperty("left",e)}get letterSpacing(){return this.getPropertyValue("letter-spacing")}set letterSpacing(e){this.setProperty("letter-spacing",e)}get lightingColor(){return this.getPropertyValue("lighting-color")}set lightingColor(e){this.setProperty("lighting-color",e)}get lineBreak(){return this.getPropertyValue("line-break")}set lineBreak(e){this.setProperty("line-break",e)}get lineHeight(){return this.getPropertyValue("line-height")}set lineHeight(e){this.setProperty("line-height",e)}get listStyle(){return this.getPropertyValue("list-style")}set listStyle(e){this.setProperty("list-style",e)}get listStyleImage(){return this.getPropertyValue("list-style-image")}set listStyleImage(e){this.setProperty("list-style-image",e)}get listStylePosition(){return this.getPropertyValue("list-style-position")}set listStylePosition(e){this.setProperty("list-style-position",e)}get listStyleType(){return this.getPropertyValue("list-style-type")}set listStyleType(e){this.setProperty("list-style-type",e)}get margin(){return this.getPropertyValue("margin")}set margin(e){this.setProperty("margin",e)}get marginBlockEnd(){return this.getPropertyValue("margin-block-end")}set marginBlockEnd(e){this.setProperty("margin-block-end",e)}get marginBlockStart(){return this.getPropertyValue("margin-block-start")}set marginBlockStart(e){this.setProperty("margin-block-start",e)}get marginBottom(){return this.getPropertyValue("margin-bottom")}set marginBottom(e){this.setProperty("margin-bottom",e)}get marginInlineEnd(){return this.getPropertyValue("margin-inline-end")}set marginInlineEnd(e){this.setProperty("margin-inline-end",e)}get marginInlineStart(){return this.getPropertyValue("margin-inline-start")}set marginInlineStart(e){this.setProperty("margin-inline-start",e)}get marginLeft(){return this.getPropertyValue("margin-left")}set marginLeft(e){this.setProperty("margin-left",e)}get marginRight(){return this.getPropertyValue("margin-right")}set marginRight(e){this.setProperty("margin-right",e)}get marginTop(){return this.getPropertyValue("margin-top")}set marginTop(e){this.setProperty("margin-top",e)}get marker(){return this.getPropertyValue("marker")}set marker(e){this.setProperty("marker",e)}get markerEnd(){return this.getPropertyValue("marker-end")}set markerEnd(e){this.setProperty("marker-end",e)}get markerMid(){return this.getPropertyValue("marker-mid")}set markerMid(e){this.setProperty("marker-mid",e)}get markerStart(){return this.getPropertyValue("marker-start")}set markerStart(e){this.setProperty("marker-start",e)}get mask(){return this.getPropertyValue("mask")}set mask(e){this.setProperty("mask",e)}get maskType(){return this.getPropertyValue("mask-type")}set maskType(e){this.setProperty("mask-type",e)}get maxBlockSize(){return this.getPropertyValue("max-block-size")}set maxBlockSize(e){this.setProperty("max-block-size",e)}get maxHeight(){return this.getPropertyValue("max-height")}set maxHeight(e){this.setProperty("max-height",e)}get maxInlineSize(){return this.getPropertyValue("max-inline-size")}set maxInlineSize(e){this.setProperty("max-inline-size",e)}get maxWidth(){return this.getPropertyValue("max-width")}set maxWidth(e){this.setProperty("max-width",e)}get maxZoom(){return this.getPropertyValue("max-zoom")}set maxZoom(e){this.setProperty("max-zoom",e)}get minBlockSize(){return this.getPropertyValue("min-block-size")}set minBlockSize(e){this.setProperty("min-block-size",e)}get minHeight(){return this.getPropertyValue("min-height")}set minHeight(e){this.setProperty("min-height",e)}get minInlineSize(){return this.getPropertyValue("min-inline-size")}set minInlineSize(e){this.setProperty("min-inline-size",e)}get minWidth(){return this.getPropertyValue("min-width")}set minWidth(e){this.setProperty("min-width",e)}get minZoom(){return this.getPropertyValue("min-zoom")}set minZoom(e){this.setProperty("min-zoom",e)}get mixBlendMode(){return this.getPropertyValue("mix-blend-mode")}set mixBlendMode(e){this.setProperty("mix-blend-mode",e)}get objectFit(){return this.getPropertyValue("object-fit")}set objectFit(e){this.setProperty("object-fit",e)}get objectPosition(){return this.getPropertyValue("object-position")}set objectPosition(e){this.setProperty("object-position",e)}get offset(){return this.getPropertyValue("offset")}set offset(e){this.setProperty("offset",e)}get offsetDistance(){return this.getPropertyValue("offset-distance")}set offsetDistance(e){this.setProperty("offset-distance",e)}get offsetPath(){return this.getPropertyValue("offset-path")}set offsetPath(e){this.setProperty("offset-path",e)}get offsetRotate(){return this.getPropertyValue("offset-rotate")}set offsetRotate(e){this.setProperty("offset-rotate",e)}get opacity(){return this.getPropertyValue("opacity")}set opacity(e){this.setProperty("opacity",e)}get order(){return this.getPropertyValue("order")}set order(e){this.setProperty("order",e)}get orientation(){return this.getPropertyValue("orientation")}set orientation(e){this.setProperty("orientation",e)}get orphans(){return this.getPropertyValue("orphans")}set orphans(e){this.setProperty("orphans",e)}get outline(){return this.getPropertyValue("outline")}set outline(e){this.setProperty("outline",e)}get outlineColor(){return this.getPropertyValue("outline-color")}set outlineColor(e){this.setProperty("outline-color",e)}get outlineOffset(){return this.getPropertyValue("outline-offset")}set outlineOffset(e){this.setProperty("outline-offset",e)}get outlineStyle(){return this.getPropertyValue("outline-style")}set outlineStyle(e){this.setProperty("outline-style",e)}get outlineWidth(){return this.getPropertyValue("outline-width")}set outlineWidth(e){this.setProperty("outline-width",e)}get overflow(){return this.getPropertyValue("overflow")}set overflow(e){this.setProperty("overflow",e)}get overflowAnchor(){return this.getPropertyValue("overflow-anchor")}set overflowAnchor(e){this.setProperty("overflow-anchor",e)}get overflowWrap(){return this.getPropertyValue("overflow-wrap")}set overflowWrap(e){this.setProperty("overflow-wrap",e)}get overflowX(){return this.getPropertyValue("overflow-x")}set overflowX(e){this.setProperty("overflow-x",e)}get overflowY(){return this.getPropertyValue("overflow-y")}set overflowY(e){this.setProperty("overflow-y",e)}get overscrollBehavior(){return this.getPropertyValue("overscroll-behavior")}set overscrollBehavior(e){this.setProperty("overscroll-behavior",e)}get overscrollBehaviorBlock(){return this.getPropertyValue("overscroll-behavior-block")}set overscrollBehaviorBlock(e){this.setProperty("overscroll-behavior-block",e)}get overscrollBehaviorInline(){return this.getPropertyValue("overscroll-behavior-inline")}set overscrollBehaviorInline(e){this.setProperty("overscroll-behavior-inline",e)}get overscrollBehaviorX(){return this.getPropertyValue("overscroll-behavior-x")}set overscrollBehaviorX(e){this.setProperty("overscroll-behavior-x",e)}get overscrollBehaviorY(){return this.getPropertyValue("overscroll-behavior-y")}set overscrollBehaviorY(e){this.setProperty("overscroll-behavior-y",e)}get overflowClipMargin(){return this.getPropertyValue("overflow-clip-margin")}set overflowClipMargin(e){this.setProperty("overflow-clip-margin",e)}get padding(){return this.getPropertyValue("padding")}set padding(e){this.setProperty("padding",e)}get paddingBlockEnd(){return this.getPropertyValue("padding-block-end")}set paddingBlockEnd(e){this.setProperty("padding-block-end",e)}get paddingBlockStart(){return this.getPropertyValue("padding-block-start")}set paddingBlockStart(e){this.setProperty("padding-block-start",e)}get paddingBottom(){return this.getPropertyValue("padding-bottom")}set paddingBottom(e){this.setProperty("padding-bottom",e)}get paddingInlineEnd(){return this.getPropertyValue("padding-inline-end")}set paddingInlineEnd(e){this.setProperty("padding-inline-end",e)}get paddingInlineStart(){return this.getPropertyValue("padding-inline-start")}set paddingInlineStart(e){this.setProperty("padding-inline-start",e)}get paddingLeft(){return this.getPropertyValue("padding-left")}set paddingLeft(e){this.setProperty("padding-left",e)}get paddingRight(){return this.getPropertyValue("padding-right")}set paddingRight(e){this.setProperty("padding-right",e)}get paddingTop(){return this.getPropertyValue("padding-top")}set paddingTop(e){this.setProperty("padding-top",e)}get page(){return this.getPropertyValue("page")}set page(e){this.setProperty("page",e)}get pageBreakAfter(){return this.getPropertyValue("page-break-after")}set pageBreakAfter(e){this.setProperty("page-break-after",e)}get pageBreakBefore(){return this.getPropertyValue("page-break-before")}set pageBreakBefore(e){this.setProperty("page-break-before",e)}get pageBreakInside(){return this.getPropertyValue("page-break-inside")}set pageBreakInside(e){this.setProperty("page-break-inside",e)}get pageOrientation(){return this.getPropertyValue("page-orientation")}set pageOrientation(e){this.setProperty("page-orientation",e)}get paintOrder(){return this.getPropertyValue("paint-order")}set paintOrder(e){this.setProperty("paint-order",e)}get perspective(){return this.getPropertyValue("perspective")}set perspective(e){this.setProperty("perspective",e)}get perspectiveOrigin(){return this.getPropertyValue("perspective-origin")}set perspectiveOrigin(e){this.setProperty("perspective-origin",e)}get placeContent(){return this.getPropertyValue("place-content")}set placeContent(e){this.setProperty("place-content",e)}get placeItems(){return this.getPropertyValue("place-items")}set placeItems(e){this.setProperty("place-items",e)}get placeSelf(){return this.getPropertyValue("place-self")}set placeSelf(e){this.setProperty("place-self",e)}get pointerEvents(){return this.getPropertyValue("pointer-events")}set pointerEvents(e){this.setProperty("pointer-events",e)}get position(){return this.getPropertyValue("position")}set position(e){this.setProperty("position",e)}get quotes(){return this.getPropertyValue("quotes")}set quotes(e){this.setProperty("quotes",e)}get r(){return this.getPropertyValue("r")}set r(e){this.setProperty("r",e)}get resize(){return this.getPropertyValue("resize")}set resize(e){this.setProperty("resize",e)}get right(){return this.getPropertyValue("right")}set right(e){this.setProperty("right",e)}get rowGap(){return this.getPropertyValue("row-gap")}set rowGap(e){this.setProperty("row-gap",e)}get rubyPosition(){return this.getPropertyValue("ruby-position")}set rubyPosition(e){this.setProperty("ruby-position",e)}get rx(){return this.getPropertyValue("rx")}set rx(e){this.setProperty("rx",e)}get ry(){return this.getPropertyValue("ry")}set ry(e){this.setProperty("ry",e)}get scrollBehavior(){return this.getPropertyValue("scroll-behavior")}set scrollBehavior(e){this.setProperty("scroll-behavior",e)}get scrollMargin(){return this.getPropertyValue("scroll-margin")}set scrollMargin(e){this.setProperty("scroll-margin",e)}get scrollMarginBlock(){return this.getPropertyValue("scroll-margin-block")}set scrollMarginBlock(e){this.setProperty("scroll-margin-block",e)}get scrollMarginBlockEnd(){return this.getPropertyValue("scroll-margin-block-end")}set scrollMarginBlockEnd(e){this.setProperty("scroll-margin-block-end",e)}get scrollMarginBlockStart(){return this.getPropertyValue("scroll-margin-block-start")}set scrollMarginBlockStart(e){this.setProperty("scroll-margin-block-start",e)}get scrollMarginBottom(){return this.getPropertyValue("scroll-margin-bottom")}set scrollMarginBottom(e){this.setProperty("scroll-margin-bottom",e)}get scrollMarginInline(){return this.getPropertyValue("scroll-margin-inline")}set scrollMarginInline(e){this.setProperty("scroll-margin-inline",e)}get scrollMarginInlineEnd(){return this.getPropertyValue("scroll-margin-inline-end")}set scrollMarginInlineEnd(e){this.setProperty("scroll-margin-inline-end",e)}get scrollMarginInlineStart(){return this.getPropertyValue("scroll-margin-inline-start")}set scrollMarginInlineStart(e){this.setProperty("scroll-margin-inline-start",e)}get scrollMarginLeft(){return this.getPropertyValue("scroll-margin-left")}set scrollMarginLeft(e){this.setProperty("scroll-margin-left",e)}get scrollMarginRight(){return this.getPropertyValue("scroll-margin-right")}set scrollMarginRight(e){this.setProperty("scroll-margin-right",e)}get scrollMarginTop(){return this.getPropertyValue("scroll-margin-top")}set scrollMarginTop(e){this.setProperty("scroll-margin-top",e)}get scrollPadding(){return this.getPropertyValue("scroll-padding")}set scrollPadding(e){this.setProperty("scroll-padding",e)}get scrollPaddingBlock(){return this.getPropertyValue("scroll-padding-block")}set scrollPaddingBlock(e){this.setProperty("scroll-padding-block",e)}get scrollPaddingBlockEnd(){return this.getPropertyValue("scroll-padding-block-end")}set scrollPaddingBlockEnd(e){this.setProperty("scroll-padding-block-end",e)}get scrollPaddingBlockStart(){return this.getPropertyValue("scroll-padding-block-start")}set scrollPaddingBlockStart(e){this.setProperty("scroll-padding-block-start",e)}get scrollPaddingBottom(){return this.getPropertyValue("scroll-padding-bottom")}set scrollPaddingBottom(e){this.setProperty("scroll-padding-bottom",e)}get scrollPaddingInline(){return this.getPropertyValue("scroll-padding-inline")}set scrollPaddingInline(e){this.setProperty("scroll-padding-inline",e)}get scrollPaddingInlineEnd(){return this.getPropertyValue("scroll-padding-inline-end")}set scrollPaddingInlineEnd(e){this.setProperty("scroll-padding-inline-end",e)}get scrollPaddingInlineStart(){return this.getPropertyValue("scroll-padding-inline-start")}set scrollPaddingInlineStart(e){this.setProperty("scroll-padding-inline-start",e)}get scrollPaddingLeft(){return this.getPropertyValue("scroll-padding-left")}set scrollPaddingLeft(e){this.setProperty("scroll-padding-left",e)}get scrollPaddingRight(){return this.getPropertyValue("scroll-padding-right")}set scrollPaddingRight(e){this.setProperty("scroll-padding-right",e)}get scrollPaddingTop(){return this.getPropertyValue("scroll-padding-top")}set scrollPaddingTop(e){this.setProperty("scroll-padding-top",e)}get scrollSnapAlign(){return this.getPropertyValue("scroll-snap-align")}set scrollSnapAlign(e){this.setProperty("scroll-snap-align",e)}get scrollSnapStop(){return this.getPropertyValue("scroll-snap-stop")}set scrollSnapStop(e){this.setProperty("scroll-snap-stop",e)}get scrollSnapType(){return this.getPropertyValue("scroll-snap-type")}set scrollSnapType(e){this.setProperty("scroll-snap-type",e)}get shapeImageThreshold(){return this.getPropertyValue("shape-image-threshold")}set shapeImageThreshold(e){this.setProperty("shape-image-threshold",e)}get shapeMargin(){return this.getPropertyValue("shape-margin")}set shapeMargin(e){this.setProperty("shape-margin",e)}get shapeOutside(){return this.getPropertyValue("shape-outside")}set shapeOutside(e){this.setProperty("shape-outside",e)}get shapeRendering(){return this.getPropertyValue("shape-rendering")}set shapeRendering(e){this.setProperty("shape-rendering",e)}get size(){return this.getPropertyValue("size")}set size(e){this.setProperty("size",e)}get speak(){return this.getPropertyValue("speak")}set speak(e){this.setProperty("speak",e)}get src(){return this.getPropertyValue("src")}set src(e){this.setProperty("src",e)}get stopColor(){return this.getPropertyValue("stop-color")}set stopColor(e){this.setProperty("stop-color",e)}get stopOpacity(){return this.getPropertyValue("stop-opacity")}set stopOpacity(e){this.setProperty("stop-opacity",e)}get stroke(){return this.getPropertyValue("stroke")}set stroke(e){this.setProperty("stroke",e)}get strokeDasharray(){return this.getPropertyValue("stroke-dasharray")}set strokeDasharray(e){this.setProperty("stroke-dasharray",e)}get strokeDashoffset(){return this.getPropertyValue("stroke-dashoffset")}set strokeDashoffset(e){this.setProperty("stroke-dashoffset",e)}get strokeLinecap(){return this.getPropertyValue("stroke-linecap")}set strokeLinecap(e){this.setProperty("stroke-linecap",e)}get strokeLinejoin(){return this.getPropertyValue("stroke-linejoin")}set strokeLinejoin(e){this.setProperty("stroke-linejoin",e)}get strokeMiterlimit(){return this.getPropertyValue("stroke-miterlimit")}set strokeMiterlimit(e){this.setProperty("stroke-miterlimit",e)}get strokeOpacity(){return this.getPropertyValue("stroke-opacity")}set strokeOpacity(e){this.setProperty("stroke-opacity",e)}get strokeWidth(){return this.getPropertyValue("stroke-width")}set strokeWidth(e){this.setProperty("stroke-width",e)}get syntax(){return this.getPropertyValue("syntax")}set syntax(e){this.setProperty("syntax",e)}get scrollbarGutter(){return this.getPropertyValue("scrollbar-gutter")}set scrollbarGutter(e){this.setProperty("scrollbar-gutter",e)}get tabSize(){return this.getPropertyValue("tab-size")}set tabSize(e){this.setProperty("tab-size",e)}get tableLayout(){return this.getPropertyValue("table-layout")}set tableLayout(e){this.setProperty("table-layout",e)}get textAlign(){return this.getPropertyValue("text-align")}set textAlign(e){this.setProperty("text-align",e)}get textAlignLast(){return this.getPropertyValue("text-align-last")}set textAlignLast(e){this.setProperty("text-align-last",e)}get textAnchor(){return this.getPropertyValue("text-anchor")}set textAnchor(e){this.setProperty("text-anchor",e)}get textCombineUpright(){return this.getPropertyValue("text-combine-upright")}set textCombineUpright(e){this.setProperty("text-combine-upright",e)}get textDecoration(){return this.getPropertyValue("text-decoration")}set textDecoration(e){this.setProperty("text-decoration",e)}get textDecorationColor(){return this.getPropertyValue("text-decoration-color")}set textDecorationColor(e){this.setProperty("text-decoration-color",e)}get textDecorationLine(){return this.getPropertyValue("text-decoration-line")}set textDecorationLine(e){this.setProperty("text-decoration-line",e)}get textDecorationSkipInk(){return this.getPropertyValue("text-decoration-skip-ink")}set textDecorationSkipInk(e){this.setProperty("text-decoration-skip-ink",e)}get textDecorationStyle(){return this.getPropertyValue("text-decoration-style")}set textDecorationStyle(e){this.setProperty("text-decoration-style",e)}get textIndent(){return this.getPropertyValue("text-indent")}set textIndent(e){this.setProperty("text-indent",e)}get textOrientation(){return this.getPropertyValue("text-orientation")}set textOrientation(e){this.setProperty("text-orientation",e)}get textOverflow(){return this.getPropertyValue("text-overflow")}set textOverflow(e){this.setProperty("text-overflow",e)}get textRendering(){return this.getPropertyValue("text-rendering")}set textRendering(e){this.setProperty("text-rendering",e)}get textShadow(){return this.getPropertyValue("text-shadow")}set textShadow(e){this.setProperty("text-shadow",e)}get textSizeAdjust(){return this.getPropertyValue("text-size-adjust")}set textSizeAdjust(e){this.setProperty("text-size-adjust",e)}get textTransform(){return this.getPropertyValue("text-transform")}set textTransform(e){this.setProperty("text-transform",e)}get textUnderlinePosition(){return this.getPropertyValue("text-underline-position")}set textUnderlinePosition(e){this.setProperty("text-underline-position",e)}get top(){return this.getPropertyValue("top")}set top(e){this.setProperty("top",e)}get touchAction(){return this.getPropertyValue("touch-action")}set touchAction(e){this.setProperty("touch-action",e)}get transform(){return this.getPropertyValue("transform")}set transform(e){this.setProperty("transform",e)}get transformBox(){return this.getPropertyValue("transform-box")}set transformBox(e){this.setProperty("transform-box",e)}get transformOrigin(){return this.getPropertyValue("transform-origin")}set transformOrigin(e){this.setProperty("transform-origin",e)}get transformStyle(){return this.getPropertyValue("transform-style")}set transformStyle(e){this.setProperty("transform-style",e)}get transition(){return this.getPropertyValue("transition")}set transition(e){this.setProperty("transition",e)}get transitionDelay(){return this.getPropertyValue("transition-delay")}set transitionDelay(e){this.setProperty("transition-delay",e)}get transitionDuration(){return this.getPropertyValue("transition-duration")}set transitionDuration(e){this.setProperty("transition-duration",e)}get transitionProperty(){return this.getPropertyValue("transition-property")}set transitionProperty(e){this.setProperty("transition-property",e)}get transitionTimingFunction(){return this.getPropertyValue("transition-timing-function")}set transitionTimingFunction(e){this.setProperty("transition-timing-function",e)}get textEmphasisColor(){return this.getPropertyValue("text-emphasis-color")}set textEmphasisColor(e){this.setProperty("text-emphasis-color",e)}get textEmphasisPosition(){return this.getPropertyValue("text-emphasis-position")}set textEmphasisPosition(e){this.setProperty("text-emphasis-position",e)}get textEmphasisStyle(){return this.getPropertyValue("text-emphasis-style")}set textEmphasisStyle(e){this.setProperty("text-emphasis-style",e)}get unicodeBidi(){return this.getPropertyValue("unicode-bidi")}set unicodeBidi(e){this.setProperty("unicode-bidi",e)}get unicodeRange(){return this.getPropertyValue("unicode-range")}set unicodeRange(e){this.setProperty("unicode-range",e)}get userSelect(){return this.getPropertyValue("user-select")}set userSelect(e){this.setProperty("user-select",e)}get userZoom(){return this.getPropertyValue("user-zoom")}set userZoom(e){this.setProperty("user-zoom",e)}get vectorEffect(){return this.getPropertyValue("vector-effect")}set vectorEffect(e){this.setProperty("vector-effect",e)}get verticalAlign(){return this.getPropertyValue("vertical-align")}set verticalAlign(e){this.setProperty("vertical-align",e)}get visibility(){return this.getPropertyValue("visibility")}set visibility(e){this.setProperty("visibility",e)}get whiteSpace(){return this.getPropertyValue("white-space")}set whiteSpace(e){this.setProperty("white-space",e)}get widows(){return this.getPropertyValue("widows")}set widows(e){this.setProperty("widows",e)}get width(){return this.getPropertyValue("width")}set width(e){this.setProperty("width",e)}get willChange(){return this.getPropertyValue("will-change")}set willChange(e){this.setProperty("will-change",e)}get wordBreak(){return this.getPropertyValue("word-break")}set wordBreak(e){this.setProperty("word-break",e)}get wordSpacing(){return this.getPropertyValue("word-spacing")}set wordSpacing(e){this.setProperty("word-spacing",e)}get wordWrap(){return this.getPropertyValue("word-wrap")}set wordWrap(e){this.setProperty("word-wrap",e)}get writingMode(){return this.getPropertyValue("writing-mode")}set writingMode(e){this.setProperty("writing-mode",e)}get x(){return this.getPropertyValue("x")}set x(e){this.setProperty("x",e)}get y(){return this.getPropertyValue("y")}set y(e){this.setProperty("y",e)}get zIndex(){return this.getPropertyValue("z-index")}set zIndex(e){this.setProperty("z-index",e)}get zoom(){return this.getPropertyValue("zoom")}set zoom(e){this.setProperty("zoom",e)}get containerType(){return this.getPropertyValue("container-type")}set containerType(e){this.setProperty("container-type",e)}get containerName(){return this.getPropertyValue("container-name")}set containerName(e){this.setProperty("container-name",e)}get aspectRatio(){return this.getPropertyValue("aspect-ratio")}set aspectRatio(e){this.setProperty("aspect-ratio",e)}get length(){return D(this,Dn,Ja).call(this).size()}get cssText(){return u(this,Si)&&u(this,Ol)?"":D(this,Dn,Ja).call(this).toString()}set cssText(e){if(u(this,Ol))throw new this[m].DOMException("Failed to execute 'cssText' on 'CSSStyleDeclaration': These styles are computed, and the properties are therefore read-only.",v.domException);u(this,Si)?(u(this,Pi).propertyManager=new Ls({cssText:e}),u(this,Pi).attributeValue=e,u(this,Si).setAttribute("style",u(this,Pi).propertyManager.toString())):u(this,Pi).propertyManager=new Ls({cssText:e})}item(e){return D(this,Dn,Ja).call(this).item(e)}setProperty(e,t,r){if(u(this,Ol))throw new this[m].DOMException(`Failed to execute 'setProperty' on 'CSSStyleDeclaration': These styles are computed, and therefore the '${e}' property is read-only.`,v.domException);if(r!==""&&r!==void 0&&r!=="important")return;let o=String(t).trim(),i=D(this,Dn,Ja).call(this);o?i.set(e,o,!!r):i.remove(e),u(this,Si)&&(u(this,Pi).attributeValue=i.toString(),u(this,Pi).attributeValue?u(this,Si).setAttribute("style",u(this,Pi).attributeValue):u(this,Si).removeAttribute("style"))}removeProperty(e){if(u(this,Ol))throw new this[m].DOMException(`Failed to execute 'removeProperty' on 'CSSStyleDeclaration': These styles are computed, and therefore the '${e}' property is read-only.`,v.domException);let t=D(this,Dn,Ja).call(this);t.remove(e),u(this,Si)&&(u(this,Pi).attributeValue=t.toString(),u(this,Pi).attributeValue?u(this,Si).setAttribute("style",u(this,Pi).attributeValue):u(this,Si).removeAttribute("style"))}getPropertyValue(e){return D(this,Dn,Ja).call(this).get(e)?.value||""}getPropertyPriority(e){return D(this,Dn,Ja).call(this).get(e)?.important?"important":""}};Si=new WeakMap,Ol=new WeakMap,Pi=new WeakMap,Dn=new WeakSet,Ja=function(){let e=u(this,Si),t=u(this,Pi);if(!e)return t.propertyManager||(t.propertyManager=new Ls),t.propertyManager;if(u(this,Ol))return new fb(e).getComputedStyle();let r=e.getAttribute("style")||"";return t.attributeValue!==r&&(t.propertyManager=new Ls({cssText:r})),t.propertyManager};var vE,TE,rs=class extends(TE=es,vE=Ko,TE){constructor(){super(...arguments);s(this,vE,"")}get conditionText(){return this[Ko]}};var CE,NE,LE,Za=class extends(LE=rs,NE=zt,CE=bo,LE){constructor(){super(...arguments);s(this,NE,ht.containerRule);s(this,CE,"")}get type(){return ht.containerRule}get cssText(){let t="";for(let r of this[sr])t+=`
26
26
  `+r.cssText;return t+=`
27
27
  `,`@${this[bo]}container ${this[Ko]} {${t}}`}};var kE,IE,tm,em=class extends(IE=Re,kE=Xr,IE){constructor(){super(...arguments);s(this,kE,"");E(this,tm,null)}get type(){return ht.fontFaceRule}get cssText(){return`@font-face { ${this.style.cssText} }`}get style(){return u(this,tm)||(w(this,tm,new go(h,this[m])),u(this,tm).parentRule=this,u(this,tm).cssText=this[Xr]),u(this,tm)}};tm=new WeakMap;var ME,RE,FE,rm,On=class extends(FE=Re,RE=In,ME=Xr,FE){constructor(){super(...arguments);s(this,RE,"");s(this,ME,"");E(this,rm,null)}get type(){return ht.keyframeRule}get cssText(){return`${this[In]} { ${this.style.cssText} }`}get style(){return u(this,rm)||(w(this,rm,new go(h,this[m])),u(this,rm).parentRule=this,u(this,rm).cssText=this[Xr]),u(this,rm)}get keyText(){return this[In]}};rm=new WeakMap;var U2=/^(from|to|[0-9]{1,3}%)\s*{([^}]*)}$/,BE,DE,OE,VE,om=class extends(VE=Re,OE=sr,DE=st,BE=bo,VE){constructor(){super(...arguments);s(this,OE,[]);s(this,DE,"");s(this,BE,"")}get type(){return ht.keyframesRule}get cssText(){let t="";for(let r of this[sr])t+=`
28
28
  `+r.cssText;return t+=`
@@ -41,7 +41,7 @@ Content-Type: ${a.type||"application/octet-stream"}\r
41
41
  `)),r.push(a[Mt]),r.push(Iy.from(`\r
42
42
  `)));r.push(Iy.from(`--${t}--\r
43
43
  `));let i=Iy.concat(r);return{contentType:`multipart/form-data; boundary=${t}`,contentLength:i.length,buffer:i,stream:new $2({start(n){n.enqueue(i),n.close()}})}}static escapeName(e,t=!1){return(t?e:e.replace(/\r?\n|\r/g,`\r
44
- `)).replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22")}};import{ReadableStream as xS}from"stream/web";import{URLSearchParams as X2}from"url";var $o,xb,eA,cm=class{constructor(e,t){E(this,xb);E(this,$o,[]);if(!e)return;if(t){let o=e[Vt]?e[Vt]:e;if(t.form!==o)throw new this[m].DOMException("The specified element is not owned by this form element",v.notFoundError);if(!(t[Z]==="INPUT"&&(t.type==="submit"||t.type==="image")||t[Z]==="BUTTON"&&t.type==="submit"))throw new this[m].TypeError("The specified element is not a submit button")}let r=e[Do]();for(let o of r){let i=o.name;if(i)switch(o[Z]){case"INPUT":if(o.disabled)break;switch(o.type){case"file":if(o[Qi].length===0)this.append(i,new jo([],"",{type:"application/octet-stream"}));else for(let n of o[Qi])this.append(i,n);break;case"checkbox":case"radio":o.checked&&this.append(i,o.value);break;case"submit":case"reset":case"button":o===t&&o.value&&this.append(i,o.value);break;default:this.append(i,o.value);break}break;case"BUTTON":o===t&&o.value&&this.append(i,o.value);break;case"TEXTAREA":case"SELECT":this.append(i,o.value);break}}}forEach(e,t){for(let r of u(this,$o))e.call(t,r.value,r.name,this)}append(e,t,r){if(r&&!(t instanceof be))throw new this[m].TypeError('Failed to execute "append" on "FormData": parameter 2 is not of type "Blob".');u(this,$o).push({name:e,value:D(this,xb,eA).call(this,t,r)})}delete(e){let t=[];for(let r of u(this,$o))r.name!==e&&t.push(r);w(this,$o,t)}get(e){for(let t of u(this,$o))if(t.name===e)return t.value;return null}getAll(e){let t=[];for(let r of u(this,$o))r.name===e&&t.push(r.value);return t}has(e){for(let t of u(this,$o))if(t.name===e)return!0;return!1}set(e,t,r){for(let o of u(this,$o))if(o.name===e){o.value=D(this,xb,eA).call(this,t,r);return}this.append(e,t)}*keys(){for(let e of u(this,$o))yield e.name}*values(){for(let e of u(this,$o))yield e.value}*entries(){for(let e of u(this,$o))yield[e.name,e.value]}*[Symbol.iterator](){for(let e of u(this,$o))yield[e.name,e.value]}};$o=new WeakMap,xb=new WeakSet,eA=function(e,t){if(e instanceof jo){if(t){let r=new jo([],t,{type:e.type,lastModified:e.lastModified});return r[Mt]=e[Mt],r}return e}if(e instanceof be){let r=new jo([],"blob",{type:e.type});return r[Mt]=e[Mt],r}return String(e)};import{Buffer as dm}from"buffer";import lx from"stream";var dr=class{static getBodyStream(e){if(e==null)return{stream:null,buffer:null,contentType:null,contentLength:null};if(e instanceof X2){let r=dm.from(e.toString());return{buffer:r,stream:this.toReadableStream(r),contentType:"application/x-www-form-urlencoded;charset=UTF-8",contentLength:r.length}}else if(e instanceof be){let r=e[Mt];return{buffer:r,stream:this.toReadableStream(r),contentType:e.type,contentLength:e.size}}else{if(dm.isBuffer(e))return{buffer:e,stream:this.toReadableStream(e),contentType:null,contentLength:e.length};if(e instanceof ArrayBuffer){let r=dm.from(e);return{buffer:r,stream:this.toReadableStream(r),contentType:null,contentLength:e.byteLength}}else if(ArrayBuffer.isView(e)){let r=dm.from(e.buffer,e.byteOffset,e.byteLength);return{buffer:r,stream:this.toReadableStream(r),contentType:null,contentLength:e.byteLength}}else{if(e instanceof xS)return{buffer:null,stream:e,contentType:null,contentLength:null};if(e instanceof cm)return _l.formDataToStream(e)}}let t=dm.from(String(e));return{buffer:t,stream:this.toReadableStream(t),contentType:"text/plain;charset=UTF-8",contentLength:t.length}}static cloneBodyStream(e,t){if(t.bodyUsed)throw new e.DOMException("Failed to clone body stream of request: Request body is already used.",v.invalidStateError);if(t.body===null||t.body===void 0)return null;if(t[Mt])return this.toReadableStream(t[Mt]);if(t.body[Rc]){let i=new lx.PassThrough,n=new lx.PassThrough;t.body[Rc].pipe(i),t.body[Rc].pipe(n);let a=this.nodeToWebStream(i);return Ll in t?t[Ll]=a:t.body=a,this.nodeToWebStream(n)}let[r,o]=t.body.tee();return Ll in t?t[Ll]=r:t.body=r,o}static async consumeBodyStream(e,t){let r=t.body;if(r===null||!(r instanceof xS))return dm.alloc(0);if(t[hr])throw t[hr];let o=r.getReader(),i=[],n=0;try{let a=await o.read();for(;!a.done;){if(t[hr])throw t[hr];if(t[ve])throw new e.DOMException("Failed to read response body: The stream was aborted.",v.abortError);let y=a.value;n+=y.length,i.push(y),a=await o.read()}}catch(a){throw a instanceof ae?a:new e.DOMException(`Failed to read response body. Error: ${a.message}.`,v.encodingError)}try{return typeof i[0]=="string"?dm.from(i.join("")):dm.concat(i,n)}catch(a){throw new e.DOMException(`Could not create Buffer from response body. Error: ${a.message}.`,v.invalidStateError)}}static toReadableStream(e){return new xS({start(t){t.enqueue(e),t.close()}})}static nodeToWebStream(e){let t=new xS({start(r){e.on("data",o=>{r.enqueue(o)}),e.on("end",()=>{r.close()}),e.on("error",o=>{r.error(o)})}});return t[Rc]=e,t}};var z2=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],J2=["error","manual","follow"],Z2=["data:","http:","https:"],tU=["TRACE","TRACK","CONNECT"],eU=/^[A-Z]+$/,Ri=class{static validateMethod(e){if(!e.method||tU.includes(e.method))throw new ae(`'${e.method||""}' is not a valid HTTP method.`,v.invalidStateError);if(!eU.test(e.method))throw new ae(`'${e.method}' HTTP method is unsupported.`,v.invalidStateError)}static validateBody(e){if(e.body&&(e.method==="GET"||e.method==="HEAD"))throw new ae("Request with GET/HEAD method cannot have body.",v.invalidStateError)}static validateURL(e){if(e.username!==""||e.password!=="")throw new ae(`${e} is an url with embedded credentials.`,v.notSupportedError)}static validateReferrerPolicy(e){if(!z2.includes(e))throw new ae(`Invalid referrer policy "${e}".`,v.syntaxError)}static validateRedirect(e){if(!J2.includes(e))throw new ae(`Invalid redirect "${e}".`,v.syntaxError)}static validateSchema(e){if(!Z2.includes(e[Ie].protocol))throw new ae(`Failed to fetch from "${e.url}": URL scheme "${e[Ie].protocol.replace(/:$/,"")}" is not supported.`,v.notSupportedError)}};var Fi=class{static stringToCookie(e,t){let r=t.split(";"),o=r.shift();if(!o)return null;let i=o.indexOf("="),n=i!==-1?o.slice(0,i).trim():o.trim(),a=i!==-1?o.slice(i+1).trim():null,y=Object.assign({},SS,{key:n,value:a,originURL:e});if(!y.key)return null;for(let d of r){let b=d.indexOf("="),f=b!==-1?d.slice(0,b).trim().toLowerCase():d.trim().toLowerCase(),S=b!==-1?d.slice(b+1).trim():"";switch(f){case"expires":y.expires=new Date(S);break;case"max-age":y.expires=new Date(parseInt(S,10)*1e3+Date.now());break;case"domain":y.domain=S;break;case"path":y.path=S[0]==="/"?S:`/${S}`;break;case"httponly":y.httpOnly=!0;break;case"secure":y.secure=!0;break;case"samesite":switch(S.toLowerCase()){case"strict":y.sameSite=Rl.strict;break;case"lax":y.sameSite=Rl.lax;break;case"none":y.sameSite=Rl.none}break}}let p=y.key.toLowerCase();return p.startsWith("__secure-")&&!y.secure||p.startsWith("__host-")&&(!y.secure||y.path!=="/"||y.domain)?null:y}static cookiesToString(e){let t=[];for(let r of e)r.value!==null?t.push(`${r.key}=${r.value}`):t.push(r.key);return t.join("; ")}};import{URL as ax}from"url";var mx=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","content-transfer-encoding","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],Fs=class{static removeForbiddenHeaders(e){for(let t of Object.keys(e[Pr]))(mx.includes(t)||t.startsWith("proxy-")||t.startsWith("sec-"))&&delete e[Pr][t]}static isHeaderForbidden(e){return mx.includes(e.toLowerCase())}static getRequestHeaders(e){let t=new e.window.Headers(e.baseHeaders);e.request.headers.forEach((n,a)=>{t.set(a,n)});let r=new ax(e.window.location.href),o=Mi.isCORS(r,e.request[Ie]);if(t.set("Accept-Encoding","gzip, deflate, br"),t.set("Connection","close"),t.has("User-Agent")||t.set("User-Agent",e.window.navigator.userAgent),e.request[zr]instanceof ax&&t.set("Referer",e.request[zr].href),e.request.credentials==="include"||e.request.credentials==="same-origin"&&!o){let n=e.browserFrame.page.context.cookieContainer.getCookies(r,!1);n.length>0&&t.set("Cookie",Fi.cookiesToString(n))}else t.delete("Cookie"),t.delete("Cookie2");t.has("Accept")||t.set("Accept","*/*"),!t.has("Content-Length")&&e.request[iy]!==null&&t.set("Content-Length",String(e.request[iy])),!t.has("Content-Type")&&e.request[Fe]&&t.set("Content-Type",e.request[Fe]),o&&t.set("Origin",r.origin);let i={};for(let n of Object.values(t[Pr]))i[n.name]=n.value.join(", ");return i}};var yx,ux,px,hx,cx,dx,bx,gx,fx,Sx,Px,Ax,wx,Ex,xx,vx,bm=class l{constructor(e,t){s(this,vx);s(this,xx);s(this,Ex,"cors");s(this,wx);s(this,Ax);s(this,Px);s(this,Sx);s(this,fx,!1);s(this,gx);s(this,bx,!1);s(this,dx,null);s(this,cx,null);s(this,hx,null);s(this,px,"client");s(this,ux);s(this,yx);let r=this[m];if(!r)throw new TypeError("Failed to construct 'Request': 'Request' was constructed outside a Window context.");if(typeof e!="string"&&!e)throw new r.TypeError("Failed to construct 'Request': 1 argument required, only 0 present.");if(this[Cl]=(t?.method||e.method||"GET").toUpperCase(),t?.mode)switch(t.mode){case"navigate":case"websocket":throw new r.DOMException(`Failed to construct 'Request': Cannot construct a Request with a RequestInit whose mode member is set as '${t.mode}'.`,v.securityError);case"same-origin":case"no-cors":case"cors":this[Me]=t.mode;break;default:throw new r.DOMException(`Failed to construct 'Request': The provided value '${t.mode}' is not a valid enum value of type RequestMode.`,v.syntaxError)}else e instanceof l&&(this[Me]=e.mode);let{stream:o,buffer:i,contentType:n,contentLength:a}=dr.getBodyStream(e instanceof l&&(e[fs]||e.body)?e[fs]||dr.cloneBodyStream(r,e):t?.body??null);if(this[fs]=i,this[Ll]=o,this[gS]=t?.credentials||e.credentials||"same-origin",this[mS]=new this[m].Headers(t?.headers||e.headers||{}),Fs.removeForbiddenHeaders(this.headers),a?this[iy]=a:!this.body&&(this.method==="POST"||this.method==="PUT")&&(this[iy]=0),n?(this.headers.has("Content-Type")||this.headers.set("Content-Type",n),this[Fe]=n):e instanceof l&&e[Fe]&&(this[Fe]=e[Fe]),this[dS]=t?.redirect||e.redirect||"follow",this[Du]=(t?.referrerPolicy||e.referrerPolicy||"").toLowerCase(),this[bS]=t?.signal||e.signal||new r.AbortSignal,this[zr]=Rs.getInitialReferrer(r,t?.referrer!==null&&t?.referrer!==void 0?t?.referrer:e.referrer),e instanceof rA)this[Ie]=e;else try{e instanceof l&&e.url?this[Ie]=new rA(e.url,r.location.href):this[Ie]=new rA(e,r.location.href)}catch{throw new r.DOMException(`Failed to construct 'Request': Invalid URL "${e}" on document location '${r.location}'.${r.location.origin==="null"?" Relative URLs are not permitted on current document location.":""}`,v.notSupportedError)}Ri.validateMethod(this),Ri.validateBody(this),Ri.validateURL(this[Ie]),Ri.validateReferrerPolicy(this.referrerPolicy),Ri.validateRedirect(this.redirect)}get method(){return this[Cl]}get body(){return this[Ll]}get mode(){return this[Me]}get headers(){return this[mS]}get redirect(){return this[dS]}get referrerPolicy(){return this[Du]}get signal(){return this[bS]}get bodyUsed(){return this[Ts]}get credentials(){return this[gS]}get referrer(){return!this[zr]||this[zr]==="no-referrer"?"":this[zr]==="client"?"about:client":this[zr].toString()}get url(){return this[Ie].href}get[(vx=Cl,xx=Ll,Ex=Me,wx=mS,Ax=dS,Px=Du,Sx=bS,fx=Ts,gx=gS,bx=ve,dx=hr,cx=iy,hx=Fe,px=zr,ux=Ie,yx=fs,Symbol.toStringTag)](){return"Request"}async arrayBuffer(){let e=this[m];if(this[Ts])throw new e.DOMException(`Body has already been used for "${this.url}".`,v.invalidStateError);let t=new rt(e).getAsyncTaskManager();this[Ts]=!0;let r=t.startTask(()=>{this[ve]=!0,this.signal[gs]()}),o;try{o=await dr.consumeBodyStream(e,this)}catch(i){throw t.endTask(r),i}return t.endTask(r),o.buffer.slice(o.byteOffset,o.byteOffset+o.byteLength)}async blob(){let e=this.headers.get("Content-Type")||"",t=await this.arrayBuffer();return new be([t],{type:e})}async buffer(){let e=this[m];if(this[Ts])throw new e.DOMException(`Body has already been used for "${this.url}".`,v.invalidStateError);let t=new rt(e).getAsyncTaskManager();this[Ts]=!0;let r=t.startTask(()=>{this[ve]=!0,this.signal[gs]()}),o;try{o=await dr.consumeBodyStream(e,this)}catch(i){throw t.endTask(r),i}return t.endTask(r),o}async text(){let e=this[m];if(this[Ts])throw new e.DOMException(`Body has already been used for "${this.url}".`,v.invalidStateError);let t=new rt(e).getAsyncTaskManager();this[Ts]=!0;let r=t.startTask(()=>{this[ve]=!0,this.signal[gs]()}),o;try{o=await dr.consumeBodyStream(e,this)}catch(i){throw t.endTask(r),i}return t.endTask(r),new TextDecoder().decode(o)}async json(){let e=await this.text();return JSON.parse(e)}async formData(){let e=this[m],t=new rt(e).getAsyncTaskManager(),r=this[Fe];if(this.body&&r&&/multipart/i.test(r)){if(this[Ts])throw new e.DOMException(`Body has already been used for "${this.url}".`,v.invalidStateError);this[Ts]=!0;let o=t.startTask(()=>{this[ve]=!0,this.signal[gs]()}),i;try{i=(await _l.streamToFormData(e,this,r)).formData}catch(n){throw t.endTask(o),n}return t.endTask(o),i}if(r?.startsWith("application/x-www-form-urlencoded")){let o=new URLSearchParams(await this.text()),i=new e.FormData;for(let[n,a]of o)i.append(n,a);return i}throw new e.DOMException('Failed to construct FormData object: The "content-type" header is neither "application/x-www-form-urlencoded" nor "multipart/form-data".',v.invalidStateError)}clone(){return new this[m].Request(this)}};import{URLSearchParams as rU}from"url";import{Buffer as oU}from"buffer";var iU=[301,302,303,307,308],Tx,Cx,Nx,Lx,kx,My,vb,Xo=class{constructor(e,t){E(this,My);s(this,"body",null);s(this,"bodyUsed",!1);s(this,"redirected",!1);s(this,"type","basic");s(this,"url","");s(this,"status");s(this,"statusText");s(this,"ok");s(this,"headers");s(this,kx,null);s(this,Lx,null);s(this,Nx,null);s(this,Cx,!1);s(this,Tx,null);if(!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);if(this.status=t?.status!==void 0?t.status:200,this.statusText=t?.statusText||"",this.ok=this.status>=200&&this.status<300,this.headers=new this[m].Headers(t?.headers),this.headers.delete("Set-Cookie"),this.headers.delete("Set-Cookie2"),e){let{stream:r,buffer:o,contentType:i}=dr.getBodyStream(e);this.body=r,o&&(this[Mt]=o),i&&!this.headers.has("Content-Type")&&this.headers.set("Content-Type",i)}}get[(kx=Ki,Lx=Mt,Nx=To,Cx=ve,Tx=hr,Symbol.toStringTag)](){return"Response"}async arrayBuffer(){let e=this[m];if(this.bodyUsed)throw new e.DOMException(`Body has already been used for "${this.url}".`,v.invalidStateError);let t=new rt(e).getBrowserFrame();if(!t)return new ArrayBuffer(0);let r=t[gt];this.bodyUsed=!0;let o=this[Mt];if(!o){let i=r.startTask(()=>{this[ve]=!0});try{o=await dr.consumeBodyStream(e,this)}catch(n){throw r.endTask(i),n}r.endTask(i)}return D(this,My,vb).call(this,o),o.buffer.slice(o.byteOffset,o.byteOffset+o.byteLength)}async blob(){let e=this.headers.get("Content-Type")||"",t=await this.arrayBuffer();return new be([t],{type:e})}async buffer(){let e=this[m];if(this.bodyUsed)throw new e.DOMException(`Body has already been used for "${this.url}".`,v.invalidStateError);let t=new rt(e).getBrowserFrame();if(!t)return oU.alloc(0);let r=t[gt];this.bodyUsed=!0;let o=this[Mt];if(!o){let i=r.startTask(()=>{this[ve]=!0});try{o=await dr.consumeBodyStream(e,this)}catch(n){throw r.endTask(i),n}r.endTask(i)}return D(this,My,vb).call(this,o),o}async text(){let e=this[m];if(this.bodyUsed)throw new e.DOMException(`Body has already been used for "${this.url}".`,v.invalidStateError);let t=new rt(e).getBrowserFrame();if(!t)return"";let r=t[gt];this.bodyUsed=!0;let o=this[Mt];if(!o){let i=r.startTask(()=>{this[ve]=!0});try{o=await dr.consumeBodyStream(e,this)}catch(n){throw r.endTask(i),n}r.endTask(i)}return D(this,My,vb).call(this,o),new TextDecoder().decode(o)}async json(){let e=await this.text();return JSON.parse(e)}async formData(){let e=this[m],t=new rt(e).getBrowserFrame();if(!t)return new e.FormData;let r=t[gt],o=this.headers.get("Content-Type");if(o&&this.body&&/multipart/i.test(o)){if(this.bodyUsed)throw new e.DOMException(`Body has already been used for "${this.url}".`,v.invalidStateError);this.bodyUsed=!0;let i=t[gt].startTask(()=>{this[ve]=!0}),n,a;try{let y=await _l.streamToFormData(e,this,o);n=y.formData,a=y.buffer}catch(y){throw r.endTask(i),y}return D(this,My,vb).call(this,a),r.endTask(i),n}if(o?.startsWith("application/x-www-form-urlencoded")){let i=new rU(await this.text()),n=new e.FormData;for(let[a,y]of i)n.append(a,y);return n}throw new e.DOMException('Failed to build FormData object: The "content-type" header is neither "application/x-www-form-urlencoded" nor "multipart/form-data".',v.invalidStateError)}clone(){let e=this[m],t=dr.cloneBodyStream(e,this),r=new e.Response(t,{status:this.status,statusText:this.statusText,headers:this.headers});return r[Ki]=this[Ki],r[Mt]=this[Mt],r.ok=this.ok,r.redirected=this.redirected,r.type=this.type,r.url=this.url,r}static redirect(e,t=302){let r=this[m];if(!iU.includes(t))throw new r.DOMException("Failed to create redirect response: Invalid redirect status code.",v.invalidStateError);return new r.Response(null,{headers:{location:new De(e).toString()},status:t})}static error(){let e=new this[m].Response(null,{status:0,statusText:""});return e.type="error",e}static json(e,t){let r=this[m],o=JSON.stringify(e);if(o===void 0)throw new r.TypeError("data is not JSON serializable");let i=new r.Headers(t&&t.headers);return i.has("Content-Type")||i.set("Content-Type","application/json"),new r.Response(o,{status:200,...t,headers:i})}};My=new WeakSet,vb=function(e){this[Mt]=e,this[Ki]?.response?.waitingForBody&&(this[Ki].response.body=e,this[Ki].response.waitingForBody=!1)};var sU=[301,302,303,307,308],nU=20,Hl=class{static isRedirect(e){return sU.includes(e)}static isMaxRedirectsReached(e){return e>=nU}};var Ry=class{static parseResponseHeaders(e){let t=new e.browserFrame.window.Headers,r=null;for(let o of e.rawHeaders)if(!r)r=o;else{let i=r.toLowerCase();if(i==="set-cookie"||i==="set-cookie2"){let n=Fi.stringToCookie(e.requestURL,o);n&&e.browserFrame.page.context.cookieContainer.addCookies([n])}else t.append(r,o);r=null}return t}};var sp={cert:`-----BEGIN CERTIFICATE-----
44
+ `)).replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22")}};import{ReadableStream as xS}from"stream/web";import{URLSearchParams as X2}from"url";var $o,xb,eA,cm=class{constructor(e,t){E(this,xb);E(this,$o,[]);if(!e)return;if(t){let o=e[Vt]?e[Vt]:e;if(t.form!==o)throw new this[m].DOMException("The specified element is not owned by this form element",v.notFoundError);if(!(t[Z]==="INPUT"&&(t.type==="submit"||t.type==="image")||t[Z]==="BUTTON"&&t.type==="submit"))throw new this[m].TypeError("The specified element is not a submit button")}let r=e[Do]();for(let o of r){let i=o.name;if(i)switch(o[Z]){case"INPUT":if(o.disabled)break;switch(o.type){case"file":if(o[Qi].length===0)this.append(i,new jo([],"",{type:"application/octet-stream"}));else for(let n of o[Qi])this.append(i,n);break;case"checkbox":case"radio":o.checked&&this.append(i,o.value);break;case"submit":case"reset":case"button":o===t&&o.value&&this.append(i,o.value);break;default:this.append(i,o.value);break}break;case"BUTTON":o===t&&o.value&&this.append(i,o.value);break;case"TEXTAREA":case"SELECT":this.append(i,o.value);break}}}forEach(e,t){for(let r of u(this,$o))e.call(t,r.value,r.name,this)}append(e,t,r){if(r&&!(t instanceof be))throw new this[m].TypeError('Failed to execute "append" on "FormData": parameter 2 is not of type "Blob".');u(this,$o).push({name:e,value:D(this,xb,eA).call(this,t,r)})}delete(e){let t=[];for(let r of u(this,$o))r.name!==e&&t.push(r);w(this,$o,t)}get(e){for(let t of u(this,$o))if(t.name===e)return t.value;return null}getAll(e){let t=[];for(let r of u(this,$o))r.name===e&&t.push(r.value);return t}has(e){for(let t of u(this,$o))if(t.name===e)return!0;return!1}set(e,t,r){for(let o of u(this,$o))if(o.name===e){o.value=D(this,xb,eA).call(this,t,r);return}this.append(e,t)}*keys(){for(let e of u(this,$o))yield e.name}*values(){for(let e of u(this,$o))yield e.value}*entries(){for(let e of u(this,$o))yield[e.name,e.value]}*[Symbol.iterator](){for(let e of u(this,$o))yield[e.name,e.value]}};$o=new WeakMap,xb=new WeakSet,eA=function(e,t){if(e instanceof jo){if(t){let r=new jo([],t,{type:e.type,lastModified:e.lastModified});return r[Mt]=e[Mt],r}return e}if(e instanceof be){let r=new jo([],"blob",{type:e.type});return r[Mt]=e[Mt],r}return String(e)};import{Buffer as dm}from"buffer";import lx from"stream";var dr=class{static getBodyStream(e){if(e==null)return{stream:null,buffer:null,contentType:null,contentLength:null};if(e instanceof X2){let r=dm.from(e.toString());return{buffer:r,stream:this.toReadableStream(r),contentType:"application/x-www-form-urlencoded;charset=UTF-8",contentLength:r.length}}else if(e instanceof be){let r=e[Mt];return{buffer:r,stream:this.toReadableStream(r),contentType:e.type,contentLength:e.size}}else{if(dm.isBuffer(e))return{buffer:e,stream:this.toReadableStream(e),contentType:null,contentLength:e.length};if(e instanceof ArrayBuffer){let r=dm.from(e);return{buffer:r,stream:this.toReadableStream(r),contentType:null,contentLength:e.byteLength}}else if(ArrayBuffer.isView(e)){let r=dm.from(e.buffer,e.byteOffset,e.byteLength);return{buffer:r,stream:this.toReadableStream(r),contentType:null,contentLength:e.byteLength}}else{if(e instanceof xS)return{buffer:null,stream:e,contentType:null,contentLength:null};if(e instanceof cm)return _l.formDataToStream(e)}}let t=dm.from(String(e));return{buffer:t,stream:this.toReadableStream(t),contentType:"text/plain;charset=UTF-8",contentLength:t.length}}static cloneBodyStream(e,t){if(t.bodyUsed)throw new e.DOMException("Failed to clone body stream of request: Request body is already used.",v.invalidStateError);if(t.body===null||t.body===void 0)return null;if(t[Mt])return this.toReadableStream(t[Mt]);if(t.body[Rc]){let i=new lx.PassThrough,n=new lx.PassThrough;t.body[Rc].pipe(i),t.body[Rc].pipe(n);let a=this.nodeToWebStream(i);return Ll in t?t[Ll]=a:t.body=a,this.nodeToWebStream(n)}let[r,o]=t.body.tee();return Ll in t?t[Ll]=r:t.body=r,o}static async consumeBodyStream(e,t){let r=t.body;if(r===null||!(r instanceof xS))return dm.alloc(0);if(t[hr])throw t[hr];let o=r.getReader(),i=[],n=0;try{let a=await o.read();for(;!a.done;){if(t[hr])throw t[hr];if(t[ve])throw new e.DOMException("Failed to read response body: The stream was aborted.",v.abortError);let y=a.value;n+=y.length,i.push(y),a=await o.read()}}catch(a){throw a instanceof ae?a:new e.DOMException(`Failed to read response body. Error: ${a.message}.`,v.encodingError)}try{return typeof i[0]=="string"?dm.from(i.join("")):dm.concat(i,n)}catch(a){throw new e.DOMException(`Could not create Buffer from response body. Error: ${a.message}.`,v.invalidStateError)}}static toReadableStream(e){return new xS({start(t){t.enqueue(e),t.close()}})}static nodeToWebStream(e){let t=new xS({start(r){e.on("data",o=>{r.enqueue(o)}),e.on("end",()=>{r.close()}),e.on("error",o=>{r.error(o)})}});return t[Rc]=e,t}};var z2=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],J2=["error","manual","follow"],Z2=["data:","http:","https:"],tU=["TRACE","TRACK","CONNECT"],eU=/^[A-Z]+$/,Ri=class{static validateMethod(e){if(!e.method||tU.includes(e.method))throw new ae(`'${e.method||""}' is not a valid HTTP method.`,v.invalidStateError);if(!eU.test(e.method))throw new ae(`'${e.method}' HTTP method is unsupported.`,v.invalidStateError)}static validateBody(e){if(e.body&&(e.method==="GET"||e.method==="HEAD"))throw new ae("Request with GET/HEAD method cannot have body.",v.invalidStateError)}static validateURL(e){if(e.username!==""||e.password!=="")throw new ae(`${e} is an url with embedded credentials.`,v.notSupportedError)}static validateReferrerPolicy(e){if(!z2.includes(e))throw new ae(`Invalid referrer policy "${e}".`,v.syntaxError)}static validateRedirect(e){if(!J2.includes(e))throw new ae(`Invalid redirect "${e}".`,v.syntaxError)}static validateSchema(e){if(!Z2.includes(e[ke].protocol))throw new ae(`Failed to fetch from "${e.url}": URL scheme "${e[ke].protocol.replace(/:$/,"")}" is not supported.`,v.notSupportedError)}};var Fi=class{static stringToCookie(e,t){let r=t.split(";"),o=r.shift();if(!o)return null;let i=o.indexOf("="),n=i!==-1?o.slice(0,i).trim():o.trim(),a=i!==-1?o.slice(i+1).trim():null,y=Object.assign({},SS,{key:n,value:a,originURL:e});if(!y.key)return null;for(let d of r){let b=d.indexOf("="),f=b!==-1?d.slice(0,b).trim().toLowerCase():d.trim().toLowerCase(),S=b!==-1?d.slice(b+1).trim():"";switch(f){case"expires":y.expires=new Date(S);break;case"max-age":y.expires=new Date(parseInt(S,10)*1e3+Date.now());break;case"domain":y.domain=S;break;case"path":y.path=S[0]==="/"?S:`/${S}`;break;case"httponly":y.httpOnly=!0;break;case"secure":y.secure=!0;break;case"samesite":switch(S.toLowerCase()){case"strict":y.sameSite=Rl.strict;break;case"lax":y.sameSite=Rl.lax;break;case"none":y.sameSite=Rl.none}break}}let p=y.key.toLowerCase();return p.startsWith("__secure-")&&!y.secure||p.startsWith("__host-")&&(!y.secure||y.path!=="/"||y.domain)?null:y}static cookiesToString(e){let t=[];for(let r of e)r.value!==null?t.push(`${r.key}=${r.value}`):t.push(r.key);return t.join("; ")}};import{URL as ax}from"url";var mx=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","content-transfer-encoding","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],Fs=class{static removeForbiddenHeaders(e){for(let t of Object.keys(e[Pr]))(mx.includes(t)||t.startsWith("proxy-")||t.startsWith("sec-"))&&delete e[Pr][t]}static isHeaderForbidden(e){return mx.includes(e.toLowerCase())}static getRequestHeaders(e){let t=new e.window.Headers(e.baseHeaders);e.request.headers.forEach((n,a)=>{t.set(a,n)});let r=new ax(e.window.location.href),o=Mi.isCORS(r,e.request[ke]);if(t.set("Accept-Encoding","gzip, deflate, br"),t.set("Connection","close"),t.has("User-Agent")||t.set("User-Agent",e.window.navigator.userAgent),e.request[zr]instanceof ax&&t.set("Referer",e.request[zr].href),e.request.credentials==="include"||e.request.credentials==="same-origin"&&!o){let n=e.browserFrame.page.context.cookieContainer.getCookies(e.request[ke],!1);n.length>0&&t.set("Cookie",Fi.cookiesToString(n))}else t.delete("Cookie"),t.delete("Cookie2");t.has("Accept")||t.set("Accept","*/*"),!t.has("Content-Length")&&e.request[iy]!==null&&t.set("Content-Length",String(e.request[iy])),!t.has("Content-Type")&&e.request[Fe]&&t.set("Content-Type",e.request[Fe]),o&&t.set("Origin",r.origin);let i={};for(let n of Object.values(t[Pr]))i[n.name]=n.value.join(", ");return i}};var yx,ux,px,hx,cx,dx,bx,gx,fx,Sx,Px,Ax,wx,Ex,xx,vx,bm=class l{constructor(e,t){s(this,vx);s(this,xx);s(this,Ex,"cors");s(this,wx);s(this,Ax);s(this,Px);s(this,Sx);s(this,fx,!1);s(this,gx);s(this,bx,!1);s(this,dx,null);s(this,cx,null);s(this,hx,null);s(this,px,"client");s(this,ux);s(this,yx);let r=this[m];if(!r)throw new TypeError("Failed to construct 'Request': 'Request' was constructed outside a Window context.");if(typeof e!="string"&&!e)throw new r.TypeError("Failed to construct 'Request': 1 argument required, only 0 present.");if(this[Cl]=(t?.method||e.method||"GET").toUpperCase(),t?.mode)switch(t.mode){case"navigate":case"websocket":throw new r.DOMException(`Failed to construct 'Request': Cannot construct a Request with a RequestInit whose mode member is set as '${t.mode}'.`,v.securityError);case"same-origin":case"no-cors":case"cors":this[Me]=t.mode;break;default:throw new r.DOMException(`Failed to construct 'Request': The provided value '${t.mode}' is not a valid enum value of type RequestMode.`,v.syntaxError)}else e instanceof l&&(this[Me]=e.mode);let{stream:o,buffer:i,contentType:n,contentLength:a}=dr.getBodyStream(e instanceof l&&(e[fs]||e.body)?e[fs]||dr.cloneBodyStream(r,e):t?.body??null);if(this[fs]=i,this[Ll]=o,this[gS]=t?.credentials||e.credentials||"same-origin",this[mS]=new this[m].Headers(t?.headers||e.headers||{}),Fs.removeForbiddenHeaders(this.headers),a?this[iy]=a:!this.body&&(this.method==="POST"||this.method==="PUT")&&(this[iy]=0),n?(this.headers.has("Content-Type")||this.headers.set("Content-Type",n),this[Fe]=n):e instanceof l&&e[Fe]&&(this[Fe]=e[Fe]),this[dS]=t?.redirect||e.redirect||"follow",this[Du]=(t?.referrerPolicy||e.referrerPolicy||"").toLowerCase(),this[bS]=t?.signal||e.signal||new r.AbortSignal,this[zr]=Rs.getInitialReferrer(r,t?.referrer!==null&&t?.referrer!==void 0?t?.referrer:e.referrer),e instanceof rA)this[ke]=e;else try{e instanceof l&&e.url?this[ke]=new rA(e.url,r.location.href):this[ke]=new rA(e,r.location.href)}catch{throw new r.DOMException(`Failed to construct 'Request': Invalid URL "${e}" on document location '${r.location}'.${r.location.origin==="null"?" Relative URLs are not permitted on current document location.":""}`,v.notSupportedError)}Ri.validateMethod(this),Ri.validateBody(this),Ri.validateURL(this[ke]),Ri.validateReferrerPolicy(this.referrerPolicy),Ri.validateRedirect(this.redirect)}get method(){return this[Cl]}get body(){return this[Ll]}get mode(){return this[Me]}get headers(){return this[mS]}get redirect(){return this[dS]}get referrerPolicy(){return this[Du]}get signal(){return this[bS]}get bodyUsed(){return this[Ts]}get credentials(){return this[gS]}get referrer(){return!this[zr]||this[zr]==="no-referrer"?"":this[zr]==="client"?"about:client":this[zr].toString()}get url(){return this[ke].href}get[(vx=Cl,xx=Ll,Ex=Me,wx=mS,Ax=dS,Px=Du,Sx=bS,fx=Ts,gx=gS,bx=ve,dx=hr,cx=iy,hx=Fe,px=zr,ux=ke,yx=fs,Symbol.toStringTag)](){return"Request"}async arrayBuffer(){let e=this[m];if(this[Ts])throw new e.DOMException(`Body has already been used for "${this.url}".`,v.invalidStateError);let t=new rt(e).getAsyncTaskManager();this[Ts]=!0;let r=t.startTask(()=>{this[ve]=!0,this.signal[gs]()}),o;try{o=await dr.consumeBodyStream(e,this)}catch(i){throw t.endTask(r),i}return t.endTask(r),o.buffer.slice(o.byteOffset,o.byteOffset+o.byteLength)}async blob(){let e=this.headers.get("Content-Type")||"",t=await this.arrayBuffer();return new be([t],{type:e})}async buffer(){let e=this[m];if(this[Ts])throw new e.DOMException(`Body has already been used for "${this.url}".`,v.invalidStateError);let t=new rt(e).getAsyncTaskManager();this[Ts]=!0;let r=t.startTask(()=>{this[ve]=!0,this.signal[gs]()}),o;try{o=await dr.consumeBodyStream(e,this)}catch(i){throw t.endTask(r),i}return t.endTask(r),o}async text(){let e=this[m];if(this[Ts])throw new e.DOMException(`Body has already been used for "${this.url}".`,v.invalidStateError);let t=new rt(e).getAsyncTaskManager();this[Ts]=!0;let r=t.startTask(()=>{this[ve]=!0,this.signal[gs]()}),o;try{o=await dr.consumeBodyStream(e,this)}catch(i){throw t.endTask(r),i}return t.endTask(r),new TextDecoder().decode(o)}async json(){let e=await this.text();return JSON.parse(e)}async formData(){let e=this[m],t=new rt(e).getAsyncTaskManager(),r=this.headers.get("Content-Type")??this[Fe];if(this.body&&r&&/multipart/i.test(r)){if(this[Ts])throw new e.DOMException(`Body has already been used for "${this.url}".`,v.invalidStateError);this[Ts]=!0;let o=t.startTask(()=>{this[ve]=!0,this.signal[gs]()}),i;try{i=(await _l.streamToFormData(e,this,r)).formData}catch(n){throw t.endTask(o),n}return t.endTask(o),i}if(r?.startsWith("application/x-www-form-urlencoded")){let o=new URLSearchParams(await this.text()),i=new e.FormData;for(let[n,a]of o)i.append(n,a);return i}throw new e.DOMException('Failed to construct FormData object: The "content-type" header is neither "application/x-www-form-urlencoded" nor "multipart/form-data".',v.invalidStateError)}clone(){return new this[m].Request(this)}};import{URLSearchParams as rU}from"url";import{Buffer as oU}from"buffer";var iU=[301,302,303,307,308],Tx,Cx,Nx,Lx,kx,My,vb,Xo=class{constructor(e,t){E(this,My);s(this,"body",null);s(this,"bodyUsed",!1);s(this,"redirected",!1);s(this,"type","basic");s(this,"url","");s(this,"status");s(this,"statusText");s(this,"ok");s(this,"headers");s(this,kx,null);s(this,Lx,null);s(this,Nx,null);s(this,Cx,!1);s(this,Tx,null);if(!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);if(this.status=t?.status!==void 0?t.status:200,this.statusText=t?.statusText||"",this.ok=this.status>=200&&this.status<300,this.headers=new this[m].Headers(t?.headers),this.headers.delete("Set-Cookie"),this.headers.delete("Set-Cookie2"),e){let{stream:r,buffer:o,contentType:i}=dr.getBodyStream(e);this.body=r,o&&(this[Mt]=o),i&&!this.headers.has("Content-Type")&&this.headers.set("Content-Type",i)}}get[(kx=Ki,Lx=Mt,Nx=To,Cx=ve,Tx=hr,Symbol.toStringTag)](){return"Response"}async arrayBuffer(){let e=this[m];if(this.bodyUsed)throw new e.DOMException(`Body has already been used for "${this.url}".`,v.invalidStateError);let t=new rt(e).getBrowserFrame();if(!t)return new ArrayBuffer(0);let r=t[gt];this.bodyUsed=!0;let o=this[Mt];if(!o){let i=r.startTask(()=>{this[ve]=!0});try{o=await dr.consumeBodyStream(e,this)}catch(n){throw r.endTask(i),n}r.endTask(i)}return D(this,My,vb).call(this,o),o.buffer.slice(o.byteOffset,o.byteOffset+o.byteLength)}async blob(){let e=this.headers.get("Content-Type")||"",t=await this.arrayBuffer();return new be([t],{type:e})}async buffer(){let e=this[m];if(this.bodyUsed)throw new e.DOMException(`Body has already been used for "${this.url}".`,v.invalidStateError);let t=new rt(e).getBrowserFrame();if(!t)return oU.alloc(0);let r=t[gt];this.bodyUsed=!0;let o=this[Mt];if(!o){let i=r.startTask(()=>{this[ve]=!0});try{o=await dr.consumeBodyStream(e,this)}catch(n){throw r.endTask(i),n}r.endTask(i)}return D(this,My,vb).call(this,o),o}async text(){let e=this[m];if(this.bodyUsed)throw new e.DOMException(`Body has already been used for "${this.url}".`,v.invalidStateError);let t=new rt(e).getBrowserFrame();if(!t)return"";let r=t[gt];this.bodyUsed=!0;let o=this[Mt];if(!o){let i=r.startTask(()=>{this[ve]=!0});try{o=await dr.consumeBodyStream(e,this)}catch(n){throw r.endTask(i),n}r.endTask(i)}return D(this,My,vb).call(this,o),new TextDecoder().decode(o)}async json(){let e=await this.text();return JSON.parse(e)}async formData(){let e=this[m],t=new rt(e).getBrowserFrame();if(!t)return new e.FormData;let r=t[gt],o=this.headers.get("Content-Type");if(o&&this.body&&/multipart/i.test(o)){if(this.bodyUsed)throw new e.DOMException(`Body has already been used for "${this.url}".`,v.invalidStateError);this.bodyUsed=!0;let i=t[gt].startTask(()=>{this[ve]=!0}),n,a;try{let y=await _l.streamToFormData(e,this,o);n=y.formData,a=y.buffer}catch(y){throw r.endTask(i),y}return D(this,My,vb).call(this,a),r.endTask(i),n}if(o?.startsWith("application/x-www-form-urlencoded")){let i=new rU(await this.text()),n=new e.FormData;for(let[a,y]of i)n.append(a,y);return n}throw new e.DOMException('Failed to build FormData object: The "content-type" header is neither "application/x-www-form-urlencoded" nor "multipart/form-data".',v.invalidStateError)}clone(){let e=this[m],t=dr.cloneBodyStream(e,this),r=new e.Response(t,{status:this.status,statusText:this.statusText,headers:this.headers});return r[Ki]=this[Ki],r[Mt]=this[Mt],r.ok=this.ok,r.redirected=this.redirected,r.type=this.type,r.url=this.url,r}static redirect(e,t=302){let r=this[m];if(!iU.includes(t))throw new r.DOMException("Failed to create redirect response: Invalid redirect status code.",v.invalidStateError);return new r.Response(null,{headers:{location:new De(e).toString()},status:t})}static error(){let e=new this[m].Response(null,{status:0,statusText:""});return e.type="error",e}static json(e,t){let r=this[m],o=JSON.stringify(e);if(o===void 0)throw new r.TypeError("data is not JSON serializable");let i=new r.Headers(t&&t.headers);return i.has("Content-Type")||i.set("Content-Type","application/json"),new r.Response(o,{status:200,...t,headers:i})}};My=new WeakSet,vb=function(e){this[Mt]=e,this[Ki]?.response?.waitingForBody&&(this[Ki].response.body=e,this[Ki].response.waitingForBody=!1)};var sU=[301,302,303,307,308],nU=20,Hl=class{static isRedirect(e){return sU.includes(e)}static isMaxRedirectsReached(e){return e>=nU}};var Ry=class{static parseResponseHeaders(e){let t=new e.browserFrame.window.Headers,r=null;for(let o of e.rawHeaders)if(!r)r=o;else{let i=r.toLowerCase();if(i==="set-cookie"||i==="set-cookie2"){let n=Fi.stringToCookie(e.requestURL,o);n&&e.browserFrame.page.context.cookieContainer.addCookies([n])}else t.append(r,o);r=null}return t}};var sp={cert:`-----BEGIN CERTIFICATE-----
45
45
  MIIDYzCCAkugAwIBAgIUJRKB/H66hpet1VfUlm0CiXqePA4wDQYJKoZIhvcNAQEL
46
46
  BQAwQTELMAkGA1UEBhMCU0UxDjAMBgNVBAgMBVNrYW5lMQ4wDAYDVQQHDAVNYWxt
47
47
  bzESMBAGA1UECgwJSGFwcHkgRE9NMB4XDTIyMTAxMTIyMDM0OVoXDTMyMTAwODIy
@@ -90,11 +90,11 @@ M0qoTfdjpSg5Jwgd75taWt4bxGJWeflSSv8z5R0BAoGAWL8c527AbeBvx2tOYKkD
90
90
  gl5OpEjeliU7Mus0BVS858g=
91
91
  -----END PRIVATE KEY-----`};import{Buffer as TS}from"buffer";import np from"path";var Ix="<html><head><title>Happy DOM Virtual Server - 404 Not Found</title></head><body><h1>Happy DOM Virtual Server - 404 Not Found</h1></body></html>",Bs=class{static getFilepath(e,t){let r=new rt(e).getSettings();if(!r||!r.fetch.virtualServers&&!r.module.resolveNodeModules)return null;if(r.fetch.virtualServers)for(let o of r.fetch.virtualServers){let i=null;if(typeof o.url=="string"){let n=new URL(o.url[o.url.length-1]==="/"?o.url.slice(0,-1):o.url,e.location.origin);t.startsWith(n.href)&&(i=n)}else if(o.url instanceof RegExp){let n=t.match(o.url);n&&(i=new URL(n[0][n[0].length-1]==="/"?n[0].slice(0,-1):n[0],e.location.origin))}if(i){let n=t.slice(i.href.length).split("?")[0].split("#")[0];return np.join(np.resolve(o.directory),n.replaceAll("/",np.sep))}}if(r.module.resolveNodeModules){let o=r.module.resolveNodeModules.url,i=new URL(o[o.length-1]==="/"?o.slice(0,-1):o,e.location.origin);if(t.startsWith(i.href)){let n=t.slice(i.href.length).split("?")[0].split("#")[0];return np.join(np.resolve(r.module.resolveNodeModules.directory),n.replaceAll("/",np.sep))}}return null}static getNotFoundResponse(e){return new e.Response(Ix,{status:404,statusText:"Not Found",headers:{"Content-Type":"text/html"}})}static getNotFoundSyncResponse(e,t){return{status:404,statusText:"Not Found",ok:!1,url:t,redirected:!1,headers:new e.Headers({"Content-Type":"text/html"}),body:Buffer.from(Ix),[To]:null}}};var _n=class{static getKey(e){return JSON.stringify({url:e.url,destination:e.destination,mode:e.mode,credentialsMode:e.credentialsMode})}};var oA=TS.from(`0\r
92
92
  \r
93
- `),ye,Pt,Cb,Tb=class Tb{constructor(e){s(this,"reject",null);s(this,"resolve",null);s(this,"listeners",{onSignalAbort:this.onSignalAbort.bind(this)});s(this,"isChunkedTransfer",!1);s(this,"isProperLastChunkReceived",!1);s(this,"previousChunk",null);s(this,"nodeRequest",null);s(this,"nodeResponse",null);s(this,"response",null);s(this,"responseHeaders",null);s(this,"interceptor");s(this,"requestHeaders");s(this,"request");s(this,"redirectCount",0);s(this,"disableCache");s(this,"disableSameOriginPolicy");s(this,"disablePreload");E(this,ye);E(this,Pt);E(this,Cb,null);w(this,ye,e.browserFrame),w(this,Pt,e.window),w(this,Cb,e.unfilteredHeaders??null),this.request=typeof e.url=="string"||e.url instanceof vS?new e.window.Request(e.url,e.init):e.url,e.contentType&&(this.request[Fe]=e.contentType),this.redirectCount=e.redirectCount??0,this.disableCache=e.disableCache??!1,this.disableSameOriginPolicy=e.disableSameOriginPolicy??u(this,ye).page.context.browser.settings.fetch.disableSameOriginPolicy??!1,this.interceptor=u(this,ye).page.context.browser.settings.fetch.interceptor,this.requestHeaders=u(this,ye).page.context.browser.settings.fetch.requestHeaders,this.disablePreload=e.disablePreload??!1}async send(){if(!(this.request instanceof bm)||!(this.request[Ie]instanceof vS))throw new(u(this,Pt)).DOMException("Unknown request object. Request object must be an instance of Request.",v.invalidStateError);if(Rs.prepareRequest(new vS(u(this,Pt).location.href),this.request),this.requestHeaders){for(let t of this.requestHeaders)if(!t.url||(typeof t.url=="string"?t.url.startsWith(this.request.url):this.request.url.match(t.url)))for(let[r,o]of Object.entries(t.headers))this.request.headers.set(r,o)}if(this.interceptor?.beforeAsyncRequest){let t=u(this,ye)[gt].startTask(),r=await this.interceptor.beforeAsyncRequest({request:this.request,window:u(this,Pt)});if(u(this,ye)[gt].endTask(t),r instanceof Xo)return r}if(Ri.validateSchema(this.request),this.request.signal[ve])throw this.request.signal[di]!==void 0?this.request.signal[di]:new(u(this,Pt)).DOMException("signal is aborted without reason",v.abortError);if(this.request[Ie].protocol==="data:"){let t=ky.parse(this.request.url);this.response=new(u(this,Pt)).Response(t.buffer,{headers:{"Content-Type":t.type}});let r=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:u(this,Pt),response:this.response,request:this.request}):void 0;return r instanceof Xo?r:this.response}if(this.request[Ie].protocol==="http:"&&u(this,Pt).location.protocol==="https:")throw new(u(this,Pt)).DOMException(`Mixed Content: The page at '${u(this,Pt).location.href}' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '${this.request.url}'. This request has been blocked; the content must be served over HTTPS.`,v.securityError);if(!this.disableCache){let t=await this.getCachedResponse();if(t)return t}if(!this.disablePreload){let t=_n.getKey({url:this.request.url,destination:"fetch",mode:this.request.mode,credentialsMode:this.request.credentials}),r=u(this,Pt).document[co].get(t);if(r){if(u(this,Pt).document[co].delete(t),r.response)return r.response;let o=u(this,ye)[gt].startTask(),i=await r.onResponseAvailable();return u(this,ye)[gt].endTask(o),i}}let e=await this.getVirtualServerResponse();if(e)return e;if(!this.disableSameOriginPolicy&&!await this.compliesWithCrossOriginPolicy())throw u(this,ye).page.console.warn(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`),new(u(this,Pt)).DOMException(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`,v.networkError);return await this.sendRequest()}async getCachedResponse(){if(this.disableCache)return null;let e=u(this,ye).page.context.responseCache.get(this.request);if(!e||e.response.waitingForBody)return null;if(e.state===Wa.stale){let r=new(u(this,Pt)).Headers(e.request.headers);if(e.etag)r.set("If-None-Match",e.etag);else{if(!e.lastModified)return null;r.set("If-Modified-Since",new Date(e.lastModified).toUTCString())}let o=new Tb({browserFrame:u(this,ye),window:u(this,Pt),url:this.request.url,init:{headers:r,method:e.request.method},disableCache:!0,disableSameOriginPolicy:!0});if(e.etag||!e.staleWhileRevalidate){let i=await o.send(),n=i.status!==304?await i.buffer():null;if(e=u(this,ye).page.context.responseCache.add(this.request,{...i,body:n,waitingForBody:!1}),i.status!==304){let a=new(u(this,Pt)).Response(n,{status:i.status,statusText:i.statusText,headers:i.headers});return a.url=i.url,a[Ki]=e,a}}else o.send().then(i=>{i.buffer().then(n=>{u(this,ye).page.context.responseCache.add(this.request,{...i,body:n,waitingForBody:!1})})})}if(!e||e.response.waitingForBody)return null;let t=new(u(this,Pt)).Response(e.response.body,{status:e.response.status,statusText:e.response.statusText,headers:e.response.headers});return t.url=e.response.url,t[Ki]=e,t}async getVirtualServerResponse(){let e=Bs.getFilepath(u(this,Pt),this.request.url);if(!e)return null;let t=u(this,ye)[gt].startTask();if(this.request.method!=="GET"){u(this,ye).page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let p=Bs.getNotFoundResponse(u(this,Pt)),d=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:u(this,Pt),response:await p,request:this.request}):void 0;return u(this,ye)[gt].endTask(t),d instanceof Xo?d:p}let r;try{e=(await Mx.promises.stat(e)).isDirectory()?mU.join(e,"index.html"):e,r=await Mx.promises.readFile(e)}catch{u(this,ye).page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let d=Bs.getNotFoundResponse(u(this,Pt)),b=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:u(this,Pt),response:await d,request:this.request}):void 0;return u(this,ye)[gt].endTask(t),b instanceof Xo?b:d}let o=new(u(this,Pt)).ReadableStream({start:p=>{u(this,Pt).queueMicrotask(()=>{p.enqueue(r),p.close()})}}),i=new(u(this,Pt)).Response(o);i[Mt]=r,i[To]=e,i.url=this.request.url;let n=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:u(this,Pt),response:await i,request:this.request}):void 0;u(this,ye)[gt].endTask(t);let a=n instanceof Xo?n:i,y={...a,body:r,waitingForBody:!1,virtual:!0};return i[Ki]=u(this,ye).page.context.responseCache.add(this.request,y),a}async compliesWithCrossOriginPolicy(){if(this.disableSameOriginPolicy||!Mi.isCORS(u(this,Pt).location.href,this.request[Ie]))return!0;let e=u(this,ye).page.context.preflightResponseCache.get(this.request);if(e)return!(e.allowOrigin!=="*"&&e.allowOrigin!==u(this,Pt).location.origin||e.allowMethods.length!==0&&!e.allowMethods.includes(this.request.method));let t=[];for(let[y]of this.request.headers)t.push(y.toLowerCase());let r=new(u(this,Pt)).Headers({"Access-Control-Request-Method":this.request.method,Origin:u(this,Pt).location.origin});t.length>0&&r.set("Access-Control-Request-Headers",t.slice().sort().join(","));let i=await new Tb({browserFrame:u(this,ye),window:u(this,Pt),url:this.request.url,init:{method:"OPTIONS"},disableCache:!0,disableSameOriginPolicy:!0,unfilteredHeaders:r}).send();if(!i.ok)return!1;let n=i.headers.get("Access-Control-Allow-Origin");if(!n||n!=="*"&&n!==u(this,Pt).location.origin)return!1;let a=[];if(i.headers.has("Access-Control-Allow-Methods")){let y=i.headers.get("Access-Control-Allow-Methods");if(y!=="*")for(let p of y.split(","))a.push(p.trim().toUpperCase())}return!(a.length!==0&&!a.includes(this.request.method))}sendRequest(){return new Promise((e,t)=>{let r=u(this,ye)[gt].startTask(()=>this.onAsyncTaskManagerAbort());if(this.resolve)throw new(u(this,Pt)).Error("Fetch already sent.");this.resolve=async i=>{!this.disableCache&&i instanceof Xo&&u(this,ye).page&&u(this,ye).page.context&&(i[Ki]=u(this,ye).page.context.responseCache.add(this.request,{...i,headers:this.responseHeaders,body:i[Mt],waitingForBody:!i[Mt]&&!!i.body}));let n=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:u(this,Pt),response:await i,request:this.request}):void 0;u(this,ye)[gt].endTask(r);let a=n instanceof Xo?n:i;a instanceof Xo&&!a.ok&&u(this,ye).page.console.error(`${this.request.method} ${this.request.url} ${a.status} (${a.statusText})`),e(a)},this.reject=i=>{u(this,ye)[gt].endTask(r),t(i)},this.request.signal.addEventListener("abort",this.listeners.onSignalAbort);let o=(this.request[Ie].protocol==="https:"?aU:lU).request;this.nodeRequest=o(this.request[Ie].href,{method:this.request.method,headers:Fs.getRequestHeaders({browserFrame:u(this,ye),window:u(this,Pt),request:this.request,baseHeaders:u(this,Cb)}),agent:!1,rejectUnauthorized:!u(this,ye).page.context.browser.settings.fetch.disableStrictSSL,key:this.request[Ie].protocol==="https:"?sp.key:void 0,cert:this.request[Ie].protocol==="https:"?sp.cert:void 0}),this.nodeRequest.on("error",this.onError.bind(this)),this.nodeRequest.on("socket",this.onSocket.bind(this)),this.nodeRequest.on("response",this.onResponse.bind(this)),this.request.body===null?this.nodeRequest.end():Wl.pipeline(this.request.body,this.nodeRequest,i=>{i&&this.onError(i)})})}onSocket(e){let t=()=>{if(this.isChunkedTransfer&&!this.isProperLastChunkReceived){let o=new(u(this,Pt)).DOMException("Premature close.",v.networkError);this.request[hr]=o,this.response&&(this.response[hr]=o,this.response.body&&!this.response.body.locked&&this.response.body.cancel(o))}},r=o=>{this.isProperLastChunkReceived=TS.compare(o.slice(-5),oA)===0,!this.isProperLastChunkReceived&&this.previousChunk&&(this.isProperLastChunkReceived=TS.compare(this.previousChunk.slice(-3),oA.slice(0,3))===0&&TS.compare(o.slice(-2),oA.slice(3))===0),this.previousChunk=o};e.prependListener("close",t),e.on("data",r),this.nodeRequest.on("close",()=>{e.removeListener("close",t),e.removeListener("data",r)})}onSignalAbort(e){this.finalizeRequest(),this.abort(e.target?.reason)}onError(e){this.finalizeRequest(),u(this,ye).page.console.error(e),this.reject(new(u(this,Pt)).DOMException(`Failed to execute "fetch()" on "Window" with URL "${this.request.url}": ${e.message}`,v.networkError))}onAsyncTaskManagerAbort(){let e=new(u(this,Pt)).DOMException("The operation was aborted.",v.abortError);this.request[ve]=!0,this.request[hr]=e,this.response&&(this.response[ve]=!0,this.response[hr]=e),this.listeners.onSignalAbort&&this.request.signal.removeEventListener("abort",this.listeners.onSignalAbort),this.nodeRequest&&!this.nodeRequest.destroyed&&this.nodeRequest.destroy(e),this.nodeResponse&&!this.nodeResponse.destroyed&&this.nodeResponse.destroy(e),this.response&&this.response.body&&(this.response.body.locked||this.response.body.cancel(e))}onResponse(e){if(this.isChunkedTransfer=e.headers["transfer-encoding"]==="chunked"&&!e.headers["content-length"],this.nodeRequest.setTimeout(0),this.responseHeaders=Ry.parseResponseHeaders({browserFrame:u(this,ye),requestURL:this.request[Ie],rawHeaders:e.rawHeaders}),this.handleRedirectResponse(e,this.responseHeaders))return;e.once("end",()=>this.request.signal.removeEventListener("abort",this.listeners.onSignalAbort));let t=Wl.pipeline(e,new Wl.PassThrough,i=>{}),r={status:e.statusCode,statusText:e.statusMessage,headers:this.responseHeaders},o=this.responseHeaders.get("Content-Encoding");if(this.request.method==="HEAD"||o===null||e.statusCode===204||e.statusCode===304){this.response=new(u(this,Pt)).Response(dr.nodeToWebStream(t),r),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);return}if(o==="gzip"||o==="x-gzip"){let i={flush:lp.constants.Z_SYNC_FLUSH,finishFlush:lp.constants.Z_SYNC_FLUSH};t=Wl.pipeline(t,lp.createGunzip(i),n=>{}),this.response=new(u(this,Pt)).Response(dr.nodeToWebStream(t),r),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);return}if(o==="deflate"||o==="x-deflate"){let i=Wl.pipeline(e,new Wl.PassThrough,n=>{});i.on("data",n=>{(n[0]&15)===8?t=Wl.pipeline(t,lp.createInflate(),a=>{}):t=Wl.pipeline(t,lp.createInflateRaw(),a=>{}),this.response=new(u(this,Pt)).Response(dr.nodeToWebStream(t),r),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response)}),i.on("end",()=>{this.response||(this.response=new(u(this,Pt)).Response(dr.nodeToWebStream(t),r),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response))});return}if(o==="br"){t=Wl.pipeline(t,lp.createBrotliDecompress(),i=>{}),this.response=new(u(this,Pt)).Response(dr.nodeToWebStream(t),r),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);return}this.response=new(u(this,Pt)).Response(dr.nodeToWebStream(t),r),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response)}handleRedirectResponse(e,t){if(!Hl.isRedirect(e.statusCode))return!1;switch(this.request.redirect){case"error":return this.finalizeRequest(),this.reject(new(u(this,Pt)).DOMException(`URI requested responds with a redirect, redirect mode is set to "error": ${this.request.url}`,v.abortError)),!0;case"manual":return!1;case"follow":let r=t.get("Location"),o=e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&this.request.method==="POST",i=null;if(r!==null)try{i=new vS(r,this.request.url)}catch{return this.finalizeRequest(),this.reject(new(u(this,Pt)).DOMException(`URI requested responds with an invalid redirect URL: ${r}`,v.uriMismatchError)),!0}if(i===null)return!1;if(Hl.isMaxRedirectsReached(this.redirectCount))return this.finalizeRequest(),this.reject(new(u(this,Pt)).DOMException(`Maximum redirects reached at: ${this.request.url}`,v.networkError)),!0;let n=new(u(this,Pt)).Headers(this.request.headers),a={method:this.request.method,signal:this.request.signal,referrer:this.request.referrer,referrerPolicy:this.request.referrerPolicy,credentials:this.request.credentials,headers:n,body:this.request[fs]};if((this.request.credentials==="omit"||this.request.credentials==="same-origin"&&Mi.isCORS(u(this,Pt).location.href,i))&&(n.delete("cookie"),n.delete("cookie2")),this.request.signal[ve])return this.abort(this.request.signal[di]),!0;o&&(a.method="GET",a.body=void 0,n.delete("Content-Length"),n.delete("Content-Type"));let y=Rs.getReferrerPolicyFromHeader(n);y&&(a.referrerPolicy=y);let p=new Tb({browserFrame:u(this,ye),window:u(this,Pt),url:i,init:a,redirectCount:this.redirectCount+1,disableSameOriginPolicy:this.disableSameOriginPolicy,contentType:o?null:this.request[Fe]});return this.finalizeRequest(),p.send().then(d=>this.resolve(d)).catch(d=>this.reject(d)),!0;default:return this.finalizeRequest(),this.reject(new(u(this,Pt)).DOMException(`Redirect option '${this.request.redirect}' is not a valid value of TRequestRedirect`)),!0}}finalizeRequest(){this.request.signal.removeEventListener("abort",this.listeners.onSignalAbort),this.nodeRequest?.destroy()}abort(e){let t=new(u(this,Pt)).DOMException("The operation was aborted."+(e?" "+e.toString():""),v.abortError);this.request[ve]=!0,this.request[hr]=t,this.response&&(this.response[ve]=!0,this.response[hr]=t),this.nodeRequest&&!this.nodeRequest.destroyed&&this.nodeRequest.destroy(t),this.nodeResponse&&!this.nodeResponse.destroyed&&this.nodeResponse.destroy(t),this.response&&this.response.body&&(this.response.body.locked||this.response.body.cancel(t)),this.reject&&this.reject(e!==void 0?e:t)}};ye=new WeakMap,Pt=new WeakMap,Cb=new WeakMap;var zo=Tb;var iA;(function(l){l.auto="auto",l.manual="manual"})(iA||(iA={}));var is=iA;import{URL as sA}from"url";var Co=class{static getRelativeURL(e,t){if(t=t?String(t):"about:blank",t.startsWith("about:")||t.startsWith("javascript:"))return new sA(t);try{return new sA(t,e.window[vo].href)}catch{return new sA("about:blank")}}};var Vr,fo,Fy=class{constructor(e,t){E(this,Vr);E(this,fo);if(!e)throw new TypeError("Illegal constructor");w(this,Vr,e),w(this,fo,t)}get length(){return u(this,Vr)?.[je].items.length||0}get state(){return u(this,Vr)?.[je].currentItem.state||null}get scrollRestoration(){return u(this,Vr)?.[je].currentItem.scrollRestoration||is.auto}set scrollRestoration(e){switch(e){case is.auto:case is.manual:let t=u(this,Vr)?.[je].currentItem;t&&(t.scrollRestoration=e);break}}back(){u(this,fo).closed||u(this,Vr)?.goBack()}forward(){u(this,fo).closed||u(this,Vr)?.goForward()}go(e){u(this,fo).closed||u(this,Vr)?.goSteps(e)}pushState(e,t,r){if(!u(this,Vr)||u(this,fo).closed)return;let o=u(this,Vr)?.[je];if(!o)return;if(arguments.length<2)throw new(u(this,fo)).TypeError(`Failed to execute 'pushState' on 'History': 2 arguments required, but only ${arguments.length} present.`);let i=u(this,fo)[vo],n=r?Co.getRelativeURL(u(this,Vr),r):i;if(r&&n.origin!==i.origin)throw new(u(this,fo)).DOMException(`Failed to execute 'pushState' on 'History': A history state object with URL '${r.toString()}' cannot be created in a document with origin '${i.origin}' and URL '${i.href}'.`,v.securityError);o.currentItem.popState=!0,o.push({title:u(this,fo).document.title,href:n.href,state:e,popState:!0,scrollRestoration:o.currentItem.scrollRestoration,method:o.currentItem.method||"GET",formData:o.currentItem.formData||null}),i[yo](u(this,Vr),o.currentItem.href)}replaceState(e,t,r){if(!u(this,Vr)||u(this,fo).closed)return;let o=u(this,Vr)?.[je];if(!o)return;if(arguments.length<2)throw new(u(this,fo)).TypeError(`Failed to execute 'pushState' on 'History': 2 arguments required, but only ${arguments.length} present.`);let i=u(this,fo)[vo],n=r?Co.getRelativeURL(u(this,Vr),r):i;if(r&&n.origin!==i.origin)throw new(u(this,fo)).DOMException(`Failed to execute 'pushState' on 'History': A history state object with URL '${r.toString()}' cannot be created in a document with origin '${i.origin}' and URL '${i.href}'.`,v.securityError);o.replace({title:u(this,fo).document.title,href:n.href,state:e,popState:o.currentItem.popState,scrollRestoration:o.currentItem.scrollRestoration,method:o.currentItem.method,formData:o.currentItem.formData}),r&&i[yo](u(this,Vr),o.currentItem.href)}[wt](){w(this,Vr,null)}};Vr=new WeakMap,fo=new WeakMap;var CS,NS,ap=class{constructor(e,t){E(this,CS);E(this,NS);w(this,CS,e),w(this,NS,t||{})}observe(e){}disconnect(){}unobserve(e){}takeRecords(){return[]}};CS=new WeakMap,NS=new WeakMap;var mp=class{constructor(e){s(this,"boundingClientRect",null);s(this,"intersectionRatio",0);s(this,"intersectionRect",null);s(this,"isIntersecting",!1);s(this,"rootBounds",null);s(this,"target",null);s(this,"time",0);Object.assign(this,e)}};var Rx,lr,Oe,gm,yp,By=class{constructor(e,t){s(this,Rx,"Location");E(this,lr);E(this,Oe);E(this,gm,null);E(this,yp,[]);if(!e)throw new TypeError("Illegal constructor");w(this,lr,e),w(this,Oe,new URL(t))}get hash(){return u(this,Oe).hash}set hash(e){let t=u(this,lr)?.[je];if(!t||!u(this,lr))return;let r=new URL(u(this,Oe).href),o=u(this,Oe).hash;r.hash=e,r.hash!==o&&(t.currentItem.popState=!0,t.push({title:"",href:r.href,state:t.currentItem.state,popState:!0,scrollRestoration:is.manual,method:t.currentItem.method,formData:t.currentItem.formData||null}),this[yo](u(this,lr),r.href))}get host(){return u(this,Oe).host}set host(e){let t=new URL(u(this,Oe).href);t.host=e,this.href=t.href}get hostname(){return u(this,Oe).hostname}set hostname(e){let t=new URL(u(this,Oe).href);t.hostname=e,this.href=t.href}get href(){return u(this,Oe).href}set href(e){u(this,lr)&&u(this,lr).goto(e).catch(t=>{if(u(this,lr)?.page?.console)u(this,lr).page.console.error(t);else throw t})}get origin(){return u(this,Oe).origin}get pathname(){return u(this,Oe).pathname}set pathname(e){let t=new URL(u(this,Oe).href);t.pathname=e,this.href=t.href}get port(){return u(this,Oe).port}set port(e){let t=new URL(u(this,Oe).href);t.port=e,this.href=t.href}get protocol(){return u(this,Oe).protocol}set protocol(e){let t=new URL(u(this,Oe).href);t.protocol=e,this.href=t.href}get search(){return u(this,Oe).search}set search(e){let t=new URL(u(this,Oe).href);t.search=e,this.href=t.href}replace(e){this.href=String(e)}assign(e){this.href=String(e)}reload(){u(this,lr)&&u(this,lr).goto(this.href).catch(e=>{if(u(this,lr)?.page.console)u(this,lr).page.console.error(e);else throw e})}[(Rx=Symbol.toStringTag,yo)](e,t){if(!u(this,lr))return;if(u(this,lr)!==e)throw new Error("Failed to set URL. Browser frame mismatch.");let r=u(this,Oe).href,o=u(this,Oe).hash;if(u(this,Oe).href=t,u(this,Oe).hash!==o){let i=u(this,Oe).href;u(this,yp).push(new um("hashchange",{oldURL:r,newURL:i})),u(this,lr)?.window?.document?.[po](),u(this,gm)&&u(this,lr).window?.clearTimeout(u(this,gm)),w(this,gm,u(this,lr).window?.setTimeout(()=>{let n=u(this,yp);w(this,yp,[]);for(let a of n)u(this,lr)?.window?.dispatchEvent(a)}))}}[wt](){u(this,gm)&&u(this,lr)?.window?.clearTimeout(u(this,gm)),w(this,lr,null)}toString(){return u(this,Oe).toString()}};lr=new WeakMap,Oe=new WeakMap,gm=new WeakMap,yp=new WeakMap;var Jo=class{constructor(e){s(this,"type");s(this,"target");s(this,"addedNodes");s(this,"removedNodes");s(this,"previousSibling");s(this,"nextSibling");s(this,"attributeName");s(this,"attributeNamespace");s(this,"oldValue");this.type=e.type,this.target=e.target,this.addedNodes=e.addedNodes||[],this.removedNodes=e.removedNodes||[],this.previousSibling=e.previousSibling||null,this.nextSibling=e.nextSibling||null,this.attributeName=e.attributeName||null,this.attributeNamespace=e.attributeNamespace||null,this.oldValue=e.oldValue||null}};var Nb=class{constructor(e,t,r,o){s(this,"description");s(this,"enabledPlugin");s(this,"suffixes");s(this,"type");this.description=e,this.enabledPlugin=t,this.suffixes=r,this.type=o}toString(){return"[object MimeType]"}};var Dy=class{constructor(e){s(this,"length");for(let t=0,r=e.length;t<r;t++)this[t]=e[t],this[e[t].type]=e[t];this.length=e.length}item(e){return this[e]||null}namedItem(e){return this[e]||null}toString(){return"[object MimeTypeArray]"}};var Lb=class{constructor(e,t,r,o){s(this,"length",0);s(this,"description");s(this,"filename");s(this,"name");this.description=t,this.filename=r,this.name=o;for(let i=0,n=e.length;i<n;i++)this[i]=e[i],this[e[i].type]=e[i];this.length=e.length}item(e){return this[e]||null}namedItem(e){return this[e]||null}toString(){return"[object Plugin]"}};var Oy=class{constructor(e){s(this,"length");for(let t=0,r=e.length;t<r;t++)this[t]=e[t],this[e[t].name]=e[t];this.length=e.length}item(e){return this[e]||null}namedItem(e){return this[e]||null}refresh(){}toString(){return"[object PluginArray]"}};var nA;(function(l){l.geolocation="geolocation",l.notifications="notifications",l.push="push",l.midi="midi",l.camera="camera",l.microphone="microphone",l.backgroundFetch="background-fetch",l.backgroundSync="background-sync",l.persistentStorage="persistent-storage",l.ambientLightSensor="ambient-light-sensor",l.accelerometer="accelerometer",l.gyroscope="gyroscope",l.magnetometer="magnetometer",l.screenWakeLock="screen-wake-lock",l.nfc="nfc",l.displayCapture="display-capture",l.accessibilityEvents="accessibility-events",l.clipboardRead="clipboard-read",l.clipboardWrite="clipboard-write",l.paymentHandler="payment-handler",l.idleDetection="idle-detection",l.periodicBackgroundSync="periodic-background-sync",l.systemWakeLock="system-wake-lock",l.storageAccess="storage-access",l.windowManagement="window-management",l.windowPlacement="window-placement",l.localFonts="local-fonts",l.topLevelStorageAccess="top-level-storage-access"})(nA||(nA={}));var Fx=nA;var Vy,kb,fm=class{constructor(e){E(this,Vy,{});E(this,kb);e?.document||new TypeError("Invalid constructor"),w(this,kb,e)}async query(e){let t=e?.name;if(t&&u(this,Vy)[t])return u(this,Vy)[t];if(!Object.values(Fx).includes(t))throw new Error(`Failed to execute 'query' on 'Permissions': Failed to read the 'name' property from 'PermissionDescriptor': The provided value '${t}' is not a valid enum value of type PermissionName.`);return u(this,Vy)[t]=new(u(this,kb)).PermissionStatus("granted"),u(this,Vy)[t]}};Vy=new WeakMap,kb=new WeakMap;var Uy,Ib,Mb,up=class{constructor(e){E(this,Uy);E(this,Ib);E(this,Mb);if(!e)throw new TypeError("Invalid constructor");w(this,Uy,e),w(this,Ib,new ja(e)),w(this,Mb,new fm(e))}get cookieEnabled(){return!0}get credentials(){return null}get geolocation(){return null}get language(){return"en-US"}get languages(){return["en-US","en"]}get locks(){return null}get maxTouchPoints(){return new rt(u(this,Uy)).getSettings()?.navigator.maxTouchPoints||0}get hardwareConcurrency(){return 8}get appCodeName(){return"Mozilla"}get appName(){return"Netscape"}get appVersion(){let e=this.userAgent,t=e.indexOf("/");return t>-1?e.substring(t+1):""}get platform(){let e=this.userAgent,t=e.indexOf("("),r=e.indexOf(")");return t>-1&&r>-1?e.substring(t+1,r):""}get product(){return"Gecko"}get productSub(){return"20100101"}get vendor(){return""}get vendorSub(){return""}get userAgent(){return new rt(u(this,Uy)).getSettings()?.navigator.userAgent||""}get onLine(){return!0}get permissions(){return u(this,Mb)}get clipboard(){return u(this,Ib)}get webdriver(){return!0}get doNotTrack(){return"unspecified"}get mimeTypes(){return new Dy([])}get plugins(){return new Oy([])}sendBeacon(e,t){return u(this,Uy).fetch(e,{method:"POST",body:t}),!0}toString(){return"[object Navigator]"}};Uy=new WeakMap,Ib=new WeakMap,Mb=new WeakMap;var lA;(function(l){l[l.disconnect=1]="disconnect",l[l.preceding=2]="preceding",l[l.following=4]="following",l[l.contains=8]="contains",l[l.containedBy=16]="containedBy",l[l.implementationSpecific=32]="implementationSpecific"})(lA||(lA={}));var Bi=lA;var St=class l{static isTextNode(e){return e?.[U]===L.textNode}static isInclusiveAncestor(e,t,r=!1){if(e===null||t===null)return!1;if(e===t)return!0;if(!e[q].length||r&&t[it]!==e[it])return!1;if(r&&e===t[T]&&t[it])return!0;let o=t[Y];for(;o;){if(e===o)return!0;if(e[Y]===o[Y])return!1;o=o[Y]?o[Y]:r&&o.host?o.host:null}return!1}static isFollowing(e,t){if(e===t)return!1;let r=t;for(;r;)if(r=this.following(r),r===e)return!0;return!1}static getNodeLength(e){switch(e[U]){case L.documentTypeNode:return 0;case L.textNode:case L.processingInstructionNode:case L.commentNode:return e.data.length;default:return e[q].length}}static following(e,t){let r=e.firstChild;if(r)return r;let o=e;for(;o;){if(o===t)return null;let i=o.nextSibling;if(i)return i;o=o[Y]}return null}static nextDescendantNode(e){for(;e&&!e.nextSibling;)e=e[Y];return e?e.nextSibling:null}static attributeListsEqual(e,t){let r=Array.from(e[ft][$].values()),o=Array.from(t[ft][$].values());for(let i of r){let n=!1;for(let a of o)if(i[tt]===a[tt]&&i.localName===a.localName&&i[z]===a[z]){n=!0;break}if(!n)return!1}return!0}static isEqualNode(e,t){if(e[U]!==t[U])return!1;switch(e[U]){case L.documentTypeNode:let r=e,o=t;if(r.name!==o.name||r.publicId!==o.publicId||r.systemId!==o.systemId)return!1;break;case L.elementNode:let i=e,n=t;if(i[tt]!==n[tt]||i[Ot]!==n[Ot]||i[nt]!==n[nt]||i[ft][$].size!==n[ft][$].size)return!1;break;case L.attributeNode:let a=e,y=t;if(a[tt]!==y[tt]||a.localName!==y.localName||a[z]!==y[z])return!1;break;case L.processingInstructionNode:let p=e,d=t;if(p.target!==d.target||p.data!==d.data)return!1;break;case L.textNode:case L.commentNode:let b=e,f=t;if(b.data!==f.data)return!1;break}if(e[U]===L.elementNode&&!l.attributeListsEqual(e,t)||e[q].length!==t[q].length)return!1;for(let r=0;r<e[q].length;r++){let o=e[q][r],i=t[q][r];if(!l.isEqualNode(o,i))return!1}return!0}};var aA;(function(l){l.attributes="attributes",l.characterData="characterData",l.childList="childList"})(aA||(aA={}));var ss=aA;var Ve=class{static createNode(e,t,...r){return t.prototype[m]||this.ownerDocuments.push(e),new t(...r)}static pullOwnerDocument(){return this.ownerDocuments.pop()||null}};s(Ve,"ownerDocuments",[]);var Bx,Dx,Ox,Vx,Ux,Gx,_x,Hx,Wx,Yx,qx,Kx,jx,Qx,Ce=class Ce extends Tt{constructor(){super();s(this,Qx,!1);s(this,jx,null);s(this,Kx,null);s(this,qx,null);s(this,Yx,null);s(this,Wx,null);s(this,Hx,null);s(this,_x,[]);s(this,Gx,[]);s(this,Ux,[]);s(this,Vx,null);s(this,Ox,null);s(this,Dx,{querySelector:new Map,querySelectorAll:new Map,matches:new Map,elementsByTagName:new Map,elementsByTagNameNS:new Map,elementByTagName:new Map,elementById:new Map,computedStyle:null});s(this,Bx,[]);if(this[m])this[T]=this[m].document;else{let t=Ve.pullOwnerDocument();if(!t)throw new TypeError("Illegal constructor");this[T]=t,this[m]=t[m]}}get[(Qx=it,jx=Y,Kx=Be,qx=Wr,Yx=Ar,Wx=Ht,Hx=Ke,_x=Ro,Gx=q,Ux=dt,Vx=ul,Ox=Ji,Dx=W,Bx=ir,Symbol.toStringTag)](){return this.constructor.name}get isConnected(){return this[it]}get ownerDocument(){return this[T]}get parentNode(){return this[Y]}get nodeType(){return this[U]}get childNodes(){return this[ul]||(this[ul]=new Ii(h,this[q])),this[ul]}get textContent(){return""}set textContent(t){}get nodeValue(){return null}set nodeValue(t){}get nodeName(){return""}get previousSibling(){if(this[Y]){let t=this[Y][q],r=t.indexOf(this[Vt]||this);if(r>0)return t[r-1]}return null}get nextSibling(){if(this[Y]){let t=this[Y][q],r=t.indexOf(this[Vt]||this);if(r>-1&&r+1<t.length)return t[r+1]}return null}get firstChild(){let t=this[q];return t.length>0?t[0]:null}get lastChild(){let t=this[q];return t.length>0?t[t.length-1]:null}get parentElement(){let t=this[Y];for(;t&&t[U]!==L.elementNode;)t=t[Y];return t}get baseURI(){let t=this[T].querySelector("base");return t?t.href:this[m].location.href}hasChildNodes(){return this[q].length>0}contains(t){if(t===void 0)return!1;let r=this[Vt]||this;return St.isInclusiveAncestor(r,t)}getRootNode(t){if(this[it])return this[Be]&&!t?.composed?this[Be]:this[T];let r=this;for(;r[Y];)r=r[Y];return r}cloneNode(t=!1){return this[ct](t)}appendChild(t){if(arguments.length<1)throw new this[m].TypeError("Failed to execute 'appendChild' on 'Node': 1 argument required, but only 0 present");return this[vt](t)}removeChild(t){if(arguments.length<1)throw new this[m].TypeError("Failed to execute 'removeChild' on 'Node': 1 argument required, but only 0 present");return this[Hr](t)}insertBefore(t,r){if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertBefore' on 'Node': 2 arguments required, but only ${arguments.length} present.`);return this[uo](t,r)}replaceChild(t,r){if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceChild' on 'Node': 2 arguments required, but only ${arguments.length} present.`);return this[Iu](t,r)}[ct](t=!1){let r=Ve.createNode(this[T],this.constructor);if(r[q].length){let o=r[q];for(;o.length;)r.removeChild(o[0])}if(t)for(let o of this[q]){let i=o.cloneNode(!0);i[Y]=r,r[q].push(i),i[U]===L.elementNode&&r[dt].push(i)}return r}[vt](t,r=!1){t[Vt]&&(t=t[Vt]);let o=this[Vt]||this;if(!r){if(t===o)throw new this[m].DOMException("Failed to execute 'appendChild' on 'Node': Not possible to append a node as a child of itself.");if(St.isInclusiveAncestor(t,o,!0))throw new this[m].DOMException("Failed to execute 'appendChild' on 'Node': The new node is a parent of the node to insert to.",v.domException)}if(t[U]===L.documentFragmentNode){let i=t[q];for(;i.length;)this.appendChild(i[0]);return t}t[Y]&&t[Y][Hr](t),t[Y]=o,t[po](),this[q].push(t),t[U]===L.elementNode&&this[dt].push(t),t[Io]();for(let i of this[Ro])i.options?.subtree&&i.callback.deref()&&t[sy](i);return this[sn](new Jo({target:o,type:ss.childList,addedNodes:[t]})),t}[Hr](t){t[Vt]&&(t=t[Vt]);let r=this[q].indexOf(t);if(r===-1)throw new this[m].DOMException("Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.");let o=t.previousSibling,i=t.nextSibling;if(t[Y]=null,t[po](),this[q].splice(r,1),t[U]===L.elementNode){let n=this[dt].indexOf(t);n!==-1&&this[dt].splice(n,1)}if(t[Ji]){let n=t[Ji][mn].indexOf(t);n!==-1&&t[Ji][mn].splice(n,1),t[Ji]=null}t[en]();for(let n of this[Ro])n.options?.subtree&&n.callback.deref()&&t[Tu](n);return this[sn](new Jo({target:this[Vt]||this,type:ss.childList,removedNodes:[t],previousSibling:o,nextSibling:i})),t}[uo](t,r,o=!1){if(t[Vt]&&(t=t[Vt]),r&&r[Vt]&&(r=r[Vt]),t===r)return t;let i=this[Vt]||this;if(!o){if(t===i)throw new this[m].DOMException("Failed to execute 'insertBefore' on 'Node': Not possible to insert a node as a child of itself.");if(St.isInclusiveAncestor(t,i,!0))throw new this[m].DOMException("Failed to execute 'insertBefore' on 'Node': The new node is a parent of the node to insert to.",v.domException)}if(t[U]===L.documentFragmentNode){let y=t[q];for(;y.length>0;)this[uo](y[0],r,!0);return t}if(!r)return this[vt](t,!0),t;let n=this[q];if(!n.includes(r))throw new this[m].DOMException("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.");t[Y]&&t[Y][Hr](t),t[Y]=i,t[po]();let a=n.indexOf(r);if(t[U]===L.elementNode){let y=this[dt];if(r[U]===L.elementNode)y.splice(y.indexOf(r),0,t);else{let p=!1;for(let d=a,b=n.length;d<b;d++)if(n[d][U]===L.elementNode){y.splice(y.indexOf(n[d]),0,t),p=!0;break}p||y.push(t)}}n.splice(a,0,t),t[Io]();for(let y of this[Ro])y.options?.subtree&&y.callback.deref()&&t[sy](y);return this[sn](new Jo({target:i,type:ss.childList,addedNodes:[t]})),t}[Iu](t,r){return this.insertBefore(t,r),this.removeChild(r),r}isEqualNode(t){return St.isEqualNode(this,t)}toString(){return`[object ${this.constructor.name}]`}[sy](t){if(this[Ro].push(t),t.options.subtree)for(let r of this[q])r[sy](t)}[Tu](t){let r=this[Ro].indexOf(t);if(r!==-1&&this[Ro].splice(r,1),t.options.subtree)for(let o of this[q])o[Tu](t)}[sn](t){this[po]();let r=this[Ro];if(r.length)for(let o=0,i=r.length;o<i;o++){let n=r[o],a=n.callback.deref();if(a)switch(t.type){case ss.childList:n.options.childList&&a(t);break;case ss.attributes:n.options.attributes&&(!n.options.attributeFilter||n.options.attributeFilter.includes(t.attributeName))&&a(t);break;case ss.characterData:n.options?.characterData&&a(t);break}else r.splice(o,1),o--,i--}}[po](){let t=this[W];if(t.querySelector.size){for(let i of t.querySelector.values())i.result&&(i.result=null);t.querySelector=new Map}if(t.querySelectorAll.size){for(let i of t.querySelectorAll.values())i.result&&(i.result=null);t.querySelectorAll=new Map}if(t.matches.size){for(let i of t.matches.values())i.result&&(i.result=null);t.matches=new Map}if(t.elementsByTagName.size){for(let i of t.elementsByTagName.values())i.result&&(i.result=null);t.elementsByTagName=new Map}if(t.elementsByTagNameNS.size){for(let i of t.elementsByTagNameNS.values())i.result&&(i.result=null);t.elementsByTagNameNS=new Map}if(t.elementByTagName.size){for(let i of t.elementByTagName.values())i.result&&(i.result=null);t.elementByTagName=new Map}if(t.elementById.size){for(let i of t.elementById.values())i.result&&(i.result=null);t.elementById=new Map}let r=this[ir];if(r.length){for(let i of r)i.result=null;this[ir]=[]}let o=this[T];if(o&&o[$i].length){for(let i of o[$i])i.result=null;o[$i]=[]}}[Io](){let t=this[Y],r=t||this[Ma],o=!1,i=!1;if(!this[it]&&r[it]?(this[it]=!0,o=!0):this[it]&&!r[it]&&(this[it]=!1,i=!0),this[T]=r[T]||r,this[m]=r[m]||r[mo],t){this[U]!==L.documentFragmentNode&&(this[Be]=t[Be]);let a=this[Z];t[Wr]&&a!=="STYLE"&&(this[Wr]=t[Wr]),t[Ar]&&a!=="TEXTAREA"&&(this[Ar]=t[Ar]),t[Ht]&&a!=="FORM"&&(this[Ht]=t[Ht]),t[Ke]&&a!=="SELECT"&&(this[Ke]=t[Ke])}let n=this[q];for(let a=0,y=n.length;a<y;a++)n[a][Y]=this,n[a][Io]();this[Ee]&&this[Ee][Io](),o?this[Rr]():i&&this[Fr]()}[en](){this[U]!==L.documentFragmentNode&&(this[Be]=null);let t=this[Z];t!=="STYLE"&&(this[Wr]=null),t!=="TEXTAREA"&&(this[Ar]=null),t!=="FORM"&&(this[Ht]=null),t!=="SELECT"&&(this[Ke]=null),this[it]&&(this[it]=!1,this[Fr]());let r=this[q];for(let o=0,i=r.length;o<i;o++)r[o][Io]();this[Ee]&&this[Ee][en]()}[Rr](){this[Ee]&&this[Ee][Rr]()}[Fr](){this[T][qe]===this&&(this[T][po](),this[T][qe]=null),this[Ee]&&this[Ee][Fr]()}[wt](){super[wt](),this[it]=!1;for(let t=0,r=this[q].length;t<r;t++)this[q][t][wt]();this[Ro]=[],this[Y]=null,this[Be]=null,this[Wr]=null,this[Ar]=null,this[Ht]=null,this[Ke]=null,this[Ro]=[],this[q]=[],this[dt]=[],this[ul]=null,this[Ji]=null,this[po]()}compareDocumentPosition(t){if(this===t)return 0;let r=t,o=this[Vt]||this,i=null,n=null;if(r[U]===L.attributeNode&&(i=r,r=i[Lt]),o[U]===L.attributeNode&&(n=o,o=n[Lt],i!==null&&r!==null&&o===r))for(let It of o[ft][$].values()){if(St.isEqualNode(It,i))return Ce.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|Ce.DOCUMENT_POSITION_PRECEDING;if(St.isEqualNode(It,n))return Ce.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|Ce.DOCUMENT_POSITION_FOLLOWING}let a=[],y=o;for(;y;){if(y===r)return Ce.DOCUMENT_POSITION_CONTAINS|Ce.DOCUMENT_POSITION_PRECEDING;a.push(y),y=y[Y]}let p=[],d=r;for(;d;){if(d===o)return Ce.DOCUMENT_POSITION_CONTAINED_BY|Ce.DOCUMENT_POSITION_FOLLOWING;p.push(d),d=d[Y]}let b=(It,At)=>It[It.length-1-At],f=b(a,0);if(!f||f!==b(p,0))return Ce.DOCUMENT_POSITION_DISCONNECTED|Ce.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|Ce.DOCUMENT_POSITION_FOLLOWING;let S=0,M=Math.min(a.length,p.length);for(let It=0;It<M;++It){let At=b(a,It),Xe=b(p,It);if(At!==Xe)break;S=It}let N=b(a,S),K=0,mt=-1,Nt=-1,qt=b(a,S+1),at=b(p,S+1),xt=It=>{for(let At of It){if(xt(At[q]),At===qt?mt=K:At===at&&(Nt=K),mt!==-1&&Nt!==-1)break;K++}};return xt(N[q]),Nt<mt?Ce.DOCUMENT_POSITION_PRECEDING:Ce.DOCUMENT_POSITION_FOLLOWING}normalize(){let t=this.firstChild;for(;t;){if(St.isTextNode(t)){for(;St.isTextNode(t.nextSibling);)t.data+=t.nextSibling.data,t.nextSibling.remove();if(!t.data.length){let r=t;t=t.nextSibling,r.remove();continue}}else t.normalize();t=t.nextSibling}}isSameNode(t){return this===t}};s(Ce,"ELEMENT_NODE",L.elementNode),s(Ce,"ATTRIBUTE_NODE",L.attributeNode),s(Ce,"TEXT_NODE",L.textNode),s(Ce,"CDATA_SECTION_NODE",L.cdataSectionNode),s(Ce,"COMMENT_NODE",L.commentNode),s(Ce,"DOCUMENT_NODE",L.documentNode),s(Ce,"DOCUMENT_TYPE_NODE",L.documentTypeNode),s(Ce,"DOCUMENT_FRAGMENT_NODE",L.documentFragmentNode),s(Ce,"PROCESSING_INSTRUCTION_NODE",L.processingInstructionNode),s(Ce,"DOCUMENT_POSITION_CONTAINED_BY",Bi.containedBy),s(Ce,"DOCUMENT_POSITION_CONTAINS",Bi.contains),s(Ce,"DOCUMENT_POSITION_DISCONNECTED",Bi.disconnect),s(Ce,"DOCUMENT_POSITION_FOLLOWING",Bi.following),s(Ce,"DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC",Bi.implementationSpecific),s(Ce,"DOCUMENT_POSITION_PRECEDING",Bi.preceding);var bt=Ce;bt.prototype.ELEMENT_NODE=L.elementNode;bt.prototype.ATTRIBUTE_NODE=L.attributeNode;bt.prototype.TEXT_NODE=L.textNode;bt.prototype.CDATA_SECTION_NODE=L.cdataSectionNode;bt.prototype.COMMENT_NODE=L.commentNode;bt.prototype.DOCUMENT_NODE=L.documentNode;bt.prototype.DOCUMENT_TYPE_NODE=L.documentTypeNode;bt.prototype.DOCUMENT_FRAGMENT_NODE=L.documentFragmentNode;bt.prototype.PROCESSING_INSTRUCTION_NODE=L.processingInstructionNode;bt.prototype.DOCUMENT_POSITION_CONTAINED_BY=Bi.containedBy;bt.prototype.DOCUMENT_POSITION_CONTAINS=Bi.contains;bt.prototype.DOCUMENT_POSITION_DISCONNECTED=Bi.disconnect;bt.prototype.DOCUMENT_POSITION_FOLLOWING=Bi.following;bt.prototype.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=Bi.implementationSpecific;bt.prototype.DOCUMENT_POSITION_PRECEDING=Bi.preceding;var $x,Xx,zx,Jx,Zx,tv,ev,rv,pp=class extends bt{constructor(){super(...arguments);s(this,rv,L.attributeNode);s(this,ev,null);s(this,tv,null);s(this,Zx,null);s(this,Jx,null);s(this,zx,null);s(this,Xx,!0);s(this,$x,null)}get specified(){return this[Mc]}get ownerElement(){return this[Lt]}get value(){return this[z]}set value(t){this[z]=t}get name(){return this[st]||""}get localName(){return this[nt]||""}get prefix(){return this[Ot]}get textContent(){return this[z]||""}get namespaceURI(){return this[tt]}[(rv=U,ev=tt,tv=st,Zx=nt,Jx=Ot,zx=z,Xx=Mc,$x=Lt,ct)](t=!1){let r=super[ct](t);return r[tt]=this[tt],r[st]=this[st],r[nt]=this[nt],r[Ot]=this[Ot],r[z]=this[z],r[Mc]=this[Mc],r}};var Yl=class{static appendData(e,t){e.data+=t}static deleteData(e,t,r){e.data=e.data.substring(0,t)+e.data.substring(t+r)}static insertData(e,t,r){e.data=e.data.substring(0,t)+r+e.data.substring(t)}static replaceData(e,t,r,o){e.data=e.data.substring(0,t)+o+e.data.substring(t+r)}static substringData(e,t,r){return e.data.substring(t,t+r)}};var ql=class{static previousElementSibling(e){let t=e.previousSibling;for(;t&&t[U]!==L.elementNode;)t=t.previousSibling;return t}static nextElementSibling(e){let t=e.nextSibling;for(;t&&t[U]!==L.elementNode;)t=t.nextSibling;return t}};var Di=class{static remove(e){e[Y]&&e[Y].removeChild(e)}static replaceWith(e,...t){let r=e[Y];if(r){for(let o of t)o instanceof bt?r.insertBefore(o,e):r.insertBefore(r[T].createTextNode(String(o)),e);r.removeChild(e)}}static before(e,...t){let r=e[Y];if(r)for(let o of t)o instanceof bt?r.insertBefore(o,e):r.insertBefore(r[T].createTextNode(String(o)),e)}static after(e,...t){let r=e[Y];if(!r)return;let o=e.nextSibling;for(let i of t){let n=i instanceof bt?i:r[T].createTextNode(String(i));o?r.insertBefore(n,o):r.appendChild(n)}}};var ov,Ds=class extends bt{constructor(t){super();s(this,ov,"");this[Xt]=t!==void 0?String(t):""}get length(){return this[Xt].length}get data(){return this[Xt]}set data(t){let r=this[Xt];this[Xt]=String(t),this[sn](new Jo({target:this,type:ss.characterData,oldValue:r}))}get textContent(){return this[Xt]}set textContent(t){this.data=t}get nodeValue(){return this[Xt]}set nodeValue(t){this.textContent=t}get previousElementSibling(){return ql.previousElementSibling(this)}get nextElementSibling(){return ql.nextElementSibling(this)}appendData(t){Yl.appendData(this,t)}deleteData(t,r){Yl.deleteData(this,t,r)}insertData(t,r){Yl.insertData(this,t,r)}replaceData(t,r,o){Yl.replaceData(this,t,r,o)}substringData(t,r){return Yl.substringData(this,t,r)}remove(){Di.remove(this)}replaceWith(...t){Di.replaceWith(this,...t)}before(...t){Di.before(this,...t)}after(...t){Di.after(this,...t)}[(ov=Xt,ct)](t=!1){let r=super[ct](t);return r[Xt]=this[Xt],r}};var iv,sv,nv,lv,Hn=class extends bt{constructor(){super(...arguments);s(this,lv,L.documentTypeNode);s(this,nv,"");s(this,sv,"");s(this,iv,"")}get name(){return this[st]}get publicId(){return this[fl]}get systemId(){return this[Sl]}get nodeName(){return this.name}toString(){return"[object DocumentType]"}[(lv=U,nv=st,sv=fl,iv=Sl,ct)](t=!1){let r=super[ct](t);return r[st]=this[st],r[fl]=this[fl],r[Sl]=this[Sl],r}};var mA;(function(l){l.loading="loading",l.interactive="interactive",l.complete="complete"})(mA||(mA={}));var LS=mA;var Sm,Rb=class{constructor(e){E(this,Sm);w(this,Sm,new ts(e))}waitUntilComplete(){return u(this,Sm).waitUntilComplete()}startTask(){return u(this,Sm).startTask()}endTask(e){u(this,Sm).endTask(e)}destroy(){return u(this,Sm).destroy()}};Sm=new WeakMap;var av,mv,yv,uv;uv=R,yv=F,mv=V,av=O;var yA=class yA{constructor(e,t,r,o){s(this,uv,0);s(this,yv,0);s(this,mv,0);s(this,av,0);this[R]=e!=null?Number(e):0,this[F]=t!=null?Number(t):0,this[V]=r!=null?Number(r):0,this[O]=o!=null?Number(o):0}get x(){return this[R]}get y(){return this[F]}get width(){return this[V]}get height(){return this[O]}get top(){return Math.min(this[F],this[F]+this[O])}get right(){return Math.max(this[R],this[R]+this[V])}get bottom(){return Math.max(this[F],this[F]+this[O])}get left(){return Math.min(this[R],this[R]+this[V])}toJSON(){return{x:this.x,y:this.y,width:this.width,height:this.height,top:this.top,right:this.right,bottom:this.bottom,left:this.left}}static fromRect(e){return new yA(e.x,e.y,e.width,e.height)}},Pm=yA;var ns=class l extends Pm{set x(e){this[R]=e}get x(){return this[R]}set y(e){this[F]=e}get y(){return this[F]}set width(e){this[V]=e}get width(){return this[V]}set height(e){this[O]=e}get height(){return this[O]}static fromRect(e){return new l(e.x,e.y,e.width,e.height)}};var yU=/[\t\f\n\r ]+/,pv,hv,cv,dv,bv,So=class l{constructor(e,t,r,o){s(this,bv);s(this,dv);s(this,cv,{items:[],attributeValue:""});s(this,hv);s(this,pv);if(e!==h)throw new TypeError("Illegal constructor");this[Lt]=t,this[Al]=r,this[fS]=o||[];let i=new Te(this,[l]),n=new Proxy(this,{get:(a,y)=>{if(y==="length")return a[to]().length;if(y in a||typeof y=="symbol")return i.bind(y),a[y];let p=Number(y);if(!isNaN(p))return a[to]()[p]},set(a,y,p){if(i.bind(y),typeof y=="symbol")return a[y]=p,!0;let d=Number(y);return isNaN(d)&&(a[y]=p),!0},deleteProperty(a,y){if(typeof y=="symbol")return delete a[y],!0;let p=Number(y);return isNaN(p)&&delete a[y],!0},ownKeys(a){return Object.keys(a[to]())},has(a,y){if(y in a)return!0;if(typeof y=="symbol")return!1;let p=Number(y);return!isNaN(p)&&p>=0&&p<a[to]().length},defineProperty(a,y,p){return i.preventBinding(y),y in a?(Object.defineProperty(a,y,p),!0):!1},getOwnPropertyDescriptor(a,y){if(y in a||typeof y=="symbol")return;let p=Number(y),d=a[to]();if(!isNaN(p)&&d[p])return{value:d[p],writable:!1,enumerable:!0,configurable:!0}}});return this[Vt]=n,n}get length(){return this[to]().length}set value(e){this[Lt].setAttribute(this[Al],e)}get value(){return this[Lt].getAttribute(this[Al])||""}[(bv=Lt,dv=Al,cv=W,hv=fS,pv=Vt,Symbol.iterator)](){return this[to]().values()}item(e){let t=this[to]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),t[e]?t[e]:null}replace(e,t){let r=this[to]().slice(),o=r.indexOf(e);return o===-1?!1:(r[o]=t,this[Lt].setAttribute(this[Al],r.join(" ")),!0)}supports(e){return this[fS].includes(e)}values(){return this[to]().values()}entries(){return this[to]().entries()}forEach(e,t){let r=t??this[Lt][m],o=this[to](),i=this[Vt]??this;for(let n=0,a=o.length;n<a;n++)e.call(r,o[n],n,i)}keys(){return this[to]().keys()}add(...e){let t=this[to]().slice(),r=new Set(t);for(let o of e)r.has(o)||(r.add(o),t.push(o));this[Lt].setAttribute(this[Al],t.join(" "))}remove(...e){let t=this[to](),r=new Set(e),o=t.filter(i=>!r.has(i));this[Lt].setAttribute(this[Al],o.join(" "))}contains(e){return this[to]().includes(e)}toggle(e,t){let r;return t!==void 0?r=t:r=!this.contains(e),r?(this.add(e),!0):(this.remove(e),!1)}[to](){let e=this[Lt].getAttribute(this[Al])??"",t=this[W];if(t.attributeValue===e)return t.items;let r=[],o=e.trim();if(o)for(let i of o.split(yU))r.includes(i)||r.push(i);return t.attributeValue=e,t.items=r,r}toString(){return this.value||""}};var gv,Ne=class l{constructor(e,t){s(this,gv);if(e!==h)throw new TypeError("Illegal constructor");this[ay]=t;let r=new Te(this,this.constructor!==l?[this.constructor,l]:[l]);return new Proxy(this,{get:(o,i)=>{if(i==="length")return t().length;if(i in o||typeof i=="symbol")return r.bind(i),o[i];let n=Number(i);return isNaN(n)?o.namedItem(i)||void 0:t()[n]},set(o,i,n){if(r.bind(i),typeof i=="symbol")return o[i]=n,!0;let a=Number(i);return isNaN(a)&&(o[i]=n),!0},deleteProperty(o,i){if(typeof i=="symbol")return delete o[i],!0;let n=Number(i);return isNaN(n)&&delete o[i],!0},ownKeys(){let o=[],i=t();for(let n=0;n<i.length;n++){let a=i[n],y=a.getAttribute("id")||a.getAttribute("name");o.push(String(n)),y&&o.push(y)}return o},has(o,i){if(i in o)return!0;let n=t(),a=Number(i);if(!isNaN(a)&&a>=0&&a<n.length)return!0;i=String(i);for(let y=0;y<n.length;y++){let p=n[y],d=p.getAttribute("id")||p.getAttribute("name");if(d&&d===i)return!0}return!1},defineProperty(o,i,n){return r.preventBinding(i),i in o?(Object.defineProperty(o,i,n),!0):!1},getOwnPropertyDescriptor(o,i){if(i in o||typeof i=="symbol")return;let n=t(),a=Number(i);if(!isNaN(a)&&a>=0&&a<n.length)return{value:n[a],writable:!1,enumerable:!0,configurable:!0};for(let y=0;y<n.length;y++){let p=n[y],d=p.getAttribute("id")||p.getAttribute("name");if(d&&d===i)return{value:p,writable:!1,enumerable:!0,configurable:!0}}}})}get length(){return this[ay]().length}get[(gv=ay,Symbol.toStringTag)](){return this.constructor.name}toLocaleString(){return`[object ${this.constructor.name}]`}toString(){return`[object ${this.constructor.name}]`}item(e){let t=this[ay]();return e>=0&&t[e]?t[e]:null}[Symbol.iterator](){return this[ay]()[Symbol.iterator]()}namedItem(e){let t=this[ay]();e=String(e);for(let r of t)if(r.getAttribute("id")===e||r.getAttribute("name")===e)return r;return null}};var me=class{static append(e,...t){for(let r of t)r instanceof bt?e.appendChild(r):e.appendChild(e[T].createTextNode(String(r)))}static prepend(e,...t){let r=e.firstChild;for(let o of t)o instanceof bt?e.insertBefore(o,r):e.insertBefore(e[T].createTextNode(String(o)),r)}static replaceChildren(e,...t){let r=e[q];for(;r.length;)e.removeChild(r[0]);this.append(e,...t)}static getElementsByClassName(e,t){return new Ne(h,()=>yt.querySelectorAll(e,`.${t.replace(/\s+/gm,".")}`)[$])}static getElementsByTagName(e,t){let r=t.toUpperCase(),o=t==="*",i=(a,y)=>{let p=[];for(let d of a[dt]){(o||d[Z].toUpperCase()===r)&&p.push(d),d[ir].push(y);for(let b of i(d,y))p.push(b)}return p},n=()=>{let a=e[W].elementsByTagName,y=a.get(t);if(y?.result){let b=y.result.deref();if(b)return b}let p={result:null},d=i(e,p);return p.result=new WeakRef(d),a.set(t,p),d};return new Ne(h,n)}static getElementsByTagNameNS(e,t,r){let o=t===Yt.html&&e[T][Fe]==="text/html"?r.toUpperCase():r,i=r==="*",n=(y,p)=>{let d=[];for(let b of y[dt]){(i||b[Z]===o)&&b[tt]===t&&d.push(b),b[ir].push(p);for(let f of n(b,p))d.push(f)}return d},a=()=>{let y=e[W].elementsByTagNameNS,p=y.get(r);if(p?.result){let f=p.result.deref();if(f)return f}let d={result:null},b=n(e,d);return d.result=new WeakRef(b),y.set(r,d),b};return new Ne(h,a)}static getElementByTagName(e,t){let r=t.toUpperCase(),o=(p,d)=>{for(let b of p[dt]){if(b[ir].push(d),b[Z]===r)return b;let f=o(b,d);if(f)return f}return null},i=e[W].elementByTagName,n=i.get(t);if(n?.result){let p=n.result.deref();if(p)return p}let a={result:null},y=o(e,a);return a.result=y?new WeakRef(y):{deref:()=>null},i.set(t,a),y}static getElementById(e,t){if(t=String(t),e[U]===bt.DOCUMENT_NODE){let y=e[xs].get(t);return y&&y.elements.length>0?y.elements[0]:null}let r=(y,p)=>{for(let d of y[dt]){if(d[ir].push(p),d.getAttribute("id")===t)return d;let b=r(d,p);if(b)return b}return null},o=e[W].elementById,i=o.get(t);if(i?.result){let y=i.result.deref();if(y)return y}let n={result:null},a=r(e,n);return n.result=a?new WeakRef(a):{deref:()=>null},o.set(t,n),a}};var Gy=class extends Array{constructor(e){if(super(),e!==1&&e!==h)throw new TypeError("Illegal constructor")}item(e){return this[e]??null}};var fv,Sv,Pv,Wn=class{constructor(e){s(this,Pv,new Map);s(this,Sv,new Map);s(this,fv,new Map);this[Lt]=e}get length(){return this[$].size}get[(Pv=Es,Sv=Eo,fv=$,Symbol.toStringTag)](){return"NamedNodeMap"}toString(){return"[object NamedNodeMap]"}[Symbol.iterator](){return this[$].values()}item(e){let t=Array.from(this[$].values());return e>=0&&t[e]?t[e]:null}getNamedItem(e){return e=String(e),this[Lt][tt]===Yt.html&&this[Lt][T][Fe]==="text/html"?this[Eo].get(oo.asciiLowerCase(e))?.[0]||null:this[Eo].get(e)?.[0]||null}getNamedItemNS(e,t){let r=this[Es].get(`${e||""}:${t}`);return r&&(!r[Ot]||r[tt])?r:null}setNamedItem(e){return this[Xi](e)}setNamedItemNS(e){return this[Xi](e)}removeNamedItem(e){let t=this.getNamedItem(e);if(!t)throw new this[Lt][m].DOMException(`Failed to execute 'removeNamedItem' on 'NamedNodeMap': No item with name '${e}' was found.`,v.notFoundError);return this[Pl](t),t}removeNamedItemNS(e,t){let r=this.getNamedItemNS(e,t);if(!r)throw new this[Lt][m].DOMException(`Failed to execute 'removeNamedItemNS' on 'NamedNodeMap': No item with name '${t}' in namespace '${e}' was found.`,v.notFoundError);return this[Pl](r),r}[Xi](e,t=!1){if(e[Lt]!==null&&e[Lt]!==this[Lt])throw new this[Lt][m].DOMException("The attribute is in use.",v.inUseAttributeError);e[Lt]=this[Lt];let r=this.getNamedItemNS(e[tt],e[nt])||null,o=this[Eo].get(e[st]);if(r===e)return e;if(this[Es].set(`${e[tt]||""}:${e[nt]}`,e),this[$].set(`${e[tt]||""}:${e[st]}`,e),!o?.length)this[Eo].set(e[st],[e]);else{let i=o.indexOf(r);i!==-1&&o.splice(i,1),o.push(e)}return t||this[Lt][Qe](e,r),r}[Pl](e,t=!1){e[Lt]=null,this[Es].delete(`${e[tt]||""}:${e[nt]}`),this[$].delete(`${e[tt]||""}:${e[st]}`);let r=this[Eo].get(e[st]);if(r?.length){let o=r.indexOf(e);o!==-1&&r.splice(o,1),r.length||this[Eo].delete(e[st])}t||this[Lt][Yr](e)}};var Fb=class{static createProxy(e){let t=new Te(this,[Wn]);return new Proxy(e,{get:(r,o)=>{if(o==="length")return e[$].size;if(o in r||typeof o=="symbol")return t.bind(o),r[o];let i=Number(o);return isNaN(i)?r.getNamedItem(o)||void 0:r.item(i)},set(r,o,i){if(t.bind(o),typeof o=="symbol")return r[o]=i,!0;let n=Number(o);return isNaN(n)&&(r[o]=i),!0},deleteProperty(r,o){if(typeof o=="symbol")return delete r[o],!0;let i=Number(o);return isNaN(i)&&delete r[o],!0},ownKeys(){let r=Array.from(e[$].keys());for(let o=0,i=e[$].size;o<i;o++)r.push(String(o));return r},has(r,o){if(typeof o=="symbol")return!1;if(o in r||e[$].has(o))return!0;let i=Number(o);return!isNaN(i)&&i>=0&&i<e[$].size},defineProperty(r,o,i){return t.preventBinding(o),o in r?(Object.defineProperty(r,o,i),!0):!1},getOwnPropertyDescriptor(r,o){if(o in r||typeof o=="symbol")return;let i=Number(o);if(!isNaN(i)){if(i>=0){let a=r.item(i);if(a)return{value:a,writable:!1,enumerable:!0,configurable:!0}}return}let n=e[$].get(o);if(n)return{value:n,writable:!1,enumerable:!0,configurable:!0}}})}};var uA;(function(l){l.rawText="rawText",l.noSelfDescendants="noSelfDescendants",l.noFirstLevelSelfDescendants="noFirstLevelSelfDescendants",l.noForbiddenFirstLevelDescendants="noForbiddenFirstLevelDescendants",l.noDescendants="noDescendants",l.permittedDescendants="permittedDescendants",l.textOrComments="textOrComments",l.anyDescendants="anyDescendants"})(uA||(uA={}));var H=uA;var br={a:{className:"HTMLAnchorElement",contentModel:H.noSelfDescendants},abbr:{className:"HTMLElement",contentModel:H.anyDescendants},address:{className:"HTMLElement",contentModel:H.anyDescendants},area:{className:"HTMLAreaElement",contentModel:H.noDescendants},article:{className:"HTMLElement",contentModel:H.anyDescendants},aside:{className:"HTMLElement",contentModel:H.anyDescendants},audio:{className:"HTMLAudioElement",contentModel:H.anyDescendants},b:{className:"HTMLElement",contentModel:H.anyDescendants},base:{className:"HTMLBaseElement",contentModel:H.noDescendants},bdi:{className:"HTMLElement",contentModel:H.anyDescendants},bdo:{className:"HTMLElement",contentModel:H.anyDescendants},body:{className:"HTMLBodyElement",contentModel:H.anyDescendants},template:{className:"HTMLTemplateElement",contentModel:H.anyDescendants},form:{className:"HTMLFormElement",contentModel:H.anyDescendants},input:{className:"HTMLInputElement",contentModel:H.noDescendants},textarea:{className:"HTMLTextAreaElement",contentModel:H.anyDescendants},script:{className:"HTMLScriptElement",contentModel:H.rawText},img:{className:"HTMLImageElement",contentModel:H.noDescendants},link:{className:"HTMLLinkElement",contentModel:H.noDescendants},style:{className:"HTMLStyleElement",contentModel:H.rawText},label:{className:"HTMLLabelElement",contentModel:H.anyDescendants},slot:{className:"HTMLSlotElement",contentModel:H.anyDescendants},meta:{className:"HTMLMetaElement",contentModel:H.noDescendants},blockquote:{className:"HTMLQuoteElement",contentModel:H.anyDescendants},br:{className:"HTMLBRElement",contentModel:H.noDescendants},button:{className:"HTMLButtonElement",contentModel:H.anyDescendants},canvas:{className:"HTMLCanvasElement",contentModel:H.anyDescendants},caption:{className:"HTMLTableCaptionElement",contentModel:H.noForbiddenFirstLevelDescendants,forbiddenDescendants:["table","tbody","thead","tfoot","tr","td","th","col","colgroup"],permittedParents:["table"]},cite:{className:"HTMLElement",contentModel:H.anyDescendants},code:{className:"HTMLElement",contentModel:H.anyDescendants},col:{className:"HTMLTableColElement",contentModel:H.noDescendants,permittedParents:["colgroup"]},colgroup:{className:"HTMLTableColElement",contentModel:H.permittedDescendants,permittedDescendants:["col"]},data:{className:"HTMLDataElement",contentModel:H.anyDescendants},datalist:{className:"HTMLDataListElement",contentModel:H.anyDescendants},dd:{className:"HTMLElement",contentModel:H.noForbiddenFirstLevelDescendants,forbiddenDescendants:["dt","dd"]},del:{className:"HTMLModElement",contentModel:H.anyDescendants},details:{className:"HTMLDetailsElement",contentModel:H.anyDescendants},dfn:{className:"HTMLElement",contentModel:H.anyDescendants},dialog:{className:"HTMLDialogElement",contentModel:H.anyDescendants},div:{className:"HTMLDivElement",contentModel:H.anyDescendants},dl:{className:"HTMLDListElement",contentModel:H.anyDescendants},dt:{className:"HTMLElement",contentModel:H.noForbiddenFirstLevelDescendants,forbiddenDescendants:["dt","dd"]},em:{className:"HTMLElement",contentModel:H.anyDescendants},embed:{className:"HTMLEmbedElement",contentModel:H.noDescendants},fieldset:{className:"HTMLFieldSetElement",contentModel:H.anyDescendants},figcaption:{className:"HTMLElement",contentModel:H.anyDescendants},figure:{className:"HTMLElement",contentModel:H.anyDescendants},footer:{className:"HTMLElement",contentModel:H.anyDescendants},h1:{className:"HTMLHeadingElement",contentModel:H.noFirstLevelSelfDescendants},h2:{className:"HTMLHeadingElement",contentModel:H.noFirstLevelSelfDescendants},h3:{className:"HTMLHeadingElement",contentModel:H.noFirstLevelSelfDescendants},h4:{className:"HTMLHeadingElement",contentModel:H.noFirstLevelSelfDescendants},h5:{className:"HTMLHeadingElement",contentModel:H.noFirstLevelSelfDescendants},h6:{className:"HTMLHeadingElement",contentModel:H.noFirstLevelSelfDescendants},head:{className:"HTMLHeadElement",contentModel:H.anyDescendants},header:{className:"HTMLElement",contentModel:H.anyDescendants},hgroup:{className:"HTMLElement",contentModel:H.anyDescendants},hr:{className:"HTMLHRElement",contentModel:H.noDescendants},html:{className:"HTMLHtmlElement",contentModel:H.anyDescendants},i:{className:"HTMLElement",contentModel:H.anyDescendants},iframe:{className:"HTMLIFrameElement",contentModel:H.anyDescendants},ins:{className:"HTMLModElement",contentModel:H.anyDescendants},kbd:{className:"HTMLElement",contentModel:H.anyDescendants},legend:{className:"HTMLLegendElement",contentModel:H.anyDescendants},li:{className:"HTMLLIElement",contentModel:H.noFirstLevelSelfDescendants},main:{className:"HTMLElement",contentModel:H.anyDescendants},map:{className:"HTMLMapElement",contentModel:H.anyDescendants},mark:{className:"HTMLElement",contentModel:H.anyDescendants},menu:{className:"HTMLMenuElement",contentModel:H.anyDescendants},meter:{className:"HTMLMeterElement",contentModel:H.anyDescendants},nav:{className:"HTMLElement",contentModel:H.anyDescendants},noscript:{className:"HTMLElement",contentModel:H.anyDescendants},object:{className:"HTMLObjectElement",contentModel:H.anyDescendants},ol:{className:"HTMLOListElement",contentModel:H.anyDescendants},optgroup:{className:"HTMLOptGroupElement",contentModel:H.noFirstLevelSelfDescendants},option:{className:"HTMLOptionElement",contentModel:H.noForbiddenFirstLevelDescendants,forbiddenDescendants:["option","optgroup"]},output:{className:"HTMLOutputElement",contentModel:H.anyDescendants},p:{className:"HTMLParagraphElement",contentModel:H.noForbiddenFirstLevelDescendants,forbiddenDescendants:["address","article","aside","blockquote","details","dialog","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","menu","nav","ol","p","pre","section","table","ul"]},param:{className:"HTMLParamElement",contentModel:H.noDescendants},picture:{className:"HTMLPictureElement",contentModel:H.anyDescendants},pre:{className:"HTMLPreElement",contentModel:H.anyDescendants},progress:{className:"HTMLProgressElement",contentModel:H.anyDescendants},q:{className:"HTMLQuoteElement",contentModel:H.anyDescendants},rb:{className:"HTMLElement",contentModel:H.anyDescendants},rp:{className:"HTMLElement",contentModel:H.noForbiddenFirstLevelDescendants,forbiddenDescendants:["rp","rt"]},rt:{className:"HTMLElement",contentModel:H.noForbiddenFirstLevelDescendants,forbiddenDescendants:["rp","rt"]},rtc:{className:"HTMLElement",contentModel:H.anyDescendants},ruby:{className:"HTMLElement",contentModel:H.anyDescendants},s:{className:"HTMLElement",contentModel:H.anyDescendants},samp:{className:"HTMLElement",contentModel:H.anyDescendants},section:{className:"HTMLElement",contentModel:H.anyDescendants},select:{className:"HTMLSelectElement",contentModel:H.anyDescendants},small:{className:"HTMLElement",contentModel:H.anyDescendants},source:{className:"HTMLSourceElement",contentModel:H.noDescendants},span:{className:"HTMLSpanElement",contentModel:H.anyDescendants},strong:{className:"HTMLElement",contentModel:H.anyDescendants},sub:{className:"HTMLElement",contentModel:H.anyDescendants},summary:{className:"HTMLElement",contentModel:H.anyDescendants},sup:{className:"HTMLElement",contentModel:H.anyDescendants},table:{className:"HTMLTableElement",contentModel:H.permittedDescendants,permittedDescendants:["caption","colgroup","thead","tfoot","tbody"],moveForbiddenDescendant:{exclude:[]}},tbody:{className:"HTMLTableSectionElement",contentModel:H.permittedDescendants,permittedDescendants:["tr"],permittedParents:["table"],moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody"]}},td:{className:"HTMLTableCellElement",contentModel:H.noForbiddenFirstLevelDescendants,forbiddenDescendants:["td","th","tr","tbody","tfoot","thead"],permittedParents:["tr"]},tfoot:{className:"HTMLTableSectionElement",contentModel:H.permittedDescendants,permittedDescendants:["tr"],permittedParents:["table"],moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody"]}},th:{className:"HTMLTableCellElement",contentModel:H.noForbiddenFirstLevelDescendants,forbiddenDescendants:["td","th","tr","tbody","tfoot","thead"],permittedParents:["tr"]},thead:{className:"HTMLTableSectionElement",contentModel:H.permittedDescendants,permittedDescendants:["tr"],permittedParents:["table"],moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody"]}},time:{className:"HTMLTimeElement",contentModel:H.anyDescendants},title:{className:"HTMLTitleElement",contentModel:H.anyDescendants},tr:{className:"HTMLTableRowElement",contentModel:H.permittedDescendants,permittedDescendants:["td","th"],permittedParents:["tbody","tfoot","thead"],addPermittedParent:"tbody",moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody","tr"]}},track:{className:"HTMLTrackElement",contentModel:H.noDescendants},u:{className:"HTMLElement",contentModel:H.anyDescendants},ul:{className:"HTMLUListElement",contentModel:H.anyDescendants},var:{className:"HTMLElement",contentModel:H.anyDescendants},video:{className:"HTMLVideoElement",contentModel:H.anyDescendants},wbr:{className:"HTMLElement",contentModel:H.noDescendants}};var pA,uU=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),hA=(pA=String.fromCodePoint)!==null&&pA!==void 0?pA:(l=>{let e="";return l>65535&&(l-=65536,e+=String.fromCharCode(l>>>10&1023|55296),l=56320|l&1023),e+=String.fromCharCode(l),e});function cA(l){var e;return l>=55296&&l<=57343||l>1114111?65533:(e=uU.get(l))!==null&&e!==void 0?e:l}function kS(l){let e=typeof atob=="function"?atob(l):typeof Buffer.from=="function"?Buffer.from(l,"base64").toString("binary"):new Buffer(l,"base64").toString("binary"),t=e.length&-2,r=new Uint16Array(t/2);for(let o=0,i=0;o<t;o+=2){let n=e.charCodeAt(o),a=e.charCodeAt(o+1);r[i++]=n|a<<8}return r}var dA=kS("QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA+6D/IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xtbm9wcnN0dVQAWgBeAGUAaQBzAHcAfgCBAIQAhwCSAJoAoACsALMAbABpAGcAO4DGAMZAUAA7gCYAJkBjAHUAdABlADuAwQDBQHIiZXZlAAJhAAFpeW0AcgByAGMAO4DCAMJAEGRyAADgNdgE3XIAYQB2AGUAO4DAAMBA8CFoYZFj4SFjcgBhZAAAoFMqAAFncIsAjgBvAG4ABGFmAADgNdg43fAlbHlGdW5jdGlvbgCgYSBpAG4AZwA7gMUAxUAAAWNzpACoAHIAAOA12Jzc6SFnbgCgVCJpAGwAZABlADuAwwDDQG0AbAA7gMQAxEAABGFjZWZvcnN1xQDYANoA7QDxAPYA+QD8AAABY3LJAM8AayNzbGFzaAAAoBYidgHTANUAAKDnKmUAZAAAoAYjeQARZIABY3J0AOAA5QDrAGEidXNlAACgNSLuI291bGxpcwCgLCFhAJJjcgAA4DXYBd1wAGYAAOA12Dnd5SF2ZdhiYwDyAOoAbSJwZXEAAKBOIgAHSE9hY2RlZmhpbG9yc3UXARoBHwE6AVIBVQFiAWQBZgGCAakB6QHtAfIBYwB5ACdkUABZADuAqQCpQIABY3B5ACUBKAE1AfUhdGUGYWmg0iJ0KGFsRGlmZmVyZW50aWFsRAAAoEUhbCJleXMAAKAtIQACYWVpb0EBRAFKAU0B8iFvbgxhZABpAGwAO4DHAMdAcgBjAAhhbiJpbnQAAKAwIm8AdAAKYQABZG5ZAV0BaSJsbGEAuGB0I2VyRG90ALdg8gA5AWkAp2NyImNsZQAAAkRNUFRwAXQBeQF9AW8AdAAAoJkiaSJudXMAAKCWIuwhdXMAoJUiaSJtZXMAAKCXIm8AAAFjc4cBlAFrKndpc2VDb250b3VySW50ZWdyYWwAAKAyImUjQ3VybHkAAAFEUZwBpAFvJXVibGVRdW90ZQAAoB0gdSJvdGUAAKAZIAACbG5wdbABtgHNAdgBbwBuAGWgNyIAoHQqgAFnaXQAvAHBAcUB8iJ1ZW50AKBhIm4AdAAAoC8i7yV1ckludGVncmFsAKAuIgABZnLRAdMBAKACIe8iZHVjdACgECJuLnRlckNsb2Nrd2lzZUNvbnRvdXJJbnRlZ3JhbAAAoDMi7yFzcwCgLypjAHIAAOA12J7ccABDoNMiYQBwAACgTSKABURKU1phY2VmaW9zAAsCEgIVAhgCGwIsAjQCOQI9AnMCfwNvoEUh9CJyYWhkAKARKWMAeQACZGMAeQAFZGMAeQAPZIABZ3JzACECJQIoAuchZXIAoCEgcgAAoKEhaAB2AACg5CoAAWF5MAIzAvIhb24OYRRkbAB0oAciYQCUY3IAAOA12AfdAAFhZkECawIAAWNtRQJnAvIjaXRpY2FsAAJBREdUUAJUAl8CYwJjInV0ZQC0YG8AdAFZAloC2WJiJGxlQWN1dGUA3WJyImF2ZQBgYGkibGRlANxi7yFuZACgxCJmJWVyZW50aWFsRAAAoEYhcAR9AgAAAAAAAIECjgIAABoDZgAA4DXYO91EoagAhQKJAm8AdAAAoNwgcSJ1YWwAAKBQIuIhbGUAA0NETFJVVpkCqAK1Au8C/wIRA28AbgB0AG8AdQByAEkAbgB0AGUAZwByAGEA7ADEAW8AdAKvAgAAAACwAqhgbiNBcnJvdwAAoNMhAAFlb7kC0AJmAHQAgAFBUlQAwQLGAs0CciJyb3cAAKDQIekkZ2h0QXJyb3cAoNQhZQDlACsCbgBnAAABTFLWAugC5SFmdAABQVLcAuECciJyb3cAAKD4J+kkZ2h0QXJyb3cAoPon6SRnaHRBcnJvdwCg+SdpImdodAAAAUFU9gL7AnIicm93AACg0iFlAGUAAKCoInAAQQIGAwAAAAALA3Iicm93AACg0SFvJHduQXJyb3cAAKDVIWUlcnRpY2FsQmFyAACgJSJuAAADQUJMUlRhJAM2AzoDWgNxA3oDciJyb3cAAKGTIUJVLAMwA2EAcgAAoBMpcCNBcnJvdwAAoPUhciJldmUAEWPlIWZ00gJDAwAASwMAAFIDaSVnaHRWZWN0b3IAAKBQKWUkZVZlY3RvcgAAoF4p5SJjdG9yQqC9IWEAcgAAoFYpaSJnaHQA1AFiAwAAaQNlJGVWZWN0b3IAAKBfKeUiY3RvckKgwSFhAHIAAKBXKWUAZQBBoKQiciJyb3cAAKCnIXIAcgBvAPcAtAIAAWN0gwOHA3IAAOA12J/c8iFvaxBhAAhOVGFjZGZnbG1vcHFzdHV4owOlA6kDsAO/A8IDxgPNA9ID8gP9AwEEFAQeBCAEJQRHAEphSAA7gNAA0EBjAHUAdABlADuAyQDJQIABYWl5ALYDuQO+A/Ihb24aYXIAYwA7gMoAykAtZG8AdAAWYXIAAOA12AjdcgBhAHYAZQA7gMgAyEDlIm1lbnQAoAgiAAFhcNYD2QNjAHIAEmF0AHkAUwLhAwAAAADpA20lYWxsU3F1YXJlAACg+yVlJ3J5U21hbGxTcXVhcmUAAKCrJQABZ3D2A/kDbwBuABhhZgAA4DXYPN3zImlsb26VY3UAAAFhaQYEDgRsAFSgdSppImxkZQAAoEIi7CNpYnJpdW0AoMwhAAFjaRgEGwRyAACgMCFtAACgcyphAJdjbQBsADuAywDLQAABaXApBC0E8yF0cwCgAyLvJG5lbnRpYWxFAKBHIYACY2Zpb3MAPQQ/BEMEXQRyBHkAJGRyAADgNdgJ3WwibGVkAFMCTAQAAAAAVARtJWFsbFNxdWFyZQAAoPwlZSdyeVNtYWxsU3F1YXJlAACgqiVwA2UEAABpBAAAAABtBGYAAOA12D3dwSFsbACgACLyI2llcnRyZgCgMSFjAPIAcQQABkpUYWJjZGZnb3JzdIgEiwSOBJMElwSkBKcEqwStBLIE5QTqBGMAeQADZDuAPgA+QO0hbWFkoJMD3GNyImV2ZQAeYYABZWl5AJ0EoASjBOQhaWwiYXIAYwAcYRNkbwB0ACBhcgAA4DXYCt0AoNkicABmAADgNdg+3eUiYXRlcgADRUZHTFNUvwTIBM8E1QTZBOAEcSJ1YWwATKBlIuUhc3MAoNsidSRsbEVxdWFsAACgZyJyI2VhdGVyAACgoirlIXNzAKB3IuwkYW50RXF1YWwAoH4qaSJsZGUAAKBzImMAcgAA4DXYotwAoGsiAARBYWNmaW9zdfkE/QQFBQgFCwUTBSIFKwVSIkRjeQAqZAABY3QBBQQFZQBrAMdiXmDpIXJjJGFyAACgDCFsJWJlcnRTcGFjZQAAoAsh8AEYBQAAGwVmAACgDSHpJXpvbnRhbExpbmUAoAAlAAFjdCYFKAXyABIF8iFvayZhbQBwAEQBMQU5BW8AdwBuAEgAdQBtAPAAAAFxInVhbAAAoE8iAAdFSk9hY2RmZ21ub3N0dVMFVgVZBVwFYwVtBXAFcwV6BZAFtgXFBckFzQVjAHkAFWTsIWlnMmFjAHkAAWRjAHUAdABlADuAzQDNQAABaXlnBWwFcgBjADuAzgDOQBhkbwB0ADBhcgAAoBEhcgBhAHYAZQA7gMwAzEAAoREhYXB/BYsFAAFjZ4MFhQVyACphaSNuYXJ5SQAAoEghbABpAGUA8wD6AvQBlQUAAKUFZaAsIgABZ3KaBZ4F8iFhbACgKyLzI2VjdGlvbgCgwiJpI3NpYmxlAAABQ1SsBbEFbyJtbWEAAKBjIGkibWVzAACgYiCAAWdwdAC8Bb8FwwVvAG4ALmFmAADgNdhA3WEAmWNjAHIAAKAQIWkibGRlAChh6wHSBQAA1QVjAHkABmRsADuAzwDPQIACY2Zvc3UA4QXpBe0F8gX9BQABaXnlBegFcgBjADRhGWRyAADgNdgN3XAAZgAA4DXYQd3jAfcFAAD7BXIAAOA12KXc8iFjeQhk6yFjeQRkgANISmFjZm9zAAwGDwYSBhUGHQYhBiYGYwB5ACVkYwB5AAxk8CFwYZpjAAFleRkGHAbkIWlsNmEaZHIAAOA12A7dcABmAADgNdhC3WMAcgAA4DXYptyABUpUYWNlZmxtb3N0AD0GQAZDBl4GawZkB2gHcAd0B80H2gdjAHkACWQ7gDwAPECAAmNtbnByAEwGTwZSBlUGWwb1IXRlOWHiIWRhm2NnAACg6ifsI2FjZXRyZgCgEiFyAACgniGAAWFleQBkBmcGagbyIW9uPWHkIWlsO2EbZAABZnNvBjQHdAAABUFDREZSVFVWYXKABp4GpAbGBssG3AYDByEHwQIqBwABbnKEBowGZyVsZUJyYWNrZXQAAKDoJ/Ihb3cAoZAhQlKTBpcGYQByAACg5CHpJGdodEFycm93AKDGIWUjaWxpbmcAAKAII28A9QGqBgAAsgZiJWxlQnJhY2tldAAAoOYnbgDUAbcGAAC+BmUkZVZlY3RvcgAAoGEp5SJjdG9yQqDDIWEAcgAAoFkpbCJvb3IAAKAKI2kiZ2h0AAABQVbSBtcGciJyb3cAAKCUIeUiY3RvcgCgTikAAWVy4AbwBmUAAKGjIkFW5gbrBnIicm93AACgpCHlImN0b3IAoFopaSNhbmdsZQBCorIi+wYAAAAA/wZhAHIAAKDPKXEidWFsAACgtCJwAIABRFRWAAoHEQcYB+8kd25WZWN0b3IAoFEpZSRlVmVjdG9yAACgYCnlImN0b3JCoL8hYQByAACgWCnlImN0b3JCoLwhYQByAACgUilpAGcAaAB0AGEAcgByAG8A9wDMAnMAAANFRkdMU1Q/B0cHTgdUB1gHXwfxJXVhbEdyZWF0ZXIAoNoidSRsbEVxdWFsAACgZiJyI2VhdGVyAACgdiLlIXNzAKChKuwkYW50RXF1YWwAoH0qaSJsZGUAAKByInIAAOA12A/dZaDYIuYjdGFycm93AKDaIWkiZG90AD9hgAFucHcAege1B7kHZwAAAkxSbHKCB5QHmwerB+UhZnQAAUFSiAeNB3Iicm93AACg9SfpJGdodEFycm93AKD3J+kkZ2h0QXJyb3cAoPYn5SFmdAABYXLcAqEHaQBnAGgAdABhAHIAcgBvAPcA5wJpAGcAaAB0AGEAcgByAG8A9wDuAmYAAOA12EPdZQByAAABTFK/B8YHZSRmdEFycm93AACgmSHpJGdodEFycm93AKCYIYABY2h0ANMH1QfXB/IAWgYAoLAh8iFva0FhAKBqIgAEYWNlZmlvc3XpB+wH7gf/BwMICQgOCBEIcAAAoAUpeQAcZAABZGzyB/kHaSR1bVNwYWNlAACgXyBsI2ludHJmAACgMyFyAADgNdgQ3e4jdXNQbHVzAKATInAAZgAA4DXYRN1jAPIA/gecY4AESmFjZWZvc3R1ACEIJAgoCDUIgQiFCDsKQApHCmMAeQAKZGMidXRlAENhgAFhZXkALggxCDQI8iFvbkdh5CFpbEVhHWSAAWdzdwA7CGEIfQjhInRpdmWAAU1UVgBECEwIWQhlJWRpdW1TcGFjZQAAoAsgaABpAAABY25SCFMIawBTAHAAYQBjAOUASwhlAHIAeQBUAGgAaQDuAFQI9CFlZAABR0xnCHUIcgBlAGEAdABlAHIARwByAGUAYQB0AGUA8gDrBGUAcwBzAEwAZQBzAPMA2wdMImluZQAKYHIAAOA12BHdAAJCbnB0jAiRCJkInAhyImVhawAAoGAgwiZyZWFraW5nU3BhY2WgYGYAAKAVIUOq7CqzCMIIzQgAAOcIGwkAAAAAAAAtCQAAbwkAAIcJAACdCcAJGQoAADQKAAFvdbYIvAjuI2dydWVudACgYiJwIkNhcAAAoG0ibyh1YmxlVmVydGljYWxCYXIAAKAmIoABbHF4ANII1wjhCOUibWVudACgCSL1IWFsVKBgImkibGRlAADgQiI4A2kic3RzAACgBCJyI2VhdGVyAACjbyJFRkdMU1T1CPoIAgkJCQ0JFQlxInVhbAAAoHEidSRsbEVxdWFsAADgZyI4A3IjZWF0ZXIAAOBrIjgD5SFzcwCgeSLsJGFudEVxdWFsAOB+KjgDaSJsZGUAAKB1IvUhbXBEASAJJwnvI3duSHVtcADgTiI4A3EidWFsAADgTyI4A2UAAAFmczEJRgn0JFRyaWFuZ2xlQqLqIj0JAAAAAEIJYQByAADgzyk4A3EidWFsAACg7CJzAICibiJFR0xTVABRCVYJXAlhCWkJcSJ1YWwAAKBwInIjZWF0ZXIAAKB4IuUhc3MA4GoiOAPsJGFudEVxdWFsAOB9KjgDaSJsZGUAAKB0IuUic3RlZAABR0x1CX8J8iZlYXRlckdyZWF0ZXIA4KIqOAPlI3NzTGVzcwDgoSo4A/IjZWNlZGVzAKGAIkVTjwmVCXEidWFsAADgryo4A+wkYW50RXF1YWwAoOAiAAFlaaAJqQl2JmVyc2VFbGVtZW50AACgDCLnJWh0VHJpYW5nbGVCousitgkAAAAAuwlhAHIAAODQKTgDcSJ1YWwAAKDtIgABcXXDCeAJdSNhcmVTdQAAAWJwywnVCfMhZXRF4I8iOANxInVhbAAAoOIi5SJyc2V0ReCQIjgDcSJ1YWwAAKDjIoABYmNwAOYJ8AkNCvMhZXRF4IIi0iBxInVhbAAAoIgi4yJlZWRzgKGBIkVTVAD6CQAKBwpxInVhbAAA4LAqOAPsJGFudEVxdWFsAKDhImkibGRlAADgfyI4A+UicnNldEXggyLSIHEidWFsAACgiSJpImxkZQCAoUEiRUZUACIKJwouCnEidWFsAACgRCJ1JGxsRXF1YWwAAKBHImkibGRlAACgSSJlJXJ0aWNhbEJhcgAAoCQiYwByAADgNdip3GkAbABkAGUAO4DRANFAnWMAB0VhY2RmZ21vcHJzdHV2XgphCmgKcgp2CnoKgQqRCpYKqwqtCrsKyArNCuwhaWdSYWMAdQB0AGUAO4DTANNAAAFpeWwKcQpyAGMAO4DUANRAHmRiImxhYwBQYXIAAOA12BLdcgBhAHYAZQA7gNIA0kCAAWFlaQCHCooKjQpjAHIATGFnAGEAqWNjInJvbgCfY3AAZgAA4DXYRt3lI25DdXJseQABRFGeCqYKbyV1YmxlUXVvdGUAAKAcIHUib3RlAACgGCAAoFQqAAFjbLEKtQpyAADgNdiq3GEAcwBoADuA2ADYQGkAbAHACsUKZABlADuA1QDVQGUAcwAAoDcqbQBsADuA1gDWQGUAcgAAAUJQ0wrmCgABYXLXCtoKcgAAoD4gYQBjAAABZWvgCuIKAKDeI2UAdAAAoLQjYSVyZW50aGVzaXMAAKDcI4AEYWNmaGlsb3JzAP0KAwsFCwkLCwsMCxELIwtaC3IjdGlhbEQAAKACInkAH2RyAADgNdgT3WkApmOgY/Ujc01pbnVzsWAAAWlwFQsgC24AYwBhAHIAZQBwAGwAYQBuAOUACgVmAACgGSGAobsqZWlvACoLRQtJC+MiZWRlc4CheiJFU1QANAs5C0ALcSJ1YWwAAKCvKuwkYW50RXF1YWwAoHwiaSJsZGUAAKB+Im0AZQAAoDMgAAFkcE0LUQv1IWN0AKAPIm8jcnRpb24AYaA3ImwAAKAdIgABY2leC2ILcgAA4DXYq9yoYwACVWZvc2oLbwtzC3cLTwBUADuAIgAiQHIAAOA12BTdcABmAACgGiFjAHIAAOA12KzcAAZCRWFjZWZoaW9yc3WPC5MLlwupC7YL2AvbC90LhQyTDJoMowzhIXJyAKAQKUcAO4CuAK5AgAFjbnIAnQugC6ML9SF0ZVRhZwAAoOsncgB0oKAhbAAAoBYpgAFhZXkArwuyC7UL8iFvblhh5CFpbFZhIGR2oBwhZSJyc2UAAAFFVb8LzwsAAWxxwwvIC+UibWVudACgCyL1JGlsaWJyaXVtAKDLIXAmRXF1aWxpYnJpdW0AAKBvKXIAAKAcIW8AoWPnIWh0AARBQ0RGVFVWYewLCgwQDDIMNwxeDHwM9gIAAW5y8Av4C2clbGVCcmFja2V0AACg6SfyIW93AKGSIUJM/wsDDGEAcgAAoOUhZSRmdEFycm93AACgxCFlI2lsaW5nAACgCSNvAPUBFgwAAB4MYiVsZUJyYWNrZXQAAKDnJ24A1AEjDAAAKgxlJGVWZWN0b3IAAKBdKeUiY3RvckKgwiFhAHIAAKBVKWwib29yAACgCyMAAWVyOwxLDGUAAKGiIkFWQQxGDHIicm93AACgpiHlImN0b3IAoFspaSNhbmdsZQBCorMiVgwAAAAAWgxhAHIAAKDQKXEidWFsAACgtSJwAIABRFRWAGUMbAxzDO8kd25WZWN0b3IAoE8pZSRlVmVjdG9yAACgXCnlImN0b3JCoL4hYQByAACgVCnlImN0b3JCoMAhYQByAACgUykAAXB1iQyMDGYAAKAdIe4kZEltcGxpZXMAoHAp6SRnaHRhcnJvdwCg2yEAAWNongyhDHIAAKAbIQCgsSHsJGVEZWxheWVkAKD0KYAGSE9hY2ZoaW1vcXN0dQC/DMgMzAzQDOIM5gwKDQ0NFA0ZDU8NVA1YDQABQ2PDDMYMyCFjeSlkeQAoZEYiVGN5ACxkYyJ1dGUAWmEAorwqYWVpedgM2wzeDOEM8iFvbmBh5CFpbF5hcgBjAFxhIWRyAADgNdgW3e8hcnQAAkRMUlXvDPYM/QwEDW8kd25BcnJvdwAAoJMhZSRmdEFycm93AACgkCHpJGdodEFycm93AKCSIXAjQXJyb3cAAKCRIechbWGjY+EkbGxDaXJjbGUAoBgicABmAADgNdhK3XICHw0AAAAAIg10AACgGiLhIXJlgKGhJUlTVQAqDTINSg3uJXRlcnNlY3Rpb24AoJMidQAAAWJwNw1ADfMhZXRFoI8icSJ1YWwAAKCRIuUicnNldEWgkCJxInVhbAAAoJIibiJpb24AAKCUImMAcgAA4DXYrtxhAHIAAKDGIgACYmNtcF8Nag2ODZANc6DQImUAdABFoNAicSJ1YWwAAKCGIgABY2huDYkNZSJlZHMAgKF7IkVTVAB4DX0NhA1xInVhbAAAoLAq7CRhbnRFcXVhbACgfSJpImxkZQAAoH8iVABoAGEA9ADHCwCgESIAodEiZXOVDZ8NciJzZXQARaCDInEidWFsAACghyJlAHQAAKDRIoAFSFJTYWNmaGlvcnMAtQ27Db8NyA3ODdsN3w3+DRgOHQ4jDk8AUgBOADuA3gDeQMEhREUAoCIhAAFIY8MNxg1jAHkAC2R5ACZkAAFidcwNzQ0JYKRjgAFhZXkA1A3XDdoN8iFvbmRh5CFpbGJhImRyAADgNdgX3QABZWnjDe4N8gHoDQAA7Q3lImZvcmUAoDQiYQCYYwABY27yDfkNayNTcGFjZQAA4F8gCiDTInBhY2UAoAkg7CFkZYChPCJFRlQABw4MDhMOcSJ1YWwAAKBDInUkbGxFcXVhbAAAoEUiaSJsZGUAAKBIInAAZgAA4DXYS93pI3BsZURvdACg2yAAAWN0Jw4rDnIAAOA12K/c8iFva2Zh4QpFDlYOYA5qDgAAbg5yDgAAAAAAAAAAAAB5DnwOqA6zDgAADg8RDxYPGg8AAWNySA5ODnUAdABlADuA2gDaQHIAb6CfIeMhaXIAoEkpcgDjAVsOAABdDnkADmR2AGUAbGEAAWl5Yw5oDnIAYwA7gNsA20AjZGIibGFjAHBhcgAA4DXYGN1yAGEAdgBlADuA2QDZQOEhY3JqYQABZGl/Dp8OZQByAAABQlCFDpcOAAFhcokOiw5yAF9gYQBjAAABZWuRDpMOAKDfI2UAdAAAoLUjYSVyZW50aGVzaXMAAKDdI28AbgBQoMMi7CF1cwCgjiIAAWdwqw6uDm8AbgByYWYAAOA12EzdAARBREVUYWRwc78O0g7ZDuEOBQPqDvMOBw9yInJvdwDCoZEhyA4AAMwOYQByAACgEilvJHduQXJyb3cAAKDFIW8kd25BcnJvdwAAoJUhcSV1aWxpYnJpdW0AAKBuKWUAZQBBoKUiciJyb3cAAKClIW8AdwBuAGEAcgByAG8A9wAQA2UAcgAAAUxS+Q4AD2UkZnRBcnJvdwAAoJYh6SRnaHRBcnJvdwCglyFpAGyg0gNvAG4ApWPpIW5nbmFjAHIAAOA12LDcaSJsZGUAaGFtAGwAO4DcANxAgAREYmNkZWZvc3YALQ8xDzUPNw89D3IPdg97D4AP4SFzaACgqyJhAHIAAKDrKnkAEmThIXNobKCpIgCg5ioAAWVyQQ9DDwCgwSKAAWJ0eQBJD00Paw9hAHIAAKAWIGmgFiDjIWFsAAJCTFNUWA9cD18PZg9hAHIAAKAjIukhbmV8YGUkcGFyYXRvcgAAoFgnaSJsZGUAAKBAItQkaGluU3BhY2UAoAogcgAA4DXYGd1wAGYAAOA12E3dYwByAADgNdix3GQiYXNoAACgqiKAAmNlZm9zAI4PkQ+VD5kPng/pIXJjdGHkIWdlAKDAInIAAOA12BrdcABmAADgNdhO3WMAcgAA4DXYstwAAmZpb3OqD64Prw+0D3IAAOA12BvdnmNwAGYAAOA12E/dYwByAADgNdiz3IAEQUlVYWNmb3N1AMgPyw/OD9EP2A/gD+QP6Q/uD2MAeQAvZGMAeQAHZGMAeQAuZGMAdQB0AGUAO4DdAN1AAAFpedwP3w9yAGMAdmErZHIAAOA12BzdcABmAADgNdhQ3WMAcgAA4DXYtNxtAGwAeGEABEhhY2RlZm9z/g8BEAUQDRAQEB0QIBAkEGMAeQAWZGMidXRlAHlhAAFheQkQDBDyIW9ufWEXZG8AdAB7YfIBFRAAABwQbwBXAGkAZAB0AOgAVAhhAJZjcgAAoCghcABmAACgJCFjAHIAAOA12LXc4QtCEEkQTRAAAGcQbRByEAAAAAAAAAAAeRCKEJcQ8hD9EAAAGxEhETIROREAAD4RYwB1AHQAZQA7gOEA4UByImV2ZQADYYCiPiJFZGl1eQBWEFkQWxBgEGUQAOA+IjMDAKA/InIAYwA7gOIA4kB0AGUAO4C0ALRAMGRsAGkAZwA7gOYA5kByoGEgAOA12B7dcgBhAHYAZQA7gOAA4EAAAWVwfBCGEAABZnCAEIQQ8yF5bQCgNSHoAIMQaABhALFjAAFhcI0QWwAAAWNskRCTEHIAAWFnAACgPypkApwQAAAAALEQAKInImFkc3ajEKcQqRCuEG4AZAAAoFUqAKBcKmwib3BlAACgWCoAoFoqAKMgImVsbXJzersQvRDAEN0Q5RDtEACgpCllAACgICJzAGQAYaAhImEEzhDQENIQ1BDWENgQ2hDcEACgqCkAoKkpAKCqKQCgqykAoKwpAKCtKQCgrikAoK8pdAB2oB8iYgBkoL4iAKCdKQABcHTpEOwQaAAAoCIixWDhIXJyAKB8IwABZ3D1EPgQbwBuAAVhZgAA4DXYUt0Ao0giRWFlaW9wBxEJEQ0RDxESERQRAKBwKuMhaXIAoG8qAKBKImQAAKBLInMAJ2DyIW94ZaBIIvEADhFpAG4AZwA7gOUA5UCAAWN0eQAmESoRKxFyAADgNdi23CpgbQBwAGWgSCLxAPgBaQBsAGQAZQA7gOMA40BtAGwAO4DkAORAAAFjaUERRxFvAG4AaQBuAPQA6AFuAHQAAKARKgAITmFiY2RlZmlrbG5vcHJzdWQRaBGXEZ8RpxGrEdIR1hErEjASexKKEn0RThNbE3oTbwB0AACg7SoAAWNybBGJEWsAAAJjZXBzdBF4EX0RghHvIW5nAKBMInAjc2lsb24A9mNyImltZQAAoDUgaQBtAGWgPSJxAACgzSJ2AY0RkRFlAGUAAKC9ImUAZABnoAUjZQAAoAUjcgBrAHSgtSPiIXJrAKC2IwABb3mjEaYRbgDnAHcRMWTxIXVvAKAeIIACY21wcnQAtBG5Eb4RwRHFEeEhdXPloDUi5ABwInR5dgAAoLApcwDpAH0RbgBvAPUA6gCAAWFodwDLEcwRzhGyYwCgNiHlIWVuAKBsInIAAOA12B/dZwCAA2Nvc3R1dncA4xHyEQUSEhIhEiYSKRKAAWFpdQDpEesR7xHwAKMFcgBjAACg7yVwAACgwyKAAWRwdAD4EfwRABJvAHQAAKAAKuwhdXMAoAEqaSJtZXMAAKACKnECCxIAAAAADxLjIXVwAKAGKmEAcgAAoAUm8iNpYW5nbGUAAWR1GhIeEu8hd24AoL0lcAAAoLMlcCJsdXMAAKAEKmUA5QBCD+UAkg9hInJvdwAAoA0pgAFha28ANhJoEncSAAFjbjoSZRJrAIABbHN0AEESRxJNEm8jemVuZ2UAAKDrKXEAdQBhAHIA5QBcBPIjaWFuZ2xlgKG0JWRscgBYElwSYBLvIXduAKC+JeUhZnQAoMIlaSJnaHQAAKC4JWsAAKAjJLEBbRIAAHUSsgFxEgAAcxIAoJIlAKCRJTQAAKCTJWMAawAAoIglAAFlb38ShxJx4D0A5SD1IWl2AOBhIuUgdAAAoBAjAAJwdHd4kRKVEpsSnxJmAADgNdhT3XSgpSJvAG0AAKClIvQhaWUAoMgiAAZESFVWYmRobXB0dXayEsES0RLgEvcS+xIKExoTHxMjEygTNxMAAkxSbHK5ErsSvRK/EgCgVyUAoFQlAKBWJQCgUyUAolAlRFVkdckSyxLNEs8SAKBmJQCgaSUAoGQlAKBnJQACTFJsctgS2hLcEt4SAKBdJQCgWiUAoFwlAKBZJQCjUSVITFJobHLrEu0S7xLxEvMS9RIAoGwlAKBjJQCgYCUAoGslAKBiJQCgXyVvAHgAAKDJKQACTFJscgITBBMGEwgTAKBVJQCgUiUAoBAlAKAMJQCiACVEVWR1EhMUExYTGBMAoGUlAKBoJQCgLCUAoDQlaSJudXMAAKCfIuwhdXMAoJ4iaSJtZXMAAKCgIgACTFJsci8TMRMzEzUTAKBbJQCgWCUAoBglAKAUJQCjAiVITFJobHJCE0QTRhNIE0oTTBMAoGolAKBhJQCgXiUAoDwlAKAkJQCgHCUAAWV2UhNVE3YA5QD5AGIAYQByADuApgCmQAACY2Vpb2ITZhNqE24TcgAA4DXYt9xtAGkAAKBPIG0A5aA9IogRbAAAoVwAYmh0E3YTAKDFKfMhdWIAoMgnbAF+E4QTbABloCIgdAAAoCIgcAAAoU4iRWWJE4sTAKCuKvGgTyI8BeEMqRMAAN8TABQDFB8UAAAjFDQUAAAAAIUUAAAAAI0UAAAAANcU4xT3FPsUAACIFQAAlhWAAWNwcgCuE7ET1RP1IXRlB2GAoikiYWJjZHMAuxO/E8QTzhPSE24AZAAAoEQqciJjdXAAAKBJKgABYXXIE8sTcAAAoEsqcAAAoEcqbwB0AACgQCoA4CkiAP4AAWVv2RPcE3QAAKBBIO4ABAUAAmFlaXXlE+8T9RP4E/AB6hMAAO0TcwAAoE0qbwBuAA1hZABpAGwAO4DnAOdAcgBjAAlhcABzAHOgTCptAACgUCpvAHQAC2GAAWRtbgAIFA0UEhRpAGwAO4C4ALhAcCJ0eXYAAKCyKXQAAIGiADtlGBQZFKJAcgBkAG8A9ABiAXIAAOA12CDdgAFjZWkAKBQqFDIUeQBHZGMAawBtoBMn4SFyawCgEyfHY3IAAKPLJUVjZWZtcz8UQRRHFHcUfBSAFACgwykAocYCZWxGFEkUcQAAoFciZQBhAlAUAAAAAGAUciJyb3cAAAFsclYUWhTlIWZ0AKC6IWkiZ2h0AACguyGAAlJTYWNkAGgUaRRrFG8UcxSuYACgyCRzAHQAAKCbIukhcmMAoJoi4SFzaACgnSJuImludAAAoBAqaQBkAACg7yrjIWlyAKDCKfUhYnN1oGMmaQB0AACgYybsApMUmhS2FAAAwxRvAG4AZaA6APGgVCKrAG0CnxQAAAAAoxRhAHSgLABAYAChASJmbKcUqRTuABMNZQAAAW14rhSyFOUhbnQAoAEiZQDzANIB5wG6FAAAwBRkoEUibwB0AACgbSpuAPQAzAGAAWZyeQDIFMsUzhQA4DXYVN1vAOQA1wEAgakAO3MeAdMUcgAAoBchAAFhb9oU3hRyAHIAAKC1IXMAcwAAoBcnAAFjdeYU6hRyAADgNdi43AABYnDuFPIUZaDPKgCg0SploNAqAKDSKuQhb3QAoO8igANkZWxwcnZ3AAYVEBUbFSEVRBVlFYQV4SFycgABbHIMFQ4VAKA4KQCgNSlwAhYVAAAAABkVcgAAoN4iYwAAoN8i4SFycnCgtiEAoD0pgKIqImJjZG9zACsVMBU6FT4VQRVyImNhcAAAoEgqAAFhdTQVNxVwAACgRipwAACgSipvAHQAAKCNInIAAKBFKgDgKiIA/gACYWxydksVURVuFXMVcgByAG2gtyEAoDwpeQCAAWV2dwBYFWUVaRVxAHACXxUAAAAAYxVyAGUA4wAXFXUA4wAZFWUAZQAAoM4iZSJkZ2UAAKDPImUAbgA7gKQApEBlI2Fycm93AAABbHJ7FX8V5SFmdACgtiFpImdodAAAoLchZQDkAG0VAAFjaYsVkRVvAG4AaQBuAPQAkwFuAHQAAKAxImwiY3R5AACgLSOACUFIYWJjZGVmaGlqbG9yc3R1d3oAuBW7Fb8V1RXgFegV+RUKFhUWHxZUFlcWZRbFFtsW7xb7FgUXChdyAPIAtAJhAHIAAKBlKQACZ2xyc8YVyhXOFdAV5yFlcgCgICDlIXRoAKA4IfIA9QxoAHagECAAoKMiawHZFd4VYSJyb3cAAKAPKWEA4wBfAgABYXnkFecV8iFvbg9hNGQAoUYhYW/tFfQVAAFnciEC8RVyAACgyiF0InNlcQAAoHcqgAFnbG0A/xUCFgUWO4CwALBAdABhALRjcCJ0eXYAAKCxKQABaXIOFhIW8yFodACgfykA4DXYId1hAHIAAAFschsWHRYAoMMhAKDCIYACYWVnc3YAKBauAjYWOhY+Fm0AAKHEIm9zLhY0Fm4AZABzoMQi9SFpdACgZiZhIm1tYQDdY2kAbgAAoPIiAKH3AGlvQxZRFmQAZQAAgfcAO29KFksW90BuI3RpbWVzAACgxyJuAPgAUBZjAHkAUmRjAG8CXhYAAAAAYhZyAG4AAKAeI28AcAAAoA0jgAJscHR1dwBuFnEWdRaSFp4W7CFhciRgZgAA4DXYVd0AotkCZW1wc30WhBaJFo0WcQBkoFAibwB0AACgUSJpIm51cwAAoDgi7CF1cwCgFCLxInVhcmUAoKEiYgBsAGUAYgBhAHIAdwBlAGQAZwDlANcAbgCAAWFkaAClFqoWtBZyAHIAbwD3APUMbwB3AG4AYQByAHIAbwB3APMA8xVhI3Jwb29uAAABbHK8FsAWZQBmAPQAHBZpAGcAaAD0AB4WYgHJFs8WawBhAHIAbwD3AJILbwLUFgAAAADYFnIAbgAAoB8jbwBwAACgDCOAAWNvdADhFukW7BYAAXJ55RboFgDgNdi53FVkbAAAoPYp8iFvaxFhAAFkcvMW9xZvAHQAAKDxImkA5qC/JVsSAAFhaP8WAhdyAPIANQNhAPIA1wvhIm5nbGUAoKYpAAFjaQ4XEBd5AF9k5yJyYXJyAKD/JwAJRGFjZGVmZ2xtbm9wcXJzdHV4MRc4F0YXWxcyBF4XaRd5F40XrBe0F78X2RcVGCEYLRg1GEAYAAFEbzUXgRZvAPQA+BUAAWNzPBdCF3UAdABlADuA6QDpQPQhZXIAoG4qAAJhaW95TRdQF1YXWhfyIW9uG2FyAGOgViI7gOoA6kDsIW9uAKBVIk1kbwB0ABdhAAFEcmIXZhdvAHQAAKBSIgDgNdgi3XKhmipuF3QXYQB2AGUAO4DoAOhAZKCWKm8AdAAAoJgqgKGZKmlscwCAF4UXhxfuInRlcnMAoOcjAKATIWSglSpvAHQAAKCXKoABYXBzAJMXlheiF2MAcgATYXQAeQBzogUinxcAAAAAoRdlAHQAAKAFInAAMaADIDMBqRerFwCgBCAAoAUgAAFnc7AXsRdLYXAAAKACIAABZ3C4F7sXbwBuABlhZgAA4DXYVt2AAWFscwDFF8sXzxdyAHOg1SJsAACg4yl1AHMAAKBxKmkAAKG1A2x21RfYF28AbgC1Y/VjAAJjc3V24BfoF/0XEBgAAWlv5BdWF3IAYwAAoFYiaQLuFwAAAADwF+0ADQThIW50AAFnbPUX+Rd0AHIAAKCWKuUhc3MAoJUqgAFhZWkAAxgGGAoYbABzAD1gcwB0AACgXyJ2AESgYSJEAACgeCrwImFyc2wAoOUpAAFEYRkYHRhvAHQAAKBTInIAcgAAoHEpgAFjZGkAJxgqGO0XcgAAoC8hbwD0AIwCAAFhaDEYMhi3YzuA8ADwQAABbXI5GD0YbAA7gOsA60BvAACgrCCAAWNpcABGGEgYSxhsACFgcwD0ACwEAAFlb08YVxhjAHQAYQB0AGkAbwDuABoEbgBlAG4AdABpAGEAbADlADME4Ql1GAAAgRgAAIMYiBgAAAAAoRilGAAAqhgAALsYvhjRGAAA1xgnGWwAbABpAG4AZwBkAG8AdABzAGUA8QBlF3kARGRtImFsZQAAoEAmgAFpbHIAjRiRGJ0Y7CFpZwCgA/tpApcYAAAAAJoYZwAAoAD7aQBnAACgBPsA4DXYI93sIWlnAKAB++whaWcA4GYAagCAAWFsdACvGLIYthh0AACgbSZpAGcAAKAC+24AcwAAoLElbwBmAJJh8AHCGAAAxhhmAADgNdhX3QABYWvJGMwYbADsAGsEdqDUIgCg2SphI3J0aW50AACgDSoAAWFv2hgiGQABY3PeGB8ZsQPnGP0YBRkSGRUZAAAdGbID7xjyGPQY9xj5GAAA+xg7gL0AvUAAoFMhO4C8ALxAAKBVIQCgWSEAoFshswEBGQAAAxkAoFQhAKBWIbQCCxkOGQAAAAAQGTuAvgC+QACgVyEAoFwhNQAAoFghtgEZGQAAGxkAoFohAKBdITgAAKBeIWwAAKBEIHcAbgAAoCIjYwByAADgNdi73IAIRWFiY2RlZmdpamxub3JzdHYARhlKGVoZXhlmGWkZkhmWGZkZnRmgGa0ZxhnLGc8Z4BkjGmygZyIAoIwqgAFjbXAAUBlTGVgZ9SF0ZfVhbQBhAOSgswM6FgCghipyImV2ZQAfYQABaXliGWUZcgBjAB1hM2RvAHQAIWGAoWUibHFzAMYEcBl6GfGhZSLOBAAAdhlsAGEAbgD0AN8EgKF+KmNkbACBGYQZjBljAACgqSpvAHQAb6CAKmyggioAoIQqZeDbIgD+cwAAoJQqcgAA4DXYJN3noGsirATtIWVsAKA3IWMAeQBTZIChdyJFYWoApxmpGasZAKCSKgCgpSoAoKQqAAJFYWVztBm2Gb0ZwhkAoGkicABwoIoq8iFveACgiipxoIgq8aCIKrUZaQBtAACg5yJwAGYAAOA12FjdYQB2AOUAYwIAAWNp0xnWGXIAAKAKIW0AAKFzImVs3BneGQCgjioAoJAqAIM+ADtjZGxxco0E6xn0GfgZ/BkBGgABY2nvGfEZAKCnKnIAAKB6Km8AdAAAoNci0CFhcgCglSl1ImVzdAAAoHwqgAJhZGVscwAKGvQZFhrVBCAa8AEPGgAAFBpwAHIAbwD4AFkZcgAAoHgpcQAAAWxxxAQbGmwAZQBzAPMASRlpAO0A5AQAAWVuJxouGnIjdG5lcXEAAOBpIgD+xQAsGgAFQWFiY2Vma29zeUAaQxpmGmoabRqDGocalhrCGtMacgDyAMwCAAJpbG1yShpOGlAaVBpyAHMA8ABxD2YAvWBpAGwA9AASBQABZHJYGlsaYwB5AEpkAKGUIWN3YBpkGmkAcgAAoEgpAKCtIWEAcgAAoA8h6SFyYyVhgAFhbHIAcxp7Gn8a8iF0c3WgZSZpAHQAAKBlJuwhaXAAoCYg4yFvbgCguSJyAADgNdgl3XMAAAFld4wakRphInJvdwAAoCUpYSJyb3cAAKAmKYACYW1vcHIAnxqjGqcauhq+GnIAcgAAoP8h9CFodACgOyJrAAABbHKsGrMaZSRmdGFycm93AACgqSHpJGdodGFycm93AKCqIWYAAOA12Fnd4iFhcgCgFSCAAWNsdADIGswa0BpyAADgNdi93GEAcwDoAGka8iFvaydhAAFicNca2xr1IWxsAKBDIOghZW4AoBAg4Qr2GgAA/RoAAAgbExsaGwAAIRs7GwAAAAA+G2IbmRuVG6sbAACyG80b0htjAHUAdABlADuA7QDtQAChYyBpeQEbBhtyAGMAO4DuAO5AOGQAAWN4CxsNG3kANWRjAGwAO4ChAKFAAAFmcssCFhsA4DXYJt1yAGEAdgBlADuA7ADsQIChSCFpbm8AJxsyGzYbAAFpbisbLxtuAHQAAKAMKnQAAKAtIuYhaW4AoNwpdABhAACgKSHsIWlnM2GAAWFvcABDG1sbXhuAAWNndABJG0sbWRtyACthgAFlbHAAcQVRG1UbaQBuAOUAyAVhAHIA9AByBWgAMWFmAACgtyJlAGQAtWEAoggiY2ZvdGkbbRt1G3kb4SFyZQCgBSFpAG4AdKAeImkAZQAAoN0pZABvAPQAWxsAoisiY2VscIEbhRuPG5QbYQBsAACguiIAAWdyiRuNG2UAcgDzACMQ4wCCG2EicmhrAACgFyryIW9kAKA8KgACY2dwdJ8boRukG6gbeQBRZG8AbgAvYWYAAOA12FrdYQC5Y3UAZQBzAHQAO4C/AL9AAAFjabUbuRtyAADgNdi+3G4AAKIIIkVkc3bCG8QbyBvQAwCg+SJvAHQAAKD1Inag9CIAoPMiaaBiIOwhZGUpYesB1hsAANkbYwB5AFZkbAA7gO8A70AAA2NmbW9zdeYb7hvyG/Ub+hsFHAABaXnqG+0bcgBjADVhOWRyAADgNdgn3eEhdGg3YnAAZgAA4DXYW93jAf8bAAADHHIAAOA12L/c8iFjeVhk6yFjeVRkAARhY2ZnaGpvcxUcGhwiHCYcKhwtHDAcNRzwIXBhdqC6A/BjAAFleR4cIRzkIWlsN2E6ZHIAAOA12CjdciJlZW4AOGFjAHkARWRjAHkAXGRwAGYAAOA12FzdYwByAADgNdjA3IALQUJFSGFiY2RlZmdoamxtbm9wcnN0dXYAXhxtHHEcdRx5HN8cBx0dHTwd3B3tHfEdAR4EHh0eLB5FHrwewx7hHgkfPR9LH4ABYXJ0AGQcZxxpHHIA8gBvB/IAxQLhIWlsAKAbKeEhcnIAoA4pZ6BmIgCgiyphAHIAAKBiKWMJjRwAAJAcAACVHAAAAAAAAAAAAACZHJwcAACmHKgcrRwAANIc9SF0ZTph7SJwdHl2AKC0KXIAYQDuAFoG4iFkYbtjZwAAoegnZGyhHKMcAKCRKeUAiwYAoIUqdQBvADuAqwCrQHIAgKOQIWJmaGxwc3QAuhy/HMIcxBzHHMoczhxmoOQhcwAAoB8pcwAAoB0p6wCyGnAAAKCrIWwAAKA5KWkAbQAAoHMpbAAAoKIhAKGrKmFl1hzaHGkAbAAAoBkpc6CtKgDgrSoA/oABYWJyAOUc6RztHHIAcgAAoAwpcgBrAACgcicAAWFr8Rz4HGMAAAFla/Yc9xx7YFtgAAFlc/wc/hwAoIspbAAAAWR1Ax0FHQCgjykAoI0pAAJhZXV5Dh0RHRodHB3yIW9uPmEAAWRpFR0YHWkAbAA8YewAowbiAPccO2QAAmNxcnMkHScdLB05HWEAAKA2KXUAbwDyoBwgqhEAAWR1MB00HeghYXIAoGcpcyJoYXIAAKBLKWgAAKCyIQCiZCJmZ3FzRB1FB5Qdnh10AIACYWhscnQATh1WHWUdbB2NHXIicm93AHSgkCFhAOkAzxxhI3Jwb29uAAABZHVeHWId7yF3bgCgvSFwAACgvCHlJGZ0YXJyb3dzAKDHIWkiZ2h0AIABYWhzAHUdex2DHXIicm93APOglCGdBmEAcgBwAG8AbwBuAPMAzgtxAHUAaQBnAGEAcgByAG8A9wBlGugkcmVldGltZXMAoMsi8aFkIk0HAACaHWwAYQBuAPQAXgcAon0qY2Rnc6YdqR2xHbcdYwAAoKgqbwB0AG+gfypyoIEqAKCDKmXg2iIA/nMAAKCTKoACYWRlZ3MAwB3GHcod1h3ZHXAAcAByAG8A+ACmHG8AdAAAoNYicQAAAWdxzx3SHXQA8gBGB2cAdADyAHQcdADyAFMHaQDtAGMHgAFpbHIA4h3mHeod8yFodACgfClvAG8A8gDKBgDgNdgp3UWgdiIAoJEqYQH1Hf4dcgAAAWR1YB35HWygvCEAoGopbABrAACghCVjAHkAWWQAomoiYWNodAweDx4VHhkecgDyAGsdbwByAG4AZQDyAGAW4SFyZACgaylyAGkAAKD6JQABaW8hHiQe5CFvdEBh9SFzdGGgsCPjIWhlAKCwIwACRWFlczMeNR48HkEeAKBoInAAcKCJKvIhb3gAoIkqcaCHKvGghyo0HmkAbQAAoOYiAARhYm5vcHR3elIeXB5fHoUelh6mHqsetB4AAW5yVh5ZHmcAAKDsJ3IAAKD9IXIA6wCwBmcAgAFsbXIAZh52Hnse5SFmdAABYXKIB2weaQBnAGgAdABhAHIAcgBvAPcAkwfhInBzdG8AoPwnaQBnAGgAdABhAHIAcgBvAPcAmgdwI2Fycm93AAABbHKNHpEeZQBmAPQAxhxpImdodAAAoKwhgAFhZmwAnB6fHqIecgAAoIUpAOA12F3ddQBzAACgLSppIm1lcwAAoDQqYQGvHrMecwB0AACgFyLhAIoOZaHKJbkeRhLuIWdlAKDKJWEAcgBsoCgAdAAAoJMpgAJhY2htdADMHs8e1R7bHt0ecgDyAJ0GbwByAG4AZQDyANYWYQByAGSgyyEAoG0pAKAOIHIAaQAAoL8iAANhY2hpcXTrHu8e1QfzHv0eBh/xIXVvAKA5IHIAAOA12MHcbQDloXIi+h4AAPweAKCNKgCgjyoAAWJ19xwBH28AcqAYIACgGiDyIW9rQmEAhDwAO2NkaGlscXJCBhcfxh0gHyQfKB8sHzEfAAFjaRsfHR8AoKYqcgAAoHkqcgBlAOUAkx3tIWVzAKDJIuEhcnIAoHYpdSJlc3QAAKB7KgABUGk1HzkfYQByAACglillocMlAgdfEnIAAAFkdUIfRx9zImhhcgAAoEop6CFhcgCgZikAAWVuTx9WH3IjdG5lcXEAAOBoIgD+xQBUHwAHRGFjZGVmaGlsbm9wc3VuH3Ifoh+rH68ftx+7H74f5h/uH/MfBwj/HwsgxCFvdACgOiIAAmNscHJ5H30fiR+eH3IAO4CvAK9AAAFldIEfgx8AoEImZaAgJ3MAZQAAoCAnc6CmIXQAbwCAoaYhZGx1AJQfmB+cH28AdwDuAHkDZQBmAPQA6gbwAOkO6yFlcgCgriUAAW95ph+qH+0hbWEAoCkqPGThIXNoAKAUIOElc3VyZWRhbmdsZQCgISJyAADgNdgq3W8AAKAnIYABY2RuAMQfyR/bH3IAbwA7gLUAtUBhoiMi0B8AANMf1x9zAPQAKxFpAHIAAKDwKm8AdAA7gLcAt0B1AHMA4qESIh4TAADjH3WgOCIAoCoqYwHqH+0fcAAAoNsq8gB+GnAAbAB1APMACAgAAWRw9x/7H+UhbHMAoKciZgAA4DXYXt0AAWN0AyAHIHIAAOA12MLc8CFvcwCgPiJsobwDECAVIPQiaW1hcACguCJhAPAAEyAADEdMUlZhYmNkZWZnaGlqbG1vcHJzdHV2dzwgRyBmIG0geSCqILgg2iDeIBEhFSEyIUMhTSFQIZwhnyHSIQAiIyKLIrEivyIUIwABZ3RAIEMgAODZIjgD9uBrItIgBwmAAWVsdABNIF8gYiBmAHQAAAFhclMgWCByInJvdwAAoM0h6SRnaHRhcnJvdwCgziEA4NgiOAP24Goi0iBfCekkZ2h0YXJyb3cAoM8hAAFEZHEgdSDhIXNoAKCvIuEhc2gAoK4igAJiY25wdACCIIYgiSCNIKIgbABhAACgByL1IXRlRGFnAADgICLSIACiSSJFaW9wlSCYIJwgniAA4HAqOANkAADgSyI4A3MASWFyAG8A+AAyCnUAcgBhoG4mbADzoG4mmwjzAa8gAACzIHAAO4CgAKBAbQBwAOXgTiI4AyoJgAJhZW91eQDBIMogzSDWINkg8AHGIAAAyCAAoEMqbwBuAEhh5CFpbEZhbgBnAGSgRyJvAHQAAOBtKjgDcAAAoEIqPWThIXNoAKATIACjYCJBYWRxc3jpIO0g+SD+IAIhDCFyAHIAAKDXIXIAAAFocvIg9SBrAACgJClvoJch9wAGD28AdAAA4FAiOAN1AGkA9gC7CAABZWkGIQohYQByAACgKCntAN8I6SFzdPOgBCLlCHIAAOA12CvdAAJFZXN0/wgcISshLiHxoXEiIiEAABMJ8aFxIgAJAAAnIWwAYQBuAPQAEwlpAO0AGQlyoG8iAKBvIoABQWFwADghOyE/IXIA8gBeIHIAcgAAoK4hYQByAACg8ipzogsiSiEAAAAAxwtkoPwiAKD6ImMAeQBaZIADQUVhZGVzdABcIV8hYiFmIWkhkyGWIXIA8gBXIADgZiI4A3IAcgAAoJohcgAAoCUggKFwImZxcwBwIYQhjiF0AAABYXJ1IXohcgByAG8A9wBlIWkAZwBoAHQAYQByAHIAbwD3AD4h8aFwImAhAACKIWwAYQBuAPQAZwlz4H0qOAMAoG4iaQDtAG0JcqBuImkA5aDqIkUJaQDkADoKAAFwdKMhpyFmAADgNdhf3YCBrAA7aW4AriGvIcchrEBuAIChCSJFZHYAtyG6Ib8hAOD5IjgDbwB0AADg9SI4A+EB1gjEIcYhAKD3IgCg9iJpAHagDCLhAagJzyHRIQCg/iIAoP0igAFhb3IA2CHsIfEhcgCAoSYiYXN0AOAh5SHpIWwAbABlAOwAywhsAADg/SrlIADgAiI4A2wiaW50AACgFCrjoYAi9yEAAPohdQDlAJsJY+CvKjgDZaCAIvEAkwkAAkFhaXQHIgoiFyIeInIA8gBsIHIAcgAAoZshY3cRIhQiAOAzKTgDAOCdITgDZyRodGFycm93AACgmyFyAGkA5aDrIr4JgANjaGltcHF1AC8iPCJHIpwhTSJQIloigKGBImNlcgA2Iv0JOSJ1AOUABgoA4DXYw9zvIXJ0bQKdIQAAAABEImEAcgDhAOEhbQBloEEi8aBEIiYKYQDyAMsIcwB1AAABYnBWIlgi5QDUCeUA3wmAAWJjcABgInMieCKAoYQiRWVzAGci7glqIgDgxSo4A2UAdABl4IIi0iBxAPGgiCJoImMAZaCBIvEA/gmAoYUiRWVzAH8iFgqCIgDgxio4A2UAdABl4IMi0iBxAPGgiSKAIgACZ2lscpIilCKaIpwi7AAMCWwAZABlADuA8QDxQOcAWwlpI2FuZ2xlAAABbHKkIqoi5SFmdGWg6iLxAEUJaSJnaHQAZaDrIvEAvgltoL0DAKEjAGVzuCK8InIAbwAAoBYhcAAAoAcggARESGFkZ2lscnMAziLSItYi2iLeIugi7SICIw8j4SFzaACgrSLhIXJyAKAEKXAAAOBNItIg4SFzaACgrCIAAWV04iLlIgDgZSLSIADgPgDSIG4iZmluAACg3imAAUFldADzIvci+iJyAHIAAKACKQDgZCLSIHLgPADSIGkAZQAA4LQi0iAAAUF0BiMKI3IAcgAAoAMp8iFpZQDgtSLSIGkAbQAA4Dwi0iCAAUFhbgAaIx4jKiNyAHIAAKDWIXIAAAFociMjJiNrAACgIylvoJYh9wD/DuUhYXIAoCcpUxJqFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVCMAAF4jaSN/I4IjjSOeI8AUAAAAAKYjwCMAANoj3yMAAO8jHiQvJD8kRCQAAWNzVyNsFHUAdABlADuA8wDzQAABaXlhI2cjcgBjoJoiO4D0APRAPmSAAmFiaW9zAHEjdCN3I3EBeiNzAOgAdhTsIWFjUWF2AACgOCrvIWxkAKC8KewhaWdTYQABY3KFI4kjaQByAACgvykA4DXYLN1vA5QjAAAAAJYjAACcI24A22JhAHYAZQA7gPIA8kAAoMEpAAFibaEjjAphAHIAAKC1KQACYWNpdKwjryO6I70jcgDyAFkUAAFpcrMjtiNyAACgvinvIXNzAKC7KW4A5QDZCgCgwCmAAWFlaQDFI8gjyyNjAHIATWFnAGEAyWOAAWNkbgDRI9Qj1iPyIW9uv2MAoLYpdQDzAHgBcABmAADgNdhg3YABYWVsAOQj5yPrI3IAAKC3KXIAcAAAoLkpdQDzAHwBAKMoImFkaW9zdvkj/CMPJBMkFiQbJHIA8gBeFIChXSplZm0AAyQJJAwkcgBvoDQhZgAAoDQhO4CqAKpAO4C6ALpA5yFvZgCgtiJyAACgVipsIm9wZQAAoFcqAKBbKoABY2xvACMkJSQrJPIACCRhAHMAaAA7gPgA+EBsAACgmCJpAGwBMyQ4JGQAZQA7gPUA9UBlAHMAYaCXInMAAKA2Km0AbAA7gPYA9kDiIWFyAKA9I+EKXiQAAHokAAB8JJQkAACYJKkkAAAAALUkEQsAAPAkAAAAAAQleiUAAIMlcgCAoSUiYXN0AGUkbyQBCwCBtgA7bGokayS2QGwAZQDsABgDaQJ1JAAAAAB4JG0AAKDzKgCg/Sp5AD9kcgCAAmNpbXB0AIUkiCSLJJkSjyRuAHQAJWBvAGQALmBpAGwAAKAwIOUhbmsAoDEgcgAA4DXYLd2AAWltbwCdJKAkpCR2oMYD1WNtAGEA9AD+B24AZQAAoA4m9KHAA64kAAC0JGMjaGZvcmsAAKDUItZjAAFhdbgkxCRuAAABY2u9JMIkawBooA8hAKAOIfYAaRpzAACkKwBhYmNkZW1zdNMkIRPXJNsk4STjJOck6yTjIWlyAKAjKmkAcgAAoCIqAAFvdYsW3yQAoCUqAKByKm4AO4CxALFAaQBtAACgJip3AG8AAKAnKoABaXB1APUk+iT+JO4idGludACgFSpmAADgNdhh3W4AZAA7gKMAo0CApHoiRWFjZWlub3N1ABMlFSUYJRslTCVRJVklSSV1JQCgsypwAACgtyp1AOUAPwtjoK8qgKJ6ImFjZW5zACclLSU0JTYlSSVwAHAAcgBvAPgAFyV1AHIAbAB5AGUA8QA/C/EAOAuAAWFlcwA8JUElRSXwInByb3gAoLkqcQBxAACgtSppAG0AAKDoImkA7QBEC20AZQDzoDIgIguAAUVhcwBDJVclRSXwAEAlgAFkZnAATwtfJXElgAFhbHMAZSVpJW0l7CFhcgCgLiPpIW5lAKASI/UhcmYAoBMjdKAdIu8AWQvyIWVsAKCwIgABY2l9JYElcgAA4DXYxdzIY24iY3NwAACgCCAAA2Zpb3BzdZElKxuVJZolnyWkJXIAAOA12C7dcABmAADgNdhi3XIiaW1lAACgVyBjAHIAAOA12MbcgAFhZW8AqiW6JcAldAAAAWVpryW2JXIAbgBpAG8AbgDzABkFbgB0AACgFipzAHQAZaA/APEACRj0AG0LgApBQkhhYmNkZWZoaWxtbm9wcnN0dXgA4yXyJfYl+iVpJpAmpia9JtUm5ib4JlonaCdxJ3UnnietJ7EnyCfiJ+cngAFhcnQA6SXsJe4lcgDyAJkM8gD6AuEhaWwAoBwpYQByAPIA3BVhAHIAAKBkKYADY2RlbnFydAAGJhAmEyYYJiYmKyZaJgABZXUKJg0mAOA9IjEDdABlAFVhaQDjACAN7SJwdHl2AKCzKWcAgKHpJ2RlbAAgJiImJCYAoJIpAKClKeUA9wt1AG8AO4C7ALtAcgAApZIhYWJjZmhscHN0dz0mQCZFJkcmSiZMJk4mUSZVJlgmcAAAoHUpZqDlIXMAAKAgKQCgMylzAACgHinrALka8ACVHmwAAKBFKWkAbQAAoHQpbAAAoKMhAKCdIQABYWleJmImaQBsAACgGilvAG6gNiJhAGwA8wB2C4ABYWJyAG8mciZ2JnIA8gAvEnIAawAAoHMnAAFha3omgSZjAAABZWt/JoAmfWBdYAABZXOFJocmAKCMKWwAAAFkdYwmjiYAoI4pAKCQKQACYWV1eZcmmiajJqUm8iFvbllhAAFkaZ4moSZpAGwAV2HsAA8M4gCAJkBkAAJjbHFzrSawJrUmuiZhAACgNylkImhhcgAAoGkpdQBvAPKgHSCjAWgAAKCzIYABYWNnAMMm0iaUC2wAgKEcIWlwcwDLJs4migxuAOUAoAxhAHIA9ADaC3QAAKCtJYABaWxyANsm3ybjJvMhaHQAoH0pbwBvAPIANgwA4DXYL90AAWFv6ib1JnIAAAFkde8m8SYAoMEhbKDAIQCgbCl2oMED8WOAAWducwD+Jk4nUCdoAHQAAANhaGxyc3QKJxInISc1Jz0nRydyInJvdwB0oJIhYQDpAFYmYSNycG9vbgAAAWR1GiceJ28AdwDuAPAmcAAAoMAh5SFmdAABYWgnJy0ncgByAG8AdwDzAAkMYQByAHAAbwBvAG4A8wATBGklZ2h0YXJyb3dzAACgySFxAHUAaQBnAGEAcgByAG8A9wBZJugkcmVldGltZXMAoMwiZwDaYmkAbgBnAGQAbwB0AHMAZQDxABwYgAFhaG0AYCdjJ2YncgDyAAkMYQDyABMEAKAPIG8idXN0AGGgsSPjIWhlAKCxI+0haWQAoO4qAAJhYnB0fCeGJ4knmScAAW5ygCeDJ2cAAKDtJ3IAAKD+IXIA6wAcDIABYWZsAI8nkieVJ3IAAKCGKQDgNdhj3XUAcwAAoC4qaSJtZXMAAKA1KgABYXCiJ6gncgBnoCkAdAAAoJQp7yJsaW50AKASKmEAcgDyADwnAAJhY2hxuCe8J6EMwCfxIXVvAKA6IHIAAOA12MfcAAFidYAmxCdvAPKgGSCoAYABaGlyAM4n0ifWJ3IAZQDlAE0n7SFlcwCgyiJpAIChuSVlZmwAXAxjEt4n9CFyaQCgzinsInVoYXIAoGgpAKAeIWENBSgJKA0oSyhVKIYoAACLKLAoAAAAAOMo5ygAABApJCkxKW0pcSmHKaYpAACYKgAAAACxKmMidXRlAFthcQB1AO8ABR+ApHsiRWFjZWlucHN5ABwoHignKCooLygyKEEoRihJKACgtCrwASMoAAAlKACguCpvAG4AYWF1AOUAgw1koLAqaQBsAF9hcgBjAF1hgAFFYXMAOCg6KD0oAKC2KnAAAKC6KmkAbQAAoOki7yJsaW50AKATKmkA7QCIDUFkbwB0AGKixSKRFgAAAABTKACgZiqAA0FhY21zdHgAYChkKG8ocyh1KHkogihyAHIAAKDYIXIAAAFocmkoayjrAJAab6CYIfcAzAd0ADuApwCnQGkAO2D3IWFyAKApKW0AAAFpbn4ozQBuAHUA8wDOAHQAAKA2J3IA7+A12DDdIxkAAmFjb3mRKJUonSisKHIAcAAAoG8mAAFoeZkonChjAHkASWRIZHIAdABtAqUoAAAAAKgoaQDkAFsPYQByAGEA7ABsJDuArQCtQAABZ22zKLsobQBhAAChwwNmdroouijCY4CjPCJkZWdsbnByAMgozCjPKNMo1yjaKN4obwB0AACgairxoEMiCw5FoJ4qAKCgKkWgnSoAoJ8qZQAAoEYi7CF1cwCgJCrhIXJyAKByKWEAcgDyAPwMAAJhZWl07Sj8KAEpCCkAAWxz8Sj4KGwAcwBlAHQAbQDpAH8oaABwAACgMyrwImFyc2wAoOQpAAFkbFoPBSllAACgIyNloKoqc6CsKgDgrCoA/oABZmxwABUpGCkfKfQhY3lMZGKgLwBhoMQpcgAAoD8jZgAA4DXYZN1hAAABZHIoKRcDZQBzAHWgYCZpAHQAAKBgJoABY3N1ADYpRilhKQABYXU6KUApcABzoJMiAOCTIgD+cABzoJQiAOCUIgD+dQAAAWJwSylWKQChjyJlcz4NUCllAHQAZaCPIvEAPw0AoZAiZXNIDVspZQB0AGWgkCLxAEkNAKGhJWFmZilbBHIAZQFrKVwEAKChJWEAcgDyAAMNAAJjZW10dyl7KX8pgilyAADgNdjI3HQAbQDuAM4AaQDsAAYpYQByAOYAVw0AAWFyiimOKXIA5qAGJhESAAFhbpIpoylpImdodAAAAWVwmSmgKXAAcwBpAGwAbwDuANkXaADpAKAkcwCvYIACYmNtbnAArin8KY4NJSooKgCkgiJFZGVtbnByc7wpvinCKcgpzCnUKdgp3CkAoMUqbwB0AACgvSpkoIYibwB0AACgwyr1IWx0AKDBKgABRWXQKdIpAKDLKgCgiiLsIXVzAKC/KuEhcnIAoHkpgAFlaXUA4inxKfQpdAAAoYIiZW7oKewpcQDxoIYivSllAHEA8aCKItEpbQAAoMcqAAFicPgp+ikAoNUqAKDTKmMAgKJ7ImFjZW5zAAcqDSoUKhYqRihwAHAAcgBvAPgAIyh1AHIAbAB5AGUA8QCDDfEAfA2AAWFlcwAcKiIqPShwAHAAcgBvAPgAPChxAPEAOShnAACgaiYApoMiMTIzRWRlaGxtbnBzPCo/KkIqRSpHKlIqWCpjKmcqaypzKncqO4C5ALlAO4CyALJAO4CzALNAAKDGKgABb3NLKk4qdAAAoL4qdQBiAACg2CpkoIcibwB0AACgxCpzAAABb3VdKmAqbAAAoMknYgAAoNcq4SFycgCgeyn1IWx0AKDCKgABRWVvKnEqAKDMKgCgiyLsIXVzAKDAKoABZWl1AH0qjCqPKnQAAKGDImVugyqHKnEA8aCHIkYqZQBxAPGgiyJwKm0AAKDIKgABYnCTKpUqAKDUKgCg1iqAAUFhbgCdKqEqrCpyAHIAAKDZIXIAAAFocqYqqCrrAJUab6CZIfcAxQf3IWFyAKAqKWwAaQBnADuA3wDfQOELzyrZKtwq6SrsKvEqAAD1KjQrAAAAAAAAAAAAAEwrbCsAAHErvSsAAAAAAADRK3IC1CoAAAAA2CrnIWV0AKAWI8RjcgDrAOUKgAFhZXkA4SrkKucq8iFvbmVh5CFpbGNhQmRvAPQAIg5sInJlYwAAoBUjcgAA4DXYMd0AAmVpa2/7KhIrKCsuK/IBACsAAAkrZQAAATRm6g0EK28AcgDlAOsNYQBzorgDECsAAAAAEit5AG0A0WMAAWNuFislK2sAAAFhcxsrIStwAHAAcgBvAPgAFw5pAG0AAKA8InMA8AD9DQABYXMsKyEr8AAXDnIAbgA7gP4A/kDsATgrOyswG2QA5QBnAmUAcwCAgdcAO2JkAEMrRCtJK9dAYaCgInIAAKAxKgCgMCqAAWVwcwBRK1MraSvhAAkh4qKkIlsrXysAAAAAYytvAHQAAKA2I2kAcgAAoPEqb+A12GXdcgBrAACg2irhAHgociJpbWUAAKA0IIABYWlwAHYreSu3K2QA5QC+DYADYWRlbXBzdACFK6MrmiunK6wrsCuzK24iZ2xlAACitSVkbHFykCuUK5ornCvvIXduAKC/JeUhZnRloMMl8QACBwCgXCJpImdodABloLkl8QBdDG8AdAAAoOwlaSJudXMAAKA6KuwhdXMAoDkqYgAAoM0p6SFtZQCgOyrlInppdW0AoOIjgAFjaHQAwivKK80rAAFyecYrySsA4DXYydxGZGMAeQBbZPIhb2tnYQABaW/UK9creAD0ANERaCJlYWQAAAFsct4r5ytlAGYAdABhAHIAcgBvAPcAXQbpJGdodGFycm93AKCgIQAJQUhhYmNkZmdobG1vcHJzdHV3CiwNLBEsHSwnLDEsQCxLLFIsYix6LIQsjyzLLOgs7Sz/LAotcgDyAAkDYQByAACgYykAAWNyFSwbLHUAdABlADuA+gD6QPIACQ1yAOMBIywAACUseQBeZHYAZQBtYQABaXkrLDAscgBjADuA+wD7QENkgAFhYmgANyw6LD0scgDyANEO7CFhY3FhYQDyAOAOAAFpckQsSCzzIWh0AKB+KQDgNdgy3XIAYQB2AGUAO4D5APlAYQFWLF8scgAAAWxyWixcLACgvyEAoL4hbABrAACggCUAAWN0Zix2LG8CbCwAAAAAcyxyAG4AZaAcI3IAAKAcI28AcAAAoA8jcgBpAACg+CUAAWFsfiyBLGMAcgBrYTuAqACoQAABZ3CILIssbwBuAHNhZgAA4DXYZt0AA2FkaGxzdZksniynLLgsuyzFLHIAcgBvAPcACQ1vAHcAbgBhAHIAcgBvAPcA2A5hI3Jwb29uAAABbHKvLLMsZQBmAPQAWyxpAGcAaAD0AF0sdQDzAKYOaQAAocUDaGzBLMIs0mNvAG4AxWPwI2Fycm93cwCgyCGAAWNpdADRLOEs5CxvAtcsAAAAAN4scgBuAGWgHSNyAACgHSNvAHAAAKAOI24AZwBvYXIAaQAAoPklYwByAADgNdjK3IABZGlyAPMs9yz6LG8AdAAAoPAi7CFkZWlhaQBmoLUlAKC0JQABYW0DLQYtcgDyAMosbAA7gPwA/EDhIm5nbGUAoKcpgAdBQkRhY2RlZmxub3Byc3oAJy0qLTAtNC2bLZ0toS2/LcMtxy3TLdgt3C3gLfwtcgDyABADYQByAHag6CoAoOkqYQBzAOgA/gIAAW5yOC08LechcnQAoJwpgANla25wcnN0AJkpSC1NLVQtXi1iLYItYQBwAHAA4QAaHG8AdABoAGkAbgDnAKEXgAFoaXIAoSmzJFotbwBwAPQAdCVooJUh7wD4JgABaXVmLWotZwBtAOEAuygAAWJwbi14LXMjZXRuZXEAceCKIgD+AODLKgD+cyNldG5lcQBx4IsiAP4A4MwqAP4AAWhyhi2KLWUAdADhABIraSNhbmdsZQAAAWxyki2WLeUhZnQAoLIiaSJnaHQAAKCzInkAMmThIXNoAKCiIoABZWxyAKcttC24LWKiKCKuLQAAAACyLWEAcgAAoLsicQAAoFoi7CFpcACg7iIAAWJ0vC1eD2EA8gBfD3IAAOA12DPddAByAOkAlS1zAHUAAAFicM0t0C0A4IIi0iAA4IMi0iBwAGYAAOA12GfdcgBvAPAAWQt0AHIA6QCaLQABY3XkLegtcgAA4DXYy9wAAWJw7C30LW4AAAFFZXUt8S0A4IoiAP5uAAABRWV/LfktAOCLIgD+6SJnemFnAKCaKYADY2Vmb3BycwANLhAuJS4pLiMuLi40LukhcmN1YQABZGkULiEuAAFiZxguHC5hAHIAAKBfKmUAcaAnIgCgWSLlIXJwAKAYIXIAAOA12DTdcABmAADgNdho3WWgQCJhAHQA6ABqD2MAcgAA4DXYzNzjCuQRUC4AAFQuAABYLmIuAAAAAGMubS5wLnQuAAAAAIguki4AAJouJxIqEnQAcgDpAB0ScgAA4DXYNd0AAUFhWy5eLnIA8gDnAnIA8gCTB75jAAFBYWYuaS5yAPIA4AJyAPIAjAdhAPAAeh5pAHMAAKD7IoABZHB0APgReS6DLgABZmx9LoAuAOA12GnddQDzAP8RaQBtAOUABBIAAUFhiy6OLnIA8gDuAnIA8gCaBwABY3GVLgoScgAA4DXYzdwAAXB0nS6hLmwAdQDzACUScgDpACASAARhY2VmaW9zdbEuvC7ELsguzC7PLtQu2S5jAAABdXm2LrsudABlADuA/QD9QE9kAAFpecAuwy5yAGMAd2FLZG4AO4ClAKVAcgAA4DXYNt1jAHkAV2RwAGYAAOA12GrdYwByAADgNdjO3AABY23dLt8ueQBOZGwAO4D/AP9AAAVhY2RlZmhpb3N38y73Lv8uAi8MLxAvEy8YLx0vIi9jInV0ZQB6YQABYXn7Lv4u8iFvbn5hN2RvAHQAfGEAAWV0Bi8KL3QAcgDmAB8QYQC2Y3IAAOA12DfdYwB5ADZk5yJyYXJyAKDdIXAAZgAA4DXYa91jAHIAAOA12M/cAAFqbiYvKC8AoA0gagAAoAwg");var bA=kS("AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg");var No;(function(l){l[l.VALUE_LENGTH=49152]="VALUE_LENGTH",l[l.FLAG13=8192]="FLAG13",l[l.BRANCH_LENGTH=8064]="BRANCH_LENGTH",l[l.JUMP_TABLE=127]="JUMP_TABLE"})(No||(No={}));var ar;(function(l){l[l.NUM=35]="NUM",l[l.SEMI=59]="SEMI",l[l.EQUALS=61]="EQUALS",l[l.ZERO=48]="ZERO",l[l.NINE=57]="NINE",l[l.LOWER_A=97]="LOWER_A",l[l.LOWER_F=102]="LOWER_F",l[l.LOWER_X=120]="LOWER_X",l[l.LOWER_Z=122]="LOWER_Z",l[l.UPPER_A=65]="UPPER_A",l[l.UPPER_F=70]="UPPER_F",l[l.UPPER_Z=90]="UPPER_Z"})(ar||(ar={}));var Av=32;function gA(l){return l>=ar.ZERO&&l<=ar.NINE}function pU(l){return l>=ar.UPPER_A&&l<=ar.UPPER_F||l>=ar.LOWER_A&&l<=ar.LOWER_F}function hU(l){return l>=ar.UPPER_A&&l<=ar.UPPER_Z||l>=ar.LOWER_A&&l<=ar.LOWER_Z||gA(l)}function cU(l){return l===ar.EQUALS||hU(l)}var io;(function(l){l[l.EntityStart=0]="EntityStart",l[l.NumericStart=1]="NumericStart",l[l.NumericDecimal=2]="NumericDecimal",l[l.NumericHex=3]="NumericHex",l[l.NamedEntity=4]="NamedEntity"})(io||(io={}));var ls;(function(l){l[l.Legacy=0]="Legacy",l[l.Strict=1]="Strict",l[l.Attribute=2]="Attribute"})(ls||(ls={}));var IS=class{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=io.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ls.Strict,this.runConsumed=0}startEntity(e){this.decodeMode=e,this.state=io.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(e,t){switch(this.state){case io.EntityStart:return e.charCodeAt(t)===ar.NUM?(this.state=io.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=io.NamedEntity,this.stateNamedEntity(e,t));case io.NumericStart:return this.stateNumericStart(e,t);case io.NumericDecimal:return this.stateNumericDecimal(e,t);case io.NumericHex:return this.stateNumericHex(e,t);case io.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|Av)===ar.LOWER_X?(this.state=io.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=io.NumericDecimal,this.stateNumericDecimal(e,t))}stateNumericHex(e,t){for(;t<e.length;){let r=e.charCodeAt(t);if(gA(r)||pU(r)){let o=r<=ar.NINE?r-ar.ZERO:(r|Av)-ar.LOWER_A+10;this.result=this.result*16+o,this.consumed++,t++}else return this.emitNumericEntity(r,3)}return-1}stateNumericDecimal(e,t){for(;t<e.length;){let r=e.charCodeAt(t);if(gA(r))this.result=this.result*10+(r-ar.ZERO),this.consumed++,t++;else return this.emitNumericEntity(r,2)}return-1}emitNumericEntity(e,t){var r;if(this.consumed<=t)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===ar.SEMI)this.consumed+=1;else if(this.decodeMode===ls.Strict)return 0;return this.emitCodePoint(cA(this.result),this.consumed),this.errors&&(e!==ar.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:r}=this,o=r[this.treeIndex],i=(o&No.VALUE_LENGTH)>>14;for(;t<e.length;){if(i===0&&(o&No.FLAG13)!==0){let a=(o&No.BRANCH_LENGTH)>>7;if(this.runConsumed===0){let y=o&No.JUMP_TABLE;if(e.charCodeAt(t)!==y)return this.result===0?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}for(;this.runConsumed<a;){if(t>=e.length)return-1;let y=this.runConsumed-1,p=r[this.treeIndex+1+(y>>1)],d=y%2===0?p&255:p>>8&255;if(e.charCodeAt(t)!==d)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(a>>1),o=r[this.treeIndex],i=(o&No.VALUE_LENGTH)>>14}if(t>=e.length)break;let n=e.charCodeAt(t);if(n===ar.SEMI&&i!==0&&(o&No.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);if(this.treeIndex=dU(r,o,this.treeIndex+Math.max(1,i),n),this.treeIndex<0)return this.result===0||this.decodeMode===ls.Attribute&&(i===0||cU(n))?0:this.emitNotTerminatedNamedEntity();if(o=r[this.treeIndex],i=(o&No.VALUE_LENGTH)>>14,i!==0){if(n===ar.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==ls.Strict&&(o&No.FLAG13)===0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}t++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:r}=this,o=(r[t]&No.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,o,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){let{decodeTree:o}=this;return this.emitCodePoint(t===1?o[e]&~(No.VALUE_LENGTH|No.FLAG13):o[e+1],r),t===3&&this.emitCodePoint(o[e+2],r),r}end(){var e;switch(this.state){case io.NamedEntity:return this.result!==0&&(this.decodeMode!==ls.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case io.NumericDecimal:return this.emitNumericEntity(0,2);case io.NumericHex:return this.emitNumericEntity(0,3);case io.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case io.EntityStart:return 0}}};function wv(l){let e="",t=new IS(l,r=>e+=hA(r));return function(o,i){let n=0,a=0;for(;(a=o.indexOf("&",a))>=0;){e+=o.slice(n,a),t.startEntity(i);let p=t.write(o,a+1);if(p<0){n=a+t.end();break}n=a+p,a=p===0?n+1:n}let y=e+o.slice(n);return e="",y}}function dU(l,e,t,r){let o=(e&No.BRANCH_LENGTH)>>7,i=e&No.JUMP_TABLE;if(o===0)return i!==0&&r===i?t:-1;if(i){let p=r-i;return p<0||p>=o?-1:l[t+p]-1}let n=o+1>>1,a=0,y=o-1;for(;a<=y;){let p=a+y>>>1,d=p>>1,f=l[t+d]>>(p&1)*8&255;if(f<r)a=p+1;else if(f>r)y=p-1;else return l[t+n+p]}return-1}var Ev=wv(dA),bU=wv(bA);function hp(l,e=ls.Legacy){return Ev(l,e)}function fA(l){return Ev(l,ls.Attribute)}function cp(l){return bU(l,ls.Strict)}var gU=String.prototype.codePointAt==null?(l,e)=>(l.charCodeAt(e)&64512)===55296?(l.charCodeAt(e)-55296)*1024+l.charCodeAt(e+1)-56320+65536:l.charCodeAt(e):(l,e)=>l.codePointAt(e);function fU(l,e){return function(r){let o,i=0,n="";for(;o=l.exec(r);)i!==o.index&&(n+=r.substring(i,o.index)),n+=e.get(o[0].charCodeAt(0)),i=o.index+1;return n+r.substring(i)}}var MS=fU(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]));var xv;(function(l){l[l.XML=0]="XML",l[l.HTML=1]="HTML"})(xv||(xv={}));var vv;(function(l){l[l.UTF8=0]="UTF8",l[l.ASCII=1]="ASCII",l[l.Extensive=2]="Extensive",l[l.Attribute=3]="Attribute",l[l.Text=4]="Text"})(vv||(vv={}));var EU=/[&"<>\t\n\r]/g,xU=/[&"]/g,vU=/&(?:nbsp|lt|gt|amp);/g,TU={"&":"&amp;",'"':"&quot;","<":"&lt;",">":"&gt;"," ":"&#x9;","\n":"&#xA;","\r":"&#xD;"},CU={"&":"&amp;",'"':"&quot;"},NU={"&nbsp;":"\xA0","&lt;":"<","&gt;":">","&amp;":"&"},We=class{static encodeXMLAttributeValue(e){return e===null?"":e.replace(EU,t=>TU[t])}static decodeXMLAttributeValue(e){return e===null?"":cp(e)}static encodeHTMLAttributeValue(e){return e===null?"":e.replace(xU,t=>CU[t])}static decodeHTMLAttributeValue(e){return e===null?"":fA(e)}static encodeTextContent(e){return e===null?"":MS(e)}static decodeTextContent(e){return e===null?"":e.replace(vU,t=>NU[t])}static decodeHTMLEntities(e){return e===null?"":hp(e)}static decodeXMLEntities(e){return e===null?"":cp(e)}};var Oi=class{constructor(e){s(this,"options",{serializableShadowRoots:!1,shadowRoots:null,allShadowRoots:!1,excludeShadowRootTags:null});e&&(e.serializableShadowRoots&&(this.options.serializableShadowRoots=e.serializableShadowRoots),e.shadowRoots&&(this.options.shadowRoots=e.shadowRoots),e.allShadowRoots&&(this.options.allShadowRoots=e.allShadowRoots),e.excludeShadowRootTags&&(this.options.excludeShadowRootTags=e.excludeShadowRootTags))}serializeToString(e){switch(e[U]){case L.elementNode:let t=e,r=t[Ot],o=t[nt],i=br[t[nt]],n=r?`${r}:${o}`:o;if(i?.contentModel===H.noDescendants)return`<${n}${this.getAttributes(t)}>`;let a="";if(t.shadowRoot&&(this.options.allShadowRoots||this.options.serializableShadowRoots&&t.shadowRoot[an]||this.options.shadowRoots?.includes(t.shadowRoot))&&(!this.options.excludeShadowRootTags||!this.options.excludeShadowRootTags.includes(n))){a+=`<template shadowrootmode="${t.shadowRoot[Me]}"${t.shadowRoot[an]?' shadowrootserializable=""':""}>`;for(let N of t.shadowRoot[q])a+=this.serializeToString(N);a+="</template>"}let y=n==="template"?e.content[q]:e[q];for(let N of y)a+=this.serializeToString(N);return`<${n}${this.getAttributes(t)}>${a}</${n}>`;case bt.DOCUMENT_FRAGMENT_NODE:case bt.DOCUMENT_NODE:let p="";for(let N of e[q])p+=this.serializeToString(N);return p;case L.commentNode:return`<!--${e.textContent}-->`;case L.processingInstructionNode:return`<!--?${e.target} ${e.textContent}?-->`;case L.textNode:let d=e.parentElement;return d&&br[d[nt]]?.contentModel===H.rawText?e.textContent:We.encodeTextContent(e.textContent);case L.documentTypeNode:let b=e,f=b.publicId?" PUBLIC":b.systemId?" SYSTEM":"",S=b.publicId?` "${b.publicId}"`:"",M=b.systemId?` "${b.systemId}"`:"";return`<!DOCTYPE ${b.name}${f}${S}${M}>`}return""}getAttributes(e){let t="",r=e[ft][$];!r.has(":is")&&e[Mo]&&(t+=' is="'+We.encodeHTMLAttributeValue(e[Mo])+'"');for(let o of r.values()){let i=We.encodeHTMLAttributeValue(o[z]);t+=" "+o[st]+'="'+i+'"'}return t}};var Bb={svg:{localName:"svg",className:"SVGSVGElement"},animate:{localName:"animate",className:"SVGAnimateElement"},animatemotion:{localName:"animateMotion",className:"SVGAnimateMotionElement"},animatetransform:{localName:"animateTransform",className:"SVGAnimateTransformElement"},circle:{localName:"circle",className:"SVGCircleElement"},clippath:{localName:"clipPath",className:"SVGClipPathElement"},defs:{localName:"defs",className:"SVGDefsElement"},desc:{localName:"desc",className:"SVGDescElement"},ellipse:{localName:"ellipse",className:"SVGEllipseElement"},feblend:{localName:"feBlend",className:"SVGFEBlendElement"},fecolormatrix:{localName:"feColorMatrix",className:"SVGFEColorMatrixElement"},fecomponenttransfer:{localName:"feComponentTransfer",className:"SVGFEComponentTransferElement"},fecomposite:{localName:"feComposite",className:"SVGFECompositeElement"},feconvolvematrix:{localName:"feConvolveMatrix",className:"SVGFEConvolveMatrixElement"},fediffuselighting:{localName:"feDiffuseLighting",className:"SVGFEDiffuseLightingElement"},fedisplacementmap:{localName:"feDisplacementMap",className:"SVGFEDisplacementMapElement"},fedistantlight:{localName:"feDistantLight",className:"SVGFEDistantLightElement"},fedropshadow:{localName:"feDropShadow",className:"SVGFEDropShadowElement"},feflood:{localName:"feFlood",className:"SVGFEFloodElement"},fefunca:{localName:"feFuncA",className:"SVGFEFuncAElement"},fefuncb:{localName:"feFuncB",className:"SVGFEFuncBElement"},fefuncg:{localName:"feFuncG",className:"SVGFEFuncGElement"},fefuncr:{localName:"feFuncR",className:"SVGFEFuncRElement"},fegaussianblur:{localName:"feGaussianBlur",className:"SVGFEGaussianBlurElement"},feimage:{localName:"feImage",className:"SVGFEImageElement"},femerge:{localName:"feMerge",className:"SVGFEMergeElement"},femergenode:{localName:"feMergeNode",className:"SVGFEMergeNodeElement"},femorphology:{localName:"feMorphology",className:"SVGFEMorphologyElement"},feoffset:{localName:"feOffset",className:"SVGFEOffsetElement"},fepointlight:{localName:"fePointLight",className:"SVGFEPointLightElement"},fespecularlighting:{localName:"feSpecularLighting",className:"SVGFESpecularLightingElement"},fespotlight:{localName:"feSpotLight",className:"SVGFESpotLightElement"},fetile:{localName:"feTile",className:"SVGFETileElement"},feturbulence:{localName:"feTurbulence",className:"SVGFETurbulenceElement"},filter:{localName:"filter",className:"SVGFilterElement"},foreignobject:{localName:"foreignObject",className:"SVGForeignObjectElement"},g:{localName:"g",className:"SVGGElement"},image:{localName:"image",className:"SVGImageElement"},line:{localName:"line",className:"SVGLineElement"},lineargradient:{localName:"linearGradient",className:"SVGLinearGradientElement"},marker:{localName:"marker",className:"SVGMarkerElement"},mask:{localName:"mask",className:"SVGMaskElement"},metadata:{localName:"metadata",className:"SVGMetadataElement"},mpath:{localName:"mpath",className:"SVGMPathElement"},path:{localName:"path",className:"SVGPathElement"},pattern:{localName:"pattern",className:"SVGPatternElement"},polygon:{localName:"polygon",className:"SVGPolygonElement"},polyline:{localName:"polyline",className:"SVGPolylineElement"},radialgradient:{localName:"radialGradient",className:"SVGRadialGradientElement"},rect:{localName:"rect",className:"SVGRectElement"},script:{localName:"script",className:"SVGScriptElement"},set:{localName:"set",className:"SVGSetElement"},stop:{localName:"stop",className:"SVGStopElement"},style:{localName:"style",className:"SVGStyleElement"},switch:{localName:"switch",className:"SVGSwitchElement"},symbol:{localName:"symbol",className:"SVGSymbolElement"},text:{localName:"text",className:"SVGTextElement"},textpath:{localName:"textPath",className:"SVGTextPathElement"},title:{localName:"title",className:"SVGTitleElement"},tspan:{localName:"tspan",className:"SVGTSpanElement"},use:{localName:"use",className:"SVGUseElement"},view:{localName:"view",className:"SVGViewElement"}};var LU=/<([^\s/!>?]+)|<\/([^\s/!>?]+)\s*>|(<!--)|(-->|--!>)|(<!)|(<\?)|(\/>)|(>)/gm,kU=/\s*([a-zA-Z0-9-_:.$@?\\<\[\]]+)\s*=\s*([^"'=<>\\`\s]+)|\s*([a-zA-Z0-9-_:.$@?\\<\[\]]+)\s*=\s*"([^"]*)("{0,1})|\s*([a-zA-Z0-9-_:.$@?\\<\[\]]+)\s*=\s*'([^']*)('{0,1})|\s*([a-zA-Z0-9-_:.$@?\\<\[\]]+)/gm,IU=/"([^"]+)"/gm,MU=/\s+/,RU=/^\s+/,tr;(function(l){l.any="any",l.startTag="startTag",l.comment="comment",l.documentType="documentType",l.processingInstruction="processingInstruction",l.rawTextElement="rawTextElement"})(tr||(tr={}));var Ue;(function(l){l[l.root=0]="root",l[l.doctype=1]="doctype",l[l.documentElement=2]="documentElement",l[l.head=3]="head",l[l.additionalHeadWithoutBody=4]="additionalHeadWithoutBody",l[l.body=5]="body",l[l.afterBody=6]="afterBody"})(Ue||(Ue={}));var Kr=class{constructor(e,t){s(this,"window");s(this,"evaluateScripts",!1);s(this,"isTemplateDocumentFragment",!1);s(this,"rootNode",null);s(this,"rootDocument",null);s(this,"nodeStack",[]);s(this,"tagNameStack",[]);s(this,"documentStructure",null);s(this,"startTagIndex",0);s(this,"markupRegExp",null);s(this,"nextElement",null);s(this,"currentNode",null);s(this,"readState",tr.any);this.window=e,t?.evaluateScripts&&(this.evaluateScripts=!0),t?.isTemplateDocumentFragment&&(this.isTemplateDocumentFragment=!0)}parse(e,t){if(this.rootNode=t||this.window.document.createDocumentFragment(),this.rootDocument=this.rootNode[U]===L.documentNode?this.rootNode:this.window.document,this.nodeStack=[this.rootNode],this.tagNameStack=[null],this.currentNode=this.rootNode,this.readState=tr.any,this.documentStructure=null,this.startTagIndex=0,this.markupRegExp=new RegExp(LU),this.rootNode[U]===L.documentNode){let{doctype:i,documentElement:n,head:a,body:y}=this.rootNode;if(!n||!a||!y)throw new Error(`Failed to parse HTML: The root node must have "documentElement", "head" and "body".
93
+ `),ye,Pt,Cb,Tb=class Tb{constructor(e){s(this,"reject",null);s(this,"resolve",null);s(this,"listeners",{onSignalAbort:this.onSignalAbort.bind(this)});s(this,"isChunkedTransfer",!1);s(this,"isProperLastChunkReceived",!1);s(this,"previousChunk",null);s(this,"nodeRequest",null);s(this,"nodeResponse",null);s(this,"response",null);s(this,"responseHeaders",null);s(this,"interceptor");s(this,"requestHeaders");s(this,"request");s(this,"redirectCount",0);s(this,"disableCache");s(this,"disableSameOriginPolicy");s(this,"disablePreload");E(this,ye);E(this,Pt);E(this,Cb,null);w(this,ye,e.browserFrame),w(this,Pt,e.window),w(this,Cb,e.unfilteredHeaders??null),this.request=typeof e.url=="string"||e.url instanceof vS?new e.window.Request(e.url,e.init):e.url,e.contentType&&(this.request[Fe]=e.contentType),this.redirectCount=e.redirectCount??0,this.disableCache=e.disableCache??!1,this.disableSameOriginPolicy=e.disableSameOriginPolicy??u(this,ye).page.context.browser.settings.fetch.disableSameOriginPolicy??!1,this.interceptor=u(this,ye).page.context.browser.settings.fetch.interceptor,this.requestHeaders=u(this,ye).page.context.browser.settings.fetch.requestHeaders,this.disablePreload=e.disablePreload??!1}async send(){if(!(this.request instanceof bm)||!(this.request[ke]instanceof vS))throw new(u(this,Pt)).DOMException("Unknown request object. Request object must be an instance of Request.",v.invalidStateError);if(Rs.prepareRequest(new vS(u(this,Pt).location.href),this.request),this.requestHeaders){for(let t of this.requestHeaders)if(!t.url||(typeof t.url=="string"?t.url.startsWith(this.request.url):this.request.url.match(t.url)))for(let[r,o]of Object.entries(t.headers))this.request.headers.set(r,o)}if(this.interceptor?.beforeAsyncRequest){let t=u(this,ye)[gt].startTask(),r=await this.interceptor.beforeAsyncRequest({request:this.request,window:u(this,Pt)});if(u(this,ye)[gt].endTask(t),r instanceof Xo)return r}if(Ri.validateSchema(this.request),this.request.signal[ve])throw this.request.signal[di]!==void 0?this.request.signal[di]:new(u(this,Pt)).DOMException("signal is aborted without reason",v.abortError);if(this.request[ke].protocol==="data:"){let t=ky.parse(this.request.url);this.response=new(u(this,Pt)).Response(t.buffer,{headers:{"Content-Type":t.type}});let r=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:u(this,Pt),response:this.response,request:this.request}):void 0;return r instanceof Xo?r:this.response}if(this.request[ke].protocol==="http:"&&u(this,Pt).location.protocol==="https:")throw new(u(this,Pt)).DOMException(`Mixed Content: The page at '${u(this,Pt).location.href}' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '${this.request.url}'. This request has been blocked; the content must be served over HTTPS.`,v.securityError);if(!this.disableCache){let t=await this.getCachedResponse();if(t)return t}if(!this.disablePreload){let t=_n.getKey({url:this.request.url,destination:"fetch",mode:this.request.mode,credentialsMode:this.request.credentials}),r=u(this,Pt).document[co].get(t);if(r){if(u(this,Pt).document[co].delete(t),r.response)return r.response;let o=u(this,ye)[gt].startTask(),i=await r.onResponseAvailable();return u(this,ye)[gt].endTask(o),i}}let e=await this.getVirtualServerResponse();if(e)return e;if(!this.disableSameOriginPolicy&&!await this.compliesWithCrossOriginPolicy())throw u(this,ye).page.console.warn(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`),new(u(this,Pt)).DOMException(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`,v.networkError);return await this.sendRequest()}async getCachedResponse(){if(this.disableCache)return null;let e=u(this,ye).page.context.responseCache.get(this.request);if(!e||e.response.waitingForBody)return null;if(e.state===Wa.stale){let r=new(u(this,Pt)).Headers(e.request.headers);if(e.etag)r.set("If-None-Match",e.etag);else{if(!e.lastModified)return null;r.set("If-Modified-Since",new Date(e.lastModified).toUTCString())}let o=new Tb({browserFrame:u(this,ye),window:u(this,Pt),url:this.request.url,init:{headers:r,method:e.request.method},disableCache:!0,disableSameOriginPolicy:!0});if(e.etag||!e.staleWhileRevalidate){let i=await o.send(),n=i.status!==304?await i.buffer():null;if(e=u(this,ye).page.context.responseCache.add(this.request,{...i,body:n,waitingForBody:!1}),i.status!==304){let a=new(u(this,Pt)).Response(n,{status:i.status,statusText:i.statusText,headers:i.headers});return a.url=i.url,a[Ki]=e,a}}else o.send().then(i=>{i.buffer().then(n=>{u(this,ye).page.context.responseCache.add(this.request,{...i,body:n,waitingForBody:!1})})})}if(!e||e.response.waitingForBody)return null;let t=new(u(this,Pt)).Response(e.response.body,{status:e.response.status,statusText:e.response.statusText,headers:e.response.headers});return t.url=e.response.url,t[Ki]=e,t}async getVirtualServerResponse(){let e=Bs.getFilepath(u(this,Pt),this.request.url);if(!e)return null;let t=u(this,ye)[gt].startTask();if(this.request.method!=="GET"){u(this,ye).page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let p=Bs.getNotFoundResponse(u(this,Pt)),d=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:u(this,Pt),response:await p,request:this.request}):void 0;return u(this,ye)[gt].endTask(t),d instanceof Xo?d:p}let r;try{e=(await Mx.promises.stat(e)).isDirectory()?mU.join(e,"index.html"):e,r=await Mx.promises.readFile(e)}catch{u(this,ye).page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let d=Bs.getNotFoundResponse(u(this,Pt)),b=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:u(this,Pt),response:await d,request:this.request}):void 0;return u(this,ye)[gt].endTask(t),b instanceof Xo?b:d}let o=new(u(this,Pt)).ReadableStream({start:p=>{u(this,Pt).queueMicrotask(()=>{p.enqueue(r),p.close()})}}),i=new(u(this,Pt)).Response(o);i[Mt]=r,i[To]=e,i.url=this.request.url;let n=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:u(this,Pt),response:await i,request:this.request}):void 0;u(this,ye)[gt].endTask(t);let a=n instanceof Xo?n:i,y={...a,body:r,waitingForBody:!1,virtual:!0};return i[Ki]=u(this,ye).page.context.responseCache.add(this.request,y),a}async compliesWithCrossOriginPolicy(){if(this.disableSameOriginPolicy||!Mi.isCORS(u(this,Pt).location.href,this.request[ke]))return!0;let e=u(this,ye).page.context.preflightResponseCache.get(this.request);if(e)return!(e.allowOrigin!=="*"&&e.allowOrigin!==u(this,Pt).location.origin||e.allowMethods.length!==0&&!e.allowMethods.includes(this.request.method));let t=[];for(let[y]of this.request.headers)t.push(y.toLowerCase());let r=new(u(this,Pt)).Headers({"Access-Control-Request-Method":this.request.method,Origin:u(this,Pt).location.origin});t.length>0&&r.set("Access-Control-Request-Headers",t.slice().sort().join(","));let i=await new Tb({browserFrame:u(this,ye),window:u(this,Pt),url:this.request.url,init:{method:"OPTIONS"},disableCache:!0,disableSameOriginPolicy:!0,unfilteredHeaders:r}).send();if(!i.ok)return!1;let n=i.headers.get("Access-Control-Allow-Origin");if(!n||n!=="*"&&n!==u(this,Pt).location.origin)return!1;let a=[];if(i.headers.has("Access-Control-Allow-Methods")){let y=i.headers.get("Access-Control-Allow-Methods");if(y!=="*")for(let p of y.split(","))a.push(p.trim().toUpperCase())}return!(a.length!==0&&!a.includes(this.request.method))}sendRequest(){return new Promise((e,t)=>{let r=u(this,ye)[gt].startTask(()=>this.onAsyncTaskManagerAbort());if(this.resolve)throw new(u(this,Pt)).Error("Fetch already sent.");this.resolve=async i=>{!this.disableCache&&i instanceof Xo&&u(this,ye).page&&u(this,ye).page.context&&(i[Ki]=u(this,ye).page.context.responseCache.add(this.request,{...i,headers:this.responseHeaders,body:i[Mt],waitingForBody:!i[Mt]&&!!i.body}));let n=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:u(this,Pt),response:await i,request:this.request}):void 0;u(this,ye)[gt].endTask(r);let a=n instanceof Xo?n:i;a instanceof Xo&&!a.ok&&u(this,ye).page.console.error(`${this.request.method} ${this.request.url} ${a.status} (${a.statusText})`),e(a)},this.reject=i=>{u(this,ye)[gt].endTask(r),t(i)},this.request.signal.addEventListener("abort",this.listeners.onSignalAbort);let o=(this.request[ke].protocol==="https:"?aU:lU).request;this.nodeRequest=o(this.request[ke].href,{method:this.request.method,headers:Fs.getRequestHeaders({browserFrame:u(this,ye),window:u(this,Pt),request:this.request,baseHeaders:u(this,Cb)}),agent:!1,rejectUnauthorized:!u(this,ye).page.context.browser.settings.fetch.disableStrictSSL,key:this.request[ke].protocol==="https:"?sp.key:void 0,cert:this.request[ke].protocol==="https:"?sp.cert:void 0}),this.nodeRequest.on("error",this.onError.bind(this)),this.nodeRequest.on("socket",this.onSocket.bind(this)),this.nodeRequest.on("response",this.onResponse.bind(this)),this.request.body===null?this.nodeRequest.end():Wl.pipeline(this.request.body,this.nodeRequest,i=>{i&&this.onError(i)})})}onSocket(e){let t=()=>{if(this.isChunkedTransfer&&!this.isProperLastChunkReceived){let o=new(u(this,Pt)).DOMException("Premature close.",v.networkError);this.request[hr]=o,this.response&&(this.response[hr]=o,this.response.body&&!this.response.body.locked&&this.response.body.cancel(o))}},r=o=>{this.isProperLastChunkReceived=TS.compare(o.slice(-5),oA)===0,!this.isProperLastChunkReceived&&this.previousChunk&&(this.isProperLastChunkReceived=TS.compare(this.previousChunk.slice(-3),oA.slice(0,3))===0&&TS.compare(o.slice(-2),oA.slice(3))===0),this.previousChunk=o};e.prependListener("close",t),e.on("data",r),this.nodeRequest.on("close",()=>{e.removeListener("close",t),e.removeListener("data",r)})}onSignalAbort(e){this.finalizeRequest(),this.abort(e.target?.reason)}onError(e){this.finalizeRequest(),u(this,ye).page.console.error(e),this.reject(new(u(this,Pt)).DOMException(`Failed to execute "fetch()" on "Window" with URL "${this.request.url}": ${e.message}`,v.networkError))}onAsyncTaskManagerAbort(){let e=new(u(this,Pt)).DOMException("The operation was aborted.",v.abortError);this.request[ve]=!0,this.request[hr]=e,this.response&&(this.response[ve]=!0,this.response[hr]=e),this.listeners.onSignalAbort&&this.request.signal.removeEventListener("abort",this.listeners.onSignalAbort),this.nodeRequest&&!this.nodeRequest.destroyed&&this.nodeRequest.destroy(e),this.nodeResponse&&!this.nodeResponse.destroyed&&this.nodeResponse.destroy(e),this.response&&this.response.body&&(this.response.body.locked||this.response.body.cancel(e))}onResponse(e){if(this.isChunkedTransfer=e.headers["transfer-encoding"]==="chunked"&&!e.headers["content-length"],this.nodeRequest.setTimeout(0),this.responseHeaders=Ry.parseResponseHeaders({browserFrame:u(this,ye),requestURL:this.request[ke],rawHeaders:e.rawHeaders}),this.handleRedirectResponse(e,this.responseHeaders))return;e.once("end",()=>this.request.signal.removeEventListener("abort",this.listeners.onSignalAbort));let t=Wl.pipeline(e,new Wl.PassThrough,i=>{}),r={status:e.statusCode,statusText:e.statusMessage,headers:this.responseHeaders},o=this.responseHeaders.get("Content-Encoding");if(this.request.method==="HEAD"||o===null||e.statusCode===204||e.statusCode===304){this.response=new(u(this,Pt)).Response(dr.nodeToWebStream(t),r),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);return}if(o==="gzip"||o==="x-gzip"){let i={flush:lp.constants.Z_SYNC_FLUSH,finishFlush:lp.constants.Z_SYNC_FLUSH};t=Wl.pipeline(t,lp.createGunzip(i),n=>{}),this.response=new(u(this,Pt)).Response(dr.nodeToWebStream(t),r),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);return}if(o==="deflate"||o==="x-deflate"){let i=Wl.pipeline(e,new Wl.PassThrough,n=>{});i.on("data",n=>{(n[0]&15)===8?t=Wl.pipeline(t,lp.createInflate(),a=>{}):t=Wl.pipeline(t,lp.createInflateRaw(),a=>{}),this.response=new(u(this,Pt)).Response(dr.nodeToWebStream(t),r),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response)}),i.on("end",()=>{this.response||(this.response=new(u(this,Pt)).Response(dr.nodeToWebStream(t),r),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response))});return}if(o==="br"){t=Wl.pipeline(t,lp.createBrotliDecompress(),i=>{}),this.response=new(u(this,Pt)).Response(dr.nodeToWebStream(t),r),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);return}this.response=new(u(this,Pt)).Response(dr.nodeToWebStream(t),r),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response)}handleRedirectResponse(e,t){if(!Hl.isRedirect(e.statusCode))return!1;switch(this.request.redirect){case"error":return this.finalizeRequest(),this.reject(new(u(this,Pt)).DOMException(`URI requested responds with a redirect, redirect mode is set to "error": ${this.request.url}`,v.abortError)),!0;case"manual":return!1;case"follow":let r=t.get("Location"),o=e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&this.request.method==="POST",i=null;if(r!==null)try{i=new vS(r,this.request.url)}catch{return this.finalizeRequest(),this.reject(new(u(this,Pt)).DOMException(`URI requested responds with an invalid redirect URL: ${r}`,v.uriMismatchError)),!0}if(i===null)return!1;if(Hl.isMaxRedirectsReached(this.redirectCount))return this.finalizeRequest(),this.reject(new(u(this,Pt)).DOMException(`Maximum redirects reached at: ${this.request.url}`,v.networkError)),!0;let n=new(u(this,Pt)).Headers(this.request.headers),a={method:this.request.method,signal:this.request.signal,referrer:this.request.referrer,referrerPolicy:this.request.referrerPolicy,credentials:this.request.credentials,headers:n,body:this.request[fs]};if((this.request.credentials==="omit"||this.request.credentials==="same-origin"&&Mi.isCORS(u(this,Pt).location.href,i))&&(n.delete("cookie"),n.delete("cookie2")),this.request.signal[ve])return this.abort(this.request.signal[di]),!0;o&&(a.method="GET",a.body=void 0,n.delete("Content-Length"),n.delete("Content-Type"));let y=Rs.getReferrerPolicyFromHeader(n);y&&(a.referrerPolicy=y);let p=new Tb({browserFrame:u(this,ye),window:u(this,Pt),url:i,init:a,redirectCount:this.redirectCount+1,disableSameOriginPolicy:this.disableSameOriginPolicy,contentType:o?null:this.request[Fe]});return this.finalizeRequest(),p.send().then(d=>this.resolve(d)).catch(d=>this.reject(d)),!0;default:return this.finalizeRequest(),this.reject(new(u(this,Pt)).DOMException(`Redirect option '${this.request.redirect}' is not a valid value of TRequestRedirect`)),!0}}finalizeRequest(){this.request.signal.removeEventListener("abort",this.listeners.onSignalAbort),this.nodeRequest?.destroy()}abort(e){let t=new(u(this,Pt)).DOMException("The operation was aborted."+(e?" "+e.toString():""),v.abortError);this.request[ve]=!0,this.request[hr]=t,this.response&&(this.response[ve]=!0,this.response[hr]=t),this.nodeRequest&&!this.nodeRequest.destroyed&&this.nodeRequest.destroy(t),this.nodeResponse&&!this.nodeResponse.destroyed&&this.nodeResponse.destroy(t),this.response&&this.response.body&&(this.response.body.locked||this.response.body.cancel(t)),this.reject&&this.reject(e!==void 0?e:t)}};ye=new WeakMap,Pt=new WeakMap,Cb=new WeakMap;var zo=Tb;var iA;(function(l){l.auto="auto",l.manual="manual"})(iA||(iA={}));var is=iA;import{URL as sA}from"url";var Co=class{static getRelativeURL(e,t){if(t=t?String(t):"about:blank",t.startsWith("about:")||t.startsWith("javascript:"))return new sA(t);try{return new sA(t,e.window[vo].href)}catch{return new sA("about:blank")}}};var Vr,fo,Fy=class{constructor(e,t){E(this,Vr);E(this,fo);if(!e)throw new TypeError("Illegal constructor");w(this,Vr,e),w(this,fo,t)}get length(){return u(this,Vr)?.[Qe].items.length||0}get state(){return u(this,Vr)?.[Qe].currentItem.state||null}get scrollRestoration(){return u(this,Vr)?.[Qe].currentItem.scrollRestoration||is.auto}set scrollRestoration(e){switch(e){case is.auto:case is.manual:let t=u(this,Vr)?.[Qe].currentItem;t&&(t.scrollRestoration=e);break}}back(){u(this,fo).closed||u(this,Vr)?.goBack()}forward(){u(this,fo).closed||u(this,Vr)?.goForward()}go(e){u(this,fo).closed||u(this,Vr)?.goSteps(e)}pushState(e,t,r){if(!u(this,Vr)||u(this,fo).closed)return;let o=u(this,Vr)?.[Qe];if(!o)return;if(arguments.length<2)throw new(u(this,fo)).TypeError(`Failed to execute 'pushState' on 'History': 2 arguments required, but only ${arguments.length} present.`);let i=u(this,fo)[vo],n=r?Co.getRelativeURL(u(this,Vr),r):i;if(r&&n.origin!==i.origin)throw new(u(this,fo)).DOMException(`Failed to execute 'pushState' on 'History': A history state object with URL '${r.toString()}' cannot be created in a document with origin '${i.origin}' and URL '${i.href}'.`,v.securityError);o.currentItem.popState=!0,o.push({title:u(this,fo).document.title,href:n.href,state:e,popState:!0,scrollRestoration:o.currentItem.scrollRestoration,method:o.currentItem.method||"GET",formData:o.currentItem.formData||null}),i[yo](u(this,Vr),o.currentItem.href)}replaceState(e,t,r){if(!u(this,Vr)||u(this,fo).closed)return;let o=u(this,Vr)?.[Qe];if(!o)return;if(arguments.length<2)throw new(u(this,fo)).TypeError(`Failed to execute 'pushState' on 'History': 2 arguments required, but only ${arguments.length} present.`);let i=u(this,fo)[vo],n=r?Co.getRelativeURL(u(this,Vr),r):i;if(r&&n.origin!==i.origin)throw new(u(this,fo)).DOMException(`Failed to execute 'pushState' on 'History': A history state object with URL '${r.toString()}' cannot be created in a document with origin '${i.origin}' and URL '${i.href}'.`,v.securityError);o.replace({title:u(this,fo).document.title,href:n.href,state:e,popState:o.currentItem.popState,scrollRestoration:o.currentItem.scrollRestoration,method:o.currentItem.method,formData:o.currentItem.formData}),r&&i[yo](u(this,Vr),o.currentItem.href)}[wt](){w(this,Vr,null)}};Vr=new WeakMap,fo=new WeakMap;var CS,NS,ap=class{constructor(e,t){E(this,CS);E(this,NS);w(this,CS,e),w(this,NS,t||{})}observe(e){}disconnect(){}unobserve(e){}takeRecords(){return[]}};CS=new WeakMap,NS=new WeakMap;var mp=class{constructor(e){s(this,"boundingClientRect",null);s(this,"intersectionRatio",0);s(this,"intersectionRect",null);s(this,"isIntersecting",!1);s(this,"rootBounds",null);s(this,"target",null);s(this,"time",0);Object.assign(this,e)}};var Rx,lr,Oe,gm,yp,By=class{constructor(e,t){s(this,Rx,"Location");E(this,lr);E(this,Oe);E(this,gm,null);E(this,yp,[]);if(!e)throw new TypeError("Illegal constructor");w(this,lr,e),w(this,Oe,new URL(t))}get hash(){return u(this,Oe).hash}set hash(e){let t=u(this,lr)?.[Qe];if(!t||!u(this,lr))return;let r=new URL(u(this,Oe).href),o=u(this,Oe).hash;r.hash=e,r.hash!==o&&(t.currentItem.popState=!0,t.push({title:"",href:r.href,state:t.currentItem.state,popState:!0,scrollRestoration:is.manual,method:t.currentItem.method,formData:t.currentItem.formData||null}),this[yo](u(this,lr),r.href))}get host(){return u(this,Oe).host}set host(e){let t=new URL(u(this,Oe).href);t.host=e,this.href=t.href}get hostname(){return u(this,Oe).hostname}set hostname(e){let t=new URL(u(this,Oe).href);t.hostname=e,this.href=t.href}get href(){return u(this,Oe).href}set href(e){u(this,lr)&&u(this,lr).goto(e).catch(t=>{if(u(this,lr)?.page?.console)u(this,lr).page.console.error(t);else throw t})}get origin(){return u(this,Oe).origin}get pathname(){return u(this,Oe).pathname}set pathname(e){let t=new URL(u(this,Oe).href);t.pathname=e,this.href=t.href}get port(){return u(this,Oe).port}set port(e){let t=new URL(u(this,Oe).href);t.port=e,this.href=t.href}get protocol(){return u(this,Oe).protocol}set protocol(e){let t=new URL(u(this,Oe).href);t.protocol=e,this.href=t.href}get search(){return u(this,Oe).search}set search(e){let t=new URL(u(this,Oe).href);t.search=e,this.href=t.href}replace(e){this.href=String(e)}assign(e){this.href=String(e)}reload(){u(this,lr)&&u(this,lr).goto(this.href).catch(e=>{if(u(this,lr)?.page.console)u(this,lr).page.console.error(e);else throw e})}[(Rx=Symbol.toStringTag,yo)](e,t){if(!u(this,lr))return;if(u(this,lr)!==e)throw new Error("Failed to set URL. Browser frame mismatch.");let r=u(this,Oe).href,o=u(this,Oe).hash;if(u(this,Oe).href=t,u(this,Oe).hash!==o){let i=u(this,Oe).href;u(this,yp).push(new um("hashchange",{oldURL:r,newURL:i})),u(this,lr)?.window?.document?.[po](),u(this,gm)&&u(this,lr).window?.clearTimeout(u(this,gm)),w(this,gm,u(this,lr).window?.setTimeout(()=>{let n=u(this,yp);w(this,yp,[]);for(let a of n)u(this,lr)?.window?.dispatchEvent(a)}))}}[wt](){u(this,gm)&&u(this,lr)?.window?.clearTimeout(u(this,gm)),w(this,lr,null)}toString(){return u(this,Oe).toString()}};lr=new WeakMap,Oe=new WeakMap,gm=new WeakMap,yp=new WeakMap;var Jo=class{constructor(e){s(this,"type");s(this,"target");s(this,"addedNodes");s(this,"removedNodes");s(this,"previousSibling");s(this,"nextSibling");s(this,"attributeName");s(this,"attributeNamespace");s(this,"oldValue");this.type=e.type,this.target=e.target,this.addedNodes=e.addedNodes||[],this.removedNodes=e.removedNodes||[],this.previousSibling=e.previousSibling||null,this.nextSibling=e.nextSibling||null,this.attributeName=e.attributeName||null,this.attributeNamespace=e.attributeNamespace||null,this.oldValue=e.oldValue||null}};var Nb=class{constructor(e,t,r,o){s(this,"description");s(this,"enabledPlugin");s(this,"suffixes");s(this,"type");this.description=e,this.enabledPlugin=t,this.suffixes=r,this.type=o}toString(){return"[object MimeType]"}};var Dy=class{constructor(e){s(this,"length");for(let t=0,r=e.length;t<r;t++)this[t]=e[t],this[e[t].type]=e[t];this.length=e.length}item(e){return this[e]||null}namedItem(e){return this[e]||null}toString(){return"[object MimeTypeArray]"}};var Lb=class{constructor(e,t,r,o){s(this,"length",0);s(this,"description");s(this,"filename");s(this,"name");this.description=t,this.filename=r,this.name=o;for(let i=0,n=e.length;i<n;i++)this[i]=e[i],this[e[i].type]=e[i];this.length=e.length}item(e){return this[e]||null}namedItem(e){return this[e]||null}toString(){return"[object Plugin]"}};var Oy=class{constructor(e){s(this,"length");for(let t=0,r=e.length;t<r;t++)this[t]=e[t],this[e[t].name]=e[t];this.length=e.length}item(e){return this[e]||null}namedItem(e){return this[e]||null}refresh(){}toString(){return"[object PluginArray]"}};var nA;(function(l){l.geolocation="geolocation",l.notifications="notifications",l.push="push",l.midi="midi",l.camera="camera",l.microphone="microphone",l.backgroundFetch="background-fetch",l.backgroundSync="background-sync",l.persistentStorage="persistent-storage",l.ambientLightSensor="ambient-light-sensor",l.accelerometer="accelerometer",l.gyroscope="gyroscope",l.magnetometer="magnetometer",l.screenWakeLock="screen-wake-lock",l.nfc="nfc",l.displayCapture="display-capture",l.accessibilityEvents="accessibility-events",l.clipboardRead="clipboard-read",l.clipboardWrite="clipboard-write",l.paymentHandler="payment-handler",l.idleDetection="idle-detection",l.periodicBackgroundSync="periodic-background-sync",l.systemWakeLock="system-wake-lock",l.storageAccess="storage-access",l.windowManagement="window-management",l.windowPlacement="window-placement",l.localFonts="local-fonts",l.topLevelStorageAccess="top-level-storage-access"})(nA||(nA={}));var Fx=nA;var Vy,kb,fm=class{constructor(e){E(this,Vy,{});E(this,kb);e?.document||new TypeError("Invalid constructor"),w(this,kb,e)}async query(e){let t=e?.name;if(t&&u(this,Vy)[t])return u(this,Vy)[t];if(!Object.values(Fx).includes(t))throw new Error(`Failed to execute 'query' on 'Permissions': Failed to read the 'name' property from 'PermissionDescriptor': The provided value '${t}' is not a valid enum value of type PermissionName.`);return u(this,Vy)[t]=new(u(this,kb)).PermissionStatus("granted"),u(this,Vy)[t]}};Vy=new WeakMap,kb=new WeakMap;var Uy,Ib,Mb,up=class{constructor(e){E(this,Uy);E(this,Ib);E(this,Mb);if(!e)throw new TypeError("Invalid constructor");w(this,Uy,e),w(this,Ib,new ja(e)),w(this,Mb,new fm(e))}get cookieEnabled(){return!0}get credentials(){return null}get geolocation(){return null}get language(){return"en-US"}get languages(){return["en-US","en"]}get locks(){return null}get maxTouchPoints(){return new rt(u(this,Uy)).getSettings()?.navigator.maxTouchPoints||0}get hardwareConcurrency(){return 8}get appCodeName(){return"Mozilla"}get appName(){return"Netscape"}get appVersion(){let e=this.userAgent,t=e.indexOf("/");return t>-1?e.substring(t+1):""}get platform(){let e=this.userAgent,t=e.indexOf("("),r=e.indexOf(")");return t>-1&&r>-1?e.substring(t+1,r):""}get product(){return"Gecko"}get productSub(){return"20100101"}get vendor(){return""}get vendorSub(){return""}get userAgent(){return new rt(u(this,Uy)).getSettings()?.navigator.userAgent||""}get onLine(){return!0}get permissions(){return u(this,Mb)}get clipboard(){return u(this,Ib)}get webdriver(){return!0}get doNotTrack(){return"unspecified"}get mimeTypes(){return new Dy([])}get plugins(){return new Oy([])}sendBeacon(e,t){return u(this,Uy).fetch(e,{method:"POST",body:t}),!0}toString(){return"[object Navigator]"}};Uy=new WeakMap,Ib=new WeakMap,Mb=new WeakMap;var lA;(function(l){l[l.disconnect=1]="disconnect",l[l.preceding=2]="preceding",l[l.following=4]="following",l[l.contains=8]="contains",l[l.containedBy=16]="containedBy",l[l.implementationSpecific=32]="implementationSpecific"})(lA||(lA={}));var Bi=lA;var St=class l{static isTextNode(e){return e?.[U]===L.textNode}static isInclusiveAncestor(e,t,r=!1){if(e===null||t===null)return!1;if(e===t)return!0;if(!e[q].length||r&&t[it]!==e[it])return!1;if(r&&e===t[T]&&t[it])return!0;let o=t[Y];for(;o;){if(e===o)return!0;if(e[Y]===o[Y])return!1;o=o[Y]?o[Y]:r&&o.host?o.host:null}return!1}static isFollowing(e,t){if(e===t)return!1;let r=t;for(;r;)if(r=this.following(r),r===e)return!0;return!1}static getNodeLength(e){switch(e[U]){case L.documentTypeNode:return 0;case L.textNode:case L.processingInstructionNode:case L.commentNode:return e.data.length;default:return e[q].length}}static following(e,t){let r=e.firstChild;if(r)return r;let o=e;for(;o;){if(o===t)return null;let i=o.nextSibling;if(i)return i;o=o[Y]}return null}static nextDescendantNode(e){for(;e&&!e.nextSibling;)e=e[Y];return e?e.nextSibling:null}static attributeListsEqual(e,t){let r=Array.from(e[ft][$].values()),o=Array.from(t[ft][$].values());for(let i of r){let n=!1;for(let a of o)if(i[tt]===a[tt]&&i.localName===a.localName&&i[z]===a[z]){n=!0;break}if(!n)return!1}return!0}static isEqualNode(e,t){if(e[U]!==t[U])return!1;switch(e[U]){case L.documentTypeNode:let r=e,o=t;if(r.name!==o.name||r.publicId!==o.publicId||r.systemId!==o.systemId)return!1;break;case L.elementNode:let i=e,n=t;if(i[tt]!==n[tt]||i[Ot]!==n[Ot]||i[nt]!==n[nt]||i[ft][$].size!==n[ft][$].size)return!1;break;case L.attributeNode:let a=e,y=t;if(a[tt]!==y[tt]||a.localName!==y.localName||a[z]!==y[z])return!1;break;case L.processingInstructionNode:let p=e,d=t;if(p.target!==d.target||p.data!==d.data)return!1;break;case L.textNode:case L.commentNode:let b=e,f=t;if(b.data!==f.data)return!1;break}if(e[U]===L.elementNode&&!l.attributeListsEqual(e,t)||e[q].length!==t[q].length)return!1;for(let r=0;r<e[q].length;r++){let o=e[q][r],i=t[q][r];if(!l.isEqualNode(o,i))return!1}return!0}};var aA;(function(l){l.attributes="attributes",l.characterData="characterData",l.childList="childList"})(aA||(aA={}));var ss=aA;var Ve=class{static createNode(e,t,...r){return t.prototype[m]||this.ownerDocuments.push(e),new t(...r)}static pullOwnerDocument(){return this.ownerDocuments.pop()||null}};s(Ve,"ownerDocuments",[]);var Bx,Dx,Ox,Vx,Ux,Gx,_x,Hx,Wx,Yx,qx,Kx,jx,Qx,Ce=class Ce extends Tt{constructor(){super();s(this,Qx,!1);s(this,jx,null);s(this,Kx,null);s(this,qx,null);s(this,Yx,null);s(this,Wx,null);s(this,Hx,null);s(this,_x,[]);s(this,Gx,[]);s(this,Ux,[]);s(this,Vx,null);s(this,Ox,null);s(this,Dx,{querySelector:new Map,querySelectorAll:new Map,matches:new Map,elementsByTagName:new Map,elementsByTagNameNS:new Map,elementByTagName:new Map,elementById:new Map,computedStyle:null});s(this,Bx,[]);if(this[m])this[T]=this[m].document;else{let t=Ve.pullOwnerDocument();if(!t)throw new TypeError("Illegal constructor");this[T]=t,this[m]=t[m]}}get[(Qx=it,jx=Y,Kx=Be,qx=Wr,Yx=Ar,Wx=Ht,Hx=je,_x=Ro,Gx=q,Ux=dt,Vx=ul,Ox=Ji,Dx=W,Bx=ir,Symbol.toStringTag)](){return this.constructor.name}get isConnected(){return this[it]}get ownerDocument(){return this[T]}get parentNode(){return this[Y]}get nodeType(){return this[U]}get childNodes(){return this[ul]||(this[ul]=new Ii(h,this[q])),this[ul]}get textContent(){return""}set textContent(t){}get nodeValue(){return null}set nodeValue(t){}get nodeName(){return""}get previousSibling(){if(this[Y]){let t=this[Y][q],r=t.indexOf(this[Vt]||this);if(r>0)return t[r-1]}return null}get nextSibling(){if(this[Y]){let t=this[Y][q],r=t.indexOf(this[Vt]||this);if(r>-1&&r+1<t.length)return t[r+1]}return null}get firstChild(){let t=this[q];return t.length>0?t[0]:null}get lastChild(){let t=this[q];return t.length>0?t[t.length-1]:null}get parentElement(){let t=this[Y];for(;t&&t[U]!==L.elementNode;)t=t[Y];return t}get baseURI(){let t=this[T].querySelector("base");return t?t.href:this[m].location.href}hasChildNodes(){return this[q].length>0}contains(t){if(t===void 0)return!1;let r=this[Vt]||this;return St.isInclusiveAncestor(r,t)}getRootNode(t){if(this[it])return this[Be]&&!t?.composed?this[Be]:this[T];let r=this;for(;r[Y];)r=r[Y];return r}cloneNode(t=!1){return this[ct](t)}appendChild(t){if(arguments.length<1)throw new this[m].TypeError("Failed to execute 'appendChild' on 'Node': 1 argument required, but only 0 present");return this[vt](t)}removeChild(t){if(arguments.length<1)throw new this[m].TypeError("Failed to execute 'removeChild' on 'Node': 1 argument required, but only 0 present");return this[Hr](t)}insertBefore(t,r){if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertBefore' on 'Node': 2 arguments required, but only ${arguments.length} present.`);return this[uo](t,r)}replaceChild(t,r){if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceChild' on 'Node': 2 arguments required, but only ${arguments.length} present.`);return this[Iu](t,r)}[ct](t=!1){let r=Ve.createNode(this[T],this.constructor);if(r[q].length){let o=r[q];for(;o.length;)r.removeChild(o[0])}if(t)for(let o of this[q]){let i=o.cloneNode(!0);i[Y]=r,r[q].push(i),i[U]===L.elementNode&&r[dt].push(i)}return r}[vt](t,r=!1){t[Vt]&&(t=t[Vt]);let o=this[Vt]||this;if(!r){if(t===o)throw new this[m].DOMException("Failed to execute 'appendChild' on 'Node': Not possible to append a node as a child of itself.");if(St.isInclusiveAncestor(t,o,!0))throw new this[m].DOMException("Failed to execute 'appendChild' on 'Node': The new node is a parent of the node to insert to.",v.domException)}if(t[U]===L.documentFragmentNode){let i=t[q];for(;i.length;)this.appendChild(i[0]);return t}t[Y]&&t[Y][Hr](t),t[Y]=o,t[po](),this[q].push(t),t[U]===L.elementNode&&this[dt].push(t),t[Io]();for(let i of this[Ro])i.options?.subtree&&i.callback.deref()&&t[sy](i);return this[sn](new Jo({target:o,type:ss.childList,addedNodes:[t]})),t}[Hr](t){t[Vt]&&(t=t[Vt]);let r=this[q].indexOf(t);if(r===-1)throw new this[m].DOMException("Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.");let o=t.previousSibling,i=t.nextSibling;if(t[Y]=null,t[po](),this[q].splice(r,1),t[U]===L.elementNode){let n=this[dt].indexOf(t);n!==-1&&this[dt].splice(n,1)}if(t[Ji]){let n=t[Ji][mn].indexOf(t);n!==-1&&t[Ji][mn].splice(n,1),t[Ji]=null}t[en]();for(let n of this[Ro])n.options?.subtree&&n.callback.deref()&&t[Tu](n);return this[sn](new Jo({target:this[Vt]||this,type:ss.childList,removedNodes:[t],previousSibling:o,nextSibling:i})),t}[uo](t,r,o=!1){if(t[Vt]&&(t=t[Vt]),r&&r[Vt]&&(r=r[Vt]),t===r)return t;let i=this[Vt]||this;if(!o){if(t===i)throw new this[m].DOMException("Failed to execute 'insertBefore' on 'Node': Not possible to insert a node as a child of itself.");if(St.isInclusiveAncestor(t,i,!0))throw new this[m].DOMException("Failed to execute 'insertBefore' on 'Node': The new node is a parent of the node to insert to.",v.domException)}if(t[U]===L.documentFragmentNode){let y=t[q];for(;y.length>0;)this[uo](y[0],r,!0);return t}if(!r)return this[vt](t,!0),t;let n=this[q];if(!n.includes(r))throw new this[m].DOMException("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.");t[Y]&&t[Y][Hr](t),t[Y]=i,t[po]();let a=n.indexOf(r);if(t[U]===L.elementNode){let y=this[dt];if(r[U]===L.elementNode)y.splice(y.indexOf(r),0,t);else{let p=!1;for(let d=a,b=n.length;d<b;d++)if(n[d][U]===L.elementNode){y.splice(y.indexOf(n[d]),0,t),p=!0;break}p||y.push(t)}}n.splice(a,0,t),t[Io]();for(let y of this[Ro])y.options?.subtree&&y.callback.deref()&&t[sy](y);return this[sn](new Jo({target:i,type:ss.childList,addedNodes:[t]})),t}[Iu](t,r){return this.insertBefore(t,r),this.removeChild(r),r}isEqualNode(t){return St.isEqualNode(this,t)}toString(){return`[object ${this.constructor.name}]`}[sy](t){if(this[Ro].push(t),t.options.subtree)for(let r of this[q])r[sy](t)}[Tu](t){let r=this[Ro].indexOf(t);if(r!==-1&&this[Ro].splice(r,1),t.options.subtree)for(let o of this[q])o[Tu](t)}[sn](t){this[po]();let r=this[Ro];if(r.length)for(let o=0,i=r.length;o<i;o++){let n=r[o],a=n.callback.deref();if(a)switch(t.type){case ss.childList:n.options.childList&&a(t);break;case ss.attributes:n.options.attributes&&(!n.options.attributeFilter||n.options.attributeFilter.includes(t.attributeName))&&a(t);break;case ss.characterData:n.options?.characterData&&a(t);break}else r.splice(o,1),o--,i--}}[po](){let t=this[W];if(t.querySelector.size){for(let i of t.querySelector.values())i.result&&(i.result=null);t.querySelector=new Map}if(t.querySelectorAll.size){for(let i of t.querySelectorAll.values())i.result&&(i.result=null);t.querySelectorAll=new Map}if(t.matches.size){for(let i of t.matches.values())i.result&&(i.result=null);t.matches=new Map}if(t.elementsByTagName.size){for(let i of t.elementsByTagName.values())i.result&&(i.result=null);t.elementsByTagName=new Map}if(t.elementsByTagNameNS.size){for(let i of t.elementsByTagNameNS.values())i.result&&(i.result=null);t.elementsByTagNameNS=new Map}if(t.elementByTagName.size){for(let i of t.elementByTagName.values())i.result&&(i.result=null);t.elementByTagName=new Map}if(t.elementById.size){for(let i of t.elementById.values())i.result&&(i.result=null);t.elementById=new Map}let r=this[ir];if(r.length){for(let i of r)i.result=null;this[ir]=[]}let o=this[T];if(o&&o[$i].length){for(let i of o[$i])i.result=null;o[$i]=[]}}[Io](){let t=this[Y],r=t||this[Ma],o=!1,i=!1;if(!this[it]&&r[it]?(this[it]=!0,o=!0):this[it]&&!r[it]&&(this[it]=!1,i=!0),this[T]=r[T]||r,this[m]=r[m]||r[mo],t){this[U]!==L.documentFragmentNode&&(this[Be]=t[Be]);let a=this[Z];t[Wr]&&a!=="STYLE"&&(this[Wr]=t[Wr]),t[Ar]&&a!=="TEXTAREA"&&(this[Ar]=t[Ar]),t[Ht]&&a!=="FORM"&&(this[Ht]=t[Ht]),t[je]&&a!=="SELECT"&&(this[je]=t[je])}let n=this[q].slice();for(let a=0,y=n.length;a<y;a++)n[a][Y]=this,n[a][Io]();this[Ee]&&this[Ee][Io](),o?this[Rr]():i&&this[Fr]()}[en](){this[U]!==L.documentFragmentNode&&(this[Be]=null);let t=this[Z];t!=="STYLE"&&(this[Wr]=null),t!=="TEXTAREA"&&(this[Ar]=null),t!=="FORM"&&(this[Ht]=null),t!=="SELECT"&&(this[je]=null),this[it]&&(this[it]=!1,this[Fr]());let r=this[q].slice();for(let o=0,i=r.length;o<i;o++)r[o][Io]();this[Ee]&&this[Ee][en]()}[Rr](){this[Ee]&&this[Ee][Rr]()}[Fr](){this[T][Ke]===this&&(this[T][po](),this[T][Ke]=null),this[Ee]&&this[Ee][Fr]()}[wt](){super[wt](),this[it]=!1;for(let t=0,r=this[q].length;t<r;t++)this[q][t][wt]();this[Ro]=[],this[Y]=null,this[Be]=null,this[Wr]=null,this[Ar]=null,this[Ht]=null,this[je]=null,this[Ro]=[],this[q]=[],this[dt]=[],this[ul]=null,this[Ji]=null,this[po]()}compareDocumentPosition(t){if(this===t)return 0;let r=t,o=this[Vt]||this,i=null,n=null;if(r[U]===L.attributeNode&&(i=r,r=i[Lt]),o[U]===L.attributeNode&&(n=o,o=n[Lt],i!==null&&r!==null&&o===r))for(let It of o[ft][$].values()){if(St.isEqualNode(It,i))return Ce.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|Ce.DOCUMENT_POSITION_PRECEDING;if(St.isEqualNode(It,n))return Ce.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|Ce.DOCUMENT_POSITION_FOLLOWING}let a=[],y=o;for(;y;){if(y===r)return Ce.DOCUMENT_POSITION_CONTAINS|Ce.DOCUMENT_POSITION_PRECEDING;a.push(y),y=y[Y]}let p=[],d=r;for(;d;){if(d===o)return Ce.DOCUMENT_POSITION_CONTAINED_BY|Ce.DOCUMENT_POSITION_FOLLOWING;p.push(d),d=d[Y]}let b=(It,At)=>It[It.length-1-At],f=b(a,0);if(!f||f!==b(p,0))return Ce.DOCUMENT_POSITION_DISCONNECTED|Ce.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|Ce.DOCUMENT_POSITION_FOLLOWING;let S=0,M=Math.min(a.length,p.length);for(let It=0;It<M;++It){let At=b(a,It),ze=b(p,It);if(At!==ze)break;S=It}let N=b(a,S),K=0,mt=-1,Nt=-1,qt=b(a,S+1),at=b(p,S+1),xt=It=>{for(let At of It){if(xt(At[q]),At===qt?mt=K:At===at&&(Nt=K),mt!==-1&&Nt!==-1)break;K++}};return xt(N[q]),Nt<mt?Ce.DOCUMENT_POSITION_PRECEDING:Ce.DOCUMENT_POSITION_FOLLOWING}normalize(){let t=this.firstChild;for(;t;){if(St.isTextNode(t)){for(;St.isTextNode(t.nextSibling);)t.data+=t.nextSibling.data,t.nextSibling.remove();if(!t.data.length){let r=t;t=t.nextSibling,r.remove();continue}}else t.normalize();t=t.nextSibling}}isSameNode(t){return this===t}};s(Ce,"ELEMENT_NODE",L.elementNode),s(Ce,"ATTRIBUTE_NODE",L.attributeNode),s(Ce,"TEXT_NODE",L.textNode),s(Ce,"CDATA_SECTION_NODE",L.cdataSectionNode),s(Ce,"COMMENT_NODE",L.commentNode),s(Ce,"DOCUMENT_NODE",L.documentNode),s(Ce,"DOCUMENT_TYPE_NODE",L.documentTypeNode),s(Ce,"DOCUMENT_FRAGMENT_NODE",L.documentFragmentNode),s(Ce,"PROCESSING_INSTRUCTION_NODE",L.processingInstructionNode),s(Ce,"DOCUMENT_POSITION_CONTAINED_BY",Bi.containedBy),s(Ce,"DOCUMENT_POSITION_CONTAINS",Bi.contains),s(Ce,"DOCUMENT_POSITION_DISCONNECTED",Bi.disconnect),s(Ce,"DOCUMENT_POSITION_FOLLOWING",Bi.following),s(Ce,"DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC",Bi.implementationSpecific),s(Ce,"DOCUMENT_POSITION_PRECEDING",Bi.preceding);var bt=Ce;bt.prototype.ELEMENT_NODE=L.elementNode;bt.prototype.ATTRIBUTE_NODE=L.attributeNode;bt.prototype.TEXT_NODE=L.textNode;bt.prototype.CDATA_SECTION_NODE=L.cdataSectionNode;bt.prototype.COMMENT_NODE=L.commentNode;bt.prototype.DOCUMENT_NODE=L.documentNode;bt.prototype.DOCUMENT_TYPE_NODE=L.documentTypeNode;bt.prototype.DOCUMENT_FRAGMENT_NODE=L.documentFragmentNode;bt.prototype.PROCESSING_INSTRUCTION_NODE=L.processingInstructionNode;bt.prototype.DOCUMENT_POSITION_CONTAINED_BY=Bi.containedBy;bt.prototype.DOCUMENT_POSITION_CONTAINS=Bi.contains;bt.prototype.DOCUMENT_POSITION_DISCONNECTED=Bi.disconnect;bt.prototype.DOCUMENT_POSITION_FOLLOWING=Bi.following;bt.prototype.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=Bi.implementationSpecific;bt.prototype.DOCUMENT_POSITION_PRECEDING=Bi.preceding;var $x,Xx,zx,Jx,Zx,tv,ev,rv,pp=class extends bt{constructor(){super(...arguments);s(this,rv,L.attributeNode);s(this,ev,null);s(this,tv,null);s(this,Zx,null);s(this,Jx,null);s(this,zx,null);s(this,Xx,!0);s(this,$x,null)}get specified(){return this[Mc]}get ownerElement(){return this[Lt]}get value(){return this[z]}set value(t){this[z]=t}get name(){return this[st]||""}get localName(){return this[nt]||""}get prefix(){return this[Ot]}get textContent(){return this[z]||""}get namespaceURI(){return this[tt]}[(rv=U,ev=tt,tv=st,Zx=nt,Jx=Ot,zx=z,Xx=Mc,$x=Lt,ct)](t=!1){let r=super[ct](t);return r[tt]=this[tt],r[st]=this[st],r[nt]=this[nt],r[Ot]=this[Ot],r[z]=this[z],r[Mc]=this[Mc],r}};var Yl=class{static appendData(e,t){e.data+=t}static deleteData(e,t,r){e.data=e.data.substring(0,t)+e.data.substring(t+r)}static insertData(e,t,r){e.data=e.data.substring(0,t)+r+e.data.substring(t)}static replaceData(e,t,r,o){e.data=e.data.substring(0,t)+o+e.data.substring(t+r)}static substringData(e,t,r){return e.data.substring(t,t+r)}};var ql=class{static previousElementSibling(e){let t=e.previousSibling;for(;t&&t[U]!==L.elementNode;)t=t.previousSibling;return t}static nextElementSibling(e){let t=e.nextSibling;for(;t&&t[U]!==L.elementNode;)t=t.nextSibling;return t}};var Di=class{static remove(e){e[Y]&&e[Y].removeChild(e)}static replaceWith(e,...t){let r=e[Y];if(r){for(let o of t)o instanceof bt?r.insertBefore(o,e):r.insertBefore(r[T].createTextNode(String(o)),e);r.removeChild(e)}}static before(e,...t){let r=e[Y];if(r)for(let o of t)o instanceof bt?r.insertBefore(o,e):r.insertBefore(r[T].createTextNode(String(o)),e)}static after(e,...t){let r=e[Y];if(!r)return;let o=e.nextSibling;for(let i of t){let n=i instanceof bt?i:r[T].createTextNode(String(i));o?r.insertBefore(n,o):r.appendChild(n)}}};var ov,Ds=class extends bt{constructor(t){super();s(this,ov,"");this[Xt]=t!==void 0?String(t):""}get length(){return this[Xt].length}get data(){return this[Xt]}set data(t){let r=this[Xt];this[Xt]=String(t),this[sn](new Jo({target:this,type:ss.characterData,oldValue:r}))}get textContent(){return this[Xt]}set textContent(t){this.data=t}get nodeValue(){return this[Xt]}set nodeValue(t){this.textContent=t}get previousElementSibling(){return ql.previousElementSibling(this)}get nextElementSibling(){return ql.nextElementSibling(this)}appendData(t){Yl.appendData(this,t)}deleteData(t,r){Yl.deleteData(this,t,r)}insertData(t,r){Yl.insertData(this,t,r)}replaceData(t,r,o){Yl.replaceData(this,t,r,o)}substringData(t,r){return Yl.substringData(this,t,r)}remove(){Di.remove(this)}replaceWith(...t){Di.replaceWith(this,...t)}before(...t){Di.before(this,...t)}after(...t){Di.after(this,...t)}[(ov=Xt,ct)](t=!1){let r=super[ct](t);return r[Xt]=this[Xt],r}};var iv,sv,nv,lv,Hn=class extends bt{constructor(){super(...arguments);s(this,lv,L.documentTypeNode);s(this,nv,"");s(this,sv,"");s(this,iv,"")}get name(){return this[st]}get publicId(){return this[fl]}get systemId(){return this[Sl]}get nodeName(){return this.name}toString(){return"[object DocumentType]"}[(lv=U,nv=st,sv=fl,iv=Sl,ct)](t=!1){let r=super[ct](t);return r[st]=this[st],r[fl]=this[fl],r[Sl]=this[Sl],r}};var mA;(function(l){l.loading="loading",l.interactive="interactive",l.complete="complete"})(mA||(mA={}));var LS=mA;var Sm,Rb=class{constructor(e){E(this,Sm);w(this,Sm,new ts(e))}waitUntilComplete(){return u(this,Sm).waitUntilComplete()}startTask(){return u(this,Sm).startTask()}endTask(e){u(this,Sm).endTask(e)}destroy(){return u(this,Sm).destroy()}};Sm=new WeakMap;var av,mv,yv,uv;uv=R,yv=F,mv=V,av=O;var yA=class yA{constructor(e,t,r,o){s(this,uv,0);s(this,yv,0);s(this,mv,0);s(this,av,0);this[R]=e!=null?Number(e):0,this[F]=t!=null?Number(t):0,this[V]=r!=null?Number(r):0,this[O]=o!=null?Number(o):0}get x(){return this[R]}get y(){return this[F]}get width(){return this[V]}get height(){return this[O]}get top(){return Math.min(this[F],this[F]+this[O])}get right(){return Math.max(this[R],this[R]+this[V])}get bottom(){return Math.max(this[F],this[F]+this[O])}get left(){return Math.min(this[R],this[R]+this[V])}toJSON(){return{x:this.x,y:this.y,width:this.width,height:this.height,top:this.top,right:this.right,bottom:this.bottom,left:this.left}}static fromRect(e){return new yA(e.x,e.y,e.width,e.height)}},Pm=yA;var ns=class l extends Pm{set x(e){this[R]=e}get x(){return this[R]}set y(e){this[F]=e}get y(){return this[F]}set width(e){this[V]=e}get width(){return this[V]}set height(e){this[O]=e}get height(){return this[O]}static fromRect(e){return new l(e.x,e.y,e.width,e.height)}};var yU=/[\t\f\n\r ]+/,pv,hv,cv,dv,bv,So=class l{constructor(e,t,r,o){s(this,bv);s(this,dv);s(this,cv,{items:[],attributeValue:""});s(this,hv);s(this,pv);if(e!==h)throw new TypeError("Illegal constructor");this[Lt]=t,this[Al]=r,this[fS]=o||[];let i=new Te(this,[l]),n=new Proxy(this,{get:(a,y)=>{if(y==="length")return a[to]().length;if(y in a||typeof y=="symbol")return i.bind(y),a[y];let p=Number(y);if(!isNaN(p))return a[to]()[p]},set(a,y,p){if(i.bind(y),typeof y=="symbol")return a[y]=p,!0;let d=Number(y);return isNaN(d)&&(a[y]=p),!0},deleteProperty(a,y){if(typeof y=="symbol")return delete a[y],!0;let p=Number(y);return isNaN(p)&&delete a[y],!0},ownKeys(a){return Object.keys(a[to]())},has(a,y){if(y in a)return!0;if(typeof y=="symbol")return!1;let p=Number(y);return!isNaN(p)&&p>=0&&p<a[to]().length},defineProperty(a,y,p){return i.preventBinding(y),y in a?(Object.defineProperty(a,y,p),!0):!1},getOwnPropertyDescriptor(a,y){if(y in a||typeof y=="symbol")return;let p=Number(y),d=a[to]();if(!isNaN(p)&&d[p])return{value:d[p],writable:!1,enumerable:!0,configurable:!0}}});return this[Vt]=n,n}get length(){return this[to]().length}set value(e){this[Lt].setAttribute(this[Al],e)}get value(){return this[Lt].getAttribute(this[Al])||""}[(bv=Lt,dv=Al,cv=W,hv=fS,pv=Vt,Symbol.iterator)](){return this[to]().values()}item(e){let t=this[to]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),t[e]?t[e]:null}replace(e,t){let r=this[to]().slice(),o=r.indexOf(e);return o===-1?!1:(r[o]=t,this[Lt].setAttribute(this[Al],r.join(" ")),!0)}supports(e){return this[fS].includes(e)}values(){return this[to]().values()}entries(){return this[to]().entries()}forEach(e,t){let r=t??this[Lt][m],o=this[to](),i=this[Vt]??this;for(let n=0,a=o.length;n<a;n++)e.call(r,o[n],n,i)}keys(){return this[to]().keys()}add(...e){let t=this[to]().slice(),r=new Set(t);for(let o of e)r.has(o)||(r.add(o),t.push(o));this[Lt].setAttribute(this[Al],t.join(" "))}remove(...e){let t=this[to](),r=new Set(e),o=t.filter(i=>!r.has(i));this[Lt].setAttribute(this[Al],o.join(" "))}contains(e){return this[to]().includes(e)}toggle(e,t){let r;return t!==void 0?r=t:r=!this.contains(e),r?(this.add(e),!0):(this.remove(e),!1)}[to](){let e=this[Lt].getAttribute(this[Al])??"",t=this[W];if(t.attributeValue===e)return t.items;let r=[],o=e.trim();if(o)for(let i of o.split(yU))r.includes(i)||r.push(i);return t.attributeValue=e,t.items=r,r}toString(){return this.value||""}};var gv,Ne=class l{constructor(e,t){s(this,gv);if(e!==h)throw new TypeError("Illegal constructor");this[ay]=t;let r=new Te(this,this.constructor!==l?[this.constructor,l]:[l]);return new Proxy(this,{get:(o,i)=>{if(i==="length")return t().length;if(i in o||typeof i=="symbol")return r.bind(i),o[i];let n=Number(i);return isNaN(n)?o.namedItem(i)||void 0:t()[n]},set(o,i,n){if(r.bind(i),typeof i=="symbol")return o[i]=n,!0;let a=Number(i);return isNaN(a)&&(o[i]=n),!0},deleteProperty(o,i){if(typeof i=="symbol")return delete o[i],!0;let n=Number(i);return isNaN(n)&&delete o[i],!0},ownKeys(){let o=[],i=t();for(let n=0;n<i.length;n++){let a=i[n],y=a.getAttribute("id")||a.getAttribute("name");o.push(String(n)),y&&o.push(y)}return o},has(o,i){if(i in o)return!0;let n=t(),a=Number(i);if(!isNaN(a)&&a>=0&&a<n.length)return!0;i=String(i);for(let y=0;y<n.length;y++){let p=n[y],d=p.getAttribute("id")||p.getAttribute("name");if(d&&d===i)return!0}return!1},defineProperty(o,i,n){return r.preventBinding(i),i in o?(Object.defineProperty(o,i,n),!0):!1},getOwnPropertyDescriptor(o,i){if(i in o||typeof i=="symbol")return;let n=t(),a=Number(i);if(!isNaN(a)&&a>=0&&a<n.length)return{value:n[a],writable:!1,enumerable:!0,configurable:!0};for(let y=0;y<n.length;y++){let p=n[y],d=p.getAttribute("id")||p.getAttribute("name");if(d&&d===i)return{value:p,writable:!1,enumerable:!0,configurable:!0}}}})}get length(){return this[ay]().length}get[(gv=ay,Symbol.toStringTag)](){return this.constructor.name}toLocaleString(){return`[object ${this.constructor.name}]`}toString(){return`[object ${this.constructor.name}]`}item(e){let t=this[ay]();return e>=0&&t[e]?t[e]:null}[Symbol.iterator](){return this[ay]()[Symbol.iterator]()}namedItem(e){let t=this[ay]();e=String(e);for(let r of t)if(r.getAttribute("id")===e||r.getAttribute("name")===e)return r;return null}};var me=class{static append(e,...t){for(let r of t)r instanceof bt?e.appendChild(r):e.appendChild(e[T].createTextNode(String(r)))}static prepend(e,...t){let r=e.firstChild;for(let o of t)o instanceof bt?e.insertBefore(o,r):e.insertBefore(e[T].createTextNode(String(o)),r)}static replaceChildren(e,...t){let r=e[q];for(;r.length;)e.removeChild(r[0]);this.append(e,...t)}static getElementsByClassName(e,t){return new Ne(h,()=>yt.querySelectorAll(e,`.${t.replace(/\s+/gm,".")}`)[$])}static getElementsByTagName(e,t){let r=t.toUpperCase(),o=t==="*",i=(a,y)=>{let p=[];for(let d of a[dt]){(o||d[Z].toUpperCase()===r)&&p.push(d),d[ir].push(y);for(let b of i(d,y))p.push(b)}return p},n=()=>{let a=e[W].elementsByTagName,y=a.get(t);if(y?.result){let b=y.result.deref();if(b)return b}let p={result:null},d=i(e,p);return p.result=new WeakRef(d),a.set(t,p),d};return new Ne(h,n)}static getElementsByTagNameNS(e,t,r){let o=t===Yt.html&&e[T][Fe]==="text/html"?r.toUpperCase():r,i=r==="*",n=(y,p)=>{let d=[];for(let b of y[dt]){(i||b[Z]===o)&&b[tt]===t&&d.push(b),b[ir].push(p);for(let f of n(b,p))d.push(f)}return d},a=()=>{let y=e[W].elementsByTagNameNS,p=y.get(r);if(p?.result){let f=p.result.deref();if(f)return f}let d={result:null},b=n(e,d);return d.result=new WeakRef(b),y.set(r,d),b};return new Ne(h,a)}static getElementByTagName(e,t){let r=t.toUpperCase(),o=(p,d)=>{for(let b of p[dt]){if(b[ir].push(d),b[Z]===r)return b;let f=o(b,d);if(f)return f}return null},i=e[W].elementByTagName,n=i.get(t);if(n?.result){let p=n.result.deref();if(p)return p}let a={result:null},y=o(e,a);return a.result=y?new WeakRef(y):{deref:()=>null},i.set(t,a),y}static getElementById(e,t){if(t=String(t),e[U]===bt.DOCUMENT_NODE){let y=e[xs].get(t);return y&&y.elements.length>0?y.elements[0]:null}let r=(y,p)=>{for(let d of y[dt]){if(d[ir].push(p),d.getAttribute("id")===t)return d;let b=r(d,p);if(b)return b}return null},o=e[W].elementById,i=o.get(t);if(i?.result){let y=i.result.deref();if(y)return y}let n={result:null},a=r(e,n);return n.result=a?new WeakRef(a):{deref:()=>null},o.set(t,n),a}};var Gy=class extends Array{constructor(e){if(super(),e!==1&&e!==h)throw new TypeError("Illegal constructor")}item(e){return this[e]??null}};var fv,Sv,Pv,Wn=class{constructor(e){s(this,Pv,new Map);s(this,Sv,new Map);s(this,fv,new Map);this[Lt]=e}get length(){return this[$].size}get[(Pv=Es,Sv=Eo,fv=$,Symbol.toStringTag)](){return"NamedNodeMap"}toString(){return"[object NamedNodeMap]"}[Symbol.iterator](){return this[$].values()}item(e){let t=Array.from(this[$].values());return e>=0&&t[e]?t[e]:null}getNamedItem(e){return e=String(e),this[Lt][tt]===Yt.html&&this[Lt][T][Fe]==="text/html"?this[Eo].get(oo.asciiLowerCase(e))?.[0]||null:this[Eo].get(e)?.[0]||null}getNamedItemNS(e,t){let r=this[Es].get(`${e||""}:${t}`);return r&&(!r[Ot]||r[tt])?r:null}setNamedItem(e){return this[Xi](e)}setNamedItemNS(e){return this[Xi](e)}removeNamedItem(e){let t=this.getNamedItem(e);if(!t)throw new this[Lt][m].DOMException(`Failed to execute 'removeNamedItem' on 'NamedNodeMap': No item with name '${e}' was found.`,v.notFoundError);return this[Pl](t),t}removeNamedItemNS(e,t){let r=this.getNamedItemNS(e,t);if(!r)throw new this[Lt][m].DOMException(`Failed to execute 'removeNamedItemNS' on 'NamedNodeMap': No item with name '${t}' in namespace '${e}' was found.`,v.notFoundError);return this[Pl](r),r}[Xi](e,t=!1){if(e[Lt]!==null&&e[Lt]!==this[Lt])throw new this[Lt][m].DOMException("The attribute is in use.",v.inUseAttributeError);e[Lt]=this[Lt];let r=this.getNamedItemNS(e[tt],e[nt])||null,o=this[Eo].get(e[st]);if(r===e)return e;if(this[Es].set(`${e[tt]||""}:${e[nt]}`,e),this[$].set(`${e[tt]||""}:${e[st]}`,e),!o?.length)this[Eo].set(e[st],[e]);else{let i=o.indexOf(r);i!==-1&&o.splice(i,1),o.push(e)}return t||this[Lt][$e](e,r),r}[Pl](e,t=!1){e[Lt]=null,this[Es].delete(`${e[tt]||""}:${e[nt]}`),this[$].delete(`${e[tt]||""}:${e[st]}`);let r=this[Eo].get(e[st]);if(r?.length){let o=r.indexOf(e);o!==-1&&r.splice(o,1),r.length||this[Eo].delete(e[st])}t||this[Lt][Yr](e)}};var Fb=class{static createProxy(e){let t=new Te(this,[Wn]);return new Proxy(e,{get:(r,o)=>{if(o==="length")return e[$].size;if(o in r||typeof o=="symbol")return t.bind(o),r[o];let i=Number(o);return isNaN(i)?r.getNamedItem(o)||void 0:r.item(i)},set(r,o,i){if(t.bind(o),typeof o=="symbol")return r[o]=i,!0;let n=Number(o);return isNaN(n)&&(r[o]=i),!0},deleteProperty(r,o){if(typeof o=="symbol")return delete r[o],!0;let i=Number(o);return isNaN(i)&&delete r[o],!0},ownKeys(){let r=Array.from(e[$].keys());for(let o=0,i=e[$].size;o<i;o++)r.push(String(o));return r},has(r,o){if(typeof o=="symbol")return!1;if(o in r||e[$].has(o))return!0;let i=Number(o);return!isNaN(i)&&i>=0&&i<e[$].size},defineProperty(r,o,i){return t.preventBinding(o),o in r?(Object.defineProperty(r,o,i),!0):!1},getOwnPropertyDescriptor(r,o){if(o in r||typeof o=="symbol")return;let i=Number(o);if(!isNaN(i)){if(i>=0){let a=r.item(i);if(a)return{value:a,writable:!1,enumerable:!0,configurable:!0}}return}let n=e[$].get(o);if(n)return{value:n,writable:!1,enumerable:!0,configurable:!0}}})}};var uA;(function(l){l.rawText="rawText",l.noSelfDescendants="noSelfDescendants",l.noFirstLevelSelfDescendants="noFirstLevelSelfDescendants",l.noForbiddenFirstLevelDescendants="noForbiddenFirstLevelDescendants",l.noDescendants="noDescendants",l.permittedDescendants="permittedDescendants",l.textOrComments="textOrComments",l.anyDescendants="anyDescendants"})(uA||(uA={}));var H=uA;var br={a:{className:"HTMLAnchorElement",contentModel:H.noSelfDescendants},abbr:{className:"HTMLElement",contentModel:H.anyDescendants},address:{className:"HTMLElement",contentModel:H.anyDescendants},area:{className:"HTMLAreaElement",contentModel:H.noDescendants},article:{className:"HTMLElement",contentModel:H.anyDescendants},aside:{className:"HTMLElement",contentModel:H.anyDescendants},audio:{className:"HTMLAudioElement",contentModel:H.anyDescendants},b:{className:"HTMLElement",contentModel:H.anyDescendants},base:{className:"HTMLBaseElement",contentModel:H.noDescendants},bdi:{className:"HTMLElement",contentModel:H.anyDescendants},bdo:{className:"HTMLElement",contentModel:H.anyDescendants},body:{className:"HTMLBodyElement",contentModel:H.anyDescendants},template:{className:"HTMLTemplateElement",contentModel:H.anyDescendants},form:{className:"HTMLFormElement",contentModel:H.anyDescendants},input:{className:"HTMLInputElement",contentModel:H.noDescendants},textarea:{className:"HTMLTextAreaElement",contentModel:H.anyDescendants},script:{className:"HTMLScriptElement",contentModel:H.rawText},img:{className:"HTMLImageElement",contentModel:H.noDescendants},link:{className:"HTMLLinkElement",contentModel:H.noDescendants},style:{className:"HTMLStyleElement",contentModel:H.rawText},label:{className:"HTMLLabelElement",contentModel:H.anyDescendants},slot:{className:"HTMLSlotElement",contentModel:H.anyDescendants},meta:{className:"HTMLMetaElement",contentModel:H.noDescendants},blockquote:{className:"HTMLQuoteElement",contentModel:H.anyDescendants},br:{className:"HTMLBRElement",contentModel:H.noDescendants},button:{className:"HTMLButtonElement",contentModel:H.anyDescendants},canvas:{className:"HTMLCanvasElement",contentModel:H.anyDescendants},caption:{className:"HTMLTableCaptionElement",contentModel:H.noForbiddenFirstLevelDescendants,forbiddenDescendants:["table","tbody","thead","tfoot","tr","td","th","col","colgroup"],permittedParents:["table"]},cite:{className:"HTMLElement",contentModel:H.anyDescendants},code:{className:"HTMLElement",contentModel:H.anyDescendants},col:{className:"HTMLTableColElement",contentModel:H.noDescendants,permittedParents:["colgroup"]},colgroup:{className:"HTMLTableColElement",contentModel:H.permittedDescendants,permittedDescendants:["col"]},data:{className:"HTMLDataElement",contentModel:H.anyDescendants},datalist:{className:"HTMLDataListElement",contentModel:H.anyDescendants},dd:{className:"HTMLElement",contentModel:H.noForbiddenFirstLevelDescendants,forbiddenDescendants:["dt","dd"]},del:{className:"HTMLModElement",contentModel:H.anyDescendants},details:{className:"HTMLDetailsElement",contentModel:H.anyDescendants},dfn:{className:"HTMLElement",contentModel:H.anyDescendants},dialog:{className:"HTMLDialogElement",contentModel:H.anyDescendants},div:{className:"HTMLDivElement",contentModel:H.anyDescendants},dl:{className:"HTMLDListElement",contentModel:H.anyDescendants},dt:{className:"HTMLElement",contentModel:H.noForbiddenFirstLevelDescendants,forbiddenDescendants:["dt","dd"]},em:{className:"HTMLElement",contentModel:H.anyDescendants},embed:{className:"HTMLEmbedElement",contentModel:H.noDescendants},fieldset:{className:"HTMLFieldSetElement",contentModel:H.anyDescendants},figcaption:{className:"HTMLElement",contentModel:H.anyDescendants},figure:{className:"HTMLElement",contentModel:H.anyDescendants},footer:{className:"HTMLElement",contentModel:H.anyDescendants},h1:{className:"HTMLHeadingElement",contentModel:H.noFirstLevelSelfDescendants},h2:{className:"HTMLHeadingElement",contentModel:H.noFirstLevelSelfDescendants},h3:{className:"HTMLHeadingElement",contentModel:H.noFirstLevelSelfDescendants},h4:{className:"HTMLHeadingElement",contentModel:H.noFirstLevelSelfDescendants},h5:{className:"HTMLHeadingElement",contentModel:H.noFirstLevelSelfDescendants},h6:{className:"HTMLHeadingElement",contentModel:H.noFirstLevelSelfDescendants},head:{className:"HTMLHeadElement",contentModel:H.anyDescendants},header:{className:"HTMLElement",contentModel:H.anyDescendants},hgroup:{className:"HTMLElement",contentModel:H.anyDescendants},hr:{className:"HTMLHRElement",contentModel:H.noDescendants},html:{className:"HTMLHtmlElement",contentModel:H.anyDescendants},i:{className:"HTMLElement",contentModel:H.anyDescendants},iframe:{className:"HTMLIFrameElement",contentModel:H.anyDescendants},ins:{className:"HTMLModElement",contentModel:H.anyDescendants},kbd:{className:"HTMLElement",contentModel:H.anyDescendants},legend:{className:"HTMLLegendElement",contentModel:H.anyDescendants},li:{className:"HTMLLIElement",contentModel:H.noFirstLevelSelfDescendants},main:{className:"HTMLElement",contentModel:H.anyDescendants},map:{className:"HTMLMapElement",contentModel:H.anyDescendants},mark:{className:"HTMLElement",contentModel:H.anyDescendants},menu:{className:"HTMLMenuElement",contentModel:H.anyDescendants},meter:{className:"HTMLMeterElement",contentModel:H.anyDescendants},nav:{className:"HTMLElement",contentModel:H.anyDescendants},noscript:{className:"HTMLElement",contentModel:H.anyDescendants},object:{className:"HTMLObjectElement",contentModel:H.anyDescendants},ol:{className:"HTMLOListElement",contentModel:H.anyDescendants},optgroup:{className:"HTMLOptGroupElement",contentModel:H.noFirstLevelSelfDescendants},option:{className:"HTMLOptionElement",contentModel:H.noForbiddenFirstLevelDescendants,forbiddenDescendants:["option","optgroup"]},output:{className:"HTMLOutputElement",contentModel:H.anyDescendants},p:{className:"HTMLParagraphElement",contentModel:H.noForbiddenFirstLevelDescendants,forbiddenDescendants:["address","article","aside","blockquote","details","dialog","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","menu","nav","ol","p","pre","section","table","ul"]},param:{className:"HTMLParamElement",contentModel:H.noDescendants},picture:{className:"HTMLPictureElement",contentModel:H.anyDescendants},pre:{className:"HTMLPreElement",contentModel:H.anyDescendants},progress:{className:"HTMLProgressElement",contentModel:H.anyDescendants},q:{className:"HTMLQuoteElement",contentModel:H.anyDescendants},rb:{className:"HTMLElement",contentModel:H.anyDescendants},rp:{className:"HTMLElement",contentModel:H.noForbiddenFirstLevelDescendants,forbiddenDescendants:["rp","rt"]},rt:{className:"HTMLElement",contentModel:H.noForbiddenFirstLevelDescendants,forbiddenDescendants:["rp","rt"]},rtc:{className:"HTMLElement",contentModel:H.anyDescendants},ruby:{className:"HTMLElement",contentModel:H.anyDescendants},s:{className:"HTMLElement",contentModel:H.anyDescendants},samp:{className:"HTMLElement",contentModel:H.anyDescendants},section:{className:"HTMLElement",contentModel:H.anyDescendants},select:{className:"HTMLSelectElement",contentModel:H.anyDescendants},small:{className:"HTMLElement",contentModel:H.anyDescendants},source:{className:"HTMLSourceElement",contentModel:H.noDescendants},span:{className:"HTMLSpanElement",contentModel:H.anyDescendants},strong:{className:"HTMLElement",contentModel:H.anyDescendants},sub:{className:"HTMLElement",contentModel:H.anyDescendants},summary:{className:"HTMLElement",contentModel:H.anyDescendants},sup:{className:"HTMLElement",contentModel:H.anyDescendants},table:{className:"HTMLTableElement",contentModel:H.permittedDescendants,permittedDescendants:["caption","colgroup","thead","tfoot","tbody"],moveForbiddenDescendant:{exclude:[]}},tbody:{className:"HTMLTableSectionElement",contentModel:H.permittedDescendants,permittedDescendants:["tr"],permittedParents:["table"],moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody"]}},td:{className:"HTMLTableCellElement",contentModel:H.noForbiddenFirstLevelDescendants,forbiddenDescendants:["td","th","tr","tbody","tfoot","thead"],permittedParents:["tr"]},tfoot:{className:"HTMLTableSectionElement",contentModel:H.permittedDescendants,permittedDescendants:["tr"],permittedParents:["table"],moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody"]}},th:{className:"HTMLTableCellElement",contentModel:H.noForbiddenFirstLevelDescendants,forbiddenDescendants:["td","th","tr","tbody","tfoot","thead"],permittedParents:["tr"]},thead:{className:"HTMLTableSectionElement",contentModel:H.permittedDescendants,permittedDescendants:["tr"],permittedParents:["table"],moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody"]}},time:{className:"HTMLTimeElement",contentModel:H.anyDescendants},title:{className:"HTMLTitleElement",contentModel:H.anyDescendants},tr:{className:"HTMLTableRowElement",contentModel:H.permittedDescendants,permittedDescendants:["td","th"],permittedParents:["tbody","tfoot","thead"],addPermittedParent:"tbody",moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody","tr"]}},track:{className:"HTMLTrackElement",contentModel:H.noDescendants},u:{className:"HTMLElement",contentModel:H.anyDescendants},ul:{className:"HTMLUListElement",contentModel:H.anyDescendants},var:{className:"HTMLElement",contentModel:H.anyDescendants},video:{className:"HTMLVideoElement",contentModel:H.anyDescendants},wbr:{className:"HTMLElement",contentModel:H.noDescendants}};var pA,uU=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),hA=(pA=String.fromCodePoint)!==null&&pA!==void 0?pA:(l=>{let e="";return l>65535&&(l-=65536,e+=String.fromCharCode(l>>>10&1023|55296),l=56320|l&1023),e+=String.fromCharCode(l),e});function cA(l){var e;return l>=55296&&l<=57343||l>1114111?65533:(e=uU.get(l))!==null&&e!==void 0?e:l}function kS(l){let e=typeof atob=="function"?atob(l):typeof Buffer.from=="function"?Buffer.from(l,"base64").toString("binary"):new Buffer(l,"base64").toString("binary"),t=e.length&-2,r=new Uint16Array(t/2);for(let o=0,i=0;o<t;o+=2){let n=e.charCodeAt(o),a=e.charCodeAt(o+1);r[i++]=n|a<<8}return r}var dA=kS("QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA+6D/IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xtbm9wcnN0dVQAWgBeAGUAaQBzAHcAfgCBAIQAhwCSAJoAoACsALMAbABpAGcAO4DGAMZAUAA7gCYAJkBjAHUAdABlADuAwQDBQHIiZXZlAAJhAAFpeW0AcgByAGMAO4DCAMJAEGRyAADgNdgE3XIAYQB2AGUAO4DAAMBA8CFoYZFj4SFjcgBhZAAAoFMqAAFncIsAjgBvAG4ABGFmAADgNdg43fAlbHlGdW5jdGlvbgCgYSBpAG4AZwA7gMUAxUAAAWNzpACoAHIAAOA12Jzc6SFnbgCgVCJpAGwAZABlADuAwwDDQG0AbAA7gMQAxEAABGFjZWZvcnN1xQDYANoA7QDxAPYA+QD8AAABY3LJAM8AayNzbGFzaAAAoBYidgHTANUAAKDnKmUAZAAAoAYjeQARZIABY3J0AOAA5QDrAGEidXNlAACgNSLuI291bGxpcwCgLCFhAJJjcgAA4DXYBd1wAGYAAOA12Dnd5SF2ZdhiYwDyAOoAbSJwZXEAAKBOIgAHSE9hY2RlZmhpbG9yc3UXARoBHwE6AVIBVQFiAWQBZgGCAakB6QHtAfIBYwB5ACdkUABZADuAqQCpQIABY3B5ACUBKAE1AfUhdGUGYWmg0iJ0KGFsRGlmZmVyZW50aWFsRAAAoEUhbCJleXMAAKAtIQACYWVpb0EBRAFKAU0B8iFvbgxhZABpAGwAO4DHAMdAcgBjAAhhbiJpbnQAAKAwIm8AdAAKYQABZG5ZAV0BaSJsbGEAuGB0I2VyRG90ALdg8gA5AWkAp2NyImNsZQAAAkRNUFRwAXQBeQF9AW8AdAAAoJkiaSJudXMAAKCWIuwhdXMAoJUiaSJtZXMAAKCXIm8AAAFjc4cBlAFrKndpc2VDb250b3VySW50ZWdyYWwAAKAyImUjQ3VybHkAAAFEUZwBpAFvJXVibGVRdW90ZQAAoB0gdSJvdGUAAKAZIAACbG5wdbABtgHNAdgBbwBuAGWgNyIAoHQqgAFnaXQAvAHBAcUB8iJ1ZW50AKBhIm4AdAAAoC8i7yV1ckludGVncmFsAKAuIgABZnLRAdMBAKACIe8iZHVjdACgECJuLnRlckNsb2Nrd2lzZUNvbnRvdXJJbnRlZ3JhbAAAoDMi7yFzcwCgLypjAHIAAOA12J7ccABDoNMiYQBwAACgTSKABURKU1phY2VmaW9zAAsCEgIVAhgCGwIsAjQCOQI9AnMCfwNvoEUh9CJyYWhkAKARKWMAeQACZGMAeQAFZGMAeQAPZIABZ3JzACECJQIoAuchZXIAoCEgcgAAoKEhaAB2AACg5CoAAWF5MAIzAvIhb24OYRRkbAB0oAciYQCUY3IAAOA12AfdAAFhZkECawIAAWNtRQJnAvIjaXRpY2FsAAJBREdUUAJUAl8CYwJjInV0ZQC0YG8AdAFZAloC2WJiJGxlQWN1dGUA3WJyImF2ZQBgYGkibGRlANxi7yFuZACgxCJmJWVyZW50aWFsRAAAoEYhcAR9AgAAAAAAAIECjgIAABoDZgAA4DXYO91EoagAhQKJAm8AdAAAoNwgcSJ1YWwAAKBQIuIhbGUAA0NETFJVVpkCqAK1Au8C/wIRA28AbgB0AG8AdQByAEkAbgB0AGUAZwByAGEA7ADEAW8AdAKvAgAAAACwAqhgbiNBcnJvdwAAoNMhAAFlb7kC0AJmAHQAgAFBUlQAwQLGAs0CciJyb3cAAKDQIekkZ2h0QXJyb3cAoNQhZQDlACsCbgBnAAABTFLWAugC5SFmdAABQVLcAuECciJyb3cAAKD4J+kkZ2h0QXJyb3cAoPon6SRnaHRBcnJvdwCg+SdpImdodAAAAUFU9gL7AnIicm93AACg0iFlAGUAAKCoInAAQQIGAwAAAAALA3Iicm93AACg0SFvJHduQXJyb3cAAKDVIWUlcnRpY2FsQmFyAACgJSJuAAADQUJMUlRhJAM2AzoDWgNxA3oDciJyb3cAAKGTIUJVLAMwA2EAcgAAoBMpcCNBcnJvdwAAoPUhciJldmUAEWPlIWZ00gJDAwAASwMAAFIDaSVnaHRWZWN0b3IAAKBQKWUkZVZlY3RvcgAAoF4p5SJjdG9yQqC9IWEAcgAAoFYpaSJnaHQA1AFiAwAAaQNlJGVWZWN0b3IAAKBfKeUiY3RvckKgwSFhAHIAAKBXKWUAZQBBoKQiciJyb3cAAKCnIXIAcgBvAPcAtAIAAWN0gwOHA3IAAOA12J/c8iFvaxBhAAhOVGFjZGZnbG1vcHFzdHV4owOlA6kDsAO/A8IDxgPNA9ID8gP9AwEEFAQeBCAEJQRHAEphSAA7gNAA0EBjAHUAdABlADuAyQDJQIABYWl5ALYDuQO+A/Ihb24aYXIAYwA7gMoAykAtZG8AdAAWYXIAAOA12AjdcgBhAHYAZQA7gMgAyEDlIm1lbnQAoAgiAAFhcNYD2QNjAHIAEmF0AHkAUwLhAwAAAADpA20lYWxsU3F1YXJlAACg+yVlJ3J5U21hbGxTcXVhcmUAAKCrJQABZ3D2A/kDbwBuABhhZgAA4DXYPN3zImlsb26VY3UAAAFhaQYEDgRsAFSgdSppImxkZQAAoEIi7CNpYnJpdW0AoMwhAAFjaRgEGwRyAACgMCFtAACgcyphAJdjbQBsADuAywDLQAABaXApBC0E8yF0cwCgAyLvJG5lbnRpYWxFAKBHIYACY2Zpb3MAPQQ/BEMEXQRyBHkAJGRyAADgNdgJ3WwibGVkAFMCTAQAAAAAVARtJWFsbFNxdWFyZQAAoPwlZSdyeVNtYWxsU3F1YXJlAACgqiVwA2UEAABpBAAAAABtBGYAAOA12D3dwSFsbACgACLyI2llcnRyZgCgMSFjAPIAcQQABkpUYWJjZGZnb3JzdIgEiwSOBJMElwSkBKcEqwStBLIE5QTqBGMAeQADZDuAPgA+QO0hbWFkoJMD3GNyImV2ZQAeYYABZWl5AJ0EoASjBOQhaWwiYXIAYwAcYRNkbwB0ACBhcgAA4DXYCt0AoNkicABmAADgNdg+3eUiYXRlcgADRUZHTFNUvwTIBM8E1QTZBOAEcSJ1YWwATKBlIuUhc3MAoNsidSRsbEVxdWFsAACgZyJyI2VhdGVyAACgoirlIXNzAKB3IuwkYW50RXF1YWwAoH4qaSJsZGUAAKBzImMAcgAA4DXYotwAoGsiAARBYWNmaW9zdfkE/QQFBQgFCwUTBSIFKwVSIkRjeQAqZAABY3QBBQQFZQBrAMdiXmDpIXJjJGFyAACgDCFsJWJlcnRTcGFjZQAAoAsh8AEYBQAAGwVmAACgDSHpJXpvbnRhbExpbmUAoAAlAAFjdCYFKAXyABIF8iFvayZhbQBwAEQBMQU5BW8AdwBuAEgAdQBtAPAAAAFxInVhbAAAoE8iAAdFSk9hY2RmZ21ub3N0dVMFVgVZBVwFYwVtBXAFcwV6BZAFtgXFBckFzQVjAHkAFWTsIWlnMmFjAHkAAWRjAHUAdABlADuAzQDNQAABaXlnBWwFcgBjADuAzgDOQBhkbwB0ADBhcgAAoBEhcgBhAHYAZQA7gMwAzEAAoREhYXB/BYsFAAFjZ4MFhQVyACphaSNuYXJ5SQAAoEghbABpAGUA8wD6AvQBlQUAAKUFZaAsIgABZ3KaBZ4F8iFhbACgKyLzI2VjdGlvbgCgwiJpI3NpYmxlAAABQ1SsBbEFbyJtbWEAAKBjIGkibWVzAACgYiCAAWdwdAC8Bb8FwwVvAG4ALmFmAADgNdhA3WEAmWNjAHIAAKAQIWkibGRlAChh6wHSBQAA1QVjAHkABmRsADuAzwDPQIACY2Zvc3UA4QXpBe0F8gX9BQABaXnlBegFcgBjADRhGWRyAADgNdgN3XAAZgAA4DXYQd3jAfcFAAD7BXIAAOA12KXc8iFjeQhk6yFjeQRkgANISmFjZm9zAAwGDwYSBhUGHQYhBiYGYwB5ACVkYwB5AAxk8CFwYZpjAAFleRkGHAbkIWlsNmEaZHIAAOA12A7dcABmAADgNdhC3WMAcgAA4DXYptyABUpUYWNlZmxtb3N0AD0GQAZDBl4GawZkB2gHcAd0B80H2gdjAHkACWQ7gDwAPECAAmNtbnByAEwGTwZSBlUGWwb1IXRlOWHiIWRhm2NnAACg6ifsI2FjZXRyZgCgEiFyAACgniGAAWFleQBkBmcGagbyIW9uPWHkIWlsO2EbZAABZnNvBjQHdAAABUFDREZSVFVWYXKABp4GpAbGBssG3AYDByEHwQIqBwABbnKEBowGZyVsZUJyYWNrZXQAAKDoJ/Ihb3cAoZAhQlKTBpcGYQByAACg5CHpJGdodEFycm93AKDGIWUjaWxpbmcAAKAII28A9QGqBgAAsgZiJWxlQnJhY2tldAAAoOYnbgDUAbcGAAC+BmUkZVZlY3RvcgAAoGEp5SJjdG9yQqDDIWEAcgAAoFkpbCJvb3IAAKAKI2kiZ2h0AAABQVbSBtcGciJyb3cAAKCUIeUiY3RvcgCgTikAAWVy4AbwBmUAAKGjIkFW5gbrBnIicm93AACgpCHlImN0b3IAoFopaSNhbmdsZQBCorIi+wYAAAAA/wZhAHIAAKDPKXEidWFsAACgtCJwAIABRFRWAAoHEQcYB+8kd25WZWN0b3IAoFEpZSRlVmVjdG9yAACgYCnlImN0b3JCoL8hYQByAACgWCnlImN0b3JCoLwhYQByAACgUilpAGcAaAB0AGEAcgByAG8A9wDMAnMAAANFRkdMU1Q/B0cHTgdUB1gHXwfxJXVhbEdyZWF0ZXIAoNoidSRsbEVxdWFsAACgZiJyI2VhdGVyAACgdiLlIXNzAKChKuwkYW50RXF1YWwAoH0qaSJsZGUAAKByInIAAOA12A/dZaDYIuYjdGFycm93AKDaIWkiZG90AD9hgAFucHcAege1B7kHZwAAAkxSbHKCB5QHmwerB+UhZnQAAUFSiAeNB3Iicm93AACg9SfpJGdodEFycm93AKD3J+kkZ2h0QXJyb3cAoPYn5SFmdAABYXLcAqEHaQBnAGgAdABhAHIAcgBvAPcA5wJpAGcAaAB0AGEAcgByAG8A9wDuAmYAAOA12EPdZQByAAABTFK/B8YHZSRmdEFycm93AACgmSHpJGdodEFycm93AKCYIYABY2h0ANMH1QfXB/IAWgYAoLAh8iFva0FhAKBqIgAEYWNlZmlvc3XpB+wH7gf/BwMICQgOCBEIcAAAoAUpeQAcZAABZGzyB/kHaSR1bVNwYWNlAACgXyBsI2ludHJmAACgMyFyAADgNdgQ3e4jdXNQbHVzAKATInAAZgAA4DXYRN1jAPIA/gecY4AESmFjZWZvc3R1ACEIJAgoCDUIgQiFCDsKQApHCmMAeQAKZGMidXRlAENhgAFhZXkALggxCDQI8iFvbkdh5CFpbEVhHWSAAWdzdwA7CGEIfQjhInRpdmWAAU1UVgBECEwIWQhlJWRpdW1TcGFjZQAAoAsgaABpAAABY25SCFMIawBTAHAAYQBjAOUASwhlAHIAeQBUAGgAaQDuAFQI9CFlZAABR0xnCHUIcgBlAGEAdABlAHIARwByAGUAYQB0AGUA8gDrBGUAcwBzAEwAZQBzAPMA2wdMImluZQAKYHIAAOA12BHdAAJCbnB0jAiRCJkInAhyImVhawAAoGAgwiZyZWFraW5nU3BhY2WgYGYAAKAVIUOq7CqzCMIIzQgAAOcIGwkAAAAAAAAtCQAAbwkAAIcJAACdCcAJGQoAADQKAAFvdbYIvAjuI2dydWVudACgYiJwIkNhcAAAoG0ibyh1YmxlVmVydGljYWxCYXIAAKAmIoABbHF4ANII1wjhCOUibWVudACgCSL1IWFsVKBgImkibGRlAADgQiI4A2kic3RzAACgBCJyI2VhdGVyAACjbyJFRkdMU1T1CPoIAgkJCQ0JFQlxInVhbAAAoHEidSRsbEVxdWFsAADgZyI4A3IjZWF0ZXIAAOBrIjgD5SFzcwCgeSLsJGFudEVxdWFsAOB+KjgDaSJsZGUAAKB1IvUhbXBEASAJJwnvI3duSHVtcADgTiI4A3EidWFsAADgTyI4A2UAAAFmczEJRgn0JFRyaWFuZ2xlQqLqIj0JAAAAAEIJYQByAADgzyk4A3EidWFsAACg7CJzAICibiJFR0xTVABRCVYJXAlhCWkJcSJ1YWwAAKBwInIjZWF0ZXIAAKB4IuUhc3MA4GoiOAPsJGFudEVxdWFsAOB9KjgDaSJsZGUAAKB0IuUic3RlZAABR0x1CX8J8iZlYXRlckdyZWF0ZXIA4KIqOAPlI3NzTGVzcwDgoSo4A/IjZWNlZGVzAKGAIkVTjwmVCXEidWFsAADgryo4A+wkYW50RXF1YWwAoOAiAAFlaaAJqQl2JmVyc2VFbGVtZW50AACgDCLnJWh0VHJpYW5nbGVCousitgkAAAAAuwlhAHIAAODQKTgDcSJ1YWwAAKDtIgABcXXDCeAJdSNhcmVTdQAAAWJwywnVCfMhZXRF4I8iOANxInVhbAAAoOIi5SJyc2V0ReCQIjgDcSJ1YWwAAKDjIoABYmNwAOYJ8AkNCvMhZXRF4IIi0iBxInVhbAAAoIgi4yJlZWRzgKGBIkVTVAD6CQAKBwpxInVhbAAA4LAqOAPsJGFudEVxdWFsAKDhImkibGRlAADgfyI4A+UicnNldEXggyLSIHEidWFsAACgiSJpImxkZQCAoUEiRUZUACIKJwouCnEidWFsAACgRCJ1JGxsRXF1YWwAAKBHImkibGRlAACgSSJlJXJ0aWNhbEJhcgAAoCQiYwByAADgNdip3GkAbABkAGUAO4DRANFAnWMAB0VhY2RmZ21vcHJzdHV2XgphCmgKcgp2CnoKgQqRCpYKqwqtCrsKyArNCuwhaWdSYWMAdQB0AGUAO4DTANNAAAFpeWwKcQpyAGMAO4DUANRAHmRiImxhYwBQYXIAAOA12BLdcgBhAHYAZQA7gNIA0kCAAWFlaQCHCooKjQpjAHIATGFnAGEAqWNjInJvbgCfY3AAZgAA4DXYRt3lI25DdXJseQABRFGeCqYKbyV1YmxlUXVvdGUAAKAcIHUib3RlAACgGCAAoFQqAAFjbLEKtQpyAADgNdiq3GEAcwBoADuA2ADYQGkAbAHACsUKZABlADuA1QDVQGUAcwAAoDcqbQBsADuA1gDWQGUAcgAAAUJQ0wrmCgABYXLXCtoKcgAAoD4gYQBjAAABZWvgCuIKAKDeI2UAdAAAoLQjYSVyZW50aGVzaXMAAKDcI4AEYWNmaGlsb3JzAP0KAwsFCwkLCwsMCxELIwtaC3IjdGlhbEQAAKACInkAH2RyAADgNdgT3WkApmOgY/Ujc01pbnVzsWAAAWlwFQsgC24AYwBhAHIAZQBwAGwAYQBuAOUACgVmAACgGSGAobsqZWlvACoLRQtJC+MiZWRlc4CheiJFU1QANAs5C0ALcSJ1YWwAAKCvKuwkYW50RXF1YWwAoHwiaSJsZGUAAKB+Im0AZQAAoDMgAAFkcE0LUQv1IWN0AKAPIm8jcnRpb24AYaA3ImwAAKAdIgABY2leC2ILcgAA4DXYq9yoYwACVWZvc2oLbwtzC3cLTwBUADuAIgAiQHIAAOA12BTdcABmAACgGiFjAHIAAOA12KzcAAZCRWFjZWZoaW9yc3WPC5MLlwupC7YL2AvbC90LhQyTDJoMowzhIXJyAKAQKUcAO4CuAK5AgAFjbnIAnQugC6ML9SF0ZVRhZwAAoOsncgB0oKAhbAAAoBYpgAFhZXkArwuyC7UL8iFvblhh5CFpbFZhIGR2oBwhZSJyc2UAAAFFVb8LzwsAAWxxwwvIC+UibWVudACgCyL1JGlsaWJyaXVtAKDLIXAmRXF1aWxpYnJpdW0AAKBvKXIAAKAcIW8AoWPnIWh0AARBQ0RGVFVWYewLCgwQDDIMNwxeDHwM9gIAAW5y8Av4C2clbGVCcmFja2V0AACg6SfyIW93AKGSIUJM/wsDDGEAcgAAoOUhZSRmdEFycm93AACgxCFlI2lsaW5nAACgCSNvAPUBFgwAAB4MYiVsZUJyYWNrZXQAAKDnJ24A1AEjDAAAKgxlJGVWZWN0b3IAAKBdKeUiY3RvckKgwiFhAHIAAKBVKWwib29yAACgCyMAAWVyOwxLDGUAAKGiIkFWQQxGDHIicm93AACgpiHlImN0b3IAoFspaSNhbmdsZQBCorMiVgwAAAAAWgxhAHIAAKDQKXEidWFsAACgtSJwAIABRFRWAGUMbAxzDO8kd25WZWN0b3IAoE8pZSRlVmVjdG9yAACgXCnlImN0b3JCoL4hYQByAACgVCnlImN0b3JCoMAhYQByAACgUykAAXB1iQyMDGYAAKAdIe4kZEltcGxpZXMAoHAp6SRnaHRhcnJvdwCg2yEAAWNongyhDHIAAKAbIQCgsSHsJGVEZWxheWVkAKD0KYAGSE9hY2ZoaW1vcXN0dQC/DMgMzAzQDOIM5gwKDQ0NFA0ZDU8NVA1YDQABQ2PDDMYMyCFjeSlkeQAoZEYiVGN5ACxkYyJ1dGUAWmEAorwqYWVpedgM2wzeDOEM8iFvbmBh5CFpbF5hcgBjAFxhIWRyAADgNdgW3e8hcnQAAkRMUlXvDPYM/QwEDW8kd25BcnJvdwAAoJMhZSRmdEFycm93AACgkCHpJGdodEFycm93AKCSIXAjQXJyb3cAAKCRIechbWGjY+EkbGxDaXJjbGUAoBgicABmAADgNdhK3XICHw0AAAAAIg10AACgGiLhIXJlgKGhJUlTVQAqDTINSg3uJXRlcnNlY3Rpb24AoJMidQAAAWJwNw1ADfMhZXRFoI8icSJ1YWwAAKCRIuUicnNldEWgkCJxInVhbAAAoJIibiJpb24AAKCUImMAcgAA4DXYrtxhAHIAAKDGIgACYmNtcF8Nag2ODZANc6DQImUAdABFoNAicSJ1YWwAAKCGIgABY2huDYkNZSJlZHMAgKF7IkVTVAB4DX0NhA1xInVhbAAAoLAq7CRhbnRFcXVhbACgfSJpImxkZQAAoH8iVABoAGEA9ADHCwCgESIAodEiZXOVDZ8NciJzZXQARaCDInEidWFsAACghyJlAHQAAKDRIoAFSFJTYWNmaGlvcnMAtQ27Db8NyA3ODdsN3w3+DRgOHQ4jDk8AUgBOADuA3gDeQMEhREUAoCIhAAFIY8MNxg1jAHkAC2R5ACZkAAFidcwNzQ0JYKRjgAFhZXkA1A3XDdoN8iFvbmRh5CFpbGJhImRyAADgNdgX3QABZWnjDe4N8gHoDQAA7Q3lImZvcmUAoDQiYQCYYwABY27yDfkNayNTcGFjZQAA4F8gCiDTInBhY2UAoAkg7CFkZYChPCJFRlQABw4MDhMOcSJ1YWwAAKBDInUkbGxFcXVhbAAAoEUiaSJsZGUAAKBIInAAZgAA4DXYS93pI3BsZURvdACg2yAAAWN0Jw4rDnIAAOA12K/c8iFva2Zh4QpFDlYOYA5qDgAAbg5yDgAAAAAAAAAAAAB5DnwOqA6zDgAADg8RDxYPGg8AAWNySA5ODnUAdABlADuA2gDaQHIAb6CfIeMhaXIAoEkpcgDjAVsOAABdDnkADmR2AGUAbGEAAWl5Yw5oDnIAYwA7gNsA20AjZGIibGFjAHBhcgAA4DXYGN1yAGEAdgBlADuA2QDZQOEhY3JqYQABZGl/Dp8OZQByAAABQlCFDpcOAAFhcokOiw5yAF9gYQBjAAABZWuRDpMOAKDfI2UAdAAAoLUjYSVyZW50aGVzaXMAAKDdI28AbgBQoMMi7CF1cwCgjiIAAWdwqw6uDm8AbgByYWYAAOA12EzdAARBREVUYWRwc78O0g7ZDuEOBQPqDvMOBw9yInJvdwDCoZEhyA4AAMwOYQByAACgEilvJHduQXJyb3cAAKDFIW8kd25BcnJvdwAAoJUhcSV1aWxpYnJpdW0AAKBuKWUAZQBBoKUiciJyb3cAAKClIW8AdwBuAGEAcgByAG8A9wAQA2UAcgAAAUxS+Q4AD2UkZnRBcnJvdwAAoJYh6SRnaHRBcnJvdwCglyFpAGyg0gNvAG4ApWPpIW5nbmFjAHIAAOA12LDcaSJsZGUAaGFtAGwAO4DcANxAgAREYmNkZWZvc3YALQ8xDzUPNw89D3IPdg97D4AP4SFzaACgqyJhAHIAAKDrKnkAEmThIXNobKCpIgCg5ioAAWVyQQ9DDwCgwSKAAWJ0eQBJD00Paw9hAHIAAKAWIGmgFiDjIWFsAAJCTFNUWA9cD18PZg9hAHIAAKAjIukhbmV8YGUkcGFyYXRvcgAAoFgnaSJsZGUAAKBAItQkaGluU3BhY2UAoAogcgAA4DXYGd1wAGYAAOA12E3dYwByAADgNdix3GQiYXNoAACgqiKAAmNlZm9zAI4PkQ+VD5kPng/pIXJjdGHkIWdlAKDAInIAAOA12BrdcABmAADgNdhO3WMAcgAA4DXYstwAAmZpb3OqD64Prw+0D3IAAOA12BvdnmNwAGYAAOA12E/dYwByAADgNdiz3IAEQUlVYWNmb3N1AMgPyw/OD9EP2A/gD+QP6Q/uD2MAeQAvZGMAeQAHZGMAeQAuZGMAdQB0AGUAO4DdAN1AAAFpedwP3w9yAGMAdmErZHIAAOA12BzdcABmAADgNdhQ3WMAcgAA4DXYtNxtAGwAeGEABEhhY2RlZm9z/g8BEAUQDRAQEB0QIBAkEGMAeQAWZGMidXRlAHlhAAFheQkQDBDyIW9ufWEXZG8AdAB7YfIBFRAAABwQbwBXAGkAZAB0AOgAVAhhAJZjcgAAoCghcABmAACgJCFjAHIAAOA12LXc4QtCEEkQTRAAAGcQbRByEAAAAAAAAAAAeRCKEJcQ8hD9EAAAGxEhETIROREAAD4RYwB1AHQAZQA7gOEA4UByImV2ZQADYYCiPiJFZGl1eQBWEFkQWxBgEGUQAOA+IjMDAKA/InIAYwA7gOIA4kB0AGUAO4C0ALRAMGRsAGkAZwA7gOYA5kByoGEgAOA12B7dcgBhAHYAZQA7gOAA4EAAAWVwfBCGEAABZnCAEIQQ8yF5bQCgNSHoAIMQaABhALFjAAFhcI0QWwAAAWNskRCTEHIAAWFnAACgPypkApwQAAAAALEQAKInImFkc3ajEKcQqRCuEG4AZAAAoFUqAKBcKmwib3BlAACgWCoAoFoqAKMgImVsbXJzersQvRDAEN0Q5RDtEACgpCllAACgICJzAGQAYaAhImEEzhDQENIQ1BDWENgQ2hDcEACgqCkAoKkpAKCqKQCgqykAoKwpAKCtKQCgrikAoK8pdAB2oB8iYgBkoL4iAKCdKQABcHTpEOwQaAAAoCIixWDhIXJyAKB8IwABZ3D1EPgQbwBuAAVhZgAA4DXYUt0Ao0giRWFlaW9wBxEJEQ0RDxESERQRAKBwKuMhaXIAoG8qAKBKImQAAKBLInMAJ2DyIW94ZaBIIvEADhFpAG4AZwA7gOUA5UCAAWN0eQAmESoRKxFyAADgNdi23CpgbQBwAGWgSCLxAPgBaQBsAGQAZQA7gOMA40BtAGwAO4DkAORAAAFjaUERRxFvAG4AaQBuAPQA6AFuAHQAAKARKgAITmFiY2RlZmlrbG5vcHJzdWQRaBGXEZ8RpxGrEdIR1hErEjASexKKEn0RThNbE3oTbwB0AACg7SoAAWNybBGJEWsAAAJjZXBzdBF4EX0RghHvIW5nAKBMInAjc2lsb24A9mNyImltZQAAoDUgaQBtAGWgPSJxAACgzSJ2AY0RkRFlAGUAAKC9ImUAZABnoAUjZQAAoAUjcgBrAHSgtSPiIXJrAKC2IwABb3mjEaYRbgDnAHcRMWTxIXVvAKAeIIACY21wcnQAtBG5Eb4RwRHFEeEhdXPloDUi5ABwInR5dgAAoLApcwDpAH0RbgBvAPUA6gCAAWFodwDLEcwRzhGyYwCgNiHlIWVuAKBsInIAAOA12B/dZwCAA2Nvc3R1dncA4xHyEQUSEhIhEiYSKRKAAWFpdQDpEesR7xHwAKMFcgBjAACg7yVwAACgwyKAAWRwdAD4EfwRABJvAHQAAKAAKuwhdXMAoAEqaSJtZXMAAKACKnECCxIAAAAADxLjIXVwAKAGKmEAcgAAoAUm8iNpYW5nbGUAAWR1GhIeEu8hd24AoL0lcAAAoLMlcCJsdXMAAKAEKmUA5QBCD+UAkg9hInJvdwAAoA0pgAFha28ANhJoEncSAAFjbjoSZRJrAIABbHN0AEESRxJNEm8jemVuZ2UAAKDrKXEAdQBhAHIA5QBcBPIjaWFuZ2xlgKG0JWRscgBYElwSYBLvIXduAKC+JeUhZnQAoMIlaSJnaHQAAKC4JWsAAKAjJLEBbRIAAHUSsgFxEgAAcxIAoJIlAKCRJTQAAKCTJWMAawAAoIglAAFlb38ShxJx4D0A5SD1IWl2AOBhIuUgdAAAoBAjAAJwdHd4kRKVEpsSnxJmAADgNdhT3XSgpSJvAG0AAKClIvQhaWUAoMgiAAZESFVWYmRobXB0dXayEsES0RLgEvcS+xIKExoTHxMjEygTNxMAAkxSbHK5ErsSvRK/EgCgVyUAoFQlAKBWJQCgUyUAolAlRFVkdckSyxLNEs8SAKBmJQCgaSUAoGQlAKBnJQACTFJsctgS2hLcEt4SAKBdJQCgWiUAoFwlAKBZJQCjUSVITFJobHLrEu0S7xLxEvMS9RIAoGwlAKBjJQCgYCUAoGslAKBiJQCgXyVvAHgAAKDJKQACTFJscgITBBMGEwgTAKBVJQCgUiUAoBAlAKAMJQCiACVEVWR1EhMUExYTGBMAoGUlAKBoJQCgLCUAoDQlaSJudXMAAKCfIuwhdXMAoJ4iaSJtZXMAAKCgIgACTFJsci8TMRMzEzUTAKBbJQCgWCUAoBglAKAUJQCjAiVITFJobHJCE0QTRhNIE0oTTBMAoGolAKBhJQCgXiUAoDwlAKAkJQCgHCUAAWV2UhNVE3YA5QD5AGIAYQByADuApgCmQAACY2Vpb2ITZhNqE24TcgAA4DXYt9xtAGkAAKBPIG0A5aA9IogRbAAAoVwAYmh0E3YTAKDFKfMhdWIAoMgnbAF+E4QTbABloCIgdAAAoCIgcAAAoU4iRWWJE4sTAKCuKvGgTyI8BeEMqRMAAN8TABQDFB8UAAAjFDQUAAAAAIUUAAAAAI0UAAAAANcU4xT3FPsUAACIFQAAlhWAAWNwcgCuE7ET1RP1IXRlB2GAoikiYWJjZHMAuxO/E8QTzhPSE24AZAAAoEQqciJjdXAAAKBJKgABYXXIE8sTcAAAoEsqcAAAoEcqbwB0AACgQCoA4CkiAP4AAWVv2RPcE3QAAKBBIO4ABAUAAmFlaXXlE+8T9RP4E/AB6hMAAO0TcwAAoE0qbwBuAA1hZABpAGwAO4DnAOdAcgBjAAlhcABzAHOgTCptAACgUCpvAHQAC2GAAWRtbgAIFA0UEhRpAGwAO4C4ALhAcCJ0eXYAAKCyKXQAAIGiADtlGBQZFKJAcgBkAG8A9ABiAXIAAOA12CDdgAFjZWkAKBQqFDIUeQBHZGMAawBtoBMn4SFyawCgEyfHY3IAAKPLJUVjZWZtcz8UQRRHFHcUfBSAFACgwykAocYCZWxGFEkUcQAAoFciZQBhAlAUAAAAAGAUciJyb3cAAAFsclYUWhTlIWZ0AKC6IWkiZ2h0AACguyGAAlJTYWNkAGgUaRRrFG8UcxSuYACgyCRzAHQAAKCbIukhcmMAoJoi4SFzaACgnSJuImludAAAoBAqaQBkAACg7yrjIWlyAKDCKfUhYnN1oGMmaQB0AACgYybsApMUmhS2FAAAwxRvAG4AZaA6APGgVCKrAG0CnxQAAAAAoxRhAHSgLABAYAChASJmbKcUqRTuABMNZQAAAW14rhSyFOUhbnQAoAEiZQDzANIB5wG6FAAAwBRkoEUibwB0AACgbSpuAPQAzAGAAWZyeQDIFMsUzhQA4DXYVN1vAOQA1wEAgakAO3MeAdMUcgAAoBchAAFhb9oU3hRyAHIAAKC1IXMAcwAAoBcnAAFjdeYU6hRyAADgNdi43AABYnDuFPIUZaDPKgCg0SploNAqAKDSKuQhb3QAoO8igANkZWxwcnZ3AAYVEBUbFSEVRBVlFYQV4SFycgABbHIMFQ4VAKA4KQCgNSlwAhYVAAAAABkVcgAAoN4iYwAAoN8i4SFycnCgtiEAoD0pgKIqImJjZG9zACsVMBU6FT4VQRVyImNhcAAAoEgqAAFhdTQVNxVwAACgRipwAACgSipvAHQAAKCNInIAAKBFKgDgKiIA/gACYWxydksVURVuFXMVcgByAG2gtyEAoDwpeQCAAWV2dwBYFWUVaRVxAHACXxUAAAAAYxVyAGUA4wAXFXUA4wAZFWUAZQAAoM4iZSJkZ2UAAKDPImUAbgA7gKQApEBlI2Fycm93AAABbHJ7FX8V5SFmdACgtiFpImdodAAAoLchZQDkAG0VAAFjaYsVkRVvAG4AaQBuAPQAkwFuAHQAAKAxImwiY3R5AACgLSOACUFIYWJjZGVmaGlqbG9yc3R1d3oAuBW7Fb8V1RXgFegV+RUKFhUWHxZUFlcWZRbFFtsW7xb7FgUXChdyAPIAtAJhAHIAAKBlKQACZ2xyc8YVyhXOFdAV5yFlcgCgICDlIXRoAKA4IfIA9QxoAHagECAAoKMiawHZFd4VYSJyb3cAAKAPKWEA4wBfAgABYXnkFecV8iFvbg9hNGQAoUYhYW/tFfQVAAFnciEC8RVyAACgyiF0InNlcQAAoHcqgAFnbG0A/xUCFgUWO4CwALBAdABhALRjcCJ0eXYAAKCxKQABaXIOFhIW8yFodACgfykA4DXYId1hAHIAAAFschsWHRYAoMMhAKDCIYACYWVnc3YAKBauAjYWOhY+Fm0AAKHEIm9zLhY0Fm4AZABzoMQi9SFpdACgZiZhIm1tYQDdY2kAbgAAoPIiAKH3AGlvQxZRFmQAZQAAgfcAO29KFksW90BuI3RpbWVzAACgxyJuAPgAUBZjAHkAUmRjAG8CXhYAAAAAYhZyAG4AAKAeI28AcAAAoA0jgAJscHR1dwBuFnEWdRaSFp4W7CFhciRgZgAA4DXYVd0AotkCZW1wc30WhBaJFo0WcQBkoFAibwB0AACgUSJpIm51cwAAoDgi7CF1cwCgFCLxInVhcmUAoKEiYgBsAGUAYgBhAHIAdwBlAGQAZwDlANcAbgCAAWFkaAClFqoWtBZyAHIAbwD3APUMbwB3AG4AYQByAHIAbwB3APMA8xVhI3Jwb29uAAABbHK8FsAWZQBmAPQAHBZpAGcAaAD0AB4WYgHJFs8WawBhAHIAbwD3AJILbwLUFgAAAADYFnIAbgAAoB8jbwBwAACgDCOAAWNvdADhFukW7BYAAXJ55RboFgDgNdi53FVkbAAAoPYp8iFvaxFhAAFkcvMW9xZvAHQAAKDxImkA5qC/JVsSAAFhaP8WAhdyAPIANQNhAPIA1wvhIm5nbGUAoKYpAAFjaQ4XEBd5AF9k5yJyYXJyAKD/JwAJRGFjZGVmZ2xtbm9wcXJzdHV4MRc4F0YXWxcyBF4XaRd5F40XrBe0F78X2RcVGCEYLRg1GEAYAAFEbzUXgRZvAPQA+BUAAWNzPBdCF3UAdABlADuA6QDpQPQhZXIAoG4qAAJhaW95TRdQF1YXWhfyIW9uG2FyAGOgViI7gOoA6kDsIW9uAKBVIk1kbwB0ABdhAAFEcmIXZhdvAHQAAKBSIgDgNdgi3XKhmipuF3QXYQB2AGUAO4DoAOhAZKCWKm8AdAAAoJgqgKGZKmlscwCAF4UXhxfuInRlcnMAoOcjAKATIWSglSpvAHQAAKCXKoABYXBzAJMXlheiF2MAcgATYXQAeQBzogUinxcAAAAAoRdlAHQAAKAFInAAMaADIDMBqRerFwCgBCAAoAUgAAFnc7AXsRdLYXAAAKACIAABZ3C4F7sXbwBuABlhZgAA4DXYVt2AAWFscwDFF8sXzxdyAHOg1SJsAACg4yl1AHMAAKBxKmkAAKG1A2x21RfYF28AbgC1Y/VjAAJjc3V24BfoF/0XEBgAAWlv5BdWF3IAYwAAoFYiaQLuFwAAAADwF+0ADQThIW50AAFnbPUX+Rd0AHIAAKCWKuUhc3MAoJUqgAFhZWkAAxgGGAoYbABzAD1gcwB0AACgXyJ2AESgYSJEAACgeCrwImFyc2wAoOUpAAFEYRkYHRhvAHQAAKBTInIAcgAAoHEpgAFjZGkAJxgqGO0XcgAAoC8hbwD0AIwCAAFhaDEYMhi3YzuA8ADwQAABbXI5GD0YbAA7gOsA60BvAACgrCCAAWNpcABGGEgYSxhsACFgcwD0ACwEAAFlb08YVxhjAHQAYQB0AGkAbwDuABoEbgBlAG4AdABpAGEAbADlADME4Ql1GAAAgRgAAIMYiBgAAAAAoRilGAAAqhgAALsYvhjRGAAA1xgnGWwAbABpAG4AZwBkAG8AdABzAGUA8QBlF3kARGRtImFsZQAAoEAmgAFpbHIAjRiRGJ0Y7CFpZwCgA/tpApcYAAAAAJoYZwAAoAD7aQBnAACgBPsA4DXYI93sIWlnAKAB++whaWcA4GYAagCAAWFsdACvGLIYthh0AACgbSZpAGcAAKAC+24AcwAAoLElbwBmAJJh8AHCGAAAxhhmAADgNdhX3QABYWvJGMwYbADsAGsEdqDUIgCg2SphI3J0aW50AACgDSoAAWFv2hgiGQABY3PeGB8ZsQPnGP0YBRkSGRUZAAAdGbID7xjyGPQY9xj5GAAA+xg7gL0AvUAAoFMhO4C8ALxAAKBVIQCgWSEAoFshswEBGQAAAxkAoFQhAKBWIbQCCxkOGQAAAAAQGTuAvgC+QACgVyEAoFwhNQAAoFghtgEZGQAAGxkAoFohAKBdITgAAKBeIWwAAKBEIHcAbgAAoCIjYwByAADgNdi73IAIRWFiY2RlZmdpamxub3JzdHYARhlKGVoZXhlmGWkZkhmWGZkZnRmgGa0ZxhnLGc8Z4BkjGmygZyIAoIwqgAFjbXAAUBlTGVgZ9SF0ZfVhbQBhAOSgswM6FgCghipyImV2ZQAfYQABaXliGWUZcgBjAB1hM2RvAHQAIWGAoWUibHFzAMYEcBl6GfGhZSLOBAAAdhlsAGEAbgD0AN8EgKF+KmNkbACBGYQZjBljAACgqSpvAHQAb6CAKmyggioAoIQqZeDbIgD+cwAAoJQqcgAA4DXYJN3noGsirATtIWVsAKA3IWMAeQBTZIChdyJFYWoApxmpGasZAKCSKgCgpSoAoKQqAAJFYWVztBm2Gb0ZwhkAoGkicABwoIoq8iFveACgiipxoIgq8aCIKrUZaQBtAACg5yJwAGYAAOA12FjdYQB2AOUAYwIAAWNp0xnWGXIAAKAKIW0AAKFzImVs3BneGQCgjioAoJAqAIM+ADtjZGxxco0E6xn0GfgZ/BkBGgABY2nvGfEZAKCnKnIAAKB6Km8AdAAAoNci0CFhcgCglSl1ImVzdAAAoHwqgAJhZGVscwAKGvQZFhrVBCAa8AEPGgAAFBpwAHIAbwD4AFkZcgAAoHgpcQAAAWxxxAQbGmwAZQBzAPMASRlpAO0A5AQAAWVuJxouGnIjdG5lcXEAAOBpIgD+xQAsGgAFQWFiY2Vma29zeUAaQxpmGmoabRqDGocalhrCGtMacgDyAMwCAAJpbG1yShpOGlAaVBpyAHMA8ABxD2YAvWBpAGwA9AASBQABZHJYGlsaYwB5AEpkAKGUIWN3YBpkGmkAcgAAoEgpAKCtIWEAcgAAoA8h6SFyYyVhgAFhbHIAcxp7Gn8a8iF0c3WgZSZpAHQAAKBlJuwhaXAAoCYg4yFvbgCguSJyAADgNdgl3XMAAAFld4wakRphInJvdwAAoCUpYSJyb3cAAKAmKYACYW1vcHIAnxqjGqcauhq+GnIAcgAAoP8h9CFodACgOyJrAAABbHKsGrMaZSRmdGFycm93AACgqSHpJGdodGFycm93AKCqIWYAAOA12Fnd4iFhcgCgFSCAAWNsdADIGswa0BpyAADgNdi93GEAcwDoAGka8iFvaydhAAFicNca2xr1IWxsAKBDIOghZW4AoBAg4Qr2GgAA/RoAAAgbExsaGwAAIRs7GwAAAAA+G2IbmRuVG6sbAACyG80b0htjAHUAdABlADuA7QDtQAChYyBpeQEbBhtyAGMAO4DuAO5AOGQAAWN4CxsNG3kANWRjAGwAO4ChAKFAAAFmcssCFhsA4DXYJt1yAGEAdgBlADuA7ADsQIChSCFpbm8AJxsyGzYbAAFpbisbLxtuAHQAAKAMKnQAAKAtIuYhaW4AoNwpdABhAACgKSHsIWlnM2GAAWFvcABDG1sbXhuAAWNndABJG0sbWRtyACthgAFlbHAAcQVRG1UbaQBuAOUAyAVhAHIA9AByBWgAMWFmAACgtyJlAGQAtWEAoggiY2ZvdGkbbRt1G3kb4SFyZQCgBSFpAG4AdKAeImkAZQAAoN0pZABvAPQAWxsAoisiY2VscIEbhRuPG5QbYQBsAACguiIAAWdyiRuNG2UAcgDzACMQ4wCCG2EicmhrAACgFyryIW9kAKA8KgACY2dwdJ8boRukG6gbeQBRZG8AbgAvYWYAAOA12FrdYQC5Y3UAZQBzAHQAO4C/AL9AAAFjabUbuRtyAADgNdi+3G4AAKIIIkVkc3bCG8QbyBvQAwCg+SJvAHQAAKD1Inag9CIAoPMiaaBiIOwhZGUpYesB1hsAANkbYwB5AFZkbAA7gO8A70AAA2NmbW9zdeYb7hvyG/Ub+hsFHAABaXnqG+0bcgBjADVhOWRyAADgNdgn3eEhdGg3YnAAZgAA4DXYW93jAf8bAAADHHIAAOA12L/c8iFjeVhk6yFjeVRkAARhY2ZnaGpvcxUcGhwiHCYcKhwtHDAcNRzwIXBhdqC6A/BjAAFleR4cIRzkIWlsN2E6ZHIAAOA12CjdciJlZW4AOGFjAHkARWRjAHkAXGRwAGYAAOA12FzdYwByAADgNdjA3IALQUJFSGFiY2RlZmdoamxtbm9wcnN0dXYAXhxtHHEcdRx5HN8cBx0dHTwd3B3tHfEdAR4EHh0eLB5FHrwewx7hHgkfPR9LH4ABYXJ0AGQcZxxpHHIA8gBvB/IAxQLhIWlsAKAbKeEhcnIAoA4pZ6BmIgCgiyphAHIAAKBiKWMJjRwAAJAcAACVHAAAAAAAAAAAAACZHJwcAACmHKgcrRwAANIc9SF0ZTph7SJwdHl2AKC0KXIAYQDuAFoG4iFkYbtjZwAAoegnZGyhHKMcAKCRKeUAiwYAoIUqdQBvADuAqwCrQHIAgKOQIWJmaGxwc3QAuhy/HMIcxBzHHMoczhxmoOQhcwAAoB8pcwAAoB0p6wCyGnAAAKCrIWwAAKA5KWkAbQAAoHMpbAAAoKIhAKGrKmFl1hzaHGkAbAAAoBkpc6CtKgDgrSoA/oABYWJyAOUc6RztHHIAcgAAoAwpcgBrAACgcicAAWFr8Rz4HGMAAAFla/Yc9xx7YFtgAAFlc/wc/hwAoIspbAAAAWR1Ax0FHQCgjykAoI0pAAJhZXV5Dh0RHRodHB3yIW9uPmEAAWRpFR0YHWkAbAA8YewAowbiAPccO2QAAmNxcnMkHScdLB05HWEAAKA2KXUAbwDyoBwgqhEAAWR1MB00HeghYXIAoGcpcyJoYXIAAKBLKWgAAKCyIQCiZCJmZ3FzRB1FB5Qdnh10AIACYWhscnQATh1WHWUdbB2NHXIicm93AHSgkCFhAOkAzxxhI3Jwb29uAAABZHVeHWId7yF3bgCgvSFwAACgvCHlJGZ0YXJyb3dzAKDHIWkiZ2h0AIABYWhzAHUdex2DHXIicm93APOglCGdBmEAcgBwAG8AbwBuAPMAzgtxAHUAaQBnAGEAcgByAG8A9wBlGugkcmVldGltZXMAoMsi8aFkIk0HAACaHWwAYQBuAPQAXgcAon0qY2Rnc6YdqR2xHbcdYwAAoKgqbwB0AG+gfypyoIEqAKCDKmXg2iIA/nMAAKCTKoACYWRlZ3MAwB3GHcod1h3ZHXAAcAByAG8A+ACmHG8AdAAAoNYicQAAAWdxzx3SHXQA8gBGB2cAdADyAHQcdADyAFMHaQDtAGMHgAFpbHIA4h3mHeod8yFodACgfClvAG8A8gDKBgDgNdgp3UWgdiIAoJEqYQH1Hf4dcgAAAWR1YB35HWygvCEAoGopbABrAACghCVjAHkAWWQAomoiYWNodAweDx4VHhkecgDyAGsdbwByAG4AZQDyAGAW4SFyZACgaylyAGkAAKD6JQABaW8hHiQe5CFvdEBh9SFzdGGgsCPjIWhlAKCwIwACRWFlczMeNR48HkEeAKBoInAAcKCJKvIhb3gAoIkqcaCHKvGghyo0HmkAbQAAoOYiAARhYm5vcHR3elIeXB5fHoUelh6mHqsetB4AAW5yVh5ZHmcAAKDsJ3IAAKD9IXIA6wCwBmcAgAFsbXIAZh52Hnse5SFmdAABYXKIB2weaQBnAGgAdABhAHIAcgBvAPcAkwfhInBzdG8AoPwnaQBnAGgAdABhAHIAcgBvAPcAmgdwI2Fycm93AAABbHKNHpEeZQBmAPQAxhxpImdodAAAoKwhgAFhZmwAnB6fHqIecgAAoIUpAOA12F3ddQBzAACgLSppIm1lcwAAoDQqYQGvHrMecwB0AACgFyLhAIoOZaHKJbkeRhLuIWdlAKDKJWEAcgBsoCgAdAAAoJMpgAJhY2htdADMHs8e1R7bHt0ecgDyAJ0GbwByAG4AZQDyANYWYQByAGSgyyEAoG0pAKAOIHIAaQAAoL8iAANhY2hpcXTrHu8e1QfzHv0eBh/xIXVvAKA5IHIAAOA12MHcbQDloXIi+h4AAPweAKCNKgCgjyoAAWJ19xwBH28AcqAYIACgGiDyIW9rQmEAhDwAO2NkaGlscXJCBhcfxh0gHyQfKB8sHzEfAAFjaRsfHR8AoKYqcgAAoHkqcgBlAOUAkx3tIWVzAKDJIuEhcnIAoHYpdSJlc3QAAKB7KgABUGk1HzkfYQByAACglillocMlAgdfEnIAAAFkdUIfRx9zImhhcgAAoEop6CFhcgCgZikAAWVuTx9WH3IjdG5lcXEAAOBoIgD+xQBUHwAHRGFjZGVmaGlsbm9wc3VuH3Ifoh+rH68ftx+7H74f5h/uH/MfBwj/HwsgxCFvdACgOiIAAmNscHJ5H30fiR+eH3IAO4CvAK9AAAFldIEfgx8AoEImZaAgJ3MAZQAAoCAnc6CmIXQAbwCAoaYhZGx1AJQfmB+cH28AdwDuAHkDZQBmAPQA6gbwAOkO6yFlcgCgriUAAW95ph+qH+0hbWEAoCkqPGThIXNoAKAUIOElc3VyZWRhbmdsZQCgISJyAADgNdgq3W8AAKAnIYABY2RuAMQfyR/bH3IAbwA7gLUAtUBhoiMi0B8AANMf1x9zAPQAKxFpAHIAAKDwKm8AdAA7gLcAt0B1AHMA4qESIh4TAADjH3WgOCIAoCoqYwHqH+0fcAAAoNsq8gB+GnAAbAB1APMACAgAAWRw9x/7H+UhbHMAoKciZgAA4DXYXt0AAWN0AyAHIHIAAOA12MLc8CFvcwCgPiJsobwDECAVIPQiaW1hcACguCJhAPAAEyAADEdMUlZhYmNkZWZnaGlqbG1vcHJzdHV2dzwgRyBmIG0geSCqILgg2iDeIBEhFSEyIUMhTSFQIZwhnyHSIQAiIyKLIrEivyIUIwABZ3RAIEMgAODZIjgD9uBrItIgBwmAAWVsdABNIF8gYiBmAHQAAAFhclMgWCByInJvdwAAoM0h6SRnaHRhcnJvdwCgziEA4NgiOAP24Goi0iBfCekkZ2h0YXJyb3cAoM8hAAFEZHEgdSDhIXNoAKCvIuEhc2gAoK4igAJiY25wdACCIIYgiSCNIKIgbABhAACgByL1IXRlRGFnAADgICLSIACiSSJFaW9wlSCYIJwgniAA4HAqOANkAADgSyI4A3MASWFyAG8A+AAyCnUAcgBhoG4mbADzoG4mmwjzAa8gAACzIHAAO4CgAKBAbQBwAOXgTiI4AyoJgAJhZW91eQDBIMogzSDWINkg8AHGIAAAyCAAoEMqbwBuAEhh5CFpbEZhbgBnAGSgRyJvAHQAAOBtKjgDcAAAoEIqPWThIXNoAKATIACjYCJBYWRxc3jpIO0g+SD+IAIhDCFyAHIAAKDXIXIAAAFocvIg9SBrAACgJClvoJch9wAGD28AdAAA4FAiOAN1AGkA9gC7CAABZWkGIQohYQByAACgKCntAN8I6SFzdPOgBCLlCHIAAOA12CvdAAJFZXN0/wgcISshLiHxoXEiIiEAABMJ8aFxIgAJAAAnIWwAYQBuAPQAEwlpAO0AGQlyoG8iAKBvIoABQWFwADghOyE/IXIA8gBeIHIAcgAAoK4hYQByAACg8ipzogsiSiEAAAAAxwtkoPwiAKD6ImMAeQBaZIADQUVhZGVzdABcIV8hYiFmIWkhkyGWIXIA8gBXIADgZiI4A3IAcgAAoJohcgAAoCUggKFwImZxcwBwIYQhjiF0AAABYXJ1IXohcgByAG8A9wBlIWkAZwBoAHQAYQByAHIAbwD3AD4h8aFwImAhAACKIWwAYQBuAPQAZwlz4H0qOAMAoG4iaQDtAG0JcqBuImkA5aDqIkUJaQDkADoKAAFwdKMhpyFmAADgNdhf3YCBrAA7aW4AriGvIcchrEBuAIChCSJFZHYAtyG6Ib8hAOD5IjgDbwB0AADg9SI4A+EB1gjEIcYhAKD3IgCg9iJpAHagDCLhAagJzyHRIQCg/iIAoP0igAFhb3IA2CHsIfEhcgCAoSYiYXN0AOAh5SHpIWwAbABlAOwAywhsAADg/SrlIADgAiI4A2wiaW50AACgFCrjoYAi9yEAAPohdQDlAJsJY+CvKjgDZaCAIvEAkwkAAkFhaXQHIgoiFyIeInIA8gBsIHIAcgAAoZshY3cRIhQiAOAzKTgDAOCdITgDZyRodGFycm93AACgmyFyAGkA5aDrIr4JgANjaGltcHF1AC8iPCJHIpwhTSJQIloigKGBImNlcgA2Iv0JOSJ1AOUABgoA4DXYw9zvIXJ0bQKdIQAAAABEImEAcgDhAOEhbQBloEEi8aBEIiYKYQDyAMsIcwB1AAABYnBWIlgi5QDUCeUA3wmAAWJjcABgInMieCKAoYQiRWVzAGci7glqIgDgxSo4A2UAdABl4IIi0iBxAPGgiCJoImMAZaCBIvEA/gmAoYUiRWVzAH8iFgqCIgDgxio4A2UAdABl4IMi0iBxAPGgiSKAIgACZ2lscpIilCKaIpwi7AAMCWwAZABlADuA8QDxQOcAWwlpI2FuZ2xlAAABbHKkIqoi5SFmdGWg6iLxAEUJaSJnaHQAZaDrIvEAvgltoL0DAKEjAGVzuCK8InIAbwAAoBYhcAAAoAcggARESGFkZ2lscnMAziLSItYi2iLeIugi7SICIw8j4SFzaACgrSLhIXJyAKAEKXAAAOBNItIg4SFzaACgrCIAAWV04iLlIgDgZSLSIADgPgDSIG4iZmluAACg3imAAUFldADzIvci+iJyAHIAAKACKQDgZCLSIHLgPADSIGkAZQAA4LQi0iAAAUF0BiMKI3IAcgAAoAMp8iFpZQDgtSLSIGkAbQAA4Dwi0iCAAUFhbgAaIx4jKiNyAHIAAKDWIXIAAAFociMjJiNrAACgIylvoJYh9wD/DuUhYXIAoCcpUxJqFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVCMAAF4jaSN/I4IjjSOeI8AUAAAAAKYjwCMAANoj3yMAAO8jHiQvJD8kRCQAAWNzVyNsFHUAdABlADuA8wDzQAABaXlhI2cjcgBjoJoiO4D0APRAPmSAAmFiaW9zAHEjdCN3I3EBeiNzAOgAdhTsIWFjUWF2AACgOCrvIWxkAKC8KewhaWdTYQABY3KFI4kjaQByAACgvykA4DXYLN1vA5QjAAAAAJYjAACcI24A22JhAHYAZQA7gPIA8kAAoMEpAAFibaEjjAphAHIAAKC1KQACYWNpdKwjryO6I70jcgDyAFkUAAFpcrMjtiNyAACgvinvIXNzAKC7KW4A5QDZCgCgwCmAAWFlaQDFI8gjyyNjAHIATWFnAGEAyWOAAWNkbgDRI9Qj1iPyIW9uv2MAoLYpdQDzAHgBcABmAADgNdhg3YABYWVsAOQj5yPrI3IAAKC3KXIAcAAAoLkpdQDzAHwBAKMoImFkaW9zdvkj/CMPJBMkFiQbJHIA8gBeFIChXSplZm0AAyQJJAwkcgBvoDQhZgAAoDQhO4CqAKpAO4C6ALpA5yFvZgCgtiJyAACgVipsIm9wZQAAoFcqAKBbKoABY2xvACMkJSQrJPIACCRhAHMAaAA7gPgA+EBsAACgmCJpAGwBMyQ4JGQAZQA7gPUA9UBlAHMAYaCXInMAAKA2Km0AbAA7gPYA9kDiIWFyAKA9I+EKXiQAAHokAAB8JJQkAACYJKkkAAAAALUkEQsAAPAkAAAAAAQleiUAAIMlcgCAoSUiYXN0AGUkbyQBCwCBtgA7bGokayS2QGwAZQDsABgDaQJ1JAAAAAB4JG0AAKDzKgCg/Sp5AD9kcgCAAmNpbXB0AIUkiCSLJJkSjyRuAHQAJWBvAGQALmBpAGwAAKAwIOUhbmsAoDEgcgAA4DXYLd2AAWltbwCdJKAkpCR2oMYD1WNtAGEA9AD+B24AZQAAoA4m9KHAA64kAAC0JGMjaGZvcmsAAKDUItZjAAFhdbgkxCRuAAABY2u9JMIkawBooA8hAKAOIfYAaRpzAACkKwBhYmNkZW1zdNMkIRPXJNsk4STjJOck6yTjIWlyAKAjKmkAcgAAoCIqAAFvdYsW3yQAoCUqAKByKm4AO4CxALFAaQBtAACgJip3AG8AAKAnKoABaXB1APUk+iT+JO4idGludACgFSpmAADgNdhh3W4AZAA7gKMAo0CApHoiRWFjZWlub3N1ABMlFSUYJRslTCVRJVklSSV1JQCgsypwAACgtyp1AOUAPwtjoK8qgKJ6ImFjZW5zACclLSU0JTYlSSVwAHAAcgBvAPgAFyV1AHIAbAB5AGUA8QA/C/EAOAuAAWFlcwA8JUElRSXwInByb3gAoLkqcQBxAACgtSppAG0AAKDoImkA7QBEC20AZQDzoDIgIguAAUVhcwBDJVclRSXwAEAlgAFkZnAATwtfJXElgAFhbHMAZSVpJW0l7CFhcgCgLiPpIW5lAKASI/UhcmYAoBMjdKAdIu8AWQvyIWVsAKCwIgABY2l9JYElcgAA4DXYxdzIY24iY3NwAACgCCAAA2Zpb3BzdZElKxuVJZolnyWkJXIAAOA12C7dcABmAADgNdhi3XIiaW1lAACgVyBjAHIAAOA12MbcgAFhZW8AqiW6JcAldAAAAWVpryW2JXIAbgBpAG8AbgDzABkFbgB0AACgFipzAHQAZaA/APEACRj0AG0LgApBQkhhYmNkZWZoaWxtbm9wcnN0dXgA4yXyJfYl+iVpJpAmpia9JtUm5ib4JlonaCdxJ3UnnietJ7EnyCfiJ+cngAFhcnQA6SXsJe4lcgDyAJkM8gD6AuEhaWwAoBwpYQByAPIA3BVhAHIAAKBkKYADY2RlbnFydAAGJhAmEyYYJiYmKyZaJgABZXUKJg0mAOA9IjEDdABlAFVhaQDjACAN7SJwdHl2AKCzKWcAgKHpJ2RlbAAgJiImJCYAoJIpAKClKeUA9wt1AG8AO4C7ALtAcgAApZIhYWJjZmhscHN0dz0mQCZFJkcmSiZMJk4mUSZVJlgmcAAAoHUpZqDlIXMAAKAgKQCgMylzAACgHinrALka8ACVHmwAAKBFKWkAbQAAoHQpbAAAoKMhAKCdIQABYWleJmImaQBsAACgGilvAG6gNiJhAGwA8wB2C4ABYWJyAG8mciZ2JnIA8gAvEnIAawAAoHMnAAFha3omgSZjAAABZWt/JoAmfWBdYAABZXOFJocmAKCMKWwAAAFkdYwmjiYAoI4pAKCQKQACYWV1eZcmmiajJqUm8iFvbllhAAFkaZ4moSZpAGwAV2HsAA8M4gCAJkBkAAJjbHFzrSawJrUmuiZhAACgNylkImhhcgAAoGkpdQBvAPKgHSCjAWgAAKCzIYABYWNnAMMm0iaUC2wAgKEcIWlwcwDLJs4migxuAOUAoAxhAHIA9ADaC3QAAKCtJYABaWxyANsm3ybjJvMhaHQAoH0pbwBvAPIANgwA4DXYL90AAWFv6ib1JnIAAAFkde8m8SYAoMEhbKDAIQCgbCl2oMED8WOAAWducwD+Jk4nUCdoAHQAAANhaGxyc3QKJxInISc1Jz0nRydyInJvdwB0oJIhYQDpAFYmYSNycG9vbgAAAWR1GiceJ28AdwDuAPAmcAAAoMAh5SFmdAABYWgnJy0ncgByAG8AdwDzAAkMYQByAHAAbwBvAG4A8wATBGklZ2h0YXJyb3dzAACgySFxAHUAaQBnAGEAcgByAG8A9wBZJugkcmVldGltZXMAoMwiZwDaYmkAbgBnAGQAbwB0AHMAZQDxABwYgAFhaG0AYCdjJ2YncgDyAAkMYQDyABMEAKAPIG8idXN0AGGgsSPjIWhlAKCxI+0haWQAoO4qAAJhYnB0fCeGJ4knmScAAW5ygCeDJ2cAAKDtJ3IAAKD+IXIA6wAcDIABYWZsAI8nkieVJ3IAAKCGKQDgNdhj3XUAcwAAoC4qaSJtZXMAAKA1KgABYXCiJ6gncgBnoCkAdAAAoJQp7yJsaW50AKASKmEAcgDyADwnAAJhY2hxuCe8J6EMwCfxIXVvAKA6IHIAAOA12MfcAAFidYAmxCdvAPKgGSCoAYABaGlyAM4n0ifWJ3IAZQDlAE0n7SFlcwCgyiJpAIChuSVlZmwAXAxjEt4n9CFyaQCgzinsInVoYXIAoGgpAKAeIWENBSgJKA0oSyhVKIYoAACLKLAoAAAAAOMo5ygAABApJCkxKW0pcSmHKaYpAACYKgAAAACxKmMidXRlAFthcQB1AO8ABR+ApHsiRWFjZWlucHN5ABwoHignKCooLygyKEEoRihJKACgtCrwASMoAAAlKACguCpvAG4AYWF1AOUAgw1koLAqaQBsAF9hcgBjAF1hgAFFYXMAOCg6KD0oAKC2KnAAAKC6KmkAbQAAoOki7yJsaW50AKATKmkA7QCIDUFkbwB0AGKixSKRFgAAAABTKACgZiqAA0FhY21zdHgAYChkKG8ocyh1KHkogihyAHIAAKDYIXIAAAFocmkoayjrAJAab6CYIfcAzAd0ADuApwCnQGkAO2D3IWFyAKApKW0AAAFpbn4ozQBuAHUA8wDOAHQAAKA2J3IA7+A12DDdIxkAAmFjb3mRKJUonSisKHIAcAAAoG8mAAFoeZkonChjAHkASWRIZHIAdABtAqUoAAAAAKgoaQDkAFsPYQByAGEA7ABsJDuArQCtQAABZ22zKLsobQBhAAChwwNmdroouijCY4CjPCJkZWdsbnByAMgozCjPKNMo1yjaKN4obwB0AACgairxoEMiCw5FoJ4qAKCgKkWgnSoAoJ8qZQAAoEYi7CF1cwCgJCrhIXJyAKByKWEAcgDyAPwMAAJhZWl07Sj8KAEpCCkAAWxz8Sj4KGwAcwBlAHQAbQDpAH8oaABwAACgMyrwImFyc2wAoOQpAAFkbFoPBSllAACgIyNloKoqc6CsKgDgrCoA/oABZmxwABUpGCkfKfQhY3lMZGKgLwBhoMQpcgAAoD8jZgAA4DXYZN1hAAABZHIoKRcDZQBzAHWgYCZpAHQAAKBgJoABY3N1ADYpRilhKQABYXU6KUApcABzoJMiAOCTIgD+cABzoJQiAOCUIgD+dQAAAWJwSylWKQChjyJlcz4NUCllAHQAZaCPIvEAPw0AoZAiZXNIDVspZQB0AGWgkCLxAEkNAKGhJWFmZilbBHIAZQFrKVwEAKChJWEAcgDyAAMNAAJjZW10dyl7KX8pgilyAADgNdjI3HQAbQDuAM4AaQDsAAYpYQByAOYAVw0AAWFyiimOKXIA5qAGJhESAAFhbpIpoylpImdodAAAAWVwmSmgKXAAcwBpAGwAbwDuANkXaADpAKAkcwCvYIACYmNtbnAArin8KY4NJSooKgCkgiJFZGVtbnByc7wpvinCKcgpzCnUKdgp3CkAoMUqbwB0AACgvSpkoIYibwB0AACgwyr1IWx0AKDBKgABRWXQKdIpAKDLKgCgiiLsIXVzAKC/KuEhcnIAoHkpgAFlaXUA4inxKfQpdAAAoYIiZW7oKewpcQDxoIYivSllAHEA8aCKItEpbQAAoMcqAAFicPgp+ikAoNUqAKDTKmMAgKJ7ImFjZW5zAAcqDSoUKhYqRihwAHAAcgBvAPgAIyh1AHIAbAB5AGUA8QCDDfEAfA2AAWFlcwAcKiIqPShwAHAAcgBvAPgAPChxAPEAOShnAACgaiYApoMiMTIzRWRlaGxtbnBzPCo/KkIqRSpHKlIqWCpjKmcqaypzKncqO4C5ALlAO4CyALJAO4CzALNAAKDGKgABb3NLKk4qdAAAoL4qdQBiAACg2CpkoIcibwB0AACgxCpzAAABb3VdKmAqbAAAoMknYgAAoNcq4SFycgCgeyn1IWx0AKDCKgABRWVvKnEqAKDMKgCgiyLsIXVzAKDAKoABZWl1AH0qjCqPKnQAAKGDImVugyqHKnEA8aCHIkYqZQBxAPGgiyJwKm0AAKDIKgABYnCTKpUqAKDUKgCg1iqAAUFhbgCdKqEqrCpyAHIAAKDZIXIAAAFocqYqqCrrAJUab6CZIfcAxQf3IWFyAKAqKWwAaQBnADuA3wDfQOELzyrZKtwq6SrsKvEqAAD1KjQrAAAAAAAAAAAAAEwrbCsAAHErvSsAAAAAAADRK3IC1CoAAAAA2CrnIWV0AKAWI8RjcgDrAOUKgAFhZXkA4SrkKucq8iFvbmVh5CFpbGNhQmRvAPQAIg5sInJlYwAAoBUjcgAA4DXYMd0AAmVpa2/7KhIrKCsuK/IBACsAAAkrZQAAATRm6g0EK28AcgDlAOsNYQBzorgDECsAAAAAEit5AG0A0WMAAWNuFislK2sAAAFhcxsrIStwAHAAcgBvAPgAFw5pAG0AAKA8InMA8AD9DQABYXMsKyEr8AAXDnIAbgA7gP4A/kDsATgrOyswG2QA5QBnAmUAcwCAgdcAO2JkAEMrRCtJK9dAYaCgInIAAKAxKgCgMCqAAWVwcwBRK1MraSvhAAkh4qKkIlsrXysAAAAAYytvAHQAAKA2I2kAcgAAoPEqb+A12GXdcgBrAACg2irhAHgociJpbWUAAKA0IIABYWlwAHYreSu3K2QA5QC+DYADYWRlbXBzdACFK6MrmiunK6wrsCuzK24iZ2xlAACitSVkbHFykCuUK5ornCvvIXduAKC/JeUhZnRloMMl8QACBwCgXCJpImdodABloLkl8QBdDG8AdAAAoOwlaSJudXMAAKA6KuwhdXMAoDkqYgAAoM0p6SFtZQCgOyrlInppdW0AoOIjgAFjaHQAwivKK80rAAFyecYrySsA4DXYydxGZGMAeQBbZPIhb2tnYQABaW/UK9creAD0ANERaCJlYWQAAAFsct4r5ytlAGYAdABhAHIAcgBvAPcAXQbpJGdodGFycm93AKCgIQAJQUhhYmNkZmdobG1vcHJzdHV3CiwNLBEsHSwnLDEsQCxLLFIsYix6LIQsjyzLLOgs7Sz/LAotcgDyAAkDYQByAACgYykAAWNyFSwbLHUAdABlADuA+gD6QPIACQ1yAOMBIywAACUseQBeZHYAZQBtYQABaXkrLDAscgBjADuA+wD7QENkgAFhYmgANyw6LD0scgDyANEO7CFhY3FhYQDyAOAOAAFpckQsSCzzIWh0AKB+KQDgNdgy3XIAYQB2AGUAO4D5APlAYQFWLF8scgAAAWxyWixcLACgvyEAoL4hbABrAACggCUAAWN0Zix2LG8CbCwAAAAAcyxyAG4AZaAcI3IAAKAcI28AcAAAoA8jcgBpAACg+CUAAWFsfiyBLGMAcgBrYTuAqACoQAABZ3CILIssbwBuAHNhZgAA4DXYZt0AA2FkaGxzdZksniynLLgsuyzFLHIAcgBvAPcACQ1vAHcAbgBhAHIAcgBvAPcA2A5hI3Jwb29uAAABbHKvLLMsZQBmAPQAWyxpAGcAaAD0AF0sdQDzAKYOaQAAocUDaGzBLMIs0mNvAG4AxWPwI2Fycm93cwCgyCGAAWNpdADRLOEs5CxvAtcsAAAAAN4scgBuAGWgHSNyAACgHSNvAHAAAKAOI24AZwBvYXIAaQAAoPklYwByAADgNdjK3IABZGlyAPMs9yz6LG8AdAAAoPAi7CFkZWlhaQBmoLUlAKC0JQABYW0DLQYtcgDyAMosbAA7gPwA/EDhIm5nbGUAoKcpgAdBQkRhY2RlZmxub3Byc3oAJy0qLTAtNC2bLZ0toS2/LcMtxy3TLdgt3C3gLfwtcgDyABADYQByAHag6CoAoOkqYQBzAOgA/gIAAW5yOC08LechcnQAoJwpgANla25wcnN0AJkpSC1NLVQtXi1iLYItYQBwAHAA4QAaHG8AdABoAGkAbgDnAKEXgAFoaXIAoSmzJFotbwBwAPQAdCVooJUh7wD4JgABaXVmLWotZwBtAOEAuygAAWJwbi14LXMjZXRuZXEAceCKIgD+AODLKgD+cyNldG5lcQBx4IsiAP4A4MwqAP4AAWhyhi2KLWUAdADhABIraSNhbmdsZQAAAWxyki2WLeUhZnQAoLIiaSJnaHQAAKCzInkAMmThIXNoAKCiIoABZWxyAKcttC24LWKiKCKuLQAAAACyLWEAcgAAoLsicQAAoFoi7CFpcACg7iIAAWJ0vC1eD2EA8gBfD3IAAOA12DPddAByAOkAlS1zAHUAAAFicM0t0C0A4IIi0iAA4IMi0iBwAGYAAOA12GfdcgBvAPAAWQt0AHIA6QCaLQABY3XkLegtcgAA4DXYy9wAAWJw7C30LW4AAAFFZXUt8S0A4IoiAP5uAAABRWV/LfktAOCLIgD+6SJnemFnAKCaKYADY2Vmb3BycwANLhAuJS4pLiMuLi40LukhcmN1YQABZGkULiEuAAFiZxguHC5hAHIAAKBfKmUAcaAnIgCgWSLlIXJwAKAYIXIAAOA12DTdcABmAADgNdho3WWgQCJhAHQA6ABqD2MAcgAA4DXYzNzjCuQRUC4AAFQuAABYLmIuAAAAAGMubS5wLnQuAAAAAIguki4AAJouJxIqEnQAcgDpAB0ScgAA4DXYNd0AAUFhWy5eLnIA8gDnAnIA8gCTB75jAAFBYWYuaS5yAPIA4AJyAPIAjAdhAPAAeh5pAHMAAKD7IoABZHB0APgReS6DLgABZmx9LoAuAOA12GnddQDzAP8RaQBtAOUABBIAAUFhiy6OLnIA8gDuAnIA8gCaBwABY3GVLgoScgAA4DXYzdwAAXB0nS6hLmwAdQDzACUScgDpACASAARhY2VmaW9zdbEuvC7ELsguzC7PLtQu2S5jAAABdXm2LrsudABlADuA/QD9QE9kAAFpecAuwy5yAGMAd2FLZG4AO4ClAKVAcgAA4DXYNt1jAHkAV2RwAGYAAOA12GrdYwByAADgNdjO3AABY23dLt8ueQBOZGwAO4D/AP9AAAVhY2RlZmhpb3N38y73Lv8uAi8MLxAvEy8YLx0vIi9jInV0ZQB6YQABYXn7Lv4u8iFvbn5hN2RvAHQAfGEAAWV0Bi8KL3QAcgDmAB8QYQC2Y3IAAOA12DfdYwB5ADZk5yJyYXJyAKDdIXAAZgAA4DXYa91jAHIAAOA12M/cAAFqbiYvKC8AoA0gagAAoAwg");var bA=kS("AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg");var No;(function(l){l[l.VALUE_LENGTH=49152]="VALUE_LENGTH",l[l.FLAG13=8192]="FLAG13",l[l.BRANCH_LENGTH=8064]="BRANCH_LENGTH",l[l.JUMP_TABLE=127]="JUMP_TABLE"})(No||(No={}));var ar;(function(l){l[l.NUM=35]="NUM",l[l.SEMI=59]="SEMI",l[l.EQUALS=61]="EQUALS",l[l.ZERO=48]="ZERO",l[l.NINE=57]="NINE",l[l.LOWER_A=97]="LOWER_A",l[l.LOWER_F=102]="LOWER_F",l[l.LOWER_X=120]="LOWER_X",l[l.LOWER_Z=122]="LOWER_Z",l[l.UPPER_A=65]="UPPER_A",l[l.UPPER_F=70]="UPPER_F",l[l.UPPER_Z=90]="UPPER_Z"})(ar||(ar={}));var Av=32;function gA(l){return l>=ar.ZERO&&l<=ar.NINE}function pU(l){return l>=ar.UPPER_A&&l<=ar.UPPER_F||l>=ar.LOWER_A&&l<=ar.LOWER_F}function hU(l){return l>=ar.UPPER_A&&l<=ar.UPPER_Z||l>=ar.LOWER_A&&l<=ar.LOWER_Z||gA(l)}function cU(l){return l===ar.EQUALS||hU(l)}var io;(function(l){l[l.EntityStart=0]="EntityStart",l[l.NumericStart=1]="NumericStart",l[l.NumericDecimal=2]="NumericDecimal",l[l.NumericHex=3]="NumericHex",l[l.NamedEntity=4]="NamedEntity"})(io||(io={}));var ls;(function(l){l[l.Legacy=0]="Legacy",l[l.Strict=1]="Strict",l[l.Attribute=2]="Attribute"})(ls||(ls={}));var IS=class{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=io.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ls.Strict,this.runConsumed=0}startEntity(e){this.decodeMode=e,this.state=io.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(e,t){switch(this.state){case io.EntityStart:return e.charCodeAt(t)===ar.NUM?(this.state=io.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=io.NamedEntity,this.stateNamedEntity(e,t));case io.NumericStart:return this.stateNumericStart(e,t);case io.NumericDecimal:return this.stateNumericDecimal(e,t);case io.NumericHex:return this.stateNumericHex(e,t);case io.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|Av)===ar.LOWER_X?(this.state=io.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=io.NumericDecimal,this.stateNumericDecimal(e,t))}stateNumericHex(e,t){for(;t<e.length;){let r=e.charCodeAt(t);if(gA(r)||pU(r)){let o=r<=ar.NINE?r-ar.ZERO:(r|Av)-ar.LOWER_A+10;this.result=this.result*16+o,this.consumed++,t++}else return this.emitNumericEntity(r,3)}return-1}stateNumericDecimal(e,t){for(;t<e.length;){let r=e.charCodeAt(t);if(gA(r))this.result=this.result*10+(r-ar.ZERO),this.consumed++,t++;else return this.emitNumericEntity(r,2)}return-1}emitNumericEntity(e,t){var r;if(this.consumed<=t)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===ar.SEMI)this.consumed+=1;else if(this.decodeMode===ls.Strict)return 0;return this.emitCodePoint(cA(this.result),this.consumed),this.errors&&(e!==ar.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:r}=this,o=r[this.treeIndex],i=(o&No.VALUE_LENGTH)>>14;for(;t<e.length;){if(i===0&&(o&No.FLAG13)!==0){let a=(o&No.BRANCH_LENGTH)>>7;if(this.runConsumed===0){let y=o&No.JUMP_TABLE;if(e.charCodeAt(t)!==y)return this.result===0?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}for(;this.runConsumed<a;){if(t>=e.length)return-1;let y=this.runConsumed-1,p=r[this.treeIndex+1+(y>>1)],d=y%2===0?p&255:p>>8&255;if(e.charCodeAt(t)!==d)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(a>>1),o=r[this.treeIndex],i=(o&No.VALUE_LENGTH)>>14}if(t>=e.length)break;let n=e.charCodeAt(t);if(n===ar.SEMI&&i!==0&&(o&No.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);if(this.treeIndex=dU(r,o,this.treeIndex+Math.max(1,i),n),this.treeIndex<0)return this.result===0||this.decodeMode===ls.Attribute&&(i===0||cU(n))?0:this.emitNotTerminatedNamedEntity();if(o=r[this.treeIndex],i=(o&No.VALUE_LENGTH)>>14,i!==0){if(n===ar.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==ls.Strict&&(o&No.FLAG13)===0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}t++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:r}=this,o=(r[t]&No.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,o,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){let{decodeTree:o}=this;return this.emitCodePoint(t===1?o[e]&~(No.VALUE_LENGTH|No.FLAG13):o[e+1],r),t===3&&this.emitCodePoint(o[e+2],r),r}end(){var e;switch(this.state){case io.NamedEntity:return this.result!==0&&(this.decodeMode!==ls.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case io.NumericDecimal:return this.emitNumericEntity(0,2);case io.NumericHex:return this.emitNumericEntity(0,3);case io.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case io.EntityStart:return 0}}};function wv(l){let e="",t=new IS(l,r=>e+=hA(r));return function(o,i){let n=0,a=0;for(;(a=o.indexOf("&",a))>=0;){e+=o.slice(n,a),t.startEntity(i);let p=t.write(o,a+1);if(p<0){n=a+t.end();break}n=a+p,a=p===0?n+1:n}let y=e+o.slice(n);return e="",y}}function dU(l,e,t,r){let o=(e&No.BRANCH_LENGTH)>>7,i=e&No.JUMP_TABLE;if(o===0)return i!==0&&r===i?t:-1;if(i){let p=r-i;return p<0||p>=o?-1:l[t+p]-1}let n=o+1>>1,a=0,y=o-1;for(;a<=y;){let p=a+y>>>1,d=p>>1,f=l[t+d]>>(p&1)*8&255;if(f<r)a=p+1;else if(f>r)y=p-1;else return l[t+n+p]}return-1}var Ev=wv(dA),bU=wv(bA);function hp(l,e=ls.Legacy){return Ev(l,e)}function fA(l){return Ev(l,ls.Attribute)}function cp(l){return bU(l,ls.Strict)}var gU=String.prototype.codePointAt==null?(l,e)=>(l.charCodeAt(e)&64512)===55296?(l.charCodeAt(e)-55296)*1024+l.charCodeAt(e+1)-56320+65536:l.charCodeAt(e):(l,e)=>l.codePointAt(e);function fU(l,e){return function(r){let o,i=0,n="";for(;o=l.exec(r);)i!==o.index&&(n+=r.substring(i,o.index)),n+=e.get(o[0].charCodeAt(0)),i=o.index+1;return n+r.substring(i)}}var MS=fU(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]));var xv;(function(l){l[l.XML=0]="XML",l[l.HTML=1]="HTML"})(xv||(xv={}));var vv;(function(l){l[l.UTF8=0]="UTF8",l[l.ASCII=1]="ASCII",l[l.Extensive=2]="Extensive",l[l.Attribute=3]="Attribute",l[l.Text=4]="Text"})(vv||(vv={}));var EU=/[&"<>\t\n\r]/g,xU=/[&"]/g,vU=/&(?:nbsp|lt|gt|amp);/g,TU={"&":"&amp;",'"':"&quot;","<":"&lt;",">":"&gt;"," ":"&#x9;","\n":"&#xA;","\r":"&#xD;"},CU={"&":"&amp;",'"':"&quot;"},NU={"&nbsp;":"\xA0","&lt;":"<","&gt;":">","&amp;":"&"},We=class{static encodeXMLAttributeValue(e){return e===null?"":e.replace(EU,t=>TU[t])}static decodeXMLAttributeValue(e){return e===null?"":cp(e)}static encodeHTMLAttributeValue(e){return e===null?"":e.replace(xU,t=>CU[t])}static decodeHTMLAttributeValue(e){return e===null?"":fA(e)}static encodeTextContent(e){return e===null?"":MS(e)}static decodeTextContent(e){return e===null?"":e.replace(vU,t=>NU[t])}static decodeHTMLEntities(e){return e===null?"":hp(e)}static decodeXMLEntities(e){return e===null?"":cp(e)}};var Oi=class{constructor(e){s(this,"options",{serializableShadowRoots:!1,shadowRoots:null,allShadowRoots:!1,excludeShadowRootTags:null});e&&(e.serializableShadowRoots&&(this.options.serializableShadowRoots=e.serializableShadowRoots),e.shadowRoots&&(this.options.shadowRoots=e.shadowRoots),e.allShadowRoots&&(this.options.allShadowRoots=e.allShadowRoots),e.excludeShadowRootTags&&(this.options.excludeShadowRootTags=e.excludeShadowRootTags))}serializeToString(e){switch(e[U]){case L.elementNode:let t=e,r=t[Ot],o=t[nt],i=br[t[nt]],n=r?`${r}:${o}`:o;if(i?.contentModel===H.noDescendants)return`<${n}${this.getAttributes(t)}>`;let a="";if(t.shadowRoot&&(this.options.allShadowRoots||this.options.serializableShadowRoots&&t.shadowRoot[an]||this.options.shadowRoots?.includes(t.shadowRoot))&&(!this.options.excludeShadowRootTags||!this.options.excludeShadowRootTags.includes(n))){a+=`<template shadowrootmode="${t.shadowRoot[Me]}"${t.shadowRoot[an]?' shadowrootserializable=""':""}>`;for(let N of t.shadowRoot[q])a+=this.serializeToString(N);a+="</template>"}let y=n==="template"?e.content[q]:e[q];for(let N of y)a+=this.serializeToString(N);return`<${n}${this.getAttributes(t)}>${a}</${n}>`;case bt.DOCUMENT_FRAGMENT_NODE:case bt.DOCUMENT_NODE:let p="";for(let N of e[q])p+=this.serializeToString(N);return p;case L.commentNode:return`<!--${e.textContent}-->`;case L.processingInstructionNode:return`<!--?${e.target} ${e.textContent}?-->`;case L.textNode:let d=e.parentElement;return d&&br[d[nt]]?.contentModel===H.rawText?e.textContent:We.encodeTextContent(e.textContent);case L.documentTypeNode:let b=e,f=b.publicId?" PUBLIC":b.systemId?" SYSTEM":"",S=b.publicId?` "${b.publicId}"`:"",M=b.systemId?` "${b.systemId}"`:"";return`<!DOCTYPE ${b.name}${f}${S}${M}>`}return""}getAttributes(e){let t="",r=e[ft][$];!r.has(":is")&&e[Mo]&&(t+=' is="'+We.encodeHTMLAttributeValue(e[Mo])+'"');for(let o of r.values()){let i=We.encodeHTMLAttributeValue(o[z]);t+=" "+o[st]+'="'+i+'"'}return t}};var Bb={svg:{localName:"svg",className:"SVGSVGElement"},animate:{localName:"animate",className:"SVGAnimateElement"},animatemotion:{localName:"animateMotion",className:"SVGAnimateMotionElement"},animatetransform:{localName:"animateTransform",className:"SVGAnimateTransformElement"},circle:{localName:"circle",className:"SVGCircleElement"},clippath:{localName:"clipPath",className:"SVGClipPathElement"},defs:{localName:"defs",className:"SVGDefsElement"},desc:{localName:"desc",className:"SVGDescElement"},ellipse:{localName:"ellipse",className:"SVGEllipseElement"},feblend:{localName:"feBlend",className:"SVGFEBlendElement"},fecolormatrix:{localName:"feColorMatrix",className:"SVGFEColorMatrixElement"},fecomponenttransfer:{localName:"feComponentTransfer",className:"SVGFEComponentTransferElement"},fecomposite:{localName:"feComposite",className:"SVGFECompositeElement"},feconvolvematrix:{localName:"feConvolveMatrix",className:"SVGFEConvolveMatrixElement"},fediffuselighting:{localName:"feDiffuseLighting",className:"SVGFEDiffuseLightingElement"},fedisplacementmap:{localName:"feDisplacementMap",className:"SVGFEDisplacementMapElement"},fedistantlight:{localName:"feDistantLight",className:"SVGFEDistantLightElement"},fedropshadow:{localName:"feDropShadow",className:"SVGFEDropShadowElement"},feflood:{localName:"feFlood",className:"SVGFEFloodElement"},fefunca:{localName:"feFuncA",className:"SVGFEFuncAElement"},fefuncb:{localName:"feFuncB",className:"SVGFEFuncBElement"},fefuncg:{localName:"feFuncG",className:"SVGFEFuncGElement"},fefuncr:{localName:"feFuncR",className:"SVGFEFuncRElement"},fegaussianblur:{localName:"feGaussianBlur",className:"SVGFEGaussianBlurElement"},feimage:{localName:"feImage",className:"SVGFEImageElement"},femerge:{localName:"feMerge",className:"SVGFEMergeElement"},femergenode:{localName:"feMergeNode",className:"SVGFEMergeNodeElement"},femorphology:{localName:"feMorphology",className:"SVGFEMorphologyElement"},feoffset:{localName:"feOffset",className:"SVGFEOffsetElement"},fepointlight:{localName:"fePointLight",className:"SVGFEPointLightElement"},fespecularlighting:{localName:"feSpecularLighting",className:"SVGFESpecularLightingElement"},fespotlight:{localName:"feSpotLight",className:"SVGFESpotLightElement"},fetile:{localName:"feTile",className:"SVGFETileElement"},feturbulence:{localName:"feTurbulence",className:"SVGFETurbulenceElement"},filter:{localName:"filter",className:"SVGFilterElement"},foreignobject:{localName:"foreignObject",className:"SVGForeignObjectElement"},g:{localName:"g",className:"SVGGElement"},image:{localName:"image",className:"SVGImageElement"},line:{localName:"line",className:"SVGLineElement"},lineargradient:{localName:"linearGradient",className:"SVGLinearGradientElement"},marker:{localName:"marker",className:"SVGMarkerElement"},mask:{localName:"mask",className:"SVGMaskElement"},metadata:{localName:"metadata",className:"SVGMetadataElement"},mpath:{localName:"mpath",className:"SVGMPathElement"},path:{localName:"path",className:"SVGPathElement"},pattern:{localName:"pattern",className:"SVGPatternElement"},polygon:{localName:"polygon",className:"SVGPolygonElement"},polyline:{localName:"polyline",className:"SVGPolylineElement"},radialgradient:{localName:"radialGradient",className:"SVGRadialGradientElement"},rect:{localName:"rect",className:"SVGRectElement"},script:{localName:"script",className:"SVGScriptElement"},set:{localName:"set",className:"SVGSetElement"},stop:{localName:"stop",className:"SVGStopElement"},style:{localName:"style",className:"SVGStyleElement"},switch:{localName:"switch",className:"SVGSwitchElement"},symbol:{localName:"symbol",className:"SVGSymbolElement"},text:{localName:"text",className:"SVGTextElement"},textpath:{localName:"textPath",className:"SVGTextPathElement"},title:{localName:"title",className:"SVGTitleElement"},tspan:{localName:"tspan",className:"SVGTSpanElement"},use:{localName:"use",className:"SVGUseElement"},view:{localName:"view",className:"SVGViewElement"}};var LU=/<([^\s/!>?]+)|<\/([^\s/!>?]+)\s*>|(<!--)|(-->|--!>)|(<!)|(<\?)|(\/>)|(>)/gm,kU=/\s*([a-zA-Z0-9-_:.$@?\\<\[\]]+)\s*=\s*([^"'=<>\\`\s]+)|\s*([a-zA-Z0-9-_:.$@?\\<\[\]]+)\s*=\s*"([^"]*)("{0,1})|\s*([a-zA-Z0-9-_:.$@?\\<\[\]]+)\s*=\s*'([^']*)('{0,1})|\s*([a-zA-Z0-9-_:.$@?\\<\[\]]+)/gm,IU=/"([^"]+)"/gm,MU=/\s+/,RU=/^\s+/,tr;(function(l){l.any="any",l.startTag="startTag",l.comment="comment",l.documentType="documentType",l.processingInstruction="processingInstruction",l.rawTextElement="rawTextElement"})(tr||(tr={}));var Ue;(function(l){l[l.root=0]="root",l[l.doctype=1]="doctype",l[l.documentElement=2]="documentElement",l[l.head=3]="head",l[l.additionalHeadWithoutBody=4]="additionalHeadWithoutBody",l[l.body=5]="body",l[l.afterBody=6]="afterBody"})(Ue||(Ue={}));var Kr=class{constructor(e,t){s(this,"window");s(this,"evaluateScripts",!1);s(this,"isTemplateDocumentFragment",!1);s(this,"rootNode",null);s(this,"rootDocument",null);s(this,"nodeStack",[]);s(this,"tagNameStack",[]);s(this,"documentStructure",null);s(this,"startTagIndex",0);s(this,"markupRegExp",null);s(this,"nextElement",null);s(this,"currentNode",null);s(this,"readState",tr.any);this.window=e,t?.evaluateScripts&&(this.evaluateScripts=!0),t?.isTemplateDocumentFragment&&(this.isTemplateDocumentFragment=!0)}parse(e,t){if(this.rootNode=t||this.window.document.createDocumentFragment(),this.rootDocument=this.rootNode[U]===L.documentNode?this.rootNode:this.window.document,this.nodeStack=[this.rootNode],this.tagNameStack=[null],this.currentNode=this.rootNode,this.readState=tr.any,this.documentStructure=null,this.startTagIndex=0,this.markupRegExp=new RegExp(LU),this.rootNode[U]===L.documentNode){let{doctype:i,documentElement:n,head:a,body:y}=this.rootNode;if(!n||!a||!y)throw new Error(`Failed to parse HTML: The root node must have "documentElement", "head" and "body".
94
94
 
95
95
  We should not end up here and it is therefore a bug in Happy DOM. Please report this issue.`);this.documentStructure={nodes:{doctype:i||null,documentElement:n,head:a,body:y},level:Ue.root}}if(this.rootNode instanceof this.window.HTMLHtmlElement){let i=this.rootDocument.createElement("head"),n=this.rootDocument.createElement("body");for(;this.rootNode[q].length>0;)this.rootNode[Hr](this.rootNode[q][this.rootNode[q].length-1]);this.rootNode[vt](i),this.rootNode[vt](n),this.documentStructure={nodes:{doctype:null,documentElement:this.rootNode,head:i,body:n},level:Ue.documentElement}}let r,o=0;for(e=String(e);r=this.markupRegExp.exec(e);){switch(this.readState){case tr.any:r.index!==o&&(r[1]||r[2]||r[3]||r[4]||r[5]!==void 0||r[6])&&this.parsePlainText(e.substring(o,r.index)),r[1]?(this.nextElement=this.getStartTagElement(r[1]),this.startTagIndex=this.markupRegExp.lastIndex,this.readState=tr.startTag):r[2]?this.parseEndTag(r[2]):r[3]?(this.startTagIndex=this.markupRegExp.lastIndex,this.readState=tr.comment):r[5]!==void 0?(this.startTagIndex=this.markupRegExp.lastIndex,this.readState=tr.documentType):r[6]?(this.startTagIndex=this.markupRegExp.lastIndex,this.readState=tr.processingInstruction):this.parsePlainText(e.substring(o,this.markupRegExp.lastIndex));break;case tr.startTag:if(r[7]||r[8]||r[2])if(this.nextElement){let i=e.substring(this.startTagIndex,r[2]?this.markupRegExp.lastIndex-1:r.index),n=!!r[7];this.parseEndOfStartTag(i,n)}else this.readState=tr.any;break;case tr.comment:r[4]&&this.parseComment(e.substring(this.startTagIndex,r.index));break;case tr.documentType:(r[7]||r[8])&&this.parseDocumentType(e.substring(this.startTagIndex,r.index));break;case tr.processingInstruction:(r[7]||r[8])&&this.parseComment("?"+e.substring(this.startTagIndex,r.index));break;case tr.rawTextElement:r[2]&&this.parseRawTextElementContent(r[2],e.substring(this.startTagIndex,r.index));break}o=this.markupRegExp.lastIndex}return o!==e.length&&this.currentNode&&this.parsePlainText(e.substring(o)),this.rootNode}parsePlainText(e){if(this.documentStructure){let t=this.documentStructure.level,{documentElement:r,head:o,body:i}=this.documentStructure.nodes,n=(this.currentNode===this.rootNode||this.currentNode===r)&&t<Ue.head&&i[dt].length===0?e.replace(RU,""):e;if(n){let a=this.rootDocument.createTextNode(We.decodeHTMLEntities(n));this.currentNode===o&&t===Ue.additionalHeadWithoutBody?r[uo](a,i,!0):this.currentNode===this.rootNode||this.currentNode===r||this.currentNode===o&&t>=Ue.body?t===Ue.head?r[uo](a,i,!0):i.lastChild?.[U]===L.textNode?i.lastChild[Xt]+=e:i[vt](a,!0):this.currentNode[vt](a,!0)}}else{let t=this.rootDocument.createTextNode(We.decodeHTMLEntities(e));this.currentNode[vt](t,!0)}}parseEndOfStartTag(e,t){if(e&&(!this.documentStructure||this.nextElement!==this.documentStructure.nodes.head||this.documentStructure.level<Ue.body)){let a=new RegExp(kU),y;for(;y=a.exec(e);)if(y[1]&&y[2]||y[3]&&y[5]==='"'||y[6]&&y[8]==="'"||y[9]){let p=y[1]||y[3]||y[6]||y[9]||"",d=y[2]||y[4]||y[7]||"",b=d?We.decodeHTMLAttributeValue(d):"",f=this.nextElement[ft];if(this.nextElement[tt]===Yt.svg){let S=p.split(":"),M=null;switch(S[0]){case"xmlns":M=!S[1]||S[1]==="xlink"?Yt.xmlns:null;break;case"xlink":M=Yt.xlink;break}if(!f.getNamedItemNS(M,S[1]??p)){let N=Ve.createNode(this.rootDocument,this.window.Attr);N[tt]=M,N[st]=p,N[nt]=M&&S[1]?S[1]:p,N[Ot]=M&&S[1]?S[0]:null,N[z]=b,f[Xi](N)}}else if(!f.getNamedItem(p)){let S=this.rootDocument.createAttribute(p);S[z]=b,f[Xi](S)}this.startTagIndex+=y[0].length}else if(!y[1]&&(y[3]&&!y[5]||y[6]&&!y[8]))return}let r=this.nextElement[Z],o=r.toLowerCase(),i=br[o],n=null;for(;n!==this.rootNode;){let a=this.currentNode[Z]?.toLowerCase(),y=a?br[a]:null;if(n===this.currentNode)throw new Error("Failed to parse HTML: The parser is stuck in an infinite loop. Please report this issue.");if(n=this.currentNode,i?.contentModel===H.noFirstLevelSelfDescendants&&this.tagNameStack[this.tagNameStack.length-1]===r||y?.contentModel===H.textOrComments||y?.contentModel===H.noForbiddenFirstLevelDescendants&&y?.forbiddenDescendants?.includes(o)||y?.contentModel===H.permittedDescendants&&!y?.permittedDescendants?.includes(o)&&(!i||!i.addPermittedParent||br[i.addPermittedParent].permittedParents&&!br[i.addPermittedParent].permittedParents.includes(a)||br[i.addPermittedParent].permittedDescendants&&!br[i.addPermittedParent].permittedDescendants.includes(o))){if(y?.contentModel===H.permittedDescendants&&y.moveForbiddenDescendant&&!y.moveForbiddenDescendant.exclude.includes(o)){let p=this.currentNode;for(;p&&!(!p.parentNode||!br[p.parentNode[nt]]?.permittedDescendants||br[p.parentNode[nt]]?.permittedDescendants?.includes(o));)p=p.parentNode;p&&p.parentNode?p.parentNode.insertBefore(this.nextElement,p):p.appendChild(this.nextElement),this.startTagIndex=this.markupRegExp.lastIndex,this.readState=tr.any;return}this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode}else if(i?.contentModel===H.noSelfDescendants&&this.tagNameStack.includes(r))for(;this.currentNode!==this.rootNode;){if(this.currentNode[Z]===r){this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode;break}this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode}else if(!this.isTemplateDocumentFragment&&i?.permittedParents&&!i.permittedParents.includes(a)){if(!i.addPermittedParent||br[i.addPermittedParent].permittedParents&&!br[i.addPermittedParent].permittedParents.includes(a)||br[i.addPermittedParent].permittedDescendants&&!br[i.addPermittedParent].permittedDescendants.includes(o)){this.readState=tr.any,this.startTagIndex=this.markupRegExp.lastIndex;return}let p=this.rootDocument.createElement(i.addPermittedParent);this.currentNode[vt](p,!0),this.nodeStack.push(p),this.tagNameStack.push(p[Z]),this.currentNode=p}else break}if(this.documentStructure){let{documentElement:a,head:y,body:p}=this.documentStructure.nodes,d=this.documentStructure.level;(!i||i.contentModel!==H.rawText)&&this.nextElement!==a&&this.nextElement!==y&&this.nextElement!==p&&(a&&(this.currentNode===this.rootNode||this.currentNode===a||this.currentNode===y&&d>=Ue.body)?(d<Ue.body&&(this.documentStructure.level=Ue.afterBody),p[vt](this.nextElement,!0)):this.currentNode[vt](this.nextElement,!0))}else this.currentNode[vt](this.nextElement,!0);!this.documentStructure||this.nextElement!==this.documentStructure.nodes.body||this.documentStructure.level<=Ue.body?(this.currentNode=this.nextElement,this.nodeStack.push(this.currentNode),this.tagNameStack.push(r),this.documentStructure&&this.nextElement===this.documentStructure.nodes.body&&(this.documentStructure.level=Ue.afterBody),i?.contentModel===H.noDescendants||t&&this.currentNode[tt]===Yt.svg?(this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode,this.readState=tr.any):this.readState=i?.contentModel===H.rawText?tr.rawTextElement:tr.any):this.readState=tr.any,this.startTagIndex=this.markupRegExp.lastIndex}parseEndTag(e){let t=this.currentNode[tt]===Yt.html?oo.asciiUpperCase(e):Bb[oo.asciiLowerCase(e)]?.localName||e,r=this.tagNameStack.lastIndexOf(t);r!==-1&&(this.nodeStack.splice(r,this.nodeStack.length-r),this.tagNameStack.splice(r,this.tagNameStack.length-r),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode)}parseComment(e){let t=this.rootDocument.createComment(We.decodeHTMLEntities(e));if(this.documentStructure){let r=this.documentStructure.level,{documentElement:o,head:i,body:n}=this.documentStructure.nodes,a=null;this.currentNode===this.rootNode&&r===Ue.root?a=o:this.currentNode===o&&r===Ue.documentElement?a=i:this.currentNode===o&&r===Ue.head&&(a=n),this.currentNode[uo](t,a,!0)}else this.currentNode[vt](t,!0);this.readState=tr.any}parseDocumentType(e){let t=We.decodeHTMLEntities(e);if(this.documentStructure){let{doctype:r}=this.documentStructure.nodes,o=this.getDocumentType(t);o?this.currentNode===this.rootNode&&this.documentStructure.level===Ue.root&&(r?(r[st]=o.name,r[fl]=o.publicId,r[Sl]=o.systemId):(r=this.rootNode.implementation.createDocumentType(o.name,o.publicId,o.systemId),this.rootNode.insertBefore(r,this.rootNode.documentElement)),this.documentStructure.level=Ue.doctype):this.parseComment(t)}else this.getDocumentType(t)||this.parseComment(t);this.readState=tr.any}parseRawTextElementContent(e,t){let r=oo.asciiUpperCase(e);if(r!==this.currentNode[Z])return;r==="SCRIPT"?this.currentNode[Ml]=!this.evaluateScripts:r==="LINK"&&(this.currentNode[Ml]=!this.evaluateScripts),this.currentNode[vt](this.rootDocument.createTextNode(t),!0);let o=this.currentNode;if(this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode,this.readState=tr.any,this.documentStructure){let{documentElement:i,body:n}=this.documentStructure.nodes;i&&(this.currentNode===this.rootNode||this.currentNode===i)?n[vt](o,!0):this.currentNode[vt](o,!0)}else this.currentNode[vt](o,!0)}getStartTagElement(e){let t=oo.asciiLowerCase(e),r=this.currentNode[tt];if(t==="svg")return this.rootDocument.createElementNS(Yt.svg,"svg");if(r===Yt.svg)return this.rootDocument.createElementNS(Yt.svg,Bb[t]?.localName||e);switch(t){case"html":return this.documentStructure?(this.documentStructure.level<Ue.documentElement&&(this.documentStructure.level=Ue.documentElement),this.documentStructure.nodes.documentElement??null):null;case"head":return this.documentStructure?(this.documentStructure.level<Ue.head?this.documentStructure.level=Ue.head:this.documentStructure.level===Ue.head&&(this.documentStructure.level=Ue.additionalHeadWithoutBody),this.documentStructure.nodes.head??null):null;case"body":return this.documentStructure?(this.documentStructure.level<Ue.body&&(this.documentStructure.level=Ue.body),this.documentStructure.nodes.body??null):null;default:return this.rootDocument.createElementNS(Yt.html,t)}}getDocumentType(e){if(!e.toUpperCase().startsWith("DOCTYPE"))return null;let t=e.split(MU);if(t.length<=1)return null;let r=t.slice(1).join(" "),o=[],i=new RegExp(IU,"gm"),n=r.toUpperCase().includes("PUBLIC"),a;for(;a=i.exec(r);)o.push(a[1]);let y=n&&o[0]||"",p=n?o[1]||"":o[0]||"";return{name:t[1].toLowerCase(),publicId:y,systemId:p}}};var FU=/[\x00-\x1F\x7F\x80-\x9F "\'><=\/\uFDD0-\uFDEF\uFFFE\uFFFF\u1FFFE\u1FFFF\u2FFFE\u2FFFF\u3FFFE\u3FFFF\u4FFFE\u4FFFF\u5FFFE\u5FFFF\u6FFFE\u6FFFF\u7FFFE\u7FFFF\u8FFFE\u8FFFF\u9FFFE\u9FFFF\uAFFFE\uAFFFF\uBFFFE\uBFFFF\uCFFFE\uCFFFF\uDFFFE\uDFFFF\uEFFFE\uEFFFF\uFFFFE\uFFFFF\u10FFFE\u10FFFF]/,RS=class{static validateAttributeName(e,t,r){let{method:o,instance:i}=r;if(t==="text/html"){let n=String(e).toLowerCase();if(FU.test(n)||n.length===0||n[0]==="-")throw new ae(`Uncaught InvalidCharacterError: Failed to execute '${o}' on '${i}': '${e}' is not a valid attribute name.`,v.invalidCharacterError)}}};var P=class{static getEventListener(e,t){let r=e[c].get(t);if(r)return r;let o=e[T][mo];if(!o)return null;let i=new rt(o).getSettings();if(!i||!i.enableJavaScriptEvaluation)return null;let n=e.getAttribute(t);if(!n)return null;let a="(function anonymous($happy_dom, event) {";i&&!i.disableErrorCapturing&&i.errorCapture===ue.tryAndCatch&&(a+=`try {
96
- `),a+=n,i&&!i.disableErrorCapturing&&i.errorCapture===ue.tryAndCatch&&(a+="} catch(e) { $happy_dom.dispatchError(e); }"),a+="})";let y=null;try{y=o[Ci](a,{filename:o.location.href}).bind(e,{dispatchError:o[ce].bind(o)})}catch(p){let d=new o.SyntaxError(`Failed to read the '${t}' property from '${e.constructor.name}': ${p.message}`);if(i.disableErrorCapturing||i.errorCapture!==ue.tryAndCatch)throw d;return o[ce](d),null}return y&&e[c].set(t,y),y}};var Cv,Nv,Lv,kv,Iv,Mv,Rv,Fv,Bv,Dv,Ov,Vv,Uv,Gv,_v,Hv,Wv,Yv,Zo,PA,Db,Ob,xr=class extends bt{constructor(){super();E(this,Zo);s(this,_v,null);s(this,Gv,null);s(this,Uv,L.elementNode);s(this,Vv,null);s(this,Ov,null);s(this,Dv,0);s(this,Bv,0);s(this,Fv,0);s(this,Rv,0);s(this,Mv,new Wn(this));s(this,Iv,null);s(this,kv,null);s(this,Lv,null);s(this,Nv,new Set);s(this,Cv,new Map);this[Z]||(this[Z]=null),this[nt]||(this[nt]=null),this[tt]||(this[tt]=null)}get onfullscreenerror(){return P.getEventListener(this,"onfullscreenerror")}set onfullscreenerror(t){this[c].set("onfullscreenerror",t)}get onfullscreenchange(){return P.getEventListener(this,"onfullscreenchange")}set onfullscreenchange(t){this[c].set("onfullscreenchange",t)}get onbeforecopy(){return P.getEventListener(this,"onbeforecopy")}set onbeforecopy(t){this[c].set("onbeforecopy",t)}get onbeforecut(){return P.getEventListener(this,"onbeforecut")}set onbeforecut(t){this[c].set("onbeforecut",t)}get onbeforepaste(){return P.getEventListener(this,"onbeforepaste")}set onbeforepaste(t){this[c].set("onbeforepaste",t)}get onsearch(){return P.getEventListener(this,"onsearch")}set onsearch(t){this[c].set("onsearch",t)}get tagName(){return this[Z]}get prefix(){return this[Ot]}get shadowRoot(){let t=this[Ee];return t&&t[Me]==="open"?t:null}get scrollHeight(){return this[pP]}get scrollWidth(){return this[hP]}get scrollTop(){return this[Qf]}set scrollTop(t){this[Qf]=t}get scrollLeft(){return this[$f]}set scrollLeft(t){this[$f]=t}get attributes(){return this[Cu]||(this[Cu]=Fb.createProxy(this[ft])),this[Cu]}get namespaceURI(){return this[tt]}get children(){if(!this[Mr]){let t=this[dt];this[Mr]=new Ne(h,()=>t)}return this[Mr]}get classList(){return this[Eu]||(this[Eu]=new So(h,this,"class")),this[Eu]}set classList(t){this.setAttribute("class",t)}get id(){return this.getAttribute("id")||""}set id(t){this.setAttribute("id",t)}get className(){return this.getAttribute("class")||""}set className(t){this.setAttribute("class",t)}get nodeName(){return this[Z]}get localName(){return this[nt]}get role(){return this.getAttribute("role")||""}set role(t){this.setAttribute("role",t)}get previousElementSibling(){return ql.previousElementSibling(this)}get nextElementSibling(){return ql.nextElementSibling(this)}get textContent(){let t="";for(let r of this[q])(r[U]===L.elementNode||r[U]===L.textNode)&&(t+=r.textContent);return t}set textContent(t){let r=this[q];for(;r.length;)this.removeChild(r[0]);t&&this.appendChild(this[T].createTextNode(t))}get innerHTML(){return this.getHTML()}set innerHTML(t){let r=this[q];for(;r.length;)this.removeChild(r[0]);new Kr(this[m]).parse(t,this)}get outerHTML(){return new Oi().serializeToString(this)}set outerHTML(t){let r=new Kr(this[m]).parse(t)[q];this.replaceWith(...r)}get childElementCount(){return this[dt].length}get firstElementChild(){return this[dt][0]??null}get lastElementChild(){let t=this[dt];return t[t.length-1]??null}get slot(){return this.getAttributeNS(null,"slot")||""}set slot(t){this.setAttribute("slot",t)}getInnerHTML(t){let r=new Oi({allShadowRoots:!!t?.includeShadowRoots}),o="";for(let i of this[q])o+=r.serializeToString(i);return o}getHTML(t){let r=new Oi({serializableShadowRoots:!!t?.serializableShadowRoots,shadowRoots:t?.shadowRoots??null}),o="";for(let i of this[q])o+=r.serializeToString(i);return o}[(Yv=Z,Wv=nt,Hv=tt,_v=Eu,Gv=Mo,Uv=U,Vv=Ot,Ov=Ee,Dv=pP,Bv=hP,Fv=Qf,Rv=$f,Mv=ft,Iv=Cu,kv=Mr,Lv=my,Nv=Ic,Cv=c,ct)](t=!1){let r=super[ct](t);r[Z]=this[Z],r[nt]=this[nt],r[tt]=this[tt],this[Ee]?.[Oa]&&(r[Ee]=this[Ee].cloneNode(t),r[Ee][Ma]=r),r[ft]=new Wn(r);for(let o of this[ft][$].values())r[ft].setNamedItem(o.cloneNode(t));return r}remove(){Di.remove(this)}replaceWith(...t){Di.replaceWith(this,...t)}before(...t){Di.before(this,...t)}after(...t){Di.after(this,...t)}append(...t){me.append(this,...t)}prepend(...t){me.prepend(this,...t)}replaceChildren(...t){me.replaceChildren(this,...t)}insertAdjacentElement(t,r){if(t==="beforebegin"){if(!this.parentElement)return null;this.parentElement.insertBefore(r,this)}else if(t==="afterbegin")this.insertBefore(r,this.firstChild);else if(t==="beforeend")this.appendChild(r);else if(t==="afterend"){if(!this.parentElement)return null;this.parentElement.insertBefore(r,this.nextSibling)}return r}insertAdjacentHTML(t,r){let o=new Kr(this[m]).parse(r)[q];for(;o.length;)this.insertAdjacentElement(t,o[0])}insertAdjacentText(t,r){if(!r)return;let o=this[T].createTextNode(r);this.insertAdjacentElement(t,o)}setAttribute(t,r){if(RS.validateAttributeName(t,this[T][Fe],{method:"setAttribute",instance:"Element"}),t=String(t),this[tt]===Yt.html){let i=this[T].createAttribute(t);i[z]=String(r),this[ft][Xi](i)}else{let i=t.split(":"),n=null;switch(i[0]){case"xmlns":n=!i[1]||i[1]==="xlink"?Yt.xmlns:null;break;case"xlink":n=Yt.xlink;break}let a=Ve.createNode(this[T],this[m].Attr);a[tt]=n,a[st]=t,a[nt]=n&&i[1]?i[1]:t,a[Ot]=n&&i[1]?i[0]:null,a[z]=String(r),this[ft][Xi](a)}}setAttributeNS(t,r,o){let i=this[T].createAttributeNS(t,r);if(!t&&i[Ot])throw new this[m].DOMException("Failed to execute 'setAttributeNS' on 'Element': '' is an invalid namespace for attributes.",v.namespaceError);i[z]=String(o),this[ft].setNamedItemNS(i)}getAttributeNames(){let t=[];for(let r of this[ft][$].values())t.push(r[st]);return t}getAttribute(t){let r=this[ft].getNamedItem(t);return r?r[z]:null}toggleAttribute(t,r){t=t.toLowerCase();let o=this[ft].getNamedItem(t);return o?r===!0?!0:(this[ft][Pl](o),!1):r===!1?!1:(this.setAttribute(t,""),!0)}getAttributeNS(t,r){let o=this.getAttributeNodeNS(t,r);return o?o[z]:null}hasAttribute(t){return!!this.getAttributeNode(t)}hasAttributeNS(t,r){return this[ft].getNamedItemNS(t,r)!==null}hasAttributes(){return this[ft][$].size>0}removeAttribute(t){let r=this[ft].getNamedItem(t);r&&this[ft][Pl](r)}removeAttributeNS(t,r){let o=this[ft].getNamedItemNS(t,r);o&&this[ft][Pl](o)}attachShadow(t){let r=this[m];if(!t)throw new r.TypeError("Failed to execute 'attachShadow' on 'Element': 1 argument required, but only 0 present.");if(!t.mode)throw new r.TypeError("Failed to execute 'attachShadow' on 'Element': Failed to read the 'mode' property from 'ShadowRootInit': Required member is undefined.");if(t.mode!=="open"&&t.mode!=="closed")throw new r.TypeError(`Failed to execute 'attachShadow' on 'Element': Failed to read the 'mode' property from 'ShadowRootInit': The provided value '${t.mode}' is not a valid enum value of type ShadowRootMode.`);if(this[Ee])throw new r.DOMException("Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.");let o=Ve.createNode(this[T],this[m].ShadowRoot);return this[Ee]=o,o[Ma]=this,o[Me]=t.mode,o[Oa]=!!t.clonable,o[yy]=!!t.delegateFocus,o[an]=!!t.serializable,o[vs]=t.slotAssignment==="manual"?"manual":"named",o[Io](),this[Ee]}toString(){return this.outerHTML}getBoundingClientRect(){return new ns}getClientRects(){let t=new Gy(h);return t.push(this.getBoundingClientRect()),t}setPointerCapture(t){this[Ic].add(t)}hasPointerCapture(t){return this[Ic].has(t)}releasePointerCapture(t){this[Ic].delete(t)}matches(t){return!!yt.matches(this,t)}closest(t){let r=this;for(;r;){if(yt.matches(r,t))return r;r=r.parentElement}return null}querySelectorAll(t){return yt.querySelectorAll(this,t)}querySelector(t){return yt.querySelector(this,t)}getElementsByClassName(t){return me.getElementsByClassName(this,t)}getElementsByTagName(t){return me.getElementsByTagName(this,t)}getElementsByTagNameNS(t,r){return me.getElementsByTagNameNS(this,t,r)}setAttributeNode(t){return this[ft].setNamedItem(t)}setAttributeNodeNS(t){return this[ft].setNamedItemNS(t)}getAttributeNode(t){return this[ft].getNamedItem(t)}getAttributeNodeNS(t,r){return this[ft].getNamedItemNS(t,r)}removeAttributeNode(t){if(t[Lt]!==this)throw new this[m].DOMException("Failed to execute 'removeAttributeNode' on 'Element': The node provided is owned by another element.");return this[ft][Pl](t),t}scroll(t,r){if(typeof t!="object"&&arguments.length===1)throw new this[m].TypeError("Failed to execute 'scroll' on 'Element': The provided value is not of type 'ScrollToOptions'.");let o=typeof t=="object"?t:{left:t,top:r};if(o.behavior==="smooth")this[m].setTimeout(()=>{if(o.top!==void 0){let i=Number(o.top);this.scrollTop=isNaN(i)?0:i}if(o.left!==void 0){let i=Number(o.left);this.scrollLeft=isNaN(i)?0:i}});else{if(o.top!==void 0){let i=Number(o.top);this.scrollTop=isNaN(i)?0:i}if(o.left!==void 0){let i=Number(o.left);this.scrollLeft=isNaN(i)?0:i}}}scrollTo(t,r){if(typeof t!="object"&&arguments.length===1)throw new this[m].TypeError("Failed to execute 'scrollTo' on 'Element': The provided value is not of type 'ScrollToOptions'.");this.scroll(t,r)}scrollBy(t,r){if(typeof t!="object"&&arguments.length===1)throw new this[m].TypeError("Failed to execute 'scrollBy' on 'Element': The provided value is not of type 'ScrollToOptions'.");let o=typeof t=="object"?t:{left:t,top:r};this.scroll({left:this.scrollLeft+(o.left??0),top:this.scrollTop+(o.top??0),behavior:o.behavior})}scrollIntoView(t){}[vt](t,r=!1){let o=super[vt](t,r);return D(this,Zo,Ob).call(this,t),o}[Hr](t){let r=super[Hr](t);return D(this,Zo,Ob).call(this,t),r}[uo](t,r,o=!1){let i=super[uo](t,r,o);return D(this,Zo,Ob).call(this,t),i}[Qe](t,r){if(!t[st])return;let o=r?r[z]:null;if(t[st]==="slot"&&this[Y]&&this[Y][Ee]){let i=this[Y][Ee];if(i&&t[z]!==o){if(o!==null&&r){let a=i.querySelector(`slot[name="${r[z]}"]`);a&&a.dispatchEvent(new k("slotchange",{bubbles:!0}))}else{let a=i.querySelector("slot:not([name])");a&&a.dispatchEvent(new k("slotchange",{bubbles:!0}))}let n=i.querySelector(`slot[name="${t[z]}"]`);n&&n.dispatchEvent(new k("slotchange",{bubbles:!0}))}}this[t[st]]!==void 0&&t[st][0]==="o"&&t[st][1]==="n"&&this[c].delete(t[st]),t[st]==="id"&&this[it]&&(r?.[z]&&D(this,Zo,Db).call(this,r[z]),D(this,Zo,PA).call(this,t[z])),this[sn](new Jo({type:ss.attributes,target:this,attributeName:t[st],oldValue:o}))}[Yr](t){if(t[st]==="slot"&&this[Y]&&this[Y][Ee]){let r=this[Y][Ee],o=r.querySelector(`slot[name="${t[z]}"]`),i=r.querySelector("slot:not([name])");o&&o.dispatchEvent(new k("slotchange",{bubbles:!0})),i&&i.dispatchEvent(new k("slotchange",{bubbles:!0}))}t[st]==="id"&&this[it]&&D(this,Zo,Db).call(this,t[z]),this[sn](new Jo({type:ss.attributes,target:this,attributeName:t[st],oldValue:t[z]}))}[Rr](){let t=this.getAttribute("id");if(t&&D(this,Zo,PA).call(this,t),super[Rr](),this[m][Nl].enqueueReaction(this,"connectedCallback"),this[Ee])for(let r of this[q])D(this,Zo,Ob).call(this,r)}[Fr](){super[Fr]();let t=this.getAttribute("id");t&&D(this,Zo,Db).call(this,t),this[m][Nl].enqueueReaction(this,"disconnectedCallback")}[wt](){let t=this.getAttribute("id");t&&D(this,Zo,Db).call(this,t),this[m][Nl].enqueueReaction(this,"disconnectedCallback"),super[wt](),this[Ee]&&this[Ee][wt](),this[Eu]=null,this[Ee]=null,this[Cu]=null,this[Mr]=null,this[my]=null,this[c].clear(),this[ft][Es].clear(),this[ft][Eo].clear(),this[ft][$].clear()}};Zo=new WeakSet,PA=function(t){if(!t)return;let r=this[T],o=this[m];if(this[Be]&&this[Be]!==r)return;r[xs].has(t)||r[xs].set(t,{elements:[],htmlCollection:null});let i=r[xs].get(t);if(!i)return;let n=this[Vt]||this;i.elements.push(n),i.elements.length>1?(i.htmlCollection||(i.htmlCollection=new Ne(h,()=>i.elements)),(!(t in o)||o[t]===i.elements[0])&&(o[t]=i.htmlCollection)):(!(t in o)||i.htmlCollection!==null&&o[t]===i.htmlCollection)&&(o[t]=n)},Db=function(t){if(!t)return;let r=this[T],o=this[m];if(this[Be]&&this[Be]!==r)return;let i=r[xs].get(t);if(!i)return;let n=this[Vt]||this,a=i.elements.indexOf(n);a!==-1&&i.elements.splice(a,1),i.elements.length===1?(o[t]===i.htmlCollection&&(o[t]=i.elements[0]),i.htmlCollection=null):i.elements.length||(r[xs].delete(t),(o[t]===n||o[t]===i.htmlCollection)&&delete o[t])},Ob=function(t){let r=this[Ee];if(!r||!this[it])return;let o=t.getAttribute?t.getAttribute("slot"):null;if(o){let i=r.querySelector(`slot[name="${o}"]`);i&&i.dispatchEvent(new k("slotchange",{bubbles:!0}))}else if(t[U]!==L.commentNode){let i=r.querySelector("slot:not([name])");i&&i.dispatchEvent(new k("slotchange",{bubbles:!0}))}},s(xr,Yv,null),s(xr,Wv,null),s(xr,Hv,null);var Kl=class{static blur(e){let t=e[Vt]||e,r=t[T];if(r[qe]!==t||!t[it]||t.disabled)return;let o=r[cl]??null;r[qe]=null,r[po](),t.dispatchEvent(new Ms("blur",{relatedTarget:o,bubbles:!1,composed:!0,cancelable:!0})),t.dispatchEvent(new Ms("focusout",{relatedTarget:o,bubbles:!0,composed:!0,cancelable:!0}))}static focus(e){let t=e[Vt]||e,r=t[T];if(r[qe]===t||!t[it]||t.disabled||this.isInert(t))return;r[cl]=t;let o=r[qe];r[qe]!==null&&r[qe].blur(),r[cl]=null,r[qe]=t,r[po](),t.dispatchEvent(new Ms("focus",{relatedTarget:o,bubbles:!1,composed:!0})),t.dispatchEvent(new Ms("focusin",{relatedTarget:o,bubbles:!0,composed:!0}))}static isInert(e){let t=e[Vt]||e;for(;t&&typeof t.getAttribute=="function";){if(t.getAttribute("inert")!==null)return!0;t=t[Y]}return!1}};var Os=class{static kebabToCamelCase(e){let t=e.split("-");for(let r=0,o=t.length;r<o;r++)t[r]=r>0?t[r].charAt(0).toUpperCase()+t[r].slice(1):t[r];return t.join("")}static camelCaseToKebab(e){return e.toString().replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,r)=>(r?"-":"")+t.toLowerCase())}};var _y=class{constructor(e,t){if(e!==h)throw new TypeError("Illegal constructor");return new Proxy(this,{get(r,o){let i=t.getAttribute("data-"+Os.camelCaseToKebab(o));if(i!==null)return i},set(r,o,i){return t.setAttribute("data-"+Os.camelCaseToKebab(o),i),!0},deleteProperty(r,o){return t.removeAttribute("data-"+Os.camelCaseToKebab(o)),!0},ownKeys(r){let o=[];for(let i of t[ft][Eo].values())i[0][st].startsWith("data-")&&o.push(Os.kebabToCamelCase(i[0][st].replace("data-","")));return o},has(r,o){return t.hasAttribute("data-"+Os.camelCaseToKebab(o))},defineProperty(r,o,i){return i.value===void 0?!1:(t.setAttribute("data-"+Os.camelCaseToKebab(o),i.value),!0)},getOwnPropertyDescriptor(r,o){let i=t.getAttribute("data-"+Os.camelCaseToKebab(o));if(i)return{value:i,writable:!0,enumerable:!0,configurable:!0}}})}};var qv,Kv,jv,Qv,$v,Xv,zv,Jv,Zv,tT,eT,Vs,FS,rT,G=class extends xr{constructor(){super(...arguments);E(this,FS);s(this,eT,"");s(this,tT,0);s(this,Zv,0);s(this,Jv,0);s(this,zv,0);s(this,Xv,0);s(this,$v,0);s(this,Qv,0);s(this,jv,0);s(this,Kv,null);s(this,qv,null);E(this,Vs,null)}get oncancel(){return P.getEventListener(this,"oncancel")}set oncancel(t){this[c].set("oncancel",t)}get onerror(){return P.getEventListener(this,"onerror")}set onerror(t){this[c].set("onerror",t)}get onscroll(){return P.getEventListener(this,"onscroll")}set onscroll(t){this[c].set("onscroll",t)}get onselect(){return P.getEventListener(this,"onselect")}set onselect(t){this[c].set("onselect",t)}get onwheel(){return P.getEventListener(this,"onwheel")}set onwheel(t){this[c].set("onwheel",t)}get oncopy(){return P.getEventListener(this,"oncopy")}set oncopy(t){this[c].set("oncopy",t)}get oncut(){return P.getEventListener(this,"oncut")}set oncut(t){this[c].set("oncut",t)}get onpaste(){return P.getEventListener(this,"onpaste")}set onpaste(t){this[c].set("onpaste",t)}get oncompositionend(){return P.getEventListener(this,"oncompositionend")}set oncompositionend(t){this[c].set("oncompositionend",t)}get oncompositionstart(){return P.getEventListener(this,"oncompositionstart")}set oncompositionstart(t){this[c].set("oncompositionstart",t)}get oncompositionupdate(){return P.getEventListener(this,"oncompositionupdate")}set oncompositionupdate(t){this[c].set("oncompositionupdate",t)}get onblur(){return P.getEventListener(this,"onblur")}set onblur(t){this[c].set("onblur",t)}get onfocus(){return P.getEventListener(this,"onfocus")}set onfocus(t){this[c].set("onfocus",t)}get onfocusin(){return P.getEventListener(this,"onfocusin")}set onfocusin(t){this[c].set("onfocusin",t)}get onfocusout(){return P.getEventListener(this,"onfocusout")}set onfocusout(t){this[c].set("onfocusout",t)}get onkeydown(){return P.getEventListener(this,"onkeydown")}set onkeydown(t){this[c].set("onkeydown",t)}get onkeyup(){return P.getEventListener(this,"onkeyup")}set onkeyup(t){this[c].set("onkeyup",t)}get onauxclick(){return P.getEventListener(this,"onauxclick")}set onauxclick(t){this[c].set("onauxclick",t)}get onclick(){return P.getEventListener(this,"onclick")}set onclick(t){this[c].set("onclick",t)}get oncontextmenu(){return P.getEventListener(this,"oncontextmenu")}set oncontextmenu(t){this[c].set("oncontextmenu",t)}get ondblclick(){return P.getEventListener(this,"ondblclick")}set ondblclick(t){this[c].set("ondblclick",t)}get onmousedown(){return P.getEventListener(this,"onmousedown")}set onmousedown(t){this[c].set("onmousedown",t)}get onmouseenter(){return P.getEventListener(this,"onmouseenter")}set onmouseenter(t){this[c].set("onmouseenter",t)}get onmouseleave(){return P.getEventListener(this,"onmouseleave")}set onmouseleave(t){this[c].set("onmouseleave",t)}get onmousemove(){return P.getEventListener(this,"onmousemove")}set onmousemove(t){this[c].set("onmousemove",t)}get onmouseout(){return P.getEventListener(this,"onmouseout")}set onmouseout(t){this[c].set("onmouseout",t)}get onmouseover(){return P.getEventListener(this,"onmouseover")}set onmouseover(t){this[c].set("onmouseover",t)}get onmouseup(){return P.getEventListener(this,"onmouseup")}set onmouseup(t){this[c].set("onmouseup",t)}get ontouchcancel(){return P.getEventListener(this,"ontouchcancel")}set ontouchcancel(t){this[c].set("ontouchcancel",t)}get ontouchend(){return P.getEventListener(this,"ontouchend")}set ontouchend(t){this[c].set("ontouchend",t)}get ontouchmove(){return P.getEventListener(this,"ontouchmove")}set ontouchmove(t){this[c].set("ontouchmove",t)}get ontouchstart(){return P.getEventListener(this,"ontouchstart")}set ontouchstart(t){this[c].set("ontouchstart",t)}get oninvalid(){return P.getEventListener(this,"oninvalid")}set oninvalid(t){this[c].set("oninvalid",t)}get onanimationcancel(){return P.getEventListener(this,"onanimationcancel")}set onanimationcancel(t){this[c].set("onanimationcancel",t)}get onanimationend(){return P.getEventListener(this,"onanimationend")}set onanimationend(t){this[c].set("onanimationend",t)}get onanimationiteration(){return P.getEventListener(this,"onanimationiteration")}set onanimationiteration(t){this[c].set("onanimationiteration",t)}get onanimationstart(){return P.getEventListener(this,"onanimationstart")}set onanimationstart(t){this[c].set("onanimationstart",t)}get onbeforeinput(){return P.getEventListener(this,"onbeforeinput")}set onbeforeinput(t){this[c].set("onbeforeinput",t)}get oninput(){return P.getEventListener(this,"oninput")}set oninput(t){this[c].set("oninput",t)}get onchange(){return P.getEventListener(this,"onchange")}set onchange(t){this[c].set("onchange",t)}get ongotpointercapture(){return P.getEventListener(this,"ongotpointercapture")}set ongotpointercapture(t){this[c].set("ongotpointercapture",t)}get onlostpointercapture(){return P.getEventListener(this,"onlostpointercapture")}set onlostpointercapture(t){this[c].set("onlostpointercapture",t)}get onpointercancel(){return P.getEventListener(this,"onpointercancel")}set onpointercancel(t){this[c].set("onpointercancel",t)}get onpointerdown(){return P.getEventListener(this,"onpointerdown")}set onpointerdown(t){this[c].set("onpointerdown",t)}get onpointerenter(){return P.getEventListener(this,"onpointerenter")}set onpointerenter(t){this[c].set("onpointerenter",t)}get onpointerleave(){return P.getEventListener(this,"onpointerleave")}set onpointerleave(t){this[c].set("onpointerleave",t)}get onpointermove(){return P.getEventListener(this,"onpointermove")}set onpointermove(t){this[c].set("onpointermove",t)}get onpointerout(){return P.getEventListener(this,"onpointerout")}set onpointerout(t){this[c].set("onpointerout",t)}get onpointerover(){return P.getEventListener(this,"onpointerover")}set onpointerover(t){this[c].set("onpointerover",t)}get onpointerup(){return P.getEventListener(this,"onpointerup")}set onpointerup(t){this[c].set("onpointerup",t)}get ontransitioncancel(){return P.getEventListener(this,"ontransitioncancel")}set ontransitioncancel(t){this[c].set("ontransitioncancel",t)}get ontransitionend(){return P.getEventListener(this,"ontransitionend")}set ontransitionend(t){this[c].set("ontransitionend",t)}get ontransitionrun(){return P.getEventListener(this,"ontransitionrun")}set ontransitionrun(t){this[c].set("ontransitionrun",t)}get ontransitionstart(){return P.getEventListener(this,"ontransitionstart")}set ontransitionstart(t){this[c].set("ontransitionstart",t)}get accessKey(){return this[Nu]}set accessKey(t){this[Nu]=t}get contentEditable(){let t=String(this.getAttribute("contentEditable")).toLowerCase();switch(t){case"false":case"true":case"plaintext-only":return t;default:return"inherit"}}set contentEditable(t){switch(t=String(t).toLowerCase(),t){case"false":case"true":case"plaintext-only":case"inherit":this.setAttribute("contentEditable",t);break;default:throw new this[m].SyntaxError(`Failed to set the 'contentEditable' property on 'HTMLElement': The value provided ('${t}') is not one of 'true', 'false', 'plaintext-only', or 'inherit'.`)}}get isContentEditable(){let t=this.contentEditable;return t==="true"||t==="plaintext-only"?!0:t==="inherit"?this[Y]?.isContentEditable??!1:!1}get offsetHeight(){return this[cP]}get offsetWidth(){return this[dP]}get offsetLeft(){return this[bP]}get offsetTop(){return this[gP]}get clientHeight(){return this[fP]}get clientWidth(){return this[SP]}get clientLeft(){return this[PP]}get clientTop(){return this[AP]}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let r=Number(t);return isNaN(r)?-1:r}return-1}set tabIndex(t){let r=Number(t);isNaN(r)?this.setAttribute("tabindex","0"):this.setAttribute("tabindex",String(r))}get innerText(){if(!this[it])return this.textContent;let t="";for(let r of this[q])if(r[U]===L.elementNode){let o=r,i=this[m].getComputedStyle(o);if(o[Z]!=="SCRIPT"&&o[Z]!=="STYLE"&&o[Z]!=="svg"){let n=i.display;if(n!=="none"){let a=i.textTransform,y=o.innerText;(n==="block"||n==="flex")&&t&&y&&(t+=`
97
- `);let p=y;switch(a){case"uppercase":p=p.toUpperCase();break;case"lowercase":p=p.toLowerCase();break;case"capitalize":p=p.replace(/(^|\s)\S/g,d=>d.toUpperCase());break}t+=p}}}else r[U]===L.textNode&&(t+=r.textContent.replace(/[\n\r]/,""));return t}set innerText(t){let r=this[q];for(;r.length;)this.removeChild(r[0]);let o=t.split(/[\n\r]/),i=this[T];for(let n=0,a=o.length;n<a;n++)n!==0&&this.appendChild(i.createElement("br")),this.appendChild(i.createTextNode(o[n]))}get outerText(){return this.innerText}set outerText(t){if(!this[Y])throw new this[m].DOMException("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");let r=t.split(/[\n\r]/);for(let o=0,i=r.length;o<i;o++)o!==0&&this[Y].insertBefore(this[T].createElement("br"),this),this[Y].insertBefore(this[T].createTextNode(r[o]),this);this[Y].removeChild(this)}get style(){return this[xe]||(this[xe]=new go(h,this[m],{element:this})),this[xe]}set style(t){this.style.cssText=typeof t=="string"?t:""}get dataset(){var t;return this[t=aS]??(this[t]=new _y(h,this))}get dir(){return this.getAttribute("dir")||""}set dir(t){this.setAttribute("dir",t)}get hidden(){return this.getAttribute("hidden")!==null}set hidden(t){t?this.setAttribute("hidden",""):this.removeAttribute("hidden")}get inert(){return this.getAttribute("inert")!==null}set inert(t){t?this.setAttribute("inert",""):this.removeAttribute("inert")}get lang(){return this.getAttribute("lang")||""}set lang(t){this.setAttribute("lang",t)}get title(){return this.getAttribute("title")||""}set title(t){this.setAttribute("title",t)}get popover(){switch(this.getAttribute("popover")){case null:return null;case"":case"auto":return"auto";case"manual":return"manual";default:return"manual"}}set popover(t){if(t===null){this.removeAttribute("popover");return}this.setAttribute("popover",t)}click(){this.dispatchEvent(new pm("click",{bubbles:!0,composed:!0,cancelable:!0}))}blur(){Kl.blur(this)}focus(){Kl.focus(this)}[(eT=Nu,tT=cP,Zv=dP,Jv=bP,zv=gP,Xv=fP,$v=SP,Qv=PP,jv=AP,Kv=xe,qv=aS,ct)](t=!1){let r=super[ct](t);return r[Nu]=this[Nu],r}[Rr](){let t=this[m],r=this[nt],o=t.customElements[Ss];if(this.constructor===t.HTMLElement&&r.includes("-")&&o&&!u(this,Vs)){let i=D(this,FS,rT).bind(this),n=o.get(r);n?n.unshift(i):o.set(r,[i]),w(this,Vs,i)}super[Rr]()}[Fr](){let t=this[m],r=this[nt],o=t.customElements[Ss];if(this.constructor===t.HTMLElement&&r.includes("-")&&o){let i=o.get(r);if(i&&u(this,Vs)){let n=i.indexOf(u(this,Vs));n!==-1&&i.splice(n,1),i.length||o.delete(r),w(this,Vs,null)}}super[Fr]()}[Qe](t,r){super[Qe](t,r),this[m][Nl].enqueueReaction(this,"attributeChangedCallback",[t.name,r?.value??null,t.value])}[Yr](t){super[Yr](t),this[m][Nl].enqueueReaction(this,"attributeChangedCallback",[t.name,t.value,null])}[wt](){super[wt](),this[xe]=null,this[aS]=null}};Vs=new WeakMap,FS=new WeakSet,rT=function(){if(!this[Y])return;let t=this[m],r=this[nt],o=this[T].createElement(r),i=o[W];o[q]=this[q],o[dt]=this[dt],o[ul]=null,o[Mr]=null,o[it]=this[it],o[Be]=this[Be],o[Ht]=this[Ht],o[Y]=this[Y],o[Ke]=this[Ke],o[Ar]=this[Ar],o[Ro]=this[Ro],o[Mo]=this[Mo],o[W]=this[W],o[ir]=this[ir],o[ft][Es]=this[ft][Es],o[ft][Eo]=this[ft][Eo],o[ft][$]=this[ft][$];for(let d of o[ft][$].values())d[Lt]=o;this[po](),this[q]=[],this[dt]=[],this[ul]=null,this[Mr]=null,this[Y]=null,this[Be]=null,this[Ht]=null,this[Ke]=null,this[Ar]=null,this[Ro]=[],this[Mo]=null,this[W]=i,this[ir]=[],this[ft][Es]=new Map,this[ft][Eo]=new Map,this[ft][$]=new Map;for(let d of o[q])d[Y]=o;let n=o[Y][q],a=o[Y][dt];n[n.indexOf(this)]=o,a[a.indexOf(this)]=o;let y=t.customElements[Ss],p=y.get(r);if(p&&u(this,Vs)){let d=p.indexOf(u(this,Vs));d!==-1&&p.splice(d,1),p.length||y.delete(r),w(this,Vs,null)}o[it]&&(o[Ee]&&(o[Ee][it]=!0),o[Rr]())},s(G,"observedAttributes");var Hy=class{constructor(e){s(this,"element");this.element=e}getOrigin(){try{return new URL(this.getHref()).origin}catch{return""}}getHref(){if(!this.element.hasAttribute("href"))return"";try{return new URL(this.element.getAttribute("href"),this.element[T].location.href).href}catch{return this.element.getAttribute("href")}}setHref(e){this.element.setAttribute("href",e)}getProtocol(){try{return new URL(this.getHref()).protocol}catch{return""}}setProtocol(e){let t;try{t=new URL(this.getHref())}catch{return}t.protocol=e,this.element.setAttribute("href",t.href)}getUsername(){try{return new URL(this.getHref()).username}catch{return""}}setUsername(e){let t;try{t=new URL(this.getHref())}catch{return}t.username=e,this.element.setAttribute("href",t.href)}getPassword(){try{return new URL(this.getHref()).password}catch{return""}}setPassword(e){let t;try{t=new URL(this.getHref())}catch{return}t.password=e,this.element.setAttribute("href",t.href)}getHost(){try{return new URL(this.getHref()).host}catch{return""}}setHost(e){let t;try{t=new URL(this.getHref())}catch{return}t.host=e,this.element.setAttribute("href",t.href)}getHostname(){try{return new URL(this.getHref()).hostname}catch{return""}}setHostname(e){let t;try{t=new URL(this.getHref())}catch{return}t.hostname=e,this.element.setAttribute("href",t.href)}getPort(){try{return new URL(this.getHref()).port}catch{return""}}setPort(e){let t;try{t=new URL(this.getHref())}catch{return}t.port=e,this.element.setAttribute("href",t.href)}getPathname(){try{return new URL(this.getHref()).pathname}catch{return""}}setPathname(e){let t;try{t=new URL(this.getHref())}catch{return}t.pathname=e,this.element.setAttribute("href",t.href)}getSearch(){try{return new URL(this.getHref()).search}catch{return""}}setSearch(e){let t;try{t=new URL(this.getHref())}catch{return}t.search=e,this.element.setAttribute("href",t.href)}getHash(){let e=this.element.getAttribute("href");if(e?.[0]==="#")return e;let t;try{t=new URL(this.getHref())}catch{return""}return t.hash}setHash(e){let t;try{t=new URL(this.getHref())}catch{return}t.hash=e,this.element.setAttribute("href",t.href)}};var oT,iT,er,dp=class extends(iT=G,oT=Fo,iT){constructor(){super(...arguments);s(this,oT,null);E(this,er,new Hy(this))}get download(){return this.getAttribute("download")||""}set download(t){this.setAttribute("download",t)}get hash(){return u(this,er).getHash()}set hash(t){u(this,er).setHash(t)}get href(){return u(this,er).getHref()}set href(t){u(this,er).setHref(t)}get hreflang(){return this.getAttribute("hreflang")||""}set hreflang(t){this.setAttribute("hreflang",t)}get origin(){return u(this,er).getOrigin()}get ping(){return this.getAttribute("ping")||""}set ping(t){this.setAttribute("ping",t)}get protocol(){return u(this,er).getProtocol()}set protocol(t){u(this,er).setProtocol(t)}get username(){return u(this,er).getUsername()}set username(t){u(this,er).setUsername(t)}get password(){return u(this,er).getPassword()}set password(t){u(this,er).setPassword(t)}get pathname(){return u(this,er).getPathname()}set pathname(t){u(this,er).setPathname(t)}get port(){return u(this,er).getPort()}set port(t){u(this,er).setPort(t)}get host(){return u(this,er).getHost()}set host(t){u(this,er).setHost(t)}get hostname(){return u(this,er).getHostname()}set hostname(t){u(this,er).setHostname(t)}get referrerPolicy(){return this.getAttribute("referrerPolicy")||""}set referrerPolicy(t){this.setAttribute("referrerPolicy",t)}get rel(){return this.getAttribute("rel")||""}set rel(t){this.setAttribute("rel",t)}get relList(){return this[Fo]||(this[Fo]=new So(h,this,"rel")),this[Fo]}set relList(t){this.setAttribute("rel",t)}get search(){return u(this,er).getSearch()}set search(t){u(this,er).setSearch(t)}get target(){return this.getAttribute("target")||""}set target(t){this.setAttribute("target",t)}get text(){return this.textContent}set text(t){this.textContent=t}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let r=Number(t);return isNaN(r)?0:r}return 0}set tabIndex(t){super.tabIndex=t}toString(){return this.href}dispatchEvent(t){let r=super.dispatchEvent(t);if(!t[Br]&&t.type==="click"&&t instanceof nr&&(t.eventPhase===de.none||t.eventPhase===de.bubbling)){let o=this.href;if(o){let i=[];this.relList.contains("noreferrer")&&i.push("noreferrer"),this.relList.contains("noopener")&&i.push("noopener"),this[m].open(o,this.target||"_self",i.join(",")),this[m].closed&&t.stopImmediatePropagation()}}return r}};er=new WeakMap;var sT,nT,rr,bp=class extends(nT=G,sT=Fo,nT){constructor(){super(...arguments);s(this,sT,null);E(this,rr,new Hy(this))}get alt(){return this.getAttribute("alt")||""}set alt(t){this.setAttribute("alt",t)}get coords(){return this.getAttribute("coords")||""}set coords(t){this.setAttribute("coords",t)}get shape(){return this.getAttribute("shape")||""}set shape(t){this.setAttribute("shape",t)}get download(){return this.getAttribute("download")||""}set download(t){this.setAttribute("download",t)}get referrerPolicy(){return this.getAttribute("referrerPolicy")||""}set referrerPolicy(t){this.setAttribute("referrerPolicy",t)}get ping(){return this.getAttribute("ping")||""}set ping(t){this.setAttribute("ping",t)}get rel(){return this.getAttribute("rel")||""}set rel(t){this.setAttribute("rel",t)}get relList(){return this[Fo]||(this[Fo]=new So(h,this,"rel")),this[Fo]}set relList(t){this.setAttribute("rel",t)}get target(){return this.getAttribute("target")||""}set target(t){this.setAttribute("target",t)}get origin(){return u(this,rr).getOrigin()}get href(){return u(this,rr).getHref()}set href(t){u(this,rr).setHref(t)}get protocol(){return u(this,rr).getProtocol()}set protocol(t){u(this,rr).setProtocol(t)}get username(){return u(this,rr).getUsername()}set username(t){u(this,rr).setUsername(t)}get password(){return u(this,rr).getPassword()}set password(t){u(this,rr).setPassword(t)}get host(){return u(this,rr).getHost()}set host(t){u(this,rr).setHost(t)}get hostname(){return u(this,rr).getHostname()}set hostname(t){u(this,rr).setHostname(t)}get port(){return u(this,rr).getPort()}set port(t){u(this,rr).setPort(t)}get pathname(){return u(this,rr).getPathname()}set pathname(t){u(this,rr).setPathname(t)}get search(){return u(this,rr).getSearch()}set search(t){u(this,rr).setSearch(t)}get hash(){return u(this,rr).getHash()}set hash(t){u(this,rr).setHash(t)}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let r=Number(t);return isNaN(r)?0:r}return 0}set tabIndex(t){super.tabIndex=t}toString(){return this.href}dispatchEvent(t){let r=super.dispatchEvent(t);if(!t[Br]&&t[zt]==="click"&&t[eo]===de.none&&t instanceof nr){let o=this.href;o&&(this[m].open(o,this.target||"_self"),this[m].closed&&t.stopImmediatePropagation())}return r}};rr=new WeakMap;var jl=class{constructor(e){if(e!==h)throw new TypeError("Illegal constructor")}get length(){return 0}get[Symbol.toStringTag](){return"TimeRanges"}toLocaleString(){return"[object TimeRanges]"}toString(){return"[object TimeRanges]"}start(e){return 0}end(e){return 0}};import BU from"crypto";var gp=class extends k{constructor(t,r=null){super(t,r);s(this,"track");this.track=r?.track??null}};var lT,aT,Am=class l extends(aT=Tt,lT=As,aT){constructor(t){super();s(this,"active",!0);s(this,"id",BU.randomUUID());s(this,"onaddtrack",null);s(this,"onremovetrack",null);s(this,lT,[]);if(!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);t!==void 0&&(this[As]=t instanceof l?t[As].slice():t)}addTrack(t){this[As].includes(t)||(this[As].push(t),this.dispatchEvent(new gp("addtrack",{track:t})))}clone(){return new this.constructor(this)}getAudioTracks(){return this[As].filter(t=>t.kind==="audio")}getTrackById(t){for(let r of this[As])if(r.id===t)return r;return null}getVideoTracks(){return this[As].filter(t=>t.kind==="video")}removeTrack(t){let r=this[As].indexOf(t);r!==-1&&(this[As].splice(r,1),this.dispatchEvent(new gp("removetrack",{track:t})))}};var AA;(function(l){l.subtitles="subtitles",l.captions="captions",l.descriptions="descriptions",l.chapters="chapters",l.metadata="metadata"})(AA||(AA={}));var Yn=AA;var mT,yT,uT,pT,hT,cT,dT,bT,gT,fT,ST,PT,AT,wT,ET,xT,vT,TT,CT,NT,LT,kT,IT,qn=class extends G{constructor(){super(...arguments);s(this,IT,1);s(this,kT,!0);s(this,LT,0);s(this,NT,1);s(this,CT,1);s(this,TT,!1);s(this,vT,!1);s(this,xT,!0);s(this,ET,new jl(h));s(this,wT,NaN);s(this,AT,null);s(this,PT,!1);s(this,ST,0);s(this,fT,0);s(this,gT,!1);s(this,bT,new jl(h));s(this,dT,"");s(this,cT,new jl(h));s(this,hT,new this[m].RemotePlayback);s(this,pT,null);s(this,uT,null);s(this,yT,null);s(this,mT,[])}get onabort(){return P.getEventListener(this,"onabort")}set onabort(t){this[c].set("onabort",t)}get oncanplay(){return P.getEventListener(this,"oncanplay")}set oncanplay(t){this[c].set("oncanplay",t)}get oncanplaythrough(){return P.getEventListener(this,"oncanplaythrough")}set oncanplaythrough(t){this[c].set("oncanplaythrough",t)}get ondurationchange(){return P.getEventListener(this,"ondurationchange")}set ondurationchange(t){this[c].set("ondurationchange",t)}get onemptied(){return P.getEventListener(this,"onemptied")}set onemptied(t){this[c].set("onemptied",t)}get onended(){return P.getEventListener(this,"onended")}set onended(t){this[c].set("onended",t)}get onloadeddata(){return P.getEventListener(this,"onloadeddata")}set onloadeddata(t){this[c].set("onloadeddata",t)}get onloadedmetadata(){return P.getEventListener(this,"onloadedmetadata")}set onloadedmetadata(t){this[c].set("onloadedmetadata",t)}get onloadstart(){return P.getEventListener(this,"onloadstart")}set onloadstart(t){this[c].set("onloadstart",t)}get onpause(){return P.getEventListener(this,"onpause")}set onpause(t){this[c].set("onpause",t)}get onplay(){return P.getEventListener(this,"onplay")}set onplay(t){this[c].set("onplay",t)}get onplaying(){return P.getEventListener(this,"onplaying")}set onplaying(t){this[c].set("onplaying",t)}get onprogress(){return P.getEventListener(this,"onprogress")}set onprogress(t){this[c].set("onprogress",t)}get onratechange(){return P.getEventListener(this,"onratechange")}set onratechange(t){this[c].set("onratechange",t)}get onresize(){return P.getEventListener(this,"onresize")}set onresize(t){this[c].set("onresize",t)}get onseeked(){return P.getEventListener(this,"onseeked")}set onseeked(t){this[c].set("onseeked",t)}get onseeking(){return P.getEventListener(this,"onseeking")}set onseeking(t){this[c].set("onseeking",t)}get onstalled(){return P.getEventListener(this,"onstalled")}set onstalled(t){this[c].set("onstalled",t)}get onsuspend(){return P.getEventListener(this,"onsuspend")}set onsuspend(t){this[c].set("onsuspend",t)}get ontimeupdate(){return P.getEventListener(this,"ontimeupdate")}set ontimeupdate(t){this[c].set("ontimeupdate",t)}get onvolumechange(){return P.getEventListener(this,"onvolumechange")}set onvolumechange(t){this[c].set("onvolumechange",t)}get onwaiting(){return P.getEventListener(this,"onwaiting")}set onwaiting(t){this[c].set("onwaiting",t)}get buffered(){return this[vP]}get duration(){return this[TP]}get error(){return this[hr]}get ended(){return this[CP]}get networkState(){return this[NP]}get readyState(){return this[Ia]}get remote(){return this[MP]}get seeking(){return this[LP]}get seekable(){return this[kP]}get sinkId(){return this[uS]}get played(){return this[IP]}get autoplay(){return this.getAttribute("autoplay")!==null}set autoplay(t){t?this.setAttribute("autoplay",""):this.removeAttribute("autoplay")}get controls(){return this.getAttribute("controls")!==null}set controls(t){t?this.setAttribute("controls",""):this.removeAttribute("controls")}get loop(){return this.getAttribute("loop")!==null}set loop(t){t?this.setAttribute("loop",""):this.removeAttribute("loop")}get preload(){return this.getAttribute("preload")||"auto"}set preload(t){this.setAttribute("preload",t)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[T].location.href).href}catch{return this.getAttribute("src")}}set src(t){this.setAttribute("src",t),t&&(this.dispatchEvent(new k("canplay",{bubbles:!1,cancelable:!1})),this.dispatchEvent(new k("durationchange",{bubbles:!1,cancelable:!1})))}get controlsList(){return this[Gc]===null&&(this[Gc]=new So(h,this,"controlslist")),this[Gc]}set controlsList(t){this.setAttribute("controlslist",t)}get mediaKeys(){return this[yS]}get muted(){return this[Lu]?this[Lu]:this[ly]?!1:this.getAttribute("muted")!==null}set muted(t){this[Lu]=!!t,!t&&!this[ly]?this.removeAttribute("muted"):this.setAttribute("muted","")}get defaultMuted(){return this[ly]}set defaultMuted(t){this[ly]=!!t,!this[ly]&&!this[Lu]?this.removeAttribute("muted"):this.setAttribute("muted","")}get disableRemotePlayback(){return this.getAttribute("disableremoteplayback")!==null}set disableRemotePlayback(t){t?this.setAttribute("disableremoteplayback",""):this.removeAttribute("disableremoteplayback")}get srcObject(){return this[pS]}set srcObject(t){if(t!==null&&!(t instanceof Am))throw new this[m].TypeError("Failed to set the 'srcObject' property on 'HTMLMediaElement': The provided value is not of type 'MediaStream'.");this[pS]=t}get textTracks(){let t=[];for(let r of this[oS])t.push(r);for(let r of this.querySelectorAll("track")[$])t.push(r.track);return new this[m].TextTrackList(h,t)}get currentSrc(){let t=this.src;if(t)return t;let r=this.querySelector("source");return r?r.src:""}get volume(){return this[Jf]}set volume(t){let r=Number(t);if(isNaN(r))throw new this[m].TypeError("Failed to set the 'volume' property on 'HTMLMediaElement': The provided double value is non-finite.");if(r<0||r>1)throw new this[m].DOMException(`Failed to set the 'volume' property on 'HTMLMediaElement': The volume provided (${r}) is outside the range [0, 1].`,v.indexSizeError);this[Jf]=r}get crossOrigin(){let t=this.getAttribute("crossorigin");return t==="use-credentials"?"use-credentials":t!==null?"anonymous":null}set crossOrigin(t){this.setAttribute("crossorigin",t)}get currentTime(){return this[Zf]}set currentTime(t){let r=Number(t);if(isNaN(r))throw new this[m].TypeError("Failed to set the 'currentTime' property on 'HTMLMediaElement': The provided double value is non-finite.");this[Zf]=r}get playbackRate(){return this[tS]}set playbackRate(t){let r=Number(t);if(isNaN(r))throw new this[m].TypeError("Failed to set the 'playbackRate' property on 'HTMLMediaElement': The provided double value is non-finite.");this[tS]=r}get defaultPlaybackRate(){return this[eS]}set defaultPlaybackRate(t){let r=Number(t);if(isNaN(r))throw new this[m].TypeError("Failed to set the 'defaultPlaybackRate' property on 'HTMLMediaElement': The provided double value is non-finite.");this[eS]=r}get preservesPitch(){return this[rS]}set preservesPitch(t){this[rS]=!!t}get paused(){return this[ny]}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let r=Number(t);return isNaN(r)?0:r}return 0}set tabIndex(t){super.tabIndex=t}addTextTrack(t,r,o){let i=this[m];if(arguments.length===0)throw new i.TypeError("Failed to execute 'addTextTrack' on 'HTMLMediaElement': 1 argument required, but only 0 present.");if(!Yn[t])throw new i.TypeError(`Failed to execute 'addTextTrack' on 'HTMLMediaElement': The provided value '${t}' is not a valid enum value of type TextTrackKind.`);let n=new i.TextTrack(h);return n[ui]=t,n[wl]=r||"",n[py]=o||"",this[oS].push(n),n}pause(){this[ny]||(this[ny]=!0,this.dispatchEvent(new k("pause",{bubbles:!1,cancelable:!1})))}async play(){this[ny]&&(this[ny]=!1,this.dispatchEvent(new k("play",{bubbles:!1,cancelable:!1})),this.dispatchEvent(new k("playing",{bubbles:!1,cancelable:!1})))}canPlayType(t){return""}fastSeek(t){}load(){this.dispatchEvent(new k("emptied",{bubbles:!1,cancelable:!1}))}async setMediaKeys(t){this[yS]=t}async setSinkId(t){this[uS]=t}captureStream(){return new this[m].MediaStream}[(IT=Jf,kT=ny,LT=Zf,NT=tS,CT=eS,TT=Lu,vT=ly,xT=rS,ET=vP,wT=TP,AT=hr,PT=CP,ST=NP,fT=Ia,gT=LP,bT=kP,dT=uS,cT=IP,hT=MP,pT=Gc,uT=yS,yT=pS,mT=oS,ct)](t=!1){return super[ct](t)}};var wm=class extends qn{};var fp=class extends G{get href(){if(!this.hasAttribute("href"))return this[T].location.href;try{return new URL(this.getAttribute("href"),this[T].location.href).href}catch{return this.getAttribute("href")}}set href(e){this.setAttribute("href",e)}get target(){return this.getAttribute("target")||""}set target(e){this.setAttribute("target",e)}[ct](e=!1){return super[ct](e)}};var Sp=class extends G{get onafterprint(){return P.getEventListener(this,"onafterprint")}set onafterprint(e){this[c].set("onafterprint",e)}get onbeforeprint(){return P.getEventListener(this,"onbeforeprint")}set onbeforeprint(e){this[c].set("onbeforeprint",e)}get onbeforeunload(){return P.getEventListener(this,"onbeforeunload")}set onbeforeunload(e){this[c].set("onbeforeunload",e)}get ongamepadconnected(){return P.getEventListener(this,"ongamepadconnected")}set ongamepadconnected(e){this[c].set("ongamepadconnected",e)}get ongamepaddisconnected(){return P.getEventListener(this,"ongamepaddisconnected")}set ongamepaddisconnected(e){this[c].set("ongamepaddisconnected",e)}get onhashchange(){return P.getEventListener(this,"onhashchange")}set onhashchange(e){this[c].set("onhashchange",e)}get onlanguagechange(){return P.getEventListener(this,"onlanguagechange")}set onlanguagechange(e){this[c].set("onlanguagechange",e)}get onmessage(){return P.getEventListener(this,"onmessage")}set onmessage(e){this[c].set("onmessage",e)}get onmessageerror(){return P.getEventListener(this,"onmessageerror")}set onmessageerror(e){this[c].set("onmessageerror",e)}get onoffline(){return P.getEventListener(this,"onoffline")}set onoffline(e){this[c].set("onoffline",e)}get ononline(){return P.getEventListener(this,"ononline")}set ononline(e){this[c].set("ononline",e)}get onpagehide(){return P.getEventListener(this,"onpagehide")}set onpagehide(e){this[c].set("onpagehide",e)}get onpageshow(){return P.getEventListener(this,"onpageshow")}set onpageshow(e){this[c].set("onpageshow",e)}get onpopstate(){return P.getEventListener(this,"onpopstate")}set onpopstate(e){this[c].set("onpopstate",e)}get onrejectionhandled(){return P.getEventListener(this,"onrejectionhandled")}set onrejectionhandled(e){this[c].set("onrejectionhandled",e)}get onstorage(){return P.getEventListener(this,"onstorage")}set onstorage(e){this[c].set("onstorage",e)}get onunhandledrejection(){return P.getEventListener(this,"onunhandledrejection")}set onunhandledrejection(e){this[c].set("onunhandledrejection",e)}get onunload(){return P.getEventListener(this,"onunload")}set onunload(e){this[c].set("onunload",e)}};var Pp=class extends G{};var DU=/^([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22))*\x40([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d))*$/,OU=/^(?:(?:https?|HTTPS?|ftp|FTP):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-zA-Z\u00a1-\uffff0-9]-*)*[a-zA-Z\u00a1-\uffff0-9]+)(?:\.(?:[a-zA-Z\u00a1-\uffff0-9]-*)*[a-zA-Z\u00a1-\uffff0-9]+)*)(?::\d{2,5})?(?:[\/?#]\S*)?$/,Po=class{constructor(e){s(this,"element");this.element=e}get badInput(){return this.element[nt]==="input"&&(this.element.type==="number"||this.element.type==="range")&&this.element.value.length>0&&!/^[-+]?(?:\d+|\d*[.,]\d+)$/.test(this.element.value)}get customError(){return this.element[_e].length>0}get patternMismatch(){return this.element[nt]==="input"&&this.element.hasAttribute("pattern")&&this.element.value.length>0&&this.element.value.replace(new RegExp(this.element.getAttribute("pattern")),"").length>0}get rangeOverflow(){return this.element[nt]==="input"&&this.element.hasAttribute("max")&&(this.element.type==="number"||this.element.type==="range")&&this.element.value.length>0&&Number(this.element.value)>Number(this.element.getAttribute("max"))}get rangeUnderflow(){return this.element[nt]==="input"&&this.element.hasAttribute("min")&&(this.element.type==="number"||this.element.type==="range")&&this.element.value.length>0&&Number(this.element.value)<Number(this.element.getAttribute("min"))}get stepMismatch(){return this.element[nt]==="input"&&(this.element.type==="number"||this.element.type==="range")&&(this.element.hasAttribute("step")&&this.element.getAttribute("step")!=="any"&&Number(this.element.value)%Number(this.element.getAttribute("step"))!==0||!this.element.hasAttribute("step")&&Number(this.element.value)%1!==0)}get tooLong(){return(this.element[nt]==="input"||this.element[nt]==="textarea")&&this.element.maxLength>0&&this.element.value.length>this.element.maxLength}get tooShort(){return(this.element[nt]==="input"||this.element[nt]==="textarea")&&this.element.minLength>0&&this.element.value.length>0&&this.element.value.length<this.element.minLength}get typeMismatch(){return this.element[nt]==="input"&&this.element.value.length>0&&(this.element.type==="email"&&!DU.test(this.element.value)||this.element.type==="url"&&!OU.test(this.element.value))}get valueMissing(){if(!this.element.required||this.element[nt]==="object"||this.element[nt]==="output")return!1;if(this.element[nt]==="input"){if(this.element.type==="checkbox")return!this.element.checked;if(this.element.type==="radio"){if(this.element.checked)return!1;if(!this.element.name)return!0;let e=this.element[Ht]||this.element.getRootNode();return!e||!e.querySelector(`input[name="${this.element.name}"]:checked`)}}return this.element.value.length===0}get valid(){return!this.badInput&&!this.customError&&!this.patternMismatch&&!this.rangeOverflow&&!this.rangeUnderflow&&!this.stepMismatch&&!this.tooLong&&!this.tooShort&&!this.typeMismatch&&!this.valueMissing}};var Ao=class{static getAssociatedLabelElements(e){let t=e.id,r;t&&e[it]?r=(e[Be]||e[T]).querySelectorAll(`label[for="${t}"]`)[$]:r=[];let o=e[Y];for(;o;){if(o.tagName==="LABEL"){r.push(o);break}o=o[Y]}return new Ii(h,r)}};import{URL as VU}from"url";var UU=["submit","reset","button","menu"],MT,RT,FT,BT,DT,Ap=class extends(DT=G,BT=_e,FT=pr,RT=Ht,MT=Va,DT){constructor(){super(...arguments);s(this,BT,"");s(this,FT,new Po(this));s(this,RT,null);s(this,MT,null)}get validationMessage(){return this[_e]}get validity(){return this[pr]}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}get type(){let t=this.getAttribute("type");return t===null||!UU.includes(t)?"submit":t}set type(t){this.setAttribute("type",t)}get formAction(){if(!this.hasAttribute("formaction"))return this[T].location.href;try{return new VU(this.getAttribute("formaction"),this[T].location.href).href}catch{return""}}set formAction(t){this.setAttribute("formaction",t)}get formEnctype(){return this.getAttribute("formenctype")||""}set formEnctype(t){this.setAttribute("formenctype",t)}get formMethod(){return this.getAttribute("formmethod")||""}set formMethod(t){this.setAttribute("formmethod",t)}get formNoValidate(){return this.getAttribute("formnovalidate")!==null}set formNoValidate(t){t?this.setAttribute("formnovalidate",""):this.removeAttribute("formnovalidate")}get formTarget(){return this.getAttribute("formtarget")||""}set formTarget(t){this.setAttribute("formtarget",t)}get form(){if(this[Ht])return this[Ht];let t=this.getAttribute("form");return!t||!this[it]?null:this[T].getElementById(t)}get labels(){return Ao.getAssociatedLabelElements(this)}get popoverTargetElement(){return this[Va]}set popoverTargetElement(t){if(t!==null&&!(t instanceof G))throw new this[m].TypeError("Failed to set the 'popoverTargetElement' property on 'HTMLInputElement': Failed to convert value to 'Element'.");this[Va]=t}get popoverTargetAction(){let t=this.getAttribute("popovertargetaction");return t===null||t!=="hide"&&t!=="show"&&t!=="toggle"?"toggle":t}set popoverTargetAction(t){this.setAttribute("popovertargetaction",t)}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let r=Number(t);return isNaN(r)?0:r}return 0}set tabIndex(t){super.tabIndex=t}checkValidity(){let t=this.disabled||this.type==="reset"||this.type==="button"||this[pr].valid;return t||this.dispatchEvent(new k("invalid",{bubbles:!0,cancelable:!0})),t}reportValidity(){return this.checkValidity()}setCustomValidity(t){this[_e]=String(t)}dispatchEvent(t){if(t.type==="click"&&t instanceof nr&&t.eventPhase===de.none&&this.disabled)return!1;let r=super.dispatchEvent(t);if(!t[Br]&&t.type==="click"&&t.eventPhase===de.none&&t instanceof nr){let o=this.type;if(o==="submit"||o==="reset"){let i=this.form;i&&(o==="submit"&&this[it]?i.requestSubmit(this):o==="reset"&&i.reset())}}return r}};var Vb=class{constructor(e,t){s(this,"height");s(this,"width");this.width=e,this.height=t}close(){}};var Ub=class{constructor(e,t){s(this,"width");s(this,"height");this.width=e,this.height=t}getContext(e,t){return null}async convertToBlob(e){return new be([])}transferToImageBitmap(){return new Vb(this.width,this.height)}};var OT="S3F/aBCdEfGHIjKlMnOpQRStUvWxYz1234567890+1AbC2DEf2GHi3jK34le+ab12C3+1aBCdEf==",wp=class extends G{get oncontextlost(){return P.getEventListener(this,"oncontextlost")}set oncontextlost(e){this[c].set("oncontextlost",e)}get oncontextrestored(){return P.getEventListener(this,"oncontextrestored")}set oncontextrestored(e){this[c].set("oncontextrestored",e)}get onwebglcontextcreationerror(){return P.getEventListener(this,"onwebglcontextcreationerror")}set onwebglcontextcreationerror(e){this[c].set("onwebglcontextcreationerror",e)}get onwebglcontextlost(){return P.getEventListener(this,"onwebglcontextlost")}set onwebglcontextlost(e){this[c].set("onwebglcontextlost",e)}get onwebglcontextrestored(){return P.getEventListener(this,"onwebglcontextrestored")}set onwebglcontextrestored(e){this[c].set("onwebglcontextrestored",e)}get width(){let e=this.getAttribute("width");return e!==null?Number(e):300}set width(e){this.setAttribute("width",String(e))}get height(){let e=this.getAttribute("height");return e!==null?Number(e):150}set height(e){this.setAttribute("height",String(e))}captureStream(e){let t=new this[m].MediaStream,r=new this[m].CanvasCaptureMediaStreamTrack(h,this);return r[ui]="video",r[ws].deviceId=OT,r[ws].aspectRatio.max=this.width,r[ws].height.max=this.height,r[ws].width.max=this.width,r[Ra].deviceId=OT,e!==void 0&&(r[ws].frameRate.max=e,r[Ra].frameRate=e),t.addTrack(r),t}getContext(e,t){return null}toDataURL(e,t){return""}toBlob(e,t,r){e(new be([]))}transferControlToOffscreen(){return new Ub(this.width,this.height)}};var Ep=class extends G{};var xp=class extends G{get value(){return this.getAttribute("value")||""}set value(e){this.setAttribute("value",e)}};var VT,UT,vp=class extends(UT=G,VT=ln,UT){constructor(){super(...arguments);s(this,VT,null)}get options(){return this[ln]||(this[ln]=me.getElementsByTagName(this,"OPTION")),this[ln]}};var Tp=class extends G{get ontoggle(){return P.getEventListener(this,"ontoggle")}set ontoggle(e){this[c].set("ontoggle",e)}get open(){return this.getAttribute("open")!==null}set open(e){e?this.setAttribute("open",""):this.removeAttribute("open")}[Qe](e,t){super[Qe](e,t),e[st]==="open"&&e[z]!==t?.[z]&&this.dispatchEvent(new k("toggle"))}[Yr](e){super[Yr](e),e&&e[st]==="open"&&this.dispatchEvent(new k("toggle"))}dispatchEvent(e){let t=super.dispatchEvent(e);if(!e[Br]&&e.type==="click"&&e.eventPhase===de.bubbling&&e instanceof nr){let r=e[Zr];if(r)if(r[nt]==="summary"&&r[Y]===this)this.open=!this.open;else{let o=r;for(let i of this[dt])if(i[nt]==="summary"){o=i;break}o&&o.contains(r)&&(this.open=!this.open)}}return t}};var GT,_T,Cp=class extends(_T=G,GT=zf,_T){constructor(){super(...arguments);s(this,GT,"")}get oncancel(){return P.getEventListener(this,"oncancel")}set oncancel(t){this[c].set("oncancel",t)}get onclose(){return P.getEventListener(this,"onclose")}set onclose(t){this[c].set("onclose",t)}get returnValue(){return this[zf]}set returnValue(t){this[zf]=String(t)}set open(t){t?this.setAttribute("open",""):this.removeAttribute("open")}get open(){return this.getAttribute("open")!==null}close(t){let r=this.open;this.removeAttribute("open"),this.returnValue=t!==void 0?String(t):"",r&&this.dispatchEvent(new k("close"))}showModal(){this.setAttribute("open","")}show(){this.setAttribute("open","")}};var Np=class extends G{};var Lp=class extends G{get height(){return this.getAttribute("height")||""}set height(e){this.setAttribute("height",e)}get width(){return this.getAttribute("width")||""}set width(e){this.setAttribute("width",e)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[T].location.href).href}catch{return this.getAttribute("src")}}set src(e){this.setAttribute("src",e)}get type(){return this.getAttribute("type")||""}set type(e){this.setAttribute("type",e)}};var HT,WT,YT,Em=class extends(YT=G,WT=nn,HT=Ht,YT){constructor(){super(...arguments);s(this,WT,null);s(this,HT,null)}get elements(){return this[nn]||(this[nn]=new Ne(h,()=>yt.querySelectorAll(this,"input,button,textarea,select")[$])),this[nn]}get form(){if(this[Ht])return this[Ht];let t=this.getAttribute("form");return!t||!this[it]?null:this[T].getElementById(t)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get type(){return"fieldset"}get validationMessage(){return""}get willValidate(){return!1}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}checkValidity(){return!0}reportValidity(){return!0}setCustomValidity(t){}};var xm=class extends Ne{constructor(e,t){super(e,()=>t[Do]()),this[Lt]=t}namedItem(e){return this[Lt][Bc](e)}};var Us=class{static createChildFrame(e){let t=new e.constructor(e.page);return t.parentFrame=e,e.childFrames.push(t),t}static destroyFrame(e){let t=e.page.context.browser[_r];return e.closed?Promise.resolve():(e.closed=!0,new Promise((r,o)=>{if(!e.window){r();return}if(e.parentFrame){let i=e.parentFrame.childFrames.indexOf(e);i!==-1&&e.parentFrame.childFrames.splice(i,1)}if(!e.childFrames.length){e[gt].destroy().then(()=>{t&&e.window&&t.disconnect(e.window),e.window={closed:!0},e[xo]=null,e[ji]=null,e[fe]&&(e[fe].navigation=[]),r()}).catch(i=>o(i)),e.window&&e.window[wt]();return}Promise.all(e.childFrames.slice().map(i=>this.destroyFrame(i))).then(()=>{e[gt].destroy().then(()=>{t&&e.window&&t.disconnect(e.window),e.window={closed:!0},e[xo]=null,e[ji]=null,e[fe]&&(e[fe].navigation=[]),r()}).catch(i=>o(i)),e.window&&e.window[wt]()}).catch(i=>o(i))}))}};var wA;(function(l){l.anyOrigin="anyOrigin",l.sameOrigin="sameOrigin",l.strictOrigin="strictOrigin"})(wA||(wA={}));var kp=wA;var Ip=class{static validateCrossOriginPolicy(e,t){let r=e.page.context.browser.settings,o=e.page.mainFrame.window.location;return e[xo]?o=e[xo].window.location:e.parentFrame&&(o=e.parentFrame.window.location),!(r.navigation.crossOriginPolicy===kp.sameOrigin&&o.protocol!=="about:"&&t.protocol!=="about:"&&t.protocol!=="javascript:"&&o.origin!==t.origin||r.navigation.crossOriginPolicy===kp.strictOrigin&&o.protocol==="https:"&&t.protocol==="http:")}static validateFrameNavigation(e){let t=e.page.context.browser.settings;return!(e.page.context.browser.windowClass&&e.page.context===e.page.context.browser.defaultContext&&e.page.context.pages[0]===e.page&&e.page.mainFrame===e||t.navigation.disableMainFrameNavigation&&e.page.mainFrame===e||t.navigation.disableChildFrameNavigation&&e.page.mainFrame!==e||t.navigation.disableChildPageNavigation&&e[xo])}};var so=class l{static async navigate(e){let{windowClass:t,frame:r,url:o,formData:i,method:n,goToOptions:a,disableHistory:y}=e,p=r.page.context.browser[_r],d=a?.referrer||r.window.location.origin,b=Co.getRelativeURL(r,o),f=new URL(b.href.split("#")[0]),S=new URL(r.url.split("#")[0]),M=()=>{let ur=r[fe].navigation;r[fe].navigation=[];for(let mi of ur)mi()};if(!r.window)throw new Error('The frame has been destroyed, the "window" property is not set.');if(f.href===S.href&&b.hash&&b.hash!==r.window?.location.hash){let ur=r[je];return y||(ur.currentItem.popState=!0,ur.push({title:"",href:b.href,state:null,popState:!0,scrollRestoration:is.manual,method:n||(i?"POST":"GET"),formData:i||null})),r.window.location[yo](r,b.href),null}if(b.protocol==="javascript:"){if(r&&r.page.context.browser.settings.enableJavaScriptEvaluation){let ur=r.window[yi],mi=r[gt],Ea=ur.startTask(),Kf=b.href.replace("javascript:","");await new Promise(oe=>{r.window.requestAnimationFrame(()=>{let _V=setImmediate(()=>{mi.endTask(HV),oe(null)}),HV=mi.startTask(()=>()=>{clearImmediate(_V),oe(null)});r.window[Ci](Kf,{filename:r.url})})}),ur.endTask(Ea),M()}return null}if(!Ip.validateCrossOriginPolicy(r,b))return null;if(!Ip.validateFrameNavigation(r))return r.page.context.browser.settings.navigation.disableFallbackToSetURL||r.window.location[yo](r,b.href),null;y||r[je].push({title:"",href:b.href,state:null,popState:!1,scrollRestoration:is.auto,method:n||(i?"POST":"GET"),formData:i||null});let N=r.window,K=r[gt],mt=N.innerWidth,Nt=N.innerHeight,qt=N.devicePixelRatio,at=r.parentFrame?r.parentFrame.window:r.page.mainFrame.window,xt=r.page.mainFrame.window;r[gt]=new ts(r),r.window=new t(r,{url:b.href,width:mt,height:Nt}),r.window[Oo]=at,r.window[zi]=xt,r.window.devicePixelRatio=qt,p&&p.observe(r.window),d&&(r.window.document[zr]=d);let It=r[gt].startTask(),At=()=>{K.destroy().then(()=>{p&&p.disconnect(N),r[gt].endTask(It)}),N[wt]()};if(r.childFrames.length?Promise.all(r.childFrames.map(ur=>Us.destroyFrame(ur))).then(At):At(),b.protocol==="about:")return a?.beforeContentCallback&&a.beforeContentCallback(r.window),r.page.context.browser.settings.navigation.beforeContentCallback&&r.page.context.browser.settings.navigation.beforeContentCallback(r.window),await new Promise(ur=>r.page.mainFrame.window.requestAnimationFrame(ur)),M(),null;let Xe=r.window[yi],ze=r[gt],ao=new r.window.AbortController,ai=setTimeout(()=>{ze.endTimer(ai),ao.abort(new r.window.DOMException("The operation was aborted. Request timed out.",v.timeoutError))},a?.timeout??3e4);ze.startTimer(ai);let wa=Xe.startTask(),tn=()=>{clearTimeout(ai),ze.endTimer(ai),Xe.endTask(wa),M()},Nc=new r.window.Headers(a?.headers),qi,Lc;a?.hard&&Nc.set("Cache-Control","no-cache");let qf=new zo({browserFrame:r,window:r.window,url:b.href,disableSameOriginPolicy:!0,init:{referrer:d,referrerPolicy:a?.referrerPolicy||"origin",signal:ao.signal,method:n||(i?"POST":"GET"),headers:Nc,body:i}});try{if(qi=await qf.send(),r.parentFrame){let ur=r.parentFrame.window.location,mi=qi.headers?.get("X-Frame-Options")?.toLowerCase(),Ea=ur.origin===b.origin||b.origin==="null";if(mi==="deny"||mi==="sameorigin"&&!Ea)throw new Error(`Refused to display '${o}' in a frame because it set 'X-Frame-Options' to '${mi}'.`)}Lc=await qi.text()}catch(ur){throw tn(),ur}return r.window?(qi.url&&r.window[vo][yo](r,qi.url),qi.ok||r.page.console.error(`GET ${b.href} ${qi.status} (${qi.statusText})`),a?.beforeContentCallback&&a.beforeContentCallback(r.window),r.page.context.browser.settings.navigation.beforeContentCallback&&r.page.context.browser.settings.navigation.beforeContentCallback(r.window),await new Promise(ur=>{r.window.requestAnimationFrame(()=>{let mi,Ea=ze.startTask(()=>()=>{clearImmediate(mi),ur(null)});mi=setImmediate(()=>{ze.endTask(Ea),ur(null)}),r.content=Lc})}),tn(),qi):null}static navigateBack(e){let{windowClass:t,frame:r,goToOptions:o}=e,i=r[je],n=i.items[i.items.indexOf(i.currentItem)-1];if(!n)return new Promise(p=>{r.window.requestAnimationFrame(()=>{let d=r[fe].navigation;r[fe].navigation=[];for(let b of d)b();p(null)})});let a=new URL(i.currentItem.href).origin,y=new URL(n.href).origin;return i.currentItem=n,!n.popState||a!==y?l.navigate({windowClass:t,frame:r,goToOptions:{...o,referrer:r.url},url:n.href,method:n.method,formData:n.formData,disableHistory:!0}):(r.window.location[yo](r,n.href),r.window.dispatchEvent(new r.window.PopStateEvent("popstate",{state:n.state,hasUAVisualTransition:!1})),Promise.resolve(null))}static navigateForward(e){let{windowClass:t,frame:r,goToOptions:o}=e,i=r[je],n=i.items[i.items.indexOf(i.currentItem)+1];if(!n)return new Promise(p=>{r.window.requestAnimationFrame(()=>{let d=r[fe].navigation;r[fe].navigation=[];for(let b of d)b();p(null)})});let a=new URL(i.currentItem.href).origin,y=new URL(n.href).origin;return i.currentItem=n,!n.popState||a!==y?l.navigate({windowClass:t,frame:r,goToOptions:{...o,referrer:r.url},url:n.href,method:n.method,formData:n.formData,disableHistory:!0}):(r.window.location[yo](r,n.href),r.window.dispatchEvent(new r.window.PopStateEvent("popstate",{state:n.state,hasUAVisualTransition:!1})),Promise.resolve(null))}static navigateSteps(e){if(!e.steps)return this.reload(e);let{windowClass:t,frame:r,goToOptions:o,steps:i}=e,n=r[je],a=n.items.indexOf(n.currentItem),y=a+i,p=n.items[y];if(!p)return new Promise(f=>{r.window.requestAnimationFrame(()=>{let S=r[fe].navigation;r[fe].navigation=[];for(let M of S)M();f(null)})});let d=new URL(n.currentItem.href).origin,b=!0;if(i<0){for(let f=a;f>y;f--)if(!n.items[f].popState||d!==new URL(n.items[f].href).origin){b=!1;break}}else for(let f=a;f<y;f++)if(!n.items[f].popState||d!==new URL(n.items[f].href).origin){b=!1;break}return n.currentItem=p,b?(r.window.location[yo](r,p.href),r.window.dispatchEvent(new r.window.PopStateEvent("popstate",{state:p.state,hasUAVisualTransition:!1})),Promise.resolve(null)):l.navigate({windowClass:t,frame:r,goToOptions:{...o,referrer:r.url},url:p.href,method:p.method,formData:p.formData,disableHistory:!0})}static reload(e){let{windowClass:t,frame:r,goToOptions:o}=e,i=r[je];return l.navigate({windowClass:t,frame:r,goToOptions:{...o,referrer:r.url},url:i.currentItem.href,method:i.currentItem.method,formData:i.currentItem.formData,disableHistory:!0})}};var Wy=class extends Ii{get value(){for(let e of this[$])if(e.checked)return e.value;return null}};var qT,KT,Gb,EA,xA=class xA extends G{constructor(){super();E(this,Gb);s(this,KT,null);s(this,qT);let t=new Te(this,[xA,G,xr,bt,Tt]),r=new Proxy(this,{get:(o,i)=>{if(i==="length")return o[Do]().length;if(i in o||typeof i=="symbol")return t.bind(i),o[i];let n=Number(i);return isNaN(n)?o[Bc](i)||void 0:o[Do]()[n]},set(o,i,n){if(t.bind(i),typeof i=="symbol")return o[i]=n,!0;let a=Number(i);return isNaN(a)&&(o[i]=n),!0},deleteProperty(o,i){if(typeof i=="symbol")return delete o[i],!0;let n=Number(i);return isNaN(n)&&delete o[i],!0},ownKeys(o){return Object.keys(o[Do]())},has(o,i){if(i in o)return!0;if(typeof i=="symbol")return!1;let n=o[Do](),a=Number(i);if(!isNaN(a)&&a>=0&&a<n.length)return!0;i=String(i);for(let y=0;y<n.length;y++){let p=n[y],d=p.getAttribute("id")||p.getAttribute("name");if(d&&d===i)return!0}return!1},defineProperty(o,i,n){if(t.preventBinding(i),!n.value)return Object.defineProperty(o,i,n),!0;let a=Number(n.value);return isNaN(a)?(Object.defineProperty(o,i,n),!0):!1},getOwnPropertyDescriptor(o,i){if(i in o)return Object.getOwnPropertyDescriptor(o,i);let n=o[Do](),a=Number(i);if(!isNaN(a)&&a>=0&&a<n.length)return{value:n[a],writable:!1,enumerable:!0,configurable:!0};for(let y=0;y<n.length;y++){let p=n[y],d=p.getAttribute("id")||p.getAttribute("name");if(d&&d===i)return{value:p,writable:!1,enumerable:!0,configurable:!0}}}});return this[Vt]=r,this[Ht]=r,r}get onformdata(){return P.getEventListener(this,"onformdata")}set onformdata(t){this[c].set("onformdata",t)}get onreset(){return P.getEventListener(this,"onreset")}set onreset(t){this[c].set("onreset",t)}get onsubmit(){return P.getEventListener(this,"onsubmit")}set onsubmit(t){this[c].set("onsubmit",t)}get elements(){return this[nn]||(this[nn]=new xm(h,this)),this[nn]}get length(){return this[Do]().length}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get method(){return this.getAttribute("method")||"get"}set method(t){this.setAttribute("method",t)}get target(){return this.getAttribute("target")||""}set target(t){this.setAttribute("target",t)}get action(){if(!this.hasAttribute("action"))return this[T].location.href;try{return new URL(this.getAttribute("action"),this[T].location.href).href}catch{return""}}set action(t){this.setAttribute("action",t)}get encoding(){return this.getAttribute("encoding")||""}set encoding(t){this.setAttribute("encoding",t)}get enctype(){return this.getAttribute("enctype")||""}set enctype(t){this.setAttribute("enctype",t)}get autocomplete(){return this.getAttribute("autocomplete")||""}set autocomplete(t){this.setAttribute("autocomplete",t)}get acceptCharset(){return this.getAttribute("acceptcharset")||""}set acceptCharset(t){this.setAttribute("acceptcharset",t)}get noValidate(){return this.getAttribute("novalidate")!==null}set noValidate(t){t?this.setAttribute("novalidate",""):this.removeAttribute("novalidate")}submit(){D(this,Gb,EA).call(this)}requestSubmit(t){if(t?.formNoValidate||this.noValidate||this.checkValidity()){let o=new hm("submit",{bubbles:!0,cancelable:!0,submitter:t||this[Vt]});this.dispatchEvent(o),o.defaultPrevented||D(this,Gb,EA).call(this,t)}}reset(){for(let t of this[Do]())switch(t[Z]){case"TEXTAREA":t[z]=null;break;case"INPUT":t[z]=null,t[xa]=null;break;case"OUTPUT":t.textContent=t[Vo];break;case"SELECT":let r=!1;for(let o of t.options)if(o.hasAttribute("selected")){r=!0,o.selected=!0;break}!r&&t.options.length>0&&(t.options[0].selected=!0);break}this.dispatchEvent(new k("reset",{bubbles:!0,cancelable:!0}))}checkValidity(){let t={},r=!0;for(let o of this[Do]())o[Z]==="INPUT"&&o.type==="radio"&&o.name?t[o.name]||(t[o.name]=!0,o.checkValidity()||(r=!1)):o.checkValidity()||(r=!1);return r}reportValidity(){return this.checkValidity()}[(KT=nn,qT=Vt,ct)](t=!1){return super[ct](t)}[Do](){let t=yt.querySelectorAll(this,"input,select,textarea,button,fieldset,object,output")[$].slice();if(this[it]){let r=this.getAttribute("id");if(r)for(let o of yt.querySelectorAll(this[T],`input[form="${r}"],select[form="${r}"],textarea[form="${r}"],button[form="${r}"],fieldset[form="${r}"],object[form="${r}"],output[form="${r}"]`)[$])t.includes(o)||t.push(o)}return t}[Bc](t){let r=this[Do](),o=[];t=String(t);for(let i of r)(i.getAttribute("id")===t||i.getAttribute("name")===t)&&o.push(i);return o.length?o.length===1?o[0]:new Wy(h,o):null}};Gb=new WeakSet,EA=function(t){let r=t?.formMethod||this.method;if(r==="dialog"){let y=null,p=this;for(;p;){if(p[Z]==="DIALOG"){y=p;break}p=p.parentElement}if(y){y.close(t?.value);return}}let o=t?.hasAttribute("formaction")?t?.formAction||this.action:this.action,i=new rt(this[m]).getBrowserFrame();if(!i)return;if(!o){this[T].location.hash="#blocked";return}let n=new this[m].FormData(this,t),a;switch(t?.formTarget||this.target){default:case"_self":a=i;break;case"_top":a=i.page.mainFrame;break;case"_parent":a=i.parentFrame??i;break;case"_blank":a=i.page.context.newPage().mainFrame,a[xo]=i;break}if(r==="get"){let y=new URL(o);y.search="";for(let[p,d]of n)typeof d=="string"&&y.searchParams.append(p,d);so.navigate({windowClass:this[T][mo]?.constructor,frame:a,url:y.href,goToOptions:{referrer:i.page.mainFrame.window.location.origin}});return}so.navigate({windowClass:this[T][mo]?.constructor,frame:a,method:r,url:o,formData:n,goToOptions:{referrer:i.page.mainFrame.window.location.origin}})};var Mp=xA;var Rp=class extends G{};var Fp=class extends G{};var Bp=class extends G{};var Dp=class extends G{};var jT,QT,Kn,Ql=class extends(QT=Tt,jT=Da,QT){constructor(t,r){super();s(this,"window",this);s(this,"location");s(this,jT,this);E(this,Kn);this[Oo]=r??this,this[zi]=r??this,this.location=new Proxy({},{get:()=>{throw new ae(`Blocked a frame with origin "${this.parent.location.origin}" from accessing a cross-origin frame.`,v.securityError)},set:()=>{throw new ae(`Blocked a frame with origin "${this.parent.location.origin}" from accessing a cross-origin frame.`,v.securityError)}}),w(this,Kn,t)}get self(){return this[Da]}set self(t){this[Da]=t}get top(){return this[zi]}get parent(){return this[Oo]}set parent(t){this[Oo]=t}get opener(){return u(this,Kn).opener}get closed(){return u(this,Kn).closed}blur(){u(this,Kn).blur()}focus(){u(this,Kn).focus()}close(){u(this,Kn).close()}postMessage(t,r="*",o){u(this,Kn).postMessage(t,r,o)}};Kn=new WeakMap;var GU=["allow-downloads","allow-forms","allow-modals","allow-orientation-lock","allow-pointer-lock","allow-popups","allow-popups-to-escape-sandbox","allow-presentation","allow-same-origin","allow-scripts","allow-top-navigation","allow-top-navigation-by-user-activation","allow-top-navigation-to-custom-protocols"],$T,vm,gr,Yy,Ai,XT,_b,Hb,Op=class extends G{constructor(){super(...arguments);E(this,Ai);s(this,$T,null);E(this,vm,{window:null});E(this,gr,null);E(this,Yy,null)}get onload(){return P.getEventListener(this,"onload")}set onload(t){this[c].set("onload",t)}get onerror(){return P.getEventListener(this,"onerror")}set onerror(t){this[c].set("onerror",t)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[T].location.href).href}catch{return this.getAttribute("src")}}set src(t){this.setAttribute("src",t)}get allow(){return this.getAttribute("allow")||""}set allow(t){this.setAttribute("allow",t)}get height(){return this.getAttribute("height")||""}set height(t){this.setAttribute("height",t)}get width(){return this.getAttribute("width")||""}set width(t){this.setAttribute("width",t)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get sandbox(){return this[Fc]||(this[Fc]=new So(h,this,"sandbox")),this[Fc]}set sandbox(t){this.setAttribute("sandbox",t)}get srcdoc(){return this.getAttribute("srcdoc")||""}set srcdoc(t){this.setAttribute("srcdoc",t)}get referrerPolicy(){return this.getAttribute("referrerpolicy")||""}set referrerPolicy(t){this.setAttribute("referrerpolicy",t)}get contentDocument(){return u(this,vm).window?.document??null}get contentWindow(){return u(this,vm).window}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let r=Number(t);return isNaN(r)?0:r}return 0}set tabIndex(t){super.tabIndex=t}[($T=Fc,Rr)](){super[Rr](),D(this,Ai,_b).call(this)}[Fr](){super[Fr](),D(this,Ai,Hb).call(this)}[ct](t=!1){return super[ct](t)}[Qe](t,r){super[Qe](t,r),t[st]==="srcdoc"&&D(this,Ai,_b).call(this),t[st]==="src"&&t[z]&&!this.hasAttribute("srcdoc")&&t[z]!==r?.[z]&&D(this,Ai,_b).call(this),t[st]==="sandbox"&&D(this,Ai,XT).call(this)}[Yr](t){super[Yr](t),(t[st]==="srcdoc"||t[st]==="src")&&D(this,Ai,_b).call(this)}};vm=new WeakMap,gr=new WeakMap,Yy=new WeakMap,Ai=new WeakSet,XT=function(){let t=this[m],r=[];for(let o of this.sandbox)GU.includes(o)||r.push(o);r.length===1?t.console.error(`Error while parsing the 'sandbox' attribute: '${r[0]}' is an invalid sandbox flag.`):r.length>1&&t.console.error(`Error while parsing the 'sandbox' attribute: '${r.join("', '")}' are invalid sandbox flags.`)},_b=function(){if(!this[it]){D(this,Ai,Hb).call(this);return}let t=this.getAttribute("srcdoc"),r=this[m],o=new rt(r).getBrowserFrame();if(!o)return;if(t!==null){if(u(this,Yy)===t)return;D(this,Ai,Hb).call(this),w(this,gr,Us.createChildFrame(o)),u(this,gr).url="about:srcdoc",u(this,vm).window=u(this,gr).window,u(this,gr).window[zi]=o.window.top,u(this,gr).window[Oo]=o.window,u(this,gr).window.document.open(),u(this,gr).window.document.write(t),w(this,Yy,t),this[m].requestAnimationFrame(()=>this.dispatchEvent(new k("load")));return}u(this,Yy)!==null&&D(this,Ai,Hb).call(this);let i=o.window.location,n=Co.getRelativeURL(o,this.src);if(u(this,gr)&&u(this,gr).window.location.href===n.href)return;if(o.page.context.browser.settings.disableIframePageLoading){let p=new r.DOMException(`Failed to load iframe page "${n.href}". Iframe page loading is disabled.`,v.notSupportedError);o.page.console.error(p),this.dispatchEvent(new k("error"));return}let a=i.origin===n.origin||n.origin==="null",y=a?r:new Ql(r);w(this,gr,u(this,gr)??Us.createChildFrame(o)),u(this,gr).window[zi]=y,u(this,gr).window[Oo]=y,u(this,gr).goto(n.href,{referrer:i.origin,referrerPolicy:this.referrerPolicy}).then(()=>this.dispatchEvent(new k("load"))).catch(p=>{o.page.console.error(p),this.dispatchEvent(new k("error"))}),u(this,vm).window=a?u(this,gr).window:new Ql(u(this,gr).window,r)},Hb=function(){u(this,gr)&&(Us.destroyFrame(u(this,gr)),w(this,gr,null)),u(this,vm).window=null,w(this,Yy,null)};var zT,JT,ZT,tC,eC,rC,oC,Tm=class extends G{constructor(){super(...arguments);s(this,oC,"IMG");s(this,rC,!1);s(this,eC,0);s(this,tC,0);s(this,ZT,"auto");s(this,JT,0);s(this,zT,0)}get complete(){return this[wP]}get naturalHeight(){return this[EP]}get naturalWidth(){return this[xP]}get loading(){let t=this.getAttribute("loading");return t==="eager"||t==="lazy"?t:"auto"}set loading(t){this.setAttribute("loading",t)}get x(){return this[R]}get y(){return this[F]}get decoding(){return this.getAttribute("decoding")||"auto"}set decoding(t){this.setAttribute("decoding",t)}get crossOrigin(){return this.getAttribute("crossOrigin")}set crossOrigin(t){(t==="anonymous"||t==="use-credentials")&&this.setAttribute("crossOrigin",t)}get alt(){return this.getAttribute("alt")||""}set alt(t){this.setAttribute("alt",t)}get currentSrc(){return this.src}get width(){let t=this.getAttribute("width");return t!==null?Number(t):0}set width(t){this.setAttribute("width",String(t))}get height(){let t=this.getAttribute("height");return t!==null?Number(t):0}set height(t){this.setAttribute("height",String(t))}get isMap(){return this.getAttribute("ismap")!==null}set isMap(t){t?this.setAttribute("ismap",""):this.removeAttribute("ismap")}get referrerPolicy(){return this.getAttribute("referrerpolicy")||""}set referrerPolicy(t){this.setAttribute("referrerpolicy",t)}get sizes(){return this.getAttribute("sizes")||""}set sizes(t){this.setAttribute("sizes",t)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[T].location.href).href}catch{return this.getAttribute("src")}}set src(t){this.setAttribute("src",t)}get srcset(){return this.getAttribute("srcset")||""}set srcset(t){this.setAttribute("srcset",t)}get useMap(){return this.getAttribute("usemap")||""}set useMap(t){this.setAttribute("usemap",t)}decode(){return Promise.resolve()}[(oC=Z,rC=wP,eC=EP,tC=xP,ZT=Bw,JT=R,zT=F,ct)](t=!1){return super[ct](t)}};var $l=class extends Array{constructor(){super(0)}get[Symbol.toStringTag](){return this.constructor.name}item(e){return this[e]||null}};var vA=/[\n\r]/gm,BS=l=>l.map(e=>parseInt(e,10)),Vp=class{static sanitize(e,t){switch(e.type){case"password":case"search":case"tel":case"text":return t.replace(vA,"");case"color":return/^#[a-fA-F\d]{6}$/.test(t)?t.toLowerCase():"#000000";case"email":return e.multiple?t.split(",").map(r=>r.trim()).join(","):t.trim().replace(vA,"");case"number":return isNaN(Number.parseFloat(t))?"":t;case"range":{let r=Number.parseFloat(t),o=parseFloat(e.min)||0,i=parseFloat(e.max)||100;return isNaN(r)?i<o?String(o):String((o+i)/2):r<o?String(o):r>i?String(i):t}case"url":return t.trim().replace(vA,"");case"date":return this.sanitizeDate(t);case"datetime-local":{let r=t.match(/^(\d\d\d\d)-(\d\d)-(\d\d)[T ](\d\d):(\d\d)(?::(\d\d)(?:\.(\d{1,3}))?)?$/);if(!r)return"";let o=this.sanitizeDate(t.slice(0,10)),i=this.sanitizeTime(t.slice(11));return o&&i?(r[6]!==void 0&&(i.indexOf(".")!==-1&&(i=i.replace(/(?:\.0*|(\.\d+?)0+)$/,"$1")),i=i.replace(/(\d\d:\d\d)(:00)$/,"$1")),o+"T"+i):""}case"month":return t.match(/^(\d\d\d\d)-(\d\d)$/)&&this.parseMonthComponent(t)&&this.checkBoundaries(t,e.min,e.max)?t:"";case"time":return t=this.sanitizeTime(t),t&&this.checkBoundaries(t,e.min,e.max)?t:"";case"week":{let r=t.match(/^(\d\d\d\d)-W(\d\d)$/);if(!r)return"";let[o,i]=BS(r.slice(1,3));if(o<=0||i<1||i>53)return"";let n=this.lastIsoWeekOfYear(o);return i<1||i>52+n||!this.checkBoundaries(t,e.min,e.max)?"":t}}return t}static checkBoundaries(e,t,r){return t&&t>e?!1:!(r&&r<e)}static parseMonthComponent(e){let[t,r]=e.split("-"),[o,i]=BS([t,r]);return isNaN(o)||isNaN(i)||o<=0||i<1||i>12?"":e}static sanitizeDate(e){let t=e.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!t||!this.parseMonthComponent(e.slice(0,7)))return"";let[o,i,n]=BS(t.slice(1,4));if(n<1||n>31)return"";let a=new Date(o,i,0).getDate();return n>a?"":e}static sanitizeTime(e){let t=e.match(/^(\d{2}):(\d{2})(?::(\d{2}(?:\.(\d{1,3}))?))?$/);if(!t)return"";let[r,o]=BS(t.slice(1,3)),i=parseFloat(t[3]||"0")*1e3;return r>23||o>59||i>59999?"":i===0?`${t[1]}:${t[2]}`:`${t[1]}:${t[2]}${i>=1e4?`:${i/1e3}`:`:0${i/1e3}`}`}};s(Vp,"lastIsoWeekOfYear",e=>{let t=new Date(+e,11,31),r=(t.getDay()+6)%7;t.setDate(t.getDate()-r+3);let o=t.getTime();return t.setMonth(0,1),t.getDay()!==4&&t.setMonth(0,1+(4-t.getDay()+7)%7),1+Math.ceil((o-t.getTime())/6048e5)});var TA;(function(l){l.preserve="preserve",l.select="select",l.start="start",l.end="end"})(TA||(TA={}));var jn=TA;var CA;(function(l){l.none="none",l.forward="forward",l.backward="backward"})(CA||(CA={}));var ti=CA;var Up=class{static step(e,t,r){switch(e.type){case"number":return this.getNumberValue(e,t,r);case"date":case"month":case"week":case"time":case"datetime-local":case"range":return null;default:throw new ae("This form element is not steppable.")}}static getNumberValue(e,t,r){let o=e.step,i=e.min,n=e.max,a=i!==""?Number(i):null,y=n!==""?Number(n):null,p=Number(e.value),d=o!==""?Number(o):1;if(p=isNaN(p)?0:p,d=isNaN(d)||d===0?1:d,a!==null&&!isNaN(a)&&y!==null&&!isNaN(y)&&(a>y||y<a)||r===0)return e.value;let b=r!==void 0?Math.ceil(r/d)*d:d,f=p+b*t,S=a!==null&&!isNaN(a)?a:0;switch(t){case-1:return a!==null&&!isNaN(a)&&f<a?String(a):String(f+(p-S)%d);case 1:return y!==null&&!isNaN(y)&&f>y?String(S+Math.floor((y-S)/d)*d):String(f-(p-S)%d)}}};var qy=class{static dateIsoWeek(e){e=typeof e=="number"?new Date(e):e,e=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),e.setUTCDate(e.getUTCDate()+4-(e.getUTCDay()||7));let t=new Date(Date.UTC(e.getUTCFullYear(),0,1)),r=Math.ceil(((e-t)/864e5+1)/7);return`${e.getUTCFullYear()}-W${r<10?"0":""}${r}`}static isoWeekDate(e){let[,t,r]=e.match(/^(\d{4})-W(\d{2})$/)||[];if(!t||!r||Number(r)>53||Number(r)<1)return new Date("x");let o=new Date(`${t}-01-01T00:00Z`),n=(new Date(`${t}-01-04T00:00Z`).getUTCDay()+6)%7,a=1+(Number(r)-1)*7-n+3;return o.setUTCDate(a),o.getUTCFullYear()>Number(t)?new Date("x"):o}};import{URL as _U}from"url";var HU=new Set(["hidden","text","search","tel","url","email","password","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]),iC,sC,nC,lC,aC,mC,yC,uC,pC,hC,Vi,wi,Gs,Lo,Qn,DS,Gp=class extends G{constructor(){super(...arguments);E(this,Lo);s(this,hC,null);s(this,pC,0);s(this,uC,0);s(this,yC,null);s(this,mC,"");s(this,aC,new Po(this));s(this,lC,new $l);s(this,nC,!1);s(this,sC,null);s(this,iC,null);E(this,Vi,null);E(this,wi,null);E(this,Gs,ti.none)}get oninput(){return P.getEventListener(this,"oninput")}set oninput(t){this[c].set("oninput",t)}get oninvalid(){return P.getEventListener(this,"oninvalid")}set oninvalid(t){this[c].set("oninvalid",t)}get onselectionchange(){return P.getEventListener(this,"onselectionchange")}set onselectionchange(t){this[c].set("onselectionchange",t)}get defaultChecked(){return this.hasAttribute("checked")}set defaultChecked(t){t?this.setAttribute("checked",""):this.removeAttribute("checked")}get files(){return this[Qi]}set files(t){this[Qi]=t}get formAction(){if(!this.hasAttribute("formaction"))return this[T].location.href;try{return new _U(this.getAttribute("formaction"),this[T].location.href).href}catch{return""}}set formAction(t){this.setAttribute("formaction",t)}get formEnctype(){return this.getAttribute("formenctype")||""}set formEnctype(t){this.setAttribute("formenctype",t)}get formMethod(){return this.getAttribute("formmethod")||""}set formMethod(t){this.setAttribute("formmethod",t)}get formNoValidate(){return this.getAttribute("formnovalidate")!==null}set formNoValidate(t){t?this.setAttribute("formnovalidate",""):this.removeAttribute("formnovalidate")}get formTarget(){return this.getAttribute("formtarget")||""}set formTarget(t){this.setAttribute("formtarget",t)}get form(){if(this[Ht])return this[Ht];let t=this.getAttribute("form");return!t||!this[it]?null:this[T].getElementById(t)}get validationMessage(){return this[_e]}get validity(){return this[pr]}get height(){return this[O]}set height(t){this[O]=t,this.setAttribute("height",String(t))}get width(){return this[V]}set width(t){this[V]=t,this.setAttribute("width",String(t))}get size(){let t=this.getAttribute("size");return t!==null?parseInt(t):20}set size(t){this.setAttribute("size",String(t))}get minLength(){let t=this.getAttribute("minlength");return t!==null?parseInt(t):-1}set minLength(t){this.setAttribute("minlength",String(t))}get maxLength(){let t=this.getAttribute("maxlength");return t!==null?parseInt(t):-1}set maxLength(t){this.setAttribute("maxlength",String(t))}get type(){let t=(this.getAttribute("type")??"").toLowerCase();return HU.has(t)?t:"text"}set type(t){this.setAttribute("type",t.toLowerCase())}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get alt(){return this.getAttribute("alt")||""}set alt(t){this.setAttribute("alt",t)}get min(){return this.getAttribute("min")||""}set min(t){this.setAttribute("min",t)}get max(){return this.getAttribute("max")||""}set max(t){this.setAttribute("max",t)}get pattern(){return this.getAttribute("pattern")||""}set pattern(t){this.setAttribute("pattern",t)}get placeholder(){return this.getAttribute("placeholder")||""}set placeholder(t){this.setAttribute("placeholder",t)}get step(){return this.getAttribute("step")||""}set step(t){this.setAttribute("step",t)}get inputMode(){return this.getAttribute("inputmode")||""}set inputMode(t){this.setAttribute("inputmode",t)}get accept(){return this.getAttribute("accept")||""}set accept(t){this.setAttribute("accept",t)}get allowdirs(){return this.getAttribute("allowdirs")||""}set allowdirs(t){this.setAttribute("allowdirs",t)}get autocomplete(){return this.getAttribute("autocomplete")||""}set autocomplete(t){this.setAttribute("autocomplete",t)}get src(){return this.getAttribute("src")||""}set src(t){this.setAttribute("src",t)}get defaultValue(){return this.getAttribute("value")||""}set defaultValue(t){this.setAttribute("value",t)}get readOnly(){return this.getAttribute("readonly")!==null}set readOnly(t){t?this.setAttribute("readonly",""):this.removeAttribute("readonly")}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}get autofocus(){return this.getAttribute("autofocus")!==null}set autofocus(t){t?this.setAttribute("autofocus",""):this.removeAttribute("autofocus")}get required(){return this.getAttribute("required")!==null}set required(t){t?this.setAttribute("required",""):this.removeAttribute("required")}get indeterminate(){return this[Ca]}set indeterminate(t){this[Ca]=!!t}get multiple(){return this.getAttribute("multiple")!==null}set multiple(t){t?this.setAttribute("multiple",""):this.removeAttribute("multiple")}get checked(){return this[xa]!==null?this[xa]:this.getAttribute("checked")!==null}set checked(t){D(this,Lo,DS).call(this,t)}get value(){switch(this.type){case"hidden":case"submit":case"image":case"reset":case"button":return this.getAttribute("value")||"";case"checkbox":case"radio":let t=this.getAttribute("value");return t!==null?t:"on";case"file":return this[Qi].length>0?"/fake/path/"+this[Qi][0].name:""}return this[z]===null?this.getAttribute("value")||"":this[z]}set value(t){switch(t=t===null?"":String(t),this.type){case"hidden":case"submit":case"image":case"reset":case"button":case"checkbox":case"radio":this.setAttribute("value",t);break;case"file":if(t!==null&&t!=="")throw new this[m].DOMException('Input elements of type "file" may only programmatically set the value to empty string.',v.invalidStateError);this[Qi]=new $l;break;default:let r=this.value;this[z]=Vp.sanitize(this,t),r!==this[z]&&(w(this,Vi,this[z].length),w(this,wi,this[z].length),w(this,Gs,ti.none));break}}get selectionStart(){return D(this,Lo,Qn).call(this)?u(this,Vi)===null?this.value.length:u(this,Vi):null}set selectionStart(t){if(!D(this,Lo,Qn).call(this))throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,v.invalidStateError);this.setSelectionRange(t,Math.max(t,this.selectionEnd),u(this,Gs))}get selectionEnd(){return D(this,Lo,Qn).call(this)?u(this,wi)===null?this.value.length:u(this,wi):null}set selectionEnd(t){if(!D(this,Lo,Qn).call(this))throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,v.invalidStateError);this.setSelectionRange(this.selectionStart,t,u(this,Gs))}get selectionDirection(){return D(this,Lo,Qn).call(this)?u(this,Gs):null}set selectionDirection(t){if(!D(this,Lo,Qn).call(this))throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,v.invalidStateError);this.setSelectionRange(u(this,Vi),u(this,wi),t)}get willValidate(){return this.type!=="hidden"&&this.type!=="reset"&&this.type!=="button"&&!this.disabled&&!this.readOnly}get valueAsDate(){switch(this.type){case"date":case"month":return isNaN(new Date(String(this.value)).getTime())?null:new Date(this.value);case"week":{let t=qy.isoWeekDate(this.value);return isNaN(t.getTime())?null:t}case"time":{let t=new Date(`1970-01-01T${this.value}Z`);return isNaN(t.getTime())?null:t}default:return null}}set valueAsDate(t){if(!["date","month","time","week"].includes(this.type))throw new this[m].DOMException("Failed to set the 'valueAsDate' property on 'HTMLInputElement': This input element does not support Date values.",v.invalidStateError);if(typeof t!="object")throw new this[m].TypeError("Failed to set the 'valueAsDate' property on 'HTMLInputElement': Failed to convert value to 'object'.");if(t&&!(t instanceof Date))throw new this[m].TypeError("Failed to set the 'valueAsDate' property on 'HTMLInputElement': The provided value is not a Date.");if(t===null||isNaN(t.getTime())){this.value="";return}switch(this.type){case"date":this.value=t.toISOString().split("T")[0];break;case"month":this.value=t.toISOString().split("T")[0].slice(0,-3);break;case"time":this.value=t.toISOString().split("T")[1].slice(0,5);break;case"week":this.value=qy.dateIsoWeek(t);break}}get valueAsNumber(){let t=this.value;if(!this.type.match(/^(range|number|date|datetime-local|month|time|week)$/)||!t)return NaN;switch(this.type){case"number":return parseFloat(t);case"range":{let r=parseFloat(t),o=parseFloat(this.min)||0,i=parseFloat(this.max)||100;return isNaN(r)?i<o?o:(o+i)/2:r<o?o:r>i?i:r}case"date":return new Date(t).getTime();case"datetime-local":return new Date(t).getTime()-new Date(t).getTimezoneOffset()*6e4;case"month":return(new Date(t).getUTCFullYear()-1970)*12+new Date(t).getUTCMonth();case"time":return new Date("1970-01-01T"+t).getTime()-new Date("1970-01-01T00:00:00").getTime();case"week":{let r=t.match(/^(\d{4})-W(\d{2})$/);if(!r)return NaN;let o=new Date(Date.UTC(parseInt(r[1],10),0)),i=o.getUTCDay(),n=((i===0?-6:1)-i)*864e5+parseInt(r[2],10)*6048e5;return o.getTime()+n}default:return NaN}}set valueAsNumber(t){switch(this.type){case"number":case"range":this.value=Number(t).toString();break;case"date":case"datetime-local":{let r=new Date(Number(t));if(isNaN(r.getTime())){this.value="";break}this.type=="date"?this.value=r.toISOString().slice(0,10):this.value=r.toISOString().slice(0,-1);break}case"month":!Number.isInteger(t)||t<0?this.value="":this.value=new Date(Date.UTC(1970,Number(t))).toISOString().slice(0,7);break;case"time":!Number.isInteger(t)||t<0?this.value="":this.value=new Date(Number(t)).toISOString().slice(11,-1);break;case"week":{let r=new Date(Number(t));this.value=isNaN(r.getTime())?"":qy.dateIsoWeek(r);break}default:throw new this[m].DOMException("Failed to set the 'valueAsNumber' property on 'HTMLInputElement': This input element does not support Number values.",v.invalidStateError)}}get labels(){return Ao.getAssociatedLabelElements(this)}get list(){let t=this.getAttribute("list");return t?(this[Be]||this[T]).querySelector(`datalist#${t}`):null}get popoverTargetElement(){return this[Va]}set popoverTargetElement(t){if(t!==null&&!(t instanceof G))throw new this[m].TypeError("Failed to set the 'popoverTargetElement' property on 'HTMLInputElement': Failed to convert value to 'Element'.");this[Va]=t}get popoverTargetAction(){let t=this.getAttribute("popovertargetaction");return t===null||t!=="hide"&&t!=="show"&&t!=="toggle"?"toggle":t}set popoverTargetAction(t){this.setAttribute("popovertargetaction",t)}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let r=Number(t);return isNaN(r)?0:r}return 0}set tabIndex(t){super.tabIndex=t}setCustomValidity(t){this[_e]=String(t)}select(){D(this,Lo,Qn).call(this)&&(w(this,Vi,0),w(this,wi,this.value.length),w(this,Gs,ti.none),this.dispatchEvent(new k("select",{bubbles:!0,cancelable:!1})))}setSelectionRange(t,r,o="none"){if(!D(this,Lo,Qn).call(this))throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,v.invalidStateError);w(this,wi,Math.min(r,this.value.length)),w(this,Vi,Math.min(t,u(this,wi))),w(this,Gs,o===ti.forward||o===ti.backward?o:ti.none),this.dispatchEvent(new k("select",{bubbles:!0,cancelable:!1}))}setRangeText(t,r=null,o=null,i=jn.preserve){if(!D(this,Lo,Qn).call(this))throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,v.invalidStateError);if(r===null&&(r=u(this,Vi)),o===null&&(o=u(this,wi)),r>o)throw new this[m].DOMException("The index is not in the allowed range.",v.invalidStateError);r=Math.min(r,this.value.length),o=Math.min(o,this.value.length);let n=this.value,a=u(this,Vi),y=u(this,wi);this.value=n.slice(0,r)+t+n.slice(o);let p=r+this.value.length;switch(i){case jn.select:this.setSelectionRange(r,p);break;case jn.start:this.setSelectionRange(r,r);break;case jn.end:this.setSelectionRange(p,p);break;default:let d=t.length-(o-r);a>o?a+=d:a>r&&(a=r),y>o?y+=d:y>r&&(y=p),this.setSelectionRange(a,y);break}}checkValidity(){let t=this.disabled||this.readOnly||this.type==="hidden"||this.type==="reset"||this.type==="button"||this[pr].valid;return t||this.dispatchEvent(new k("invalid",{bubbles:!0,cancelable:!0})),t}reportValidity(){return this.checkValidity()}stepUp(t){let r=Up.step(this,1,t);r!==null&&(this.value=r)}stepDown(t){let r=Up.step(this,-1,t);r!==null&&(this.value=r)}[(hC=z,pC=O,uC=V,yC=xa,mC=_e,aC=pr,lC=Qi,nC=Ca,sC=Ht,iC=Va,ct)](t=!1){let r=super[ct](t);return r[z]=this[z],r[O]=this[O],r[V]=this[V],r[Qi]=this[Qi].slice(),w(r,Vi,u(this,Vi)),w(r,wi,u(this,wi)),w(r,Gs,u(this,Gs)),r}dispatchEvent(t){if(t[zt]!=="click"||t[eo]!==de.none||!(t instanceof nr))return super.dispatchEvent(t);if(this.disabled)return!1;let r=null,o=this[Ca],i=this.type;(i==="checkbox"||i==="radio")&&(r=this.checked,D(this,Lo,DS).call(this,i==="checkbox"?!r:!0),i==="checkbox"&&(o=this[Ca],this[Ca]=!1));let n=super.dispatchEvent(t);if(t[zt]!=="click"||t[eo]!==de.none||!(t instanceof nr))return n;if(t[Br])r!==null&&(D(this,Lo,DS).call(this,r),this[Ca]=o);else{let a=this.type;if(a==="checkbox"&&this[it])this.dispatchEvent(new k("input",{bubbles:!0,cancelable:!0})),this.dispatchEvent(new k("change",{bubbles:!0,cancelable:!0}));else if(a==="radio"&&!r&&this[it])this.dispatchEvent(new k("input",{bubbles:!0,cancelable:!0})),this.dispatchEvent(new k("change",{bubbles:!0,cancelable:!0}));else if(a==="submit"||a==="reset"){let y=this.form;y&&(a==="submit"&&this[it]?y.requestSubmit(this):a==="reset"&&y.reset())}}return n}};Vi=new WeakMap,wi=new WeakMap,Gs=new WeakMap,Lo=new WeakSet,Qn=function(){let t=this.type;return t==="text"||t==="search"||t==="url"||t==="tel"||t==="password"},DS=function(t){if(this[xa]=t,this[po](),t&&this.type==="radio"&&this.name){let o=(this[Ht]||this.getRootNode()).querySelectorAll(`input[type="radio"][name="${this.name}"]`);for(let i of o)i!==this&&(i[xa]=!1)}};var _p=class extends G{get htmlFor(){let e=this.getAttribute("for");return e!==null||e!==null?e:""}set htmlFor(e){this.setAttribute("for",e)}get control(){let e=this.getAttribute("for");if(e!==null){if(!e||!this[it])return null;let t=this[Be].getElementById(e);if(t)switch(t[Z]){case"INPUT":return t.type!=="hidden"?t:null;case"BUTTON":case"METER":case"OUTPUT":case"PROGRESS":case"SELECT":case"TEXTAREA":return t;default:return null}}return this.querySelector('button,input:not([type="hidden"]),meter,output,progress,select,textarea')}get form(){return this.control?.form||null}[ct](e=!1){return super[ct](e)}dispatchEvent(e){let t=super.dispatchEvent(e);if(!e[Br]&&e.type==="click"&&(e.eventPhase===de.atTarget||e.eventPhase===de.bubbling)&&e instanceof nr){let r=this.control;r&&e.target!==r&&r.dispatchEvent(new nr("click",{bubbles:!0,cancelable:!0}))}return t}};var Hp=class extends G{get form(){let e=this;for(;e;){if(e instanceof Em)return e.form;e=e.parentNode}return null}};var Wp=class extends G{get value(){if(!this.hasAttribute("value"))return 0;let e=Number(this.getAttribute("value"));return isNaN(e)?0:e}set value(e){let t=Number(e);this.setAttribute("value",isNaN(t)?"0":String(t))}};import cC from"fs";import WU from"path";import YU from"child_process";var Wb=class{static getScript(e){let t={},r=Object.keys(e.headers).sort();for(let o of r)t[o]=e.headers[o];return`
96
+ `),a+=n,i&&!i.disableErrorCapturing&&i.errorCapture===ue.tryAndCatch&&(a+="} catch(e) { $happy_dom.dispatchError(e); }"),a+="})";let y=null;try{y=o[Ci](a,{filename:o.location.href}).bind(e,{dispatchError:o[ce].bind(o)})}catch(p){let d=new o.SyntaxError(`Failed to read the '${t}' property from '${e.constructor.name}': ${p.message}`);if(i.disableErrorCapturing||i.errorCapture!==ue.tryAndCatch)throw d;return o[ce](d),null}return y&&e[c].set(t,y),y}};var Cv,Nv,Lv,kv,Iv,Mv,Rv,Fv,Bv,Dv,Ov,Vv,Uv,Gv,_v,Hv,Wv,Yv,Zo,PA,Db,Ob,xr=class extends bt{constructor(){super();E(this,Zo);s(this,_v,null);s(this,Gv,null);s(this,Uv,L.elementNode);s(this,Vv,null);s(this,Ov,null);s(this,Dv,0);s(this,Bv,0);s(this,Fv,0);s(this,Rv,0);s(this,Mv,new Wn(this));s(this,Iv,null);s(this,kv,null);s(this,Lv,null);s(this,Nv,new Set);s(this,Cv,new Map);this[Z]||(this[Z]=null),this[nt]||(this[nt]=null),this[tt]||(this[tt]=null)}get onfullscreenerror(){return P.getEventListener(this,"onfullscreenerror")}set onfullscreenerror(t){this[c].set("onfullscreenerror",t)}get onfullscreenchange(){return P.getEventListener(this,"onfullscreenchange")}set onfullscreenchange(t){this[c].set("onfullscreenchange",t)}get onbeforecopy(){return P.getEventListener(this,"onbeforecopy")}set onbeforecopy(t){this[c].set("onbeforecopy",t)}get onbeforecut(){return P.getEventListener(this,"onbeforecut")}set onbeforecut(t){this[c].set("onbeforecut",t)}get onbeforepaste(){return P.getEventListener(this,"onbeforepaste")}set onbeforepaste(t){this[c].set("onbeforepaste",t)}get onsearch(){return P.getEventListener(this,"onsearch")}set onsearch(t){this[c].set("onsearch",t)}get tagName(){return this[Z]}get prefix(){return this[Ot]}get shadowRoot(){let t=this[Ee];return t&&t[Me]==="open"?t:null}get scrollHeight(){return this[pP]}get scrollWidth(){return this[hP]}get scrollTop(){return this[Qf]}set scrollTop(t){this[Qf]=t}get scrollLeft(){return this[$f]}set scrollLeft(t){this[$f]=t}get attributes(){return this[Cu]||(this[Cu]=Fb.createProxy(this[ft])),this[Cu]}get namespaceURI(){return this[tt]}get children(){if(!this[Mr]){let t=this[dt];this[Mr]=new Ne(h,()=>t)}return this[Mr]}get classList(){return this[Eu]||(this[Eu]=new So(h,this,"class")),this[Eu]}set classList(t){this.setAttribute("class",t)}get id(){return this.getAttribute("id")||""}set id(t){this.setAttribute("id",t)}get className(){return this.getAttribute("class")||""}set className(t){this.setAttribute("class",t)}get nodeName(){return this[Z]}get localName(){return this[nt]}get role(){return this.getAttribute("role")||""}set role(t){this.setAttribute("role",t)}get previousElementSibling(){return ql.previousElementSibling(this)}get nextElementSibling(){return ql.nextElementSibling(this)}get textContent(){let t="";for(let r of this[q])(r[U]===L.elementNode||r[U]===L.textNode)&&(t+=r.textContent);return t}set textContent(t){let r=this[q];for(;r.length;)this.removeChild(r[0]);t&&this.appendChild(this[T].createTextNode(t))}get innerHTML(){return this.getHTML()}set innerHTML(t){let r=this[q];for(;r.length;)this.removeChild(r[0]);new Kr(this[m]).parse(t,this)}get outerHTML(){return new Oi().serializeToString(this)}set outerHTML(t){let r=new Kr(this[m]).parse(t)[q];this.replaceWith(...r)}get childElementCount(){return this[dt].length}get firstElementChild(){return this[dt][0]??null}get lastElementChild(){let t=this[dt];return t[t.length-1]??null}get slot(){return this.getAttributeNS(null,"slot")||""}set slot(t){this.setAttribute("slot",t)}getInnerHTML(t){let r=new Oi({allShadowRoots:!!t?.includeShadowRoots}),o="";for(let i of this[q])o+=r.serializeToString(i);return o}getHTML(t){let r=new Oi({serializableShadowRoots:!!t?.serializableShadowRoots,shadowRoots:t?.shadowRoots??null}),o="";for(let i of this[q])o+=r.serializeToString(i);return o}[(Yv=Z,Wv=nt,Hv=tt,_v=Eu,Gv=Mo,Uv=U,Vv=Ot,Ov=Ee,Dv=pP,Bv=hP,Fv=Qf,Rv=$f,Mv=ft,Iv=Cu,kv=Mr,Lv=my,Nv=Ic,Cv=c,ct)](t=!1){let r=super[ct](t);r[Z]=this[Z],r[nt]=this[nt],r[tt]=this[tt],this[Ee]?.[Oa]&&(r[Ee]=this[Ee].cloneNode(t),r[Ee][Ma]=r),r[ft]=new Wn(r);for(let o of this[ft][$].values())r[ft].setNamedItem(o.cloneNode(t));return r}remove(){Di.remove(this)}replaceWith(...t){Di.replaceWith(this,...t)}before(...t){Di.before(this,...t)}after(...t){Di.after(this,...t)}append(...t){me.append(this,...t)}prepend(...t){me.prepend(this,...t)}replaceChildren(...t){me.replaceChildren(this,...t)}insertAdjacentElement(t,r){if(t==="beforebegin"){if(!this.parentElement)return null;this.parentElement.insertBefore(r,this)}else if(t==="afterbegin")this.insertBefore(r,this.firstChild);else if(t==="beforeend")this.appendChild(r);else if(t==="afterend"){if(!this.parentElement)return null;this.parentElement.insertBefore(r,this.nextSibling)}return r}insertAdjacentHTML(t,r){let o=new Kr(this[m]).parse(r)[q];for(;o.length;)this.insertAdjacentElement(t,o[0])}insertAdjacentText(t,r){if(!r)return;let o=this[T].createTextNode(r);this.insertAdjacentElement(t,o)}setAttribute(t,r){if(RS.validateAttributeName(t,this[T][Fe],{method:"setAttribute",instance:"Element"}),t=String(t),this[tt]===Yt.html){let i=this[T].createAttribute(t);i[z]=String(r),this[ft][Xi](i)}else{let i=t.split(":"),n=null;switch(i[0]){case"xmlns":n=!i[1]||i[1]==="xlink"?Yt.xmlns:null;break;case"xlink":n=Yt.xlink;break}let a=Ve.createNode(this[T],this[m].Attr);a[tt]=n,a[st]=t,a[nt]=n&&i[1]?i[1]:t,a[Ot]=n&&i[1]?i[0]:null,a[z]=String(r),this[ft][Xi](a)}}setAttributeNS(t,r,o){let i=this[T].createAttributeNS(t,r);if(!t&&i[Ot])throw new this[m].DOMException("Failed to execute 'setAttributeNS' on 'Element': '' is an invalid namespace for attributes.",v.namespaceError);i[z]=String(o),this[ft].setNamedItemNS(i)}getAttributeNames(){let t=[];for(let r of this[ft][$].values())t.push(r[st]);return t}getAttribute(t){let r=this[ft].getNamedItem(t);return r?r[z]:null}toggleAttribute(t,r){t=t.toLowerCase();let o=this[ft].getNamedItem(t);return o?r===!0?!0:(this[ft][Pl](o),!1):r===!1?!1:(this.setAttribute(t,""),!0)}getAttributeNS(t,r){let o=this.getAttributeNodeNS(t,r);return o?o[z]:null}hasAttribute(t){return!!this.getAttributeNode(t)}hasAttributeNS(t,r){return this[ft].getNamedItemNS(t,r)!==null}hasAttributes(){return this[ft][$].size>0}removeAttribute(t){let r=this[ft].getNamedItem(t);r&&this[ft][Pl](r)}removeAttributeNS(t,r){let o=this[ft].getNamedItemNS(t,r);o&&this[ft][Pl](o)}attachShadow(t){let r=this[m];if(!t)throw new r.TypeError("Failed to execute 'attachShadow' on 'Element': 1 argument required, but only 0 present.");if(!t.mode)throw new r.TypeError("Failed to execute 'attachShadow' on 'Element': Failed to read the 'mode' property from 'ShadowRootInit': Required member is undefined.");if(t.mode!=="open"&&t.mode!=="closed")throw new r.TypeError(`Failed to execute 'attachShadow' on 'Element': Failed to read the 'mode' property from 'ShadowRootInit': The provided value '${t.mode}' is not a valid enum value of type ShadowRootMode.`);if(this[Ee])throw new r.DOMException("Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.");let o=Ve.createNode(this[T],this[m].ShadowRoot);return this[Ee]=o,o[Ma]=this,o[Me]=t.mode,o[Oa]=!!t.clonable,o[yy]=!!t.delegateFocus,o[an]=!!t.serializable,o[vs]=t.slotAssignment==="manual"?"manual":"named",o[Io](),this[Ee]}toString(){return this.outerHTML}getBoundingClientRect(){return new ns}getClientRects(){let t=new Gy(h);return t.push(this.getBoundingClientRect()),t}setPointerCapture(t){this[Ic].add(t)}hasPointerCapture(t){return this[Ic].has(t)}releasePointerCapture(t){this[Ic].delete(t)}matches(t){return!!yt.matches(this,t)}closest(t){let r=this;for(;r;){if(yt.matches(r,t))return r;r=r.parentElement}return null}querySelectorAll(t){return yt.querySelectorAll(this,t)}querySelector(t){return yt.querySelector(this,t)}getElementsByClassName(t){return me.getElementsByClassName(this,t)}getElementsByTagName(t){return me.getElementsByTagName(this,t)}getElementsByTagNameNS(t,r){return me.getElementsByTagNameNS(this,t,r)}setAttributeNode(t){return this[ft].setNamedItem(t)}setAttributeNodeNS(t){return this[ft].setNamedItemNS(t)}getAttributeNode(t){return this[ft].getNamedItem(t)}getAttributeNodeNS(t,r){return this[ft].getNamedItemNS(t,r)}removeAttributeNode(t){if(t[Lt]!==this)throw new this[m].DOMException("Failed to execute 'removeAttributeNode' on 'Element': The node provided is owned by another element.");return this[ft][Pl](t),t}scroll(t,r){if(typeof t!="object"&&arguments.length===1)throw new this[m].TypeError("Failed to execute 'scroll' on 'Element': The provided value is not of type 'ScrollToOptions'.");let o=typeof t=="object"?t:{left:t,top:r};if(o.behavior==="smooth")this[m].setTimeout(()=>{if(o.top!==void 0){let i=Number(o.top);this.scrollTop=isNaN(i)?0:i}if(o.left!==void 0){let i=Number(o.left);this.scrollLeft=isNaN(i)?0:i}});else{if(o.top!==void 0){let i=Number(o.top);this.scrollTop=isNaN(i)?0:i}if(o.left!==void 0){let i=Number(o.left);this.scrollLeft=isNaN(i)?0:i}}}scrollTo(t,r){if(typeof t!="object"&&arguments.length===1)throw new this[m].TypeError("Failed to execute 'scrollTo' on 'Element': The provided value is not of type 'ScrollToOptions'.");this.scroll(t,r)}scrollBy(t,r){if(typeof t!="object"&&arguments.length===1)throw new this[m].TypeError("Failed to execute 'scrollBy' on 'Element': The provided value is not of type 'ScrollToOptions'.");let o=typeof t=="object"?t:{left:t,top:r};this.scroll({left:this.scrollLeft+(o.left??0),top:this.scrollTop+(o.top??0),behavior:o.behavior})}scrollIntoView(t){}[vt](t,r=!1){let o=super[vt](t,r);return D(this,Zo,Ob).call(this,t),o}[Hr](t){let r=super[Hr](t);return D(this,Zo,Ob).call(this,t),r}[uo](t,r,o=!1){let i=super[uo](t,r,o);return D(this,Zo,Ob).call(this,t),i}[$e](t,r){if(!t[st])return;let o=r?r[z]:null;if(t[st]==="slot"&&this[Y]&&this[Y][Ee]){let i=this[Y][Ee];if(i&&t[z]!==o){if(o!==null&&r){let a=i.querySelector(`slot[name="${r[z]}"]`);a&&a.dispatchEvent(new k("slotchange",{bubbles:!0}))}else{let a=i.querySelector("slot:not([name])");a&&a.dispatchEvent(new k("slotchange",{bubbles:!0}))}let n=i.querySelector(`slot[name="${t[z]}"]`);n&&n.dispatchEvent(new k("slotchange",{bubbles:!0}))}}this[t[st]]!==void 0&&t[st][0]==="o"&&t[st][1]==="n"&&this[c].delete(t[st]),t[st]==="id"&&this[it]&&(r?.[z]&&D(this,Zo,Db).call(this,r[z]),D(this,Zo,PA).call(this,t[z])),this[sn](new Jo({type:ss.attributes,target:this,attributeName:t[st],oldValue:o}))}[Yr](t){if(t[st]==="slot"&&this[Y]&&this[Y][Ee]){let r=this[Y][Ee],o=r.querySelector(`slot[name="${t[z]}"]`),i=r.querySelector("slot:not([name])");o&&o.dispatchEvent(new k("slotchange",{bubbles:!0})),i&&i.dispatchEvent(new k("slotchange",{bubbles:!0}))}t[st]==="id"&&this[it]&&D(this,Zo,Db).call(this,t[z]),this[sn](new Jo({type:ss.attributes,target:this,attributeName:t[st],oldValue:t[z]}))}[Rr](){let t=this.getAttribute("id");if(t&&D(this,Zo,PA).call(this,t),super[Rr](),this[m][Nl].enqueueReaction(this,"connectedCallback"),this[Ee])for(let r of this[q])D(this,Zo,Ob).call(this,r)}[Fr](){super[Fr]();let t=this.getAttribute("id");t&&D(this,Zo,Db).call(this,t),this[m][Nl].enqueueReaction(this,"disconnectedCallback")}[wt](){let t=this.getAttribute("id");t&&D(this,Zo,Db).call(this,t),this[m][Nl].enqueueReaction(this,"disconnectedCallback"),super[wt](),this[Ee]&&this[Ee][wt](),this[Eu]=null,this[Ee]=null,this[Cu]=null,this[Mr]=null,this[my]=null,this[c].clear(),this[ft][Es].clear(),this[ft][Eo].clear(),this[ft][$].clear()}};Zo=new WeakSet,PA=function(t){if(!t)return;let r=this[T],o=this[m];if(this[Be]&&this[Be]!==r)return;r[xs].has(t)||r[xs].set(t,{elements:[],htmlCollection:null});let i=r[xs].get(t);if(!i)return;let n=this[Vt]||this;i.elements.push(n),i.elements.length>1?(i.htmlCollection||(i.htmlCollection=new Ne(h,()=>i.elements)),(!(t in o)||o[t]===i.elements[0])&&(o[t]=i.htmlCollection)):(!(t in o)||i.htmlCollection!==null&&o[t]===i.htmlCollection)&&(o[t]=n)},Db=function(t){if(!t)return;let r=this[T],o=this[m];if(this[Be]&&this[Be]!==r)return;let i=r[xs].get(t);if(!i)return;let n=this[Vt]||this,a=i.elements.indexOf(n);a!==-1&&i.elements.splice(a,1),i.elements.length===1?(o[t]===i.htmlCollection&&(o[t]=i.elements[0]),i.htmlCollection=null):i.elements.length||(r[xs].delete(t),(o[t]===n||o[t]===i.htmlCollection)&&delete o[t])},Ob=function(t){let r=this[Ee];if(!r||!this[it])return;let o=t.getAttribute?t.getAttribute("slot"):null;if(o){let i=r.querySelector(`slot[name="${o}"]`);i&&i.dispatchEvent(new k("slotchange",{bubbles:!0}))}else if(t[U]!==L.commentNode){let i=r.querySelector("slot:not([name])");i&&i.dispatchEvent(new k("slotchange",{bubbles:!0}))}},s(xr,Yv,null),s(xr,Wv,null),s(xr,Hv,null);var Kl=class{static blur(e){let t=e[Vt]||e,r=t[T];if(r[Ke]!==t||!t[it]||t.disabled)return;let o=r[cl]??null;r[Ke]=null,r[po](),t.dispatchEvent(new Ms("blur",{relatedTarget:o,bubbles:!1,composed:!0,cancelable:!0})),t.dispatchEvent(new Ms("focusout",{relatedTarget:o,bubbles:!0,composed:!0,cancelable:!0}))}static focus(e){let t=e[Vt]||e,r=t[T];if(r[Ke]===t||!t[it]||t.disabled||this.isInert(t))return;r[cl]=t;let o=r[Ke];r[Ke]!==null&&r[Ke].blur(),r[cl]=null,r[Ke]=t,r[po](),t.dispatchEvent(new Ms("focus",{relatedTarget:o,bubbles:!1,composed:!0})),t.dispatchEvent(new Ms("focusin",{relatedTarget:o,bubbles:!0,composed:!0}))}static isInert(e){let t=e[Vt]||e;for(;t&&typeof t.getAttribute=="function";){if(t.getAttribute("inert")!==null)return!0;t=t[Y]}return!1}};var Os=class{static kebabToCamelCase(e){let t=e.split("-");for(let r=0,o=t.length;r<o;r++)t[r]=r>0?t[r].charAt(0).toUpperCase()+t[r].slice(1):t[r];return t.join("")}static camelCaseToKebab(e){return e.toString().replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,r)=>(r?"-":"")+t.toLowerCase())}};var _y=class{constructor(e,t){if(e!==h)throw new TypeError("Illegal constructor");return new Proxy(this,{get(r,o){let i=t.getAttribute("data-"+Os.camelCaseToKebab(o));if(i!==null)return i},set(r,o,i){return t.setAttribute("data-"+Os.camelCaseToKebab(o),i),!0},deleteProperty(r,o){return t.removeAttribute("data-"+Os.camelCaseToKebab(o)),!0},ownKeys(r){let o=[];for(let i of t[ft][Eo].values())i[0][st].startsWith("data-")&&o.push(Os.kebabToCamelCase(i[0][st].replace("data-","")));return o},has(r,o){return t.hasAttribute("data-"+Os.camelCaseToKebab(o))},defineProperty(r,o,i){return i.value===void 0?!1:(t.setAttribute("data-"+Os.camelCaseToKebab(o),i.value),!0)},getOwnPropertyDescriptor(r,o){let i=t.getAttribute("data-"+Os.camelCaseToKebab(o));if(i)return{value:i,writable:!0,enumerable:!0,configurable:!0}}})}};var qv,Kv,jv,Qv,$v,Xv,zv,Jv,Zv,tT,eT,Vs,FS,rT,G=class extends xr{constructor(){super(...arguments);E(this,FS);s(this,eT,"");s(this,tT,0);s(this,Zv,0);s(this,Jv,0);s(this,zv,0);s(this,Xv,0);s(this,$v,0);s(this,Qv,0);s(this,jv,0);s(this,Kv,null);s(this,qv,null);E(this,Vs,null)}get oncancel(){return P.getEventListener(this,"oncancel")}set oncancel(t){this[c].set("oncancel",t)}get onerror(){return P.getEventListener(this,"onerror")}set onerror(t){this[c].set("onerror",t)}get onscroll(){return P.getEventListener(this,"onscroll")}set onscroll(t){this[c].set("onscroll",t)}get onselect(){return P.getEventListener(this,"onselect")}set onselect(t){this[c].set("onselect",t)}get onwheel(){return P.getEventListener(this,"onwheel")}set onwheel(t){this[c].set("onwheel",t)}get oncopy(){return P.getEventListener(this,"oncopy")}set oncopy(t){this[c].set("oncopy",t)}get oncut(){return P.getEventListener(this,"oncut")}set oncut(t){this[c].set("oncut",t)}get onpaste(){return P.getEventListener(this,"onpaste")}set onpaste(t){this[c].set("onpaste",t)}get oncompositionend(){return P.getEventListener(this,"oncompositionend")}set oncompositionend(t){this[c].set("oncompositionend",t)}get oncompositionstart(){return P.getEventListener(this,"oncompositionstart")}set oncompositionstart(t){this[c].set("oncompositionstart",t)}get oncompositionupdate(){return P.getEventListener(this,"oncompositionupdate")}set oncompositionupdate(t){this[c].set("oncompositionupdate",t)}get onblur(){return P.getEventListener(this,"onblur")}set onblur(t){this[c].set("onblur",t)}get onfocus(){return P.getEventListener(this,"onfocus")}set onfocus(t){this[c].set("onfocus",t)}get onfocusin(){return P.getEventListener(this,"onfocusin")}set onfocusin(t){this[c].set("onfocusin",t)}get onfocusout(){return P.getEventListener(this,"onfocusout")}set onfocusout(t){this[c].set("onfocusout",t)}get onkeydown(){return P.getEventListener(this,"onkeydown")}set onkeydown(t){this[c].set("onkeydown",t)}get onkeyup(){return P.getEventListener(this,"onkeyup")}set onkeyup(t){this[c].set("onkeyup",t)}get onauxclick(){return P.getEventListener(this,"onauxclick")}set onauxclick(t){this[c].set("onauxclick",t)}get onclick(){return P.getEventListener(this,"onclick")}set onclick(t){this[c].set("onclick",t)}get oncontextmenu(){return P.getEventListener(this,"oncontextmenu")}set oncontextmenu(t){this[c].set("oncontextmenu",t)}get ondblclick(){return P.getEventListener(this,"ondblclick")}set ondblclick(t){this[c].set("ondblclick",t)}get onmousedown(){return P.getEventListener(this,"onmousedown")}set onmousedown(t){this[c].set("onmousedown",t)}get onmouseenter(){return P.getEventListener(this,"onmouseenter")}set onmouseenter(t){this[c].set("onmouseenter",t)}get onmouseleave(){return P.getEventListener(this,"onmouseleave")}set onmouseleave(t){this[c].set("onmouseleave",t)}get onmousemove(){return P.getEventListener(this,"onmousemove")}set onmousemove(t){this[c].set("onmousemove",t)}get onmouseout(){return P.getEventListener(this,"onmouseout")}set onmouseout(t){this[c].set("onmouseout",t)}get onmouseover(){return P.getEventListener(this,"onmouseover")}set onmouseover(t){this[c].set("onmouseover",t)}get onmouseup(){return P.getEventListener(this,"onmouseup")}set onmouseup(t){this[c].set("onmouseup",t)}get ontouchcancel(){return P.getEventListener(this,"ontouchcancel")}set ontouchcancel(t){this[c].set("ontouchcancel",t)}get ontouchend(){return P.getEventListener(this,"ontouchend")}set ontouchend(t){this[c].set("ontouchend",t)}get ontouchmove(){return P.getEventListener(this,"ontouchmove")}set ontouchmove(t){this[c].set("ontouchmove",t)}get ontouchstart(){return P.getEventListener(this,"ontouchstart")}set ontouchstart(t){this[c].set("ontouchstart",t)}get oninvalid(){return P.getEventListener(this,"oninvalid")}set oninvalid(t){this[c].set("oninvalid",t)}get onanimationcancel(){return P.getEventListener(this,"onanimationcancel")}set onanimationcancel(t){this[c].set("onanimationcancel",t)}get onanimationend(){return P.getEventListener(this,"onanimationend")}set onanimationend(t){this[c].set("onanimationend",t)}get onanimationiteration(){return P.getEventListener(this,"onanimationiteration")}set onanimationiteration(t){this[c].set("onanimationiteration",t)}get onanimationstart(){return P.getEventListener(this,"onanimationstart")}set onanimationstart(t){this[c].set("onanimationstart",t)}get onbeforeinput(){return P.getEventListener(this,"onbeforeinput")}set onbeforeinput(t){this[c].set("onbeforeinput",t)}get oninput(){return P.getEventListener(this,"oninput")}set oninput(t){this[c].set("oninput",t)}get onchange(){return P.getEventListener(this,"onchange")}set onchange(t){this[c].set("onchange",t)}get ongotpointercapture(){return P.getEventListener(this,"ongotpointercapture")}set ongotpointercapture(t){this[c].set("ongotpointercapture",t)}get onlostpointercapture(){return P.getEventListener(this,"onlostpointercapture")}set onlostpointercapture(t){this[c].set("onlostpointercapture",t)}get onpointercancel(){return P.getEventListener(this,"onpointercancel")}set onpointercancel(t){this[c].set("onpointercancel",t)}get onpointerdown(){return P.getEventListener(this,"onpointerdown")}set onpointerdown(t){this[c].set("onpointerdown",t)}get onpointerenter(){return P.getEventListener(this,"onpointerenter")}set onpointerenter(t){this[c].set("onpointerenter",t)}get onpointerleave(){return P.getEventListener(this,"onpointerleave")}set onpointerleave(t){this[c].set("onpointerleave",t)}get onpointermove(){return P.getEventListener(this,"onpointermove")}set onpointermove(t){this[c].set("onpointermove",t)}get onpointerout(){return P.getEventListener(this,"onpointerout")}set onpointerout(t){this[c].set("onpointerout",t)}get onpointerover(){return P.getEventListener(this,"onpointerover")}set onpointerover(t){this[c].set("onpointerover",t)}get onpointerup(){return P.getEventListener(this,"onpointerup")}set onpointerup(t){this[c].set("onpointerup",t)}get ontransitioncancel(){return P.getEventListener(this,"ontransitioncancel")}set ontransitioncancel(t){this[c].set("ontransitioncancel",t)}get ontransitionend(){return P.getEventListener(this,"ontransitionend")}set ontransitionend(t){this[c].set("ontransitionend",t)}get ontransitionrun(){return P.getEventListener(this,"ontransitionrun")}set ontransitionrun(t){this[c].set("ontransitionrun",t)}get ontransitionstart(){return P.getEventListener(this,"ontransitionstart")}set ontransitionstart(t){this[c].set("ontransitionstart",t)}get accessKey(){return this[Nu]}set accessKey(t){this[Nu]=t}get contentEditable(){let t=String(this.getAttribute("contentEditable")).toLowerCase();switch(t){case"false":case"true":case"plaintext-only":return t;default:return"inherit"}}set contentEditable(t){switch(t=String(t).toLowerCase(),t){case"false":case"true":case"plaintext-only":case"inherit":this.setAttribute("contentEditable",t);break;default:throw new this[m].SyntaxError(`Failed to set the 'contentEditable' property on 'HTMLElement': The value provided ('${t}') is not one of 'true', 'false', 'plaintext-only', or 'inherit'.`)}}get isContentEditable(){let t=this.contentEditable;return t==="true"||t==="plaintext-only"?!0:t==="inherit"?this[Y]?.isContentEditable??!1:!1}get offsetHeight(){return this[cP]}get offsetWidth(){return this[dP]}get offsetLeft(){return this[bP]}get offsetTop(){return this[gP]}get clientHeight(){return this[fP]}get clientWidth(){return this[SP]}get clientLeft(){return this[PP]}get clientTop(){return this[AP]}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let r=Number(t);return isNaN(r)?-1:r}return-1}set tabIndex(t){let r=Number(t);isNaN(r)?this.setAttribute("tabindex","0"):this.setAttribute("tabindex",String(r))}get innerText(){if(!this[it])return this.textContent;let t="";for(let r of this[q])if(r[U]===L.elementNode){let o=r,i=this[m].getComputedStyle(o);if(o[Z]!=="SCRIPT"&&o[Z]!=="STYLE"&&o[Z]!=="svg"){let n=i.display;if(n!=="none"){let a=i.textTransform,y=o.innerText;(n==="block"||n==="flex")&&t&&y&&(t+=`
97
+ `);let p=y;switch(a){case"uppercase":p=p.toUpperCase();break;case"lowercase":p=p.toLowerCase();break;case"capitalize":p=p.replace(/(^|\s)\S/g,d=>d.toUpperCase());break}t+=p}}}else r[U]===L.textNode&&(t+=r.textContent.replace(/[\n\r]/,""));return t}set innerText(t){let r=this[q];for(;r.length;)this.removeChild(r[0]);let o=t.split(/[\n\r]/),i=this[T];for(let n=0,a=o.length;n<a;n++)n!==0&&this.appendChild(i.createElement("br")),this.appendChild(i.createTextNode(o[n]))}get outerText(){return this.innerText}set outerText(t){if(!this[Y])throw new this[m].DOMException("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");let r=t.split(/[\n\r]/);for(let o=0,i=r.length;o<i;o++)o!==0&&this[Y].insertBefore(this[T].createElement("br"),this),this[Y].insertBefore(this[T].createTextNode(r[o]),this);this[Y].removeChild(this)}get style(){return this[xe]||(this[xe]=new go(h,this[m],{element:this})),this[xe]}set style(t){this.style.cssText=typeof t=="string"?t:""}get dataset(){var t;return this[t=aS]??(this[t]=new _y(h,this))}get dir(){return this.getAttribute("dir")||""}set dir(t){this.setAttribute("dir",t)}get hidden(){return this.getAttribute("hidden")!==null}set hidden(t){t?this.setAttribute("hidden",""):this.removeAttribute("hidden")}get inert(){return this.getAttribute("inert")!==null}set inert(t){t?this.setAttribute("inert",""):this.removeAttribute("inert")}get lang(){return this.getAttribute("lang")||""}set lang(t){this.setAttribute("lang",t)}get title(){return this.getAttribute("title")||""}set title(t){this.setAttribute("title",t)}get popover(){switch(this.getAttribute("popover")){case null:return null;case"":case"auto":return"auto";case"manual":return"manual";default:return"manual"}}set popover(t){if(t===null){this.removeAttribute("popover");return}this.setAttribute("popover",t)}click(){this.dispatchEvent(new pm("click",{bubbles:!0,composed:!0,cancelable:!0}))}blur(){Kl.blur(this)}focus(){Kl.focus(this)}[(eT=Nu,tT=cP,Zv=dP,Jv=bP,zv=gP,Xv=fP,$v=SP,Qv=PP,jv=AP,Kv=xe,qv=aS,ct)](t=!1){let r=super[ct](t);return r[Nu]=this[Nu],r}[Rr](){let t=this[m],r=this[nt],o=t.customElements[Ss];if(this.constructor===t.HTMLElement&&r.includes("-")&&o&&!u(this,Vs)){let i=D(this,FS,rT).bind(this),n=o.get(r);n?n.unshift(i):o.set(r,[i]),w(this,Vs,i)}super[Rr]()}[Fr](){let t=this[m],r=this[nt],o=t.customElements[Ss];if(this.constructor===t.HTMLElement&&r.includes("-")&&o){let i=o.get(r);if(i&&u(this,Vs)){let n=i.indexOf(u(this,Vs));n!==-1&&i.splice(n,1),i.length||o.delete(r),w(this,Vs,null)}}super[Fr]()}[$e](t,r){super[$e](t,r),this[m][Nl].enqueueReaction(this,"attributeChangedCallback",[t.name,r?.value??null,t.value])}[Yr](t){super[Yr](t),this[m][Nl].enqueueReaction(this,"attributeChangedCallback",[t.name,t.value,null])}[wt](){super[wt](),this[xe]=null,this[aS]=null}};Vs=new WeakMap,FS=new WeakSet,rT=function(){if(!this[Y])return;let t=this[m],r=this[nt],o=this[T].createElement(r),i=o[W];o[q]=this[q],o[dt]=this[dt],o[ul]=null,o[Mr]=null,o[it]=this[it],o[Be]=this[Be],o[Ht]=this[Ht],o[Y]=this[Y],o[je]=this[je],o[Ar]=this[Ar],o[Ro]=this[Ro],o[Mo]=this[Mo],o[W]=this[W],o[ir]=this[ir],o[ft][Es]=this[ft][Es],o[ft][Eo]=this[ft][Eo],o[ft][$]=this[ft][$];for(let d of o[ft][$].values())d[Lt]=o;this[po](),this[q]=[],this[dt]=[],this[ul]=null,this[Mr]=null,this[Y]=null,this[Be]=null,this[Ht]=null,this[je]=null,this[Ar]=null,this[Ro]=[],this[Mo]=null,this[W]=i,this[ir]=[],this[ft][Es]=new Map,this[ft][Eo]=new Map,this[ft][$]=new Map;for(let d of o[q])d[Y]=o;let n=o[Y][q],a=o[Y][dt];n[n.indexOf(this)]=o,a[a.indexOf(this)]=o;let y=t.customElements[Ss],p=y.get(r);if(p&&u(this,Vs)){let d=p.indexOf(u(this,Vs));d!==-1&&p.splice(d,1),p.length||y.delete(r),w(this,Vs,null)}o[it]&&(o[Ee]&&(o[Ee][it]=!0),o[Rr]())},s(G,"observedAttributes");var Hy=class{constructor(e){s(this,"element");this.element=e}getOrigin(){try{return new URL(this.getHref()).origin}catch{return""}}getHref(){if(!this.element.hasAttribute("href"))return"";try{return new URL(this.element.getAttribute("href"),this.element[T].location.href).href}catch{return this.element.getAttribute("href")}}setHref(e){this.element.setAttribute("href",e)}getProtocol(){try{return new URL(this.getHref()).protocol}catch{return""}}setProtocol(e){let t;try{t=new URL(this.getHref())}catch{return}t.protocol=e,this.element.setAttribute("href",t.href)}getUsername(){try{return new URL(this.getHref()).username}catch{return""}}setUsername(e){let t;try{t=new URL(this.getHref())}catch{return}t.username=e,this.element.setAttribute("href",t.href)}getPassword(){try{return new URL(this.getHref()).password}catch{return""}}setPassword(e){let t;try{t=new URL(this.getHref())}catch{return}t.password=e,this.element.setAttribute("href",t.href)}getHost(){try{return new URL(this.getHref()).host}catch{return""}}setHost(e){let t;try{t=new URL(this.getHref())}catch{return}t.host=e,this.element.setAttribute("href",t.href)}getHostname(){try{return new URL(this.getHref()).hostname}catch{return""}}setHostname(e){let t;try{t=new URL(this.getHref())}catch{return}t.hostname=e,this.element.setAttribute("href",t.href)}getPort(){try{return new URL(this.getHref()).port}catch{return""}}setPort(e){let t;try{t=new URL(this.getHref())}catch{return}t.port=e,this.element.setAttribute("href",t.href)}getPathname(){try{return new URL(this.getHref()).pathname}catch{return""}}setPathname(e){let t;try{t=new URL(this.getHref())}catch{return}t.pathname=e,this.element.setAttribute("href",t.href)}getSearch(){try{return new URL(this.getHref()).search}catch{return""}}setSearch(e){let t;try{t=new URL(this.getHref())}catch{return}t.search=e,this.element.setAttribute("href",t.href)}getHash(){let e=this.element.getAttribute("href");if(e?.[0]==="#")return e;let t;try{t=new URL(this.getHref())}catch{return""}return t.hash}setHash(e){let t;try{t=new URL(this.getHref())}catch{return}t.hash=e,this.element.setAttribute("href",t.href)}};var oT,iT,er,dp=class extends(iT=G,oT=Fo,iT){constructor(){super(...arguments);s(this,oT,null);E(this,er,new Hy(this))}get download(){return this.getAttribute("download")||""}set download(t){this.setAttribute("download",t)}get hash(){return u(this,er).getHash()}set hash(t){u(this,er).setHash(t)}get href(){return u(this,er).getHref()}set href(t){u(this,er).setHref(t)}get hreflang(){return this.getAttribute("hreflang")||""}set hreflang(t){this.setAttribute("hreflang",t)}get origin(){return u(this,er).getOrigin()}get ping(){return this.getAttribute("ping")||""}set ping(t){this.setAttribute("ping",t)}get protocol(){return u(this,er).getProtocol()}set protocol(t){u(this,er).setProtocol(t)}get username(){return u(this,er).getUsername()}set username(t){u(this,er).setUsername(t)}get password(){return u(this,er).getPassword()}set password(t){u(this,er).setPassword(t)}get pathname(){return u(this,er).getPathname()}set pathname(t){u(this,er).setPathname(t)}get port(){return u(this,er).getPort()}set port(t){u(this,er).setPort(t)}get host(){return u(this,er).getHost()}set host(t){u(this,er).setHost(t)}get hostname(){return u(this,er).getHostname()}set hostname(t){u(this,er).setHostname(t)}get referrerPolicy(){return this.getAttribute("referrerPolicy")||""}set referrerPolicy(t){this.setAttribute("referrerPolicy",t)}get rel(){return this.getAttribute("rel")||""}set rel(t){this.setAttribute("rel",t)}get relList(){return this[Fo]||(this[Fo]=new So(h,this,"rel")),this[Fo]}set relList(t){this.setAttribute("rel",t)}get search(){return u(this,er).getSearch()}set search(t){u(this,er).setSearch(t)}get target(){return this.getAttribute("target")||""}set target(t){this.setAttribute("target",t)}get text(){return this.textContent}set text(t){this.textContent=t}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let r=Number(t);return isNaN(r)?0:r}return 0}set tabIndex(t){super.tabIndex=t}toString(){return this.href}dispatchEvent(t){let r=super.dispatchEvent(t);if(!t[Br]&&t.type==="click"&&t instanceof nr&&(t.eventPhase===de.none||t.eventPhase===de.bubbling)){let o=this.href;if(o){let i=[];this.relList.contains("noreferrer")&&i.push("noreferrer"),this.relList.contains("noopener")&&i.push("noopener"),this[m].open(o,this.target||"_self",i.join(",")),this[m].closed&&t.stopImmediatePropagation()}}return r}};er=new WeakMap;var sT,nT,rr,bp=class extends(nT=G,sT=Fo,nT){constructor(){super(...arguments);s(this,sT,null);E(this,rr,new Hy(this))}get alt(){return this.getAttribute("alt")||""}set alt(t){this.setAttribute("alt",t)}get coords(){return this.getAttribute("coords")||""}set coords(t){this.setAttribute("coords",t)}get shape(){return this.getAttribute("shape")||""}set shape(t){this.setAttribute("shape",t)}get download(){return this.getAttribute("download")||""}set download(t){this.setAttribute("download",t)}get referrerPolicy(){return this.getAttribute("referrerPolicy")||""}set referrerPolicy(t){this.setAttribute("referrerPolicy",t)}get ping(){return this.getAttribute("ping")||""}set ping(t){this.setAttribute("ping",t)}get rel(){return this.getAttribute("rel")||""}set rel(t){this.setAttribute("rel",t)}get relList(){return this[Fo]||(this[Fo]=new So(h,this,"rel")),this[Fo]}set relList(t){this.setAttribute("rel",t)}get target(){return this.getAttribute("target")||""}set target(t){this.setAttribute("target",t)}get origin(){return u(this,rr).getOrigin()}get href(){return u(this,rr).getHref()}set href(t){u(this,rr).setHref(t)}get protocol(){return u(this,rr).getProtocol()}set protocol(t){u(this,rr).setProtocol(t)}get username(){return u(this,rr).getUsername()}set username(t){u(this,rr).setUsername(t)}get password(){return u(this,rr).getPassword()}set password(t){u(this,rr).setPassword(t)}get host(){return u(this,rr).getHost()}set host(t){u(this,rr).setHost(t)}get hostname(){return u(this,rr).getHostname()}set hostname(t){u(this,rr).setHostname(t)}get port(){return u(this,rr).getPort()}set port(t){u(this,rr).setPort(t)}get pathname(){return u(this,rr).getPathname()}set pathname(t){u(this,rr).setPathname(t)}get search(){return u(this,rr).getSearch()}set search(t){u(this,rr).setSearch(t)}get hash(){return u(this,rr).getHash()}set hash(t){u(this,rr).setHash(t)}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let r=Number(t);return isNaN(r)?0:r}return 0}set tabIndex(t){super.tabIndex=t}toString(){return this.href}dispatchEvent(t){let r=super.dispatchEvent(t);if(!t[Br]&&t[zt]==="click"&&t[eo]===de.none&&t instanceof nr){let o=this.href;o&&(this[m].open(o,this.target||"_self"),this[m].closed&&t.stopImmediatePropagation())}return r}};rr=new WeakMap;var jl=class{constructor(e){if(e!==h)throw new TypeError("Illegal constructor")}get length(){return 0}get[Symbol.toStringTag](){return"TimeRanges"}toLocaleString(){return"[object TimeRanges]"}toString(){return"[object TimeRanges]"}start(e){return 0}end(e){return 0}};import BU from"crypto";var gp=class extends k{constructor(t,r=null){super(t,r);s(this,"track");this.track=r?.track??null}};var lT,aT,Am=class l extends(aT=Tt,lT=As,aT){constructor(t){super();s(this,"active",!0);s(this,"id",BU.randomUUID());s(this,"onaddtrack",null);s(this,"onremovetrack",null);s(this,lT,[]);if(!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);t!==void 0&&(this[As]=t instanceof l?t[As].slice():t)}addTrack(t){this[As].includes(t)||(this[As].push(t),this.dispatchEvent(new gp("addtrack",{track:t})))}clone(){return new this.constructor(this)}getAudioTracks(){return this[As].filter(t=>t.kind==="audio")}getTrackById(t){for(let r of this[As])if(r.id===t)return r;return null}getVideoTracks(){return this[As].filter(t=>t.kind==="video")}removeTrack(t){let r=this[As].indexOf(t);r!==-1&&(this[As].splice(r,1),this.dispatchEvent(new gp("removetrack",{track:t})))}};var AA;(function(l){l.subtitles="subtitles",l.captions="captions",l.descriptions="descriptions",l.chapters="chapters",l.metadata="metadata"})(AA||(AA={}));var Yn=AA;var mT,yT,uT,pT,hT,cT,dT,bT,gT,fT,ST,PT,AT,wT,ET,xT,vT,TT,CT,NT,LT,kT,IT,qn=class extends G{constructor(){super(...arguments);s(this,IT,1);s(this,kT,!0);s(this,LT,0);s(this,NT,1);s(this,CT,1);s(this,TT,!1);s(this,vT,!1);s(this,xT,!0);s(this,ET,new jl(h));s(this,wT,NaN);s(this,AT,null);s(this,PT,!1);s(this,ST,0);s(this,fT,0);s(this,gT,!1);s(this,bT,new jl(h));s(this,dT,"");s(this,cT,new jl(h));s(this,hT,new this[m].RemotePlayback);s(this,pT,null);s(this,uT,null);s(this,yT,null);s(this,mT,[])}get onabort(){return P.getEventListener(this,"onabort")}set onabort(t){this[c].set("onabort",t)}get oncanplay(){return P.getEventListener(this,"oncanplay")}set oncanplay(t){this[c].set("oncanplay",t)}get oncanplaythrough(){return P.getEventListener(this,"oncanplaythrough")}set oncanplaythrough(t){this[c].set("oncanplaythrough",t)}get ondurationchange(){return P.getEventListener(this,"ondurationchange")}set ondurationchange(t){this[c].set("ondurationchange",t)}get onemptied(){return P.getEventListener(this,"onemptied")}set onemptied(t){this[c].set("onemptied",t)}get onended(){return P.getEventListener(this,"onended")}set onended(t){this[c].set("onended",t)}get onloadeddata(){return P.getEventListener(this,"onloadeddata")}set onloadeddata(t){this[c].set("onloadeddata",t)}get onloadedmetadata(){return P.getEventListener(this,"onloadedmetadata")}set onloadedmetadata(t){this[c].set("onloadedmetadata",t)}get onloadstart(){return P.getEventListener(this,"onloadstart")}set onloadstart(t){this[c].set("onloadstart",t)}get onpause(){return P.getEventListener(this,"onpause")}set onpause(t){this[c].set("onpause",t)}get onplay(){return P.getEventListener(this,"onplay")}set onplay(t){this[c].set("onplay",t)}get onplaying(){return P.getEventListener(this,"onplaying")}set onplaying(t){this[c].set("onplaying",t)}get onprogress(){return P.getEventListener(this,"onprogress")}set onprogress(t){this[c].set("onprogress",t)}get onratechange(){return P.getEventListener(this,"onratechange")}set onratechange(t){this[c].set("onratechange",t)}get onresize(){return P.getEventListener(this,"onresize")}set onresize(t){this[c].set("onresize",t)}get onseeked(){return P.getEventListener(this,"onseeked")}set onseeked(t){this[c].set("onseeked",t)}get onseeking(){return P.getEventListener(this,"onseeking")}set onseeking(t){this[c].set("onseeking",t)}get onstalled(){return P.getEventListener(this,"onstalled")}set onstalled(t){this[c].set("onstalled",t)}get onsuspend(){return P.getEventListener(this,"onsuspend")}set onsuspend(t){this[c].set("onsuspend",t)}get ontimeupdate(){return P.getEventListener(this,"ontimeupdate")}set ontimeupdate(t){this[c].set("ontimeupdate",t)}get onvolumechange(){return P.getEventListener(this,"onvolumechange")}set onvolumechange(t){this[c].set("onvolumechange",t)}get onwaiting(){return P.getEventListener(this,"onwaiting")}set onwaiting(t){this[c].set("onwaiting",t)}get buffered(){return this[vP]}get duration(){return this[TP]}get error(){return this[hr]}get ended(){return this[CP]}get networkState(){return this[NP]}get readyState(){return this[Ia]}get remote(){return this[MP]}get seeking(){return this[LP]}get seekable(){return this[kP]}get sinkId(){return this[uS]}get played(){return this[IP]}get autoplay(){return this.getAttribute("autoplay")!==null}set autoplay(t){t?this.setAttribute("autoplay",""):this.removeAttribute("autoplay")}get controls(){return this.getAttribute("controls")!==null}set controls(t){t?this.setAttribute("controls",""):this.removeAttribute("controls")}get loop(){return this.getAttribute("loop")!==null}set loop(t){t?this.setAttribute("loop",""):this.removeAttribute("loop")}get preload(){return this.getAttribute("preload")||"auto"}set preload(t){this.setAttribute("preload",t)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[T].location.href).href}catch{return this.getAttribute("src")}}set src(t){this.setAttribute("src",t),t&&(this.dispatchEvent(new k("canplay",{bubbles:!1,cancelable:!1})),this.dispatchEvent(new k("durationchange",{bubbles:!1,cancelable:!1})))}get controlsList(){return this[Gc]===null&&(this[Gc]=new So(h,this,"controlslist")),this[Gc]}set controlsList(t){this.setAttribute("controlslist",t)}get mediaKeys(){return this[yS]}get muted(){return this[Lu]?this[Lu]:this[ly]?!1:this.getAttribute("muted")!==null}set muted(t){this[Lu]=!!t,!t&&!this[ly]?this.removeAttribute("muted"):this.setAttribute("muted","")}get defaultMuted(){return this[ly]}set defaultMuted(t){this[ly]=!!t,!this[ly]&&!this[Lu]?this.removeAttribute("muted"):this.setAttribute("muted","")}get disableRemotePlayback(){return this.getAttribute("disableremoteplayback")!==null}set disableRemotePlayback(t){t?this.setAttribute("disableremoteplayback",""):this.removeAttribute("disableremoteplayback")}get srcObject(){return this[pS]}set srcObject(t){if(t!==null&&!(t instanceof Am))throw new this[m].TypeError("Failed to set the 'srcObject' property on 'HTMLMediaElement': The provided value is not of type 'MediaStream'.");this[pS]=t}get textTracks(){let t=[];for(let r of this[oS])t.push(r);for(let r of this.querySelectorAll("track")[$])t.push(r.track);return new this[m].TextTrackList(h,t)}get currentSrc(){let t=this.src;if(t)return t;let r=this.querySelector("source");return r?r.src:""}get volume(){return this[Jf]}set volume(t){let r=Number(t);if(isNaN(r))throw new this[m].TypeError("Failed to set the 'volume' property on 'HTMLMediaElement': The provided double value is non-finite.");if(r<0||r>1)throw new this[m].DOMException(`Failed to set the 'volume' property on 'HTMLMediaElement': The volume provided (${r}) is outside the range [0, 1].`,v.indexSizeError);this[Jf]=r}get crossOrigin(){let t=this.getAttribute("crossorigin");return t==="use-credentials"?"use-credentials":t!==null?"anonymous":null}set crossOrigin(t){this.setAttribute("crossorigin",t)}get currentTime(){return this[Zf]}set currentTime(t){let r=Number(t);if(isNaN(r))throw new this[m].TypeError("Failed to set the 'currentTime' property on 'HTMLMediaElement': The provided double value is non-finite.");this[Zf]=r}get playbackRate(){return this[tS]}set playbackRate(t){let r=Number(t);if(isNaN(r))throw new this[m].TypeError("Failed to set the 'playbackRate' property on 'HTMLMediaElement': The provided double value is non-finite.");this[tS]=r}get defaultPlaybackRate(){return this[eS]}set defaultPlaybackRate(t){let r=Number(t);if(isNaN(r))throw new this[m].TypeError("Failed to set the 'defaultPlaybackRate' property on 'HTMLMediaElement': The provided double value is non-finite.");this[eS]=r}get preservesPitch(){return this[rS]}set preservesPitch(t){this[rS]=!!t}get paused(){return this[ny]}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let r=Number(t);return isNaN(r)?0:r}return 0}set tabIndex(t){super.tabIndex=t}addTextTrack(t,r,o){let i=this[m];if(arguments.length===0)throw new i.TypeError("Failed to execute 'addTextTrack' on 'HTMLMediaElement': 1 argument required, but only 0 present.");if(!Yn[t])throw new i.TypeError(`Failed to execute 'addTextTrack' on 'HTMLMediaElement': The provided value '${t}' is not a valid enum value of type TextTrackKind.`);let n=new i.TextTrack(h);return n[ui]=t,n[wl]=r||"",n[py]=o||"",this[oS].push(n),n}pause(){this[ny]||(this[ny]=!0,this.dispatchEvent(new k("pause",{bubbles:!1,cancelable:!1})))}async play(){this[ny]&&(this[ny]=!1,this.dispatchEvent(new k("play",{bubbles:!1,cancelable:!1})),this.dispatchEvent(new k("playing",{bubbles:!1,cancelable:!1})))}canPlayType(t){return""}fastSeek(t){}load(){this.dispatchEvent(new k("emptied",{bubbles:!1,cancelable:!1}))}async setMediaKeys(t){this[yS]=t}async setSinkId(t){this[uS]=t}captureStream(){return new this[m].MediaStream}[(IT=Jf,kT=ny,LT=Zf,NT=tS,CT=eS,TT=Lu,vT=ly,xT=rS,ET=vP,wT=TP,AT=hr,PT=CP,ST=NP,fT=Ia,gT=LP,bT=kP,dT=uS,cT=IP,hT=MP,pT=Gc,uT=yS,yT=pS,mT=oS,ct)](t=!1){return super[ct](t)}};var wm=class extends qn{};var fp=class extends G{get href(){if(!this.hasAttribute("href"))return this[T].location.href;try{return new URL(this.getAttribute("href"),this[T].location.href).href}catch{return this.getAttribute("href")}}set href(e){this.setAttribute("href",e)}get target(){return this.getAttribute("target")||""}set target(e){this.setAttribute("target",e)}[ct](e=!1){return super[ct](e)}};var Sp=class extends G{get onafterprint(){return P.getEventListener(this,"onafterprint")}set onafterprint(e){this[c].set("onafterprint",e)}get onbeforeprint(){return P.getEventListener(this,"onbeforeprint")}set onbeforeprint(e){this[c].set("onbeforeprint",e)}get onbeforeunload(){return P.getEventListener(this,"onbeforeunload")}set onbeforeunload(e){this[c].set("onbeforeunload",e)}get ongamepadconnected(){return P.getEventListener(this,"ongamepadconnected")}set ongamepadconnected(e){this[c].set("ongamepadconnected",e)}get ongamepaddisconnected(){return P.getEventListener(this,"ongamepaddisconnected")}set ongamepaddisconnected(e){this[c].set("ongamepaddisconnected",e)}get onhashchange(){return P.getEventListener(this,"onhashchange")}set onhashchange(e){this[c].set("onhashchange",e)}get onlanguagechange(){return P.getEventListener(this,"onlanguagechange")}set onlanguagechange(e){this[c].set("onlanguagechange",e)}get onmessage(){return P.getEventListener(this,"onmessage")}set onmessage(e){this[c].set("onmessage",e)}get onmessageerror(){return P.getEventListener(this,"onmessageerror")}set onmessageerror(e){this[c].set("onmessageerror",e)}get onoffline(){return P.getEventListener(this,"onoffline")}set onoffline(e){this[c].set("onoffline",e)}get ononline(){return P.getEventListener(this,"ononline")}set ononline(e){this[c].set("ononline",e)}get onpagehide(){return P.getEventListener(this,"onpagehide")}set onpagehide(e){this[c].set("onpagehide",e)}get onpageshow(){return P.getEventListener(this,"onpageshow")}set onpageshow(e){this[c].set("onpageshow",e)}get onpopstate(){return P.getEventListener(this,"onpopstate")}set onpopstate(e){this[c].set("onpopstate",e)}get onrejectionhandled(){return P.getEventListener(this,"onrejectionhandled")}set onrejectionhandled(e){this[c].set("onrejectionhandled",e)}get onstorage(){return P.getEventListener(this,"onstorage")}set onstorage(e){this[c].set("onstorage",e)}get onunhandledrejection(){return P.getEventListener(this,"onunhandledrejection")}set onunhandledrejection(e){this[c].set("onunhandledrejection",e)}get onunload(){return P.getEventListener(this,"onunload")}set onunload(e){this[c].set("onunload",e)}};var Pp=class extends G{};var DU=/^([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22))*\x40([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d))*$/,OU=/^(?:(?:https?|HTTPS?|ftp|FTP):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-zA-Z\u00a1-\uffff0-9]-*)*[a-zA-Z\u00a1-\uffff0-9]+)(?:\.(?:[a-zA-Z\u00a1-\uffff0-9]-*)*[a-zA-Z\u00a1-\uffff0-9]+)*)(?::\d{2,5})?(?:[\/?#]\S*)?$/,Po=class{constructor(e){s(this,"element");this.element=e}get badInput(){return this.element[nt]==="input"&&(this.element.type==="number"||this.element.type==="range")&&this.element.value.length>0&&!/^[-+]?(?:\d+|\d*[.,]\d+)$/.test(this.element.value)}get customError(){return this.element[_e].length>0}get patternMismatch(){return this.element[nt]==="input"&&this.element.hasAttribute("pattern")&&this.element.value.length>0&&this.element.value.replace(new RegExp(this.element.getAttribute("pattern")),"").length>0}get rangeOverflow(){return this.element[nt]==="input"&&this.element.hasAttribute("max")&&(this.element.type==="number"||this.element.type==="range")&&this.element.value.length>0&&Number(this.element.value)>Number(this.element.getAttribute("max"))}get rangeUnderflow(){return this.element[nt]==="input"&&this.element.hasAttribute("min")&&(this.element.type==="number"||this.element.type==="range")&&this.element.value.length>0&&Number(this.element.value)<Number(this.element.getAttribute("min"))}get stepMismatch(){return this.element[nt]==="input"&&(this.element.type==="number"||this.element.type==="range")&&(this.element.hasAttribute("step")&&this.element.getAttribute("step")!=="any"&&Number(this.element.value)%Number(this.element.getAttribute("step"))!==0||!this.element.hasAttribute("step")&&Number(this.element.value)%1!==0)}get tooLong(){return(this.element[nt]==="input"||this.element[nt]==="textarea")&&this.element.maxLength>0&&this.element.value.length>this.element.maxLength}get tooShort(){return(this.element[nt]==="input"||this.element[nt]==="textarea")&&this.element.minLength>0&&this.element.value.length>0&&this.element.value.length<this.element.minLength}get typeMismatch(){return this.element[nt]==="input"&&this.element.value.length>0&&(this.element.type==="email"&&!DU.test(this.element.value)||this.element.type==="url"&&!OU.test(this.element.value))}get valueMissing(){if(!this.element.required||this.element[nt]==="object"||this.element[nt]==="output")return!1;if(this.element[nt]==="input"){if(this.element.type==="checkbox")return!this.element.checked;if(this.element.type==="radio"){if(this.element.checked)return!1;if(!this.element.name)return!0;let e=this.element[Ht]||this.element.getRootNode();return!e||!e.querySelector(`input[name="${this.element.name}"]:checked`)}}return this.element.value.length===0}get valid(){return!this.badInput&&!this.customError&&!this.patternMismatch&&!this.rangeOverflow&&!this.rangeUnderflow&&!this.stepMismatch&&!this.tooLong&&!this.tooShort&&!this.typeMismatch&&!this.valueMissing}};var Ao=class{static getAssociatedLabelElements(e){let t=e.id,r;t&&e[it]?r=(e[Be]||e[T]).querySelectorAll(`label[for="${t}"]`)[$]:r=[];let o=e[Y];for(;o;){if(o.tagName==="LABEL"){r.push(o);break}o=o[Y]}return new Ii(h,r)}};import{URL as VU}from"url";var UU=["submit","reset","button","menu"],MT,RT,FT,BT,DT,Ap=class extends(DT=G,BT=_e,FT=pr,RT=Ht,MT=Va,DT){constructor(){super(...arguments);s(this,BT,"");s(this,FT,new Po(this));s(this,RT,null);s(this,MT,null)}get validationMessage(){return this[_e]}get validity(){return this[pr]}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}get type(){let t=this.getAttribute("type");return t===null||!UU.includes(t)?"submit":t}set type(t){this.setAttribute("type",t)}get formAction(){if(!this.hasAttribute("formaction"))return this[T].location.href;try{return new VU(this.getAttribute("formaction"),this[T].location.href).href}catch{return""}}set formAction(t){this.setAttribute("formaction",t)}get formEnctype(){return this.getAttribute("formenctype")||""}set formEnctype(t){this.setAttribute("formenctype",t)}get formMethod(){return this.getAttribute("formmethod")||""}set formMethod(t){this.setAttribute("formmethod",t)}get formNoValidate(){return this.getAttribute("formnovalidate")!==null}set formNoValidate(t){t?this.setAttribute("formnovalidate",""):this.removeAttribute("formnovalidate")}get formTarget(){return this.getAttribute("formtarget")||""}set formTarget(t){this.setAttribute("formtarget",t)}get form(){if(this[Ht])return this[Ht];let t=this.getAttribute("form");return!t||!this[it]?null:this[T].getElementById(t)}get labels(){return Ao.getAssociatedLabelElements(this)}get popoverTargetElement(){return this[Va]}set popoverTargetElement(t){if(t!==null&&!(t instanceof G))throw new this[m].TypeError("Failed to set the 'popoverTargetElement' property on 'HTMLInputElement': Failed to convert value to 'Element'.");this[Va]=t}get popoverTargetAction(){let t=this.getAttribute("popovertargetaction");return t===null||t!=="hide"&&t!=="show"&&t!=="toggle"?"toggle":t}set popoverTargetAction(t){this.setAttribute("popovertargetaction",t)}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let r=Number(t);return isNaN(r)?0:r}return 0}set tabIndex(t){super.tabIndex=t}checkValidity(){let t=this.disabled||this.type==="reset"||this.type==="button"||this[pr].valid;return t||this.dispatchEvent(new k("invalid",{bubbles:!0,cancelable:!0})),t}reportValidity(){return this.checkValidity()}setCustomValidity(t){this[_e]=String(t)}dispatchEvent(t){if(t.type==="click"&&t instanceof nr&&t.eventPhase===de.none&&this.disabled)return!1;let r=super.dispatchEvent(t);if(!t[Br]&&t.type==="click"&&t.eventPhase===de.none&&t instanceof nr){let o=this.type;if(o==="submit"||o==="reset"){let i=this.form;i&&(o==="submit"&&this[it]?i.requestSubmit(this):o==="reset"&&i.reset())}}return r}};var Vb=class{constructor(e,t){s(this,"height");s(this,"width");this.width=e,this.height=t}close(){}};var Ub=class{constructor(e,t){s(this,"width");s(this,"height");this.width=e,this.height=t}getContext(e,t){return null}async convertToBlob(e){return new be([])}transferToImageBitmap(){return new Vb(this.width,this.height)}};var OT="S3F/aBCdEfGHIjKlMnOpQRStUvWxYz1234567890+1AbC2DEf2GHi3jK34le+ab12C3+1aBCdEf==",wp=class extends G{get oncontextlost(){return P.getEventListener(this,"oncontextlost")}set oncontextlost(e){this[c].set("oncontextlost",e)}get oncontextrestored(){return P.getEventListener(this,"oncontextrestored")}set oncontextrestored(e){this[c].set("oncontextrestored",e)}get onwebglcontextcreationerror(){return P.getEventListener(this,"onwebglcontextcreationerror")}set onwebglcontextcreationerror(e){this[c].set("onwebglcontextcreationerror",e)}get onwebglcontextlost(){return P.getEventListener(this,"onwebglcontextlost")}set onwebglcontextlost(e){this[c].set("onwebglcontextlost",e)}get onwebglcontextrestored(){return P.getEventListener(this,"onwebglcontextrestored")}set onwebglcontextrestored(e){this[c].set("onwebglcontextrestored",e)}get width(){let e=this.getAttribute("width");return e!==null?Number(e):300}set width(e){this.setAttribute("width",String(e))}get height(){let e=this.getAttribute("height");return e!==null?Number(e):150}set height(e){this.setAttribute("height",String(e))}captureStream(e){let t=new this[m].MediaStream,r=new this[m].CanvasCaptureMediaStreamTrack(h,this);return r[ui]="video",r[ws].deviceId=OT,r[ws].aspectRatio.max=this.width,r[ws].height.max=this.height,r[ws].width.max=this.width,r[Ra].deviceId=OT,e!==void 0&&(r[ws].frameRate.max=e,r[Ra].frameRate=e),t.addTrack(r),t}getContext(e,t){return null}toDataURL(e,t){return""}toBlob(e,t,r){e(new be([]))}transferControlToOffscreen(){return new Ub(this.width,this.height)}};var Ep=class extends G{};var xp=class extends G{get value(){return this.getAttribute("value")||""}set value(e){this.setAttribute("value",e)}};var VT,UT,vp=class extends(UT=G,VT=ln,UT){constructor(){super(...arguments);s(this,VT,null)}get options(){return this[ln]||(this[ln]=me.getElementsByTagName(this,"OPTION")),this[ln]}};var Tp=class extends G{get ontoggle(){return P.getEventListener(this,"ontoggle")}set ontoggle(e){this[c].set("ontoggle",e)}get open(){return this.getAttribute("open")!==null}set open(e){e?this.setAttribute("open",""):this.removeAttribute("open")}[$e](e,t){super[$e](e,t),e[st]==="open"&&e[z]!==t?.[z]&&this.dispatchEvent(new k("toggle"))}[Yr](e){super[Yr](e),e&&e[st]==="open"&&this.dispatchEvent(new k("toggle"))}dispatchEvent(e){let t=super.dispatchEvent(e);if(!e[Br]&&e.type==="click"&&e.eventPhase===de.bubbling&&e instanceof nr){let r=e[Zr];if(r)if(r[nt]==="summary"&&r[Y]===this)this.open=!this.open;else{let o=r;for(let i of this[dt])if(i[nt]==="summary"){o=i;break}o&&o.contains(r)&&(this.open=!this.open)}}return t}};var GT,_T,Cp=class extends(_T=G,GT=zf,_T){constructor(){super(...arguments);s(this,GT,"")}get oncancel(){return P.getEventListener(this,"oncancel")}set oncancel(t){this[c].set("oncancel",t)}get onclose(){return P.getEventListener(this,"onclose")}set onclose(t){this[c].set("onclose",t)}get returnValue(){return this[zf]}set returnValue(t){this[zf]=String(t)}set open(t){t?this.setAttribute("open",""):this.removeAttribute("open")}get open(){return this.getAttribute("open")!==null}close(t){let r=this.open;this.removeAttribute("open"),this.returnValue=t!==void 0?String(t):"",r&&this.dispatchEvent(new k("close"))}showModal(){this.setAttribute("open","")}show(){this.setAttribute("open","")}};var Np=class extends G{};var Lp=class extends G{get height(){return this.getAttribute("height")||""}set height(e){this.setAttribute("height",e)}get width(){return this.getAttribute("width")||""}set width(e){this.setAttribute("width",e)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[T].location.href).href}catch{return this.getAttribute("src")}}set src(e){this.setAttribute("src",e)}get type(){return this.getAttribute("type")||""}set type(e){this.setAttribute("type",e)}};var HT,WT,YT,Em=class extends(YT=G,WT=nn,HT=Ht,YT){constructor(){super(...arguments);s(this,WT,null);s(this,HT,null)}get elements(){return this[nn]||(this[nn]=new Ne(h,()=>yt.querySelectorAll(this,"input,button,textarea,select")[$])),this[nn]}get form(){if(this[Ht])return this[Ht];let t=this.getAttribute("form");return!t||!this[it]?null:this[T].getElementById(t)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get type(){return"fieldset"}get validationMessage(){return""}get willValidate(){return!1}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}checkValidity(){return!0}reportValidity(){return!0}setCustomValidity(t){}};var xm=class extends Ne{constructor(e,t){super(e,()=>t[Do]()),this[Lt]=t}namedItem(e){return this[Lt][Bc](e)}};var Us=class{static createChildFrame(e){let t=new e.constructor(e.page);return t.parentFrame=e,e.childFrames.push(t),t}static destroyFrame(e){let t=e.page.context.browser[_r];return e.closed?Promise.resolve():(e.closed=!0,new Promise((r,o)=>{if(!e.window){r();return}if(e.parentFrame){let i=e.parentFrame.childFrames.indexOf(e);i!==-1&&e.parentFrame.childFrames.splice(i,1)}if(!e.childFrames.length){e[gt].destroy().then(()=>{t&&e.window&&t.disconnect(e.window),e.window={closed:!0},e[xo]=null,e[ji]=null,e[fe]&&(e[fe].navigation=[]),r()}).catch(i=>o(i)),e.window&&e.window[wt]();return}Promise.all(e.childFrames.slice().map(i=>this.destroyFrame(i))).then(()=>{e[gt].destroy().then(()=>{t&&e.window&&t.disconnect(e.window),e.window={closed:!0},e[xo]=null,e[ji]=null,e[fe]&&(e[fe].navigation=[]),r()}).catch(i=>o(i)),e.window&&e.window[wt]()}).catch(i=>o(i))}))}};var wA;(function(l){l.anyOrigin="anyOrigin",l.sameOrigin="sameOrigin",l.strictOrigin="strictOrigin"})(wA||(wA={}));var kp=wA;var Ip=class{static validateCrossOriginPolicy(e,t){let r=e.page.context.browser.settings,o=e.page.mainFrame.window.location;return e[xo]?o=e[xo].window.location:e.parentFrame&&(o=e.parentFrame.window.location),!(r.navigation.crossOriginPolicy===kp.sameOrigin&&o.protocol!=="about:"&&t.protocol!=="about:"&&t.protocol!=="javascript:"&&o.origin!==t.origin||r.navigation.crossOriginPolicy===kp.strictOrigin&&o.protocol==="https:"&&t.protocol==="http:")}static validateFrameNavigation(e){let t=e.page.context.browser.settings;return!(e.page.context.browser.windowClass&&e.page.context===e.page.context.browser.defaultContext&&e.page.context.pages[0]===e.page&&e.page.mainFrame===e||t.navigation.disableMainFrameNavigation&&e.page.mainFrame===e||t.navigation.disableChildFrameNavigation&&e.page.mainFrame!==e||t.navigation.disableChildPageNavigation&&e[xo])}};var so=class l{static async navigate(e){let{windowClass:t,frame:r,url:o,formData:i,method:n,goToOptions:a,disableHistory:y}=e,p=r.page.context.browser[_r],d=a?.referrer||r.window.location.origin,b=Co.getRelativeURL(r,o),f=new URL(b.href.split("#")[0]),S=new URL(r.url.split("#")[0]),M=()=>{let ur=r[fe].navigation;r[fe].navigation=[];for(let mi of ur)mi()};if(!r.window)throw new Error('The frame has been destroyed, the "window" property is not set.');if(f.href===S.href&&b.hash&&b.hash!==r.window?.location.hash){let ur=r[Qe];return y||(ur.currentItem.popState=!0,ur.push({title:"",href:b.href,state:null,popState:!0,scrollRestoration:is.manual,method:n||(i?"POST":"GET"),formData:i||null})),r.window.location[yo](r,b.href),null}if(b.protocol==="javascript:"){if(r&&r.page.context.browser.settings.enableJavaScriptEvaluation){let ur=r.window[yi],mi=r[gt],Ea=ur.startTask(),Kf=b.href.replace("javascript:","");await new Promise(oe=>{r.window.requestAnimationFrame(()=>{let _V=setImmediate(()=>{mi.endTask(HV),oe(null)}),HV=mi.startTask(()=>()=>{clearImmediate(_V),oe(null)});r.window[Ci](Kf,{filename:r.url})})}),ur.endTask(Ea),M()}return null}if(!Ip.validateCrossOriginPolicy(r,b))return null;if(!Ip.validateFrameNavigation(r))return r.page.context.browser.settings.navigation.disableFallbackToSetURL||r.window.location[yo](r,b.href),null;y||r[Qe].push({title:"",href:b.href,state:null,popState:!1,scrollRestoration:is.auto,method:n||(i?"POST":"GET"),formData:i||null});let N=r.window,K=r[gt],mt=N.innerWidth,Nt=N.innerHeight,qt=N.devicePixelRatio,at=r.parentFrame?r.parentFrame.window:r.page.mainFrame.window,xt=r.page.mainFrame.window;r[gt]=new ts(r),r.window=new t(r,{url:b.href,width:mt,height:Nt}),r.window[Oo]=at,r.window[zi]=xt,r.window.devicePixelRatio=qt,p&&p.observe(r.window),d&&(r.window.document[zr]=d);let It=r[gt].startTask(),At=()=>{K.destroy().then(()=>{p&&p.disconnect(N),r[gt].endTask(It)}),N[wt]()};if(r.childFrames.length?Promise.all(r.childFrames.map(ur=>Us.destroyFrame(ur))).then(At):At(),b.protocol==="about:")return a?.beforeContentCallback&&a.beforeContentCallback(r.window),r.page.context.browser.settings.navigation.beforeContentCallback&&r.page.context.browser.settings.navigation.beforeContentCallback(r.window),await new Promise(ur=>r.page.mainFrame.window.requestAnimationFrame(ur)),M(),null;let ze=r.window[yi],qe=r[gt],ao=new r.window.AbortController,ai=setTimeout(()=>{qe.endTimer(ai),ao.abort(new r.window.DOMException("The operation was aborted. Request timed out.",v.timeoutError))},a?.timeout??3e4);qe.startTimer(ai);let wa=ze.startTask(),tn=()=>{clearTimeout(ai),qe.endTimer(ai),ze.endTask(wa),M()},Nc=new r.window.Headers(a?.headers),qi,Lc;a?.hard&&Nc.set("Cache-Control","no-cache");let qf=new zo({browserFrame:r,window:r.window,url:b.href,disableSameOriginPolicy:!0,init:{referrer:d,referrerPolicy:a?.referrerPolicy||"origin",signal:ao.signal,method:n||(i?"POST":"GET"),headers:Nc,body:i}});try{if(qi=await qf.send(),r.parentFrame){let ur=r.parentFrame.window.location,mi=qi.headers?.get("X-Frame-Options")?.toLowerCase(),Ea=ur.origin===b.origin||b.origin==="null";if(mi==="deny"||mi==="sameorigin"&&!Ea)throw new Error(`Refused to display '${o}' in a frame because it set 'X-Frame-Options' to '${mi}'.`)}Lc=await qi.text()}catch(ur){throw tn(),ur}return r.window?(qi.url&&r.window[vo][yo](r,qi.url),qi.ok||r.page.console.error(`GET ${b.href} ${qi.status} (${qi.statusText})`),a?.beforeContentCallback&&a.beforeContentCallback(r.window),r.page.context.browser.settings.navigation.beforeContentCallback&&r.page.context.browser.settings.navigation.beforeContentCallback(r.window),await new Promise(ur=>{r.window.requestAnimationFrame(()=>{let mi,Ea=qe.startTask(()=>()=>{clearImmediate(mi),ur(null)});mi=setImmediate(()=>{qe.endTask(Ea),ur(null)}),r.content=Lc})}),tn(),qi):null}static navigateBack(e){let{windowClass:t,frame:r,goToOptions:o}=e,i=r[Qe],n=i.items[i.items.indexOf(i.currentItem)-1];if(!n)return new Promise(p=>{r.window.requestAnimationFrame(()=>{let d=r[fe].navigation;r[fe].navigation=[];for(let b of d)b();p(null)})});let a=new URL(i.currentItem.href).origin,y=new URL(n.href).origin;return i.currentItem=n,!n.popState||a!==y?l.navigate({windowClass:t,frame:r,goToOptions:{...o,referrer:r.url},url:n.href,method:n.method,formData:n.formData,disableHistory:!0}):(r.window.location[yo](r,n.href),r.window.dispatchEvent(new r.window.PopStateEvent("popstate",{state:n.state,hasUAVisualTransition:!1})),Promise.resolve(null))}static navigateForward(e){let{windowClass:t,frame:r,goToOptions:o}=e,i=r[Qe],n=i.items[i.items.indexOf(i.currentItem)+1];if(!n)return new Promise(p=>{r.window.requestAnimationFrame(()=>{let d=r[fe].navigation;r[fe].navigation=[];for(let b of d)b();p(null)})});let a=new URL(i.currentItem.href).origin,y=new URL(n.href).origin;return i.currentItem=n,!n.popState||a!==y?l.navigate({windowClass:t,frame:r,goToOptions:{...o,referrer:r.url},url:n.href,method:n.method,formData:n.formData,disableHistory:!0}):(r.window.location[yo](r,n.href),r.window.dispatchEvent(new r.window.PopStateEvent("popstate",{state:n.state,hasUAVisualTransition:!1})),Promise.resolve(null))}static navigateSteps(e){if(!e.steps)return this.reload(e);let{windowClass:t,frame:r,goToOptions:o,steps:i}=e,n=r[Qe],a=n.items.indexOf(n.currentItem),y=a+i,p=n.items[y];if(!p)return new Promise(f=>{r.window.requestAnimationFrame(()=>{let S=r[fe].navigation;r[fe].navigation=[];for(let M of S)M();f(null)})});let d=new URL(n.currentItem.href).origin,b=!0;if(i<0){for(let f=a;f>y;f--)if(!n.items[f].popState||d!==new URL(n.items[f].href).origin){b=!1;break}}else for(let f=a;f<y;f++)if(!n.items[f].popState||d!==new URL(n.items[f].href).origin){b=!1;break}return n.currentItem=p,b?(r.window.location[yo](r,p.href),r.window.dispatchEvent(new r.window.PopStateEvent("popstate",{state:p.state,hasUAVisualTransition:!1})),Promise.resolve(null)):l.navigate({windowClass:t,frame:r,goToOptions:{...o,referrer:r.url},url:p.href,method:p.method,formData:p.formData,disableHistory:!0})}static reload(e){let{windowClass:t,frame:r,goToOptions:o}=e,i=r[Qe];return l.navigate({windowClass:t,frame:r,goToOptions:{...o,referrer:r.url},url:i.currentItem.href,method:i.currentItem.method,formData:i.currentItem.formData,disableHistory:!0})}};var Wy=class extends Ii{get value(){for(let e of this[$])if(e.checked)return e.value;return null}};var qT,KT,Gb,EA,xA=class xA extends G{constructor(){super();E(this,Gb);s(this,KT,null);s(this,qT);let t=new Te(this,[xA,G,xr,bt,Tt]),r=new Proxy(this,{get:(o,i)=>{if(i==="length")return o[Do]().length;if(i in o||typeof i=="symbol")return t.bind(i),o[i];let n=Number(i);return isNaN(n)?o[Bc](i)||void 0:o[Do]()[n]},set(o,i,n){if(t.bind(i),typeof i=="symbol")return o[i]=n,!0;let a=Number(i);return isNaN(a)&&(o[i]=n),!0},deleteProperty(o,i){if(typeof i=="symbol")return delete o[i],!0;let n=Number(i);return isNaN(n)&&delete o[i],!0},ownKeys(o){return Object.keys(o[Do]())},has(o,i){if(i in o)return!0;if(typeof i=="symbol")return!1;let n=o[Do](),a=Number(i);if(!isNaN(a)&&a>=0&&a<n.length)return!0;i=String(i);for(let y=0;y<n.length;y++){let p=n[y],d=p.getAttribute("id")||p.getAttribute("name");if(d&&d===i)return!0}return!1},defineProperty(o,i,n){if(t.preventBinding(i),!n.value)return Object.defineProperty(o,i,n),!0;let a=Number(n.value);return isNaN(a)?(Object.defineProperty(o,i,n),!0):!1},getOwnPropertyDescriptor(o,i){if(i in o)return Object.getOwnPropertyDescriptor(o,i);let n=o[Do](),a=Number(i);if(!isNaN(a)&&a>=0&&a<n.length)return{value:n[a],writable:!1,enumerable:!0,configurable:!0};for(let y=0;y<n.length;y++){let p=n[y],d=p.getAttribute("id")||p.getAttribute("name");if(d&&d===i)return{value:p,writable:!1,enumerable:!0,configurable:!0}}}});return this[Vt]=r,this[Ht]=r,r}get onformdata(){return P.getEventListener(this,"onformdata")}set onformdata(t){this[c].set("onformdata",t)}get onreset(){return P.getEventListener(this,"onreset")}set onreset(t){this[c].set("onreset",t)}get onsubmit(){return P.getEventListener(this,"onsubmit")}set onsubmit(t){this[c].set("onsubmit",t)}get elements(){return this[nn]||(this[nn]=new xm(h,this)),this[nn]}get length(){return this[Do]().length}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get method(){return this.getAttribute("method")||"get"}set method(t){this.setAttribute("method",t)}get target(){return this.getAttribute("target")||""}set target(t){this.setAttribute("target",t)}get action(){if(!this.hasAttribute("action"))return this[T].location.href;try{return new URL(this.getAttribute("action"),this[T].location.href).href}catch{return""}}set action(t){this.setAttribute("action",t)}get encoding(){return this.getAttribute("encoding")||""}set encoding(t){this.setAttribute("encoding",t)}get enctype(){return this.getAttribute("enctype")||""}set enctype(t){this.setAttribute("enctype",t)}get autocomplete(){return this.getAttribute("autocomplete")||""}set autocomplete(t){this.setAttribute("autocomplete",t)}get acceptCharset(){return this.getAttribute("acceptcharset")||""}set acceptCharset(t){this.setAttribute("acceptcharset",t)}get noValidate(){return this.getAttribute("novalidate")!==null}set noValidate(t){t?this.setAttribute("novalidate",""):this.removeAttribute("novalidate")}submit(){D(this,Gb,EA).call(this)}requestSubmit(t){if(t?.formNoValidate||this.noValidate||this.checkValidity()){let o=new hm("submit",{bubbles:!0,cancelable:!0,submitter:t||this[Vt]});this.dispatchEvent(o),o.defaultPrevented||D(this,Gb,EA).call(this,t)}}reset(){for(let t of this[Do]())switch(t[Z]){case"TEXTAREA":t[z]=null;break;case"INPUT":t[z]=null,t[xa]=null;break;case"OUTPUT":t.textContent=t[Vo];break;case"SELECT":let r=!1;for(let o of t.options)if(o.hasAttribute("selected")){r=!0,o.selected=!0;break}!r&&t.options.length>0&&(t.options[0].selected=!0);break}this.dispatchEvent(new k("reset",{bubbles:!0,cancelable:!0}))}checkValidity(){let t={},r=!0;for(let o of this[Do]())o[Z]==="INPUT"&&o.type==="radio"&&o.name?t[o.name]||(t[o.name]=!0,o.checkValidity()||(r=!1)):o.checkValidity()||(r=!1);return r}reportValidity(){return this.checkValidity()}[(KT=nn,qT=Vt,ct)](t=!1){return super[ct](t)}[Do](){let t=yt.querySelectorAll(this,"input,select,textarea,button,fieldset,object,output")[$].slice();if(this[it]){let r=this.getAttribute("id");if(r)for(let o of yt.querySelectorAll(this[T],`input[form="${r}"],select[form="${r}"],textarea[form="${r}"],button[form="${r}"],fieldset[form="${r}"],object[form="${r}"],output[form="${r}"]`)[$])t.includes(o)||t.push(o)}return t}[Bc](t){let r=this[Do](),o=[];t=String(t);for(let i of r)(i.getAttribute("id")===t||i.getAttribute("name")===t)&&o.push(i);return o.length?o.length===1?o[0]:new Wy(h,o):null}};Gb=new WeakSet,EA=function(t){let r=t?.formMethod||this.method;if(r==="dialog"){let y=null,p=this;for(;p;){if(p[Z]==="DIALOG"){y=p;break}p=p.parentElement}if(y){y.close(t?.value);return}}let o=t?.hasAttribute("formaction")?t?.formAction||this.action:this.action,i=new rt(this[m]).getBrowserFrame();if(!i)return;if(!o){this[T].location.hash="#blocked";return}let n=new this[m].FormData(this,t),a;switch(t?.formTarget||this.target){default:case"_self":a=i;break;case"_top":a=i.page.mainFrame;break;case"_parent":a=i.parentFrame??i;break;case"_blank":a=i.page.context.newPage().mainFrame,a[xo]=i;break}if(r==="get"){let y=new URL(o);y.search="";for(let[p,d]of n)typeof d=="string"&&y.searchParams.append(p,d);so.navigate({windowClass:this[T][mo]?.constructor,frame:a,url:y.href,goToOptions:{referrer:i.page.mainFrame.window.location.origin}});return}so.navigate({windowClass:this[T][mo]?.constructor,frame:a,method:r,url:o,formData:n,goToOptions:{referrer:i.page.mainFrame.window.location.origin}})};var Mp=xA;var Rp=class extends G{};var Fp=class extends G{};var Bp=class extends G{};var Dp=class extends G{};var jT,QT,Kn,Ql=class extends(QT=Tt,jT=Da,QT){constructor(t,r){super();s(this,"window",this);s(this,"location");s(this,jT,this);E(this,Kn);this[Oo]=r??this,this[zi]=r??this,this.location=new Proxy({},{get:()=>{throw new ae(`Blocked a frame with origin "${this.parent.location.origin}" from accessing a cross-origin frame.`,v.securityError)},set:()=>{throw new ae(`Blocked a frame with origin "${this.parent.location.origin}" from accessing a cross-origin frame.`,v.securityError)}}),w(this,Kn,t)}get self(){return this[Da]}set self(t){this[Da]=t}get top(){return this[zi]}get parent(){return this[Oo]}set parent(t){this[Oo]=t}get opener(){return u(this,Kn).opener}get closed(){return u(this,Kn).closed}blur(){u(this,Kn).blur()}focus(){u(this,Kn).focus()}close(){u(this,Kn).close()}postMessage(t,r="*",o){u(this,Kn).postMessage(t,r,o)}};Kn=new WeakMap;var GU=["allow-downloads","allow-forms","allow-modals","allow-orientation-lock","allow-pointer-lock","allow-popups","allow-popups-to-escape-sandbox","allow-presentation","allow-same-origin","allow-scripts","allow-top-navigation","allow-top-navigation-by-user-activation","allow-top-navigation-to-custom-protocols"],$T,vm,gr,Yy,Ai,XT,_b,Hb,Op=class extends G{constructor(){super(...arguments);E(this,Ai);s(this,$T,null);E(this,vm,{window:null});E(this,gr,null);E(this,Yy,null)}get onload(){return P.getEventListener(this,"onload")}set onload(t){this[c].set("onload",t)}get onerror(){return P.getEventListener(this,"onerror")}set onerror(t){this[c].set("onerror",t)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[T].location.href).href}catch{return this.getAttribute("src")}}set src(t){this.setAttribute("src",t)}get allow(){return this.getAttribute("allow")||""}set allow(t){this.setAttribute("allow",t)}get height(){return this.getAttribute("height")||""}set height(t){this.setAttribute("height",t)}get width(){return this.getAttribute("width")||""}set width(t){this.setAttribute("width",t)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get sandbox(){return this[Fc]||(this[Fc]=new So(h,this,"sandbox")),this[Fc]}set sandbox(t){this.setAttribute("sandbox",t)}get srcdoc(){return this.getAttribute("srcdoc")||""}set srcdoc(t){this.setAttribute("srcdoc",t)}get referrerPolicy(){return this.getAttribute("referrerpolicy")||""}set referrerPolicy(t){this.setAttribute("referrerpolicy",t)}get contentDocument(){return u(this,vm).window?.document??null}get contentWindow(){return u(this,vm).window}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let r=Number(t);return isNaN(r)?0:r}return 0}set tabIndex(t){super.tabIndex=t}[($T=Fc,Rr)](){super[Rr](),D(this,Ai,_b).call(this)}[Fr](){super[Fr](),D(this,Ai,Hb).call(this)}[ct](t=!1){return super[ct](t)}[$e](t,r){super[$e](t,r),t[st]==="srcdoc"&&D(this,Ai,_b).call(this),t[st]==="src"&&t[z]&&!this.hasAttribute("srcdoc")&&t[z]!==r?.[z]&&D(this,Ai,_b).call(this),t[st]==="sandbox"&&D(this,Ai,XT).call(this)}[Yr](t){super[Yr](t),(t[st]==="srcdoc"||t[st]==="src")&&D(this,Ai,_b).call(this)}};vm=new WeakMap,gr=new WeakMap,Yy=new WeakMap,Ai=new WeakSet,XT=function(){let t=this[m],r=[];for(let o of this.sandbox)GU.includes(o)||r.push(o);r.length===1?t.console.error(`Error while parsing the 'sandbox' attribute: '${r[0]}' is an invalid sandbox flag.`):r.length>1&&t.console.error(`Error while parsing the 'sandbox' attribute: '${r.join("', '")}' are invalid sandbox flags.`)},_b=function(){if(!this[it]){D(this,Ai,Hb).call(this);return}let t=this.getAttribute("srcdoc"),r=this[m],o=new rt(r).getBrowserFrame();if(!o)return;if(t!==null){if(u(this,Yy)===t)return;D(this,Ai,Hb).call(this),w(this,gr,Us.createChildFrame(o)),u(this,gr).url="about:srcdoc",u(this,vm).window=u(this,gr).window,u(this,gr).window[zi]=o.window.top,u(this,gr).window[Oo]=o.window,u(this,gr).window.document.open(),u(this,gr).window.document.write(t),w(this,Yy,t),this[m].requestAnimationFrame(()=>this.dispatchEvent(new k("load")));return}u(this,Yy)!==null&&D(this,Ai,Hb).call(this);let i=o.window.location,n=Co.getRelativeURL(o,this.src);if(u(this,gr)&&u(this,gr).window.location.href===n.href)return;if(o.page.context.browser.settings.disableIframePageLoading){let p=new r.DOMException(`Failed to load iframe page "${n.href}". Iframe page loading is disabled.`,v.notSupportedError);o.page.console.error(p),this.dispatchEvent(new k("error"));return}let a=i.origin===n.origin||n.origin==="null",y=a?r:new Ql(r);w(this,gr,u(this,gr)??Us.createChildFrame(o)),u(this,gr).window[zi]=y,u(this,gr).window[Oo]=y,u(this,gr).goto(n.href,{referrer:i.origin,referrerPolicy:this.referrerPolicy}).then(()=>this.dispatchEvent(new k("load"))).catch(p=>{o.page.console.error(p),this.dispatchEvent(new k("error"))}),u(this,vm).window=a?u(this,gr).window:new Ql(u(this,gr).window,r)},Hb=function(){u(this,gr)&&(Us.destroyFrame(u(this,gr)),w(this,gr,null)),u(this,vm).window=null,w(this,Yy,null)};var zT,JT,ZT,tC,eC,rC,oC,Tm=class extends G{constructor(){super(...arguments);s(this,oC,"IMG");s(this,rC,!1);s(this,eC,0);s(this,tC,0);s(this,ZT,"auto");s(this,JT,0);s(this,zT,0)}get complete(){return this[wP]}get naturalHeight(){return this[EP]}get naturalWidth(){return this[xP]}get loading(){let t=this.getAttribute("loading");return t==="eager"||t==="lazy"?t:"auto"}set loading(t){this.setAttribute("loading",t)}get x(){return this[R]}get y(){return this[F]}get decoding(){return this.getAttribute("decoding")||"auto"}set decoding(t){this.setAttribute("decoding",t)}get crossOrigin(){return this.getAttribute("crossOrigin")}set crossOrigin(t){(t==="anonymous"||t==="use-credentials")&&this.setAttribute("crossOrigin",t)}get alt(){return this.getAttribute("alt")||""}set alt(t){this.setAttribute("alt",t)}get currentSrc(){return this.src}get width(){let t=this.getAttribute("width");return t!==null?Number(t):0}set width(t){this.setAttribute("width",String(t))}get height(){let t=this.getAttribute("height");return t!==null?Number(t):0}set height(t){this.setAttribute("height",String(t))}get isMap(){return this.getAttribute("ismap")!==null}set isMap(t){t?this.setAttribute("ismap",""):this.removeAttribute("ismap")}get referrerPolicy(){return this.getAttribute("referrerpolicy")||""}set referrerPolicy(t){this.setAttribute("referrerpolicy",t)}get sizes(){return this.getAttribute("sizes")||""}set sizes(t){this.setAttribute("sizes",t)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[T].location.href).href}catch{return this.getAttribute("src")}}set src(t){this.setAttribute("src",t)}get srcset(){return this.getAttribute("srcset")||""}set srcset(t){this.setAttribute("srcset",t)}get useMap(){return this.getAttribute("usemap")||""}set useMap(t){this.setAttribute("usemap",t)}decode(){return Promise.resolve()}[(oC=Z,rC=wP,eC=EP,tC=xP,ZT=Bw,JT=R,zT=F,ct)](t=!1){return super[ct](t)}};var $l=class extends Array{constructor(){super(0)}get[Symbol.toStringTag](){return this.constructor.name}item(e){return this[e]||null}};var vA=/[\n\r]/gm,BS=l=>l.map(e=>parseInt(e,10)),Vp=class{static sanitize(e,t){switch(e.type){case"password":case"search":case"tel":case"text":return t.replace(vA,"");case"color":return/^#[a-fA-F\d]{6}$/.test(t)?t.toLowerCase():"#000000";case"email":return e.multiple?t.split(",").map(r=>r.trim()).join(","):t.trim().replace(vA,"");case"number":return isNaN(Number.parseFloat(t))?"":t;case"range":{let r=Number.parseFloat(t),o=parseFloat(e.min)||0,i=parseFloat(e.max)||100;return isNaN(r)?i<o?String(o):String((o+i)/2):r<o?String(o):r>i?String(i):t}case"url":return t.trim().replace(vA,"");case"date":return this.sanitizeDate(t);case"datetime-local":{let r=t.match(/^(\d\d\d\d)-(\d\d)-(\d\d)[T ](\d\d):(\d\d)(?::(\d\d)(?:\.(\d{1,3}))?)?$/);if(!r)return"";let o=this.sanitizeDate(t.slice(0,10)),i=this.sanitizeTime(t.slice(11));return o&&i?(r[6]!==void 0&&(i.indexOf(".")!==-1&&(i=i.replace(/(?:\.0*|(\.\d+?)0+)$/,"$1")),i=i.replace(/(\d\d:\d\d)(:00)$/,"$1")),o+"T"+i):""}case"month":return t.match(/^(\d\d\d\d)-(\d\d)$/)&&this.parseMonthComponent(t)&&this.checkBoundaries(t,e.min,e.max)?t:"";case"time":return t=this.sanitizeTime(t),t&&this.checkBoundaries(t,e.min,e.max)?t:"";case"week":{let r=t.match(/^(\d\d\d\d)-W(\d\d)$/);if(!r)return"";let[o,i]=BS(r.slice(1,3));if(o<=0||i<1||i>53)return"";let n=this.lastIsoWeekOfYear(o);return i<1||i>52+n||!this.checkBoundaries(t,e.min,e.max)?"":t}}return t}static checkBoundaries(e,t,r){return t&&t>e?!1:!(r&&r<e)}static parseMonthComponent(e){let[t,r]=e.split("-"),[o,i]=BS([t,r]);return isNaN(o)||isNaN(i)||o<=0||i<1||i>12?"":e}static sanitizeDate(e){let t=e.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!t||!this.parseMonthComponent(e.slice(0,7)))return"";let[o,i,n]=BS(t.slice(1,4));if(n<1||n>31)return"";let a=new Date(o,i,0).getDate();return n>a?"":e}static sanitizeTime(e){let t=e.match(/^(\d{2}):(\d{2})(?::(\d{2}(?:\.(\d{1,3}))?))?$/);if(!t)return"";let[r,o]=BS(t.slice(1,3)),i=parseFloat(t[3]||"0")*1e3;return r>23||o>59||i>59999?"":i===0?`${t[1]}:${t[2]}`:`${t[1]}:${t[2]}${i>=1e4?`:${i/1e3}`:`:0${i/1e3}`}`}};s(Vp,"lastIsoWeekOfYear",e=>{let t=new Date(+e,11,31),r=(t.getDay()+6)%7;t.setDate(t.getDate()-r+3);let o=t.getTime();return t.setMonth(0,1),t.getDay()!==4&&t.setMonth(0,1+(4-t.getDay()+7)%7),1+Math.ceil((o-t.getTime())/6048e5)});var TA;(function(l){l.preserve="preserve",l.select="select",l.start="start",l.end="end"})(TA||(TA={}));var jn=TA;var CA;(function(l){l.none="none",l.forward="forward",l.backward="backward"})(CA||(CA={}));var ti=CA;var Up=class{static step(e,t,r){switch(e.type){case"number":return this.getNumberValue(e,t,r);case"date":case"month":case"week":case"time":case"datetime-local":case"range":return null;default:throw new ae("This form element is not steppable.")}}static getNumberValue(e,t,r){let o=e.step,i=e.min,n=e.max,a=i!==""?Number(i):null,y=n!==""?Number(n):null,p=Number(e.value),d=o!==""?Number(o):1;if(p=isNaN(p)?0:p,d=isNaN(d)||d===0?1:d,a!==null&&!isNaN(a)&&y!==null&&!isNaN(y)&&(a>y||y<a)||r===0)return e.value;let b=r!==void 0?Math.ceil(r/d)*d:d,f=p+b*t,S=a!==null&&!isNaN(a)?a:0;switch(t){case-1:return a!==null&&!isNaN(a)&&f<a?String(a):String(f+(p-S)%d);case 1:return y!==null&&!isNaN(y)&&f>y?String(S+Math.floor((y-S)/d)*d):String(f-(p-S)%d)}}};var qy=class{static dateIsoWeek(e){e=typeof e=="number"?new Date(e):e,e=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),e.setUTCDate(e.getUTCDate()+4-(e.getUTCDay()||7));let t=new Date(Date.UTC(e.getUTCFullYear(),0,1)),r=Math.ceil(((e-t)/864e5+1)/7);return`${e.getUTCFullYear()}-W${r<10?"0":""}${r}`}static isoWeekDate(e){let[,t,r]=e.match(/^(\d{4})-W(\d{2})$/)||[];if(!t||!r||Number(r)>53||Number(r)<1)return new Date("x");let o=new Date(`${t}-01-01T00:00Z`),n=(new Date(`${t}-01-04T00:00Z`).getUTCDay()+6)%7,a=1+(Number(r)-1)*7-n+3;return o.setUTCDate(a),o.getUTCFullYear()>Number(t)?new Date("x"):o}};import{URL as _U}from"url";var HU=new Set(["hidden","text","search","tel","url","email","password","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]),iC,sC,nC,lC,aC,mC,yC,uC,pC,hC,Vi,wi,Gs,Lo,Qn,DS,Gp=class extends G{constructor(){super(...arguments);E(this,Lo);s(this,hC,null);s(this,pC,0);s(this,uC,0);s(this,yC,null);s(this,mC,"");s(this,aC,new Po(this));s(this,lC,new $l);s(this,nC,!1);s(this,sC,null);s(this,iC,null);E(this,Vi,null);E(this,wi,null);E(this,Gs,ti.none)}get oninput(){return P.getEventListener(this,"oninput")}set oninput(t){this[c].set("oninput",t)}get oninvalid(){return P.getEventListener(this,"oninvalid")}set oninvalid(t){this[c].set("oninvalid",t)}get onselectionchange(){return P.getEventListener(this,"onselectionchange")}set onselectionchange(t){this[c].set("onselectionchange",t)}get defaultChecked(){return this.hasAttribute("checked")}set defaultChecked(t){t?this.setAttribute("checked",""):this.removeAttribute("checked")}get files(){return this[Qi]}set files(t){this[Qi]=t}get formAction(){if(!this.hasAttribute("formaction"))return this[T].location.href;try{return new _U(this.getAttribute("formaction"),this[T].location.href).href}catch{return""}}set formAction(t){this.setAttribute("formaction",t)}get formEnctype(){return this.getAttribute("formenctype")||""}set formEnctype(t){this.setAttribute("formenctype",t)}get formMethod(){return this.getAttribute("formmethod")||""}set formMethod(t){this.setAttribute("formmethod",t)}get formNoValidate(){return this.getAttribute("formnovalidate")!==null}set formNoValidate(t){t?this.setAttribute("formnovalidate",""):this.removeAttribute("formnovalidate")}get formTarget(){return this.getAttribute("formtarget")||""}set formTarget(t){this.setAttribute("formtarget",t)}get form(){if(this[Ht])return this[Ht];let t=this.getAttribute("form");return!t||!this[it]?null:this[T].getElementById(t)}get validationMessage(){return this[_e]}get validity(){return this[pr]}get height(){return this[O]}set height(t){this[O]=t,this.setAttribute("height",String(t))}get width(){return this[V]}set width(t){this[V]=t,this.setAttribute("width",String(t))}get size(){let t=this.getAttribute("size");return t!==null?parseInt(t):20}set size(t){this.setAttribute("size",String(t))}get minLength(){let t=this.getAttribute("minlength");return t!==null?parseInt(t):-1}set minLength(t){this.setAttribute("minlength",String(t))}get maxLength(){let t=this.getAttribute("maxlength");return t!==null?parseInt(t):-1}set maxLength(t){this.setAttribute("maxlength",String(t))}get type(){let t=(this.getAttribute("type")??"").toLowerCase();return HU.has(t)?t:"text"}set type(t){this.setAttribute("type",t.toLowerCase())}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get alt(){return this.getAttribute("alt")||""}set alt(t){this.setAttribute("alt",t)}get min(){return this.getAttribute("min")||""}set min(t){this.setAttribute("min",t)}get max(){return this.getAttribute("max")||""}set max(t){this.setAttribute("max",t)}get pattern(){return this.getAttribute("pattern")||""}set pattern(t){this.setAttribute("pattern",t)}get placeholder(){return this.getAttribute("placeholder")||""}set placeholder(t){this.setAttribute("placeholder",t)}get step(){return this.getAttribute("step")||""}set step(t){this.setAttribute("step",t)}get inputMode(){return this.getAttribute("inputmode")||""}set inputMode(t){this.setAttribute("inputmode",t)}get accept(){return this.getAttribute("accept")||""}set accept(t){this.setAttribute("accept",t)}get allowdirs(){return this.getAttribute("allowdirs")||""}set allowdirs(t){this.setAttribute("allowdirs",t)}get autocomplete(){return this.getAttribute("autocomplete")||""}set autocomplete(t){this.setAttribute("autocomplete",t)}get src(){return this.getAttribute("src")||""}set src(t){this.setAttribute("src",t)}get defaultValue(){return this.getAttribute("value")||""}set defaultValue(t){this.setAttribute("value",t)}get readOnly(){return this.getAttribute("readonly")!==null}set readOnly(t){t?this.setAttribute("readonly",""):this.removeAttribute("readonly")}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}get autofocus(){return this.getAttribute("autofocus")!==null}set autofocus(t){t?this.setAttribute("autofocus",""):this.removeAttribute("autofocus")}get required(){return this.getAttribute("required")!==null}set required(t){t?this.setAttribute("required",""):this.removeAttribute("required")}get indeterminate(){return this[Ca]}set indeterminate(t){this[Ca]=!!t}get multiple(){return this.getAttribute("multiple")!==null}set multiple(t){t?this.setAttribute("multiple",""):this.removeAttribute("multiple")}get checked(){return this[xa]!==null?this[xa]:this.getAttribute("checked")!==null}set checked(t){D(this,Lo,DS).call(this,t)}get value(){switch(this.type){case"hidden":case"submit":case"image":case"reset":case"button":return this.getAttribute("value")||"";case"checkbox":case"radio":let t=this.getAttribute("value");return t!==null?t:"on";case"file":return this[Qi].length>0?"/fake/path/"+this[Qi][0].name:""}return this[z]===null?this.getAttribute("value")||"":this[z]}set value(t){switch(t=t===null?"":String(t),this.type){case"hidden":case"submit":case"image":case"reset":case"button":case"checkbox":case"radio":this.setAttribute("value",t);break;case"file":if(t!==null&&t!=="")throw new this[m].DOMException('Input elements of type "file" may only programmatically set the value to empty string.',v.invalidStateError);this[Qi]=new $l;break;default:let r=this.value;this[z]=Vp.sanitize(this,t),r!==this[z]&&(w(this,Vi,this[z].length),w(this,wi,this[z].length),w(this,Gs,ti.none));break}}get selectionStart(){return D(this,Lo,Qn).call(this)?u(this,Vi)===null?this.value.length:u(this,Vi):null}set selectionStart(t){if(!D(this,Lo,Qn).call(this))throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,v.invalidStateError);this.setSelectionRange(t,Math.max(t,this.selectionEnd),u(this,Gs))}get selectionEnd(){return D(this,Lo,Qn).call(this)?u(this,wi)===null?this.value.length:u(this,wi):null}set selectionEnd(t){if(!D(this,Lo,Qn).call(this))throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,v.invalidStateError);this.setSelectionRange(this.selectionStart,t,u(this,Gs))}get selectionDirection(){return D(this,Lo,Qn).call(this)?u(this,Gs):null}set selectionDirection(t){if(!D(this,Lo,Qn).call(this))throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,v.invalidStateError);this.setSelectionRange(u(this,Vi),u(this,wi),t)}get willValidate(){return this.type!=="hidden"&&this.type!=="reset"&&this.type!=="button"&&!this.disabled&&!this.readOnly}get valueAsDate(){switch(this.type){case"date":case"month":return isNaN(new Date(String(this.value)).getTime())?null:new Date(this.value);case"week":{let t=qy.isoWeekDate(this.value);return isNaN(t.getTime())?null:t}case"time":{let t=new Date(`1970-01-01T${this.value}Z`);return isNaN(t.getTime())?null:t}default:return null}}set valueAsDate(t){if(!["date","month","time","week"].includes(this.type))throw new this[m].DOMException("Failed to set the 'valueAsDate' property on 'HTMLInputElement': This input element does not support Date values.",v.invalidStateError);if(typeof t!="object")throw new this[m].TypeError("Failed to set the 'valueAsDate' property on 'HTMLInputElement': Failed to convert value to 'object'.");if(t&&!(t instanceof Date))throw new this[m].TypeError("Failed to set the 'valueAsDate' property on 'HTMLInputElement': The provided value is not a Date.");if(t===null||isNaN(t.getTime())){this.value="";return}switch(this.type){case"date":this.value=t.toISOString().split("T")[0];break;case"month":this.value=t.toISOString().split("T")[0].slice(0,-3);break;case"time":this.value=t.toISOString().split("T")[1].slice(0,5);break;case"week":this.value=qy.dateIsoWeek(t);break}}get valueAsNumber(){let t=this.value;if(!this.type.match(/^(range|number|date|datetime-local|month|time|week)$/)||!t)return NaN;switch(this.type){case"number":return parseFloat(t);case"range":{let r=parseFloat(t),o=parseFloat(this.min)||0,i=parseFloat(this.max)||100;return isNaN(r)?i<o?o:(o+i)/2:r<o?o:r>i?i:r}case"date":return new Date(t).getTime();case"datetime-local":return new Date(t).getTime()-new Date(t).getTimezoneOffset()*6e4;case"month":return(new Date(t).getUTCFullYear()-1970)*12+new Date(t).getUTCMonth();case"time":return new Date("1970-01-01T"+t).getTime()-new Date("1970-01-01T00:00:00").getTime();case"week":{let r=t.match(/^(\d{4})-W(\d{2})$/);if(!r)return NaN;let o=new Date(Date.UTC(parseInt(r[1],10),0)),i=o.getUTCDay(),n=((i===0?-6:1)-i)*864e5+parseInt(r[2],10)*6048e5;return o.getTime()+n}default:return NaN}}set valueAsNumber(t){switch(this.type){case"number":case"range":this.value=Number(t).toString();break;case"date":case"datetime-local":{let r=new Date(Number(t));if(isNaN(r.getTime())){this.value="";break}this.type=="date"?this.value=r.toISOString().slice(0,10):this.value=r.toISOString().slice(0,-1);break}case"month":!Number.isInteger(t)||t<0?this.value="":this.value=new Date(Date.UTC(1970,Number(t))).toISOString().slice(0,7);break;case"time":!Number.isInteger(t)||t<0?this.value="":this.value=new Date(Number(t)).toISOString().slice(11,-1);break;case"week":{let r=new Date(Number(t));this.value=isNaN(r.getTime())?"":qy.dateIsoWeek(r);break}default:throw new this[m].DOMException("Failed to set the 'valueAsNumber' property on 'HTMLInputElement': This input element does not support Number values.",v.invalidStateError)}}get labels(){return Ao.getAssociatedLabelElements(this)}get list(){let t=this.getAttribute("list");return t?(this[Be]||this[T]).querySelector(`datalist#${t}`):null}get popoverTargetElement(){return this[Va]}set popoverTargetElement(t){if(t!==null&&!(t instanceof G))throw new this[m].TypeError("Failed to set the 'popoverTargetElement' property on 'HTMLInputElement': Failed to convert value to 'Element'.");this[Va]=t}get popoverTargetAction(){let t=this.getAttribute("popovertargetaction");return t===null||t!=="hide"&&t!=="show"&&t!=="toggle"?"toggle":t}set popoverTargetAction(t){this.setAttribute("popovertargetaction",t)}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let r=Number(t);return isNaN(r)?0:r}return 0}set tabIndex(t){super.tabIndex=t}setCustomValidity(t){this[_e]=String(t)}select(){D(this,Lo,Qn).call(this)&&(w(this,Vi,0),w(this,wi,this.value.length),w(this,Gs,ti.none),this.dispatchEvent(new k("select",{bubbles:!0,cancelable:!1})))}setSelectionRange(t,r,o="none"){if(!D(this,Lo,Qn).call(this))throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,v.invalidStateError);w(this,wi,Math.min(r,this.value.length)),w(this,Vi,Math.min(t,u(this,wi))),w(this,Gs,o===ti.forward||o===ti.backward?o:ti.none),this.dispatchEvent(new k("select",{bubbles:!0,cancelable:!1}))}setRangeText(t,r=null,o=null,i=jn.preserve){if(!D(this,Lo,Qn).call(this))throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,v.invalidStateError);if(r===null&&(r=u(this,Vi)),o===null&&(o=u(this,wi)),r>o)throw new this[m].DOMException("The index is not in the allowed range.",v.invalidStateError);r=Math.min(r,this.value.length),o=Math.min(o,this.value.length);let n=this.value,a=u(this,Vi),y=u(this,wi);this.value=n.slice(0,r)+t+n.slice(o);let p=r+this.value.length;switch(i){case jn.select:this.setSelectionRange(r,p);break;case jn.start:this.setSelectionRange(r,r);break;case jn.end:this.setSelectionRange(p,p);break;default:let d=t.length-(o-r);a>o?a+=d:a>r&&(a=r),y>o?y+=d:y>r&&(y=p),this.setSelectionRange(a,y);break}}checkValidity(){let t=this.disabled||this.readOnly||this.type==="hidden"||this.type==="reset"||this.type==="button"||this[pr].valid;return t||this.dispatchEvent(new k("invalid",{bubbles:!0,cancelable:!0})),t}reportValidity(){return this.checkValidity()}stepUp(t){let r=Up.step(this,1,t);r!==null&&(this.value=r)}stepDown(t){let r=Up.step(this,-1,t);r!==null&&(this.value=r)}[(hC=z,pC=O,uC=V,yC=xa,mC=_e,aC=pr,lC=Qi,nC=Ca,sC=Ht,iC=Va,ct)](t=!1){let r=super[ct](t);return r[z]=this[z],r[O]=this[O],r[V]=this[V],r[Qi]=this[Qi].slice(),w(r,Vi,u(this,Vi)),w(r,wi,u(this,wi)),w(r,Gs,u(this,Gs)),r}dispatchEvent(t){if(t[zt]!=="click"||t[eo]!==de.none||!(t instanceof nr))return super.dispatchEvent(t);if(this.disabled)return!1;let r=null,o=this[Ca],i=this.type;(i==="checkbox"||i==="radio")&&(r=this.checked,D(this,Lo,DS).call(this,i==="checkbox"?!r:!0),i==="checkbox"&&(o=this[Ca],this[Ca]=!1));let n=super.dispatchEvent(t);if(t[zt]!=="click"||t[eo]!==de.none||!(t instanceof nr))return n;if(t[Br])r!==null&&(D(this,Lo,DS).call(this,r),this[Ca]=o);else{let a=this.type;if(a==="checkbox"&&this[it])this.dispatchEvent(new k("input",{bubbles:!0,cancelable:!0})),this.dispatchEvent(new k("change",{bubbles:!0,cancelable:!0}));else if(a==="radio"&&!r&&this[it])this.dispatchEvent(new k("input",{bubbles:!0,cancelable:!0})),this.dispatchEvent(new k("change",{bubbles:!0,cancelable:!0}));else if(a==="submit"||a==="reset"){let y=this.form;y&&(a==="submit"&&this[it]?y.requestSubmit(this):a==="reset"&&y.reset())}}return n}};Vi=new WeakMap,wi=new WeakMap,Gs=new WeakMap,Lo=new WeakSet,Qn=function(){let t=this.type;return t==="text"||t==="search"||t==="url"||t==="tel"||t==="password"},DS=function(t){if(this[xa]=t,this[po](),t&&this.type==="radio"&&this.name){let o=(this[Ht]||this.getRootNode()).querySelectorAll(`input[type="radio"][name="${this.name}"]`);for(let i of o)i!==this&&(i[xa]=!1)}};var _p=class extends G{get htmlFor(){let e=this.getAttribute("for");return e!==null||e!==null?e:""}set htmlFor(e){this.setAttribute("for",e)}get control(){let e=this.getAttribute("for");if(e!==null){if(!e||!this[it])return null;let t=this[Be].getElementById(e);if(t)switch(t[Z]){case"INPUT":return t.type!=="hidden"?t:null;case"BUTTON":case"METER":case"OUTPUT":case"PROGRESS":case"SELECT":case"TEXTAREA":return t;default:return null}}return this.querySelector('button,input:not([type="hidden"]),meter,output,progress,select,textarea')}get form(){return this.control?.form||null}[ct](e=!1){return super[ct](e)}dispatchEvent(e){let t=super.dispatchEvent(e);if(!e[Br]&&e.type==="click"&&(e.eventPhase===de.atTarget||e.eventPhase===de.bubbling)&&e instanceof nr){let r=this.control;r&&e.target!==r&&r.dispatchEvent(new nr("click",{bubbles:!0,cancelable:!0}))}return t}};var Hp=class extends G{get form(){let e=this;for(;e;){if(e instanceof Em)return e.form;e=e.parentNode}return null}};var Wp=class extends G{get value(){if(!this.hasAttribute("value"))return 0;let e=Number(this.getAttribute("value"));return isNaN(e)?0:e}set value(e){let t=Number(e);this.setAttribute("value",isNaN(t)?"0":String(t))}};import cC from"fs";import WU from"path";import YU from"child_process";var Wb=class{static getScript(e){let t={},r=Object.keys(e.headers).sort();for(let o of r)t[o]=e.headers[o];return`
98
98
  const sendRequest = require('http${e.url.protocol==="https:"?"s":""}').request;
99
99
  const options = ${JSON.stringify({method:e.method,headers:t,agent:!1,rejectUnauthorized:!e.disableStrictSSL,key:e.url.protocol==="https:"?sp.key:void 0,cert:e.url.protocol==="https:"?sp.cert:void 0},null,4)};
100
100
  const request = sendRequest(${JSON.stringify(e.url.href)}, options, (incomingMessage) => {
@@ -119,22 +119,22 @@ We should not end up here and it is therefore a bug in Happy DOM. Please report
119
119
  });
120
120
  request.write(Buffer.from('${e.body?e.body.toString("base64"):""}', 'base64'));
121
121
  request.end();
122
- `}};import Yb from"zlib";var mr,Wt,Kb,qb=class qb{constructor(e){s(this,"request");s(this,"redirectCount",0);s(this,"disableCache");s(this,"disableSameOriginPolicy");s(this,"interceptor");s(this,"requestHeaders");E(this,mr);E(this,Wt);E(this,Kb,null);w(this,mr,e.browserFrame),w(this,Wt,e.window),w(this,Kb,e.unfilteredHeaders??null),this.request=typeof e.url=="string"||e.url instanceof De?new e.window.Request(e.url,e.init):e.url,e.contentType&&(this.request[Fe]=e.contentType),this.redirectCount=e.redirectCount??0,this.disableCache=e.disableCache??!1,this.disableSameOriginPolicy=e.disableSameOriginPolicy??u(this,mr).page.context.browser.settings.fetch.disableSameOriginPolicy??!1,this.interceptor=u(this,mr).page.context.browser.settings.fetch.interceptor,this.requestHeaders=u(this,mr).page.context.browser.settings.fetch.requestHeaders}send(){if(Rs.prepareRequest(new De(u(this,Wt).location.href),this.request),this.requestHeaders){for(let r of this.requestHeaders)if(!r.url||(typeof r.url=="string"?r.url.startsWith(this.request.url):this.request.url.match(r.url)))for(let[o,i]of Object.entries(r.headers))this.request.headers.set(o,i)}if(this.interceptor?.beforeSyncRequest){let r=this.interceptor.beforeSyncRequest({request:this.request,window:u(this,Wt)});if(typeof r=="object")return r}if(Ri.validateSchema(this.request),this.request.signal[ve])throw this.request.signal[di]!==void 0?this.request.signal[di]:new(u(this,Wt)).DOMException("signal is aborted without reason",v.abortError);if(this.request[Ie].protocol==="data:"){let r=ky.parse(this.request.url),o={status:200,statusText:"OK",ok:!0,url:this.request.url,redirected:!1,headers:new(u(this,Wt)).Headers({"Content-Type":r.type}),body:r.buffer,[To]:null},i=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:u(this,Wt),response:o,request:this.request}):void 0;return typeof i=="object"?i:o}if(this.request[Ie].protocol==="http:"&&u(this,Wt).location.protocol==="https:")throw new(u(this,Wt)).DOMException(`Mixed Content: The page at '${u(this,Wt).location.href}' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '${this.request.url}'. This request has been blocked; the content must be served over HTTPS.`,v.securityError);let e=this.getCachedResponse();if(e)return e;let t=this.getVirtualServerResponse();if(t)return t;if(!this.compliesWithCrossOriginPolicy())throw u(this,Wt).console.warn(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`),new(u(this,Wt)).DOMException(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`,v.networkError);return this.sendRequest()}getCachedResponse(){if(this.disableCache)return null;let e=u(this,mr).page.context.responseCache.get(this.request);if(!e||e.response.waitingForBody)return null;if(e.state===Wa.stale){let t=new(u(this,Wt)).Headers(e.request.headers);if(e.etag)t.set("If-None-Match",e.etag);else{if(!e.lastModified)return null;t.set("If-Modified-Since",new Date(e.lastModified).toUTCString())}if(e.etag||!e.staleWhileRevalidate){let o=new qb({browserFrame:u(this,mr),window:u(this,Wt),url:this.request.url,init:{headers:t,method:e.request.method},disableCache:!0,disableSameOriginPolicy:!0}).send(),i=o.status!==304?o.body:null;if(e=u(this,mr).page.context.responseCache.add(this.request,{...o,body:i,waitingForBody:!1}),o.status!==304)return o}else new zo({browserFrame:u(this,mr),window:u(this,Wt),url:this.request.url,init:{headers:t,method:e.request.method},disableCache:!0,disableSameOriginPolicy:!0}).send().then(o=>{o.buffer().then(i=>{u(this,mr).page.context.responseCache.add(this.request,{...o,body:i,waitingForBody:!1})})})}return!e||e.response.waitingForBody?null:{status:e.response.status,statusText:e.response.statusText,ok:!0,url:e.response.url,redirected:!1,headers:e.response.headers,body:e.response.body,[To]:e.response[To]||null}}getVirtualServerResponse(){let e=Bs.getFilepath(u(this,Wt),this.request.url);if(!e)return null;if(this.request.method!=="GET"){u(this,mr).page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let n=Bs.getNotFoundSyncResponse(u(this,Wt),this.request.url),a=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:u(this,Wt),response:n,request:this.request}):void 0;return typeof a=="object"?a:n}let t;try{e=cC.statSync(e).isDirectory()?WU.join(e,"index.html"):e,t=cC.readFileSync(e)}catch{u(this,mr).page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let n=Bs.getNotFoundSyncResponse(u(this,Wt),this.request.url),a=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:u(this,Wt),response:n,request:this.request}):void 0;return typeof a=="object"?a:n}let r={status:200,statusText:"",ok:!0,url:this.request.url,redirected:!1,headers:new(u(this,Wt)).Headers,body:t,[To]:e},o=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:u(this,Wt),response:r,request:this.request}):void 0,i=typeof o=="object"?o:r;return u(this,mr).page.context.responseCache.add(this.request,{...i,waitingForBody:!1,virtual:!0}),i}compliesWithCrossOriginPolicy(){if(this.disableSameOriginPolicy||!Mi.isCORS(u(this,Wt).location.href,this.request[Ie]))return!0;let e=u(this,mr).page.context.preflightResponseCache.get(this.request);if(e)return!(e.allowOrigin!=="*"&&e.allowOrigin!==u(this,Wt).location.origin||e.allowMethods.length!==0&&!e.allowMethods.includes(this.request.method));let t=[];for(let[y]of this.request.headers)t.push(y.toLowerCase());let r=new(u(this,Wt)).Headers({"Access-Control-Request-Method":this.request.method,Origin:u(this,Wt).location.origin});t.length>0&&r.set("Access-Control-Request-Headers",t.slice().sort().join(","));let i=new qb({browserFrame:u(this,mr),window:u(this,Wt),url:this.request.url,init:{method:"OPTIONS"},disableCache:!0,disableSameOriginPolicy:!0,unfilteredHeaders:r}).send();if(!i.ok)return!1;let n=i.headers.get("Access-Control-Allow-Origin");if(!n||n!=="*"&&n!==u(this,Wt).location.origin)return!1;let a=[];if(i.headers.has("Access-Control-Allow-Methods")){let y=i.headers.get("Access-Control-Allow-Methods");if(y!=="*")for(let p of y.split(","))a.push(p.trim().toUpperCase())}return!(a.length!==0&&!a.includes(this.request.method))}sendRequest(){if(!this.request[fs]&&this.request.body)throw new(u(this,Wt)).DOMException("Streams are not supported as request body for synchronous requests.",v.notSupportedError);let e=Wb.getScript({url:this.request[Ie],method:this.request.method,headers:Fs.getRequestHeaders({browserFrame:u(this,mr),window:u(this,Wt),request:this.request,baseHeaders:u(this,Kb)}),disableStrictSSL:u(this,mr).page.context.browser.settings.fetch.disableStrictSSL,body:this.request[fs]}),t=YU.execFileSync(process.argv[0],["-e",e],{encoding:"buffer",maxBuffer:1024*1024*1024});if(!t.length)throw new(u(this,Wt)).DOMException(`Synchronous fetch to "${this.request.url}" failed.`,v.networkError);let{error:r,incomingMessage:o}=JSON.parse(t.toString());if(r)throw new(u(this,Wt)).DOMException(`Synchronous fetch to "${this.request.url}" failed. Error: ${r}`,v.networkError);let i=Ry.parseResponseHeaders({browserFrame:u(this,mr),requestURL:this.request[Ie],rawHeaders:o.rawHeaders}),n={status:o.statusCode,statusText:o.statusMessage,ok:o.statusCode>=200&&o.statusCode<300,url:this.request.url,redirected:this.redirectCount>0,headers:i,body:this.parseIResponseBody({headers:i,status:o.statusCode,body:Buffer.from(o.data,"base64")})},a=this.handleRedirectResponse(n)||n;!this.disableCache&&!a.redirected&&u(this,mr).page.context.responseCache.add(this.request,{status:a.status,statusText:a.statusText,url:a.url,headers:a.headers,body:a.body,waitingForBody:!1});let y=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:u(this,Wt),response:a,request:this.request}):void 0,p=typeof y=="object"?y:a;return p.ok||u(this,mr).page.console.error(`${this.request.method} ${this.request.url} ${p.status} (${p.statusText})`),p}parseIResponseBody(e){let t=e.headers.get("Content-Encoding");if(this.request.method==="HEAD"||t===null||e.status===204||e.status===304)return e.body;try{if(t==="gzip"||t==="x-gzip")return Yb.gunzipSync(e.body,{flush:Yb.constants.Z_SYNC_FLUSH,finishFlush:Yb.constants.Z_SYNC_FLUSH});if(t==="deflate"||t==="x-deflate")return Yb.inflateSync(e.body);if(t==="br")return Yb.brotliDecompressSync(e.body)}catch(r){throw new(u(this,Wt)).DOMException(`Failed to read response body. Error: ${r.message}.`,v.encodingError)}return e.body}handleRedirectResponse(e){if(!Hl.isRedirect(e.status))return null;switch(this.request.redirect){case"error":throw new(u(this,Wt)).DOMException(`URI requested responds with a redirect, redirect mode is set to "error": ${this.request.url}`,v.abortError);case"manual":return null;case"follow":let t=e.headers.get("Location"),r=e.status===303||(e.status===301||e.status===302)&&this.request.method==="POST",o=null;if(t!==null)try{o=new De(t,this.request.url)}catch{throw new(u(this,Wt)).DOMException(`URI requested responds with an invalid redirect URL: ${t}`,v.uriMismatchError)}if(o===null)return null;if(Hl.isMaxRedirectsReached(this.redirectCount))throw new(u(this,Wt)).DOMException(`Maximum redirects reached at: ${this.request.url}`,v.networkError);let i=new(u(this,Wt)).Headers(this.request.headers),n={method:this.request.method,signal:this.request.signal,referrer:this.request.referrer,referrerPolicy:this.request.referrerPolicy,credentials:this.request.credentials,headers:i,body:this.request[fs]};(this.request.credentials==="omit"||this.request.credentials==="same-origin"&&Mi.isCORS(u(this,Wt).location.href,o))&&(i.delete("cookie"),i.delete("cookie2")),r&&(n.method="GET",n.body=void 0,i.delete("Content-Length"),i.delete("Content-Type"));let a=Rs.getReferrerPolicyFromHeader(i);return a&&(n.referrerPolicy=a),new qb({browserFrame:u(this,mr),window:u(this,Wt),url:o,init:n,redirectCount:this.redirectCount+1,contentType:r?null:this.request[Fe]}).send();default:throw new(u(this,Wt)).DOMException(`Redirect option '${this.request.redirect}' is not a valid value of TRequestRedirect`)}}};mr=new WeakMap,Wt=new WeakMap,Kb=new WeakMap;var Ky=qb;var Xl=class{constructor(e){s(this,"window");this.window=e}async fetch(e,t,r){let o=new rt(this.window).getBrowserFrame();if(!o)return{content:"",virtualServerFile:null};if(t==="script"||t==="style"){let a=_n.getKey({url:String(e),destination:t,mode:"cors",credentialsMode:r?.credentials||"same-origin"}),y=this.window.document[co].get(a);if(y){this.window.document[co].delete(a);let p=y.response||await y.onResponseAvailable();if(p&&!p.ok)throw new this.window.DOMException(`Failed to perform request to "${new De(e,this.window.location.href).href}". Status ${y.response?.status||"0"} ${y.response?.statusText||"Unknown"}.`);return{content:y.response?.[Mt]?.toString()||"",virtualServerFile:y.response?.[To]||null}}}let n=await new zo({browserFrame:o,window:this.window,url:e,disableSameOriginPolicy:t==="script"||t==="style",disablePreload:!0,init:{credentials:r?.credentials,referrerPolicy:r?.referrerPolicy}}).send();if(!n.ok)throw new this.window.DOMException(`Failed to perform request to "${new De(e,this.window.location.href).href}". Status ${n.status} ${n.statusText}.`);return{content:await n.text(),virtualServerFile:n[To]||null}}fetchSync(e,t,r){let o=new rt(this.window).getBrowserFrame();if(!o)return{content:"",virtualServerFile:null};if(t==="script"||t==="style"){let a=_n.getKey({url:String(e),destination:t,mode:"cors",credentialsMode:r?.credentials||"same-origin"}),y=this.window.document[co].get(a);if(y&&y.response){if(this.window.document[co].delete(a),!y.response.ok)throw new this.window.DOMException(`Failed to perform request to "${new De(e,this.window.location.href).href}". Status ${y.response.status} ${y.response.statusText}.`);return{content:y.response?.[Mt]?.toString()||"",virtualServerFile:y.response?.[To]||null}}}let n=new Ky({browserFrame:o,window:this.window,url:e,disableSameOriginPolicy:!0,init:{credentials:r?.credentials,referrerPolicy:r?.referrerPolicy}}).send();if(!n.ok)throw new this.window.DOMException(`Failed to perform request to "${new De(e,this.window.location.href).href}". Status ${n.status} ${n.statusText}.`);return{content:n.body?.toString()||"",virtualServerFile:n[To]||null}}};var jb,Qb,jy,Qy=class{constructor(e){s(this,"url");E(this,jb);E(this,Qb);E(this,jy,null);w(this,jb,e.window),this.url=e.url,w(this,Qb,e.source)}async evaluate(){if(u(this,jy))return u(this,jy);let e=new(u(this,jb)).CSSStyleSheet;return e.replaceSync(u(this,Qb)),w(this,jy,{default:e}),u(this,jy)}async preload(){await this.evaluate()}};jb=new WeakMap,Qb=new WeakMap,jy=new WeakMap;var $b,Xb,$y,Xy=class{constructor(e){s(this,"url");E(this,$b);E(this,Xb);E(this,$y,null);w(this,$b,e.window),this.url=e.url,w(this,Xb,e.source)}async evaluate(){if(u(this,$y))return u(this,$y);let e;try{e=JSON.parse(u(this,Xb))}catch(t){throw new(u(this,$b)).TypeError(`Failed to parse module "${this.url.href}": ${t.message}`)}return w(this,$y,{default:e}),u(this,$y)}async preload(){await this.evaluate()}};$b=new WeakMap,Xb=new WeakMap,$y=new WeakMap;var Yp,zb,qp,Kp=class{constructor(e){s(this,"url");E(this,Yp);E(this,zb,[]);E(this,qp,null);w(this,Yp,e.window),this.url=e.url}async evaluate(){throw new(u(this,Yp)).TypeError("Unresolved module. We should never end up here.")}async preload(){throw new(u(this,Yp)).TypeError("Unresolved module. We should never end up here.")}addResolveListener(e,t){if(u(this,qp)){t(u(this,qp));return}u(this,zb).push({resolve:e,reject:t})}resolve(e){e&&w(this,qp,e);for(let t of u(this,zb))e?t.reject(e):t.resolve(null)}};Yp=new WeakMap,zb=new WeakMap,qp=new WeakMap;import{URL as tG}from"url";import{URL as OS}from"url";import Jb from"path";import VS from"fs";var qU=["module","main"],KU=[".js",".mjs"],_s=class{static getURL(e,t,r){let o=typeof t=="string"?t:t.href,i=e[gy],n=this.resolveURL(e,o,r);if(!i)return new OS(n,o);if(i.scopes.length){for(let a of i.scopes)if(o.includes(a.scope)){for(let y of a.rules)if(n.startsWith(y.from))return new OS(y.to+n.replace(y.from,""),o)}}if(i.imports.length){for(let a of i.imports)if(n.startsWith(a.from))return new OS(a.to+n.replace(a.from,""),o)}return new OS(n,o)}static clearCache(){this.nodeModuleResolveCache.clear(),this.packageJsonCache.clear()}static resolveURL(e,t,r){let o=new rt(e).getSettings();if(!o)return r;let i=r;return o.module.resolveNodeModules&&(i=this.resolveNodeModuleURL(o.module.resolveNodeModules,r)),o.module.urlResolver&&(i=o.module.urlResolver({url:i,parentURL:t,window:e})),i}static resolveNodeModuleURL(e,t){if(t[0]==="."||t[0]==="/"||t.startsWith("http://")||t.startsWith("https://"))return t;let r=e.url[e.url.length-1]==="/"?"":"/",o=`${e.url}${r}`,i=Jb.resolve(e.directory),n=t.split("/"),a=this.nodeModuleResolveCache.get(t);if(a)return a;let y=t[0]==="@"?`${n[0]}/${n[1]}`:n[0],p=this.packageJsonCache.get(y);if(!p)try{p=JSON.parse(VS.readFileSync(Jb.join(i,y,"package.json"),"utf-8")),this.packageJsonCache.set(y,p)}catch{return t}if(t[0]==="@"&&n.length===2||n.length===1){if(p.exports?.["."]?.import){let f=`${o}${y}/${p.exports["."].import.replace("./","")}`;return this.nodeModuleResolveCache.set(t,f),f}let b=e.mainFields||qU;for(let f of b)if(p[f]&&VS.existsSync(Jb.join(i,y,p[f]))){let S=`${o}${t}/${p[f]}`;return this.nodeModuleResolveCache.set(t,S),S}return t}let d=n.slice(t[0]==="@"?2:1).join("/");if(p.exports)for(let b of Object.keys(p.exports)){let f=Array.isArray(p.exports[b].import)?p.exports[b].import[0]:p.exports[b].import;if(f){let S=new RegExp(`^${b.replace("./","").replace(/\./g,"\\.").replace(/\*/g,"(.*)")}$`),M=d.match(S);if(M){let N=f.replace("./","").replace("*",M[1]),K=`${o}${y}/${N}`;return this.nodeModuleResolveCache.set(t,K),K}}}if(!t.endsWith(".js")&&!t.endsWith(".mjs")){for(let b of KU)if(VS.existsSync(Jb.join(i,`${t}${b}`))){let f=`${o}${t}${b}`;return this.nodeModuleResolveCache.set(t,f),f}}else if(VS.existsSync(Jb.join(i,t))){let b=`${o}${t}`;return this.nodeModuleResolveCache.set(t,b),b}return t}};s(_s,"nodeModuleResolveCache",new Map),s(_s,"packageJsonCache",new Map);var jU=/import\.meta\.([a-zA-Z]+)|import\s*["']([^"']+)["'];{0,1}|import\s*\(([^)]+)\)|(import[\s{])|[\s}]from\s*["']([^"']+)["'](\s+with\s*{\s*type\s*:\s*["']([^"']+)["']\s*}){0,1}([;\s]*)|export(\s+[a-zA-Z0-9-_$]+\s+|\s+\*\s+|\s+\*\s+as\s+["'a-zA-Z0-9-_$]+\s+|\s*{[^}]+}\s*)from\s*["']([^"']+)["']|export\s*(default\s+){0,1}(async\s+){0,1}(function\*{0,1}|class)\s*([^({\s]+)|(export\s*default\s*)|export\s*{([^}]+)}|export\s+(var|let|const)\s+([^=;]+)(=|;)/gm,QU=/(\/)|(\(|\))|({|})|(\[|\])|(\${)|(`)|(')|(")|(\n)/gm,$U=/{([^}]+)}|\*\s+as\s+([a-zA-Z0-9-_$]+)|([a-zA-Z0-9-_$]+)/gm,zl=/['"`(){}\s;=><\[\]+-,:&]/,XU=/['"`({};=><\[+-,:&]/,zU=/\/\*|\*\//gm,US=/export\s*/,JU=/export\s*default\s*/,ZU=/;\s*$/,Zb=class{constructor(e){s(this,"window");s(this,"debug",!1);s(this,"count",{comment:0,singleLineComment:0,parentheses:0,curlyBraces:0,squareBrackets:0,regExp:0,regExpSquareBrackets:0,escapeTemplateString:0,simpleString:0,doubleString:0});s(this,"debugCount",{comment:[],singleLineComment:[],parentheses:[],curlyBraces:[],squareBrackets:[],regExp:[],regExpSquareBrackets:[],escapeTemplateString:[],simpleString:[],doubleString:[]});s(this,"templateString",[]);this.window=e}compile(e,t,r=null){let o=new rt(this.window).getBrowserContext();if(!o)return{imports:[],execute:async()=>{}};let i=o.browser.settings;if(!i.module.disableCache&&r){let at=o[Py].get(e);if(at)return{imports:at.imports,execute:this.window[Ci](at.code,{filename:r})}}this.reset();let n=new RegExp(jU),a=[],y=[],p=this.count,d="",b="",f="",S=null,M,N,K=!0,mt=0,Nt=-1;for(;S=n.exec(t);){if(M=t[S.index-1]||" ",N=t.substring(mt,S.index),this.parseSyntax(N,mt),Nt===-1&&(d+=N),K=p.comment===0&&p.singleLineComment===0&&p.parentheses===0&&p.curlyBraces===0&&p.squareBrackets===0&&p.regExp===0&&p.simpleString===0&&p.doubleString===0&&this.templateString.length===0,S[1]&&p.simpleString===0&&p.doubleString===0&&p.comment===0&&p.singleLineComment===0&&p.regExp===0&&(this.templateString.length===0||this.templateString[0]>0)&&zl.test(this.getNonSpacePrecedingToken(t,S.index)))d+=`$happy_dom.importMeta.${S[1]}`;else if(S[2]&&K&&zl.test(M))a.push({url:_s.getURL(this.window,e,S[2]).href,type:"esm"});else if(S[3]&&p.simpleString===0&&p.doubleString===0&&p.comment===0&&p.singleLineComment===0&&p.regExp===0&&(this.templateString.length===0||this.templateString[0]>0)&&zl.test(M))d+=`$happy_dom.dynamicImport(${S[3]})`;else if(S[4]&&K&&zl.test(M)){if(Nt!==-1)throw new this.window.TypeError(`Failed to parse module: Unexpected import statement in "${e}"`);Nt=S.index+S[0].length-1}else if(S[5]&&K&&Nt!==-1){let at=_s.getURL(this.window,e,S[5]).href,xt=t.substring(Nt,S.index+1),It=new RegExp($U),At=null;for(;At=It.exec(xt);)if(At[1]){let Xe=this.removeMultilineComments(At[1]).split(/\s*,\s*/),ze=[];for(let ao of Xe){let ai=ao.trim().split(/\s+as\s+/),wa=(ai[1]||ai[0]).replace(/["']/g,""),tn=ai[0].replace(/["']/g,"");wa&&tn&&(tn===wa?ze.push({name:tn}):ze.push({name:tn,alias:wa}))}(!S[7]||S[7]==="esm")&&y.push({url:at,properties:ze}),b+=`let {${ze.map(ao=>ao.alias?`"${ao.name}": ${ao.alias}`:ao.name).join(", ")}} = $happy_dom.imports.get('${at}')${S[8]}`}else At[2]?b+=`const ${At[2]} = $happy_dom.imports.get('${at}')${S[8]}`:At[3]&&((!S[7]||S[7]==="esm")&&y.push({url:at,properties:[{name:"default",alias:At[3]}]}),b+=`let ${At[3]} = $happy_dom.imports.get('${at}').default${S[8]}`);Nt=-1,a.push({url:at,type:S[7]||"esm"})}else if(S[9]&&S[10]&&K&&zl.test(M)){let at=_s.getURL(this.window,e,S[10]).href,xt=S[9].trim();if(xt==="*")d+=`Object.assign($happy_dom.exports, $happy_dom.imports.get('${at}'))`,a.push({url:at,type:"esm"});else if(xt[0]==="*"){let It=xt.split(/\s+as\s+/);if(It.length===2){let At=It[1].replace(/["']/g,"");d+=`$happy_dom.exports['${At}'] = $happy_dom.imports.get('${at}')`,a.push({url:at,type:"esm"})}}else if(xt[0]==="{"){let It=this.removeMultilineComments(xt).slice(1,-1).split(/\s*,\s*/),At=[];for(let Xe of It){let ze=Xe.trim().split(/\s+as\s+/),ao=(ze[1]||ze[0]).replace(/["']/g,""),ai=ze[0].replace(/["']/g,"");ao&&ai&&At.push(`$happy_dom.exports['${ao}'] = $happy_dom.imports.get('${at}')['${ai}']`)}d+=At.join(`;
123
- `),a.push({url:at,type:"esm"})}}else if(S[13]&&S[14]&&K&&zl.test(M)){let at=S[14].replace("*","");if(at)S[11]?(d+=S[0].replace(JU,""),f+=`$happy_dom.exports.default = ${at};
122
+ `}};import Yb from"zlib";var mr,Wt,Kb,qb=class qb{constructor(e){s(this,"request");s(this,"redirectCount",0);s(this,"disableCache");s(this,"disableSameOriginPolicy");s(this,"interceptor");s(this,"requestHeaders");E(this,mr);E(this,Wt);E(this,Kb,null);w(this,mr,e.browserFrame),w(this,Wt,e.window),w(this,Kb,e.unfilteredHeaders??null),this.request=typeof e.url=="string"||e.url instanceof De?new e.window.Request(e.url,e.init):e.url,e.contentType&&(this.request[Fe]=e.contentType),this.redirectCount=e.redirectCount??0,this.disableCache=e.disableCache??!1,this.disableSameOriginPolicy=e.disableSameOriginPolicy??u(this,mr).page.context.browser.settings.fetch.disableSameOriginPolicy??!1,this.interceptor=u(this,mr).page.context.browser.settings.fetch.interceptor,this.requestHeaders=u(this,mr).page.context.browser.settings.fetch.requestHeaders}send(){if(Rs.prepareRequest(new De(u(this,Wt).location.href),this.request),this.requestHeaders){for(let r of this.requestHeaders)if(!r.url||(typeof r.url=="string"?r.url.startsWith(this.request.url):this.request.url.match(r.url)))for(let[o,i]of Object.entries(r.headers))this.request.headers.set(o,i)}if(this.interceptor?.beforeSyncRequest){let r=this.interceptor.beforeSyncRequest({request:this.request,window:u(this,Wt)});if(typeof r=="object")return r}if(Ri.validateSchema(this.request),this.request.signal[ve])throw this.request.signal[di]!==void 0?this.request.signal[di]:new(u(this,Wt)).DOMException("signal is aborted without reason",v.abortError);if(this.request[ke].protocol==="data:"){let r=ky.parse(this.request.url),o={status:200,statusText:"OK",ok:!0,url:this.request.url,redirected:!1,headers:new(u(this,Wt)).Headers({"Content-Type":r.type}),body:r.buffer,[To]:null},i=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:u(this,Wt),response:o,request:this.request}):void 0;return typeof i=="object"?i:o}if(this.request[ke].protocol==="http:"&&u(this,Wt).location.protocol==="https:")throw new(u(this,Wt)).DOMException(`Mixed Content: The page at '${u(this,Wt).location.href}' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '${this.request.url}'. This request has been blocked; the content must be served over HTTPS.`,v.securityError);let e=this.getCachedResponse();if(e)return e;let t=this.getVirtualServerResponse();if(t)return t;if(!this.compliesWithCrossOriginPolicy())throw u(this,Wt).console.warn(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`),new(u(this,Wt)).DOMException(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`,v.networkError);return this.sendRequest()}getCachedResponse(){if(this.disableCache)return null;let e=u(this,mr).page.context.responseCache.get(this.request);if(!e||e.response.waitingForBody)return null;if(e.state===Wa.stale){let t=new(u(this,Wt)).Headers(e.request.headers);if(e.etag)t.set("If-None-Match",e.etag);else{if(!e.lastModified)return null;t.set("If-Modified-Since",new Date(e.lastModified).toUTCString())}if(e.etag||!e.staleWhileRevalidate){let o=new qb({browserFrame:u(this,mr),window:u(this,Wt),url:this.request.url,init:{headers:t,method:e.request.method},disableCache:!0,disableSameOriginPolicy:!0}).send(),i=o.status!==304?o.body:null;if(e=u(this,mr).page.context.responseCache.add(this.request,{...o,body:i,waitingForBody:!1}),o.status!==304)return o}else new zo({browserFrame:u(this,mr),window:u(this,Wt),url:this.request.url,init:{headers:t,method:e.request.method},disableCache:!0,disableSameOriginPolicy:!0}).send().then(o=>{o.buffer().then(i=>{u(this,mr).page.context.responseCache.add(this.request,{...o,body:i,waitingForBody:!1})})})}return!e||e.response.waitingForBody?null:{status:e.response.status,statusText:e.response.statusText,ok:!0,url:e.response.url,redirected:!1,headers:e.response.headers,body:e.response.body,[To]:e.response[To]||null}}getVirtualServerResponse(){let e=Bs.getFilepath(u(this,Wt),this.request.url);if(!e)return null;if(this.request.method!=="GET"){u(this,mr).page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let n=Bs.getNotFoundSyncResponse(u(this,Wt),this.request.url),a=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:u(this,Wt),response:n,request:this.request}):void 0;return typeof a=="object"?a:n}let t;try{e=cC.statSync(e).isDirectory()?WU.join(e,"index.html"):e,t=cC.readFileSync(e)}catch{u(this,mr).page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let n=Bs.getNotFoundSyncResponse(u(this,Wt),this.request.url),a=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:u(this,Wt),response:n,request:this.request}):void 0;return typeof a=="object"?a:n}let r={status:200,statusText:"",ok:!0,url:this.request.url,redirected:!1,headers:new(u(this,Wt)).Headers,body:t,[To]:e},o=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:u(this,Wt),response:r,request:this.request}):void 0,i=typeof o=="object"?o:r;return u(this,mr).page.context.responseCache.add(this.request,{...i,waitingForBody:!1,virtual:!0}),i}compliesWithCrossOriginPolicy(){if(this.disableSameOriginPolicy||!Mi.isCORS(u(this,Wt).location.href,this.request[ke]))return!0;let e=u(this,mr).page.context.preflightResponseCache.get(this.request);if(e)return!(e.allowOrigin!=="*"&&e.allowOrigin!==u(this,Wt).location.origin||e.allowMethods.length!==0&&!e.allowMethods.includes(this.request.method));let t=[];for(let[y]of this.request.headers)t.push(y.toLowerCase());let r=new(u(this,Wt)).Headers({"Access-Control-Request-Method":this.request.method,Origin:u(this,Wt).location.origin});t.length>0&&r.set("Access-Control-Request-Headers",t.slice().sort().join(","));let i=new qb({browserFrame:u(this,mr),window:u(this,Wt),url:this.request.url,init:{method:"OPTIONS"},disableCache:!0,disableSameOriginPolicy:!0,unfilteredHeaders:r}).send();if(!i.ok)return!1;let n=i.headers.get("Access-Control-Allow-Origin");if(!n||n!=="*"&&n!==u(this,Wt).location.origin)return!1;let a=[];if(i.headers.has("Access-Control-Allow-Methods")){let y=i.headers.get("Access-Control-Allow-Methods");if(y!=="*")for(let p of y.split(","))a.push(p.trim().toUpperCase())}return!(a.length!==0&&!a.includes(this.request.method))}sendRequest(){if(!this.request[fs]&&this.request.body)throw new(u(this,Wt)).DOMException("Streams are not supported as request body for synchronous requests.",v.notSupportedError);let e=Wb.getScript({url:this.request[ke],method:this.request.method,headers:Fs.getRequestHeaders({browserFrame:u(this,mr),window:u(this,Wt),request:this.request,baseHeaders:u(this,Kb)}),disableStrictSSL:u(this,mr).page.context.browser.settings.fetch.disableStrictSSL,body:this.request[fs]}),t=YU.execFileSync(process.argv[0],["-e",e],{encoding:"buffer",maxBuffer:1024*1024*1024});if(!t.length)throw new(u(this,Wt)).DOMException(`Synchronous fetch to "${this.request.url}" failed.`,v.networkError);let{error:r,incomingMessage:o}=JSON.parse(t.toString());if(r)throw new(u(this,Wt)).DOMException(`Synchronous fetch to "${this.request.url}" failed. Error: ${r}`,v.networkError);let i=Ry.parseResponseHeaders({browserFrame:u(this,mr),requestURL:this.request[ke],rawHeaders:o.rawHeaders}),n={status:o.statusCode,statusText:o.statusMessage,ok:o.statusCode>=200&&o.statusCode<300,url:this.request.url,redirected:this.redirectCount>0,headers:i,body:this.parseIResponseBody({headers:i,status:o.statusCode,body:Buffer.from(o.data,"base64")})},a=this.handleRedirectResponse(n)||n;!this.disableCache&&!a.redirected&&u(this,mr).page.context.responseCache.add(this.request,{status:a.status,statusText:a.statusText,url:a.url,headers:a.headers,body:a.body,waitingForBody:!1});let y=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:u(this,Wt),response:a,request:this.request}):void 0,p=typeof y=="object"?y:a;return p.ok||u(this,mr).page.console.error(`${this.request.method} ${this.request.url} ${p.status} (${p.statusText})`),p}parseIResponseBody(e){let t=e.headers.get("Content-Encoding");if(this.request.method==="HEAD"||t===null||e.status===204||e.status===304)return e.body;try{if(t==="gzip"||t==="x-gzip")return Yb.gunzipSync(e.body,{flush:Yb.constants.Z_SYNC_FLUSH,finishFlush:Yb.constants.Z_SYNC_FLUSH});if(t==="deflate"||t==="x-deflate")return Yb.inflateSync(e.body);if(t==="br")return Yb.brotliDecompressSync(e.body)}catch(r){throw new(u(this,Wt)).DOMException(`Failed to read response body. Error: ${r.message}.`,v.encodingError)}return e.body}handleRedirectResponse(e){if(!Hl.isRedirect(e.status))return null;switch(this.request.redirect){case"error":throw new(u(this,Wt)).DOMException(`URI requested responds with a redirect, redirect mode is set to "error": ${this.request.url}`,v.abortError);case"manual":return null;case"follow":let t=e.headers.get("Location"),r=e.status===303||(e.status===301||e.status===302)&&this.request.method==="POST",o=null;if(t!==null)try{o=new De(t,this.request.url)}catch{throw new(u(this,Wt)).DOMException(`URI requested responds with an invalid redirect URL: ${t}`,v.uriMismatchError)}if(o===null)return null;if(Hl.isMaxRedirectsReached(this.redirectCount))throw new(u(this,Wt)).DOMException(`Maximum redirects reached at: ${this.request.url}`,v.networkError);let i=new(u(this,Wt)).Headers(this.request.headers),n={method:this.request.method,signal:this.request.signal,referrer:this.request.referrer,referrerPolicy:this.request.referrerPolicy,credentials:this.request.credentials,headers:i,body:this.request[fs]};(this.request.credentials==="omit"||this.request.credentials==="same-origin"&&Mi.isCORS(u(this,Wt).location.href,o))&&(i.delete("cookie"),i.delete("cookie2")),r&&(n.method="GET",n.body=void 0,i.delete("Content-Length"),i.delete("Content-Type"));let a=Rs.getReferrerPolicyFromHeader(i);return a&&(n.referrerPolicy=a),new qb({browserFrame:u(this,mr),window:u(this,Wt),url:o,init:n,redirectCount:this.redirectCount+1,contentType:r?null:this.request[Fe]}).send();default:throw new(u(this,Wt)).DOMException(`Redirect option '${this.request.redirect}' is not a valid value of TRequestRedirect`)}}};mr=new WeakMap,Wt=new WeakMap,Kb=new WeakMap;var Ky=qb;var Xl=class{constructor(e){s(this,"window");this.window=e}async fetch(e,t,r){let o=new rt(this.window).getBrowserFrame();if(!o)return{content:"",virtualServerFile:null};if(t==="script"||t==="style"){let a=_n.getKey({url:String(e),destination:t,mode:"cors",credentialsMode:r?.credentials||"same-origin"}),y=this.window.document[co].get(a);if(y){this.window.document[co].delete(a);let p=y.response||await y.onResponseAvailable();if(p&&!p.ok)throw new this.window.DOMException(`Failed to perform request to "${new De(e,this.window.location.href).href}". Status ${y.response?.status||"0"} ${y.response?.statusText||"Unknown"}.`);return{content:y.response?.[Mt]?.toString()||"",virtualServerFile:y.response?.[To]||null}}}let n=await new zo({browserFrame:o,window:this.window,url:e,disableSameOriginPolicy:t==="script"||t==="style",disablePreload:!0,init:{credentials:r?.credentials,referrerPolicy:r?.referrerPolicy}}).send();if(!n.ok)throw new this.window.DOMException(`Failed to perform request to "${new De(e,this.window.location.href).href}". Status ${n.status} ${n.statusText}.`);return{content:await n.text(),virtualServerFile:n[To]||null}}fetchSync(e,t,r){let o=new rt(this.window).getBrowserFrame();if(!o)return{content:"",virtualServerFile:null};if(t==="script"||t==="style"){let a=_n.getKey({url:String(e),destination:t,mode:"cors",credentialsMode:r?.credentials||"same-origin"}),y=this.window.document[co].get(a);if(y&&y.response){if(this.window.document[co].delete(a),!y.response.ok)throw new this.window.DOMException(`Failed to perform request to "${new De(e,this.window.location.href).href}". Status ${y.response.status} ${y.response.statusText}.`);return{content:y.response?.[Mt]?.toString()||"",virtualServerFile:y.response?.[To]||null}}}let n=new Ky({browserFrame:o,window:this.window,url:e,disableSameOriginPolicy:!0,init:{credentials:r?.credentials,referrerPolicy:r?.referrerPolicy}}).send();if(!n.ok)throw new this.window.DOMException(`Failed to perform request to "${new De(e,this.window.location.href).href}". Status ${n.status} ${n.statusText}.`);return{content:n.body?.toString()||"",virtualServerFile:n[To]||null}}};var jb,Qb,jy,Qy=class{constructor(e){s(this,"url");E(this,jb);E(this,Qb);E(this,jy,null);w(this,jb,e.window),this.url=e.url,w(this,Qb,e.source)}async evaluate(){if(u(this,jy))return u(this,jy);let e=new(u(this,jb)).CSSStyleSheet;return e.replaceSync(u(this,Qb)),w(this,jy,{default:e}),u(this,jy)}async preload(){await this.evaluate()}};jb=new WeakMap,Qb=new WeakMap,jy=new WeakMap;var $b,Xb,$y,Xy=class{constructor(e){s(this,"url");E(this,$b);E(this,Xb);E(this,$y,null);w(this,$b,e.window),this.url=e.url,w(this,Xb,e.source)}async evaluate(){if(u(this,$y))return u(this,$y);let e;try{e=JSON.parse(u(this,Xb))}catch(t){throw new(u(this,$b)).TypeError(`Failed to parse module "${this.url.href}": ${t.message}`)}return w(this,$y,{default:e}),u(this,$y)}async preload(){await this.evaluate()}};$b=new WeakMap,Xb=new WeakMap,$y=new WeakMap;var Yp,zb,qp,Kp=class{constructor(e){s(this,"url");E(this,Yp);E(this,zb,[]);E(this,qp,null);w(this,Yp,e.window),this.url=e.url}async evaluate(){throw new(u(this,Yp)).TypeError("Unresolved module. We should never end up here.")}async preload(){throw new(u(this,Yp)).TypeError("Unresolved module. We should never end up here.")}addResolveListener(e,t){if(u(this,qp)){t(u(this,qp));return}u(this,zb).push({resolve:e,reject:t})}resolve(e){e&&w(this,qp,e);for(let t of u(this,zb))e?t.reject(e):t.resolve(null)}};Yp=new WeakMap,zb=new WeakMap,qp=new WeakMap;import{URL as eG}from"url";import{URL as OS}from"url";import Jb from"path";import VS from"fs";var qU=["module","main"],KU=[".js",".mjs"],_s=class{static getURL(e,t,r){let o=typeof t=="string"?t:t.href,i=e[gy],n=this.resolveURL(e,o,r);if(!i)return new OS(n,o);if(i.scopes.length){for(let a of i.scopes)if(o.includes(a.scope)){for(let y of a.rules)if(n.startsWith(y.from))return new OS(y.to+n.replace(y.from,""),o)}}if(i.imports.length){for(let a of i.imports)if(n.startsWith(a.from))return new OS(a.to+n.replace(a.from,""),o)}return new OS(n,o)}static clearCache(){this.nodeModuleResolveCache.clear(),this.packageJsonCache.clear()}static resolveURL(e,t,r){let o=new rt(e).getSettings();if(!o)return r;let i=r;return o.module.resolveNodeModules&&(i=this.resolveNodeModuleURL(o.module.resolveNodeModules,r)),o.module.urlResolver&&(i=o.module.urlResolver({url:i,parentURL:t,window:e})),i}static resolveNodeModuleURL(e,t){if(t[0]==="."||t[0]==="/"||t.startsWith("http://")||t.startsWith("https://"))return t;let r=e.url[e.url.length-1]==="/"?"":"/",o=`${e.url}${r}`,i=Jb.resolve(e.directory),n=t.split("/"),a=this.nodeModuleResolveCache.get(t);if(a)return a;let y=t[0]==="@"?`${n[0]}/${n[1]}`:n[0],p=this.packageJsonCache.get(y);if(!p)try{p=JSON.parse(VS.readFileSync(Jb.join(i,y,"package.json"),"utf-8")),this.packageJsonCache.set(y,p)}catch{return t}if(t[0]==="@"&&n.length===2||n.length===1){if(p.exports?.["."]?.import){let f=`${o}${y}/${p.exports["."].import.replace("./","")}`;return this.nodeModuleResolveCache.set(t,f),f}let b=e.mainFields||qU;for(let f of b)if(p[f]&&VS.existsSync(Jb.join(i,y,p[f]))){let S=`${o}${t}/${p[f]}`;return this.nodeModuleResolveCache.set(t,S),S}return t}let d=n.slice(t[0]==="@"?2:1).join("/");if(p.exports)for(let b of Object.keys(p.exports)){let f=Array.isArray(p.exports[b].import)?p.exports[b].import[0]:p.exports[b].import;if(f){let S=new RegExp(`^${b.replace("./","").replace(/\./g,"\\.").replace(/\*/g,"(.*)")}$`),M=d.match(S);if(M){let N=f.replace("./","").replace("*",M[1]),K=`${o}${y}/${N}`;return this.nodeModuleResolveCache.set(t,K),K}}}if(!t.endsWith(".js")&&!t.endsWith(".mjs")){for(let b of KU)if(VS.existsSync(Jb.join(i,`${t}${b}`))){let f=`${o}${t}${b}`;return this.nodeModuleResolveCache.set(t,f),f}}else if(VS.existsSync(Jb.join(i,t))){let b=`${o}${t}`;return this.nodeModuleResolveCache.set(t,b),b}return t}};s(_s,"nodeModuleResolveCache",new Map),s(_s,"packageJsonCache",new Map);var jU=/import\.meta\.([a-zA-Z]+)|import\s*["']([^"']+)["'];{0,1}|import\s*\(([^)]+)\)|(import[\s{])|[\s}]from\s*["']([^"']+)["'](\s+with\s*{\s*type\s*:\s*["']([^"']+)["']\s*}){0,1}([;\s]*)|export(\s+[a-zA-Z0-9-_$]+\s+|\s+\*\s+|\s+\*\s+as\s+["'a-zA-Z0-9-_$]+\s+|\s*{[^}]+}\s*)from\s*["']([^"']+)["']|export\s*(default\s+){0,1}(async\s+){0,1}(function\*{0,1}|class)\s*([^({\s]+)|(export\s*default\s*)|export\s*{([^}]+)}|export\s+(var|let|const)\s+([^=;]+)(=|;)/gm,QU=/(\/)|(\(|\))|({|})|(\[|\])|(\${)|(`)|(')|(")|(\n)/gm,$U=/{([^}]+)}|\*\s+as\s+([a-zA-Z0-9-_$]+)|([a-zA-Z0-9-_$]+)/gm,XU=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/,zl=/['"`(){}\s;=><\[\]+-,:&]/,zU=/['"`({};=><\[+-,:&]/,JU=/\/\*|\*\//gm,US=/export\s*/,ZU=/export\s*default\s*/,tG=/;\s*$/,Zb=class{constructor(e){s(this,"window");s(this,"debug",!1);s(this,"count",{comment:0,singleLineComment:0,parentheses:0,curlyBraces:0,squareBrackets:0,regExp:0,regExpSquareBrackets:0,escapeTemplateString:0,simpleString:0,doubleString:0});s(this,"debugCount",{comment:[],singleLineComment:[],parentheses:[],curlyBraces:[],squareBrackets:[],regExp:[],regExpSquareBrackets:[],escapeTemplateString:[],simpleString:[],doubleString:[]});s(this,"templateString",[]);this.window=e}compile(e,t,r=null){let o=new rt(this.window).getBrowserContext();if(!o)return{imports:[],execute:async()=>{}};let i=o.browser.settings;if(!i.module.disableCache&&r){let at=o[Py].get(e);if(at)return{imports:at.imports,execute:this.window[Ci](at.code,{filename:r})}}this.reset();let n=new RegExp(jU),a=[],y=[],p=this.count,d="",b="",f="",S=null,M,N,K=!0,mt=0,Nt=-1;for(;S=n.exec(t);){if(M=t[S.index-1]||" ",N=t.substring(mt,S.index),this.parseSyntax(N,mt),Nt===-1&&(d+=N),K=p.comment===0&&p.singleLineComment===0&&p.parentheses===0&&p.curlyBraces===0&&p.squareBrackets===0&&p.regExp===0&&p.simpleString===0&&p.doubleString===0&&this.templateString.length===0,S[1]&&p.simpleString===0&&p.doubleString===0&&p.comment===0&&p.singleLineComment===0&&p.regExp===0&&(this.templateString.length===0||this.templateString[0]>0)&&zl.test(this.getNonSpacePrecedingToken(t,S.index)))d+=`$happy_dom.importMeta.${S[1]}`;else if(S[2]&&K&&zl.test(M))a.push({url:_s.getURL(this.window,e,S[2]).href,type:"esm"});else if(S[3]&&p.simpleString===0&&p.doubleString===0&&p.comment===0&&p.singleLineComment===0&&p.regExp===0&&(this.templateString.length===0||this.templateString[0]>0)&&zl.test(M))d+=`$happy_dom.dynamicImport(${S[3]})`;else if(S[4]&&K&&zl.test(M)){if(Nt!==-1)throw new this.window.TypeError(`Failed to parse module: Unexpected import statement in "${e}"`);Nt=S.index+S[0].length-1}else if(S[5]&&K&&Nt!==-1){let at=_s.getURL(this.window,e,S[5]).href,xt=t.substring(Nt,S.index+1),It=new RegExp($U),At=null;for(;At=It.exec(xt);)if(At[1]){let ze=this.removeMultilineComments(At[1]).split(/\s*,\s*/),qe=[];for(let ao of ze){let ai=ao.trim().split(/\s+as\s+/),wa=(ai[1]||ai[0]).replace(/["']/g,""),tn=ai[0].replace(/["']/g,"");wa&&tn&&(tn===wa?qe.push({name:tn}):qe.push({name:tn,alias:wa}))}(!S[7]||S[7]==="esm")&&y.push({url:at,properties:qe}),b+=`let {${qe.map(ao=>ao.alias?`"${ao.name}": ${ao.alias}`:ao.name).join(", ")}} = $happy_dom.imports.get('${at}')${S[8]}`}else At[2]?b+=`const ${At[2]} = $happy_dom.imports.get('${at}')${S[8]}`:At[3]&&((!S[7]||S[7]==="esm")&&y.push({url:at,properties:[{name:"default",alias:At[3]}]}),b+=`let ${At[3]} = $happy_dom.imports.get('${at}').default${S[8]}`);Nt=-1,a.push({url:at,type:S[7]||"esm"})}else if(S[9]&&S[10]&&K&&zl.test(M)){let at=_s.getURL(this.window,e,S[10]).href,xt=S[9].trim();if(xt==="*")d+=`Object.assign($happy_dom.exports, $happy_dom.imports.get('${at}'))`,a.push({url:at,type:"esm"});else if(xt[0]==="*"){let It=xt.split(/\s+as\s+/);if(It.length===2){let At=It[1].replace(/["']/g,"");d+=`$happy_dom.exports['${At}'] = $happy_dom.imports.get('${at}')`,a.push({url:at,type:"esm"})}}else if(xt[0]==="{"){let It=this.removeMultilineComments(xt).slice(1,-1).split(/\s*,\s*/),At=[];for(let ze of It){let qe=ze.trim().split(/\s+as\s+/),ao=(qe[1]||qe[0]).replace(/["']/g,""),ai=qe[0].replace(/["']/g,"");ao&&ai&&At.push(`$happy_dom.exports['${ao}'] = $happy_dom.imports.get('${at}')['${ai}']`)}d+=At.join(`;
123
+ `),a.push({url:at,type:"esm"})}}else if(S[13]&&S[14]&&K&&zl.test(M)){let at=S[14].replace("*","");if(at)S[11]?(d+=S[0].replace(ZU,""),f+=`$happy_dom.exports.default = ${at};
124
124
  `):(d+=S[0].replace(US,""),f+=`$happy_dom.exports['${at}'] = ${at};
125
- `);else if(S[11])d+=`$happy_dom.exports.default = ${S[12]||""}${S[13]}${at?" ":""}${S[14]}`;else throw new this.window.SyntaxError(`Failed to parse module: Missing function or class name in export statement in "${e}"`)}else if(S[15]&&K&&zl.test(M))d+="$happy_dom.exports.default = ";else if(S[16]&&K&&zl.test(M)){let at=this.removeMultilineComments(S[16]).split(/\s*,\s*/),xt=[];for(let It of at){let At=It.trim().split(/\s+as\s+/),Xe=(At[1]||At[0]).replace(/["']/g,""),ze=At[0].replace(/["']/g,"");Xe&&ze&&xt.push(`$happy_dom.exports['${Xe}'] = ${ze}`)}d+=xt.join(`;
126
- `)}else if(S[17]&&K&&zl.test(M))if(S[19]==="="){let at=this.removeMultilineComments(S[18]).trim();if(at[0]==="{"&&at[at.length-1]==="}"||at[0]==="["&&at[at.length-1]==="]"){let xt=at.slice(1,-1).split(/\s*,\s*/);for(let It of xt){let At=It.trim().split(/\s*:\s*/),Xe=(At[1]||At[0]).replace(/["']/g,"");Xe&&(f+=`$happy_dom.exports['${Xe}'] = ${Xe};
125
+ `);else if(S[11])d+=`$happy_dom.exports.default = ${S[12]||""}${S[13]}${at?" ":""}${S[14]}`;else throw new this.window.SyntaxError(`Failed to parse module: Missing function or class name in export statement in "${e}"`)}else if(S[15]&&K&&zl.test(M))d+="$happy_dom.exports.default = ";else if(S[16]&&K&&zl.test(M)){let at=this.removeMultilineComments(S[16]).split(/\s*,\s*/),xt=[];for(let It of at){let At=It.trim().split(/\s+as\s+/),ze=(At[1]||At[0]).replace(/["']/g,""),qe=At[0].replace(/["']/g,"");ze&&qe&&XU.test(qe)&&xt.push(`$happy_dom.exports['${ze}'] = ${qe}`)}d+=xt.join(`;
126
+ `)}else if(S[17]&&K&&zl.test(M))if(S[19]==="="){let at=this.removeMultilineComments(S[18]).trim();if(at[0]==="{"&&at[at.length-1]==="}"||at[0]==="["&&at[at.length-1]==="]"){let xt=at.slice(1,-1).split(/\s*,\s*/);for(let It of xt){let At=It.trim().split(/\s*:\s*/),ze=(At[1]||At[0]).replace(/["']/g,"");ze&&(f+=`$happy_dom.exports['${ze}'] = ${ze};
127
127
  `)}d+=S[0].replace(US,"")}else d+=S[0].replace(US,""),f+=`$happy_dom.exports['${at}'] = ${at};
128
128
  `}else{d+=S[0].replace(US,"");let at=this.removeMultilineComments(S[18]).split(",");for(let xt of at){let It=xt.trim();f+=`$happy_dom.exports['${It}'] = ${It};
129
- `}}else if(Nt!==-1){let at=t.substring(Nt,S.index+1);d+=at,this.parseSyntax(at,Nt)}else d+=S[0],this.parseSyntax(S[0],S.index);mt=n.lastIndex}if(this.debug)return{imports:a,execute:async()=>{}};if(b&&!ZU.test(b)&&(b=`
129
+ `}}else if(Nt!==-1){let at=t.substring(Nt,S.index+1);d+=at,this.parseSyntax(at,Nt)}else d+=S[0],this.parseSyntax(S[0],S.index);mt=n.lastIndex}if(this.debug)return{imports:a,execute:async()=>{}};if(b&&!tG.test(b)&&(b=`
130
130
  ${b};`),!i.disableErrorCapturing&&i.errorCapture===ue.tryAndCatch?b="(async function anonymous($happy_dom) { try {"+b:b="(async function anonymous($happy_dom) {"+b,d=b+d,mt===0?d+=t:d+=t.substring(mt),d+=`
131
131
  `+f,y.length>0){d+=`$happy_dom.addCircularImportResolver(() => {
132
132
  `;for(let at of y)for(let xt of at.properties)xt.alias?d+=`${xt.alias} = $happy_dom.imports.get('${at.url}')['${xt.name}'];
133
133
  `:d+=`${xt.name} = $happy_dom.imports.get('${at.url}')['${xt.name}'];
134
- `;d+="});"}!i.disableErrorCapturing&&i.errorCapture===ue.tryAndCatch&&(d+="} catch(e) { $happy_dom.dispatchError(e); }"),d+="})";let qt;try{qt=this.window[Ci](d,{filename:r||e})}catch(at){let xt=this.getError(e,t,r),It=xt?new this.window.SyntaxError(`Failed to parse module in '${e}'. Execution error: ${at.message}. Compile error: ${xt}`):at;if(at.message=`Failed to parse module in '${r}': ${It.message}`,i.disableErrorCapturing||i.errorCapture!==ue.tryAndCatch)throw It;return this.window[ce](It),{imports:a,execute:async()=>{}}}return!i.module.disableCache&&r&&o[Py].set(e,{imports:a,code:d}),{imports:a,execute:qt}}parseSyntax(e,t){let r=new RegExp(QU),o=this.count,i=this.debug,n=this.debugCount,a=null,y,p;for(t++;a=r.exec(e);)y=e[a.index-1]||" ",p=y==="\\"&&e[a.index-2]!=="\\",a[1]?o.simpleString===0&&o.doubleString===0&&o.singleLineComment===0&&o.regExpSquareBrackets===0&&(this.templateString.length===0||this.templateString[0]>0)&&(o.comment===1?y==="*"&&(o.comment=0,i&&(n.comment.length=0)):o.regExp===0?e[a.index+1]==="*"?(o.comment=1,i&&(n.comment=[t+a.index])):e[a.index+1]==="/"?(o.singleLineComment=1,i&&(n.singleLineComment=[t+a.index])):XU.test(this.getNonSpacePrecedingToken(e,a.index))&&(o.regExp=1,i&&(n.regExp=[t+a.index])):p||(o.regExp=0,i&&(n.regExp.length=0))):a[2]?o.simpleString===0&&o.doubleString===0&&o.regExp===0&&o.comment===0&&o.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(a[2]==="("?(o.parentheses++,i&&n.parentheses.push(t+a.index)):a[2]===")"&&o.parentheses>0&&(o.parentheses--,i&&n.parentheses.pop())):a[3]?o.simpleString===0&&o.doubleString===0&&o.regExp===0&&o.comment===0&&o.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(a[3]==="{"?(this.templateString.length&&this.templateString[0]++,o.curlyBraces++,i&&n.curlyBraces.push(t+a.index)):a[3]==="}"&&(this.templateString.length&&this.templateString[0]>0&&this.templateString[0]--,o.curlyBraces>0&&(o.curlyBraces--,i&&n.curlyBraces.pop()))):a[4]?o.simpleString===0&&o.doubleString===0&&o.comment===0&&o.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(o.regExp===1?p||(a[4]==="["&&o.regExpSquareBrackets===0?(o.regExpSquareBrackets=1,i&&(n.regExpSquareBrackets=[t+a.index])):a[4]==="]"&&o.regExpSquareBrackets===1&&(o.regExpSquareBrackets=0,i&&(n.regExpSquareBrackets.length=0))):a[4]==="["?(o.squareBrackets++,i&&n.squareBrackets.push(t+a.index)):a[4]==="]"&&o.squareBrackets>0&&(o.squareBrackets--,i&&n.squareBrackets.pop())):a[5]?o.simpleString===0&&o.doubleString===0&&o.comment===0&&o.singleLineComment===0&&o.regExp===0&&!p&&this.templateString[0]===0&&(this.templateString[0]=1,o.curlyBraces++,i&&n.curlyBraces.push(t+a.index)):a[6]?o.simpleString===0&&o.doubleString===0&&o.comment===0&&o.singleLineComment===0&&o.regExp===0&&!p&&(this.templateString?.[0]===0?this.templateString.shift():this.templateString.unshift(0)):a[7]?o.doubleString===0&&o.comment===0&&o.singleLineComment===0&&o.regExp===0&&!p&&(this.templateString.length===0||this.templateString[0]>0)&&(o.simpleString===0?(o.simpleString=1,i&&(n.simpleString=[t+a.index])):(o.simpleString=0,i&&(n.simpleString.length=0))):a[8]?o.simpleString===0&&o.comment===0&&o.singleLineComment===0&&o.regExp===0&&!p&&(this.templateString.length===0||this.templateString[0]>0)&&(o.doubleString===0?(o.doubleString=1,i&&(n.doubleString=[t+a.index])):(o.doubleString=0,i&&(n.doubleString.length=0))):a[9]&&(o.singleLineComment=0,i&&(n.singleLineComment.length=0))}getError(e,t,r){if(this.count.comment===0&&this.count.singleLineComment===0&&this.count.parentheses===0&&this.count.curlyBraces===0&&this.count.squareBrackets===0&&this.count.regExp===0&&this.count.regExpSquareBrackets===0&&this.count.simpleString===0&&this.count.doubleString===0)return null;this.debug||(this.debug=!0,this.compile(e,t,r));let o=this.debugCount;if(o.comment.length>0){let{line:i,column:n}=this.getLineAndColumn(t,o.comment[0]);return`Missing end of comment on line ${i} and column ${n}`}else if(o.regExp.length>0){let{line:i,column:n}=this.getLineAndColumn(t,o.regExp[0]);return`Missing end of regular expression on line ${i} and column ${n}`}else if(o.regExpSquareBrackets.length>0){let{line:i,column:n}=this.getLineAndColumn(t,o.regExpSquareBrackets[0]);return`Missing end of regular expression square brackets on line ${i} and column ${n}`}else if(o.simpleString.length>0){let{line:i,column:n}=this.getLineAndColumn(t,o.simpleString[0]);return`Missing end of single quote string on line ${i} and column ${n}`}else if(o.doubleString.length>0){let{line:i,column:n}=this.getLineAndColumn(t,o.doubleString[0]);return`Missing end of double quote string on line ${i} and column ${n}`}else if(o.parentheses.length>0){let{line:i,column:n}=this.getLineAndColumn(t,o.parentheses[0]);return`Missing end of parentheses on line ${i} and column ${n}`}else if(o.curlyBraces.length>0){let{line:i,column:n}=this.getLineAndColumn(t,o.curlyBraces[0]);return`Missing end of curly braces on line ${i} and column ${n}`}else if(o.squareBrackets.length>0){let{line:i,column:n}=this.getLineAndColumn(t,o.squareBrackets[0]);return`Missing end of square brackets on line ${i} and column ${n}`}else if(o.escapeTemplateString.length>0){let{line:i,column:n}=this.getLineAndColumn(t,o.escapeTemplateString[0]);return`Missing end of escaped template string on line ${i} and column ${n}`}return null}getLineAndColumn(e,t){let r=e.substring(0,t).split(`
134
+ `;d+="});"}!i.disableErrorCapturing&&i.errorCapture===ue.tryAndCatch&&(d+="} catch(e) { $happy_dom.dispatchError(e); }"),d+="})";let qt;try{qt=this.window[Ci](d,{filename:r||e})}catch(at){let xt=this.getError(e,t,r),It=xt?new this.window.SyntaxError(`Failed to parse module in '${e}'. Execution error: ${at.message}. Compile error: ${xt}`):at;if(at.message=`Failed to parse module in '${r}': ${It.message}`,i.disableErrorCapturing||i.errorCapture!==ue.tryAndCatch)throw It;return this.window[ce](It),{imports:a,execute:async()=>{}}}return!i.module.disableCache&&r&&o[Py].set(e,{imports:a,code:d}),{imports:a,execute:qt}}parseSyntax(e,t){let r=new RegExp(QU),o=this.count,i=this.debug,n=this.debugCount,a=null,y,p;for(t++;a=r.exec(e);)y=e[a.index-1]||" ",p=y==="\\"&&e[a.index-2]!=="\\",a[1]?o.simpleString===0&&o.doubleString===0&&o.singleLineComment===0&&o.regExpSquareBrackets===0&&(this.templateString.length===0||this.templateString[0]>0)&&(o.comment===1?y==="*"&&(o.comment=0,i&&(n.comment.length=0)):o.regExp===0?e[a.index+1]==="*"?(o.comment=1,i&&(n.comment=[t+a.index])):e[a.index+1]==="/"?(o.singleLineComment=1,i&&(n.singleLineComment=[t+a.index])):zU.test(this.getNonSpacePrecedingToken(e,a.index))&&(o.regExp=1,i&&(n.regExp=[t+a.index])):p||(o.regExp=0,i&&(n.regExp.length=0))):a[2]?o.simpleString===0&&o.doubleString===0&&o.regExp===0&&o.comment===0&&o.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(a[2]==="("?(o.parentheses++,i&&n.parentheses.push(t+a.index)):a[2]===")"&&o.parentheses>0&&(o.parentheses--,i&&n.parentheses.pop())):a[3]?o.simpleString===0&&o.doubleString===0&&o.regExp===0&&o.comment===0&&o.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(a[3]==="{"?(this.templateString.length&&this.templateString[0]++,o.curlyBraces++,i&&n.curlyBraces.push(t+a.index)):a[3]==="}"&&(this.templateString.length&&this.templateString[0]>0&&this.templateString[0]--,o.curlyBraces>0&&(o.curlyBraces--,i&&n.curlyBraces.pop()))):a[4]?o.simpleString===0&&o.doubleString===0&&o.comment===0&&o.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(o.regExp===1?p||(a[4]==="["&&o.regExpSquareBrackets===0?(o.regExpSquareBrackets=1,i&&(n.regExpSquareBrackets=[t+a.index])):a[4]==="]"&&o.regExpSquareBrackets===1&&(o.regExpSquareBrackets=0,i&&(n.regExpSquareBrackets.length=0))):a[4]==="["?(o.squareBrackets++,i&&n.squareBrackets.push(t+a.index)):a[4]==="]"&&o.squareBrackets>0&&(o.squareBrackets--,i&&n.squareBrackets.pop())):a[5]?o.simpleString===0&&o.doubleString===0&&o.comment===0&&o.singleLineComment===0&&o.regExp===0&&!p&&this.templateString[0]===0&&(this.templateString[0]=1,o.curlyBraces++,i&&n.curlyBraces.push(t+a.index)):a[6]?o.simpleString===0&&o.doubleString===0&&o.comment===0&&o.singleLineComment===0&&o.regExp===0&&!p&&(this.templateString?.[0]===0?this.templateString.shift():this.templateString.unshift(0)):a[7]?o.doubleString===0&&o.comment===0&&o.singleLineComment===0&&o.regExp===0&&!p&&(this.templateString.length===0||this.templateString[0]>0)&&(o.simpleString===0?(o.simpleString=1,i&&(n.simpleString=[t+a.index])):(o.simpleString=0,i&&(n.simpleString.length=0))):a[8]?o.simpleString===0&&o.comment===0&&o.singleLineComment===0&&o.regExp===0&&!p&&(this.templateString.length===0||this.templateString[0]>0)&&(o.doubleString===0?(o.doubleString=1,i&&(n.doubleString=[t+a.index])):(o.doubleString=0,i&&(n.doubleString.length=0))):a[9]&&(o.singleLineComment=0,i&&(n.singleLineComment.length=0))}getError(e,t,r){if(this.count.comment===0&&this.count.singleLineComment===0&&this.count.parentheses===0&&this.count.curlyBraces===0&&this.count.squareBrackets===0&&this.count.regExp===0&&this.count.regExpSquareBrackets===0&&this.count.simpleString===0&&this.count.doubleString===0)return null;this.debug||(this.debug=!0,this.compile(e,t,r));let o=this.debugCount;if(o.comment.length>0){let{line:i,column:n}=this.getLineAndColumn(t,o.comment[0]);return`Missing end of comment on line ${i} and column ${n}`}else if(o.regExp.length>0){let{line:i,column:n}=this.getLineAndColumn(t,o.regExp[0]);return`Missing end of regular expression on line ${i} and column ${n}`}else if(o.regExpSquareBrackets.length>0){let{line:i,column:n}=this.getLineAndColumn(t,o.regExpSquareBrackets[0]);return`Missing end of regular expression square brackets on line ${i} and column ${n}`}else if(o.simpleString.length>0){let{line:i,column:n}=this.getLineAndColumn(t,o.simpleString[0]);return`Missing end of single quote string on line ${i} and column ${n}`}else if(o.doubleString.length>0){let{line:i,column:n}=this.getLineAndColumn(t,o.doubleString[0]);return`Missing end of double quote string on line ${i} and column ${n}`}else if(o.parentheses.length>0){let{line:i,column:n}=this.getLineAndColumn(t,o.parentheses[0]);return`Missing end of parentheses on line ${i} and column ${n}`}else if(o.curlyBraces.length>0){let{line:i,column:n}=this.getLineAndColumn(t,o.curlyBraces[0]);return`Missing end of curly braces on line ${i} and column ${n}`}else if(o.squareBrackets.length>0){let{line:i,column:n}=this.getLineAndColumn(t,o.squareBrackets[0]);return`Missing end of square brackets on line ${i} and column ${n}`}else if(o.escapeTemplateString.length>0){let{line:i,column:n}=this.getLineAndColumn(t,o.escapeTemplateString[0]);return`Missing end of escaped template string on line ${i} and column ${n}`}return null}getLineAndColumn(e,t){let r=e.substring(0,t).split(`
135
135
  `),o=r.length,i=r[r.length-1].length;return{line:o,column:i}}getNonSpacePrecedingToken(e,t){t--;let r=e[t];for(;r===" "||r===`
136
- `||r===" ";)t--,r=e[t];return r||";"}removeMultilineComments(e){let t=new RegExp(zU),r,o=0,i=0,n="";for(;r=t.exec(e);)o===0&&(n+=e.substring(i,r.index)),r[0]==="/*"?o++:r[0]==="*/"&&o>0&&o--,i=t.lastIndex;return n+=e.substring(i),n}reset(){this.count={comment:0,singleLineComment:0,parentheses:0,curlyBraces:0,squareBrackets:0,regExp:0,regExpSquareBrackets:0,escapeTemplateString:0,simpleString:0,doubleString:0},this.debugCount={comment:[],singleLineComment:[],parentheses:[],curlyBraces:[],squareBrackets:[],regExp:[],regExpSquareBrackets:[],escapeTemplateString:[],simpleString:[],doubleString:[]},this.templateString=[]}};var eG={imports:[],execute:async()=>{}},dC,tg,eg,rg,Cm,zy,Jl,Nm,og,NA;dC=m;var LA=class LA{constructor(e){E(this,og);s(this,"url");s(this,dC);E(this,tg);E(this,eg);E(this,rg,!1);E(this,Cm,null);E(this,zy,null);E(this,Jl,null);E(this,Nm);this[m]=e.window,this.url=e.url,w(this,tg,e.source),w(this,eg,e.sourceURL||null),w(this,Nm,e.factory)}async evaluate(e=[],t=null){if(u(this,Jl))return e.includes(this.url.href)?(t&&u(this,Jl).push(t),u(this,zy)):new Promise(S=>{u(this,Jl).push(S)});if(u(this,zy))return u(this,zy);let r=D(this,og,NA).call(this),o=[],i=this[m];if(!new rt(i).getBrowserFrame())return{};let a={};w(this,zy,a),w(this,Jl,[]);for(let S of r.imports)o.push(u(this,Nm).getModule(S.url,{with:{type:S.type}}));let y=new Map,p=null,d=()=>{p&&p()};if(o.length){let S=await Promise.all(o),M=[...e,this.url.href];for(let N of S)if(N instanceof LA){let K=await N.evaluate(M,d);y.set(N.url.href,K)}else{let K=await N.evaluate();y.set(N.url.href,K)}}let b=this.url.href;r.execute({dispatchError:i[ce].bind(i),dynamicImport:u(this,Nm).importModule.bind(u(this,Nm)),importMeta:{url:b,resolve:S=>new tG(S,b).href},imports:y,exports:a,addCircularImportResolver:S=>p=S});let f=u(this,Jl);w(this,Jl,null);for(let S of f)S(a);return a}async preload(){if(u(this,rg))return;w(this,rg,!0);let e=D(this,og,NA).call(this),t=[],r=this[m];if(!new rt(r).getBrowserFrame())return;for(let a of e.imports)t.push(u(this,Nm).getModule(a.url,{with:{type:a.type}}));let i=await Promise.all(t),n=[];for(let a of i)n.push(a.preload());await Promise.all(n)}};tg=new WeakMap,eg=new WeakMap,rg=new WeakMap,Cm=new WeakMap,zy=new WeakMap,Jl=new WeakMap,Nm=new WeakMap,og=new WeakSet,NA=function(){if(u(this,Cm))return u(this,Cm);w(this,Cm,eG);let e=new Zb(this[m]);return w(this,Cm,e.compile(this.url.href,u(this,tg),u(this,eg))),u(this,Cm)};var Zl=LA;var Ui=class l{constructor(e,t){s(this,"window");s(this,"parentURL");this.window=e,this.parentURL=t}async getModule(e,t){let r=this.window,o=this.parentURL,i=_s.getURL(r,o,e),n=i.href,a=t?.with?.type||"esm";if(a!=="esm"&&a!=="css"&&a!=="json")throw new r.TypeError(`Failed to import module "${i}" from "${o}": Unknown type "${a}"`);let y=r[kn][a].get(n);if(y)return y instanceof Kp?(await new Promise((K,mt)=>{y.addResolveListener(K,mt)}),r[kn][a].get(n)):y;if(!new rt(r).getBrowserFrame())throw new r.TypeError(`Failed to import module "${i}" from "${o}": Window is closed and is no longer attached to a frame`);let d=new Kp({window:r,url:i}),b=r[yi],f=b.startTask();r[kn][a].set(n,d);let S=new Xl(r),M;try{M=await S.fetch(i,"module")}catch(K){throw b.endTask(f),d.resolve(K),K}b.endTask(f);let N;switch(a){case"json":N=new Xy({window:r,url:i,source:M.content});break;case"css":N=new Qy({window:r,url:i,source:M.content});break;case"esm":N=new Zl({window:r,url:i,source:M.content,sourceURL:M.virtualServerFile||n,factory:new l(r,i)});break}return r[kn][a].set(n,N),d.resolve(),N}async importModule(e,t){let r=new rt(this.window).getBrowserFrame();if(!r)return{};let o=r[gt],i=o?.startTask(),a=await(await this.getModule(e,t)).evaluate();return o.endTask(i),a}};var Lm,ig=class{constructor(){s(this,"integrityMetadata",null);s(this,"response",null);s(this,"error",null);E(this,Lm,null)}onResponseAvailable(){return new Promise((e,t)=>{w(this,Lm,{resolve:e,reject:t})})}responseAvailable(e,t){this.response=t,this.error=e,u(this,Lm)&&(e?u(this,Lm).reject(e):t?u(this,Lm).resolve(t):u(this,Lm).reject(new Error("Response is null")))}};Lm=new WeakMap;var bC,gC,fC,sg,Hs,kA,IA,MA,jp=class extends G{constructor(){super(...arguments);E(this,Hs);s(this,fC,null);s(this,gC,!1);s(this,bC,null);E(this,sg,null)}get onerror(){return P.getEventListener(this,"onerror")}set onerror(t){this[c].set("onerror",t)}get onload(){return P.getEventListener(this,"onload")}set onload(t){this[c].set("onload",t)}get sheet(){return this[Je]}get relList(){return this[Fo]||(this[Fo]=new So(h,this,"rel",["stylesheet","modulepreload","preload"])),this[Fo]}set relList(t){this.setAttribute("rel",t)}get as(){return this.getAttribute("as")||""}set as(t){this.setAttribute("as",t)}get crossOrigin(){return this.getAttribute("crossorigin")||""}set crossOrigin(t){this.setAttribute("crossorigin",t)}get href(){if(!this.hasAttribute("href"))return"";try{return new URL(this.getAttribute("href"),this[T].location.href).href}catch{return this.getAttribute("href")}}set href(t){this.setAttribute("href",t)}get hreflang(){return this.getAttribute("hreflang")||""}set hreflang(t){this.setAttribute("hreflang",t)}get media(){return this.getAttribute("media")||""}set media(t){this.setAttribute("media",t)}get referrerPolicy(){return this.getAttribute("referrerPolicy")||""}set referrerPolicy(t){this.setAttribute("referrerPolicy",t)}get rel(){return this.getAttribute("rel")||""}set rel(t){this.setAttribute("rel",t)}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}[(fC=Je,gC=Ml,bC=Fo,Rr)](){super[Rr]();let t=this.getAttribute("rel"),r=this.getAttribute("href");if(t&&r)switch(t){case"stylesheet":D(this,Hs,MA).call(this,r);break;case"modulepreload":D(this,Hs,kA).call(this,r);break;case"preload":D(this,Hs,IA).call(this,r);break}}[Qe](t,r){if(super[Qe](t,r),t[st]==="rel"||t[st]==="href"){let o=this.getAttribute("rel"),i=this.getAttribute("href");if(o&&i)switch(o){case"stylesheet":D(this,Hs,MA).call(this,i);break;case"modulepreload":D(this,Hs,kA).call(this,i);break;case"preload":D(this,Hs,IA).call(this,i);break}}}};sg=new WeakMap,Hs=new WeakSet,kA=async function(t){let r=this[m],o=new rt(r).getBrowserFrame(),i=new rt(r).getSettings();if(!o||!i||!this[it]||i.disableJavaScriptFileLoading||!i.enableJavaScriptEvaluation)return;let n=new Ui(r,r.location);if(i.disableErrorCapturing||i.errorCapture!==ue.tryAndCatch)await(await n.getModule(t)).preload();else try{await(await n.getModule(t)).preload()}catch(a){o.page.console.error(a),r[ce](a);return}},IA=async function(t){let r=this[m],o=new rt(r).getBrowserFrame(),i=this.as;if(!o||!this[it]||i!=="script"&&i!=="style"&&i!=="fetch")return;let n=o.page.context.browser.settings;if(i==="script"&&(n.disableJavaScriptFileLoading||!n.enableJavaScriptEvaluation)||i==="style"&&n.disableCSSFileLoading)return;let a=new URL(t,r.location.href).href,y=_n.getKey({url:a,destination:i,mode:"cors",credentialsMode:this.crossOrigin==="use-credentials"?"include":"same-origin"});if(r.document[co].has(y))return;let p=new ig;r.document[co].set(y,p);let d=new zo({browserFrame:o,window:r,url:a,disableSameOriginPolicy:i==="script"||i==="style",disablePreload:!0,init:{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin"}});try{let b=await d.send();b[Mt]||await b.buffer(),p.responseAvailable(null,b)}catch(b){p.responseAvailable(b,null),r.document[co].delete(y),o.page.console.error(`Failed to preload resource "${a}": ${b.message}`)}},MA=async function(t){let r=this[m],o=new rt(r).getBrowserFrame();if(!o||t===null)return;let i=o.page.context.browser.settings;if(this[Ml]||!this[it])return;let n;try{n=new URL(t,r.location.href).href}catch{return}if(u(this,sg)===n)return;if(i&&i.disableCSSFileLoading){if(i.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new k("load"));else{let f=new r.DOMException(`Failed to load external stylesheet "${n}". CSS file loading is disabled.`,v.notSupportedError);o.page.console.error(f),this.dispatchEvent(new k("error"))}return}let a=new Xl(r),y=r[yi];w(this,sg,n);let p=y.startTask(),d=null,b=null;try{d=await a.fetch(n,"style",{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin"})}catch(f){b=f}if(y.endTask(p),b)o.page.console.error(b),this.dispatchEvent(new k("error"));else{let f=new this[T][m].CSSStyleSheet;f.replaceSync(d.content),this[Je]=f;let S=this[T];if(S){for(let M of S[$i])M.result=null;S[$i]=[]}this.dispatchEvent(new k("load"))}};var SC,PC,Qp=class extends(PC=G,SC=Dc,PC){constructor(){super(...arguments);s(this,SC,null)}get areas(){return this[Dc]||(this[Dc]=me.getElementsByTagName(this,"area")),this[Dc]}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}};var ta=class extends Array{constructor(e){if(super(),e!==1&&e!==h)throw new TypeError("Illegal constructor")}getCueById(e){for(let t of this)if(t.id===e)return t;return null}};var $p=class extends G{};var Xp=class extends G{get content(){return this.getAttribute("content")||""}set content(e){this.setAttribute("content",e)}get httpEquiv(){return this.getAttribute("http-equiv")||""}set httpEquiv(e){this.setAttribute("http-equiv",e)}get name(){return this.getAttribute("name")||""}set name(e){this.setAttribute("name",e)}get scheme(){return this.getAttribute("scheme")||""}set scheme(e){this.setAttribute("scheme",e)}};var zp=class extends G{get high(){if(!this.hasAttribute("high"))return 1;let e=parseFloat(this.getAttribute("high")||"");return isNaN(e)||e>1?1:e<0?0:e}set high(e){if(e=typeof e!="number"?Number(e):e,isNaN(e))throw new this[m].TypeError("Failed to set the 'high' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("high",String(e))}get low(){if(!this.hasAttribute("low"))return 0;let e=parseFloat(this.getAttribute("low")||"");return isNaN(e)||e<0?0:e>1?1:e}set low(e){if(e=typeof e!="number"?Number(e):e,isNaN(e))throw new this[m].TypeError("Failed to set the 'low' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("low",String(e))}get max(){if(!this.hasAttribute("max"))return 1;let e=parseFloat(this.getAttribute("max")||"");return isNaN(e)||e>1?1:e<0?0:e}set max(e){if(e=typeof e!="number"?Number(e):e,isNaN(e))throw new this[m].TypeError("Failed to set the 'max' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("max",String(e))}get min(){if(!this.hasAttribute("min"))return 0;let e=parseFloat(this.getAttribute("min")||"");return isNaN(e)||e<0?0:e>1?1:e}set min(e){if(e=typeof e!="number"?Number(e):e,isNaN(e))throw new this[m].TypeError("Failed to set the 'min' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("min",String(e))}get optimum(){if(!this.hasAttribute("optimum"))return .5;let e=parseFloat(this.getAttribute("optimum")||"");return isNaN(e)?.5:e<0?0:e>1?1:e}set optimum(e){if(e=typeof e!="number"?Number(e):e,isNaN(e))throw new this[m].TypeError("Failed to set the 'optimum' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("optimum",String(e))}get value(){if(!this.hasAttribute("value"))return 0;let e=parseFloat(this.getAttribute("value")||"");return isNaN(e)||e<0?0:e>1?1:e}set value(e){if(e=typeof e!="number"?Number(e):e,isNaN(e))throw new this[m].TypeError("Failed to set the 'value' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("value",String(e))}get labels(){return Ao.getAssociatedLabelElements(this)}};var Jp=class extends G{get cite(){if(!this.hasAttribute("cite"))return"";try{return new URL(this.getAttribute("cite"),this[T].location.href).href}catch{return this.getAttribute("cite")}}set cite(e){this.setAttribute("cite",e)}get dateTime(){return this.getAttribute("datetime")||""}set dateTime(e){this.setAttribute("datetime",e)}};var Zp=class extends G{get reversed(){return this.getAttribute("reversed")!==null}set reversed(e){e?this.setAttribute("reversed",""):this.removeAttribute("reversed")}get start(){if(!this.hasAttribute("start"))return 1;let e=Number(this.getAttribute("start")||"");return isNaN(e)?1:e}set start(e){typeof e!="number"&&(e=Number(e)),isNaN(e)&&(e=0),this.setAttribute("start",String(e))}get type(){return this.getAttribute("type")||""}set type(e){this.setAttribute("type",e)}};var AC,wC,EC,xC,th=class extends(xC=G,EC=Ht,wC=_e,AC=pr,xC){constructor(){super(...arguments);s(this,EC,null);s(this,wC,"");s(this,AC,new Po(this))}get contentDocument(){return null}get contentWindow(){return null}get data(){if(!this.hasAttribute("data"))return"";try{return new URL(this.getAttribute("data"),this[T].location.href).href}catch{return this.getAttribute("data")}}set data(t){this.setAttribute("data",t)}get form(){if(this[Ht])return this[Ht];let t=this.getAttribute("form");return!t||!this[it]?null:this[T].getElementById(t)}get height(){return this.getAttribute("height")||""}set height(t){this.setAttribute("height",t)}get width(){return this.getAttribute("width")||""}set width(t){this.setAttribute("width",t)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}get validationMessage(){return this[_e]}get validity(){return this[pr]}get willValidate(){return!1}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let r=Number(t);return isNaN(r)?0:r}return 0}set tabIndex(t){super.tabIndex=t}checkValidity(){return!0}reportValidity(){return this.checkValidity()}setCustomValidity(t){this[_e]=String(t)}};var eh=class extends G{get label(){return this.getAttribute("label")||""}set label(e){e?this.setAttribute("label",e):this.removeAttribute("label")}get disabled(){return this.getAttribute("disabled")!==null}set disabled(e){e?this.setAttribute("disabled",""):this.removeAttribute("disabled")}};var vC,TC,CC,$n=class extends G{constructor(){super(...arguments);s(this,CC,!1);s(this,TC,!1);s(this,vC,null)}get text(){return this.innerText}set text(t){this.innerText=t}get index(){return this[Ke]?yt.querySelectorAll(this[Ke],"option")[$].indexOf(this):0}get form(){return this[Ke]?.form||null}get selected(){return this[Jr]}set selected(t){let r=this[Ke];this[va]=!0,this[Jr]=!!t,r&&r[La](this[Jr]?this:null)}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}get value(){return this.getAttribute("value")??this.textContent}set value(t){this.setAttribute("value",t)}[(CC=Jr,TC=va,vC=Ke,Qe)](t,r){if(super[Qe](t,r),!this[va]&&t[st]==="selected"&&r?.[z]!==t[z]){let o=this[Ke];this[Jr]=!0,o&&o[La](this)}}[Yr](t){if(super[Yr](t),t&&!this[va]&&t[st]==="selected"){let r=this[Ke];this[Jr]=!1,r&&r[La]()}}[Io](){super[Io](),this[Ke]&&this[Ke][La]()}[en](){this[Ke]&&this[Ke][La](),super[en]()}};var NC,LC,kC,IC,MC,rh=class extends(MC=G,IC=Ht,kC=_e,LC=pr,NC=Vo,MC){constructor(){super(...arguments);s(this,IC,null);s(this,kC,"");s(this,LC,new Po(this));s(this,NC,"")}get defaultValue(){return this[Vo]}set defaultValue(t){this[Vo]=t}get form(){if(this[Ht])return this[Ht];let t=this.getAttribute("form");return!t||!this[it]?null:this[T].getElementById(t)}get htmlFor(){return this.getAttribute("for")||""}set htmlFor(t){this.setAttribute("for",t)}get labels(){return Ao.getAssociatedLabelElements(this)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get value(){return this.textContent||""}set value(t){this.textContent=t}get type(){return"output"}get validationMessage(){return this[_e]}get validity(){return this[pr]}get willValidate(){return!1}checkValidity(){return!0}reportValidity(){return this.checkValidity()}setCustomValidity(t){this[_e]=String(t)}};var oh=class extends G{};var ih=class extends G{};var sh=class extends G{};var nh=class extends G{};var lh=class extends G{get max(){if(!this.hasAttribute("max"))return 1;let e=parseFloat(this.getAttribute("max")||"");return isNaN(e)||e<0?1:e}set max(e){if(e=typeof e!="number"?Number(e):e,isNaN(e))throw new this[m].TypeError("Failed to set the 'max' property on 'HTMLProgressElement': The provided double value is non-finite.");this.setAttribute("max",e<0?"1":String(e))}get value(){if(!this.hasAttribute("value"))return 0;let e=parseFloat(this.getAttribute("value")||"");return isNaN(e)||e<0?0:e}set value(e){if(e=typeof e!="number"?Number(e):e,isNaN(e))throw new this[m].TypeError("Failed to set the 'value' property on 'HTMLProgressElement': The provided double value is non-finite.");this.setAttribute("value",e<0?"0":String(e))}get position(){return this.hasAttribute("value")?this.value/this.max:-1}get labels(){return Ao.getAssociatedLabelElements(this)}};var ah=class extends G{get cite(){if(!this.hasAttribute("cite"))return"";try{return new URL(this.getAttribute("cite"),this[T].location.href).href}catch{return this.getAttribute("cite")}}set cite(e){this.setAttribute("cite",e)}};var rG=/import\s*\(([^)]+)\)/gm,oG=/(\/)|(\(|\))|({|})|(\[|\])|(\${)|(`)|(')|(")|(\n)/gm,iG=/['"`(){}\s;=><\[\]+-,:&]/,sG=/['"`({};=><\[+-,:&]/,mh=class{constructor(e){s(this,"window");s(this,"count",{comment:0,singleLineComment:0,parentheses:0,curlyBraces:0,squareBrackets:0,regExp:0,regExpSquareBrackets:0,escapeTemplateString:0,simpleString:0,doubleString:0});s(this,"templateString",[]);this.window=e}compile(e,t){let r=new rt(this.window).getSettings();if(!r)return{execute:()=>{}};let o=new RegExp(rG),i=this.count,n="(function anonymous($happy_dom) {",a=null,y,p,d=0,b=-1;for(!r.disableErrorCapturing&&r.errorCapture===ue.tryAndCatch&&(n+="try {");a=o.exec(t);)y=t[a.index-1]||" ",p=t.substring(d,a.index),this.parseSyntax(p,d),b===-1&&(n+=p),a[1]&&i.simpleString===0&&i.doubleString===0&&i.comment===0&&i.singleLineComment===0&&i.regExp===0&&(this.templateString.length===0||this.templateString[0]>0)&&iG.test(y)?n+=`$happy_dom.dynamicImport(${a[1]})`:(n+=a[0],this.parseSyntax(a[0],a.index)),d=o.lastIndex;d===0?n+=t:n+=t.substring(d),!r.disableErrorCapturing&&r.errorCapture===ue.tryAndCatch&&(n+="} catch (error) { $happy_dom.dispatchError(error); }"),n+="})";try{return{execute:this.window[Ci](n,{filename:e})}}catch(f){if(f.message=`Failed to parse JavaScript in '${e}': ${f.message}`,r.disableErrorCapturing||r.errorCapture!==ue.tryAndCatch)throw f;return this.window[ce](f),{execute:()=>{}}}}parseSyntax(e,t){let r=new RegExp(oG),o=this.count,i=null,n,a;for(t++;i=r.exec(e);)n=e[i.index-1]||" ",a=n==="\\"&&e[i.index-2]!=="\\",i[1]?o.simpleString===0&&o.doubleString===0&&o.singleLineComment===0&&o.regExpSquareBrackets===0&&(this.templateString.length===0||this.templateString[0]>0)&&(o.comment===1?n==="*"&&(o.comment=0):o.regExp===0?e[i.index+1]==="*"?o.comment=1:e[i.index+1]==="/"?o.singleLineComment=1:sG.test(this.getNonSpacePrecedingToken(e,i.index))&&(o.regExp=1):a||(o.regExp=0)):i[2]?o.simpleString===0&&o.doubleString===0&&o.regExp===0&&o.comment===0&&o.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(i[2]==="("?o.parentheses++:i[2]===")"&&o.parentheses>0&&o.parentheses--):i[3]?o.simpleString===0&&o.doubleString===0&&o.regExp===0&&o.comment===0&&o.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(i[3]==="{"?(this.templateString.length&&this.templateString[0]++,o.curlyBraces++):i[3]==="}"&&(this.templateString.length&&this.templateString[0]>0&&this.templateString[0]--,o.curlyBraces>0&&o.curlyBraces--)):i[4]?o.simpleString===0&&o.doubleString===0&&o.comment===0&&o.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(o.regExp===1?a||(i[4]==="["&&o.regExpSquareBrackets===0?o.regExpSquareBrackets=1:i[4]==="]"&&o.regExpSquareBrackets===1&&(o.regExpSquareBrackets=0)):i[4]==="["?o.squareBrackets++:i[4]==="]"&&o.squareBrackets>0&&o.squareBrackets--):i[5]?o.simpleString===0&&o.doubleString===0&&o.comment===0&&o.singleLineComment===0&&o.regExp===0&&!a&&this.templateString[0]===0&&(this.templateString[0]=1,o.curlyBraces++):i[6]?o.simpleString===0&&o.doubleString===0&&o.comment===0&&o.singleLineComment===0&&o.regExp===0&&!a&&(this.templateString?.[0]===0?this.templateString.shift():this.templateString.unshift(0)):i[7]?o.doubleString===0&&o.comment===0&&o.singleLineComment===0&&o.regExp===0&&!a&&(this.templateString.length===0||this.templateString[0]>0)&&(o.simpleString===0?o.simpleString=1:o.simpleString=0):i[8]?o.simpleString===0&&o.comment===0&&o.singleLineComment===0&&o.regExp===0&&!a&&(this.templateString.length===0||this.templateString[0]>0)&&(o.doubleString===0?o.doubleString=1:o.doubleString=0):i[9]&&(o.singleLineComment=0)}getNonSpacePrecedingToken(e,t){t--;let r=e[t];for(;r===" "||r===`
137
- `||r===" ";)t--,r=e[t];return r||";"}};var RC,FC,ng,Ei,BC,DC,OC,RA,FA,yh=class extends G{constructor(){super(...arguments);E(this,Ei);s(this,FC,!1);s(this,RC,null);E(this,ng,null)}get onerror(){return P.getEventListener(this,"onerror")}set onerror(t){this[c].set("onerror",t)}get onload(){return P.getEventListener(this,"onload")}set onload(t){this[c].set("onload",t)}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}get blocking(){return this[sb]||(this[sb]=new So(h,this,"blocking")),this[sb]}set blocking(t){this.setAttribute("blocking",t)}get crossOrigin(){return this.getAttribute("crossorigin")||""}set crossOrigin(t){this.setAttribute("crossorigin",t)}get fetchPriority(){let t=this.getAttribute("fetchpriority");switch(t){case"high":case"low":case"normal":return t;default:return"auto"}}set fetchPriority(t){this.setAttribute("fetchpriority",t)}get noModule(){return this.getAttribute("nomodule")!==null}set noModule(t){t?this.setAttribute("nomodule",""):this.removeAttribute("nomodule")}get integrity(){return this.getAttribute("integrity")||""}set integrity(t){this.setAttribute("integrity",t)}get referrerPolicy(){let t=this.getAttribute("referrerpolicy");switch(t){case"no-referrer":case"no-referrer-when-downgrade":case"same-origin":case"origin":case"strict-origin":case"origin-when-cross-origin":case"strict-origin-when-cross-origin":case"unsafe-url":return t;default:return""}}set referrerPolicy(t){this.setAttribute("referrerpolicy",t)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[T].location.href).href}catch{return this.getAttribute("src")}}set src(t){this.setAttribute("src",t)}get charset(){return this.getAttribute("charset")||""}set charset(t){this.setAttribute("charset",t)}get lang(){return this.getAttribute("lang")||""}set lang(t){this.setAttribute("lang",t)}get async(){return this.getAttribute("async")!==null}set async(t){t?this.setAttribute("async",""):this.removeAttribute("async")}get defer(){return this.getAttribute("defer")!==null}set defer(t){t?this.setAttribute("defer",""):this.removeAttribute("defer")}get text(){return this.textContent}set text(t){this.textContent=t}[(FC=Ml,RC=sb,ct)](t=!1){return super[ct](t)}[Rr](){let t=new rt(this[m]).getSettings();if(super[Rr](),this[Ml])return;let r=this.getAttribute("src");if(r!==null)this.getAttribute("type")==="module"?D(this,Ei,RA).call(this,r):D(this,Ei,FA).call(this,r);else if(t&&t.enableJavaScriptEvaluation){let o=this.textContent,i=this.getAttribute("type");o&&(i==="module"?D(this,Ei,BC).call(this,o):i==="importmap"?D(this,Ei,DC).call(this,o):(i===null||i==="application/x-ecmascript"||i==="application/x-javascript"||i.startsWith("text/javascript"))&&D(this,Ei,OC).call(this,o))}}[Qe](t,r){super[Qe](t,r),t[st]==="src"&&t[z]!==null&&this[it]&&(this.getAttribute("type")==="module"?D(this,Ei,RA).call(this,t[z]):D(this,Ei,FA).call(this,t[z]))}static supports(t){switch(t){case"classic":case"module":case"importmap":return!0;default:return!1}}};ng=new WeakMap,Ei=new WeakSet,BC=function(t){let r=this[T].location,o=this[m],i=new rt(o).getSettings();if(!new rt(o).getBrowserFrame()||!i||!i.enableJavaScriptEvaluation)return;this[T][vi]=this;let a=new Ui(o,r),y=new Zl({window:o,url:r,source:t,factory:a});i.disableErrorCapturing||i.errorCapture!==ue.tryAndCatch?y.evaluate():y.evaluate().catch(p=>{o[ce](p)}),this[T][vi]=null,this.dispatchEvent(new k("load"))},DC=async function(t){let r=this[m],o=new rt(r).getSettings();if(!new rt(r).getBrowserFrame()||!o||r[gy]||!o.enableJavaScriptEvaluation)return;let n;if(o.disableErrorCapturing||o.errorCapture!==ue.tryAndCatch)n=JSON.parse(t);else try{n=JSON.parse(t)}catch(a){r[ce](a);return}if(n.imports||n.scopes){let a={imports:[],scopes:[]};if(n.imports)for(let y of Object.keys(n.imports))a.imports.push({from:y,to:n.imports[y]});if(n.scopes)for(let y of Object.keys(n.scopes)){let p={scope:y,rules:[]};for(let d of Object.keys(n.scopes[y])){let b=n.scopes[y][d];p.rules.push({from:d,to:b})}a.scopes.push(p)}r[gy]=a}},OC=function(t){let r=this[m];if(!new rt(r).getSettings())return;this[T][vi]=this;let n=new mh(r).compile(r.location.href,t),a=new Ui(r,r.location);n.execute({dynamicImport:a.importModule.bind(a),dispatchError:r[ce].bind(r)}),this[T][vi]=null},RA=async function(t){let r=this[m],o=new rt(r).getBrowserFrame(),i=new rt(r).getSettings();if(!o||!i||!t||!this[it]||this.getAttribute("type")!=="module")return;if(i&&(i.disableJavaScriptFileLoading||!i.enableJavaScriptEvaluation)){if(i.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new k("load"));else{let a=new r.DOMException(`Failed to load module "${t}". JavaScript file loading is disabled.`,v.notSupportedError);o.page.console.error(a),this.dispatchEvent(new k("error"))}return}let n=new Ui(r,r.location);if(i.disableErrorCapturing||i.errorCapture!==ue.tryAndCatch)await(await n.getModule(t)).evaluate();else try{await(await n.getModule(t)).evaluate()}catch(a){o.page.console.error(a),this.dispatchEvent(new k("error"));return}this.dispatchEvent(new k("load"))},FA=async function(t){let r=this[m],o=new rt(r).getBrowserFrame();if(!o)return;let i=o.page.context.browser.settings,n=this.getAttribute("type");if(!t||!this[it]||n!==null&&n!=="application/x-ecmascript"&&n!=="application/x-javascript"&&!n.startsWith("text/javascript"))return;let a;try{a=new URL(t,r.location.href)}catch{return}let y=a.toString();if(u(this,ng)===y)return;if(i&&(i.disableJavaScriptFileLoading||!i.enableJavaScriptEvaluation)){if(i.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new k("load"));else{let N=new r.DOMException(`Failed to load script "${a}". JavaScript file loading is disabled.`,v.notSupportedError);o.page.console.error(N),this.dispatchEvent(new k("error"))}return}w(this,ng,y);let p=new Xl(r),d=this.getAttribute("async")!==null||this.getAttribute("defer")!==null,b=null;if(d){let N=r[yi],K=N.startTask();try{b=await p.fetch(y,"script",{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin",referrerPolicy:this.referrerPolicy})}catch(mt){o.page.console.error(mt),this.dispatchEvent(new k("error")),N.endTask(K);return}N.endTask(K)}else try{b=p.fetchSync(y,"script",{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin",referrerPolicy:this.referrerPolicy})}catch(N){o.page.console.error(N),this.dispatchEvent(new k("error"));return}this[T][vi]=this;let S=new mh(r).compile(b.virtualServerFile||y,b.content),M=new Ui(r,r.location);S.execute({dynamicImport:M.importModule.bind(M),dispatchError:r[ce].bind(r)}),this[T][vi]=null,this.dispatchEvent(new k("load"))};var Jy=class extends Ne{constructor(e,t){super(e,()=>yt.querySelectorAll(t,"option")[$]),this[Lt]=t}get selectedIndex(){return this[Lt].selectedIndex}set selectedIndex(e){this[Lt].selectedIndex=e}add(e,t){this[Lt].add(e,t)}remove(e){this[Lt].remove(e)}};var VC,UC,GC,_C,HC,WC,GS,YC,BA=class BA extends G{constructor(){super();E(this,GS);s(this,WC,"");s(this,HC,new Po(this));s(this,_C,null);s(this,GC,null);s(this,UC,-1);s(this,VC);let t=new Te(this,[BA,G,xr,bt,Tt]),r=new Proxy(this,{get:(o,i)=>{if(i in o||typeof i=="symbol")return t.bind(i),o[i];let n=Number(i);if(!isNaN(n))return yt.querySelectorAll(o,"option")[$][n]},set(o,i,n){if(t.bind(i),typeof i=="symbol")return o[i]=n,!0;let a=Number(i);if(isNaN(a))return o[i]=n,!0;if(!n||!(n instanceof $n))throw new o[m].Error(`TypeError: Failed to set an indexed property [${a}] on 'HTMLSelectElement': parameter 2 is not of type 'HTMLOptionElement'.`);let y=yt.querySelectorAll(o,"option")[$],p=o[q];for(;p.length;)o[Hr](p[0]);for(let d=0;d<=a;d++)d===a?o[vt](n):y[d]?o[vt](y[d]):o[vt](o[T].createElement("option"));return!0},deleteProperty(o,i){if(typeof i=="symbol")return delete o[i],!0;let n=Number(i);return isNaN(n)&&delete o[i],!0},ownKeys(o){return Object.keys(yt.querySelectorAll(o,"option")[$])},has(o,i){if(i in o)return!0;if(typeof i=="symbol")return!1;let n=Number(i);return isNaN(n)?!1:!!yt.querySelectorAll(o,"option")[$][n]},defineProperty(o,i,n){t.preventBinding(i);let a=Number(i);if(isNaN(a))return Object.defineProperty(o,i,n),!0;if(!n.value||!(n.value instanceof $n))throw new o[m].Error(`TypeError: Failed to set an indexed property [${a}] on 'HTMLSelectElement': parameter 2 is not of type 'HTMLOptionElement'.`);let y=yt.querySelectorAll(o,"option")[$],p=o[q];for(;p.length;)o[Hr](p[0]);for(let d=0;d<=a;d++)d===a?o[vt](n.value):y[d]?o[vt](y[d]):o[vt](o[T].createElement("option"));return!0},getOwnPropertyDescriptor(o,i){if(i in o)return Object.getOwnPropertyDescriptor(o,i);let n=Number(i);if(isNaN(n))return;let a=yt.querySelectorAll(o,"option")[$];if(a[n])return{value:a[n],writable:!0,enumerable:!0,configurable:!0}}});return this[Vt]=r,this[Ke]=r,r}get onchange(){return P.getEventListener(this,"onchange")}set onchange(t){this[c].set("onchange",t)}get oninput(){return P.getEventListener(this,"oninput")}set oninput(t){this[c].set("oninput",t)}get length(){return yt.querySelectorAll(this,"option")[$].length}get options(){return this[ln]||(this[ln]=new Jy(h,this)),this[ln]}get validationMessage(){return this[_e]}get validity(){return this[pr]}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}get multiple(){return this.getAttribute("multiple")!==null}set multiple(t){t?this.setAttribute("multiple",""):this.removeAttribute("multiple")}get autofocus(){return this.getAttribute("autofocus")!==null}set autofocus(t){t?this.setAttribute("autofocus",""):this.removeAttribute("autofocus")}get required(){return this.getAttribute("required")!==null}set required(t){t?this.setAttribute("required",""):this.removeAttribute("required")}get type(){return this.hasAttributeNS(null,"multiple")?"select-multiple":"select-one"}get value(){let t=yt.querySelectorAll(this,"option")[$];for(let r=0,o=t.length;r<o;r++){let i=t[r];if(i[Jr])return i.value}return""}set value(t){let r=yt.querySelectorAll(this,"option")[$];this[Ni]=-1;for(let o=0,i=r.length;o<i;o++){let n=r[o];n.value===t?(n[Jr]=!0,n[va]=!0,this[Ni]=o):n[Jr]=!1}}get selectedIndex(){return this[Ni]}set selectedIndex(t){if(t=Number(t),isNaN(t))return;let r=yt.querySelectorAll(this,"option")[$];if(this[Ni]=-1,typeof t=="number"&&!isNaN(t)){for(let i=0,n=r.length;i<n;i++)r[i][Jr]=!1;let o=r[t];o&&(o[Jr]=!0,o[va]=!0,this[Ni]=t)}}get selectedOptions(){return this[Fa]||(this[Fa]=new Ne(h,()=>{let t=yt.querySelectorAll(this,"option")[$];if(t[Fa])return t[Fa];let r=[];for(let o=0,i=t.length;o<i;o++){let n=t[o];n[Jr]&&r.push(n)}return t[Fa]=r,r})),this[Fa]}get labels(){return Ao.getAssociatedLabelElements(this)}get form(){if(this[Ht])return this[Ht];let t=this.getAttribute("form");return!t||!this[it]?null:this[T].getElementById(t)}get willValidate(){return this.type!=="hidden"&&this.type!=="reset"&&this.type!=="button"&&!this.disabled}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let r=Number(t);return isNaN(r)?0:r}return 0}set tabIndex(t){super.tabIndex=t}item(t){return this.options.item(t)}add(t,r){let o=yt.querySelectorAll(this,"option")[$];if(!r&&r!==0){let y=this[q];for(;y.length;)this[Hr](y[0]);for(let p of o)this[vt](p);this[vt](t);return}let i=this[m];if(typeof r!="number"){if(!(r instanceof $n))throw new i.DOMException("Failed to execute 'add' on 'HTMLFormElement': The node before which the new node is to be inserted before is not an 'HTMLOptionElement'.");r=o.indexOf(r)}if(!o[r])throw new i.DOMException("Failed to execute 'add' on 'HTMLFormElement': The node before which the new node is to be inserted before is not a child of this node.");let a=this[q];for(;a.length;)this[Hr](a[0]);for(let y=0,p=o.length;y<p;y++)y===r&&this[vt](t),this[vt](o[y])}remove(t){if(typeof t=="number"){let r=yt.querySelectorAll(this,"option")[$];if(!r[t])return;let o=this[q];for(;o.length;)this[Hr](o[0]);for(let i=0,n=r.length;i<n;i++)i!==t&&this[vt](r[i])}else super.remove()}setCustomValidity(t){this[_e]=String(t)}checkValidity(){let t=this.disabled||this[pr].valid;return t||this.dispatchEvent(new k("invalid",{bubbles:!0,cancelable:!0})),t}reportValidity(){return this.checkValidity()}[(WC=_e,HC=pr,_C=ln,GC=Fa,UC=Ni,VC=Vt,La)](t){let r=this.hasAttribute("multiple"),o=yt.querySelectorAll(this,"option")[$],i=[];if(t&&(this[Ni]=-1),!r)for(let a=0,y=o.length;a<y;a++){let p=o[a];t&&(p[Jr]=p===t,p===t&&(this[Ni]=a)),p[Jr]&&i.push(p)}if(D(this,GS,YC).call(this)===1&&!i.length){this[Ni]=-1;for(let a=0,y=o.length;a<y;a++){let p=o[a],d=p[Y],b=p.hasAttributeNS(null,"disabled");if(d&&d[U]===L.elementNode&&d[Z]==="OPTGROUP"&&d.hasAttributeNS(null,"disabled")&&(b=!0),!b){p[Jr]=!0,this[Ni]=a;break}}}else if(i.length>=2){this[Ni]=-1;for(let a=0,y=o.length;a<y;a++)o[a][Jr]=a===i.length-1,a===i.length-1&&(this[Ni]=a)}}};GS=new WeakSet,YC=function(){if(this.hasAttributeNS(null,"size")){let t=parseInt(this.getAttribute("size"));if(!isNaN(t)&&t>=0)return t}return this.hasAttributeNS(null,"multiple")?4:1};var uh=BA;var DA,qC,ea,lg,KC,_S=class extends G{constructor(){super(...arguments);E(this,ea);s(this,qC,[])}get onslotchange(){return P.getEventListener(this,"onslotchange")}set onslotchange(t){this[c].set("onslotchange",t)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}assign(...t){let r=this.getRootNode();if(r?.[vs]!=="manual")return;let o=r.host;if(o){for(let i of t)if(i instanceof bt&&o[q].includes(i)&&i[U]!==L.commentNode){if(i[Ji]){let n=i[Ji][mn].indexOf(i);n!==-1&&i[Ji][mn].splice(n,1)}i[Ji]=this,this[mn].push(i)}}}assignedNodes(t){return D(this,ea,lg).call(this,this.name,t)}assignedElements(t){return D(this,ea,KC).call(this,this.name,t)}[(qC=mn,ct)](t=!1){return super[ct](t)}[Qe](t,r){if(super[Qe](t,r),t[st]==="name"&&t[z]!==r?.[z]){let o=D(this,ea,lg).call(this,r?.[z]),i=D(this,ea,lg).call(this,t.value);if(o.length!==i.length)this.dispatchEvent(new k("slotchange",{bubbles:!0}));else for(let n=0,a=i.length;n<a;n++)if(o[n]!==i[n]){this.dispatchEvent(new k("slotchange",{bubbles:!0}));break}}}[Yr](t){super[Yr](t),t[st]==="name"&&t[z]&&D(this,ea,lg).call(this,t.value).length>0&&this.dispatchEvent(new k("slotchange",{bubbles:!0}))}};ea=new WeakSet,lg=function(t,r){let o=this.getRootNode();if(!o?.host)return[];if(o[vs]==="manual")return this[mn];let i=o.host,n=!!r?.flatten,a=[];for(let y of i[q]){let p=y.slot;if(t&&p&&p===t||!t&&!p)if(n&&y instanceof DA)for(let d of y.assignedNodes(r))a.push(d);else a.push(y)}return a},KC=function(t,r){let o=this.getRootNode();if(!o?.host)return[];if(o[vs]==="manual"){let y=[];for(let p of this[mn])p instanceof xr&&y.push(p);return y}let i=o.host,n=!!r?.flatten,a=[];for(let y of i[dt]){let p=y.slot;if(t&&p===t||!t&&!p)if(n&&y instanceof DA)for(let d of y.assignedElements(r))a.push(d);else a.push(y)}return a};DA=_S;var OA=_S;var ph=class extends G{get height(){let e=Number(this.getAttribute("height"));return isNaN(e)||e<0?0:e}set height(e){let t=Number(e);this.setAttribute("height",isNaN(t)||t<0?"0":String(t))}get width(){let e=Number(this.getAttribute("width"));return isNaN(e)||e<0?0:e}set width(e){let t=Number(e);this.setAttribute("width",isNaN(t)||t<0?"0":String(t))}get media(){return this.getAttribute("media")||""}set media(e){this.setAttribute("media",e)}get sizes(){return this.getAttribute("sizes")||""}set sizes(e){this.setAttribute("sizes",e)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[T].location.href).href}catch{return this.getAttribute("src")||""}}set src(e){this.setAttribute("src",e)}get srcset(){return this.getAttribute("srcset")||""}set srcset(e){this.setAttribute("srcset",e)}get type(){return this.getAttribute("type")||""}set type(e){this.setAttribute("type",e)}};var hh=class extends G{};var jC,QC,$C,ch=class extends G{constructor(){super(...arguments);s(this,$C,null);s(this,QC,this);s(this,jC,!1)}get media(){return this.getAttribute("media")||""}set media(t){this.setAttribute("media",t)}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}get disabled(){return this[Ua]}set disabled(t){this[Ua]=!!t}get sheet(){return this[it]?(this[Je]||(this[Je]=new this[T][m].CSSStyleSheet,this[Je].replaceSync(this.textContent)),this[Je]):null}[($C=Je,QC=Wr,jC=Ua,Fr)](){super[Fr](),this[Je]=null}[wt](){super[wt](),this[Je]=null}[Ba](){this[Je]&&this[Je].replaceSync(this.textContent)}};var km=class extends G{};var dh=class extends G{get abbr(){return this.getAttribute("abbr")||""}set abbr(e){this.setAttribute("abbr",e)}get cellIndex(){let e=this.parentNode;for(;e;){if(e[Z]==="TR")return yt.querySelectorAll(e,"td,th")[$].indexOf(this);e=e.parentNode}return-1}get colSpan(){let e=Number(this.getAttribute("colspan"));return isNaN(e)||e<1?1:e}set colSpan(e){let t=Number(e);this.setAttribute("colspan",isNaN(t)||t<1?"1":String(t))}get headers(){return this.getAttribute("headers")||""}set headers(e){this.setAttribute("headers",String(e))}get rowSpan(){let e=Number(this.getAttribute("rowspan"));return isNaN(e)||e<1?1:e}set rowSpan(e){let t=Number(e);this.setAttribute("rowspan",isNaN(t)||t<1?"1":String(t))}get scope(){return this.getAttribute("scope")||""}set scope(e){this.setAttribute("scope",e)}};var bh=class extends G{};var Ws=class extends G{insertRow(e=-1){typeof e!="number"&&(e=-1);let t=yt.querySelectorAll(this,"tr")[$];if(e<-1)throw new this[m].DOMException(`Failed to execute 'insertRow' on 'HTMLTableSectionElement': The index provided (${e}) is less than -1.`,v.indexSizeError);if(e>t.length)throw new this[m].DOMException(`Failed to execute 'insertRow' on 'HTMLTableSectionElement': The index provided (${e}) is greater than the number of rows (${t.length}).`,v.indexSizeError);let r=this[T].createElement("tr");return e===-1||e===t.length?this.appendChild(r):this.insertBefore(r,t[e]),r}deleteRow(e){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'deleteRow' on 'HTMLTableSectionElement': 1 argument required, but only 0 present.");if(typeof e!="number"&&(e=-1),e<-1)throw new this[m].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableSectionElement': The index provided (${e}) is less than -1.`,v.indexSizeError);let t=yt.querySelectorAll(this,"tr")[$];if(e>=t.length)throw new this[m].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableSectionElement': The index provided (${e}) is greater than the number of rows in the table (${t.length}).`,v.indexSizeError);e===-1&&(e=t.length-1),t[e].remove()}};var XC,zC,JC,gh=class extends(JC=G,zC=Vc,XC=Uc,JC){constructor(){super(...arguments);s(this,zC,null);s(this,XC,null)}get caption(){return yt.querySelector(this,"caption")}set caption(t){if(t){if(!(t instanceof km))throw new this[m].TypeError("Failed to set the 'caption' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableCaptionElement'.");this.caption?.remove(),this.insertBefore(t,this.firstChild)}else this.caption?.remove()}get tHead(){return yt.querySelector(this,"thead")}set tHead(t){if(t){if(!(t instanceof Ws))throw new this[m].TypeError("Failed to set the 'tHead' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableSectionElement'.");this.tHead?.remove();let r=!1;for(let o of this[dt])if(o[Z]!=="CAPTION"&&o[Z]!=="COLGROUP"){this.insertBefore(t,o),r=!0;break}r||this.appendChild(t)}else this.tHead?.remove()}get tFoot(){return yt.querySelector(this,"tfoot")}set tFoot(t){if(t){if(!(t instanceof Ws))throw new this[m].TypeError("Failed to set the 'tFoot' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableSectionElement'.");this.tFoot?.remove();let r=!1;for(let o of this[dt])if(o[Z]!=="CAPTION"&&o[Z]!=="COLGROUP"&&o[Z]!=="THEAD"){this.insertBefore(t,o),r=!0;break}r||this.appendChild(t)}else this.tFoot?.remove()}get rows(){return this[Vc]||(this[Vc]=new Ne(h,()=>yt.querySelectorAll(this,"tr")[$])),this[Vc]}get tBodies(){return this[Uc]||(this[Uc]=new Ne(h,()=>yt.querySelectorAll(this,"tbody")[$])),this[Uc]}createTHead(){let t=this.tHead;if(t)return t;let r=this[T].createElement("thead");return this.tHead=r,r}deleteTHead(){this.tHead=null}createTFoot(){let t=this.tFoot;if(t)return t;let r=this[T].createElement("tfoot");return this.tFoot=r,r}deleteTFoot(){this.tFoot=null}createTBody(){let t=yt.querySelectorAll(this,"tbody")[$],r=this[T].createElement("tbody");if(t.length>0){let o=t[t.length-1];return o.parentNode?.insertBefore(r,o.nextSibling),r}return this.appendChild(r),r}createCaption(){let t=this.caption;if(t)return t;let r=this[T].createElement("caption");return this.caption=r,r}deleteCaption(){this.caption=null}insertRow(t=-1){typeof t!="number"&&(t=-1);let r=yt.querySelectorAll(this,"tr")[$];if(t<-1)throw new this[m].DOMException(`Failed to execute 'insertRow' on 'HTMLTableElement': The index provided (${t}) is less than -1.`,v.indexSizeError);if(t>r.length)throw new this[m].DOMException(`Failed to execute 'insertRow' on 'HTMLTableElement': The index provided (${t}) is greater than the number of rows (${r.length}).`,v.indexSizeError);let o=this[T].createElement("tr");if(t===-1||t===r.length){let i=yt.querySelector(this,"tbody");if(i)i.appendChild(o);else{let n=this[T].createElement("tbody");n.appendChild(o),this.appendChild(n)}return o}return r[t].parentNode?.insertBefore(o,r[t]),o}deleteRow(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'deleteRow' on 'HTMLTableElement': 1 argument required, but only 0 present.");if(typeof t!="number"&&(t=-1),t<-1)throw new this[m].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableElement': The index provided (${t}) is less than -1.`,v.indexSizeError);let r=yt.querySelectorAll(this,"tr")[$];if(t>=r.length)throw new this[m].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableElement': The index provided (${t}) is greater than the number of rows in the table (${r.length}).`,v.indexSizeError);t===-1&&(t=r.length-1),r[t].remove()}};var ZC,tN,fh=class extends(tN=G,ZC=Oc,tN){constructor(){super(...arguments);s(this,ZC,null)}get cells(){return this[Oc]||(this[Oc]=new Ne(h,()=>yt.querySelectorAll(this,"td,th")[$])),this[Oc]}get rowIndex(){let t=this.parentNode;for(;t;){if(t[Z]==="TABLE")return yt.querySelectorAll(t,"tr")[$].indexOf(this);t=t.parentNode}return-1}get sectionRowIndex(){let t=this.parentNode;for(;t;){if(t instanceof Ws)return yt.querySelectorAll(t,"tr")[$].indexOf(this);t=t.parentNode}return-1}insertCell(t=-1){typeof t!="number"&&(t=-1);let r=yt.querySelectorAll(this,"td,th")[$];if(t<-1)throw new this[m].DOMException(`Failed to execute 'insertCell' on 'HTMLTableRowElement': The index provided (${t}) is less than -1.`,v.indexSizeError);if(t>r.length)throw new this[m].DOMException(`Failed to execute 'insertCell' on 'HTMLTableRowElement': The index provided (${t}) is greater than the number of cells (${r.length}).`,v.indexSizeError);let o=this[T].createElement("td");return t===-1||t===r.length?(this.appendChild(o),o):(r[t].parentNode?.insertBefore(o,r[t]),o)}deleteCell(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'deleteCell' on 'HTMLTableRowElement': 1 argument required, but only 0 present.");if(typeof t!="number"&&(t=-1),t<-1)throw new this[m].DOMException(`Failed to execute 'deleteCell' on 'HTMLTableRowElement': The index provided (${t}) is less than -1.`,v.indexSizeError);let r=yt.querySelectorAll(this,"td,th")[$];if(t>=r.length)throw new this[m].DOMException(`Failed to execute 'deleteCell' on 'HTMLTableRowElement': The index provided (${t}) is greater than the number of cells in the row (${r.length}).`,v.indexSizeError);t===-1&&(t=r.length-1),r[t].remove()}};var eN,Sh=class extends G{constructor(){super(...arguments);s(this,eN,this[T].createDocumentFragment())}get content(){return this[Bo]}get innerHTML(){return this.getHTML()}set innerHTML(t){let r=this[Bo],o=r[q];for(;o.length;)r.removeChild(o[0]);new Kr(this[m],{isTemplateDocumentFragment:!0}).parse(t,this[Bo])}get firstChild(){return this[Bo].firstChild}get lastChild(){return this[Bo].lastChild}getInnerHTML(t){let r=new Oi,o=this[Bo],i="";for(let n of o[q])i+=r.serializeToString(n);return i}getHTML(t){let r=new Oi,o=this[Bo],i="";for(let n of o[q])i+=r.serializeToString(n);return i}[(eN=Bo,vt)](t,r=!1){return this[Bo][vt](t,r)}[Hr](t){return this[Bo][Hr](t)}[uo](t,r,o=!1){return this[Bo][uo](t,r,o)}[Iu](t,r){return this[Bo][Iu](t,r)}[ct](t=!1){let r=super[ct](t);return r[Bo]=this[Bo].cloneNode(t),r}};var rN,oN,iN,sN,nN,ei,ri,as,Ph=class extends G{constructor(){super(...arguments);s(this,"type","textarea");s(this,nN,"");s(this,sN,new Po(this));s(this,iN,null);s(this,oN,this);s(this,rN,null);E(this,ei,null);E(this,ri,null);E(this,as,ti.none)}get oninput(){return P.getEventListener(this,"oninput")}set oninput(t){this[c].set("oninput",t)}get onselectionchange(){return P.getEventListener(this,"onselectionchange")}set onselectionchange(t){this[c].set("onselectionchange",t)}get validationMessage(){return this[_e]}get validity(){return this[pr]}get defaultValue(){return this.textContent}set defaultValue(t){this.textContent=t}get minLength(){let t=this.getAttribute("minlength");return t!==null?parseInt(t):-1}set minLength(t){this.setAttribute("minlength",String(t))}get maxLength(){let t=this.getAttribute("maxlength");return t!==null?parseInt(t):-1}set maxLength(t){this.setAttribute("maxlength",String(t))}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get placeholder(){return this.getAttribute("placeholder")||""}set placeholder(t){this.setAttribute("placeholder",t)}get inputMode(){return this.getAttribute("inputmode")||""}set inputMode(t){this.setAttribute("inputmode",t)}get cols(){return this.getAttribute("cols")||""}set cols(t){this.setAttribute("cols",t)}get rows(){return this.getAttribute("rows")||""}set rows(t){this.setAttribute("rows",t)}get autocomplete(){return this.getAttribute("autocomplete")||""}set autocomplete(t){this.setAttribute("autocomplete",t)}get readOnly(){return this.getAttribute("readonly")!==null}set readOnly(t){t?this.setAttribute("readonly",""):this.removeAttribute("readonly")}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}get autofocus(){return this.getAttribute("autofocus")!==null}set autofocus(t){t?this.setAttribute("autofocus",""):this.removeAttribute("autofocus")}get required(){return this.getAttribute("required")!==null}set required(t){t?this.setAttribute("required",""):this.removeAttribute("required")}get value(){return this[z]===null?this.textContent:this[z]}set value(t){let r=this[z];this[z]=t,r!==this[z]&&(w(this,ei,this[z].length),w(this,ri,this[z].length),w(this,as,ti.none))}get selectionStart(){return u(this,ei)===null?this.value.length:u(this,ei)}set selectionStart(t){this.setSelectionRange(t,Math.max(t,this.selectionEnd),u(this,as))}get selectionEnd(){return u(this,ri)===null?this.value.length:u(this,ri)}set selectionEnd(t){this.setSelectionRange(this.selectionStart,t,u(this,as))}get selectionDirection(){return u(this,as)}set selectionDirection(t){this.setSelectionRange(this.selectionStart,this.selectionEnd,t)}get form(){if(this[Ht])return this[Ht];let t=this.getAttribute("form");return!t||!this[it]?null:this[T].getElementById(t)}get textLength(){return this.value.length}get labels(){return Ao.getAssociatedLabelElements(this)}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let r=Number(t);return isNaN(r)?0:r}return 0}set tabIndex(t){super.tabIndex=t}select(){w(this,ei,0),w(this,ri,this.value.length),w(this,as,ti.none),this.dispatchEvent(new k("select",{bubbles:!0,cancelable:!1}))}setSelectionRange(t,r,o="none"){w(this,ri,Math.min(r,this.value.length)),w(this,ei,Math.min(t,this.selectionEnd)),w(this,as,o===ti.forward||o===ti.backward?o:ti.none),this.dispatchEvent(new k("select",{bubbles:!0,cancelable:!1}))}setRangeText(t,r=null,o=null,i=jn.preserve){if(r===null&&(r=u(this,ei)!==null?u(this,ei):0),o===null&&(o=u(this,ri)!==null?u(this,ri):this.value.length),r>o)throw new this[m].DOMException("The index is not in the allowed range.",v.invalidStateError);r=Math.min(r,this.value.length),o=Math.min(o,this.value.length);let n=this.value,a=u(this,ei)!==null?u(this,ei):0,y=u(this,ri)!==null?u(this,ri):this.value.length;this.value=n.slice(0,r)+t+n.slice(o);let p=r+this.value.length;switch(i){case jn.select:this.setSelectionRange(r,p);break;case jn.start:this.setSelectionRange(r,r);break;case jn.end:this.setSelectionRange(p,p);break;default:let d=t.length-(o-r);a>o?a+=d:a>r&&(a=r),y>o?y+=d:y>r&&(y=p),this.setSelectionRange(a,y);break}}setCustomValidity(t){this[_e]=String(t)}checkValidity(){let t=this.disabled||this.readOnly||this[pr].valid;return t||this.dispatchEvent(new k("invalid",{bubbles:!0,cancelable:!0})),t}reportValidity(){return this.checkValidity()}[(nN=_e,sN=pr,iN=z,oN=Ar,rN=Ht,ct)](t=!1){let r=super[ct](t);return r[z]=this[z],w(r,ei,u(this,ei)),w(r,ri,u(this,ri)),w(r,as,u(this,as)),r}[vu](){this[z]===null&&(w(this,ei,null),w(this,ri,null),w(this,as,ti.none))}};ei=new WeakMap,ri=new WeakMap,as=new WeakMap;var Ah=class extends G{get dateTime(){return this.getAttribute("dateTime")||""}set dateTime(e){this.setAttribute("dateTime",e)}};var wh=class extends G{get text(){let e="";for(let t of this[q])t[U]===L.textNode&&(e+=t.textContent);return e}set text(e){this.textContent=e}get innerHTML(){return this.getHTML()}set innerHTML(e){this.textContent=e}};var Eh=class extends G{get oncuechange(){return P.getEventListener(this,"oncuechange")}set oncuechange(e){this[c].set("oncuechange",e)}get kind(){let e=this.getAttribute("kind");return e===null?Yn.subtitles:Yn[e]?e:Yn.metadata}set kind(e){Yn[e]||(e=Yn.metadata),this.setAttribute("kind",e)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[T].location.href).href}catch{return this.getAttribute("src")||""}}set src(e){this.setAttribute("src",e)}get srclang(){return this.getAttribute("srclang")||""}set srclang(e){this.setAttribute("srclang",e)}get label(){return this.getAttribute("label")||""}set label(e){this.setAttribute("label",e)}get default(){return this.hasAttribute("default")}set default(e){e?this.setAttribute("default",""):this.removeAttribute("default")}get readyState(){return 0}get track(){let e=new this[m].TextTrack(h);return e[ui]=this.kind,e[wl]=this.label,e[py]=this.srclang,e[Me]=this.default?"showing":"disabled",e[_c]=this.id,e}};var xh=class extends G{};var vh=class extends G{};var Th=class extends qn{};var lN,aN,mN,Ch=class extends(mN=Ds,aN=U,lN=Zr,mN){constructor(){super(...arguments);s(this,aN,L.processingInstructionNode);s(this,lN,"")}get target(){return this[Zr]}};var yN,uN,pN,hN,Im=class extends(hN=bt,pN=Mr,uN=Be,yN=U,hN){constructor(){super(...arguments);s(this,pN,null);s(this,uN,this);s(this,yN,L.documentFragmentNode)}get children(){if(!this[Mr]){let t=this[dt];this[Mr]=new Ne(h,()=>t)}return this[Mr]}get childElementCount(){return this[dt].length}get firstElementChild(){return this[dt][0]??null}get lastElementChild(){let t=this[dt];return t[t.length-1]??null}get textContent(){let t="";for(let r of this[q])(r[U]===L.elementNode||r[U]===L.textNode)&&(t+=r.textContent);return t}set textContent(t){let r=this[q];for(;r.length;)this.removeChild(r[0]);t&&this.appendChild(this[T].createTextNode(t))}append(...t){me.append(this,...t)}prepend(...t){me.prepend(this,...t)}replaceChildren(...t){me.replaceChildren(this,...t)}querySelectorAll(t){return yt.querySelectorAll(this,t)}querySelector(t){return yt.querySelector(this,t)}getElementById(t){return me.getElementById(this,t)}};var cN,dN,bN,gN,fN,SN,PN,AN,Nh=class extends Im{constructor(){super(...arguments);s(this,AN,[]);s(this,PN,"open");s(this,SN,null);s(this,fN,!1);s(this,gN,!1);s(this,bN,!1);s(this,dN,"named");s(this,cN,new Map)}get onslotchange(){return this[c].get("onslotchange")??null}set onslotchange(t){this[c].set("onslotchange",t)}get mode(){return this[Me]}get host(){return this[Ma]}get clonable(){return this[Oa]}get delegatesFocus(){return this[yy]}get serializable(){return this[an]}get slotAssignment(){return this[vs]}get fullscreenElement(){return null}get pictureInPictureElement(){return null}get pointerLockElement(){return null}get innerHTML(){let t=new Oi,r="";for(let o of this[q])r+=t.serializeToString(o);return r}set innerHTML(t){let r=this[q];for(;r.length;)this.removeChild(r[0]);new Kr(this[m]).parse(t,this)}get adoptedStyleSheets(){return this[gl]}set adoptedStyleSheets(t){this[gl]=t}get activeElement(){let t=this[T][qe],r=t?.getRootNode();if(!r||r===this[T])return null;if(r===this)return t;for(;r&&r!==this;)t=r.host,r=t.getRootNode();return t}getAnimations(){return[]}setHTMLUnsafe(t){let r=this[q];for(;r.length;)this.removeChild(r[0]);new Kr(this[m]).parse(t,this)}toString(){return this.innerHTML}[(AN=gl,PN=Me,SN=Ma,fN=Oa,gN=yy,bN=an,dN=vs,cN=c,ct)](t=!1){let r=super[ct](t);return r[Me]=this[Me],r[Oa]=this[Oa],r[yy]=this[yy],r[an]=this[an],r[vs]=this[vs],r}};var wN,EN,HS,ot=class extends(EN=xr,wN=xe,EN){constructor(){super(...arguments);s(this,wN,null);E(this,HS,null)}get onabort(){return P.getEventListener(this,"onabort")}set onabort(t){this[c].set("onabort",t)}get onanimationend(){return P.getEventListener(this,"onanimationend")}set onanimationend(t){this[c].set("onanimationend",t)}get onanimationiteration(){return P.getEventListener(this,"onanimationiteration")}set onanimationiteration(t){this[c].set("onanimationiteration",t)}get onanimationstart(){return P.getEventListener(this,"onanimationstart")}set onanimationstart(t){this[c].set("onanimationstart",t)}get onauxclick(){return P.getEventListener(this,"onauxclick")}set onauxclick(t){this[c].set("onauxclick",t)}get onblur(){return P.getEventListener(this,"onblur")}set onblur(t){this[c].set("onblur",t)}get oncancel(){return P.getEventListener(this,"oncancel")}set oncancel(t){this[c].set("oncancel",t)}get oncanplay(){return P.getEventListener(this,"oncanplay")}set oncanplay(t){this[c].set("oncanplay",t)}get oncanplaythrough(){return P.getEventListener(this,"oncanplaythrough")}set oncanplaythrough(t){this[c].set("oncanplaythrough",t)}get onchange(){return P.getEventListener(this,"onchange")}set onchange(t){this[c].set("onchange",t)}get onclick(){return P.getEventListener(this,"onclick")}set onclick(t){this[c].set("onclick",t)}get onclose(){return P.getEventListener(this,"onclose")}set onclose(t){this[c].set("onclose",t)}get oncontextmenu(){return P.getEventListener(this,"oncontextmenu")}set oncontextmenu(t){this[c].set("oncontextmenu",t)}get oncopy(){return P.getEventListener(this,"oncopy")}set oncopy(t){this[c].set("oncopy",t)}get oncuechange(){return P.getEventListener(this,"oncuechange")}set oncuechange(t){this[c].set("oncuechange",t)}get oncut(){return P.getEventListener(this,"oncut")}set oncut(t){this[c].set("oncut",t)}get ondblclick(){return P.getEventListener(this,"ondblclick")}set ondblclick(t){this[c].set("ondblclick",t)}get ondrag(){return P.getEventListener(this,"ondrag")}set ondrag(t){this[c].set("ondrag",t)}get ondragend(){return P.getEventListener(this,"ondragend")}set ondragend(t){this[c].set("ondragend",t)}get ondragenter(){return P.getEventListener(this,"ondragenter")}set ondragenter(t){this[c].set("ondragenter",t)}get ondragleave(){return P.getEventListener(this,"ondragleave")}set ondragleave(t){this[c].set("ondragleave",t)}get ondragover(){return P.getEventListener(this,"ondragover")}set ondragover(t){this[c].set("ondragover",t)}get ondragstart(){return P.getEventListener(this,"ondragstart")}set ondragstart(t){this[c].set("ondragstart",t)}get ondrop(){return P.getEventListener(this,"ondrop")}set ondrop(t){this[c].set("ondrop",t)}get ondurationchange(){return P.getEventListener(this,"ondurationchange")}set ondurationchange(t){this[c].set("ondurationchange",t)}get onemptied(){return P.getEventListener(this,"onemptied")}set onemptied(t){this[c].set("onemptied",t)}get onended(){return P.getEventListener(this,"onended")}set onended(t){this[c].set("onended",t)}get onerror(){return P.getEventListener(this,"onerror")}set onerror(t){this[c].set("onerror",t)}get onfocus(){return P.getEventListener(this,"onfocus")}set onfocus(t){this[c].set("onfocus",t)}get onformdata(){return P.getEventListener(this,"onformdata")}set onformdata(t){this[c].set("onformdata",t)}get ongotpointercapture(){return P.getEventListener(this,"ongotpointercapture")}set ongotpointercapture(t){this[c].set("ongotpointercapture",t)}get oninput(){return P.getEventListener(this,"oninput")}set oninput(t){this[c].set("oninput",t)}get oninvalid(){return P.getEventListener(this,"oninvalid")}set oninvalid(t){this[c].set("oninvalid",t)}get onkeydown(){return P.getEventListener(this,"onkeydown")}set onkeydown(t){this[c].set("onkeydown",t)}get onkeypress(){return P.getEventListener(this,"onkeypress")}set onkeypress(t){this[c].set("onkeypress",t)}get onkeyup(){return P.getEventListener(this,"onkeyup")}set onkeyup(t){this[c].set("onkeyup",t)}get onload(){return P.getEventListener(this,"onload")}set onload(t){this[c].set("onload",t)}get onloadeddata(){return P.getEventListener(this,"onloadeddata")}set onloadeddata(t){this[c].set("onloadeddata",t)}get onloadedmetadata(){return P.getEventListener(this,"onloadedmetadata")}set onloadedmetadata(t){this[c].set("onloadedmetadata",t)}get onloadstart(){return P.getEventListener(this,"onloadstart")}set onloadstart(t){this[c].set("onloadstart",t)}get onlostpointercapture(){return P.getEventListener(this,"onlostpointercapture")}set onlostpointercapture(t){this[c].set("onlostpointercapture",t)}get onmousedown(){return P.getEventListener(this,"onmousedown")}set onmousedown(t){this[c].set("onmousedown",t)}get onmouseenter(){return P.getEventListener(this,"onmouseenter")}set onmouseenter(t){this[c].set("onmouseenter",t)}get onmouseleave(){return P.getEventListener(this,"onmouseleave")}set onmouseleave(t){this[c].set("onmouseleave",t)}get onmousemove(){return P.getEventListener(this,"onmousemove")}set onmousemove(t){this[c].set("onmousemove",t)}get onmouseout(){return P.getEventListener(this,"onmouseout")}set onmouseout(t){this[c].set("onmouseout",t)}get onmouseover(){return P.getEventListener(this,"onmouseover")}set onmouseover(t){this[c].set("onmouseover",t)}get onmouseup(){return P.getEventListener(this,"onmouseup")}set onmouseup(t){this[c].set("onmouseup",t)}get onmousewheel(){return P.getEventListener(this,"onmousewheel")}set onmousewheel(t){this[c].set("onmousewheel",t)}get onpaste(){return P.getEventListener(this,"onpaste")}set onpaste(t){this[c].set("onpaste",t)}get onpause(){return P.getEventListener(this,"onpause")}set onpause(t){this[c].set("onpause",t)}get onplay(){return P.getEventListener(this,"onplay")}set onplay(t){this[c].set("onplay",t)}get onplaying(){return P.getEventListener(this,"onplaying")}set onplaying(t){this[c].set("onplaying",t)}get onpointercancel(){return P.getEventListener(this,"onpointercancel")}set onpointercancel(t){this[c].set("onpointercancel",t)}get onpointerdown(){return P.getEventListener(this,"onpointerdown")}set onpointerdown(t){this[c].set("onpointerdown",t)}get onpointerenter(){return P.getEventListener(this,"onpointerenter")}set onpointerenter(t){this[c].set("onpointerenter",t)}get onpointerleave(){return P.getEventListener(this,"onpointerleave")}set onpointerleave(t){this[c].set("onpointerleave",t)}get onpointermove(){return P.getEventListener(this,"onpointermove")}set onpointermove(t){this[c].set("onpointermove",t)}get onpointerout(){return P.getEventListener(this,"onpointerout")}set onpointerout(t){this[c].set("onpointerout",t)}get onpointerover(){return P.getEventListener(this,"onpointerover")}set onpointerover(t){this[c].set("onpointerover",t)}get onpointerrawupdate(){return P.getEventListener(this,"onpointerrawupdate")}set onpointerrawupdate(t){this[c].set("onpointerrawupdate",t)}get onpointerup(){return P.getEventListener(this,"onpointerup")}set onpointerup(t){this[c].set("onpointerup",t)}get onprogress(){return P.getEventListener(this,"onprogress")}set onprogress(t){this[c].set("onprogress",t)}get onratechange(){return P.getEventListener(this,"onratechange")}set onratechange(t){this[c].set("onratechange",t)}get onreset(){return P.getEventListener(this,"onreset")}set onreset(t){this[c].set("onreset",t)}get onresize(){return P.getEventListener(this,"onresize")}set onresize(t){this[c].set("onresize",t)}get onscroll(){return P.getEventListener(this,"onscroll")}set onscroll(t){this[c].set("onscroll",t)}get onscrollend(){return P.getEventListener(this,"onscrollend")}set onscrollend(t){this[c].set("onscrollend",t)}get onscrollsnapchange(){return P.getEventListener(this,"onscrollsnapchange")}set onscrollsnapchange(t){this[c].set("onscrollsnapchange",t)}get onscrollsnapchanging(){return P.getEventListener(this,"onscrollsnapchanging")}set onscrollsnapchanging(t){this[c].set("onscrollsnapchanging",t)}get onsecuritypolicyviolation(){return P.getEventListener(this,"onsecuritypolicyviolation")}set onsecuritypolicyviolation(t){this[c].set("onsecuritypolicyviolation",t)}get onseeked(){return P.getEventListener(this,"onseeked")}set onseeked(t){this[c].set("onseeked",t)}get onseeking(){return P.getEventListener(this,"onseeking")}set onseeking(t){this[c].set("onseeking",t)}get onselect(){return P.getEventListener(this,"onselect")}set onselect(t){this[c].set("onselect",t)}get onselectionchange(){return P.getEventListener(this,"onselectionchange")}set onselectionchange(t){this[c].set("onselectionchange",t)}get onselectstart(){return P.getEventListener(this,"onselectstart")}set onselectstart(t){this[c].set("onselectstart",t)}get onslotchange(){return P.getEventListener(this,"onslotchange")}set onslotchange(t){this[c].set("onslotchange",t)}get onstalled(){return P.getEventListener(this,"onstalled")}set onstalled(t){this[c].set("onstalled",t)}get onsubmit(){return P.getEventListener(this,"onsubmit")}set onsubmit(t){this[c].set("onsubmit",t)}get onsuspend(){return P.getEventListener(this,"onsuspend")}set onsuspend(t){this[c].set("onsuspend",t)}get ontimeupdate(){return P.getEventListener(this,"ontimeupdate")}set ontimeupdate(t){this[c].set("ontimeupdate",t)}get ontoggle(){return P.getEventListener(this,"ontoggle")}set ontoggle(t){this[c].set("ontoggle",t)}get ontransitioncancel(){return P.getEventListener(this,"ontransitioncancel")}set ontransitioncancel(t){this[c].set("ontransitioncancel",t)}get ontransitionend(){return P.getEventListener(this,"ontransitionend")}set ontransitionend(t){this[c].set("ontransitionend",t)}get ontransitionrun(){return P.getEventListener(this,"ontransitionrun")}set ontransitionrun(t){this[c].set("ontransitionrun",t)}get ontransitionstart(){return P.getEventListener(this,"ontransitionstart")}set ontransitionstart(t){this[c].set("ontransitionstart",t)}get onvolumechange(){return P.getEventListener(this,"onvolumechange")}set onvolumechange(t){this[c].set("onvolumechange",t)}get onwaiting(){return P.getEventListener(this,"onwaiting")}set onwaiting(t){this[c].set("onwaiting",t)}get onwheel(){return P.getEventListener(this,"onwheel")}set onwheel(t){this[c].set("onwheel",t)}get ownerSVGElement(){let t=this[Y];for(;t;){if(t[nt]==="svg")return t;t=t[Y]}return null}get viewportElement(){return this.ownerSVGElement}get dataset(){return u(this,HS)??w(this,HS,new _y(h,this))}get style(){return this[xe]||(this[xe]=new go(h,this[m],{element:this})),this[xe]}get tabIndex(){let t=this.getAttribute("tabindex");return t!==null?Number(t):-1}set tabIndex(t){t===-1?this.removeAttribute("tabindex"):this.setAttribute("tabindex",String(t))}blur(){Kl.blur(this)}focus(){Kl.focus(this)}};HS=new WeakMap;var Lh=class{observe(){}unobserve(){}disconnect(){}};var ra=class extends Tt{constructor(){super(...arguments);s(this,"width",1024);s(this,"height",768);s(this,"availWidth",1024);s(this,"availHeight",768);s(this,"colorDepth",24);s(this,"pixelDepth",24);s(this,"onchange",null)}};var Mm=class extends ra{constructor(){super(...arguments);s(this,"availLeft",0);s(this,"availTop",0);s(this,"left",0);s(this,"top",0);s(this,"isPrimary",!0);s(this,"isInternal",!0);s(this,"devicePixelRatio",1);s(this,"label","")}};var Zy=class extends Tt{constructor(){super();s(this,"currentScreen");s(this,"screens");s(this,"oncurrentscreenchange",null);s(this,"onscreenschange",null);let t=new Mm;this.currentScreen=t,this.screens=[t]}};var Se=class{static compareBoundaryPointsPosition(e,t){if(e.node===t.node)return e.offset===t.offset?0:e.offset<t.offset?-1:1;if(St.isFollowing(e.node,t.node))return this.compareBoundaryPointsPosition(t,e)===-1?1:-1;if(St.isInclusiveAncestor(e.node,t.node)){let r=t.node;for(;r[Y]!==e.node;)r=r[Y];if(r[Y][q].indexOf(r)<e.offset)return 1}return-1}static validateBoundaryPoint(e){if(e.node[U]===L.documentTypeNode)throw new ae("DocumentType Node can't be used as boundary point.",v.invalidNodeTypeError);if(e.offset>St.getNodeLength(e.node))throw new ae("Offset out of bound.",v.indexSizeError)}static isContained(e,t){return this.compareBoundaryPointsPosition({node:e,offset:0},{node:t.startContainer,offset:t.startOffset})===1&&this.compareBoundaryPointsPosition({node:e,offset:St.getNodeLength(e)},{node:t.endContainer,offset:t.endOffset})===-1}static isPartiallyContained(e,t){return St.isInclusiveAncestor(e,t.startContainer)&&!St.isInclusiveAncestor(e,t.endContainer)||!St.isInclusiveAncestor(e,t.startContainer)&&St.isInclusiveAncestor(e,t.endContainer)}};var VA;(function(l){l[l.forwards=1]="forwards",l[l.backwards=-1]="backwards",l[l.directionless=0]="directionless"})(VA||(VA={}));var ms=VA;var Ae,Qt,zn,ys,Xn,Rm=class{constructor(e){E(this,ys);E(this,Ae);E(this,Qt,null);E(this,zn,ms.directionless);w(this,Ae,e)}get rangeCount(){return u(this,Qt)?1:0}get isCollapsed(){return u(this,Qt)===null||u(this,Qt).collapsed}get type(){if(u(this,Qt)){if(u(this,Qt).collapsed)return"Caret"}else return"None";return"Range"}get anchorNode(){return u(this,Qt)?u(this,zn)===ms.forwards?u(this,Qt).startContainer:u(this,Qt).endContainer:null}get anchorOffset(){return u(this,Qt)?u(this,zn)===ms.forwards?u(this,Qt).startOffset:u(this,Qt).endOffset:0}get baseNode(){return this.anchorNode}get baseOffset(){return this.anchorOffset}get focusNode(){return u(this,Qt)?u(this,zn)===ms.forwards?u(this,Qt).endContainer:u(this,Qt).startContainer:null}get focusOffset(){return u(this,Qt)?u(this,zn)===ms.forwards?u(this,Qt).endOffset:u(this,Qt).startOffset:0}get extentNode(){return this.focusNode}get extentOffset(){return this.focusOffset}addRange(e){if(!e)throw new(u(this,Ae))[m].TypeError("Failed to execute addRange on Selection. Parameter 1 is not of type Range.");!u(this,Qt)&&e[T]===u(this,Ae)&&D(this,ys,Xn).call(this,e)}getRangeAt(e){if(!u(this,Qt)||e!==0)throw new(u(this,Ae))[m].DOMException("Invalid range index.",v.indexSizeError);return u(this,Qt)}removeRange(e){if(u(this,Qt)!==e)throw new(u(this,Ae))[m].DOMException("Invalid range.",v.notFoundError);D(this,ys,Xn).call(this,null)}removeAllRanges(){D(this,ys,Xn).call(this,null)}empty(){this.removeAllRanges()}collapse(e,t){if(e===null){this.removeAllRanges();return}if(e[U]===L.documentTypeNode)throw new(u(this,Ae))[m].DOMException("DocumentType Node can't be used as boundary point.",v.invalidNodeTypeError);if(t>St.getNodeLength(e))throw new(u(this,Ae))[m].DOMException("Invalid range index.",v.indexSizeError);if(e!==u(this,Ae)&&e[T]!==u(this,Ae))return;let r=new(u(this,Ae))[m].Range;r[_].node=e,r[_].offset=t,r[j].node=e,r[j].offset=t,D(this,ys,Xn).call(this,r)}setPosition(e,t){this.collapse(e,t)}collapseToEnd(){if(u(this,Qt)===null)throw new(u(this,Ae))[m].DOMException("There is no selection to collapse.",v.invalidStateError);let{node:e,offset:t}=u(this,Qt)[j],r=new(u(this,Ae))[m].Range;r[_].node=e,r[_].offset=t,r[j].node=e,r[j].offset=t,D(this,ys,Xn).call(this,r)}collapseToStart(){if(!u(this,Qt))throw new(u(this,Ae))[m].DOMException("There is no selection to collapse.",v.invalidStateError);let{node:e,offset:t}=u(this,Qt)[_],r=new(u(this,Ae))[m].Range;r[_].node=e,r[_].offset=t,r[j].node=e,r[j].offset=t,D(this,ys,Xn).call(this,r)}containsNode(e,t=!1){if(!u(this,Qt)||e[T]!==u(this,Ae))return!1;let r=Se.compareBoundaryPointsPosition(u(this,Qt)[_],{node:e,offset:0})===-1,o=Se.compareBoundaryPointsPosition(u(this,Qt)[j],{node:e,offset:St.getNodeLength(e)})===1;return t?r||o:r&&o}deleteFromDocument(){u(this,Qt)&&u(this,Qt).deleteContents()}extend(e,t){if(e!==u(this,Ae)&&e[T]!==u(this,Ae))return;if(!u(this,Qt))throw new(u(this,Ae))[m].DOMException("There is no selection to extend.",v.invalidStateError);let r=this.anchorNode,o=this.anchorOffset,i=new(u(this,Ae))[m].Range;i[_].node=e,i[_].offset=0,i[j].node=e,i[j].offset=0,e[T]!==u(this,Qt)[T]?(i[_].offset=t,i[j].offset=t):Se.compareBoundaryPointsPosition({node:r,offset:o},{node:e,offset:t})<=0?(i[_].node=r,i[_].offset=o,i[j].node=e,i[j].offset=t):(i[_].node=e,i[_].offset=t,i[j].node=r,i[j].offset=o),D(this,ys,Xn).call(this,i),w(this,zn,Se.compareBoundaryPointsPosition({node:e,offset:t},{node:r,offset:o})===-1?ms.backwards:ms.forwards)}selectAllChildren(e){if(e[U]===L.documentTypeNode)throw new(u(this,Ae))[m].DOMException("DocumentType Node can't be used as boundary point.",v.invalidNodeTypeError);if(e!==u(this,Ae)&&e[T]!==u(this,Ae))return;let t=e[q].length,r=new(u(this,Ae))[m].Range;r[_].node=e,r[_].offset=0,r[j].node=e,r[j].offset=t,D(this,ys,Xn).call(this,r)}setBaseAndExtent(e,t,r,o){if(t>St.getNodeLength(e)||o>St.getNodeLength(r))throw new(u(this,Ae))[m].DOMException("Invalid anchor or focus offset.",v.indexSizeError);if(e!==u(this,Ae)&&e[T]!==u(this,Ae)||r!==u(this,Ae)&&r[T]!==u(this,Ae))return;let i={node:e,offset:t},n={node:r,offset:o},a=new(u(this,Ae))[m].Range;Se.compareBoundaryPointsPosition(i,n)===-1?(a[_]=i,a[j]=n):(a[_]=n,a[j]=i),D(this,ys,Xn).call(this,a),w(this,zn,Se.compareBoundaryPointsPosition(n,i)===-1?ms.backwards:ms.forwards)}toString(){return u(this,Qt)?u(this,Qt).toString():""}};Ae=new WeakMap,Qt=new WeakMap,zn=new WeakMap,ys=new WeakSet,Xn=function(e){let t=u(this,Qt);w(this,Qt,e),w(this,zn,e===null?ms.directionless:ms.forwards),t!==u(this,Qt)&&u(this,Ae).dispatchEvent(new k("selectionchange"))};var xN;xN=Xt;var UA=class UA{constructor(){s(this,xN,{});let e=this[Xt],t=new Te(this,[UA]);return new Proxy(this,{get:(r,o)=>{if(o in r||typeof o=="symbol")return t.bind(o),r[o];if(o in e)return e[o]},set(r,o,i){return t.bind(o),o in r||typeof o=="symbol"||(e[String(o)]=String(i)),!0},deleteProperty(r,o){return o in e?(delete e[String(o)],!0):!1},ownKeys(){return Object.keys(e)},has(r,o){return o in r||o in e},defineProperty(r,o,i){return t.preventBinding(o),o in r?(Object.defineProperty(r,o,i),!0):i.value!==void 0?(e[String(o)]=String(i.value),!0):!1},getOwnPropertyDescriptor(r,o){if(o in r)return;let i=e[String(o)];if(i!==void 0)return{value:i,writable:!0,enumerable:!0,configurable:!0}}})}get length(){return Object.keys(this[Xt]).length}key(e){let t=Object.keys(this[Xt])[e];return t!==void 0?t:null}setItem(e,t){this[Xt][e]=String(t)}getItem(e){return this[Xt][e]!==void 0?this[Xt][e]:null}removeItem(e){delete this[Xt][e]}clear(){let e=this[Xt];for(let t of Object.keys(e))delete e[t]}},Fm=UA;var Pe={FILTER_ACCEPT:1,FILTER_REJECT:2,FILTER_SKIP:3,SHOW_ALL:-1,SHOW_ELEMENT:1,SHOW_ATTRIBUTE:2,SHOW_TEXT:4,SHOW_CDATA_SECTION:8,SHOW_ENTITY_REFERENCE:16,SHOW_ENTITY:32,SHOW_PROCESSING_INSTRUCTION:64,SHOW_COMMENT:128,SHOW_DOCUMENT:256,SHOW_DOCUMENT_TYPE:512,SHOW_DOCUMENT_FRAGMENT:1024,SHOW_NOTATION:2048};var vN={1:Pe.SHOW_ELEMENT,2:Pe.SHOW_ATTRIBUTE,3:Pe.SHOW_TEXT,4:Pe.SHOW_CDATA_SECTION,5:Pe.SHOW_ENTITY_REFERENCE,6:Pe.SHOW_PROCESSING_INSTRUCTION,7:Pe.SHOW_PROCESSING_INSTRUCTION,8:Pe.SHOW_COMMENT,9:Pe.SHOW_DOCUMENT,10:Pe.SHOW_DOCUMENT_TYPE,11:Pe.SHOW_DOCUMENT_FRAGMENT,12:Pe.SHOW_NOTATION};var tu;(function(l){l.first="first",l.last="last"})(tu||(tu={}));var eu;(function(l){l.next="next",l.previous="previous"})(eu||(eu={}));var Ur,Bm,GA,_A,Jn=class{constructor(e,t=-1,r=null){E(this,Bm);s(this,"root");s(this,"whatToShow",-1);s(this,"filter",null);E(this,Ur,null);if(!(e instanceof bt))throw new ae("Parameter 1 was not of type Node.");this.root=e,this.whatToShow=t,this.filter=r,w(this,Ur,e)}get currentNode(){return u(this,Ur)}set currentNode(e){if(!(e instanceof bt))throw new this.root[m].TypeError("Failed to set the 'currentNode' property on 'TreeWalker': Failed to convert value to 'Node'.");w(this,Ur,e)}parentNode(){let e=u(this,Ur);for(;e!==null&&e!==this.root;)if(e=e.parentNode,e!==null&&this[Li](e)===Pe.FILTER_ACCEPT)return w(this,Ur,e),u(this,Ur);return null}firstChild(){return D(this,Bm,GA).call(this,tu.first)}lastChild(){return D(this,Bm,GA).call(this,tu.last)}nextSibling(){return D(this,Bm,_A).call(this,eu.next)}previousSibling(){return D(this,Bm,_A).call(this,eu.previous)}previousNode(){let e=u(this,Ur);for(;e!==this.root;){let t=e?.previousSibling||null;for(;t!==null;){let r=t,o=this[Li](r);for(;o!==Pe.FILTER_REJECT&&r[q].length;)r=r.lastChild,o=this[Li](r);if(o===Pe.FILTER_ACCEPT)return w(this,Ur,r),r;t=r.previousSibling}if(e===this.root||e.parentNode===null)return null;if(e=e.parentNode,this[Li](e)===Pe.FILTER_ACCEPT)return w(this,Ur,e),e}return null}nextNode(){let e=u(this,Ur),t=Pe.FILTER_ACCEPT;if(e===null)return null;for(;;){for(;t!==Pe.FILTER_REJECT&&e[q].length;)if(e=e.firstChild,t=this[Li](e),t===Pe.FILTER_ACCEPT)return w(this,Ur,e),e;for(;e!==null;){if(e===this.root)return null;let r=e.nextSibling;if(r!==null){e=r;break}e=e.parentNode}if(e===null)return null;if(t=this[Li](e),t===Pe.FILTER_ACCEPT)return w(this,Ur,e),e}}[Li](e){let t=vN[e.nodeType];return t&&(this.whatToShow&t)==0?Pe.FILTER_SKIP:typeof this.filter=="function"?this.filter(e):this.filter?this.filter.acceptNode(e):Pe.FILTER_ACCEPT}};Ur=new WeakMap,Bm=new WeakSet,GA=function(e){let t=u(this,Ur);if(!t)return null;for(t=e===tu.first?t.firstChild:t.lastChild;t!==null;){let r=this[Li](t);if(r===Pe.FILTER_ACCEPT)return w(this,Ur,t),t;if(r===Pe.FILTER_SKIP){let o=e===tu.first?t.firstChild:t.lastChild;if(o!==null){t=o;continue}}for(;t!==null;){let o=e===tu.first?t.nextSibling:t.previousSibling;if(o!==null){t=o;break}let i=t.parentNode;if(i===null||i===this.root||i===u(this,Ur))return null;t=i}}return null},_A=function(e){let t=u(this,Ur);if(!t||t===this.root)return null;for(;;){let r=e===eu.next?t.nextSibling:t.previousSibling;for(;r!==null;){let o=r,i=this[Li](o);if(i===Pe.FILTER_ACCEPT)return w(this,Ur,o),o;r=e===eu.next?o.firstChild:o.lastChild,(i===Pe.FILTER_REJECT||r===null)&&(r=e===eu.next?o.nextSibling:o.previousSibling)}if(t=t.parentNode,t===null||t===this.root||this[Li](t)===Pe.FILTER_ACCEPT)return null}};var ru,ag,mg,Dm,yg,Om=class{constructor(e,t=-1,r=null){E(this,ru);E(this,ag,-1);E(this,mg,null);E(this,Dm);E(this,yg,!0);w(this,ru,e),w(this,ag,t),w(this,mg,r),w(this,Dm,new Jn(e,t,r))}get root(){return u(this,ru)}get whatToShow(){return u(this,ag)}get filter(){return u(this,mg)}nextNode(){return u(this,yg)?(w(this,yg,!1),u(this,Dm)[Li](u(this,ru))!==Pe.FILTER_ACCEPT?u(this,Dm).nextNode():u(this,ru)):u(this,Dm).nextNode()}previousNode(){return u(this,Dm).previousNode()}};ru=new WeakMap,ag=new WeakMap,mg=new WeakMap,Dm=new WeakMap,yg=new WeakMap;var Gi,ug,TN,CN,NN,kh=class{constructor(){E(this,Gi)}serializeToString(e){return D(this,Gi,ug).call(this,e)}};Gi=new WeakSet,ug=function(e,t=null,r=null){switch(e[U]){case L.elementNode:let o=e,i=o[nt],n="",a=D(this,Gi,TN).call(this,o,r),y=o[tt]===Yt.html?o[Ot]:D(this,Gi,CN).call(this,o,a),p=`${y?y+":":""}${i}`,d=y?t:o[tt]||t,b=D(this,Gi,NN).call(this,o,y,t,r),f=d===Yt.html&&i==="template"?e.content[q]:e[q];for(let qt of f)n+=D(this,Gi,ug).call(this,qt,d,a);return!n&&d===Yt.html&&br[i.toLowerCase()]?.contentModel===H.noDescendants?`<${p}${b} />`:!n&&d!==Yt.html?`<${p}${b}/>`:`<${p}${b}>${n}</${p}>`;case bt.DOCUMENT_FRAGMENT_NODE:case bt.DOCUMENT_NODE:let S="";e[Ga]&&(S+=D(this,Gi,ug).call(this,e[Ga],t,new Map(r)));for(let qt of e[q])S+=D(this,Gi,ug).call(this,qt,t,new Map(r));return S;case L.commentNode:return`<!--${e.textContent}-->`;case L.processingInstructionNode:return`<?${e.target} ${e.textContent}?>`;case L.textNode:let M=e.parentElement;return M&&br[M[nt]]?.contentModel===H.rawText?e.textContent:We.encodeTextContent(e.textContent);case L.documentTypeNode:let N=e,K=N.publicId?" PUBLIC":N.systemId?" SYSTEM":"",mt=N.publicId?` "${N.publicId}"`:"",Nt=N.systemId?` "${N.systemId}"`:"";return`<!DOCTYPE ${N.name}${K}${mt}${Nt}>`}return""},TN=function(e,t){let r=new Map(t);for(let o of e[ft][$].values())o[tt]===Yt.xmlns&&o[Ot]&&r.set(o[z],o[nt]);return r},CN=function(e,t){if(e[Ot]&&!e[tt])throw new Error("Element has a prefix but no namespace.");if(!e[Ot]||!t)return null;let r=t.get(e[tt]);if(r)return r;let o=new Set(t.values());if(o.has(e[Ot])){let i=1;for(;o.has("n"+i);)i++;return t.set(e[tt],"n"+i),"n"+i}return t.set(e[tt],e[Ot]),e[Ot]},NN=function(e,t,r,o){let i="",n="",a=new Set;for(let y of e[ft][$].values())y[tt]===Yt.xmlns?t&&y[nt]===t&&e[tt]?(n+=` xmlns:${t}="${We.encodeXMLAttributeValue(e[tt])}"`,a.add(e[tt])):!t&&y[st]==="xmlns"&&e[tt]?(n+=` xmlns="${We.encodeXMLAttributeValue(e[tt])}"`,a.add(e[tt])):(n+=` ${y[st]}="${We.encodeXMLAttributeValue(y[z])}"`,a.add(y[z])):i+=` ${y[st]}="${We.encodeXMLAttributeValue(y[z])}"`;return e[tt]&&r!==e[tt]&&!a.has(e[tt])&&(t&&!o?.has(e[tt])?n+=` xmlns:${t}="${We.encodeXMLAttributeValue(e[tt])}"`:!t&&r!==e[tt]&&(n+=` xmlns="${We.encodeXMLAttributeValue(e[tt])}"`)),n+i};import{Script as nG}from"vm";var LN=new nG(`
136
+ `||r===" ";)t--,r=e[t];return r||";"}removeMultilineComments(e){let t=new RegExp(JU),r,o=0,i=0,n="";for(;r=t.exec(e);)o===0&&(n+=e.substring(i,r.index)),r[0]==="/*"?o++:r[0]==="*/"&&o>0&&o--,i=t.lastIndex;return n+=e.substring(i),n}reset(){this.count={comment:0,singleLineComment:0,parentheses:0,curlyBraces:0,squareBrackets:0,regExp:0,regExpSquareBrackets:0,escapeTemplateString:0,simpleString:0,doubleString:0},this.debugCount={comment:[],singleLineComment:[],parentheses:[],curlyBraces:[],squareBrackets:[],regExp:[],regExpSquareBrackets:[],escapeTemplateString:[],simpleString:[],doubleString:[]},this.templateString=[]}};var rG={imports:[],execute:async()=>{}},dC,tg,eg,rg,Cm,zy,Jl,Nm,og,NA;dC=m;var LA=class LA{constructor(e){E(this,og);s(this,"url");s(this,dC);E(this,tg);E(this,eg);E(this,rg,!1);E(this,Cm,null);E(this,zy,null);E(this,Jl,null);E(this,Nm);this[m]=e.window,this.url=e.url,w(this,tg,e.source),w(this,eg,e.sourceURL||null),w(this,Nm,e.factory)}async evaluate(e=[],t=null){if(u(this,Jl))return e.includes(this.url.href)?(t&&u(this,Jl).push(t),u(this,zy)):new Promise(S=>{u(this,Jl).push(S)});if(u(this,zy))return u(this,zy);let r=D(this,og,NA).call(this),o=[],i=this[m];if(!new rt(i).getBrowserFrame())return{};let a={};w(this,zy,a),w(this,Jl,[]);for(let S of r.imports)o.push(u(this,Nm).getModule(S.url,{with:{type:S.type}}));let y=new Map,p=null,d=()=>{p&&p()};if(o.length){let S=await Promise.all(o),M=[...e,this.url.href];for(let N of S)if(N instanceof LA){let K=await N.evaluate(M,d);y.set(N.url.href,K)}else{let K=await N.evaluate();y.set(N.url.href,K)}}let b=this.url.href;r.execute({dispatchError:i[ce].bind(i),dynamicImport:u(this,Nm).importModule.bind(u(this,Nm)),importMeta:{url:b,resolve:S=>new eG(S,b).href},imports:y,exports:a,addCircularImportResolver:S=>p=S});let f=u(this,Jl);w(this,Jl,null);for(let S of f)S(a);return a}async preload(){if(u(this,rg))return;w(this,rg,!0);let e=D(this,og,NA).call(this),t=[],r=this[m];if(!new rt(r).getBrowserFrame())return;for(let a of e.imports)t.push(u(this,Nm).getModule(a.url,{with:{type:a.type}}));let i=await Promise.all(t),n=[];for(let a of i)n.push(a.preload());await Promise.all(n)}};tg=new WeakMap,eg=new WeakMap,rg=new WeakMap,Cm=new WeakMap,zy=new WeakMap,Jl=new WeakMap,Nm=new WeakMap,og=new WeakSet,NA=function(){if(u(this,Cm))return u(this,Cm);w(this,Cm,rG);let e=new Zb(this[m]);return w(this,Cm,e.compile(this.url.href,u(this,tg),u(this,eg))),u(this,Cm)};var Zl=LA;var Ui=class l{constructor(e,t){s(this,"window");s(this,"parentURL");this.window=e,this.parentURL=t}async getModule(e,t){let r=this.window,o=this.parentURL,i=_s.getURL(r,o,e),n=i.href,a=t?.with?.type||"esm";if(a!=="esm"&&a!=="css"&&a!=="json")throw new r.TypeError(`Failed to import module "${i}" from "${o}": Unknown type "${a}"`);let y=r[kn][a].get(n);if(y)return y instanceof Kp?(await new Promise((K,mt)=>{y.addResolveListener(K,mt)}),r[kn][a].get(n)):y;if(!new rt(r).getBrowserFrame())throw new r.TypeError(`Failed to import module "${i}" from "${o}": Window is closed and is no longer attached to a frame`);let d=new Kp({window:r,url:i}),b=r[yi],f=b.startTask();r[kn][a].set(n,d);let S=new Xl(r),M;try{M=await S.fetch(i,"module")}catch(K){throw b.endTask(f),d.resolve(K),K}b.endTask(f);let N;switch(a){case"json":N=new Xy({window:r,url:i,source:M.content});break;case"css":N=new Qy({window:r,url:i,source:M.content});break;case"esm":N=new Zl({window:r,url:i,source:M.content,sourceURL:M.virtualServerFile||n,factory:new l(r,i)});break}return r[kn][a].set(n,N),d.resolve(),N}async importModule(e,t){let r=new rt(this.window).getBrowserFrame();if(!r)return{};let o=r[gt],i=o?.startTask(),a=await(await this.getModule(e,t)).evaluate();return o.endTask(i),a}};var Lm,ig=class{constructor(){s(this,"integrityMetadata",null);s(this,"response",null);s(this,"error",null);E(this,Lm,null)}onResponseAvailable(){return new Promise((e,t)=>{w(this,Lm,{resolve:e,reject:t})})}responseAvailable(e,t){this.response=t,this.error=e,u(this,Lm)&&(e?u(this,Lm).reject(e):t?u(this,Lm).resolve(t):u(this,Lm).reject(new Error("Response is null")))}};Lm=new WeakMap;var bC,gC,fC,sg,Hs,kA,IA,MA,jp=class extends G{constructor(){super(...arguments);E(this,Hs);s(this,fC,null);s(this,gC,!1);s(this,bC,null);E(this,sg,null)}get onerror(){return P.getEventListener(this,"onerror")}set onerror(t){this[c].set("onerror",t)}get onload(){return P.getEventListener(this,"onload")}set onload(t){this[c].set("onload",t)}get sheet(){return this[Je]}get relList(){return this[Fo]||(this[Fo]=new So(h,this,"rel",["stylesheet","modulepreload","preload"])),this[Fo]}set relList(t){this.setAttribute("rel",t)}get as(){return this.getAttribute("as")||""}set as(t){this.setAttribute("as",t)}get crossOrigin(){return this.getAttribute("crossorigin")||""}set crossOrigin(t){this.setAttribute("crossorigin",t)}get href(){if(!this.hasAttribute("href"))return"";try{return new URL(this.getAttribute("href"),this[T].location.href).href}catch{return this.getAttribute("href")}}set href(t){this.setAttribute("href",t)}get hreflang(){return this.getAttribute("hreflang")||""}set hreflang(t){this.setAttribute("hreflang",t)}get media(){return this.getAttribute("media")||""}set media(t){this.setAttribute("media",t)}get referrerPolicy(){return this.getAttribute("referrerPolicy")||""}set referrerPolicy(t){this.setAttribute("referrerPolicy",t)}get rel(){return this.getAttribute("rel")||""}set rel(t){this.setAttribute("rel",t)}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}[(fC=Je,gC=Ml,bC=Fo,Rr)](){super[Rr]();let t=this.getAttribute("rel"),r=this.getAttribute("href");if(t&&r)switch(t){case"stylesheet":D(this,Hs,MA).call(this,r);break;case"modulepreload":D(this,Hs,kA).call(this,r);break;case"preload":D(this,Hs,IA).call(this,r);break}}[$e](t,r){if(super[$e](t,r),t[st]==="rel"||t[st]==="href"){let o=this.getAttribute("rel"),i=this.getAttribute("href");if(o&&i)switch(o){case"stylesheet":D(this,Hs,MA).call(this,i);break;case"modulepreload":D(this,Hs,kA).call(this,i);break;case"preload":D(this,Hs,IA).call(this,i);break}}}};sg=new WeakMap,Hs=new WeakSet,kA=async function(t){let r=this[m],o=new rt(r).getBrowserFrame(),i=new rt(r).getSettings();if(!o||!i||!this[it]||i.disableJavaScriptFileLoading||!i.enableJavaScriptEvaluation)return;let n=new Ui(r,r.location);if(i.disableErrorCapturing||i.errorCapture!==ue.tryAndCatch)await(await n.getModule(t)).preload();else try{await(await n.getModule(t)).preload()}catch(a){o.page.console.error(a),r[ce](a);return}},IA=async function(t){let r=this[m],o=new rt(r).getBrowserFrame(),i=this.as;if(!o||!this[it]||i!=="script"&&i!=="style"&&i!=="fetch")return;let n=o.page.context.browser.settings;if(i==="script"&&(n.disableJavaScriptFileLoading||!n.enableJavaScriptEvaluation)||i==="style"&&n.disableCSSFileLoading)return;let a=new URL(t,r.location.href).href,y=_n.getKey({url:a,destination:i,mode:"cors",credentialsMode:this.crossOrigin==="use-credentials"?"include":"same-origin"});if(r.document[co].has(y))return;let p=new ig;r.document[co].set(y,p);let d=new zo({browserFrame:o,window:r,url:a,disableSameOriginPolicy:i==="script"||i==="style",disablePreload:!0,init:{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin"}});try{let b=await d.send();b[Mt]||await b.buffer(),p.responseAvailable(null,b)}catch(b){p.responseAvailable(b,null),r.document[co].delete(y),o.page.console.error(`Failed to preload resource "${a}": ${b.message}`)}},MA=async function(t){let r=this[m],o=new rt(r).getBrowserFrame();if(!o||t===null)return;let i=o.page.context.browser.settings;if(this[Ml]||!this[it])return;let n;try{n=new URL(t,r.location.href).href}catch{return}if(u(this,sg)===n)return;if(i&&i.disableCSSFileLoading){if(i.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new k("load"));else{let f=new r.DOMException(`Failed to load external stylesheet "${n}". CSS file loading is disabled.`,v.notSupportedError);o.page.console.error(f),this.dispatchEvent(new k("error"))}return}let a=new Xl(r),y=r[yi];w(this,sg,n);let p=y.startTask(),d=null,b=null;try{d=await a.fetch(n,"style",{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin"})}catch(f){b=f}if(y.endTask(p),b)o.page.console.error(b),this.dispatchEvent(new k("error"));else{let f=new this[T][m].CSSStyleSheet;f.replaceSync(d.content),this[Je]=f;let S=this[T];if(S){for(let M of S[$i])M.result=null;S[$i]=[]}this.dispatchEvent(new k("load"))}};var SC,PC,Qp=class extends(PC=G,SC=Dc,PC){constructor(){super(...arguments);s(this,SC,null)}get areas(){return this[Dc]||(this[Dc]=me.getElementsByTagName(this,"area")),this[Dc]}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}};var ta=class extends Array{constructor(e){if(super(),e!==1&&e!==h)throw new TypeError("Illegal constructor")}getCueById(e){for(let t of this)if(t.id===e)return t;return null}};var $p=class extends G{};var Xp=class extends G{get content(){return this.getAttribute("content")||""}set content(e){this.setAttribute("content",e)}get httpEquiv(){return this.getAttribute("http-equiv")||""}set httpEquiv(e){this.setAttribute("http-equiv",e)}get name(){return this.getAttribute("name")||""}set name(e){this.setAttribute("name",e)}get scheme(){return this.getAttribute("scheme")||""}set scheme(e){this.setAttribute("scheme",e)}};var zp=class extends G{get high(){if(!this.hasAttribute("high"))return 1;let e=parseFloat(this.getAttribute("high")||"");return isNaN(e)||e>1?1:e<0?0:e}set high(e){if(e=typeof e!="number"?Number(e):e,isNaN(e))throw new this[m].TypeError("Failed to set the 'high' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("high",String(e))}get low(){if(!this.hasAttribute("low"))return 0;let e=parseFloat(this.getAttribute("low")||"");return isNaN(e)||e<0?0:e>1?1:e}set low(e){if(e=typeof e!="number"?Number(e):e,isNaN(e))throw new this[m].TypeError("Failed to set the 'low' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("low",String(e))}get max(){if(!this.hasAttribute("max"))return 1;let e=parseFloat(this.getAttribute("max")||"");return isNaN(e)||e>1?1:e<0?0:e}set max(e){if(e=typeof e!="number"?Number(e):e,isNaN(e))throw new this[m].TypeError("Failed to set the 'max' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("max",String(e))}get min(){if(!this.hasAttribute("min"))return 0;let e=parseFloat(this.getAttribute("min")||"");return isNaN(e)||e<0?0:e>1?1:e}set min(e){if(e=typeof e!="number"?Number(e):e,isNaN(e))throw new this[m].TypeError("Failed to set the 'min' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("min",String(e))}get optimum(){if(!this.hasAttribute("optimum"))return .5;let e=parseFloat(this.getAttribute("optimum")||"");return isNaN(e)?.5:e<0?0:e>1?1:e}set optimum(e){if(e=typeof e!="number"?Number(e):e,isNaN(e))throw new this[m].TypeError("Failed to set the 'optimum' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("optimum",String(e))}get value(){if(!this.hasAttribute("value"))return 0;let e=parseFloat(this.getAttribute("value")||"");return isNaN(e)||e<0?0:e>1?1:e}set value(e){if(e=typeof e!="number"?Number(e):e,isNaN(e))throw new this[m].TypeError("Failed to set the 'value' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("value",String(e))}get labels(){return Ao.getAssociatedLabelElements(this)}};var Jp=class extends G{get cite(){if(!this.hasAttribute("cite"))return"";try{return new URL(this.getAttribute("cite"),this[T].location.href).href}catch{return this.getAttribute("cite")}}set cite(e){this.setAttribute("cite",e)}get dateTime(){return this.getAttribute("datetime")||""}set dateTime(e){this.setAttribute("datetime",e)}};var Zp=class extends G{get reversed(){return this.getAttribute("reversed")!==null}set reversed(e){e?this.setAttribute("reversed",""):this.removeAttribute("reversed")}get start(){if(!this.hasAttribute("start"))return 1;let e=Number(this.getAttribute("start")||"");return isNaN(e)?1:e}set start(e){typeof e!="number"&&(e=Number(e)),isNaN(e)&&(e=0),this.setAttribute("start",String(e))}get type(){return this.getAttribute("type")||""}set type(e){this.setAttribute("type",e)}};var AC,wC,EC,xC,th=class extends(xC=G,EC=Ht,wC=_e,AC=pr,xC){constructor(){super(...arguments);s(this,EC,null);s(this,wC,"");s(this,AC,new Po(this))}get contentDocument(){return null}get contentWindow(){return null}get data(){if(!this.hasAttribute("data"))return"";try{return new URL(this.getAttribute("data"),this[T].location.href).href}catch{return this.getAttribute("data")}}set data(t){this.setAttribute("data",t)}get form(){if(this[Ht])return this[Ht];let t=this.getAttribute("form");return!t||!this[it]?null:this[T].getElementById(t)}get height(){return this.getAttribute("height")||""}set height(t){this.setAttribute("height",t)}get width(){return this.getAttribute("width")||""}set width(t){this.setAttribute("width",t)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}get validationMessage(){return this[_e]}get validity(){return this[pr]}get willValidate(){return!1}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let r=Number(t);return isNaN(r)?0:r}return 0}set tabIndex(t){super.tabIndex=t}checkValidity(){return!0}reportValidity(){return this.checkValidity()}setCustomValidity(t){this[_e]=String(t)}};var eh=class extends G{get label(){return this.getAttribute("label")||""}set label(e){e?this.setAttribute("label",e):this.removeAttribute("label")}get disabled(){return this.getAttribute("disabled")!==null}set disabled(e){e?this.setAttribute("disabled",""):this.removeAttribute("disabled")}};var vC,TC,CC,$n=class extends G{constructor(){super(...arguments);s(this,CC,!1);s(this,TC,!1);s(this,vC,null)}get text(){return this.innerText}set text(t){this.innerText=t}get index(){return this[je]?yt.querySelectorAll(this[je],"option")[$].indexOf(this):0}get form(){return this[je]?.form||null}get selected(){return this[Jr]}set selected(t){let r=this[je];this[va]=!0,this[Jr]=!!t,r&&r[La](this[Jr]?this:null)}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}get value(){return this.getAttribute("value")??this.textContent}set value(t){this.setAttribute("value",t)}[(CC=Jr,TC=va,vC=je,$e)](t,r){if(super[$e](t,r),!this[va]&&t[st]==="selected"&&r?.[z]!==t[z]){let o=this[je];this[Jr]=!0,o&&o[La](this)}}[Yr](t){if(super[Yr](t),t&&!this[va]&&t[st]==="selected"){let r=this[je];this[Jr]=!1,r&&r[La]()}}[Io](){super[Io](),this[je]&&this[je][La]()}[en](){this[je]&&this[je][La](),super[en]()}};var NC,LC,kC,IC,MC,rh=class extends(MC=G,IC=Ht,kC=_e,LC=pr,NC=Vo,MC){constructor(){super(...arguments);s(this,IC,null);s(this,kC,"");s(this,LC,new Po(this));s(this,NC,"")}get defaultValue(){return this[Vo]}set defaultValue(t){this[Vo]=t}get form(){if(this[Ht])return this[Ht];let t=this.getAttribute("form");return!t||!this[it]?null:this[T].getElementById(t)}get htmlFor(){return this.getAttribute("for")||""}set htmlFor(t){this.setAttribute("for",t)}get labels(){return Ao.getAssociatedLabelElements(this)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get value(){return this.textContent||""}set value(t){this.textContent=t}get type(){return"output"}get validationMessage(){return this[_e]}get validity(){return this[pr]}get willValidate(){return!1}checkValidity(){return!0}reportValidity(){return this.checkValidity()}setCustomValidity(t){this[_e]=String(t)}};var oh=class extends G{};var ih=class extends G{};var sh=class extends G{};var nh=class extends G{};var lh=class extends G{get max(){if(!this.hasAttribute("max"))return 1;let e=parseFloat(this.getAttribute("max")||"");return isNaN(e)||e<0?1:e}set max(e){if(e=typeof e!="number"?Number(e):e,isNaN(e))throw new this[m].TypeError("Failed to set the 'max' property on 'HTMLProgressElement': The provided double value is non-finite.");this.setAttribute("max",e<0?"1":String(e))}get value(){if(!this.hasAttribute("value"))return 0;let e=parseFloat(this.getAttribute("value")||"");return isNaN(e)||e<0?0:e}set value(e){if(e=typeof e!="number"?Number(e):e,isNaN(e))throw new this[m].TypeError("Failed to set the 'value' property on 'HTMLProgressElement': The provided double value is non-finite.");this.setAttribute("value",e<0?"0":String(e))}get position(){return this.hasAttribute("value")?this.value/this.max:-1}get labels(){return Ao.getAssociatedLabelElements(this)}};var ah=class extends G{get cite(){if(!this.hasAttribute("cite"))return"";try{return new URL(this.getAttribute("cite"),this[T].location.href).href}catch{return this.getAttribute("cite")}}set cite(e){this.setAttribute("cite",e)}};var oG=/import\s*\(([^)]+)\)/gm,iG=/(\/)|(\(|\))|({|})|(\[|\])|(\${)|(`)|(')|(")|(\n)/gm,sG=/['"`(){}\s;=><\[\]+-,:&]/,nG=/['"`({};=><\[+-,:&]/,mh=class{constructor(e){s(this,"window");s(this,"count",{comment:0,singleLineComment:0,parentheses:0,curlyBraces:0,squareBrackets:0,regExp:0,regExpSquareBrackets:0,escapeTemplateString:0,simpleString:0,doubleString:0});s(this,"templateString",[]);this.window=e}compile(e,t){let r=new rt(this.window).getSettings();if(!r)return{execute:()=>{}};let o=new RegExp(oG),i=this.count,n="(function anonymous($happy_dom) {",a=null,y,p,d=0,b=-1;for(!r.disableErrorCapturing&&r.errorCapture===ue.tryAndCatch&&(n+="try {");a=o.exec(t);)y=t[a.index-1]||" ",p=t.substring(d,a.index),this.parseSyntax(p,d),b===-1&&(n+=p),a[1]&&i.simpleString===0&&i.doubleString===0&&i.comment===0&&i.singleLineComment===0&&i.regExp===0&&(this.templateString.length===0||this.templateString[0]>0)&&sG.test(y)?n+=`$happy_dom.dynamicImport(${a[1]})`:(n+=a[0],this.parseSyntax(a[0],a.index)),d=o.lastIndex;d===0?n+=t:n+=t.substring(d),!r.disableErrorCapturing&&r.errorCapture===ue.tryAndCatch&&(n+="} catch (error) { $happy_dom.dispatchError(error); }"),n+="})";try{return{execute:this.window[Ci](n,{filename:e})}}catch(f){if(f.message=`Failed to parse JavaScript in '${e}': ${f.message}`,r.disableErrorCapturing||r.errorCapture!==ue.tryAndCatch)throw f;return this.window[ce](f),{execute:()=>{}}}}parseSyntax(e,t){let r=new RegExp(iG),o=this.count,i=null,n,a;for(t++;i=r.exec(e);)n=e[i.index-1]||" ",a=n==="\\"&&e[i.index-2]!=="\\",i[1]?o.simpleString===0&&o.doubleString===0&&o.singleLineComment===0&&o.regExpSquareBrackets===0&&(this.templateString.length===0||this.templateString[0]>0)&&(o.comment===1?n==="*"&&(o.comment=0):o.regExp===0?e[i.index+1]==="*"?o.comment=1:e[i.index+1]==="/"?o.singleLineComment=1:nG.test(this.getNonSpacePrecedingToken(e,i.index))&&(o.regExp=1):a||(o.regExp=0)):i[2]?o.simpleString===0&&o.doubleString===0&&o.regExp===0&&o.comment===0&&o.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(i[2]==="("?o.parentheses++:i[2]===")"&&o.parentheses>0&&o.parentheses--):i[3]?o.simpleString===0&&o.doubleString===0&&o.regExp===0&&o.comment===0&&o.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(i[3]==="{"?(this.templateString.length&&this.templateString[0]++,o.curlyBraces++):i[3]==="}"&&(this.templateString.length&&this.templateString[0]>0&&this.templateString[0]--,o.curlyBraces>0&&o.curlyBraces--)):i[4]?o.simpleString===0&&o.doubleString===0&&o.comment===0&&o.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(o.regExp===1?a||(i[4]==="["&&o.regExpSquareBrackets===0?o.regExpSquareBrackets=1:i[4]==="]"&&o.regExpSquareBrackets===1&&(o.regExpSquareBrackets=0)):i[4]==="["?o.squareBrackets++:i[4]==="]"&&o.squareBrackets>0&&o.squareBrackets--):i[5]?o.simpleString===0&&o.doubleString===0&&o.comment===0&&o.singleLineComment===0&&o.regExp===0&&!a&&this.templateString[0]===0&&(this.templateString[0]=1,o.curlyBraces++):i[6]?o.simpleString===0&&o.doubleString===0&&o.comment===0&&o.singleLineComment===0&&o.regExp===0&&!a&&(this.templateString?.[0]===0?this.templateString.shift():this.templateString.unshift(0)):i[7]?o.doubleString===0&&o.comment===0&&o.singleLineComment===0&&o.regExp===0&&!a&&(this.templateString.length===0||this.templateString[0]>0)&&(o.simpleString===0?o.simpleString=1:o.simpleString=0):i[8]?o.simpleString===0&&o.comment===0&&o.singleLineComment===0&&o.regExp===0&&!a&&(this.templateString.length===0||this.templateString[0]>0)&&(o.doubleString===0?o.doubleString=1:o.doubleString=0):i[9]&&(o.singleLineComment=0)}getNonSpacePrecedingToken(e,t){t--;let r=e[t];for(;r===" "||r===`
137
+ `||r===" ";)t--,r=e[t];return r||";"}};var RC,FC,ng,Ei,BC,DC,OC,RA,FA,yh=class extends G{constructor(){super(...arguments);E(this,Ei);s(this,FC,!1);s(this,RC,null);E(this,ng,null)}get onerror(){return P.getEventListener(this,"onerror")}set onerror(t){this[c].set("onerror",t)}get onload(){return P.getEventListener(this,"onload")}set onload(t){this[c].set("onload",t)}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}get blocking(){return this[sb]||(this[sb]=new So(h,this,"blocking")),this[sb]}set blocking(t){this.setAttribute("blocking",t)}get crossOrigin(){return this.getAttribute("crossorigin")||""}set crossOrigin(t){this.setAttribute("crossorigin",t)}get fetchPriority(){let t=this.getAttribute("fetchpriority");switch(t){case"high":case"low":case"normal":return t;default:return"auto"}}set fetchPriority(t){this.setAttribute("fetchpriority",t)}get noModule(){return this.getAttribute("nomodule")!==null}set noModule(t){t?this.setAttribute("nomodule",""):this.removeAttribute("nomodule")}get integrity(){return this.getAttribute("integrity")||""}set integrity(t){this.setAttribute("integrity",t)}get referrerPolicy(){let t=this.getAttribute("referrerpolicy");switch(t){case"no-referrer":case"no-referrer-when-downgrade":case"same-origin":case"origin":case"strict-origin":case"origin-when-cross-origin":case"strict-origin-when-cross-origin":case"unsafe-url":return t;default:return""}}set referrerPolicy(t){this.setAttribute("referrerpolicy",t)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[T].location.href).href}catch{return this.getAttribute("src")}}set src(t){this.setAttribute("src",t)}get charset(){return this.getAttribute("charset")||""}set charset(t){this.setAttribute("charset",t)}get lang(){return this.getAttribute("lang")||""}set lang(t){this.setAttribute("lang",t)}get async(){return this.getAttribute("async")!==null}set async(t){t?this.setAttribute("async",""):this.removeAttribute("async")}get defer(){return this.getAttribute("defer")!==null}set defer(t){t?this.setAttribute("defer",""):this.removeAttribute("defer")}get text(){return this.textContent}set text(t){this.textContent=t}[(FC=Ml,RC=sb,ct)](t=!1){return super[ct](t)}[Rr](){let t=new rt(this[m]).getSettings();if(super[Rr](),this[Ml])return;let r=this.getAttribute("src");if(r!==null)this.getAttribute("type")==="module"?D(this,Ei,RA).call(this,r):D(this,Ei,FA).call(this,r);else if(t&&t.enableJavaScriptEvaluation){let o=this.textContent,i=this.getAttribute("type");o&&(i==="module"?D(this,Ei,BC).call(this,o):i==="importmap"?D(this,Ei,DC).call(this,o):(i===null||i==="application/x-ecmascript"||i==="application/x-javascript"||i.startsWith("text/javascript"))&&D(this,Ei,OC).call(this,o))}}[$e](t,r){super[$e](t,r),t[st]==="src"&&t[z]!==null&&this[it]&&(this.getAttribute("type")==="module"?D(this,Ei,RA).call(this,t[z]):D(this,Ei,FA).call(this,t[z]))}static supports(t){switch(t){case"classic":case"module":case"importmap":return!0;default:return!1}}};ng=new WeakMap,Ei=new WeakSet,BC=function(t){let r=this[T].location,o=this[m],i=new rt(o).getSettings();if(!new rt(o).getBrowserFrame()||!i||!i.enableJavaScriptEvaluation)return;this[T][vi]=this;let a=new Ui(o,r),y=new Zl({window:o,url:r,source:t,factory:a});i.disableErrorCapturing||i.errorCapture!==ue.tryAndCatch?y.evaluate():y.evaluate().catch(p=>{o[ce](p)}),this[T][vi]=null,this.dispatchEvent(new k("load"))},DC=async function(t){let r=this[m],o=new rt(r).getSettings();if(!new rt(r).getBrowserFrame()||!o||r[gy]||!o.enableJavaScriptEvaluation)return;let n;if(o.disableErrorCapturing||o.errorCapture!==ue.tryAndCatch)n=JSON.parse(t);else try{n=JSON.parse(t)}catch(a){r[ce](a);return}if(n.imports||n.scopes){let a={imports:[],scopes:[]};if(n.imports)for(let y of Object.keys(n.imports))a.imports.push({from:y,to:n.imports[y]});if(n.scopes)for(let y of Object.keys(n.scopes)){let p={scope:y,rules:[]};for(let d of Object.keys(n.scopes[y])){let b=n.scopes[y][d];p.rules.push({from:d,to:b})}a.scopes.push(p)}r[gy]=a}},OC=function(t){let r=this[m];if(!new rt(r).getSettings())return;this[T][vi]=this;let n=new mh(r).compile(r.location.href,t),a=new Ui(r,r.location);n.execute({dynamicImport:a.importModule.bind(a),dispatchError:r[ce].bind(r)}),this[T][vi]=null},RA=async function(t){let r=this[m],o=new rt(r).getBrowserFrame(),i=new rt(r).getSettings();if(!o||!i||!t||!this[it]||this.getAttribute("type")!=="module")return;if(i&&(i.disableJavaScriptFileLoading||!i.enableJavaScriptEvaluation)){if(i.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new k("load"));else{let a=new r.DOMException(`Failed to load module "${t}". JavaScript file loading is disabled.`,v.notSupportedError);o.page.console.error(a),this.dispatchEvent(new k("error"))}return}let n=new Ui(r,r.location);if(i.disableErrorCapturing||i.errorCapture!==ue.tryAndCatch)await(await n.getModule(t)).evaluate();else try{await(await n.getModule(t)).evaluate()}catch(a){o.page.console.error(a),this.dispatchEvent(new k("error"));return}this.dispatchEvent(new k("load"))},FA=async function(t){let r=this[m],o=new rt(r).getBrowserFrame();if(!o)return;let i=o.page.context.browser.settings,n=this.getAttribute("type");if(!t||!this[it]||n!==null&&n!=="application/x-ecmascript"&&n!=="application/x-javascript"&&!n.startsWith("text/javascript"))return;let a;try{a=new URL(t,r.location.href)}catch{return}let y=a.toString();if(u(this,ng)===y)return;if(i&&(i.disableJavaScriptFileLoading||!i.enableJavaScriptEvaluation)){if(i.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new k("load"));else{let N=new r.DOMException(`Failed to load script "${a}". JavaScript file loading is disabled.`,v.notSupportedError);o.page.console.error(N),this.dispatchEvent(new k("error"))}return}w(this,ng,y);let p=new Xl(r),d=this.getAttribute("async")!==null||this.getAttribute("defer")!==null,b=null;if(d){let N=r[yi],K=N.startTask();try{b=await p.fetch(y,"script",{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin",referrerPolicy:this.referrerPolicy})}catch(mt){o.page.console.error(mt),this.dispatchEvent(new k("error")),N.endTask(K);return}N.endTask(K)}else try{b=p.fetchSync(y,"script",{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin",referrerPolicy:this.referrerPolicy})}catch(N){o.page.console.error(N),this.dispatchEvent(new k("error"));return}this[T][vi]=this;let S=new mh(r).compile(b.virtualServerFile||y,b.content),M=new Ui(r,r.location);S.execute({dynamicImport:M.importModule.bind(M),dispatchError:r[ce].bind(r)}),this[T][vi]=null,this.dispatchEvent(new k("load"))};var Jy=class extends Ne{constructor(e,t){super(e,()=>yt.querySelectorAll(t,"option")[$]),this[Lt]=t}get selectedIndex(){return this[Lt].selectedIndex}set selectedIndex(e){this[Lt].selectedIndex=e}add(e,t){this[Lt].add(e,t)}remove(e){this[Lt].remove(e)}};var VC,UC,GC,_C,HC,WC,GS,YC,BA=class BA extends G{constructor(){super();E(this,GS);s(this,WC,"");s(this,HC,new Po(this));s(this,_C,null);s(this,GC,null);s(this,UC,-1);s(this,VC);let t=new Te(this,[BA,G,xr,bt,Tt]),r=new Proxy(this,{get:(o,i)=>{if(i in o||typeof i=="symbol")return t.bind(i),o[i];let n=Number(i);if(!isNaN(n))return yt.querySelectorAll(o,"option")[$][n]},set(o,i,n){if(t.bind(i),typeof i=="symbol")return o[i]=n,!0;let a=Number(i);if(isNaN(a))return o[i]=n,!0;if(!n||!(n instanceof $n))throw new o[m].Error(`TypeError: Failed to set an indexed property [${a}] on 'HTMLSelectElement': parameter 2 is not of type 'HTMLOptionElement'.`);let y=yt.querySelectorAll(o,"option")[$],p=o[q];for(;p.length;)o[Hr](p[0]);for(let d=0;d<=a;d++)d===a?o[vt](n):y[d]?o[vt](y[d]):o[vt](o[T].createElement("option"));return!0},deleteProperty(o,i){if(typeof i=="symbol")return delete o[i],!0;let n=Number(i);return isNaN(n)&&delete o[i],!0},ownKeys(o){return Object.keys(yt.querySelectorAll(o,"option")[$])},has(o,i){if(i in o)return!0;if(typeof i=="symbol")return!1;let n=Number(i);return isNaN(n)?!1:!!yt.querySelectorAll(o,"option")[$][n]},defineProperty(o,i,n){t.preventBinding(i);let a=Number(i);if(isNaN(a))return Object.defineProperty(o,i,n),!0;if(!n.value||!(n.value instanceof $n))throw new o[m].Error(`TypeError: Failed to set an indexed property [${a}] on 'HTMLSelectElement': parameter 2 is not of type 'HTMLOptionElement'.`);let y=yt.querySelectorAll(o,"option")[$],p=o[q];for(;p.length;)o[Hr](p[0]);for(let d=0;d<=a;d++)d===a?o[vt](n.value):y[d]?o[vt](y[d]):o[vt](o[T].createElement("option"));return!0},getOwnPropertyDescriptor(o,i){if(i in o)return Object.getOwnPropertyDescriptor(o,i);let n=Number(i);if(isNaN(n))return;let a=yt.querySelectorAll(o,"option")[$];if(a[n])return{value:a[n],writable:!0,enumerable:!0,configurable:!0}}});return this[Vt]=r,this[je]=r,r}get onchange(){return P.getEventListener(this,"onchange")}set onchange(t){this[c].set("onchange",t)}get oninput(){return P.getEventListener(this,"oninput")}set oninput(t){this[c].set("oninput",t)}get length(){return yt.querySelectorAll(this,"option")[$].length}get options(){return this[ln]||(this[ln]=new Jy(h,this)),this[ln]}get validationMessage(){return this[_e]}get validity(){return this[pr]}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}get multiple(){return this.getAttribute("multiple")!==null}set multiple(t){t?this.setAttribute("multiple",""):this.removeAttribute("multiple")}get autofocus(){return this.getAttribute("autofocus")!==null}set autofocus(t){t?this.setAttribute("autofocus",""):this.removeAttribute("autofocus")}get required(){return this.getAttribute("required")!==null}set required(t){t?this.setAttribute("required",""):this.removeAttribute("required")}get type(){return this.hasAttributeNS(null,"multiple")?"select-multiple":"select-one"}get value(){let t=yt.querySelectorAll(this,"option")[$];for(let r=0,o=t.length;r<o;r++){let i=t[r];if(i[Jr])return i.value}return""}set value(t){let r=yt.querySelectorAll(this,"option")[$];this[Ni]=-1;for(let o=0,i=r.length;o<i;o++){let n=r[o];n.value===t?(n[Jr]=!0,n[va]=!0,this[Ni]=o):n[Jr]=!1}}get selectedIndex(){return this[Ni]}set selectedIndex(t){if(t=Number(t),isNaN(t))return;let r=yt.querySelectorAll(this,"option")[$];if(this[Ni]=-1,typeof t=="number"&&!isNaN(t)){for(let i=0,n=r.length;i<n;i++)r[i][Jr]=!1;let o=r[t];o&&(o[Jr]=!0,o[va]=!0,this[Ni]=t)}}get selectedOptions(){return this[Fa]||(this[Fa]=new Ne(h,()=>{let t=yt.querySelectorAll(this,"option")[$];if(t[Fa])return t[Fa];let r=[];for(let o=0,i=t.length;o<i;o++){let n=t[o];n[Jr]&&r.push(n)}return t[Fa]=r,r})),this[Fa]}get labels(){return Ao.getAssociatedLabelElements(this)}get form(){if(this[Ht])return this[Ht];let t=this.getAttribute("form");return!t||!this[it]?null:this[T].getElementById(t)}get willValidate(){return this.type!=="hidden"&&this.type!=="reset"&&this.type!=="button"&&!this.disabled}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let r=Number(t);return isNaN(r)?0:r}return 0}set tabIndex(t){super.tabIndex=t}item(t){return this.options.item(t)}add(t,r){let o=yt.querySelectorAll(this,"option")[$];if(!r&&r!==0){let y=this[q];for(;y.length;)this[Hr](y[0]);for(let p of o)this[vt](p);this[vt](t);return}let i=this[m];if(typeof r!="number"){if(!(r instanceof $n))throw new i.DOMException("Failed to execute 'add' on 'HTMLFormElement': The node before which the new node is to be inserted before is not an 'HTMLOptionElement'.");r=o.indexOf(r)}if(!o[r])throw new i.DOMException("Failed to execute 'add' on 'HTMLFormElement': The node before which the new node is to be inserted before is not a child of this node.");let a=this[q];for(;a.length;)this[Hr](a[0]);for(let y=0,p=o.length;y<p;y++)y===r&&this[vt](t),this[vt](o[y])}remove(t){if(typeof t=="number"){let r=yt.querySelectorAll(this,"option")[$];if(!r[t])return;let o=this[q];for(;o.length;)this[Hr](o[0]);for(let i=0,n=r.length;i<n;i++)i!==t&&this[vt](r[i])}else super.remove()}setCustomValidity(t){this[_e]=String(t)}checkValidity(){let t=this.disabled||this[pr].valid;return t||this.dispatchEvent(new k("invalid",{bubbles:!0,cancelable:!0})),t}reportValidity(){return this.checkValidity()}[(WC=_e,HC=pr,_C=ln,GC=Fa,UC=Ni,VC=Vt,La)](t){let r=this.hasAttribute("multiple"),o=yt.querySelectorAll(this,"option")[$],i=[];if(t&&(this[Ni]=-1),!r)for(let a=0,y=o.length;a<y;a++){let p=o[a];t&&(p[Jr]=p===t,p===t&&(this[Ni]=a)),p[Jr]&&i.push(p)}if(D(this,GS,YC).call(this)===1&&!i.length){this[Ni]=-1;for(let a=0,y=o.length;a<y;a++){let p=o[a],d=p[Y],b=p.hasAttributeNS(null,"disabled");if(d&&d[U]===L.elementNode&&d[Z]==="OPTGROUP"&&d.hasAttributeNS(null,"disabled")&&(b=!0),!b){p[Jr]=!0,this[Ni]=a;break}}}else if(i.length>=2){this[Ni]=-1;for(let a=0,y=o.length;a<y;a++)o[a][Jr]=a===i.length-1,a===i.length-1&&(this[Ni]=a)}}};GS=new WeakSet,YC=function(){if(this.hasAttributeNS(null,"size")){let t=parseInt(this.getAttribute("size"));if(!isNaN(t)&&t>=0)return t}return this.hasAttributeNS(null,"multiple")?4:1};var uh=BA;var DA,qC,ea,lg,KC,_S=class extends G{constructor(){super(...arguments);E(this,ea);s(this,qC,[])}get onslotchange(){return P.getEventListener(this,"onslotchange")}set onslotchange(t){this[c].set("onslotchange",t)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}assign(...t){let r=this.getRootNode();if(r?.[vs]!=="manual")return;let o=r.host;if(o){for(let i of t)if(i instanceof bt&&o[q].includes(i)&&i[U]!==L.commentNode){if(i[Ji]){let n=i[Ji][mn].indexOf(i);n!==-1&&i[Ji][mn].splice(n,1)}i[Ji]=this,this[mn].push(i)}}}assignedNodes(t){return D(this,ea,lg).call(this,this.name,t)}assignedElements(t){return D(this,ea,KC).call(this,this.name,t)}[(qC=mn,ct)](t=!1){return super[ct](t)}[$e](t,r){if(super[$e](t,r),t[st]==="name"&&t[z]!==r?.[z]){let o=D(this,ea,lg).call(this,r?.[z]),i=D(this,ea,lg).call(this,t.value);if(o.length!==i.length)this.dispatchEvent(new k("slotchange",{bubbles:!0}));else for(let n=0,a=i.length;n<a;n++)if(o[n]!==i[n]){this.dispatchEvent(new k("slotchange",{bubbles:!0}));break}}}[Yr](t){super[Yr](t),t[st]==="name"&&t[z]&&D(this,ea,lg).call(this,t.value).length>0&&this.dispatchEvent(new k("slotchange",{bubbles:!0}))}};ea=new WeakSet,lg=function(t,r){let o=this.getRootNode();if(!o?.host)return[];if(o[vs]==="manual")return this[mn];let i=o.host,n=!!r?.flatten,a=[];for(let y of i[q]){let p=y.slot;if(t&&p&&p===t||!t&&!p)if(n&&y instanceof DA)for(let d of y.assignedNodes(r))a.push(d);else a.push(y)}return a},KC=function(t,r){let o=this.getRootNode();if(!o?.host)return[];if(o[vs]==="manual"){let y=[];for(let p of this[mn])p instanceof xr&&y.push(p);return y}let i=o.host,n=!!r?.flatten,a=[];for(let y of i[dt]){let p=y.slot;if(t&&p===t||!t&&!p)if(n&&y instanceof DA)for(let d of y.assignedElements(r))a.push(d);else a.push(y)}return a};DA=_S;var OA=_S;var ph=class extends G{get height(){let e=Number(this.getAttribute("height"));return isNaN(e)||e<0?0:e}set height(e){let t=Number(e);this.setAttribute("height",isNaN(t)||t<0?"0":String(t))}get width(){let e=Number(this.getAttribute("width"));return isNaN(e)||e<0?0:e}set width(e){let t=Number(e);this.setAttribute("width",isNaN(t)||t<0?"0":String(t))}get media(){return this.getAttribute("media")||""}set media(e){this.setAttribute("media",e)}get sizes(){return this.getAttribute("sizes")||""}set sizes(e){this.setAttribute("sizes",e)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[T].location.href).href}catch{return this.getAttribute("src")||""}}set src(e){this.setAttribute("src",e)}get srcset(){return this.getAttribute("srcset")||""}set srcset(e){this.setAttribute("srcset",e)}get type(){return this.getAttribute("type")||""}set type(e){this.setAttribute("type",e)}};var hh=class extends G{};var jC,QC,$C,ch=class extends G{constructor(){super(...arguments);s(this,$C,null);s(this,QC,this);s(this,jC,!1)}get media(){return this.getAttribute("media")||""}set media(t){this.setAttribute("media",t)}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}get disabled(){return this[Ua]}set disabled(t){this[Ua]=!!t}get sheet(){return this[it]?(this[Je]||(this[Je]=new this[T][m].CSSStyleSheet,this[Je].replaceSync(this.textContent)),this[Je]):null}[($C=Je,QC=Wr,jC=Ua,Fr)](){super[Fr](),this[Je]=null}[wt](){super[wt](),this[Je]=null}[Ba](){this[Je]&&this[Je].replaceSync(this.textContent)}};var km=class extends G{};var dh=class extends G{get abbr(){return this.getAttribute("abbr")||""}set abbr(e){this.setAttribute("abbr",e)}get cellIndex(){let e=this.parentNode;for(;e;){if(e[Z]==="TR")return yt.querySelectorAll(e,"td,th")[$].indexOf(this);e=e.parentNode}return-1}get colSpan(){let e=Number(this.getAttribute("colspan"));return isNaN(e)||e<1?1:e}set colSpan(e){let t=Number(e);this.setAttribute("colspan",isNaN(t)||t<1?"1":String(t))}get headers(){return this.getAttribute("headers")||""}set headers(e){this.setAttribute("headers",String(e))}get rowSpan(){let e=Number(this.getAttribute("rowspan"));return isNaN(e)||e<1?1:e}set rowSpan(e){let t=Number(e);this.setAttribute("rowspan",isNaN(t)||t<1?"1":String(t))}get scope(){return this.getAttribute("scope")||""}set scope(e){this.setAttribute("scope",e)}};var bh=class extends G{};var Ws=class extends G{insertRow(e=-1){typeof e!="number"&&(e=-1);let t=yt.querySelectorAll(this,"tr")[$];if(e<-1)throw new this[m].DOMException(`Failed to execute 'insertRow' on 'HTMLTableSectionElement': The index provided (${e}) is less than -1.`,v.indexSizeError);if(e>t.length)throw new this[m].DOMException(`Failed to execute 'insertRow' on 'HTMLTableSectionElement': The index provided (${e}) is greater than the number of rows (${t.length}).`,v.indexSizeError);let r=this[T].createElement("tr");return e===-1||e===t.length?this.appendChild(r):this.insertBefore(r,t[e]),r}deleteRow(e){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'deleteRow' on 'HTMLTableSectionElement': 1 argument required, but only 0 present.");if(typeof e!="number"&&(e=-1),e<-1)throw new this[m].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableSectionElement': The index provided (${e}) is less than -1.`,v.indexSizeError);let t=yt.querySelectorAll(this,"tr")[$];if(e>=t.length)throw new this[m].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableSectionElement': The index provided (${e}) is greater than the number of rows in the table (${t.length}).`,v.indexSizeError);e===-1&&(e=t.length-1),t[e].remove()}};var XC,zC,JC,gh=class extends(JC=G,zC=Vc,XC=Uc,JC){constructor(){super(...arguments);s(this,zC,null);s(this,XC,null)}get caption(){return yt.querySelector(this,"caption")}set caption(t){if(t){if(!(t instanceof km))throw new this[m].TypeError("Failed to set the 'caption' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableCaptionElement'.");this.caption?.remove(),this.insertBefore(t,this.firstChild)}else this.caption?.remove()}get tHead(){return yt.querySelector(this,"thead")}set tHead(t){if(t){if(!(t instanceof Ws))throw new this[m].TypeError("Failed to set the 'tHead' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableSectionElement'.");this.tHead?.remove();let r=!1;for(let o of this[dt])if(o[Z]!=="CAPTION"&&o[Z]!=="COLGROUP"){this.insertBefore(t,o),r=!0;break}r||this.appendChild(t)}else this.tHead?.remove()}get tFoot(){return yt.querySelector(this,"tfoot")}set tFoot(t){if(t){if(!(t instanceof Ws))throw new this[m].TypeError("Failed to set the 'tFoot' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableSectionElement'.");this.tFoot?.remove();let r=!1;for(let o of this[dt])if(o[Z]!=="CAPTION"&&o[Z]!=="COLGROUP"&&o[Z]!=="THEAD"){this.insertBefore(t,o),r=!0;break}r||this.appendChild(t)}else this.tFoot?.remove()}get rows(){return this[Vc]||(this[Vc]=new Ne(h,()=>yt.querySelectorAll(this,"tr")[$])),this[Vc]}get tBodies(){return this[Uc]||(this[Uc]=new Ne(h,()=>yt.querySelectorAll(this,"tbody")[$])),this[Uc]}createTHead(){let t=this.tHead;if(t)return t;let r=this[T].createElement("thead");return this.tHead=r,r}deleteTHead(){this.tHead=null}createTFoot(){let t=this.tFoot;if(t)return t;let r=this[T].createElement("tfoot");return this.tFoot=r,r}deleteTFoot(){this.tFoot=null}createTBody(){let t=yt.querySelectorAll(this,"tbody")[$],r=this[T].createElement("tbody");if(t.length>0){let o=t[t.length-1];return o.parentNode?.insertBefore(r,o.nextSibling),r}return this.appendChild(r),r}createCaption(){let t=this.caption;if(t)return t;let r=this[T].createElement("caption");return this.caption=r,r}deleteCaption(){this.caption=null}insertRow(t=-1){typeof t!="number"&&(t=-1);let r=yt.querySelectorAll(this,"tr")[$];if(t<-1)throw new this[m].DOMException(`Failed to execute 'insertRow' on 'HTMLTableElement': The index provided (${t}) is less than -1.`,v.indexSizeError);if(t>r.length)throw new this[m].DOMException(`Failed to execute 'insertRow' on 'HTMLTableElement': The index provided (${t}) is greater than the number of rows (${r.length}).`,v.indexSizeError);let o=this[T].createElement("tr");if(t===-1||t===r.length){let i=yt.querySelector(this,"tbody");if(i)i.appendChild(o);else{let n=this[T].createElement("tbody");n.appendChild(o),this.appendChild(n)}return o}return r[t].parentNode?.insertBefore(o,r[t]),o}deleteRow(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'deleteRow' on 'HTMLTableElement': 1 argument required, but only 0 present.");if(typeof t!="number"&&(t=-1),t<-1)throw new this[m].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableElement': The index provided (${t}) is less than -1.`,v.indexSizeError);let r=yt.querySelectorAll(this,"tr")[$];if(t>=r.length)throw new this[m].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableElement': The index provided (${t}) is greater than the number of rows in the table (${r.length}).`,v.indexSizeError);t===-1&&(t=r.length-1),r[t].remove()}};var ZC,tN,fh=class extends(tN=G,ZC=Oc,tN){constructor(){super(...arguments);s(this,ZC,null)}get cells(){return this[Oc]||(this[Oc]=new Ne(h,()=>yt.querySelectorAll(this,"td,th")[$])),this[Oc]}get rowIndex(){let t=this.parentNode;for(;t;){if(t[Z]==="TABLE")return yt.querySelectorAll(t,"tr")[$].indexOf(this);t=t.parentNode}return-1}get sectionRowIndex(){let t=this.parentNode;for(;t;){if(t instanceof Ws)return yt.querySelectorAll(t,"tr")[$].indexOf(this);t=t.parentNode}return-1}insertCell(t=-1){typeof t!="number"&&(t=-1);let r=yt.querySelectorAll(this,"td,th")[$];if(t<-1)throw new this[m].DOMException(`Failed to execute 'insertCell' on 'HTMLTableRowElement': The index provided (${t}) is less than -1.`,v.indexSizeError);if(t>r.length)throw new this[m].DOMException(`Failed to execute 'insertCell' on 'HTMLTableRowElement': The index provided (${t}) is greater than the number of cells (${r.length}).`,v.indexSizeError);let o=this[T].createElement("td");return t===-1||t===r.length?(this.appendChild(o),o):(r[t].parentNode?.insertBefore(o,r[t]),o)}deleteCell(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'deleteCell' on 'HTMLTableRowElement': 1 argument required, but only 0 present.");if(typeof t!="number"&&(t=-1),t<-1)throw new this[m].DOMException(`Failed to execute 'deleteCell' on 'HTMLTableRowElement': The index provided (${t}) is less than -1.`,v.indexSizeError);let r=yt.querySelectorAll(this,"td,th")[$];if(t>=r.length)throw new this[m].DOMException(`Failed to execute 'deleteCell' on 'HTMLTableRowElement': The index provided (${t}) is greater than the number of cells in the row (${r.length}).`,v.indexSizeError);t===-1&&(t=r.length-1),r[t].remove()}};var eN,Sh=class extends G{constructor(){super(...arguments);s(this,eN,this[T].createDocumentFragment())}get content(){return this[Bo]}get innerHTML(){return this.getHTML()}set innerHTML(t){let r=this[Bo],o=r[q];for(;o.length;)r.removeChild(o[0]);new Kr(this[m],{isTemplateDocumentFragment:!0}).parse(t,this[Bo])}get firstChild(){return this[Bo].firstChild}get lastChild(){return this[Bo].lastChild}getInnerHTML(t){let r=new Oi,o=this[Bo],i="";for(let n of o[q])i+=r.serializeToString(n);return i}getHTML(t){let r=new Oi,o=this[Bo],i="";for(let n of o[q])i+=r.serializeToString(n);return i}[(eN=Bo,vt)](t,r=!1){return this[Bo][vt](t,r)}[Hr](t){return this[Bo][Hr](t)}[uo](t,r,o=!1){return this[Bo][uo](t,r,o)}[Iu](t,r){return this[Bo][Iu](t,r)}[ct](t=!1){let r=super[ct](t);return r[Bo]=this[Bo].cloneNode(t),r}};var rN,oN,iN,sN,nN,ei,ri,as,Ph=class extends G{constructor(){super(...arguments);s(this,"type","textarea");s(this,nN,"");s(this,sN,new Po(this));s(this,iN,null);s(this,oN,this);s(this,rN,null);E(this,ei,null);E(this,ri,null);E(this,as,ti.none)}get oninput(){return P.getEventListener(this,"oninput")}set oninput(t){this[c].set("oninput",t)}get onselectionchange(){return P.getEventListener(this,"onselectionchange")}set onselectionchange(t){this[c].set("onselectionchange",t)}get validationMessage(){return this[_e]}get validity(){return this[pr]}get defaultValue(){return this.textContent}set defaultValue(t){this.textContent=t}get minLength(){let t=this.getAttribute("minlength");return t!==null?parseInt(t):-1}set minLength(t){this.setAttribute("minlength",String(t))}get maxLength(){let t=this.getAttribute("maxlength");return t!==null?parseInt(t):-1}set maxLength(t){this.setAttribute("maxlength",String(t))}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get placeholder(){return this.getAttribute("placeholder")||""}set placeholder(t){this.setAttribute("placeholder",t)}get inputMode(){return this.getAttribute("inputmode")||""}set inputMode(t){this.setAttribute("inputmode",t)}get cols(){return this.getAttribute("cols")||""}set cols(t){this.setAttribute("cols",t)}get rows(){return this.getAttribute("rows")||""}set rows(t){this.setAttribute("rows",t)}get autocomplete(){return this.getAttribute("autocomplete")||""}set autocomplete(t){this.setAttribute("autocomplete",t)}get readOnly(){return this.getAttribute("readonly")!==null}set readOnly(t){t?this.setAttribute("readonly",""):this.removeAttribute("readonly")}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}get autofocus(){return this.getAttribute("autofocus")!==null}set autofocus(t){t?this.setAttribute("autofocus",""):this.removeAttribute("autofocus")}get required(){return this.getAttribute("required")!==null}set required(t){t?this.setAttribute("required",""):this.removeAttribute("required")}get value(){return this[z]===null?this.textContent:this[z]}set value(t){let r=this[z];this[z]=t,r!==this[z]&&(w(this,ei,this[z].length),w(this,ri,this[z].length),w(this,as,ti.none))}get selectionStart(){return u(this,ei)===null?this.value.length:u(this,ei)}set selectionStart(t){this.setSelectionRange(t,Math.max(t,this.selectionEnd),u(this,as))}get selectionEnd(){return u(this,ri)===null?this.value.length:u(this,ri)}set selectionEnd(t){this.setSelectionRange(this.selectionStart,t,u(this,as))}get selectionDirection(){return u(this,as)}set selectionDirection(t){this.setSelectionRange(this.selectionStart,this.selectionEnd,t)}get form(){if(this[Ht])return this[Ht];let t=this.getAttribute("form");return!t||!this[it]?null:this[T].getElementById(t)}get textLength(){return this.value.length}get labels(){return Ao.getAssociatedLabelElements(this)}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let r=Number(t);return isNaN(r)?0:r}return 0}set tabIndex(t){super.tabIndex=t}select(){w(this,ei,0),w(this,ri,this.value.length),w(this,as,ti.none),this.dispatchEvent(new k("select",{bubbles:!0,cancelable:!1}))}setSelectionRange(t,r,o="none"){w(this,ri,Math.min(r,this.value.length)),w(this,ei,Math.min(t,this.selectionEnd)),w(this,as,o===ti.forward||o===ti.backward?o:ti.none),this.dispatchEvent(new k("select",{bubbles:!0,cancelable:!1}))}setRangeText(t,r=null,o=null,i=jn.preserve){if(r===null&&(r=u(this,ei)!==null?u(this,ei):0),o===null&&(o=u(this,ri)!==null?u(this,ri):this.value.length),r>o)throw new this[m].DOMException("The index is not in the allowed range.",v.invalidStateError);r=Math.min(r,this.value.length),o=Math.min(o,this.value.length);let n=this.value,a=u(this,ei)!==null?u(this,ei):0,y=u(this,ri)!==null?u(this,ri):this.value.length;this.value=n.slice(0,r)+t+n.slice(o);let p=r+this.value.length;switch(i){case jn.select:this.setSelectionRange(r,p);break;case jn.start:this.setSelectionRange(r,r);break;case jn.end:this.setSelectionRange(p,p);break;default:let d=t.length-(o-r);a>o?a+=d:a>r&&(a=r),y>o?y+=d:y>r&&(y=p),this.setSelectionRange(a,y);break}}setCustomValidity(t){this[_e]=String(t)}checkValidity(){let t=this.disabled||this.readOnly||this[pr].valid;return t||this.dispatchEvent(new k("invalid",{bubbles:!0,cancelable:!0})),t}reportValidity(){return this.checkValidity()}[(nN=_e,sN=pr,iN=z,oN=Ar,rN=Ht,ct)](t=!1){let r=super[ct](t);return r[z]=this[z],w(r,ei,u(this,ei)),w(r,ri,u(this,ri)),w(r,as,u(this,as)),r}[vu](){this[z]===null&&(w(this,ei,null),w(this,ri,null),w(this,as,ti.none))}};ei=new WeakMap,ri=new WeakMap,as=new WeakMap;var Ah=class extends G{get dateTime(){return this.getAttribute("dateTime")||""}set dateTime(e){this.setAttribute("dateTime",e)}};var wh=class extends G{get text(){let e="";for(let t of this[q])t[U]===L.textNode&&(e+=t.textContent);return e}set text(e){this.textContent=e}get innerHTML(){return this.getHTML()}set innerHTML(e){this.textContent=e}};var Eh=class extends G{get oncuechange(){return P.getEventListener(this,"oncuechange")}set oncuechange(e){this[c].set("oncuechange",e)}get kind(){let e=this.getAttribute("kind");return e===null?Yn.subtitles:Yn[e]?e:Yn.metadata}set kind(e){Yn[e]||(e=Yn.metadata),this.setAttribute("kind",e)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[T].location.href).href}catch{return this.getAttribute("src")||""}}set src(e){this.setAttribute("src",e)}get srclang(){return this.getAttribute("srclang")||""}set srclang(e){this.setAttribute("srclang",e)}get label(){return this.getAttribute("label")||""}set label(e){this.setAttribute("label",e)}get default(){return this.hasAttribute("default")}set default(e){e?this.setAttribute("default",""):this.removeAttribute("default")}get readyState(){return 0}get track(){let e=new this[m].TextTrack(h);return e[ui]=this.kind,e[wl]=this.label,e[py]=this.srclang,e[Me]=this.default?"showing":"disabled",e[_c]=this.id,e}};var xh=class extends G{};var vh=class extends G{};var Th=class extends qn{};var lN,aN,mN,Ch=class extends(mN=Ds,aN=U,lN=Zr,mN){constructor(){super(...arguments);s(this,aN,L.processingInstructionNode);s(this,lN,"")}get target(){return this[Zr]}};var yN,uN,pN,hN,Im=class extends(hN=bt,pN=Mr,uN=Be,yN=U,hN){constructor(){super(...arguments);s(this,pN,null);s(this,uN,this);s(this,yN,L.documentFragmentNode)}get children(){if(!this[Mr]){let t=this[dt];this[Mr]=new Ne(h,()=>t)}return this[Mr]}get childElementCount(){return this[dt].length}get firstElementChild(){return this[dt][0]??null}get lastElementChild(){let t=this[dt];return t[t.length-1]??null}get textContent(){let t="";for(let r of this[q])(r[U]===L.elementNode||r[U]===L.textNode)&&(t+=r.textContent);return t}set textContent(t){let r=this[q];for(;r.length;)this.removeChild(r[0]);t&&this.appendChild(this[T].createTextNode(t))}append(...t){me.append(this,...t)}prepend(...t){me.prepend(this,...t)}replaceChildren(...t){me.replaceChildren(this,...t)}querySelectorAll(t){return yt.querySelectorAll(this,t)}querySelector(t){return yt.querySelector(this,t)}getElementById(t){return me.getElementById(this,t)}};var cN,dN,bN,gN,fN,SN,PN,AN,Nh=class extends Im{constructor(){super(...arguments);s(this,AN,[]);s(this,PN,"open");s(this,SN,null);s(this,fN,!1);s(this,gN,!1);s(this,bN,!1);s(this,dN,"named");s(this,cN,new Map)}get onslotchange(){return this[c].get("onslotchange")??null}set onslotchange(t){this[c].set("onslotchange",t)}get mode(){return this[Me]}get host(){return this[Ma]}get clonable(){return this[Oa]}get delegatesFocus(){return this[yy]}get serializable(){return this[an]}get slotAssignment(){return this[vs]}get fullscreenElement(){return null}get pictureInPictureElement(){return null}get pointerLockElement(){return null}get innerHTML(){let t=new Oi,r="";for(let o of this[q])r+=t.serializeToString(o);return r}set innerHTML(t){let r=this[q];for(;r.length;)this.removeChild(r[0]);new Kr(this[m]).parse(t,this)}get adoptedStyleSheets(){return this[gl]}set adoptedStyleSheets(t){this[gl]=t}get activeElement(){let t=this[T][Ke],r=t?.getRootNode();if(!r||r===this[T])return null;if(r===this)return t;for(;r&&r!==this;)t=r.host,r=t.getRootNode();return t}getAnimations(){return[]}setHTMLUnsafe(t){let r=this[q];for(;r.length;)this.removeChild(r[0]);new Kr(this[m]).parse(t,this)}toString(){return this.innerHTML}[(AN=gl,PN=Me,SN=Ma,fN=Oa,gN=yy,bN=an,dN=vs,cN=c,ct)](t=!1){let r=super[ct](t);return r[Me]=this[Me],r[Oa]=this[Oa],r[yy]=this[yy],r[an]=this[an],r[vs]=this[vs],r}};var wN,EN,HS,ot=class extends(EN=xr,wN=xe,EN){constructor(){super(...arguments);s(this,wN,null);E(this,HS,null)}get onabort(){return P.getEventListener(this,"onabort")}set onabort(t){this[c].set("onabort",t)}get onanimationend(){return P.getEventListener(this,"onanimationend")}set onanimationend(t){this[c].set("onanimationend",t)}get onanimationiteration(){return P.getEventListener(this,"onanimationiteration")}set onanimationiteration(t){this[c].set("onanimationiteration",t)}get onanimationstart(){return P.getEventListener(this,"onanimationstart")}set onanimationstart(t){this[c].set("onanimationstart",t)}get onauxclick(){return P.getEventListener(this,"onauxclick")}set onauxclick(t){this[c].set("onauxclick",t)}get onblur(){return P.getEventListener(this,"onblur")}set onblur(t){this[c].set("onblur",t)}get oncancel(){return P.getEventListener(this,"oncancel")}set oncancel(t){this[c].set("oncancel",t)}get oncanplay(){return P.getEventListener(this,"oncanplay")}set oncanplay(t){this[c].set("oncanplay",t)}get oncanplaythrough(){return P.getEventListener(this,"oncanplaythrough")}set oncanplaythrough(t){this[c].set("oncanplaythrough",t)}get onchange(){return P.getEventListener(this,"onchange")}set onchange(t){this[c].set("onchange",t)}get onclick(){return P.getEventListener(this,"onclick")}set onclick(t){this[c].set("onclick",t)}get onclose(){return P.getEventListener(this,"onclose")}set onclose(t){this[c].set("onclose",t)}get oncontextmenu(){return P.getEventListener(this,"oncontextmenu")}set oncontextmenu(t){this[c].set("oncontextmenu",t)}get oncopy(){return P.getEventListener(this,"oncopy")}set oncopy(t){this[c].set("oncopy",t)}get oncuechange(){return P.getEventListener(this,"oncuechange")}set oncuechange(t){this[c].set("oncuechange",t)}get oncut(){return P.getEventListener(this,"oncut")}set oncut(t){this[c].set("oncut",t)}get ondblclick(){return P.getEventListener(this,"ondblclick")}set ondblclick(t){this[c].set("ondblclick",t)}get ondrag(){return P.getEventListener(this,"ondrag")}set ondrag(t){this[c].set("ondrag",t)}get ondragend(){return P.getEventListener(this,"ondragend")}set ondragend(t){this[c].set("ondragend",t)}get ondragenter(){return P.getEventListener(this,"ondragenter")}set ondragenter(t){this[c].set("ondragenter",t)}get ondragleave(){return P.getEventListener(this,"ondragleave")}set ondragleave(t){this[c].set("ondragleave",t)}get ondragover(){return P.getEventListener(this,"ondragover")}set ondragover(t){this[c].set("ondragover",t)}get ondragstart(){return P.getEventListener(this,"ondragstart")}set ondragstart(t){this[c].set("ondragstart",t)}get ondrop(){return P.getEventListener(this,"ondrop")}set ondrop(t){this[c].set("ondrop",t)}get ondurationchange(){return P.getEventListener(this,"ondurationchange")}set ondurationchange(t){this[c].set("ondurationchange",t)}get onemptied(){return P.getEventListener(this,"onemptied")}set onemptied(t){this[c].set("onemptied",t)}get onended(){return P.getEventListener(this,"onended")}set onended(t){this[c].set("onended",t)}get onerror(){return P.getEventListener(this,"onerror")}set onerror(t){this[c].set("onerror",t)}get onfocus(){return P.getEventListener(this,"onfocus")}set onfocus(t){this[c].set("onfocus",t)}get onformdata(){return P.getEventListener(this,"onformdata")}set onformdata(t){this[c].set("onformdata",t)}get ongotpointercapture(){return P.getEventListener(this,"ongotpointercapture")}set ongotpointercapture(t){this[c].set("ongotpointercapture",t)}get oninput(){return P.getEventListener(this,"oninput")}set oninput(t){this[c].set("oninput",t)}get oninvalid(){return P.getEventListener(this,"oninvalid")}set oninvalid(t){this[c].set("oninvalid",t)}get onkeydown(){return P.getEventListener(this,"onkeydown")}set onkeydown(t){this[c].set("onkeydown",t)}get onkeypress(){return P.getEventListener(this,"onkeypress")}set onkeypress(t){this[c].set("onkeypress",t)}get onkeyup(){return P.getEventListener(this,"onkeyup")}set onkeyup(t){this[c].set("onkeyup",t)}get onload(){return P.getEventListener(this,"onload")}set onload(t){this[c].set("onload",t)}get onloadeddata(){return P.getEventListener(this,"onloadeddata")}set onloadeddata(t){this[c].set("onloadeddata",t)}get onloadedmetadata(){return P.getEventListener(this,"onloadedmetadata")}set onloadedmetadata(t){this[c].set("onloadedmetadata",t)}get onloadstart(){return P.getEventListener(this,"onloadstart")}set onloadstart(t){this[c].set("onloadstart",t)}get onlostpointercapture(){return P.getEventListener(this,"onlostpointercapture")}set onlostpointercapture(t){this[c].set("onlostpointercapture",t)}get onmousedown(){return P.getEventListener(this,"onmousedown")}set onmousedown(t){this[c].set("onmousedown",t)}get onmouseenter(){return P.getEventListener(this,"onmouseenter")}set onmouseenter(t){this[c].set("onmouseenter",t)}get onmouseleave(){return P.getEventListener(this,"onmouseleave")}set onmouseleave(t){this[c].set("onmouseleave",t)}get onmousemove(){return P.getEventListener(this,"onmousemove")}set onmousemove(t){this[c].set("onmousemove",t)}get onmouseout(){return P.getEventListener(this,"onmouseout")}set onmouseout(t){this[c].set("onmouseout",t)}get onmouseover(){return P.getEventListener(this,"onmouseover")}set onmouseover(t){this[c].set("onmouseover",t)}get onmouseup(){return P.getEventListener(this,"onmouseup")}set onmouseup(t){this[c].set("onmouseup",t)}get onmousewheel(){return P.getEventListener(this,"onmousewheel")}set onmousewheel(t){this[c].set("onmousewheel",t)}get onpaste(){return P.getEventListener(this,"onpaste")}set onpaste(t){this[c].set("onpaste",t)}get onpause(){return P.getEventListener(this,"onpause")}set onpause(t){this[c].set("onpause",t)}get onplay(){return P.getEventListener(this,"onplay")}set onplay(t){this[c].set("onplay",t)}get onplaying(){return P.getEventListener(this,"onplaying")}set onplaying(t){this[c].set("onplaying",t)}get onpointercancel(){return P.getEventListener(this,"onpointercancel")}set onpointercancel(t){this[c].set("onpointercancel",t)}get onpointerdown(){return P.getEventListener(this,"onpointerdown")}set onpointerdown(t){this[c].set("onpointerdown",t)}get onpointerenter(){return P.getEventListener(this,"onpointerenter")}set onpointerenter(t){this[c].set("onpointerenter",t)}get onpointerleave(){return P.getEventListener(this,"onpointerleave")}set onpointerleave(t){this[c].set("onpointerleave",t)}get onpointermove(){return P.getEventListener(this,"onpointermove")}set onpointermove(t){this[c].set("onpointermove",t)}get onpointerout(){return P.getEventListener(this,"onpointerout")}set onpointerout(t){this[c].set("onpointerout",t)}get onpointerover(){return P.getEventListener(this,"onpointerover")}set onpointerover(t){this[c].set("onpointerover",t)}get onpointerrawupdate(){return P.getEventListener(this,"onpointerrawupdate")}set onpointerrawupdate(t){this[c].set("onpointerrawupdate",t)}get onpointerup(){return P.getEventListener(this,"onpointerup")}set onpointerup(t){this[c].set("onpointerup",t)}get onprogress(){return P.getEventListener(this,"onprogress")}set onprogress(t){this[c].set("onprogress",t)}get onratechange(){return P.getEventListener(this,"onratechange")}set onratechange(t){this[c].set("onratechange",t)}get onreset(){return P.getEventListener(this,"onreset")}set onreset(t){this[c].set("onreset",t)}get onresize(){return P.getEventListener(this,"onresize")}set onresize(t){this[c].set("onresize",t)}get onscroll(){return P.getEventListener(this,"onscroll")}set onscroll(t){this[c].set("onscroll",t)}get onscrollend(){return P.getEventListener(this,"onscrollend")}set onscrollend(t){this[c].set("onscrollend",t)}get onscrollsnapchange(){return P.getEventListener(this,"onscrollsnapchange")}set onscrollsnapchange(t){this[c].set("onscrollsnapchange",t)}get onscrollsnapchanging(){return P.getEventListener(this,"onscrollsnapchanging")}set onscrollsnapchanging(t){this[c].set("onscrollsnapchanging",t)}get onsecuritypolicyviolation(){return P.getEventListener(this,"onsecuritypolicyviolation")}set onsecuritypolicyviolation(t){this[c].set("onsecuritypolicyviolation",t)}get onseeked(){return P.getEventListener(this,"onseeked")}set onseeked(t){this[c].set("onseeked",t)}get onseeking(){return P.getEventListener(this,"onseeking")}set onseeking(t){this[c].set("onseeking",t)}get onselect(){return P.getEventListener(this,"onselect")}set onselect(t){this[c].set("onselect",t)}get onselectionchange(){return P.getEventListener(this,"onselectionchange")}set onselectionchange(t){this[c].set("onselectionchange",t)}get onselectstart(){return P.getEventListener(this,"onselectstart")}set onselectstart(t){this[c].set("onselectstart",t)}get onslotchange(){return P.getEventListener(this,"onslotchange")}set onslotchange(t){this[c].set("onslotchange",t)}get onstalled(){return P.getEventListener(this,"onstalled")}set onstalled(t){this[c].set("onstalled",t)}get onsubmit(){return P.getEventListener(this,"onsubmit")}set onsubmit(t){this[c].set("onsubmit",t)}get onsuspend(){return P.getEventListener(this,"onsuspend")}set onsuspend(t){this[c].set("onsuspend",t)}get ontimeupdate(){return P.getEventListener(this,"ontimeupdate")}set ontimeupdate(t){this[c].set("ontimeupdate",t)}get ontoggle(){return P.getEventListener(this,"ontoggle")}set ontoggle(t){this[c].set("ontoggle",t)}get ontransitioncancel(){return P.getEventListener(this,"ontransitioncancel")}set ontransitioncancel(t){this[c].set("ontransitioncancel",t)}get ontransitionend(){return P.getEventListener(this,"ontransitionend")}set ontransitionend(t){this[c].set("ontransitionend",t)}get ontransitionrun(){return P.getEventListener(this,"ontransitionrun")}set ontransitionrun(t){this[c].set("ontransitionrun",t)}get ontransitionstart(){return P.getEventListener(this,"ontransitionstart")}set ontransitionstart(t){this[c].set("ontransitionstart",t)}get onvolumechange(){return P.getEventListener(this,"onvolumechange")}set onvolumechange(t){this[c].set("onvolumechange",t)}get onwaiting(){return P.getEventListener(this,"onwaiting")}set onwaiting(t){this[c].set("onwaiting",t)}get onwheel(){return P.getEventListener(this,"onwheel")}set onwheel(t){this[c].set("onwheel",t)}get ownerSVGElement(){let t=this[Y];for(;t;){if(t[nt]==="svg")return t;t=t[Y]}return null}get viewportElement(){return this.ownerSVGElement}get dataset(){return u(this,HS)??w(this,HS,new _y(h,this))}get style(){return this[xe]||(this[xe]=new go(h,this[m],{element:this})),this[xe]}get tabIndex(){let t=this.getAttribute("tabindex");return t!==null?Number(t):-1}set tabIndex(t){t===-1?this.removeAttribute("tabindex"):this.setAttribute("tabindex",String(t))}blur(){Kl.blur(this)}focus(){Kl.focus(this)}};HS=new WeakMap;var Lh=class{observe(){}unobserve(){}disconnect(){}};var ra=class extends Tt{constructor(){super(...arguments);s(this,"width",1024);s(this,"height",768);s(this,"availWidth",1024);s(this,"availHeight",768);s(this,"colorDepth",24);s(this,"pixelDepth",24);s(this,"onchange",null)}};var Mm=class extends ra{constructor(){super(...arguments);s(this,"availLeft",0);s(this,"availTop",0);s(this,"left",0);s(this,"top",0);s(this,"isPrimary",!0);s(this,"isInternal",!0);s(this,"devicePixelRatio",1);s(this,"label","")}};var Zy=class extends Tt{constructor(){super();s(this,"currentScreen");s(this,"screens");s(this,"oncurrentscreenchange",null);s(this,"onscreenschange",null);let t=new Mm;this.currentScreen=t,this.screens=[t]}};var Se=class{static compareBoundaryPointsPosition(e,t){if(e.node===t.node)return e.offset===t.offset?0:e.offset<t.offset?-1:1;if(St.isFollowing(e.node,t.node))return this.compareBoundaryPointsPosition(t,e)===-1?1:-1;if(St.isInclusiveAncestor(e.node,t.node)){let r=t.node;for(;r[Y]!==e.node;)r=r[Y];if(r[Y][q].indexOf(r)<e.offset)return 1}return-1}static validateBoundaryPoint(e){if(e.node[U]===L.documentTypeNode)throw new ae("DocumentType Node can't be used as boundary point.",v.invalidNodeTypeError);if(e.offset>St.getNodeLength(e.node))throw new ae("Offset out of bound.",v.indexSizeError)}static isContained(e,t){return this.compareBoundaryPointsPosition({node:e,offset:0},{node:t.startContainer,offset:t.startOffset})===1&&this.compareBoundaryPointsPosition({node:e,offset:St.getNodeLength(e)},{node:t.endContainer,offset:t.endOffset})===-1}static isPartiallyContained(e,t){return St.isInclusiveAncestor(e,t.startContainer)&&!St.isInclusiveAncestor(e,t.endContainer)||!St.isInclusiveAncestor(e,t.startContainer)&&St.isInclusiveAncestor(e,t.endContainer)}};var VA;(function(l){l[l.forwards=1]="forwards",l[l.backwards=-1]="backwards",l[l.directionless=0]="directionless"})(VA||(VA={}));var ms=VA;var Ae,Qt,zn,ys,Xn,Rm=class{constructor(e){E(this,ys);E(this,Ae);E(this,Qt,null);E(this,zn,ms.directionless);w(this,Ae,e)}get rangeCount(){return u(this,Qt)?1:0}get isCollapsed(){return u(this,Qt)===null||u(this,Qt).collapsed}get type(){if(u(this,Qt)){if(u(this,Qt).collapsed)return"Caret"}else return"None";return"Range"}get anchorNode(){return u(this,Qt)?u(this,zn)===ms.forwards?u(this,Qt).startContainer:u(this,Qt).endContainer:null}get anchorOffset(){return u(this,Qt)?u(this,zn)===ms.forwards?u(this,Qt).startOffset:u(this,Qt).endOffset:0}get baseNode(){return this.anchorNode}get baseOffset(){return this.anchorOffset}get focusNode(){return u(this,Qt)?u(this,zn)===ms.forwards?u(this,Qt).endContainer:u(this,Qt).startContainer:null}get focusOffset(){return u(this,Qt)?u(this,zn)===ms.forwards?u(this,Qt).endOffset:u(this,Qt).startOffset:0}get extentNode(){return this.focusNode}get extentOffset(){return this.focusOffset}addRange(e){if(!e)throw new(u(this,Ae))[m].TypeError("Failed to execute addRange on Selection. Parameter 1 is not of type Range.");!u(this,Qt)&&e[T]===u(this,Ae)&&D(this,ys,Xn).call(this,e)}getRangeAt(e){if(!u(this,Qt)||e!==0)throw new(u(this,Ae))[m].DOMException("Invalid range index.",v.indexSizeError);return u(this,Qt)}removeRange(e){if(u(this,Qt)!==e)throw new(u(this,Ae))[m].DOMException("Invalid range.",v.notFoundError);D(this,ys,Xn).call(this,null)}removeAllRanges(){D(this,ys,Xn).call(this,null)}empty(){this.removeAllRanges()}collapse(e,t){if(e===null){this.removeAllRanges();return}if(e[U]===L.documentTypeNode)throw new(u(this,Ae))[m].DOMException("DocumentType Node can't be used as boundary point.",v.invalidNodeTypeError);if(t>St.getNodeLength(e))throw new(u(this,Ae))[m].DOMException("Invalid range index.",v.indexSizeError);if(e!==u(this,Ae)&&e[T]!==u(this,Ae))return;let r=new(u(this,Ae))[m].Range;r[_].node=e,r[_].offset=t,r[j].node=e,r[j].offset=t,D(this,ys,Xn).call(this,r)}setPosition(e,t){this.collapse(e,t)}collapseToEnd(){if(u(this,Qt)===null)throw new(u(this,Ae))[m].DOMException("There is no selection to collapse.",v.invalidStateError);let{node:e,offset:t}=u(this,Qt)[j],r=new(u(this,Ae))[m].Range;r[_].node=e,r[_].offset=t,r[j].node=e,r[j].offset=t,D(this,ys,Xn).call(this,r)}collapseToStart(){if(!u(this,Qt))throw new(u(this,Ae))[m].DOMException("There is no selection to collapse.",v.invalidStateError);let{node:e,offset:t}=u(this,Qt)[_],r=new(u(this,Ae))[m].Range;r[_].node=e,r[_].offset=t,r[j].node=e,r[j].offset=t,D(this,ys,Xn).call(this,r)}containsNode(e,t=!1){if(!u(this,Qt)||e[T]!==u(this,Ae))return!1;let r=Se.compareBoundaryPointsPosition(u(this,Qt)[_],{node:e,offset:0})===-1,o=Se.compareBoundaryPointsPosition(u(this,Qt)[j],{node:e,offset:St.getNodeLength(e)})===1;return t?r||o:r&&o}deleteFromDocument(){u(this,Qt)&&u(this,Qt).deleteContents()}extend(e,t){if(e!==u(this,Ae)&&e[T]!==u(this,Ae))return;if(!u(this,Qt))throw new(u(this,Ae))[m].DOMException("There is no selection to extend.",v.invalidStateError);let r=this.anchorNode,o=this.anchorOffset,i=new(u(this,Ae))[m].Range;i[_].node=e,i[_].offset=0,i[j].node=e,i[j].offset=0,e[T]!==u(this,Qt)[T]?(i[_].offset=t,i[j].offset=t):Se.compareBoundaryPointsPosition({node:r,offset:o},{node:e,offset:t})<=0?(i[_].node=r,i[_].offset=o,i[j].node=e,i[j].offset=t):(i[_].node=e,i[_].offset=t,i[j].node=r,i[j].offset=o),D(this,ys,Xn).call(this,i),w(this,zn,Se.compareBoundaryPointsPosition({node:e,offset:t},{node:r,offset:o})===-1?ms.backwards:ms.forwards)}selectAllChildren(e){if(e[U]===L.documentTypeNode)throw new(u(this,Ae))[m].DOMException("DocumentType Node can't be used as boundary point.",v.invalidNodeTypeError);if(e!==u(this,Ae)&&e[T]!==u(this,Ae))return;let t=e[q].length,r=new(u(this,Ae))[m].Range;r[_].node=e,r[_].offset=0,r[j].node=e,r[j].offset=t,D(this,ys,Xn).call(this,r)}setBaseAndExtent(e,t,r,o){if(t>St.getNodeLength(e)||o>St.getNodeLength(r))throw new(u(this,Ae))[m].DOMException("Invalid anchor or focus offset.",v.indexSizeError);if(e!==u(this,Ae)&&e[T]!==u(this,Ae)||r!==u(this,Ae)&&r[T]!==u(this,Ae))return;let i={node:e,offset:t},n={node:r,offset:o},a=new(u(this,Ae))[m].Range;Se.compareBoundaryPointsPosition(i,n)===-1?(a[_]=i,a[j]=n):(a[_]=n,a[j]=i),D(this,ys,Xn).call(this,a),w(this,zn,Se.compareBoundaryPointsPosition(n,i)===-1?ms.backwards:ms.forwards)}toString(){return u(this,Qt)?u(this,Qt).toString():""}};Ae=new WeakMap,Qt=new WeakMap,zn=new WeakMap,ys=new WeakSet,Xn=function(e){let t=u(this,Qt);w(this,Qt,e),w(this,zn,e===null?ms.directionless:ms.forwards),t!==u(this,Qt)&&u(this,Ae).dispatchEvent(new k("selectionchange"))};var xN;xN=Xt;var UA=class UA{constructor(){s(this,xN,{});let e=this[Xt],t=new Te(this,[UA]);return new Proxy(this,{get:(r,o)=>{if(o in r||typeof o=="symbol")return t.bind(o),r[o];if(o in e)return e[o]},set(r,o,i){return t.bind(o),o in r||typeof o=="symbol"||(e[String(o)]=String(i)),!0},deleteProperty(r,o){return o in e?(delete e[String(o)],!0):!1},ownKeys(){return Object.keys(e)},has(r,o){return o in r||o in e},defineProperty(r,o,i){return t.preventBinding(o),o in r?(Object.defineProperty(r,o,i),!0):i.value!==void 0?(e[String(o)]=String(i.value),!0):!1},getOwnPropertyDescriptor(r,o){if(o in r)return;let i=e[String(o)];if(i!==void 0)return{value:i,writable:!0,enumerable:!0,configurable:!0}}})}get length(){return Object.keys(this[Xt]).length}key(e){let t=Object.keys(this[Xt])[e];return t!==void 0?t:null}setItem(e,t){this[Xt][e]=String(t)}getItem(e){return this[Xt][e]!==void 0?this[Xt][e]:null}removeItem(e){delete this[Xt][e]}clear(){let e=this[Xt];for(let t of Object.keys(e))delete e[t]}},Fm=UA;var Pe={FILTER_ACCEPT:1,FILTER_REJECT:2,FILTER_SKIP:3,SHOW_ALL:-1,SHOW_ELEMENT:1,SHOW_ATTRIBUTE:2,SHOW_TEXT:4,SHOW_CDATA_SECTION:8,SHOW_ENTITY_REFERENCE:16,SHOW_ENTITY:32,SHOW_PROCESSING_INSTRUCTION:64,SHOW_COMMENT:128,SHOW_DOCUMENT:256,SHOW_DOCUMENT_TYPE:512,SHOW_DOCUMENT_FRAGMENT:1024,SHOW_NOTATION:2048};var vN={1:Pe.SHOW_ELEMENT,2:Pe.SHOW_ATTRIBUTE,3:Pe.SHOW_TEXT,4:Pe.SHOW_CDATA_SECTION,5:Pe.SHOW_ENTITY_REFERENCE,6:Pe.SHOW_PROCESSING_INSTRUCTION,7:Pe.SHOW_PROCESSING_INSTRUCTION,8:Pe.SHOW_COMMENT,9:Pe.SHOW_DOCUMENT,10:Pe.SHOW_DOCUMENT_TYPE,11:Pe.SHOW_DOCUMENT_FRAGMENT,12:Pe.SHOW_NOTATION};var tu;(function(l){l.first="first",l.last="last"})(tu||(tu={}));var eu;(function(l){l.next="next",l.previous="previous"})(eu||(eu={}));var Ur,Bm,GA,_A,Jn=class{constructor(e,t=-1,r=null){E(this,Bm);s(this,"root");s(this,"whatToShow",-1);s(this,"filter",null);E(this,Ur,null);if(!(e instanceof bt))throw new ae("Parameter 1 was not of type Node.");this.root=e,this.whatToShow=t,this.filter=r,w(this,Ur,e)}get currentNode(){return u(this,Ur)}set currentNode(e){if(!(e instanceof bt))throw new this.root[m].TypeError("Failed to set the 'currentNode' property on 'TreeWalker': Failed to convert value to 'Node'.");w(this,Ur,e)}parentNode(){let e=u(this,Ur);for(;e!==null&&e!==this.root;)if(e=e.parentNode,e!==null&&this[Li](e)===Pe.FILTER_ACCEPT)return w(this,Ur,e),u(this,Ur);return null}firstChild(){return D(this,Bm,GA).call(this,tu.first)}lastChild(){return D(this,Bm,GA).call(this,tu.last)}nextSibling(){return D(this,Bm,_A).call(this,eu.next)}previousSibling(){return D(this,Bm,_A).call(this,eu.previous)}previousNode(){let e=u(this,Ur);for(;e!==this.root;){let t=e?.previousSibling||null;for(;t!==null;){let r=t,o=this[Li](r);for(;o!==Pe.FILTER_REJECT&&r[q].length;)r=r.lastChild,o=this[Li](r);if(o===Pe.FILTER_ACCEPT)return w(this,Ur,r),r;t=r.previousSibling}if(e===this.root||e.parentNode===null)return null;if(e=e.parentNode,this[Li](e)===Pe.FILTER_ACCEPT)return w(this,Ur,e),e}return null}nextNode(){let e=u(this,Ur),t=Pe.FILTER_ACCEPT;if(e===null)return null;for(;;){for(;t!==Pe.FILTER_REJECT&&e[q].length;)if(e=e.firstChild,t=this[Li](e),t===Pe.FILTER_ACCEPT)return w(this,Ur,e),e;for(;e!==null;){if(e===this.root)return null;let r=e.nextSibling;if(r!==null){e=r;break}e=e.parentNode}if(e===null)return null;if(t=this[Li](e),t===Pe.FILTER_ACCEPT)return w(this,Ur,e),e}}[Li](e){let t=vN[e.nodeType];return t&&(this.whatToShow&t)==0?Pe.FILTER_SKIP:typeof this.filter=="function"?this.filter(e):this.filter?this.filter.acceptNode(e):Pe.FILTER_ACCEPT}};Ur=new WeakMap,Bm=new WeakSet,GA=function(e){let t=u(this,Ur);if(!t)return null;for(t=e===tu.first?t.firstChild:t.lastChild;t!==null;){let r=this[Li](t);if(r===Pe.FILTER_ACCEPT)return w(this,Ur,t),t;if(r===Pe.FILTER_SKIP){let o=e===tu.first?t.firstChild:t.lastChild;if(o!==null){t=o;continue}}for(;t!==null;){let o=e===tu.first?t.nextSibling:t.previousSibling;if(o!==null){t=o;break}let i=t.parentNode;if(i===null||i===this.root||i===u(this,Ur))return null;t=i}}return null},_A=function(e){let t=u(this,Ur);if(!t||t===this.root)return null;for(;;){let r=e===eu.next?t.nextSibling:t.previousSibling;for(;r!==null;){let o=r,i=this[Li](o);if(i===Pe.FILTER_ACCEPT)return w(this,Ur,o),o;r=e===eu.next?o.firstChild:o.lastChild,(i===Pe.FILTER_REJECT||r===null)&&(r=e===eu.next?o.nextSibling:o.previousSibling)}if(t=t.parentNode,t===null||t===this.root||this[Li](t)===Pe.FILTER_ACCEPT)return null}};var ru,ag,mg,Dm,yg,Om=class{constructor(e,t=-1,r=null){E(this,ru);E(this,ag,-1);E(this,mg,null);E(this,Dm);E(this,yg,!0);w(this,ru,e),w(this,ag,t),w(this,mg,r),w(this,Dm,new Jn(e,t,r))}get root(){return u(this,ru)}get whatToShow(){return u(this,ag)}get filter(){return u(this,mg)}nextNode(){return u(this,yg)?(w(this,yg,!1),u(this,Dm)[Li](u(this,ru))!==Pe.FILTER_ACCEPT?u(this,Dm).nextNode():u(this,ru)):u(this,Dm).nextNode()}previousNode(){return u(this,Dm).previousNode()}};ru=new WeakMap,ag=new WeakMap,mg=new WeakMap,Dm=new WeakMap,yg=new WeakMap;var Gi,ug,TN,CN,NN,kh=class{constructor(){E(this,Gi)}serializeToString(e){return D(this,Gi,ug).call(this,e)}};Gi=new WeakSet,ug=function(e,t=null,r=null){switch(e[U]){case L.elementNode:let o=e,i=o[nt],n="",a=D(this,Gi,TN).call(this,o,r),y=o[tt]===Yt.html?o[Ot]:D(this,Gi,CN).call(this,o,a),p=`${y?y+":":""}${i}`,d=y?t:o[tt]||t,b=D(this,Gi,NN).call(this,o,y,t,r),f=d===Yt.html&&i==="template"?e.content[q]:e[q];for(let qt of f)n+=D(this,Gi,ug).call(this,qt,d,a);return!n&&d===Yt.html&&br[i.toLowerCase()]?.contentModel===H.noDescendants?`<${p}${b} />`:!n&&d!==Yt.html?`<${p}${b}/>`:`<${p}${b}>${n}</${p}>`;case bt.DOCUMENT_FRAGMENT_NODE:case bt.DOCUMENT_NODE:let S="";e[Ga]&&(S+=D(this,Gi,ug).call(this,e[Ga],t,new Map(r)));for(let qt of e[q])S+=D(this,Gi,ug).call(this,qt,t,new Map(r));return S;case L.commentNode:return`<!--${e.textContent}-->`;case L.processingInstructionNode:return`<?${e.target} ${e.textContent}?>`;case L.textNode:let M=e.parentElement;return M&&br[M[nt]]?.contentModel===H.rawText?e.textContent:We.encodeTextContent(e.textContent);case L.documentTypeNode:let N=e,K=N.publicId?" PUBLIC":N.systemId?" SYSTEM":"",mt=N.publicId?` "${N.publicId}"`:"",Nt=N.systemId?` "${N.systemId}"`:"";return`<!DOCTYPE ${N.name}${K}${mt}${Nt}>`}return""},TN=function(e,t){let r=new Map(t);for(let o of e[ft][$].values())o[tt]===Yt.xmlns&&o[Ot]&&r.set(o[z],o[nt]);return r},CN=function(e,t){if(e[Ot]&&!e[tt])throw new Error("Element has a prefix but no namespace.");if(!e[Ot]||!t)return null;let r=t.get(e[tt]);if(r)return r;let o=new Set(t.values());if(o.has(e[Ot])){let i=1;for(;o.has("n"+i);)i++;return t.set(e[tt],"n"+i),"n"+i}return t.set(e[tt],e[Ot]),e[Ot]},NN=function(e,t,r,o){let i="",n="",a=new Set;for(let y of e[ft][$].values())y[tt]===Yt.xmlns?t&&y[nt]===t&&e[tt]?(n+=` xmlns:${t}="${We.encodeXMLAttributeValue(e[tt])}"`,a.add(e[tt])):!t&&y[st]==="xmlns"&&e[tt]?(n+=` xmlns="${We.encodeXMLAttributeValue(e[tt])}"`,a.add(e[tt])):(n+=` ${y[st]}="${We.encodeXMLAttributeValue(y[z])}"`,a.add(y[z])):i+=` ${y[st]}="${We.encodeXMLAttributeValue(y[z])}"`;return e[tt]&&r!==e[tt]&&!a.has(e[tt])&&(t&&!o?.has(e[tt])?n+=` xmlns:${t}="${We.encodeXMLAttributeValue(e[tt])}"`:!t&&r!==e[tt]&&(n+=` xmlns="${We.encodeXMLAttributeValue(e[tt])}"`)),n+i};import{Script as lG}from"vm";var LN=new lG(`
138
138
  this.ArrayBuffer = globalThis.ArrayBuffer;
139
139
  this.Boolean = globalThis.Boolean;
140
140
  this.DataView = globalThis.DataView;
@@ -190,8 +190,8 @@ this.AbortSignal = globalThis.AbortSignal;
190
190
  this.Array = globalThis.Array;
191
191
  this.Object = globalThis.Object;
192
192
  this.Function = globalThis.Function;
193
- `);import{URL as lG}from"url";var pg=class{static openPage(e,t){let r=this.getWindowFeatures(t?.features||""),o=t?.target!==void 0?String(t.target):null,i=new lG(e.window.location.href),n=Co.getRelativeURL(e,t?.url),a=e.window,y;if(e.window!==a)return null;switch(o){case"_self":y=e;break;case"_top":y=e.page.mainFrame;break;case"_parent":y=e.parentFrame??e;break;default:y=e.page.context.newPage().mainFrame,y[xo]=e;break}if(y.goto(n.href,{referrer:r.noreferrer?void 0:e.window.location.origin,referrerPolicy:r.noreferrer?"no-referrer":void 0}).catch(d=>{y.page.console.error(d)}),n.protocol==="javascript:")return y.window;if(y===e&&e.window===a)return null;r.popup&&o!=="_self"&&o!=="_top"&&o!=="_parent"&&(y[bl]=!0,(r?.width||r?.height)&&y.page.setViewport({width:r?.width,height:r?.height}),r?.left&&(y.window.screenLeft=r.left,y.window.screenX=r.left),r?.top&&(y.window.screenTop=r.top,y.window.screenY=r.top)),o&&o!=="_self"&&o!=="_top"&&o!=="_parent"&&o!=="_blank"&&(y.window.name=o);let p=Mi.isCORS(i,y.url);return!r.noopener&&!r.noreferrer&&e.window&&y[xo]&&y.window!==e.window&&(y[ji]=p?new Ql(e.window):e.window),r.noopener||r.noreferrer?null:p?new Ql(y.window,e.window):y.window}static getWindowFeatures(e){let t=e.split(","),r={popup:!1,width:0,height:0,left:0,top:0,noopener:!1,noreferrer:!1};for(let o of t){let[i,n]=o.split("=");switch(i){case"popup":r.popup=!n||n==="yes"||n==="1"||n==="true";break;case"width":case"innerWidth":r.width=parseInt(n,10);break;case"height":case"innerHeight":r.height=parseInt(n,10);break;case"left":case"screenX":r.left=parseInt(n,10);break;case"top":case"screenY":r.top=parseInt(n,10);break;case"noopener":r.noopener=!0;break;case"noreferrer":r.noreferrer=!0;break}}return r}};import{PerformanceObserver as bH,PerformanceEntry as gH}from"node:perf_hooks";var ou,hg=class{constructor(e){E(this,ou);w(this,ou,e)}createDocument(e,t,r){return new(u(this,ou))[m].HTMLDocument}createHTMLDocument(){return new(u(this,ou))[m].HTMLDocument}createDocumentType(e,t,r){let o=Ve.createNode(u(this,ou),Hn);return o[st]=e,o[fl]=t,o[Sl]=r,o}};ou=new WeakMap;var HA;(function(l){l.hidden="hidden",l.visible="visible",l.prerender="prerender"})(HA||(HA={}));var WA=HA;var aG=/^[a-z][a-z0-9-]+$/,kN,IN,MN,RN,FN,BN,DN,ON,VN,UN,GN,_N,HN,WN,YN,qN,KN,jN,QN,$N,XN,zN,JN,cg,YA,Zn=class extends bt{constructor(){super(...arguments);E(this,cg);s(this,JN,null);s(this,zN,null);s(this,XN,null);s(this,$N,null);s(this,QN,this);s(this,jN,!0);s(this,KN,!1);s(this,qN,L.documentNode);s(this,YN,!0);s(this,WN,[]);s(this,HN,new hg(this));s(this,_N,LS.interactive);s(this,GN,"");s(this,UN,null);s(this,VN,null);s(this,ON,[]);s(this,DN,null);s(this,BN,new Map);s(this,FN,"text/html");s(this,RN,null);s(this,MN,new Map);s(this,IN,new Map);s(this,kN,null)}get onreadystatechange(){return this[c].get("onreadystatechange")??null}set onreadystatechange(t){this[c].set("onreadystatechange",t)}get onpointerlockchange(){return this[c].get("onpointerlockchange")??null}set onpointerlockchange(t){this[c].set("onpointerlockchange",t)}get onpointerlockerror(){return this[c].get("onpointerlockerror")??null}set onpointerlockerror(t){this[c].set("onpointerlockerror",t)}get onbeforecopy(){return this[c].get("onbeforecopy")??null}set onbeforecopy(t){this[c].set("onbeforecopy",t)}get onbeforecut(){return this[c].get("onbeforecut")??null}set onbeforecut(t){this[c].set("onbeforecut",t)}get onbeforepaste(){return this[c].get("onbeforepaste")??null}set onbeforepaste(t){this[c].set("onbeforepaste",t)}get onfreeze(){return this[c].get("onfreeze")??null}set onfreeze(t){this[c].set("onfreeze",t)}get onprerenderingchange(){return this[c].get("onprerenderingchange")??null}set onprerenderingchange(t){this[c].set("onprerenderingchange",t)}get onresume(){return this[c].get("onresume")??null}set onresume(t){this[c].set("onresume",t)}get onsearch(){return this[c].get("onsearch")??null}set onsearch(t){this[c].set("onsearch",t)}get onvisibilitychange(){return this[c].get("onvisibilitychange")??null}set onvisibilitychange(t){this[c].set("onvisibilitychange",t)}get onfullscreenchange(){return this[c].get("onfullscreenchange")??null}set onfullscreenchange(t){this[c].set("onfullscreenchange",t)}get onfullscreenerror(){return this[c].get("onfullscreenerror")??null}set onfullscreenerror(t){this[c].set("onfullscreenerror",t)}get onwebkitfullscreenchange(){return this[c].get("onwebkitfullscreenchange")??null}set onwebkitfullscreenchange(t){this[c].set("onwebkitfullscreenchange",t)}get onwebkitfullscreenerror(){return this[c].get("onwebkitfullscreenerror")??null}set onwebkitfullscreenerror(t){this[c].set("onwebkitfullscreenerror",t)}get onbeforexrselect(){return this[c].get("onbeforexrselect")??null}set onbeforexrselect(t){this[c].set("onbeforexrselect",t)}get onabort(){return this[c].get("onabort")??null}set onabort(t){this[c].set("onabort",t)}get onbeforeinput(){return this[c].get("onbeforeinput")??null}set onbeforeinput(t){this[c].set("onbeforeinput",t)}get onbeforematch(){return this[c].get("onbeforematch")??null}set onbeforematch(t){this[c].set("onbeforematch",t)}get onbeforetoggle(){return this[c].get("onbeforetoggle")??null}set onbeforetoggle(t){this[c].set("onbeforetoggle",t)}get onblur(){return this[c].get("onblur")??null}set onblur(t){this[c].set("onblur",t)}get oncancel(){return this[c].get("oncancel")??null}set oncancel(t){this[c].set("oncancel",t)}get oncanplay(){return this[c].get("oncanplay")??null}set oncanplay(t){this[c].set("oncanplay",t)}get oncanplaythrough(){return this[c].get("oncanplaythrough")??null}set oncanplaythrough(t){this[c].set("oncanplaythrough",t)}get onchange(){return this[c].get("onchange")??null}set onchange(t){this[c].set("onchange",t)}get onclick(){return this[c].get("onclick")??null}set onclick(t){this[c].set("onclick",t)}get onclose(){return this[c].get("onclose")??null}set onclose(t){this[c].set("onclose",t)}get oncontentvisibilityautostatechange(){return this[c].get("oncontentvisibilityautostatechange")??null}set oncontentvisibilityautostatechange(t){this[c].set("oncontentvisibilityautostatechange",t)}get oncontextlost(){return this[c].get("oncontextlost")??null}set oncontextlost(t){this[c].set("oncontextlost",t)}get oncontextmenu(){return this[c].get("oncontextmenu")??null}set oncontextmenu(t){this[c].set("oncontextmenu",t)}get oncontextrestored(){return this[c].get("oncontextrestored")??null}set oncontextrestored(t){this[c].set("oncontextrestored",t)}get oncuechange(){return this[c].get("oncuechange")??null}set oncuechange(t){this[c].set("oncuechange",t)}get ondblclick(){return this[c].get("ondblclick")??null}set ondblclick(t){this[c].set("ondblclick",t)}get ondrag(){return this[c].get("ondrag")??null}set ondrag(t){this[c].set("ondrag",t)}get ondragend(){return this[c].get("ondragend")??null}set ondragend(t){this[c].set("ondragend",t)}get ondragenter(){return this[c].get("ondragenter")??null}set ondragenter(t){this[c].set("ondragenter",t)}get ondragleave(){return this[c].get("ondragleave")??null}set ondragleave(t){this[c].set("ondragleave",t)}get ondragover(){return this[c].get("ondragover")??null}set ondragover(t){this[c].set("ondragover",t)}get ondragstart(){return this[c].get("ondragstart")??null}set ondragstart(t){this[c].set("ondragstart",t)}get ondrop(){return this[c].get("ondrop")??null}set ondrop(t){this[c].set("ondrop",t)}get ondurationchange(){return this[c].get("ondurationchange")??null}set ondurationchange(t){this[c].set("ondurationchange",t)}get onemptied(){return this[c].get("onemptied")??null}set onemptied(t){this[c].set("onemptied",t)}get onended(){return this[c].get("onended")??null}set onended(t){this[c].set("onended",t)}get onerror(){return this[c].get("onerror")??null}set onerror(t){this[c].set("onerror",t)}get onfocus(){return this[c].get("onfocus")??null}set onfocus(t){this[c].set("onfocus",t)}get onformdata(){return this[c].get("onformdata")??null}set onformdata(t){this[c].set("onformdata",t)}get oninput(){return this[c].get("oninput")??null}set oninput(t){this[c].set("oninput",t)}get oninvalid(){return this[c].get("oninvalid")??null}set oninvalid(t){this[c].set("oninvalid",t)}get onkeydown(){return this[c].get("onkeydown")??null}set onkeydown(t){this[c].set("onkeydown",t)}get onkeypress(){return this[c].get("onkeypress")??null}set onkeypress(t){this[c].set("onkeypress",t)}get onkeyup(){return this[c].get("onkeyup")??null}set onkeyup(t){this[c].set("onkeyup",t)}get onload(){return this[c].get("onload")??null}set onload(t){this[c].set("onload",t)}get onloadeddata(){return this[c].get("onloadeddata")??null}set onloadeddata(t){this[c].set("onloadeddata",t)}get onloadedmetadata(){return this[c].get("onloadedmetadata")??null}set onloadedmetadata(t){this[c].set("onloadedmetadata",t)}get onloadstart(){return this[c].get("onloadstart")??null}set onloadstart(t){this[c].set("onloadstart",t)}get onmousedown(){return this[c].get("onmousedown")??null}set onmousedown(t){this[c].set("onmousedown",t)}get onmouseenter(){return this[c].get("onmouseenter")??null}set onmouseenter(t){this[c].set("onmouseenter",t)}get onmouseleave(){return this[c].get("onmouseleave")??null}set onmouseleave(t){this[c].set("onmouseleave",t)}get onmousemove(){return this[c].get("onmousemove")??null}set onmousemove(t){this[c].set("onmousemove",t)}get onmouseout(){return this[c].get("onmouseout")??null}set onmouseout(t){this[c].set("onmouseout",t)}get onmouseover(){return this[c].get("onmouseover")??null}set onmouseover(t){this[c].set("onmouseover",t)}get onmouseup(){return this[c].get("onmouseup")??null}set onmouseup(t){this[c].set("onmouseup",t)}get onmousewheel(){return this[c].get("onmousewheel")??null}set onmousewheel(t){this[c].set("onmousewheel",t)}get onpause(){return this[c].get("onpause")??null}set onpause(t){this[c].set("onpause",t)}get onplay(){return this[c].get("onplay")??null}set onplay(t){this[c].set("onplay",t)}get onplaying(){return this[c].get("onplaying")??null}set onplaying(t){this[c].set("onplaying",t)}get onprogress(){return this[c].get("onprogress")??null}set onprogress(t){this[c].set("onprogress",t)}get onratechange(){return this[c].get("onratechange")??null}set onratechange(t){this[c].set("onratechange",t)}get onreset(){return this[c].get("onreset")??null}set onreset(t){this[c].set("onreset",t)}get onresize(){return this[c].get("onresize")??null}set onresize(t){this[c].set("onresize",t)}get onscroll(){return this[c].get("onscroll")??null}set onscroll(t){this[c].set("onscroll",t)}get onsecuritypolicyviolation(){return this[c].get("onsecuritypolicyviolation")??null}set onsecuritypolicyviolation(t){this[c].set("onsecuritypolicyviolation",t)}get onseeked(){return this[c].get("onseeked")??null}set onseeked(t){this[c].set("onseeked",t)}get onseeking(){return this[c].get("onseeking")??null}set onseeking(t){this[c].set("onseeking",t)}get onselect(){return this[c].get("onselect")??null}set onselect(t){this[c].set("onselect",t)}get onslotchange(){return this[c].get("onslotchange")??null}set onslotchange(t){this[c].set("onslotchange",t)}get onstalled(){return this[c].get("onstalled")??null}set onstalled(t){this[c].set("onstalled",t)}get onsubmit(){return this[c].get("onsubmit")??null}set onsubmit(t){this[c].set("onsubmit",t)}get onsuspend(){return this[c].get("onsuspend")??null}set onsuspend(t){this[c].set("onsuspend",t)}get ontimeupdate(){return this[c].get("ontimeupdate")??null}set ontimeupdate(t){this[c].set("ontimeupdate",t)}get ontoggle(){return this[c].get("ontoggle")??null}set ontoggle(t){this[c].set("ontoggle",t)}get onvolumechange(){return this[c].get("onvolumechange")??null}set onvolumechange(t){this[c].set("onvolumechange",t)}get onwaiting(){return this[c].get("onwaiting")??null}set onwaiting(t){this[c].set("onwaiting",t)}get onwebkitanimationend(){return this[c].get("onwebkitanimationend")??null}set onwebkitanimationend(t){this[c].set("onwebkitanimationend",t)}get onwebkitanimationiteration(){return this[c].get("onwebkitanimationiteration")??null}set onwebkitanimationiteration(t){this[c].set("onwebkitanimationiteration",t)}get onwebkitanimationstart(){return this[c].get("onwebkitanimationstart")??null}set onwebkitanimationstart(t){this[c].set("onwebkitanimationstart",t)}get onwebkittransitionend(){return this[c].get("onwebkittransitionend")??null}set onwebkittransitionend(t){this[c].set("onwebkittransitionend",t)}get onwheel(){return this[c].get("onwheel")??null}set onwheel(t){this[c].set("onwheel",t)}get onauxclick(){return this[c].get("onauxclick")??null}set onauxclick(t){this[c].set("onauxclick",t)}get ongotpointercapture(){return this[c].get("ongotpointercapture")??null}set ongotpointercapture(t){this[c].set("ongotpointercapture",t)}get onlostpointercapture(){return this[c].get("onlostpointercapture")??null}set onlostpointercapture(t){this[c].set("onlostpointercapture",t)}get onpointerdown(){return this[c].get("onpointerdown")??null}set onpointerdown(t){this[c].set("onpointerdown",t)}get onpointermove(){return this[c].get("onpointermove")??null}set onpointermove(t){this[c].set("onpointermove",t)}get onpointerrawupdate(){return this[c].get("onpointerrawupdate")??null}set onpointerrawupdate(t){this[c].set("onpointerrawupdate",t)}get onpointerup(){return this[c].get("onpointerup")??null}set onpointerup(t){this[c].set("onpointerup",t)}get onpointercancel(){return this[c].get("onpointercancel")??null}set onpointercancel(t){this[c].set("onpointercancel",t)}get onpointerover(){return this[c].get("onpointerover")??null}set onpointerover(t){this[c].set("onpointerover",t)}get onpointerout(){return this[c].get("onpointerout")??null}set onpointerout(t){this[c].set("onpointerout",t)}get onpointerenter(){return this[c].get("onpointerenter")??null}set onpointerenter(t){this[c].set("onpointerenter",t)}get onpointerleave(){return this[c].get("onpointerleave")??null}set onpointerleave(t){this[c].set("onpointerleave",t)}get onselectstart(){return this[c].get("onselectstart")??null}set onselectstart(t){this[c].set("onselectstart",t)}get onselectionchange(){return this[c].get("onselectionchange")??null}set onselectionchange(t){this[c].set("onselectionchange",t)}get onanimationend(){return this[c].get("onanimationend")??null}set onanimationend(t){this[c].set("onanimationend",t)}get onanimationiteration(){return this[c].get("onanimationiteration")??null}set onanimationiteration(t){this[c].set("onanimationiteration",t)}get onanimationstart(){return this[c].get("onanimationstart")??null}set onanimationstart(t){this[c].set("onanimationstart",t)}get ontransitionrun(){return this[c].get("ontransitionrun")??null}set ontransitionrun(t){this[c].set("ontransitionrun",t)}get ontransitionstart(){return this[c].get("ontransitionstart")??null}set ontransitionstart(t){this[c].set("ontransitionstart",t)}get ontransitionend(){return this[c].get("ontransitionend")??null}set ontransitionend(t){this[c].set("ontransitionend",t)}get ontransitioncancel(){return this[c].get("ontransitioncancel")??null}set ontransitioncancel(t){this[c].set("ontransitioncancel",t)}get oncopy(){return this[c].get("oncopy")??null}set oncopy(t){this[c].set("oncopy",t)}get oncut(){return this[c].get("oncut")??null}set oncut(t){this[c].set("oncut",t)}get onpaste(){return this[c].get("onpaste")??null}set onpaste(t){this[c].set("onpaste",t)}get onscrollend(){return this[c].get("onscrollend")??null}set onscrollend(t){this[c].set("onscrollend",t)}get onscrollsnapchange(){return this[c].get("onscrollsnapchange")??null}set onscrollsnapchange(t){this[c].set("onscrollsnapchange",t)}get onscrollsnapchanging(){return this[c].get("onscrollsnapchanging")??null}set onscrollsnapchanging(t){this[c].set("onscrollsnapchanging",t)}get adoptedStyleSheets(){return this[gl]}set adoptedStyleSheets(t){this[gl]=t}get implementation(){return this[Xf]}get readyState(){return this[Ia]}get referrer(){return this[zr]}get defaultView(){return this[mo]}get children(){if(!this[Mr]){let t=this[dt];this[Mr]=new Ne(h,()=>t)}return this[Mr]}get charset(){return this.characterSet}get characterSet(){let t=yt.querySelector(this,"meta[charset]")?.getAttributeNS(null,"charset");return t||"UTF-8"}get title(){let t=me.getElementByTagName(this,"title");return t?t.text.trim():""}set title(t){let r=me.getElementByTagName(this,"title");if(r)r.textContent=t;else{let o=this.createElement("title");o.textContent=t,this.head.appendChild(o)}}get links(){return yt.querySelectorAll(this,"a[href],area[href]")}get forms(){return this[Ru]||(this[Ru]=me.getElementsByTagName(this,"form")),this[Ru]}get childElementCount(){return this[dt].length}get firstElementChild(){return this[dt][0]??null}get lastElementChild(){let t=this[dt];return t[t.length-1]??null}get cookie(){let t=new rt(this[m]).getBrowserFrame();return t?Fi.cookiesToString(t.page.context.cookieContainer.getCookies(this[m].location,!0)):""}set cookie(t){let r=new rt(this[m]).getBrowserFrame();if(!r)return;let o=Fi.stringToCookie(this[m].location,t);o&&r.page.context.cookieContainer.addCookies([o])}get nodeName(){return"#document"}get documentElement(){return this[dt][0]??null}get doctype(){for(let t of this[q])if(t instanceof Hn)return t;return null}get body(){let t=this.documentElement;return t?me.getElementByTagName(t,"body"):null}get head(){let t=this.documentElement;return t?me.getElementByTagName(t,"head"):null}get styleSheets(){let t=yt.querySelectorAll(this,'link[rel="stylesheet"][href],style'),r=[];for(let o of t){let i=o.sheet;i&&r.push(i)}return r}get activeElement(){if(this[qe]&&!this[qe][it]&&(this[qe]=null),this[qe]){let t=this[qe].getRootNode(),r=this[qe];for(;t!==this;)r=t.host,t=r?r.getRootNode():this;return r}return this[qe]||this.body||this.documentElement||null}get scrollingElement(){return this.documentElement}get location(){return this[m].location}get scripts(){return this.getElementsByTagName("script")}get baseURI(){let t=me.getElementByTagName(this,"base");return t?t.href:this[m].location.href}get URL(){return this[m].location.href}get documentURI(){return this.URL}get domain(){return this[m].location.hostname}get visibilityState(){return this.defaultView?WA.visible:WA.hidden}get hidden(){return!this.defaultView}get currentScript(){return this[vi]}get contentType(){return this[Fe]}append(...t){me.append(this,...t)}prepend(...t){me.prepend(this,...t)}replaceChildren(...t){me.replaceChildren(this,...t)}querySelectorAll(t){return yt.querySelectorAll(this,t)}querySelector(t){return yt.querySelector(this,t)}queryCommandSupported(t){if(!arguments.length)throw new this[m].TypeError("Failed to execute 'queryCommandSupported' on 'Document': 1 argument required, but only 0 present.");return!0}getElementsByClassName(t){return me.getElementsByClassName(this,t)}getElementsByTagName(t){return me.getElementsByTagName(this,t)}getElementsByTagNameNS(t,r){return me.getElementsByTagNameNS(this,t,r)}getElementById(t){return me.getElementById(this,t)}getElementsByName(t){return yt.querySelectorAll(this,`[name="${t}"]`)}write(t){if(this[rn]||this[on]){this[rn]&&(this[on]||this.open(),this[rn]=!1);let{documentElement:r,head:o,body:i}=this;(!r||!o||!i)&&this.open(),this[rn]=!1,this[on]=!1,new Kr(this[m],{evaluateScripts:!0}).parse(t,this)}else new Kr(this[m],{evaluateScripts:!0}).parse(t,this.body)}open(){this[on]=!0;for(let a of this[fe].bubbling.keys()){let y=this[fe].bubbling.get(a);if(y)for(let p of y)this.removeEventListener(a,p)}for(let a of this[fe].capturing.keys()){let y=this[fe].capturing.get(a);if(y)for(let p of y)this.removeEventListener(a,p)}let t=this[q];for(;t.length;)this.removeChild(t[0]);let r=this[Xf].createDocumentType("html","",""),o=this.createElement("html"),i=this.createElement("body"),n=this.createElement("head");return this.appendChild(r),this.appendChild(o),o.appendChild(n),o.appendChild(i),this}close(){}createElement(t,r){return this.createElementNS(Yt.html,oo.asciiLowerCase(String(t)),r)}createElementNS(t,r,o){let i=this[m];if(r=String(r),!r)throw new i.DOMException("Failed to execute 'createElementNS' on 'Document': The qualified name provided is empty.");let n=r.split(":"),a=n[1]??n[0],y=n[1]?n[0]:null;switch(t){case Yt.svg:let p=Bb[r.toLowerCase()],d=p&&p.localName===r?i[p.className]:i.SVGElement,b=Ve.createNode(this,d);return b[Z]=r,b[nt]=a,b[Ot]=y,b[tt]=t,b[Mo]=o&&o.is?String(o.is):null,b;case Yt.html:let f=i.customElements[Ps]?.get(o&&o.is?String(o.is):r);if(f){let mt=new f.elementClass;return mt[Z]=oo.asciiUpperCase(r),mt[nt]=a,mt[Ot]=y,mt[tt]=t,mt[Mo]=o&&o.is?String(o.is):null,mt}let S=br[r]?i[br[r].className]:null;if(S){let mt=Ve.createNode(this,S);return mt[Z]=oo.asciiUpperCase(r),mt[nt]=a,mt[Ot]=y,mt[tt]=t,mt[Mo]=o&&o.is?String(o.is):null,mt}let M=r.includes("-")?i.HTMLElement:i.HTMLUnknownElement,N=Ve.createNode(this,M);return N[Z]=oo.asciiUpperCase(r),N[nt]=a,N[Ot]=y,N[tt]=t,N[Mo]=o&&o.is?String(o.is):null,N;default:let K=Ve.createNode(this,xr);return K[Z]=r,K[nt]=a,K[Ot]=y,K[tt]=t,K[Mo]=o&&o.is?String(o.is):null,K}}createTextNode(t){if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'createTextNode' on 'Document': 1 argument required, but only ${arguments.length} present.`);return Ve.createNode(this,this[m].Text,String(t))}createComment(t){if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'createComment' on 'Document': 1 argument required, but only ${arguments.length} present.`);return Ve.createNode(this,this[m].Comment,String(t))}createDocumentFragment(){return Ve.createNode(this,this[m].DocumentFragment)}createNodeIterator(t,r=-1,o=null){return new Om(t,r,o)}createTreeWalker(t,r=-1,o=null){return new Jn(t,r,o)}createEvent(t){return typeof this[m][t]=="function"?new this[m][t]("init"):new k("init")}createAttribute(t){let r=Ve.createNode(this,this[m].Attr),o=oo.asciiLowerCase(t),i=o.split(":");return r[st]=o,r[nt]=i[1]??o,r[Ot]=i[1]?i[0]:null,r}createAttributeNS(t,r){let o=Ve.createNode(this,this[m].Attr),i=r.split(":");if(o[tt]=t,o[st]=r,o[nt]=i[1]??r,o[Ot]=i[1]?i[0]:null,!t&&o[Ot])throw new this[m].DOMException(`Failed to execute 'createAttributeNS' on 'Document': The namespace URI provided ('${t||""}') is not valid for the qualified name provided ('${r}').`,v.namespaceError);return o}importNode(t,r=!1){if(!(t instanceof bt))throw new this[m].DOMException("Parameter 1 was not of type Node.");let o=t.cloneNode(r);return D(this,cg,YA).call(this,o),o}createRange(){return new this[m].Range}adoptNode(t){if(!(t instanceof bt))throw new this[m].DOMException("Parameter 1 was not of type Node.");let r=t[Y]?t[Y].removeChild(t):t;return Object.defineProperty(r,"ownerDocument",{value:this}),r}getSelection(){return this[Na]||(this[Na]=new Rm(this)),this[Na]}hasFocus(){return!!this.activeElement}createProcessingInstruction(t,r){if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'createProcessingInstruction' on 'Document': 2 arguments required, but only ${arguments.length} present.`);if(t=String(t),r=String(r),!t||!aG.test(t))throw new this[m].DOMException(`Failed to execute 'createProcessingInstruction' on 'Document': The target provided ('${t}') is not a valid name.`);if(r.includes("?>"))throw new this[m].DOMException("Failed to execute 'createProcessingInstruction' on 'Document': The data provided ('?>') contains '?>'");let o=Ve.createNode(this,this[m].ProcessingInstruction);return o[Xt]=r,o[Zr]=t,o}elementFromPoint(t,r){return null}[(JN=Mr,zN=qe,XN=cl,$N=vi,QN=Be,jN=rn,KN=on,qN=U,YN=it,WN=gl,HN=Xf,_N=Ia,GN=zr,UN=mo,VN=Ru,ON=$i,DN=T,BN=xs,FN=Fe,RN=Ga,MN=co,IN=c,kN=Na,wt)](){super[wt](),this[Mr]=null,this[qe]=null,this[cl]=null,this[vi]=null,this[mo]=null,this[gl]=[],this[Ru]=null,this[$i]=[],this[xs].clear(),this[Ga]=null,this[co].clear(),this[c].clear(),this[Na]=null}};cg=new WeakSet,YA=function(t){t[T]=this;for(let r of t[q])D(this,cg,YA).call(this,r)};var Ih=class extends Zn{constructor(){super();let e=this.createElement("html"),t=this.createElement("body"),r=this.createElement("head");this.appendChild(e),e.appendChild(r),e.appendChild(t)}[vt](e,t=!1){if(e[U]===L.textNode)throw new this[m].Error("Failed to execute 'appendChild' on 'Node': Nodes of type '#text' may not be inserted inside nodes of type '#document'.");if(e[U]===L.documentFragmentNode)return e;if(e[U]===L.elementNode&&this[dt].length!==0)throw new this[m].Error("Failed to execute 'appendChild' on 'Node': Only one element on document allowed.");return super[vt](e,t)}[uo](e,t,r=!1){if(e[U]===L.textNode)throw new this[m].Error("Failed to execute 'insertBefore' on 'Node': Nodes of type '#text' may not be inserted inside nodes of type '#document'.");if(e[U]===L.documentFragmentNode)return e;if(e[U]===L.elementNode&&this[dt].length!==0)throw new this[m].Error("Failed to execute 'insertBefore' on 'Node': Only one element on document allowed.");return super[uo](e,t,r)}};var ZN,tL,Mh=class extends(tL=Zn,ZN=Fe,tL){constructor(){super(...arguments);s(this,ZN,"application/xml")}};var eL,rL,oL,Rh=class extends Ds{constructor(){super(...arguments);s(this,oL,L.textNode);s(this,rL,null);s(this,eL,null)}get nodeName(){return"#text"}get wholeText(){if(!this[Y])return this[Xt];let t="";for(let r=this.previousSibling;St.isTextNode(r);r=r.previousSibling)t=r.data+t;t+=this[Xt];for(let r=this.nextSibling;St.isTextNode(r);r=r.nextSibling)t+=r.data;return t}get data(){return this[Xt]}set data(t){super.data=t,this[Ar]&&this[Ar][vu](),this[Wr]&&this[Wr][Ba]()}splitText(t){let r=this[Xt].length;if(t<0||t>r)throw new this[m].DOMException("The index is not in the allowed range.",v.indexSizeError);let o=r-t,i=this.substringData(t,o),n=this[T].createTextNode(i);return this[Y]!==null&&this[Y].insertBefore(n,this.nextSibling),this.replaceData(t,o,""),n}toString(){return"[object Text]"}[(oL=U,rL=Ar,eL=Wr,ct)](t=!1){return super[ct](t)}[Io](){super[Io](),this[Ar]&&this[Ar][vu](),this[Wr]&&this[Xt]&&this[Wr][Ba]()}[en](){this[Ar]&&this[Ar][vu](),this[Wr]&&this[Xt]&&this[Wr][Ba](),super[en]()}};var iL,Fh=class extends Ds{constructor(){super(...arguments);s(this,iL,L.commentNode)}get nodeName(){return"#comment"}toString(){return"[object Comment]"}[(iL=U,ct)](t=!1){return super[ct](t)}};var sL,nL,lL,aL,Bh=class extends(aL=Tm,lL=Z,nL=nt,sL=tt,aL){constructor(t=null,r=null){super();s(this,lL,"IMG");s(this,nL,"img");s(this,sL,Yt.html);t!==null&&(this.width=t),r!==null&&(this.height=r)}};var mL,yL,uL,pL,dg=class extends(pL=wm,uL=Z,yL=nt,mL=tt,pL){constructor(t=null){super();s(this,uL,"AUDIO");s(this,yL,"audio");s(this,mL,Yt.html);t!==null&&(this.src=t)}};var Dh,Oh,Vh,oa,Vm,Uh,bg=class{constructor(e){s(this,"target");s(this,"options");s(this,"mutationListener");E(this,Dh);E(this,Oh);E(this,Vh);E(this,oa,[]);E(this,Vm,!1);E(this,Uh,!1);this.options=e.options,this.target=e.target,this.mutationListener={options:e.options,callback:new WeakRef(t=>this.report(t))},w(this,Dh,e.window),w(this,Oh,e.observer),w(this,Vh,e.callback)}report(e){u(this,Vm)||(u(this,oa).push(e),!u(this,Uh)&&(u(this,Dh).queueMicrotask(()=>{if(u(this,Vm))return;w(this,Uh,!1);let t=u(this,oa);t?.length>0&&(w(this,oa,[]),u(this,Vh).call(this,t,u(this,Oh)))}),w(this,Uh,!0)))}takeRecords(){if(u(this,Vm))return[];let e=u(this,oa);return w(this,oa,[]),e}destroy(){u(this,Vm)||(w(this,Vm,!0),this.options=null,this.target=null,this.mutationListener=null,w(this,Dh,null),w(this,Oh,null),w(this,Vh,null),w(this,oa,null))}};Dh=new WeakMap,Oh=new WeakMap,Vh=new WeakMap,oa=new WeakMap,Vm=new WeakMap,Uh=new WeakMap;var gg,ia,fg,Gh=class{constructor(e){E(this,gg);E(this,ia,[]);E(this,fg,!1);if(!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);w(this,gg,e)}observe(e,t){if(u(this,fg))return;if(!e)throw new this[m].TypeError(`Failed to execute 'observe' on 'MutationObserver': The first parameter "target" should be of type "Node".`);if(t&&(t.attributeFilter||t.attributeOldValue)){if(t.attributes===void 0&&(t=Object.assign({},t,{attributes:!0,attributeFilter:t.attributeFilter,attributeOldValue:t.attributeOldValue})),!t.attributes&&t.attributeOldValue)throw new this[m].TypeError("Failed to execute 'observe' on 'MutationObserver': The options object may only set 'attributeOldValue' to true when 'attributes' is true or not present.");if(!t.attributes&&t.attributeFilter)throw new this[m].TypeError("Failed to execute 'observe' on 'MutationObserver': The options object may only set 'attributeFilter' when 'attributes' is true or not present.")}if(t&&t.characterDataOldValue&&(t.characterData===void 0&&(t=Object.assign({},t,{characterData:!0,characterDataOldValue:t.characterDataOldValue})),!t.characterData&&t.characterDataOldValue))throw new this[m].TypeError("Failed to execute 'observe' on 'MutationObserver': The options object may only set 'characterDataOldValue' to true when 'characterData' is true or not present.");if(!t||!t.childList&&!t.attributes&&!t.characterData)throw new this[m].TypeError("Failed to execute 'observe' on 'MutationObserver': The options object must set at least one of 'attributes', 'characterData', or 'childList' to true.");t=Object.assign({},t,{attributeFilter:t.attributeFilter?t.attributeFilter.map(o=>o.toLowerCase()):null});for(let o of u(this,ia))if(o.target===e){o.options=t;return}let r=new bg({window:this[m],options:t,callback:u(this,gg).bind(this),observer:this,target:e});u(this,ia).push(r),this[m][ka].includes(this)||this[m][ka].push(this),e[sy](r.mutationListener)}disconnect(){if(u(this,ia).length===0)return;for(let r of u(this,ia))r.target[Tu](r.mutationListener),r.destroy();w(this,ia,[]);let e=this[m][ka],t=e.indexOf(this);t!==-1&&e.splice(t,1)}takeRecords(){let e=[];for(let t of u(this,ia))e=e.concat(t.takeRecords());return e}[wt](){w(this,fg,!0),this.disconnect()}};gg=new WeakMap,ia=new WeakMap,fg=new WeakMap;var Sg=class extends Tt{postMessage(e,t){}start(){}close(){}};var mG=/\/\*[\s\S]*?\*\//gm,_h,Hh=class{constructor(e){E(this,_h);w(this,_h,e)}parseFromString(e){let t=u(this,_h),r=t[m],o=e.replace(mG,""),i=[],n=/{|}/gm,a=[],y=null,p=0,d;for(;d=n.exec(o);){if(d[0]==="{"){let b=o.substring(p,d.index).trim();if(b[0]==="@"){let f=b.split(" "),S=f[0],M=f.slice(1).join(" ").trim();switch(S){case"@keyframes":case"@-webkit-keyframes":let N=new om(h,r,this);N[bo]=S==="@-webkit-keyframes"?"-webkit-":"",N[st]=M,N[bi]=t,y?(y.type===ht.mediaRule||y.type===ht.containerRule||y.type===ht.supportsRule)&&y.cssRules.push(N):i.push(N),y=N;break;case"@media":let K=M.split(","),mt=new sm(h,r,this);for(let At of K)mt.media.appendMedium(At.trim());mt[bi]=t,y?(y.type===ht.mediaRule||y.type===ht.containerRule||y.type===ht.supportsRule)&&y.cssRules.push(mt):i.push(mt),y=mt;break;case"@container":case"@-webkit-container":let Nt=new Za(h,r,this);Nt[bo]=S==="@-webkit-container"?"-webkit-":"",Nt[Ko]=M,Nt[bi]=t,y?(y.type===ht.mediaRule||y.type===ht.containerRule||y.type===ht.supportsRule)&&y.cssRules.push(Nt):i.push(Nt),y=Nt;break;case"@supports":case"@-webkit-supports":let qt=new mm(h,r,this);qt[bo]=S==="@-webkit-supports"?"-webkit-":"",qt[Ko]=M,qt[bi]=t,y?(y.type===ht.mediaRule||y.type===ht.containerRule||y.type===ht.supportsRule)&&y.cssRules.push(qt):i.push(qt),y=qt;break;case"@font-face":let at=new em(h,r,this);at[Xr]=M,at[bi]=t,y?(y.type===ht.mediaRule||y.type===ht.containerRule||y.type===ht.supportsRule)&&y.cssRules.push(at):i.push(at),y=at;break;case"@scope":case"@-webkit-scope":let xt=new Bn(h,r,this);if(xt[bo]=S==="@-webkit-scope"?"-webkit-":"",xt[bi]=t,M){let At=M.split(/\s+to\s+/);At[0]&&At[0][0]==="("&&At[0][At[0].length-1]===")"&&(xt[_]=At[0].slice(1,-1)),At[1]&&At[1][0]==="("&&At[1][At[1].length-1]===")"&&(xt[j]=At[1].slice(1,-1))}y?(y.type===ht.mediaRule||y.type===ht.containerRule||y.type===ht.supportsRule)&&y.cssRules.push(xt):i.push(xt),y=xt;break;default:let It=new Vn(h,r,this);It[bi]=t,y=It;break}}else if(y&&y.type===ht.keyframesRule){let f=new On(h,r,this),S=b.trim();S==="from"?S="0%":S==="to"&&(S="100%"),f[In]=S,f[bi]=t,f[kl]=y,y.cssRules.push(f),y=f}else if(y&&(y.type===ht.mediaRule||y.type===ht.containerRule||y.type===ht.supportsRule)){if(this.validateSelectorText(b)){let f=new Vn(h,r,this);f[fy]=b,f[bi]=t,f[kl]=y,y.cssRules.push(f),y=f}}else if(this.validateSelectorText(b)){let f=new Vn(h,r,this);f[fy]=b,f[bi]=t,f[kl]=y,y||i.push(f),y=f}y&&a.push(y)}else{if(y){let b=o.substring(p,d.index).trim().replace(/([^;])$/,"$1;");switch(y.type){case ht.fontFaceRule:case ht.keyframeRule:case ht.styleRule:y[Xr]=b;break}}a.pop(),y=a[a.length-1]||null}p=d.index+1}return i}validateSelectorText(e){let t=u(this,_h)[m];return new Bl({window:t,scope:t.document,ignoreErrors:!0}).getSelectorGroups(e).length>0}};_h=new WeakMap;var Pg,Wh=class{constructor(e){s(this,"cssRules",[]);s(this,"media");s(this,"title");s(this,"alternate");s(this,"disabled");E(this,Pg,null);this.media=e&&e.media?e.media:"",this.title=e&&e.title?e.title:"",this.alternate=e&&e.alternate?e.alternate:!1,this.disabled=e&&e.disabled?e.disabled:!1}insertRule(e,t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'insertRule' on 'CSSStyleSheet': 1 argument required, but only 0 present.");let o=new Hh(this).parseFromString(e);if(o.length===0||o.length>1)throw new this[m].DOMException(`Failed to execute 'insertRule' on 'CSSStyleSheet': Failed to parse the rule '${e}'.`,v.syntaxError);if(t!==void 0){if(t>this.cssRules.length)throw new this[m].DOMException(`Failed to execute 'insertRule' on 'CSSStyleSheet': The index provided (${t}) is larger than the maximum index (${this.cssRules.length-1}).`,v.indexSizeError);return this.cssRules.splice(t,0,o[0]),t}let i=this.cssRules.length;return this.cssRules.push(o[0]),i}deleteRule(e){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'deleteRule' on 'CSSStyleSheet': 1 argument required, but only 0 present.");this.cssRules.splice(e,1)}async replace(e){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'replace' on 'CSSStyleSheet': 1 argument required, but only 0 present.");this.replaceSync(e)}replaceSync(e){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'replaceSync' on 'CSSStyleSheet': 1 argument required, but only 0 present.");u(this,Pg)!==e&&(w(this,Pg,e),this.cssRules=new Hh(this).parseFromString(e))}};Pg=new WeakMap;var hL,cL,sa=class extends(cL=Tt,hL=c,cL){constructor(){super(...arguments);s(this,hL,new Map)}get onloadstart(){return this[c].get("onloadstart")??null}set onloadstart(t){this[c].set("onloadstart",t)}get onprogress(){return this[c].get("onprogress")??null}set onprogress(t){this[c].set("onprogress",t)}get onabort(){return this[c].get("onabort")??null}set onabort(t){this[c].set("onabort",t)}get onerror(){return this[c].get("onerror")??null}set onerror(t){this[c].set("onerror",t)}get onload(){return this[c].get("onload")??null}set onload(t){this[c].set("onload",t)}get ontimeout(){return this[c].get("ontimeout")??null}set ontimeout(t){this[c].set("ontimeout",t)}get onloadend(){return this[c].get("onloadend")??null}set onloadend(t){this[c].set("onloadend",t)}};var Ag=class extends sa{};var Yh=class{constructor(){s(this,"signal",new this[m].AbortSignal)}abort(e){this.signal[gs](e)}};var dL,bL,qh=class extends Tt{constructor(){super();s(this,bL,!1);s(this,dL);s(this,"onabort",null);if(!this[m])throw new TypeError("Failed to construct 'AbortSignal': Illegal constructor")}get[(bL=ve,dL=di,Symbol.toStringTag)](){return"AbortSignal"}get aborted(){return this[ve]}set aborted(t){}get reason(){return this[di]}set reason(t){}[gs](t){this.aborted||(this[di]=t!==void 0?t:new this[m].DOMException("signal is aborted without reason",v.abortError),this[ve]=!0,this.dispatchEvent(new k("abort")))}throwIfAborted(){if(this.aborted)throw this.reason}static abort(t){let r=new this;return r[di]=t!==void 0?t:new this[m].DOMException("signal is aborted without reason",v.abortError),r[ve]=!0,r}static timeout(t){let r=this[m],o=new this;return r.setTimeout(()=>{o[gs](new r.DOMException("signal timed out",v.timeoutError))},t),o}static any(t){for(let n of t)if(n[ve])return this.abort(n[di]);let r=new this,o=new Map,i=()=>{for(let n of t)n.removeEventListener("abort",o.get(n))};for(let n of t){let a=()=>{i(),r[gs](n[di])};o.set(n,a),n.addEventListener("abort",a)}return r}};var Kh=class extends Tt{constructor(t="granted"){super();s(this,"state");s(this,"onchange",null);this.state=t}};var qA;(function(l){l[l.unsent=0]="unsent",l[l.opened=1]="opened",l[l.headersReceived=2]="headersReceived",l[l.loading=3]="loading",l[l.done=4]="done"})(qA||(qA={}));var Ye=qA;var KA;(function(l){l.arraybuffer="arraybuffer",l.blob="blob",l.document="document",l.json="json",l.text="text"})(KA||(KA={}));var tl=KA;var jh=class{static parse(e){if(!e.data)return"";switch(e.responseType){case tl.arraybuffer:let t=new ArrayBuffer(e.data.length),r=new Uint8Array(t);return r.set(e.data),r;case tl.blob:try{return new e.window.Blob([new Uint8Array(e.data)],{type:e.contentType||""})}catch{}return null;case tl.document:let o=e.window,i=new o.DOMParser;try{return i.parseFromString(e.data.toString(),"application/xml")}catch{}return null;case tl.json:try{return JSON.parse(e.data.toString())}catch{}return null;case tl.text:default:return e.data.toString()}}};var Qh,na,Um,Tr,jr,iu,rl,la,oi,$h,Ge,gL,fL,vr,el=class extends sa{constructor(){super();E(this,Ge);s(this,"upload",new this[m].XMLHttpRequestUpload);s(this,"withCredentials",!1);E(this,Qh,!0);E(this,na,null);E(this,Um,!1);E(this,Tr,null);E(this,jr,null);E(this,iu,"");E(this,rl,null);E(this,la,Buffer.from([]));E(this,oi,Ye.unsent);E(this,$h,null);if(!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get status(){return u(this,jr)?.status||0}get statusText(){return u(this,jr)?.statusText||""}get response(){return u(this,jr)?u(this,rl):""}get responseText(){if(this.responseType!==tl.text&&this.responseType!=="")throw new this[m].DOMException(`Failed to read the 'responseText' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'text' (was '${this.responseType}').`,v.invalidStateError);return u(this,rl)!==null?u(this,rl):this.readyState===Ye.headersReceived||this.readyState===Ye.loading?u(this,la).toString()??"":""}get responseXML(){if(this.responseType!==tl.document&&this.responseType!=="")throw new this[m].DOMException(`Failed to read the 'responseXML' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'document' (was '${this.responseType}').`,v.invalidStateError);return this.responseType===""?null:u(this,rl)}get responseURL(){return u(this,jr)?.url||""}get readyState(){return u(this,oi)}set responseType(t){if(this.readyState!==Ye.opened&&this.readyState!==Ye.unsent)throw new this[m].DOMException("Failed to set the 'responseType' property on 'XMLHttpRequest': The object's state must be OPENED or UNSENT.",v.invalidStateError);if(!u(this,Qh))throw new this[m].DOMException("Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be changed for synchronous requests made from a document.",v.invalidStateError);w(this,iu,t)}get responseType(){return u(this,iu)}open(t,r,o=!0,i,n){let a=this[m];if(!o&&this.responseType&&this.responseType!==tl.text)throw new a.DOMException("Failed to execute 'open' on 'XMLHttpRequest': Synchronous requests from a document must not set a response type.",v.invalidAccessError);let y=new this[m].Headers;if(i){let p=Buffer.from(`${i}:${n||""}`);y.set("Authorization","Basic "+p.toString("base64"))}w(this,Qh,o),w(this,Um,!1),w(this,jr,null),w(this,rl,null),w(this,la,Buffer.from([])),w(this,na,new a.AbortController),w(this,Tr,new a.Request(r,{method:t,headers:y,signal:u(this,na).signal,credentials:this.withCredentials?"include":"same-origin"})),w(this,oi,Ye.opened)}setRequestHeader(t,r){if(this.readyState!==Ye.opened)throw new this[m].DOMException("Failed to execute 'setRequestHeader' on 'XMLHttpRequest': The object's state must be OPENED.",v.invalidStateError);return Fs.isHeaderForbidden(t)?!1:(u(this,Tr).headers.set(t,r),!0)}getResponseHeader(t){return u(this,jr)?.headers.get(t)??null}getAllResponseHeaders(){if(!u(this,jr))return"";let t=[];for(let[r,o]of u(this,jr)?.headers){let i=r.toLowerCase();i!=="set-cookie"&&i!=="set-cookie2"&&t.push(`${r}: ${o}`)}return t.join(`\r
194
- `)}send(t){let r=this[m];if(this.readyState!=Ye.opened)throw new this[m].DOMException("Failed to execute 'send' on 'XMLHttpRequest': Connection must be opened before send() is called.",v.invalidStateError);typeof t=="object"&&t!==null&&t[U]===L.documentNode&&(t=new r.XMLSerializer().serializeToString(t)),u(this,Qh)?D(this,Ge,gL).call(this,t).catch(o=>{throw o}):D(this,Ge,fL).call(this,t)}abort(){u(this,Um)||(w(this,Um,!0),u(this,na).abort())}overrideMimeType(t){if(this.readyState===Ye.loading||this.readyState===Ye.done)throw new this[m].DOMException("Failed to execute 'overrideMimeType' on 'XMLHttpRequest': MIME type cannot be overridden when the request state is LOADING or DONE.",v.invalidStateError);w(this,$h,t)}};Qh=new WeakMap,na=new WeakMap,Um=new WeakMap,Tr=new WeakMap,jr=new WeakMap,iu=new WeakMap,rl=new WeakMap,la=new WeakMap,oi=new WeakMap,$h=new WeakMap,Ge=new WeakSet,gL=async function(t){let r=this[m],o=new rt(r).getBrowserFrame();if(!o)return;let i=o[gt],n=i.startTask(()=>this.abort());w(this,oi,Ye.loading),D(this,Ge,vr).call(this,new k("readystatechange")),D(this,Ge,vr).call(this,new k("loadstart")),t&&w(this,Tr,new r.Request(u(this,Tr).url,{method:u(this,Tr).method,headers:u(this,Tr).headers,signal:u(this,na).signal,credentials:u(this,Tr).credentials,body:t})),u(this,na).signal.addEventListener("abort",()=>{w(this,Um,!0),w(this,oi,Ye.unsent),D(this,Ge,vr).call(this,new k("abort")),D(this,Ge,vr).call(this,new k("loadend")),D(this,Ge,vr).call(this,new k("readystatechange")),i.endTask(n)});let a=f=>{if(f instanceof ae&&f.name===v.abortError){if(u(this,Um))return;w(this,oi,Ye.unsent),D(this,Ge,vr).call(this,new k("abort"))}else w(this,oi,Ye.done),D(this,Ge,vr).call(this,new Un("error",{error:f,message:f.message}));D(this,Ge,vr).call(this,new k("loadend")),D(this,Ge,vr).call(this,new k("readystatechange")),i.endTask(n)},y=new zo({browserFrame:o,window:r,url:u(this,Tr).url,init:u(this,Tr)});try{w(this,jr,await y.send())}catch(f){a(f);return}w(this,oi,Ye.headersReceived),D(this,Ge,vr).call(this,new k("readystatechange"));let p=u(this,jr).headers.get("Content-Length"),d=p!==null&&!isNaN(Number(p))?Number(p):null,b=0;if(u(this,jr).body){let f;try{for await(let S of u(this,jr).body){let M=typeof S=="string"?Buffer.from(S):S;w(this,la,Buffer.concat([u(this,la),M])),b+=S.length;try{D(this,Ge,vr).call(this,new Qo("progress",{lengthComputable:d!==null,loaded:b,total:d!==null?d:0}))}catch(N){throw f=N,N}}}catch(S){if(S===f)throw S;a(S);return}}w(this,rl,jh.parse({window:r,responseType:u(this,iu),data:u(this,la),contentType:u(this,$h)||u(this,jr).headers.get("Content-Type")||u(this,Tr).headers.get("Content-Type")})),w(this,oi,Ye.done),w(this,la,Buffer.from([])),i.endTask(n),D(this,Ge,vr).call(this,new k("readystatechange")),D(this,Ge,vr).call(this,new k("load")),D(this,Ge,vr).call(this,new k("loadend"))},fL=function(t){let r=this[m],o=new rt(r).getBrowserFrame();if(!o)return;t&&w(this,Tr,new r.Request(u(this,Tr).url,{method:u(this,Tr).method,headers:u(this,Tr).headers,signal:u(this,na).signal,credentials:u(this,Tr).credentials,body:t})),w(this,oi,Ye.loading);let i=new Ky({browserFrame:o,window:r,url:u(this,Tr).url,init:u(this,Tr)});try{w(this,jr,i.send())}catch(n){w(this,oi,Ye.done),D(this,Ge,vr).call(this,new Un("error",{error:n,message:n.message})),D(this,Ge,vr).call(this,new k("loadend")),D(this,Ge,vr).call(this,new k("readystatechange"));return}w(this,oi,Ye.headersReceived),w(this,rl,jh.parse({window:r,responseType:u(this,iu),data:u(this,jr).body,contentType:u(this,$h)||u(this,jr).headers.get("Content-Type")||u(this,Tr).headers.get("Content-Type")})),w(this,oi,Ye.done),D(this,Ge,vr).call(this,new k("readystatechange")),D(this,Ge,vr).call(this,new k("load")),D(this,Ge,vr).call(this,new k("loadend"))},vr=function(t){let r=new rt(this[m]).getBrowserFrame();if(!r?.page?.context?.browser?.settings?.errorCapture)return;let o=r.page.context.browser.settings,i=o.errorCapture;o.errorCapture=ue.tryAndCatch,this.dispatchEvent(t),o.errorCapture=i},s(el,"UNSENT",Ye.unsent),s(el,"OPENED",Ye.opened),s(el,"HEADERS_RECEIVED",Ye.headersReceived),s(el,"LOADING",Ye.loading),s(el,"DONE",Ye.done);var yG=/<([^\s/!>?]+)|<\/([^\s/!>?]+)\s*>|(<!--)|(-->)|(<!)|(<\?)|(\/>)|(>)/gm,uG=/\s*([a-zA-Z0-9-_:]+)\s*=\s*"([^"]*)("{0,1})|\s*([a-zA-Z0-9-_:]+)\s*=\s*'([^']*)('{0,1})/gm,SL=/^\s*([a-zA-Z0-9-_:]+)$/,pG=/version="[^"]+"/,hG=/"([^"]+)"/gm,wg=/\s+/,cG=/\n/g,$t;(function(l){l.any="any",l.startTag="startTag",l.comment="comment",l.documentType="documentType",l.processingInstruction="processingInstruction",l.error="error"})($t||($t={}));var dG=Object.values(Yt),Xh=class{constructor(e){s(this,"window");s(this,"rootNode",null);s(this,"nodeStack",[]);s(this,"tagNameStack",[]);s(this,"defaultNamespaceStack",null);s(this,"namespacePrefixStack",null);s(this,"startTagIndex",0);s(this,"markupRegExp",null);s(this,"lastIndex",0);s(this,"errorIndex",0);s(this,"nextElement",null);s(this,"nextTagName",null);s(this,"currentNode",null);s(this,"readState",$t.any);s(this,"errorMessage",null);this.window=e}parse(e){this.rootNode=new this.window.XMLDocument,this.nodeStack=[this.rootNode],this.tagNameStack=[null],this.currentNode=this.rootNode,this.readState=$t.any,this.defaultNamespaceStack=[null],this.namespacePrefixStack=[null],this.startTagIndex=0,this.errorIndex=0,this.errorMessage=null,this.markupRegExp=new RegExp(yG,"gm"),this.lastIndex=0;let t;for(this.rootNode[mo]=this.window,e=String(e);t=this.markupRegExp.exec(e);){switch(this.readState){case $t.any:t.index!==this.lastIndex&&(t[1]||t[2]||t[3]||t[4]||t[5]!==void 0||t[6])&&this.parsePlainText(e.substring(this.lastIndex,t.index)),t[1]?this.parseStartTag(t[1]):t[2]?this.parseEndTag(t[2])||(this.errorMessage=`Opening and ending tag mismatch: ${this.tagNameStack[this.tagNameStack.length-1]} line ${e.substring(0,this.startTagIndex).split(`
193
+ `);import{URL as aG}from"url";var pg=class{static openPage(e,t){let r=this.getWindowFeatures(t?.features||""),o=t?.target!==void 0?String(t.target):null,i=new aG(e.window.location.href),n=Co.getRelativeURL(e,t?.url),a=e.window,y;if(e.window!==a)return null;switch(o){case"_self":y=e;break;case"_top":y=e.page.mainFrame;break;case"_parent":y=e.parentFrame??e;break;default:y=e.page.context.newPage().mainFrame,y[xo]=e;break}if(y.goto(n.href,{referrer:r.noreferrer?void 0:e.window.location.origin,referrerPolicy:r.noreferrer?"no-referrer":void 0}).catch(d=>{y.page.console.error(d)}),n.protocol==="javascript:")return y.window;if(y===e&&e.window===a)return null;r.popup&&o!=="_self"&&o!=="_top"&&o!=="_parent"&&(y[bl]=!0,(r?.width||r?.height)&&y.page.setViewport({width:r?.width,height:r?.height}),r?.left&&(y.window.screenLeft=r.left,y.window.screenX=r.left),r?.top&&(y.window.screenTop=r.top,y.window.screenY=r.top)),o&&o!=="_self"&&o!=="_top"&&o!=="_parent"&&o!=="_blank"&&(y.window.name=o);let p=Mi.isCORS(i,y.url);return!r.noopener&&!r.noreferrer&&e.window&&y[xo]&&y.window!==e.window&&(y[ji]=p?new Ql(e.window):e.window),r.noopener||r.noreferrer?null:p?new Ql(y.window,e.window):y.window}static getWindowFeatures(e){let t=e.split(","),r={popup:!1,width:0,height:0,left:0,top:0,noopener:!1,noreferrer:!1};for(let o of t){let[i,n]=o.split("=");switch(i){case"popup":r.popup=!n||n==="yes"||n==="1"||n==="true";break;case"width":case"innerWidth":r.width=parseInt(n,10);break;case"height":case"innerHeight":r.height=parseInt(n,10);break;case"left":case"screenX":r.left=parseInt(n,10);break;case"top":case"screenY":r.top=parseInt(n,10);break;case"noopener":r.noopener=!0;break;case"noreferrer":r.noreferrer=!0;break}}return r}};import{PerformanceObserver as gH,PerformanceEntry as fH}from"node:perf_hooks";var ou,hg=class{constructor(e){E(this,ou);w(this,ou,e)}createDocument(e,t,r){return new(u(this,ou))[m].HTMLDocument}createHTMLDocument(){return new(u(this,ou))[m].HTMLDocument}createDocumentType(e,t,r){let o=Ve.createNode(u(this,ou),Hn);return o[st]=e,o[fl]=t,o[Sl]=r,o}};ou=new WeakMap;var HA;(function(l){l.hidden="hidden",l.visible="visible",l.prerender="prerender"})(HA||(HA={}));var WA=HA;var mG=/^[a-z][a-z0-9-]+$/,kN,IN,MN,RN,FN,BN,DN,ON,VN,UN,GN,_N,HN,WN,YN,qN,KN,jN,QN,$N,XN,zN,JN,cg,YA,Zn=class extends bt{constructor(){super(...arguments);E(this,cg);s(this,JN,null);s(this,zN,null);s(this,XN,null);s(this,$N,null);s(this,QN,this);s(this,jN,!0);s(this,KN,!1);s(this,qN,L.documentNode);s(this,YN,!0);s(this,WN,[]);s(this,HN,new hg(this));s(this,_N,LS.interactive);s(this,GN,"");s(this,UN,null);s(this,VN,null);s(this,ON,[]);s(this,DN,null);s(this,BN,new Map);s(this,FN,"text/html");s(this,RN,null);s(this,MN,new Map);s(this,IN,new Map);s(this,kN,null)}get onreadystatechange(){return this[c].get("onreadystatechange")??null}set onreadystatechange(t){this[c].set("onreadystatechange",t)}get onpointerlockchange(){return this[c].get("onpointerlockchange")??null}set onpointerlockchange(t){this[c].set("onpointerlockchange",t)}get onpointerlockerror(){return this[c].get("onpointerlockerror")??null}set onpointerlockerror(t){this[c].set("onpointerlockerror",t)}get onbeforecopy(){return this[c].get("onbeforecopy")??null}set onbeforecopy(t){this[c].set("onbeforecopy",t)}get onbeforecut(){return this[c].get("onbeforecut")??null}set onbeforecut(t){this[c].set("onbeforecut",t)}get onbeforepaste(){return this[c].get("onbeforepaste")??null}set onbeforepaste(t){this[c].set("onbeforepaste",t)}get onfreeze(){return this[c].get("onfreeze")??null}set onfreeze(t){this[c].set("onfreeze",t)}get onprerenderingchange(){return this[c].get("onprerenderingchange")??null}set onprerenderingchange(t){this[c].set("onprerenderingchange",t)}get onresume(){return this[c].get("onresume")??null}set onresume(t){this[c].set("onresume",t)}get onsearch(){return this[c].get("onsearch")??null}set onsearch(t){this[c].set("onsearch",t)}get onvisibilitychange(){return this[c].get("onvisibilitychange")??null}set onvisibilitychange(t){this[c].set("onvisibilitychange",t)}get onfullscreenchange(){return this[c].get("onfullscreenchange")??null}set onfullscreenchange(t){this[c].set("onfullscreenchange",t)}get onfullscreenerror(){return this[c].get("onfullscreenerror")??null}set onfullscreenerror(t){this[c].set("onfullscreenerror",t)}get onwebkitfullscreenchange(){return this[c].get("onwebkitfullscreenchange")??null}set onwebkitfullscreenchange(t){this[c].set("onwebkitfullscreenchange",t)}get onwebkitfullscreenerror(){return this[c].get("onwebkitfullscreenerror")??null}set onwebkitfullscreenerror(t){this[c].set("onwebkitfullscreenerror",t)}get onbeforexrselect(){return this[c].get("onbeforexrselect")??null}set onbeforexrselect(t){this[c].set("onbeforexrselect",t)}get onabort(){return this[c].get("onabort")??null}set onabort(t){this[c].set("onabort",t)}get onbeforeinput(){return this[c].get("onbeforeinput")??null}set onbeforeinput(t){this[c].set("onbeforeinput",t)}get onbeforematch(){return this[c].get("onbeforematch")??null}set onbeforematch(t){this[c].set("onbeforematch",t)}get onbeforetoggle(){return this[c].get("onbeforetoggle")??null}set onbeforetoggle(t){this[c].set("onbeforetoggle",t)}get onblur(){return this[c].get("onblur")??null}set onblur(t){this[c].set("onblur",t)}get oncancel(){return this[c].get("oncancel")??null}set oncancel(t){this[c].set("oncancel",t)}get oncanplay(){return this[c].get("oncanplay")??null}set oncanplay(t){this[c].set("oncanplay",t)}get oncanplaythrough(){return this[c].get("oncanplaythrough")??null}set oncanplaythrough(t){this[c].set("oncanplaythrough",t)}get onchange(){return this[c].get("onchange")??null}set onchange(t){this[c].set("onchange",t)}get onclick(){return this[c].get("onclick")??null}set onclick(t){this[c].set("onclick",t)}get onclose(){return this[c].get("onclose")??null}set onclose(t){this[c].set("onclose",t)}get oncontentvisibilityautostatechange(){return this[c].get("oncontentvisibilityautostatechange")??null}set oncontentvisibilityautostatechange(t){this[c].set("oncontentvisibilityautostatechange",t)}get oncontextlost(){return this[c].get("oncontextlost")??null}set oncontextlost(t){this[c].set("oncontextlost",t)}get oncontextmenu(){return this[c].get("oncontextmenu")??null}set oncontextmenu(t){this[c].set("oncontextmenu",t)}get oncontextrestored(){return this[c].get("oncontextrestored")??null}set oncontextrestored(t){this[c].set("oncontextrestored",t)}get oncuechange(){return this[c].get("oncuechange")??null}set oncuechange(t){this[c].set("oncuechange",t)}get ondblclick(){return this[c].get("ondblclick")??null}set ondblclick(t){this[c].set("ondblclick",t)}get ondrag(){return this[c].get("ondrag")??null}set ondrag(t){this[c].set("ondrag",t)}get ondragend(){return this[c].get("ondragend")??null}set ondragend(t){this[c].set("ondragend",t)}get ondragenter(){return this[c].get("ondragenter")??null}set ondragenter(t){this[c].set("ondragenter",t)}get ondragleave(){return this[c].get("ondragleave")??null}set ondragleave(t){this[c].set("ondragleave",t)}get ondragover(){return this[c].get("ondragover")??null}set ondragover(t){this[c].set("ondragover",t)}get ondragstart(){return this[c].get("ondragstart")??null}set ondragstart(t){this[c].set("ondragstart",t)}get ondrop(){return this[c].get("ondrop")??null}set ondrop(t){this[c].set("ondrop",t)}get ondurationchange(){return this[c].get("ondurationchange")??null}set ondurationchange(t){this[c].set("ondurationchange",t)}get onemptied(){return this[c].get("onemptied")??null}set onemptied(t){this[c].set("onemptied",t)}get onended(){return this[c].get("onended")??null}set onended(t){this[c].set("onended",t)}get onerror(){return this[c].get("onerror")??null}set onerror(t){this[c].set("onerror",t)}get onfocus(){return this[c].get("onfocus")??null}set onfocus(t){this[c].set("onfocus",t)}get onformdata(){return this[c].get("onformdata")??null}set onformdata(t){this[c].set("onformdata",t)}get oninput(){return this[c].get("oninput")??null}set oninput(t){this[c].set("oninput",t)}get oninvalid(){return this[c].get("oninvalid")??null}set oninvalid(t){this[c].set("oninvalid",t)}get onkeydown(){return this[c].get("onkeydown")??null}set onkeydown(t){this[c].set("onkeydown",t)}get onkeypress(){return this[c].get("onkeypress")??null}set onkeypress(t){this[c].set("onkeypress",t)}get onkeyup(){return this[c].get("onkeyup")??null}set onkeyup(t){this[c].set("onkeyup",t)}get onload(){return this[c].get("onload")??null}set onload(t){this[c].set("onload",t)}get onloadeddata(){return this[c].get("onloadeddata")??null}set onloadeddata(t){this[c].set("onloadeddata",t)}get onloadedmetadata(){return this[c].get("onloadedmetadata")??null}set onloadedmetadata(t){this[c].set("onloadedmetadata",t)}get onloadstart(){return this[c].get("onloadstart")??null}set onloadstart(t){this[c].set("onloadstart",t)}get onmousedown(){return this[c].get("onmousedown")??null}set onmousedown(t){this[c].set("onmousedown",t)}get onmouseenter(){return this[c].get("onmouseenter")??null}set onmouseenter(t){this[c].set("onmouseenter",t)}get onmouseleave(){return this[c].get("onmouseleave")??null}set onmouseleave(t){this[c].set("onmouseleave",t)}get onmousemove(){return this[c].get("onmousemove")??null}set onmousemove(t){this[c].set("onmousemove",t)}get onmouseout(){return this[c].get("onmouseout")??null}set onmouseout(t){this[c].set("onmouseout",t)}get onmouseover(){return this[c].get("onmouseover")??null}set onmouseover(t){this[c].set("onmouseover",t)}get onmouseup(){return this[c].get("onmouseup")??null}set onmouseup(t){this[c].set("onmouseup",t)}get onmousewheel(){return this[c].get("onmousewheel")??null}set onmousewheel(t){this[c].set("onmousewheel",t)}get onpause(){return this[c].get("onpause")??null}set onpause(t){this[c].set("onpause",t)}get onplay(){return this[c].get("onplay")??null}set onplay(t){this[c].set("onplay",t)}get onplaying(){return this[c].get("onplaying")??null}set onplaying(t){this[c].set("onplaying",t)}get onprogress(){return this[c].get("onprogress")??null}set onprogress(t){this[c].set("onprogress",t)}get onratechange(){return this[c].get("onratechange")??null}set onratechange(t){this[c].set("onratechange",t)}get onreset(){return this[c].get("onreset")??null}set onreset(t){this[c].set("onreset",t)}get onresize(){return this[c].get("onresize")??null}set onresize(t){this[c].set("onresize",t)}get onscroll(){return this[c].get("onscroll")??null}set onscroll(t){this[c].set("onscroll",t)}get onsecuritypolicyviolation(){return this[c].get("onsecuritypolicyviolation")??null}set onsecuritypolicyviolation(t){this[c].set("onsecuritypolicyviolation",t)}get onseeked(){return this[c].get("onseeked")??null}set onseeked(t){this[c].set("onseeked",t)}get onseeking(){return this[c].get("onseeking")??null}set onseeking(t){this[c].set("onseeking",t)}get onselect(){return this[c].get("onselect")??null}set onselect(t){this[c].set("onselect",t)}get onslotchange(){return this[c].get("onslotchange")??null}set onslotchange(t){this[c].set("onslotchange",t)}get onstalled(){return this[c].get("onstalled")??null}set onstalled(t){this[c].set("onstalled",t)}get onsubmit(){return this[c].get("onsubmit")??null}set onsubmit(t){this[c].set("onsubmit",t)}get onsuspend(){return this[c].get("onsuspend")??null}set onsuspend(t){this[c].set("onsuspend",t)}get ontimeupdate(){return this[c].get("ontimeupdate")??null}set ontimeupdate(t){this[c].set("ontimeupdate",t)}get ontoggle(){return this[c].get("ontoggle")??null}set ontoggle(t){this[c].set("ontoggle",t)}get onvolumechange(){return this[c].get("onvolumechange")??null}set onvolumechange(t){this[c].set("onvolumechange",t)}get onwaiting(){return this[c].get("onwaiting")??null}set onwaiting(t){this[c].set("onwaiting",t)}get onwebkitanimationend(){return this[c].get("onwebkitanimationend")??null}set onwebkitanimationend(t){this[c].set("onwebkitanimationend",t)}get onwebkitanimationiteration(){return this[c].get("onwebkitanimationiteration")??null}set onwebkitanimationiteration(t){this[c].set("onwebkitanimationiteration",t)}get onwebkitanimationstart(){return this[c].get("onwebkitanimationstart")??null}set onwebkitanimationstart(t){this[c].set("onwebkitanimationstart",t)}get onwebkittransitionend(){return this[c].get("onwebkittransitionend")??null}set onwebkittransitionend(t){this[c].set("onwebkittransitionend",t)}get onwheel(){return this[c].get("onwheel")??null}set onwheel(t){this[c].set("onwheel",t)}get onauxclick(){return this[c].get("onauxclick")??null}set onauxclick(t){this[c].set("onauxclick",t)}get ongotpointercapture(){return this[c].get("ongotpointercapture")??null}set ongotpointercapture(t){this[c].set("ongotpointercapture",t)}get onlostpointercapture(){return this[c].get("onlostpointercapture")??null}set onlostpointercapture(t){this[c].set("onlostpointercapture",t)}get onpointerdown(){return this[c].get("onpointerdown")??null}set onpointerdown(t){this[c].set("onpointerdown",t)}get onpointermove(){return this[c].get("onpointermove")??null}set onpointermove(t){this[c].set("onpointermove",t)}get onpointerrawupdate(){return this[c].get("onpointerrawupdate")??null}set onpointerrawupdate(t){this[c].set("onpointerrawupdate",t)}get onpointerup(){return this[c].get("onpointerup")??null}set onpointerup(t){this[c].set("onpointerup",t)}get onpointercancel(){return this[c].get("onpointercancel")??null}set onpointercancel(t){this[c].set("onpointercancel",t)}get onpointerover(){return this[c].get("onpointerover")??null}set onpointerover(t){this[c].set("onpointerover",t)}get onpointerout(){return this[c].get("onpointerout")??null}set onpointerout(t){this[c].set("onpointerout",t)}get onpointerenter(){return this[c].get("onpointerenter")??null}set onpointerenter(t){this[c].set("onpointerenter",t)}get onpointerleave(){return this[c].get("onpointerleave")??null}set onpointerleave(t){this[c].set("onpointerleave",t)}get onselectstart(){return this[c].get("onselectstart")??null}set onselectstart(t){this[c].set("onselectstart",t)}get onselectionchange(){return this[c].get("onselectionchange")??null}set onselectionchange(t){this[c].set("onselectionchange",t)}get onanimationend(){return this[c].get("onanimationend")??null}set onanimationend(t){this[c].set("onanimationend",t)}get onanimationiteration(){return this[c].get("onanimationiteration")??null}set onanimationiteration(t){this[c].set("onanimationiteration",t)}get onanimationstart(){return this[c].get("onanimationstart")??null}set onanimationstart(t){this[c].set("onanimationstart",t)}get ontransitionrun(){return this[c].get("ontransitionrun")??null}set ontransitionrun(t){this[c].set("ontransitionrun",t)}get ontransitionstart(){return this[c].get("ontransitionstart")??null}set ontransitionstart(t){this[c].set("ontransitionstart",t)}get ontransitionend(){return this[c].get("ontransitionend")??null}set ontransitionend(t){this[c].set("ontransitionend",t)}get ontransitioncancel(){return this[c].get("ontransitioncancel")??null}set ontransitioncancel(t){this[c].set("ontransitioncancel",t)}get oncopy(){return this[c].get("oncopy")??null}set oncopy(t){this[c].set("oncopy",t)}get oncut(){return this[c].get("oncut")??null}set oncut(t){this[c].set("oncut",t)}get onpaste(){return this[c].get("onpaste")??null}set onpaste(t){this[c].set("onpaste",t)}get onscrollend(){return this[c].get("onscrollend")??null}set onscrollend(t){this[c].set("onscrollend",t)}get onscrollsnapchange(){return this[c].get("onscrollsnapchange")??null}set onscrollsnapchange(t){this[c].set("onscrollsnapchange",t)}get onscrollsnapchanging(){return this[c].get("onscrollsnapchanging")??null}set onscrollsnapchanging(t){this[c].set("onscrollsnapchanging",t)}get adoptedStyleSheets(){return this[gl]}set adoptedStyleSheets(t){this[gl]=t}get implementation(){return this[Xf]}get readyState(){return this[Ia]}get referrer(){return this[zr]}get defaultView(){return this[mo]}get children(){if(!this[Mr]){let t=this[dt];this[Mr]=new Ne(h,()=>t)}return this[Mr]}get charset(){return this.characterSet}get characterSet(){let t=yt.querySelector(this,"meta[charset]")?.getAttributeNS(null,"charset");return t||"UTF-8"}get title(){let t=me.getElementByTagName(this,"title");return t?t.text.trim():""}set title(t){let r=me.getElementByTagName(this,"title");if(r)r.textContent=t;else{let o=this.createElement("title");o.textContent=t,this.head.appendChild(o)}}get links(){return yt.querySelectorAll(this,"a[href],area[href]")}get forms(){return this[Ru]||(this[Ru]=me.getElementsByTagName(this,"form")),this[Ru]}get childElementCount(){return this[dt].length}get firstElementChild(){return this[dt][0]??null}get lastElementChild(){let t=this[dt];return t[t.length-1]??null}get cookie(){let t=new rt(this[m]).getBrowserFrame();return t?Fi.cookiesToString(t.page.context.cookieContainer.getCookies(this[m].location,!0)):""}set cookie(t){let r=new rt(this[m]).getBrowserFrame();if(!r)return;let o=Fi.stringToCookie(this[m].location,t);o&&r.page.context.cookieContainer.addCookies([o])}get nodeName(){return"#document"}get documentElement(){return this[dt][0]??null}get doctype(){for(let t of this[q])if(t instanceof Hn)return t;return null}get body(){let t=this.documentElement;return t?me.getElementByTagName(t,"body"):null}get head(){let t=this.documentElement;return t?me.getElementByTagName(t,"head"):null}get styleSheets(){let t=yt.querySelectorAll(this,'link[rel="stylesheet"][href],style'),r=[];for(let o of t){let i=o.sheet;i&&r.push(i)}return r}get activeElement(){if(this[Ke]&&!this[Ke][it]&&(this[Ke]=null),this[Ke]){let t=this[Ke].getRootNode(),r=this[Ke];for(;t!==this;)r=t.host,t=r?r.getRootNode():this;return r}return this[Ke]||this.body||this.documentElement||null}get scrollingElement(){return this.documentElement}get location(){return this[m].location}get scripts(){return this.getElementsByTagName("script")}get baseURI(){let t=me.getElementByTagName(this,"base");return t?t.href:this[m].location.href}get URL(){return this[m].location.href}get documentURI(){return this.URL}get domain(){return this[m].location.hostname}get visibilityState(){return this.defaultView?WA.visible:WA.hidden}get hidden(){return!this.defaultView}get currentScript(){return this[vi]}get contentType(){return this[Fe]}append(...t){me.append(this,...t)}prepend(...t){me.prepend(this,...t)}replaceChildren(...t){me.replaceChildren(this,...t)}querySelectorAll(t){return yt.querySelectorAll(this,t)}querySelector(t){return yt.querySelector(this,t)}queryCommandSupported(t){if(!arguments.length)throw new this[m].TypeError("Failed to execute 'queryCommandSupported' on 'Document': 1 argument required, but only 0 present.");return!0}getElementsByClassName(t){return me.getElementsByClassName(this,t)}getElementsByTagName(t){return me.getElementsByTagName(this,t)}getElementsByTagNameNS(t,r){return me.getElementsByTagNameNS(this,t,r)}getElementById(t){return me.getElementById(this,t)}getElementsByName(t){return yt.querySelectorAll(this,`[name="${t}"]`)}write(t){if(this[rn]||this[on]){this[rn]&&(this[on]||this.open(),this[rn]=!1);let{documentElement:r,head:o,body:i}=this;(!r||!o||!i)&&this.open(),this[rn]=!1,this[on]=!1,new Kr(this[m],{evaluateScripts:!0}).parse(t,this)}else new Kr(this[m],{evaluateScripts:!0}).parse(t,this.body)}open(){this[on]=!0;for(let a of this[fe].bubbling.keys()){let y=this[fe].bubbling.get(a);if(y)for(let p of y)this.removeEventListener(a,p)}for(let a of this[fe].capturing.keys()){let y=this[fe].capturing.get(a);if(y)for(let p of y)this.removeEventListener(a,p)}let t=this[q];for(;t.length;)this.removeChild(t[0]);let r=this[Xf].createDocumentType("html","",""),o=this.createElement("html"),i=this.createElement("body"),n=this.createElement("head");return this.appendChild(r),this.appendChild(o),o.appendChild(n),o.appendChild(i),this}close(){}createElement(t,r){return this.createElementNS(Yt.html,oo.asciiLowerCase(String(t)),r)}createElementNS(t,r,o){let i=this[m];if(r=String(r),!r)throw new i.DOMException("Failed to execute 'createElementNS' on 'Document': The qualified name provided is empty.");let n=r.split(":"),a=n[1]??n[0],y=n[1]?n[0]:null;switch(t){case Yt.svg:let p=Bb[r.toLowerCase()],d=p&&p.localName===r?i[p.className]:i.SVGElement,b=Ve.createNode(this,d);return b[Z]=r,b[nt]=a,b[Ot]=y,b[tt]=t,b[Mo]=o&&o.is?String(o.is):null,b;case Yt.html:let f=i.customElements[Ps]?.get(o&&o.is?String(o.is):r);if(f){let mt=new f.elementClass;return mt[Z]=oo.asciiUpperCase(r),mt[nt]=a,mt[Ot]=y,mt[tt]=t,mt[Mo]=o&&o.is?String(o.is):null,mt}let S=br[r]?i[br[r].className]:null;if(S){let mt=Ve.createNode(this,S);return mt[Z]=oo.asciiUpperCase(r),mt[nt]=a,mt[Ot]=y,mt[tt]=t,mt[Mo]=o&&o.is?String(o.is):null,mt}let M=r.includes("-")?i.HTMLElement:i.HTMLUnknownElement,N=Ve.createNode(this,M);return N[Z]=oo.asciiUpperCase(r),N[nt]=a,N[Ot]=y,N[tt]=t,N[Mo]=o&&o.is?String(o.is):null,N;default:let K=Ve.createNode(this,xr);return K[Z]=r,K[nt]=a,K[Ot]=y,K[tt]=t,K[Mo]=o&&o.is?String(o.is):null,K}}createTextNode(t){if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'createTextNode' on 'Document': 1 argument required, but only ${arguments.length} present.`);return Ve.createNode(this,this[m].Text,String(t))}createComment(t){if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'createComment' on 'Document': 1 argument required, but only ${arguments.length} present.`);return Ve.createNode(this,this[m].Comment,String(t))}createDocumentFragment(){return Ve.createNode(this,this[m].DocumentFragment)}createNodeIterator(t,r=-1,o=null){return new Om(t,r,o)}createTreeWalker(t,r=-1,o=null){return new Jn(t,r,o)}createEvent(t){return typeof this[m][t]=="function"?new this[m][t]("init"):new k("init")}createAttribute(t){let r=Ve.createNode(this,this[m].Attr),o=oo.asciiLowerCase(t),i=o.split(":");return r[st]=o,r[nt]=i[1]??o,r[Ot]=i[1]?i[0]:null,r}createAttributeNS(t,r){let o=Ve.createNode(this,this[m].Attr),i=r.split(":");if(o[tt]=t,o[st]=r,o[nt]=i[1]??r,o[Ot]=i[1]?i[0]:null,!t&&o[Ot])throw new this[m].DOMException(`Failed to execute 'createAttributeNS' on 'Document': The namespace URI provided ('${t||""}') is not valid for the qualified name provided ('${r}').`,v.namespaceError);return o}importNode(t,r=!1){if(!(t instanceof bt))throw new this[m].DOMException("Parameter 1 was not of type Node.");let o=t.cloneNode(r);return D(this,cg,YA).call(this,o),o}createRange(){return new this[m].Range}adoptNode(t){if(!(t instanceof bt))throw new this[m].DOMException("Parameter 1 was not of type Node.");let r=t[Y]?t[Y].removeChild(t):t;return Object.defineProperty(r,"ownerDocument",{value:this}),r}getSelection(){return this[Na]||(this[Na]=new Rm(this)),this[Na]}hasFocus(){return!!this.activeElement}createProcessingInstruction(t,r){if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'createProcessingInstruction' on 'Document': 2 arguments required, but only ${arguments.length} present.`);if(t=String(t),r=String(r),!t||!mG.test(t))throw new this[m].DOMException(`Failed to execute 'createProcessingInstruction' on 'Document': The target provided ('${t}') is not a valid name.`);if(r.includes("?>"))throw new this[m].DOMException("Failed to execute 'createProcessingInstruction' on 'Document': The data provided ('?>') contains '?>'");let o=Ve.createNode(this,this[m].ProcessingInstruction);return o[Xt]=r,o[Zr]=t,o}elementFromPoint(t,r){return null}[(JN=Mr,zN=Ke,XN=cl,$N=vi,QN=Be,jN=rn,KN=on,qN=U,YN=it,WN=gl,HN=Xf,_N=Ia,GN=zr,UN=mo,VN=Ru,ON=$i,DN=T,BN=xs,FN=Fe,RN=Ga,MN=co,IN=c,kN=Na,wt)](){super[wt](),this[Mr]=null,this[Ke]=null,this[cl]=null,this[vi]=null,this[mo]=null,this[gl]=[],this[Ru]=null,this[$i]=[],this[xs].clear(),this[Ga]=null,this[co].clear(),this[c].clear(),this[Na]=null}};cg=new WeakSet,YA=function(t){t[T]=this;for(let r of t[q])D(this,cg,YA).call(this,r)};var Ih=class extends Zn{constructor(){super();let e=this.createElement("html"),t=this.createElement("body"),r=this.createElement("head");this.appendChild(e),e.appendChild(r),e.appendChild(t)}[vt](e,t=!1){if(e[U]===L.textNode)throw new this[m].Error("Failed to execute 'appendChild' on 'Node': Nodes of type '#text' may not be inserted inside nodes of type '#document'.");if(e[U]===L.documentFragmentNode)return e;if(e[U]===L.elementNode&&this[dt].length!==0)throw new this[m].Error("Failed to execute 'appendChild' on 'Node': Only one element on document allowed.");return super[vt](e,t)}[uo](e,t,r=!1){if(e[U]===L.textNode)throw new this[m].Error("Failed to execute 'insertBefore' on 'Node': Nodes of type '#text' may not be inserted inside nodes of type '#document'.");if(e[U]===L.documentFragmentNode)return e;if(e[U]===L.elementNode&&this[dt].length!==0)throw new this[m].Error("Failed to execute 'insertBefore' on 'Node': Only one element on document allowed.");return super[uo](e,t,r)}};var ZN,tL,Mh=class extends(tL=Zn,ZN=Fe,tL){constructor(){super(...arguments);s(this,ZN,"application/xml")}};var eL,rL,oL,Rh=class extends Ds{constructor(){super(...arguments);s(this,oL,L.textNode);s(this,rL,null);s(this,eL,null)}get nodeName(){return"#text"}get wholeText(){if(!this[Y])return this[Xt];let t="";for(let r=this.previousSibling;St.isTextNode(r);r=r.previousSibling)t=r.data+t;t+=this[Xt];for(let r=this.nextSibling;St.isTextNode(r);r=r.nextSibling)t+=r.data;return t}get data(){return this[Xt]}set data(t){super.data=t,this[Ar]&&this[Ar][vu](),this[Wr]&&this[Wr][Ba]()}splitText(t){let r=this[Xt].length;if(t<0||t>r)throw new this[m].DOMException("The index is not in the allowed range.",v.indexSizeError);let o=r-t,i=this.substringData(t,o),n=this[T].createTextNode(i);return this[Y]!==null&&this[Y].insertBefore(n,this.nextSibling),this.replaceData(t,o,""),n}toString(){return"[object Text]"}[(oL=U,rL=Ar,eL=Wr,ct)](t=!1){return super[ct](t)}[Io](){super[Io](),this[Ar]&&this[Ar][vu](),this[Wr]&&this[Xt]&&this[Wr][Ba]()}[en](){this[Ar]&&this[Ar][vu](),this[Wr]&&this[Xt]&&this[Wr][Ba](),super[en]()}};var iL,Fh=class extends Ds{constructor(){super(...arguments);s(this,iL,L.commentNode)}get nodeName(){return"#comment"}toString(){return"[object Comment]"}[(iL=U,ct)](t=!1){return super[ct](t)}};var sL,nL,lL,aL,Bh=class extends(aL=Tm,lL=Z,nL=nt,sL=tt,aL){constructor(t=null,r=null){super();s(this,lL,"IMG");s(this,nL,"img");s(this,sL,Yt.html);t!==null&&(this.width=t),r!==null&&(this.height=r)}};var mL,yL,uL,pL,dg=class extends(pL=wm,uL=Z,yL=nt,mL=tt,pL){constructor(t=null){super();s(this,uL,"AUDIO");s(this,yL,"audio");s(this,mL,Yt.html);t!==null&&(this.src=t)}};var Dh,Oh,Vh,oa,Vm,Uh,bg=class{constructor(e){s(this,"target");s(this,"options");s(this,"mutationListener");E(this,Dh);E(this,Oh);E(this,Vh);E(this,oa,[]);E(this,Vm,!1);E(this,Uh,!1);this.options=e.options,this.target=e.target,this.mutationListener={options:e.options,callback:new WeakRef(t=>this.report(t))},w(this,Dh,e.window),w(this,Oh,e.observer),w(this,Vh,e.callback)}report(e){u(this,Vm)||(u(this,oa).push(e),!u(this,Uh)&&(u(this,Dh).queueMicrotask(()=>{if(u(this,Vm))return;w(this,Uh,!1);let t=u(this,oa);t?.length>0&&(w(this,oa,[]),u(this,Vh).call(this,t,u(this,Oh)))}),w(this,Uh,!0)))}takeRecords(){if(u(this,Vm))return[];let e=u(this,oa);return w(this,oa,[]),e}destroy(){u(this,Vm)||(w(this,Vm,!0),this.options=null,this.target=null,this.mutationListener=null,w(this,Dh,null),w(this,Oh,null),w(this,Vh,null),w(this,oa,null))}};Dh=new WeakMap,Oh=new WeakMap,Vh=new WeakMap,oa=new WeakMap,Vm=new WeakMap,Uh=new WeakMap;var gg,ia,fg,Gh=class{constructor(e){E(this,gg);E(this,ia,[]);E(this,fg,!1);if(!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);w(this,gg,e)}observe(e,t){if(u(this,fg))return;if(!e)throw new this[m].TypeError(`Failed to execute 'observe' on 'MutationObserver': The first parameter "target" should be of type "Node".`);if(t&&(t.attributeFilter||t.attributeOldValue)){if(t.attributes===void 0&&(t=Object.assign({},t,{attributes:!0,attributeFilter:t.attributeFilter,attributeOldValue:t.attributeOldValue})),!t.attributes&&t.attributeOldValue)throw new this[m].TypeError("Failed to execute 'observe' on 'MutationObserver': The options object may only set 'attributeOldValue' to true when 'attributes' is true or not present.");if(!t.attributes&&t.attributeFilter)throw new this[m].TypeError("Failed to execute 'observe' on 'MutationObserver': The options object may only set 'attributeFilter' when 'attributes' is true or not present.")}if(t&&t.characterDataOldValue&&(t.characterData===void 0&&(t=Object.assign({},t,{characterData:!0,characterDataOldValue:t.characterDataOldValue})),!t.characterData&&t.characterDataOldValue))throw new this[m].TypeError("Failed to execute 'observe' on 'MutationObserver': The options object may only set 'characterDataOldValue' to true when 'characterData' is true or not present.");if(!t||!t.childList&&!t.attributes&&!t.characterData)throw new this[m].TypeError("Failed to execute 'observe' on 'MutationObserver': The options object must set at least one of 'attributes', 'characterData', or 'childList' to true.");t=Object.assign({},t,{attributeFilter:t.attributeFilter?t.attributeFilter.map(o=>o.toLowerCase()):null});for(let o of u(this,ia))if(o.target===e){o.options=t;return}let r=new bg({window:this[m],options:t,callback:u(this,gg).bind(this),observer:this,target:e});u(this,ia).push(r),this[m][ka].includes(this)||this[m][ka].push(this),e[sy](r.mutationListener)}disconnect(){if(u(this,ia).length===0)return;for(let r of u(this,ia))r.target[Tu](r.mutationListener),r.destroy();w(this,ia,[]);let e=this[m][ka],t=e.indexOf(this);t!==-1&&e.splice(t,1)}takeRecords(){let e=[];for(let t of u(this,ia))e=e.concat(t.takeRecords());return e}[wt](){w(this,fg,!0),this.disconnect()}};gg=new WeakMap,ia=new WeakMap,fg=new WeakMap;var Sg=class extends Tt{postMessage(e,t){}start(){}close(){}};var yG=/\/\*[\s\S]*?\*\//gm,_h,Hh=class{constructor(e){E(this,_h);w(this,_h,e)}parseFromString(e){let t=u(this,_h),r=t[m],o=e.replace(yG,""),i=[],n=/{|}/gm,a=[],y=null,p=0,d;for(;d=n.exec(o);){if(d[0]==="{"){let b=o.substring(p,d.index).trim();if(b[0]==="@"){let f=b.split(" "),S=f[0],M=f.slice(1).join(" ").trim();switch(S){case"@keyframes":case"@-webkit-keyframes":let N=new om(h,r,this);N[bo]=S==="@-webkit-keyframes"?"-webkit-":"",N[st]=M,N[bi]=t,y?(y.type===ht.mediaRule||y.type===ht.containerRule||y.type===ht.supportsRule)&&y.cssRules.push(N):i.push(N),y=N;break;case"@media":let K=M.split(","),mt=new sm(h,r,this);for(let At of K)mt.media.appendMedium(At.trim());mt[bi]=t,y?(y.type===ht.mediaRule||y.type===ht.containerRule||y.type===ht.supportsRule)&&y.cssRules.push(mt):i.push(mt),y=mt;break;case"@container":case"@-webkit-container":let Nt=new Za(h,r,this);Nt[bo]=S==="@-webkit-container"?"-webkit-":"",Nt[Ko]=M,Nt[bi]=t,y?(y.type===ht.mediaRule||y.type===ht.containerRule||y.type===ht.supportsRule)&&y.cssRules.push(Nt):i.push(Nt),y=Nt;break;case"@supports":case"@-webkit-supports":let qt=new mm(h,r,this);qt[bo]=S==="@-webkit-supports"?"-webkit-":"",qt[Ko]=M,qt[bi]=t,y?(y.type===ht.mediaRule||y.type===ht.containerRule||y.type===ht.supportsRule)&&y.cssRules.push(qt):i.push(qt),y=qt;break;case"@font-face":let at=new em(h,r,this);at[Xr]=M,at[bi]=t,y?(y.type===ht.mediaRule||y.type===ht.containerRule||y.type===ht.supportsRule)&&y.cssRules.push(at):i.push(at),y=at;break;case"@scope":case"@-webkit-scope":let xt=new Bn(h,r,this);if(xt[bo]=S==="@-webkit-scope"?"-webkit-":"",xt[bi]=t,M){let At=M.split(/\s+to\s+/);At[0]&&At[0][0]==="("&&At[0][At[0].length-1]===")"&&(xt[_]=At[0].slice(1,-1)),At[1]&&At[1][0]==="("&&At[1][At[1].length-1]===")"&&(xt[j]=At[1].slice(1,-1))}y?(y.type===ht.mediaRule||y.type===ht.containerRule||y.type===ht.supportsRule)&&y.cssRules.push(xt):i.push(xt),y=xt;break;default:let It=new Vn(h,r,this);It[bi]=t,y=It;break}}else if(y&&y.type===ht.keyframesRule){let f=new On(h,r,this),S=b.trim();S==="from"?S="0%":S==="to"&&(S="100%"),f[In]=S,f[bi]=t,f[kl]=y,y.cssRules.push(f),y=f}else if(y&&(y.type===ht.mediaRule||y.type===ht.containerRule||y.type===ht.supportsRule)){if(this.validateSelectorText(b)){let f=new Vn(h,r,this);f[fy]=b,f[bi]=t,f[kl]=y,y.cssRules.push(f),y=f}}else if(this.validateSelectorText(b)){let f=new Vn(h,r,this);f[fy]=b,f[bi]=t,f[kl]=y,y||i.push(f),y=f}y&&a.push(y)}else{if(y){let b=o.substring(p,d.index).trim().replace(/([^;])$/,"$1;");switch(y.type){case ht.fontFaceRule:case ht.keyframeRule:case ht.styleRule:y[Xr]=b;break}}a.pop(),y=a[a.length-1]||null}p=d.index+1}return i}validateSelectorText(e){let t=u(this,_h)[m];return new Bl({window:t,scope:t.document,ignoreErrors:!0}).getSelectorGroups(e).length>0}};_h=new WeakMap;var Pg,Wh=class{constructor(e){s(this,"cssRules",[]);s(this,"media");s(this,"title");s(this,"alternate");s(this,"disabled");E(this,Pg,null);this.media=e&&e.media?e.media:"",this.title=e&&e.title?e.title:"",this.alternate=e&&e.alternate?e.alternate:!1,this.disabled=e&&e.disabled?e.disabled:!1}insertRule(e,t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'insertRule' on 'CSSStyleSheet': 1 argument required, but only 0 present.");let o=new Hh(this).parseFromString(e);if(o.length===0||o.length>1)throw new this[m].DOMException(`Failed to execute 'insertRule' on 'CSSStyleSheet': Failed to parse the rule '${e}'.`,v.syntaxError);if(t!==void 0){if(t>this.cssRules.length)throw new this[m].DOMException(`Failed to execute 'insertRule' on 'CSSStyleSheet': The index provided (${t}) is larger than the maximum index (${this.cssRules.length-1}).`,v.indexSizeError);return this.cssRules.splice(t,0,o[0]),t}let i=this.cssRules.length;return this.cssRules.push(o[0]),i}deleteRule(e){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'deleteRule' on 'CSSStyleSheet': 1 argument required, but only 0 present.");this.cssRules.splice(e,1)}async replace(e){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'replace' on 'CSSStyleSheet': 1 argument required, but only 0 present.");this.replaceSync(e)}replaceSync(e){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'replaceSync' on 'CSSStyleSheet': 1 argument required, but only 0 present.");u(this,Pg)!==e&&(w(this,Pg,e),this.cssRules=new Hh(this).parseFromString(e))}};Pg=new WeakMap;var hL,cL,sa=class extends(cL=Tt,hL=c,cL){constructor(){super(...arguments);s(this,hL,new Map)}get onloadstart(){return this[c].get("onloadstart")??null}set onloadstart(t){this[c].set("onloadstart",t)}get onprogress(){return this[c].get("onprogress")??null}set onprogress(t){this[c].set("onprogress",t)}get onabort(){return this[c].get("onabort")??null}set onabort(t){this[c].set("onabort",t)}get onerror(){return this[c].get("onerror")??null}set onerror(t){this[c].set("onerror",t)}get onload(){return this[c].get("onload")??null}set onload(t){this[c].set("onload",t)}get ontimeout(){return this[c].get("ontimeout")??null}set ontimeout(t){this[c].set("ontimeout",t)}get onloadend(){return this[c].get("onloadend")??null}set onloadend(t){this[c].set("onloadend",t)}};var Ag=class extends sa{};var Yh=class{constructor(){s(this,"signal",new this[m].AbortSignal)}abort(e){this.signal[gs](e)}};var dL,bL,qh=class extends Tt{constructor(){super();s(this,bL,!1);s(this,dL);s(this,"onabort",null);if(!this[m])throw new TypeError("Failed to construct 'AbortSignal': Illegal constructor")}get[(bL=ve,dL=di,Symbol.toStringTag)](){return"AbortSignal"}get aborted(){return this[ve]}set aborted(t){}get reason(){return this[di]}set reason(t){}[gs](t){this.aborted||(this[di]=t!==void 0?t:new this[m].DOMException("signal is aborted without reason",v.abortError),this[ve]=!0,this.dispatchEvent(new k("abort")))}throwIfAborted(){if(this.aborted)throw this.reason}static abort(t){let r=new this;return r[di]=t!==void 0?t:new this[m].DOMException("signal is aborted without reason",v.abortError),r[ve]=!0,r}static timeout(t){let r=this[m],o=new this;return r.setTimeout(()=>{o[gs](new r.DOMException("signal timed out",v.timeoutError))},t),o}static any(t){for(let n of t)if(n[ve])return this.abort(n[di]);let r=new this,o=new Map,i=()=>{for(let n of t)n.removeEventListener("abort",o.get(n))};for(let n of t){let a=()=>{i(),r[gs](n[di])};o.set(n,a),n.addEventListener("abort",a)}return r}};var Kh=class extends Tt{constructor(t="granted"){super();s(this,"state");s(this,"onchange",null);this.state=t}};var qA;(function(l){l[l.unsent=0]="unsent",l[l.opened=1]="opened",l[l.headersReceived=2]="headersReceived",l[l.loading=3]="loading",l[l.done=4]="done"})(qA||(qA={}));var Ye=qA;var KA;(function(l){l.arraybuffer="arraybuffer",l.blob="blob",l.document="document",l.json="json",l.text="text"})(KA||(KA={}));var tl=KA;var jh=class{static parse(e){if(!e.data)return"";switch(e.responseType){case tl.arraybuffer:let t=new ArrayBuffer(e.data.length),r=new Uint8Array(t);return r.set(e.data),r;case tl.blob:try{return new e.window.Blob([new Uint8Array(e.data)],{type:e.contentType||""})}catch{}return null;case tl.document:let o=e.window,i=new o.DOMParser;try{return i.parseFromString(e.data.toString(),"application/xml")}catch{}return null;case tl.json:try{return JSON.parse(e.data.toString())}catch{}return null;case tl.text:default:return e.data.toString()}}};var Qh,na,Um,Tr,jr,iu,rl,la,oi,$h,Ge,gL,fL,vr,el=class extends sa{constructor(){super();E(this,Ge);s(this,"upload",new this[m].XMLHttpRequestUpload);s(this,"withCredentials",!1);E(this,Qh,!0);E(this,na,null);E(this,Um,!1);E(this,Tr,null);E(this,jr,null);E(this,iu,"");E(this,rl,null);E(this,la,Buffer.from([]));E(this,oi,Ye.unsent);E(this,$h,null);if(!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get status(){return u(this,jr)?.status||0}get statusText(){return u(this,jr)?.statusText||""}get response(){return u(this,jr)?u(this,rl):""}get responseText(){if(this.responseType!==tl.text&&this.responseType!=="")throw new this[m].DOMException(`Failed to read the 'responseText' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'text' (was '${this.responseType}').`,v.invalidStateError);return u(this,rl)!==null?u(this,rl):this.readyState===Ye.headersReceived||this.readyState===Ye.loading?u(this,la).toString()??"":""}get responseXML(){if(this.responseType!==tl.document&&this.responseType!=="")throw new this[m].DOMException(`Failed to read the 'responseXML' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'document' (was '${this.responseType}').`,v.invalidStateError);return this.responseType===""?null:u(this,rl)}get responseURL(){return u(this,jr)?.url||""}get readyState(){return u(this,oi)}set responseType(t){if(this.readyState!==Ye.opened&&this.readyState!==Ye.unsent)throw new this[m].DOMException("Failed to set the 'responseType' property on 'XMLHttpRequest': The object's state must be OPENED or UNSENT.",v.invalidStateError);if(!u(this,Qh))throw new this[m].DOMException("Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be changed for synchronous requests made from a document.",v.invalidStateError);w(this,iu,t)}get responseType(){return u(this,iu)}open(t,r,o=!0,i,n){let a=this[m];if(!o&&this.responseType&&this.responseType!==tl.text)throw new a.DOMException("Failed to execute 'open' on 'XMLHttpRequest': Synchronous requests from a document must not set a response type.",v.invalidAccessError);let y=new this[m].Headers;if(i){let p=Buffer.from(`${i}:${n||""}`);y.set("Authorization","Basic "+p.toString("base64"))}w(this,Qh,o),w(this,Um,!1),w(this,jr,null),w(this,rl,null),w(this,la,Buffer.from([])),w(this,na,new a.AbortController),w(this,Tr,new a.Request(r,{method:t,headers:y,signal:u(this,na).signal,credentials:this.withCredentials?"include":"same-origin"})),w(this,oi,Ye.opened)}setRequestHeader(t,r){if(this.readyState!==Ye.opened)throw new this[m].DOMException("Failed to execute 'setRequestHeader' on 'XMLHttpRequest': The object's state must be OPENED.",v.invalidStateError);return Fs.isHeaderForbidden(t)?!1:(u(this,Tr).headers.set(t,r),!0)}getResponseHeader(t){return u(this,jr)?.headers.get(t)??null}getAllResponseHeaders(){if(!u(this,jr))return"";let t=[];for(let[r,o]of u(this,jr)?.headers){let i=r.toLowerCase();i!=="set-cookie"&&i!=="set-cookie2"&&t.push(`${r}: ${o}`)}return t.join(`\r
194
+ `)}send(t){let r=this[m];if(this.readyState!=Ye.opened)throw new this[m].DOMException("Failed to execute 'send' on 'XMLHttpRequest': Connection must be opened before send() is called.",v.invalidStateError);typeof t=="object"&&t!==null&&t[U]===L.documentNode&&(t=new r.XMLSerializer().serializeToString(t)),u(this,Qh)?D(this,Ge,gL).call(this,t).catch(o=>{throw o}):D(this,Ge,fL).call(this,t)}abort(){u(this,Um)||(w(this,Um,!0),u(this,na).abort())}overrideMimeType(t){if(this.readyState===Ye.loading||this.readyState===Ye.done)throw new this[m].DOMException("Failed to execute 'overrideMimeType' on 'XMLHttpRequest': MIME type cannot be overridden when the request state is LOADING or DONE.",v.invalidStateError);w(this,$h,t)}};Qh=new WeakMap,na=new WeakMap,Um=new WeakMap,Tr=new WeakMap,jr=new WeakMap,iu=new WeakMap,rl=new WeakMap,la=new WeakMap,oi=new WeakMap,$h=new WeakMap,Ge=new WeakSet,gL=async function(t){let r=this[m],o=new rt(r).getBrowserFrame();if(!o)return;let i=o[gt],n=i.startTask(()=>this.abort());w(this,oi,Ye.loading),D(this,Ge,vr).call(this,new k("readystatechange")),D(this,Ge,vr).call(this,new k("loadstart")),t&&w(this,Tr,new r.Request(u(this,Tr).url,{method:u(this,Tr).method,headers:u(this,Tr).headers,signal:u(this,na).signal,credentials:u(this,Tr).credentials,body:t})),u(this,na).signal.addEventListener("abort",()=>{w(this,Um,!0),w(this,oi,Ye.unsent),D(this,Ge,vr).call(this,new k("abort")),D(this,Ge,vr).call(this,new k("loadend")),D(this,Ge,vr).call(this,new k("readystatechange")),i.endTask(n)});let a=f=>{if(f instanceof ae&&f.name===v.abortError){if(u(this,Um))return;w(this,oi,Ye.unsent),D(this,Ge,vr).call(this,new k("abort"))}else w(this,oi,Ye.done),D(this,Ge,vr).call(this,new Un("error",{error:f,message:f.message}));D(this,Ge,vr).call(this,new k("loadend")),D(this,Ge,vr).call(this,new k("readystatechange")),i.endTask(n)},y=new zo({browserFrame:o,window:r,url:u(this,Tr).url,init:u(this,Tr)});try{w(this,jr,await y.send())}catch(f){a(f);return}w(this,oi,Ye.headersReceived),D(this,Ge,vr).call(this,new k("readystatechange"));let p=u(this,jr).headers.get("Content-Length"),d=p!==null&&!isNaN(Number(p))?Number(p):null,b=0;if(u(this,jr).body){let f;try{for await(let S of u(this,jr).body){let M=typeof S=="string"?Buffer.from(S):S;w(this,la,Buffer.concat([u(this,la),M])),b+=S.length;try{D(this,Ge,vr).call(this,new Qo("progress",{lengthComputable:d!==null,loaded:b,total:d!==null?d:0}))}catch(N){throw f=N,N}}}catch(S){if(S===f)throw S;a(S);return}}w(this,rl,jh.parse({window:r,responseType:u(this,iu),data:u(this,la),contentType:u(this,$h)||u(this,jr).headers.get("Content-Type")||u(this,Tr).headers.get("Content-Type")})),w(this,oi,Ye.done),w(this,la,Buffer.from([])),i.endTask(n),D(this,Ge,vr).call(this,new k("readystatechange")),D(this,Ge,vr).call(this,new k("load")),D(this,Ge,vr).call(this,new k("loadend"))},fL=function(t){let r=this[m],o=new rt(r).getBrowserFrame();if(!o)return;t&&w(this,Tr,new r.Request(u(this,Tr).url,{method:u(this,Tr).method,headers:u(this,Tr).headers,signal:u(this,na).signal,credentials:u(this,Tr).credentials,body:t})),w(this,oi,Ye.loading);let i=new Ky({browserFrame:o,window:r,url:u(this,Tr).url,init:u(this,Tr)});try{w(this,jr,i.send())}catch(n){w(this,oi,Ye.done),D(this,Ge,vr).call(this,new Un("error",{error:n,message:n.message})),D(this,Ge,vr).call(this,new k("loadend")),D(this,Ge,vr).call(this,new k("readystatechange"));return}w(this,oi,Ye.headersReceived),w(this,rl,jh.parse({window:r,responseType:u(this,iu),data:u(this,jr).body,contentType:u(this,$h)||u(this,jr).headers.get("Content-Type")||u(this,Tr).headers.get("Content-Type")})),w(this,oi,Ye.done),D(this,Ge,vr).call(this,new k("readystatechange")),D(this,Ge,vr).call(this,new k("load")),D(this,Ge,vr).call(this,new k("loadend"))},vr=function(t){let r=new rt(this[m]).getBrowserFrame();if(!r?.page?.context?.browser?.settings?.errorCapture)return;let o=r.page.context.browser.settings,i=o.errorCapture;o.errorCapture=ue.tryAndCatch,this.dispatchEvent(t),o.errorCapture=i},s(el,"UNSENT",Ye.unsent),s(el,"OPENED",Ye.opened),s(el,"HEADERS_RECEIVED",Ye.headersReceived),s(el,"LOADING",Ye.loading),s(el,"DONE",Ye.done);var uG=/<([^\s/!>?]+)|<\/([^\s/!>?]+)\s*>|(<!--)|(-->)|(<!)|(<\?)|(\/>)|(>)/gm,pG=/\s*([a-zA-Z0-9-_:]+)\s*=\s*"([^"]*)("{0,1})|\s*([a-zA-Z0-9-_:]+)\s*=\s*'([^']*)('{0,1})/gm,SL=/^\s*([a-zA-Z0-9-_:]+)$/,hG=/version="[^"]+"/,cG=/"([^"]+)"/gm,wg=/\s+/,dG=/\n/g,$t;(function(l){l.any="any",l.startTag="startTag",l.comment="comment",l.documentType="documentType",l.processingInstruction="processingInstruction",l.error="error"})($t||($t={}));var bG=Object.values(Yt),Xh=class{constructor(e){s(this,"window");s(this,"rootNode",null);s(this,"nodeStack",[]);s(this,"tagNameStack",[]);s(this,"defaultNamespaceStack",null);s(this,"namespacePrefixStack",null);s(this,"startTagIndex",0);s(this,"markupRegExp",null);s(this,"lastIndex",0);s(this,"errorIndex",0);s(this,"nextElement",null);s(this,"nextTagName",null);s(this,"currentNode",null);s(this,"readState",$t.any);s(this,"errorMessage",null);this.window=e}parse(e){this.rootNode=new this.window.XMLDocument,this.nodeStack=[this.rootNode],this.tagNameStack=[null],this.currentNode=this.rootNode,this.readState=$t.any,this.defaultNamespaceStack=[null],this.namespacePrefixStack=[null],this.startTagIndex=0,this.errorIndex=0,this.errorMessage=null,this.markupRegExp=new RegExp(uG,"gm"),this.lastIndex=0;let t;for(this.rootNode[mo]=this.window,e=String(e);t=this.markupRegExp.exec(e);){switch(this.readState){case $t.any:t.index!==this.lastIndex&&(t[1]||t[2]||t[3]||t[4]||t[5]!==void 0||t[6])&&this.parsePlainText(e.substring(this.lastIndex,t.index)),t[1]?this.parseStartTag(t[1]):t[2]?this.parseEndTag(t[2])||(this.errorMessage=`Opening and ending tag mismatch: ${this.tagNameStack[this.tagNameStack.length-1]} line ${e.substring(0,this.startTagIndex).split(`
195
195
  `).length} and ${t[2]}
196
196
  `,this.errorIndex=this.markupRegExp.lastIndex,this.readState=$t.error,this.removeOverflowingTextNodes()):t[3]?(this.startTagIndex=this.markupRegExp.lastIndex,this.readState=$t.comment):t[5]!==void 0?(this.startTagIndex=this.markupRegExp.lastIndex,this.readState=$t.documentType):t[6]?(this.startTagIndex=this.markupRegExp.lastIndex,this.readState=$t.processingInstruction):this.parsePlainText(e.substring(this.lastIndex,this.markupRegExp.lastIndex));break;case $t.startTag:if(t[7]||t[8]){let r=e.substring(this.startTagIndex,t[2]?this.markupRegExp.lastIndex-1:t.index),o=!!t[7];this.parseEndOfStartTag(r,o)}else this.errorMessage=t[2]&&this.lastIndex!==this.startTagIndex?`Unescaped '&lt;' not allowed in attributes values
197
197
  `:`error parsing attribute name
@@ -201,7 +201,7 @@ this.Function = globalThis.Function;
201
201
  `),this.rootNode):this.rootNode)}parsePlainText(e){this.currentNode===this.rootNode?e.replace(wg,"")&&(this.errorMessage=`Extra content at the end of the document
202
202
  `,this.errorIndex=this.lastIndex,this.readState=$t.error):e.includes("&nbsp;")?(this.errorMessage=`Entity 'nbsp' not defined
203
203
  `,this.errorIndex=this.lastIndex+e.indexOf("&nbsp;")+6,this.readState=$t.error):this.currentNode[vt](this.rootNode.createTextNode(We.decodeXMLEntities(e)),!0)}parseProcessingInstruction(e){let t=this.markupRegExp,r=e.split(wg),o=e[e.length-1]==="?";if(r[0]==="xml")if(this.currentNode!==this.rootNode||this.rootNode[q].length!==0||r.length===1)this.errorMessage=`XML declaration allowed only at the start of the document
204
- `,this.errorIndex=t.lastIndex-e.length+2,this.readState=$t.error,this.removeOverflowingTextNodes();else if(!pG.test(r[1]))this.errorMessage=`Malformed declaration expecting version
204
+ `,this.errorIndex=t.lastIndex-e.length+2,this.readState=$t.error,this.removeOverflowingTextNodes();else if(!hG.test(r[1]))this.errorMessage=`Malformed declaration expecting version
205
205
  `,this.errorIndex=t.lastIndex-e.length+3,this.readState=$t.error;else if(!o)this.errorMessage=`Blank needed here
206
206
  `,this.errorIndex=t.lastIndex-1,this.readState=$t.error;else{let i=r[0],n=r.slice(1).join(" ").slice(0,-1);this.rootNode[Ga]=this.rootNode.createProcessingInstruction(i,n),this.readState=$t.any}else if(r.length===1&&!o)this.errorMessage=`ParsePI: PI processing-instruction space expected
207
207
  `,this.errorIndex=t.lastIndex-1,this.readState=$t.error;else if(r.length>1&&!o)this.errorMessage=`ParsePI: PI processing-instruction never end ...
@@ -209,16 +209,16 @@ this.Function = globalThis.Function;
209
209
  `,this.errorIndex=t.lastIndex-e.length-2,this.readState=$t.error):(this.errorMessage=`StartTag: invalid element name
210
210
  `,this.errorIndex=t.lastIndex-e.length-2,this.readState=$t.error)}else this.currentNode===this.rootNode&&this.rootNode[dt].length===1?(this.errorMessage=`Extra content at the end of the document
211
211
  `,this.errorIndex=t.lastIndex-e.length-2,this.readState=$t.error):(this.errorMessage=`StartTag: invalid element name
212
- `,this.errorIndex=t.lastIndex-e.length-2,this.readState=$t.error)}parseStartTag(e){let t=e.split(":"),r=this.namespacePrefixStack,o=this.defaultNamespaceStack;t.length>1?this.nextElement=this.rootNode.createElementNS(r[r.length-1]?.get(t[0])||null,e):this.nextElement=this.rootNode.createElementNS(o[o.length-1]||null,e),r.push(new Map(r[r.length-1])),this.nextTagName=e,this.startTagIndex=this.markupRegExp.lastIndex,this.readState=$t.startTag}parseEndOfStartTag(e,t){let r=this.namespacePrefixStack[this.namespacePrefixStack.length-1];if(e){let o=new RegExp(uG,"gm"),i,n=0;for(;i=o.exec(e);){let y=e.substring(n,i.index).replace(wg,"");if(y.length){let p=y.match(SL);this.errorMessage=p?`Specification mandates value for attribute ${p[1]}
212
+ `,this.errorIndex=t.lastIndex-e.length-2,this.readState=$t.error)}parseStartTag(e){let t=e.split(":"),r=this.namespacePrefixStack,o=this.defaultNamespaceStack;t.length>1?this.nextElement=this.rootNode.createElementNS(r[r.length-1]?.get(t[0])||null,e):this.nextElement=this.rootNode.createElementNS(o[o.length-1]||null,e),r.push(new Map(r[r.length-1])),this.nextTagName=e,this.startTagIndex=this.markupRegExp.lastIndex,this.readState=$t.startTag}parseEndOfStartTag(e,t){let r=this.namespacePrefixStack[this.namespacePrefixStack.length-1];if(e){let o=new RegExp(pG,"gm"),i,n=0;for(;i=o.exec(e);){let y=e.substring(n,i.index).replace(wg,"");if(y.length){let p=y.match(SL);this.errorMessage=p?`Specification mandates value for attribute ${p[1]}
213
213
  `:`attributes construct error
214
- `,this.errorIndex=this.startTagIndex,this.readState=$t.error,this.removeOverflowingTextNodes();return}if(i[1]&&i[3]==='"'||i[4]&&i[6]==="'"){let p=i[1]??i[4],d=i[2]??i[5],b=d?We.decodeXMLAttributeValue(d.replace(cG," ")):"",f=this.nextElement[ft],S=p.split(":");if(S.length>2||S.length===2&&(!S[0]||!S[1])){this.errorMessage=`Failed to parse QName '${p}'
214
+ `,this.errorIndex=this.startTagIndex,this.readState=$t.error,this.removeOverflowingTextNodes();return}if(i[1]&&i[3]==='"'||i[4]&&i[6]==="'"){let p=i[1]??i[4],d=i[2]??i[5],b=d?We.decodeXMLAttributeValue(d.replace(dG," ")):"",f=this.nextElement[ft],S=p.split(":");if(S.length>2||S.length===2&&(!S[0]||!S[1])){this.errorMessage=`Failed to parse QName '${p}'
215
215
  `,this.errorIndex=this.startTagIndex+i.index+i[0].split("=")[0].length,this.readState=$t.error;return}let M=null;switch(S[0]){case"xmlns":M=Yt.xmlns;break;case"xlink":M=Yt.xlink;break}if(f.getNamedItemNS(M,S[1]??p))this.errorMessage=`Attribute ${p} redefined
216
- `,this.errorIndex=this.startTagIndex,this.readState=$t.error;else{let N=Ve.createNode(this.rootNode,this.window.Attr);if(N[tt]=M,N[st]=p,N[nt]=M&&S[1]?S[1]:p,N[Ot]=M&&S[1]?S[0]:null,N[z]=b,f[Xi](N),N[Ot]==="xmlns")r.set(N[nt],b),this.nextElement[Ot]===N[nt]&&(this.nextElement[tt]=b);else if(p==="xmlns"&&!this.nextElement[Ot])if(dG.includes(b)){this.nextElement=this.rootNode.createElementNS(b,this.nextElement[Z]),this.nextElement[ft]=f,f[Lt]=this.nextElement;for(let K of f[$].values())K[Lt]=this.nextElement}else this.nextElement[tt]=b}this.startTagIndex+=i[0].length}else if(i[1]&&i[3]!=='"'||i[4]&&i[6]!=="'")return;n=o.lastIndex}let a=e.substring(n).replace(wg,"");if(a.length){let y=a.match(SL);y?(this.errorMessage=`Specification mandates value for attribute ${y[1]}
216
+ `,this.errorIndex=this.startTagIndex,this.readState=$t.error;else{let N=Ve.createNode(this.rootNode,this.window.Attr);if(N[tt]=M,N[st]=p,N[nt]=M&&S[1]?S[1]:p,N[Ot]=M&&S[1]?S[0]:null,N[z]=b,f[Xi](N),N[Ot]==="xmlns")r.set(N[nt],b),this.nextElement[Ot]===N[nt]&&(this.nextElement[tt]=b);else if(p==="xmlns"&&!this.nextElement[Ot])if(bG.includes(b)){this.nextElement=this.rootNode.createElementNS(b,this.nextElement[Z]),this.nextElement[ft]=f,f[Lt]=this.nextElement;for(let K of f[$].values())K[Lt]=this.nextElement}else this.nextElement[tt]=b}this.startTagIndex+=i[0].length}else if(i[1]&&i[3]!=='"'||i[4]&&i[6]!=="'")return;n=o.lastIndex}let a=e.substring(n).replace(wg,"");if(a.length){let y=a.match(SL);y?(this.errorMessage=`Specification mandates value for attribute ${y[1]}
217
217
  `,this.errorIndex=this.markupRegExp.lastIndex-2):(this.errorMessage=`attributes construct error
218
218
  `,this.errorIndex=this.startTagIndex),this.readState=$t.error,this.removeOverflowingTextNodes();return}}if(this.nextElement[Ot]&&!this.nextElement[tt]){this.errorMessage=`Namespace prefix ${this.nextElement[Ot]} on name is not defined
219
219
  `,this.errorIndex=this.lastIndex,this.readState=$t.error;return}if(this.currentNode===this.rootNode&&this.rootNode[dt].length!==0){this.errorMessage=`Extra content at the end of the document
220
220
  `,this.errorIndex=this.lastIndex-this.nextElement[Z].length-1,this.readState=$t.error;return}this.currentNode[vt](this.nextElement,!0),t||(this.currentNode=this.nextElement,this.nodeStack.push(this.currentNode),this.tagNameStack.push(this.nextTagName),this.currentNode[tt]&&!this.currentNode[Ot]?this.defaultNamespaceStack.push(this.currentNode[tt]):this.defaultNamespaceStack.push(this.defaultNamespaceStack[this.defaultNamespaceStack.length-1])),this.nextElement=null,this.nextTagName=null,this.readState=$t.any,this.startTagIndex=this.markupRegExp.lastIndex}parseEndTag(e){return this.tagNameStack[this.tagNameStack.length-1]===e?(this.nodeStack.pop(),this.tagNameStack.pop(),this.namespacePrefixStack.pop(),this.defaultNamespaceStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode,!0):!1}parseError(e,t){let r=this.rootNode.documentElement;if(!r){let y=this.rootNode.createElementNS(Yt.html,"html"),p=this.rootNode.createElementNS(Yt.html,"body");y.appendChild(p),r=p,this.rootNode[vt](y,!0)}let o=e.split(`
221
- `),i=o[o.length-1].length+1,n=`error on line ${o.length} at column ${i}: ${t||"Unknown error"}`,a=this.rootNode.createElementNS(Yt.html,"parsererror");a.setAttribute("style","display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black"),a.innerHTML=`<h3>This page contains the following errors:</h3><div style="font-family:monospace;font-size:12px">${n}</div><h3>Below is a rendering of the page up to the first error.</h3>`,r.insertBefore(a,r.firstChild)}removeOverflowingTextNodes(){if(this.currentNode&&this.currentNode!==this.rootNode)for(;this.currentNode.lastChild?.[U]===bt.TEXT_NODE;)this.currentNode.removeChild(this.currentNode.lastChild)}getDocumentType(e){if(!e.toUpperCase().startsWith("DOCTYPE"))return null;let t=e.split(wg);if(t.length<=1)return null;let r=t.slice(1).join(" "),o=[],i=new RegExp(hG,"gm"),n=r.toUpperCase().includes("PUBLIC"),a;for(;a=i.exec(r);)o.push(a[1]);let y=n&&o[0]||"",p=n?o[1]||"":o[0]||"";return{name:t[1].toLowerCase(),publicId:y,systemId:p}}};var zh=class{parseFromString(e,t){if(!t)throw new this[m].DOMException('Second parameter "mimeType" is mandatory.');let r=this[m];switch(t){case"text/html":let o=new r.HTMLDocument;return o[mo]=r,new Kr(this[m]).parse(e,o);case"image/svg+xml":case"text/xml":case"application/xml":case"application/xhtml+xml":return new Xh(this[m]).parse(e);default:throw new r.DOMException(`Unknown mime type "${t}".`)}}};var jA;(function(l){l[l.endToEnd=2]="endToEnd",l[l.endToStart=3]="endToStart",l[l.startToEnd=1]="startToEnd",l[l.startToStart=0]="startToStart"})(jA||(jA={}));var Cr=jA;var PL,AL,wL;wL=_,AL=j,PL=T;var ol=class{constructor(){s(this,"END_TO_END",Cr.endToEnd);s(this,"END_TO_START",Cr.endToStart);s(this,"START_TO_END",Cr.startToEnd);s(this,"START_TO_START",Cr.startToStart);s(this,wL);s(this,AL);s(this,PL);let e=this[m];if(!e)throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);this[T]=e.document,this[_]={node:e.document,offset:0},this[j]={node:e.document,offset:0}}get startContainer(){return this[_].node}get endContainer(){return this[j].node}get startOffset(){if(this[_].offset>0){let e=St.getNodeLength(this[_].node);this[_].offset>e&&(this[_].offset=e)}return this[_].offset}get endOffset(){if(this[j].offset>0){let e=St.getNodeLength(this[j].node);this[j].offset>e&&(this[j].offset=e)}return this[j].offset}get collapsed(){return this[_].node===this[j].node&&this.startOffset===this.endOffset}get commonAncestorContainer(){let e=this[_].node;for(;e;){if(St.isInclusiveAncestor(e,this[j].node))return e;e=e[Y]}return null}collapse(e=!1){e?this[j]=Object.assign({},this[_]):this[_]=Object.assign({},this[j])}compareBoundaryPoints(e,t){if(e!==Cr.startToStart&&e!==Cr.startToEnd&&e!==Cr.endToEnd&&e!==Cr.endToStart)throw new this[m].DOMException(`The comparison method provided must be one of '${Cr.startToStart}', '${Cr.startToEnd}', '${Cr.endToEnd}' or '${Cr.endToStart}'.`,v.notSupportedError);if(this[T]!==t[T])throw new this[m].DOMException("The two Ranges are not in the same tree.",v.wrongDocumentError);let r={node:null,offset:0},o={node:null,offset:0};switch(e){case Cr.startToStart:r.node=this[_].node,r.offset=this.startOffset,o.node=t[_].node,o.offset=t.startOffset;break;case Cr.startToEnd:r.node=this[j].node,r.offset=this.endOffset,o.node=t[_].node,o.offset=t.startOffset;break;case Cr.endToEnd:r.node=this[j].node,r.offset=this.endOffset,o.node=t[j].node,o.offset=t.endOffset;break;case Cr.endToStart:r.node=this[_].node,r.offset=this.startOffset,o.node=t[j].node,o.offset=t.endOffset;break}return Se.compareBoundaryPointsPosition(r,o)}comparePoint(e,t){if(e[T]!==this[T])throw new this[m].DOMException("The two Ranges are not in the same tree.",v.wrongDocumentError);Se.validateBoundaryPoint({node:e,offset:t});let r={node:e,offset:t};return Se.compareBoundaryPointsPosition(r,{node:this[_].node,offset:this.startOffset})===-1?-1:Se.compareBoundaryPointsPosition(r,{node:this[j].node,offset:this.endOffset})===1?1:0}cloneContents(){let e=this[m],t=this[T].createDocumentFragment(),r=this.startOffset,o=this.endOffset;if(this.collapsed)return t;if(this[_].node===this[j].node&&(this[_].node[U]===L.textNode||this[_].node[U]===L.processingInstructionNode||this[_].node[U]===L.commentNode)){let p=this[_].node.cloneNode(!1);return p[Xt]=p.substringData(r,o-r),t.appendChild(p),t}let i=this[_].node;for(;!St.isInclusiveAncestor(i,this[j].node);)i=i[Y];let n=null;if(!St.isInclusiveAncestor(this[_].node,this[j].node)){let p=i.firstChild;for(;!n;)Se.isPartiallyContained(p,this)&&(n=p),p=p.nextSibling}let a=null;if(!St.isInclusiveAncestor(this[j].node,this[_].node)){let p=i.lastChild;for(;!a;)Se.isPartiallyContained(p,this)&&(a=p),p=p.previousSibling}let y=[];for(let p of i[q])if(Se.isContained(p,this)){if(p[U]===L.documentTypeNode)throw new e.DOMException("Invalid document type element.",v.hierarchyRequestError);y.push(p)}if(n!==null&&(n[U]===L.textNode||n[U]===L.processingInstructionNode||n[U]===L.commentNode)){let p=this[_].node.cloneNode(!1);p[Xt]=p.substringData(r,St.getNodeLength(this[_].node)-r),t.appendChild(p)}else if(n!==null){let p=n.cloneNode();t.appendChild(p);let d=new e.Range;d[_].node=this[_].node,d[_].offset=r,d[j].node=n,d[j].offset=St.getNodeLength(n);let b=d.cloneContents();p.appendChild(b)}for(let p of y){let d=p.cloneNode(!0);t.appendChild(d)}if(a!==null&&(a[U]===L.textNode||a[U]===L.processingInstructionNode||a[U]===L.commentNode)){let p=this[j].node.cloneNode(!1);p[Xt]=p.substringData(0,o),t.appendChild(p)}else if(a!==null){let p=a.cloneNode(!1);t.appendChild(p);let d=new e.Range;d[_].node=a,d[_].offset=0,d[j].node=this[j].node,d[j].offset=o;let b=d.cloneContents();p.appendChild(b)}return t}cloneRange(){let e=new this[m].Range;return e[_].node=this[_].node,e[_].offset=this[_].offset,e[j].node=this[j].node,e[j].offset=this[j].offset,e}createContextualFragment(e){return new Kr(this[m]).parse(e)}deleteContents(){let e=this.startOffset,t=this.endOffset;if(this.collapsed)return;if(this[_].node===this[j].node&&(this[_].node[U]===L.textNode||this[_].node[U]===L.processingInstructionNode||this[_].node[U]===L.commentNode)){this[_].node.replaceData(e,t-e,"");return}let r=[],o=this[_].node,i=St.nextDescendantNode(this[j].node);for(;o&&o!==i;)Se.isContained(o,this)&&!Se.isContained(o[Y],this)&&r.push(o),o=St.following(o);let n,a;if(St.isInclusiveAncestor(this[_].node,this[j].node))n=this[_].node,a=e;else{let y=this[_].node;for(;y&&!St.isInclusiveAncestor(y[Y],this[j].node);)y=y[Y];n=y[Y],a=y[Y][q].indexOf(y)+1}(this[_].node[U]===L.textNode||this[_].node[U]===L.processingInstructionNode||this[_].node[U]===L.commentNode)&&this[_].node.replaceData(this.startOffset,St.getNodeLength(this[_].node)-this.startOffset,"");for(let y of r)y[Y].removeChild(y);(this[j].node[U]===L.textNode||this[j].node[U]===L.processingInstructionNode||this[j].node[U]===L.commentNode)&&this[j].node.replaceData(0,t,""),this[_].node=n,this[_].offset=a,this[j].node=n,this[j].offset=a}detach(){}extractContents(){let e=this[m],t=this[T].createDocumentFragment(),r=this.startOffset,o=this.endOffset;if(this.collapsed)return t;if(this[_].node===this[j].node&&(this[_].node[U]===L.textNode||this[_].node[U]===L.processingInstructionNode||this[_].node[U]===L.commentNode)){let b=this[_].node.cloneNode(!1);return b[Xt]=b.substringData(r,o-r),t.appendChild(b),this[_].node.replaceData(r,o-r,""),t}let i=this[_].node;for(;!St.isInclusiveAncestor(i,this[j].node);)i=i[Y];let n=null;if(!St.isInclusiveAncestor(this[_].node,this[j].node)){let b=i.firstChild;for(;!n;)Se.isPartiallyContained(b,this)&&(n=b),b=b.nextSibling}let a=null;if(!St.isInclusiveAncestor(this[j].node,this[_].node)){let b=i.lastChild;for(;!a;)Se.isPartiallyContained(b,this)&&(a=b),b=b.previousSibling}let y=[];for(let b of i[q])if(Se.isContained(b,this)){if(b[U]===L.documentTypeNode)throw new this[m].DOMException("Invalid document type element.",v.hierarchyRequestError);y.push(b)}let p,d;if(St.isInclusiveAncestor(this[_].node,this[j].node))p=this[_].node,d=r;else{let b=this[_].node;for(;b&&!St.isInclusiveAncestor(b[Y],this[j].node);)b=b[Y];p=b[Y],d=b[Y][q].indexOf(b)+1}if(n!==null&&(n[U]===L.textNode||n[U]===L.processingInstructionNode||n[U]===L.commentNode)){let b=this[_].node.cloneNode(!1);b[Xt]=b.substringData(r,St.getNodeLength(this[_].node)-r),t.appendChild(b),this[_].node.replaceData(r,St.getNodeLength(this[_].node)-r,"")}else if(n!==null){let b=n.cloneNode(!1);t.appendChild(b);let f=new e.Range;f[_].node=this[_].node,f[_].offset=r,f[j].node=n,f[j].offset=St.getNodeLength(n);let S=f.extractContents();b.appendChild(S)}for(let b of y)t.appendChild(b);if(a!==null&&(a[U]===L.textNode||a[U]===L.processingInstructionNode||a[U]===L.commentNode)){let b=this[j].node.cloneNode(!1);b[Xt]=b.substringData(0,o),t.appendChild(b),this[j].node.replaceData(0,o,"")}else if(a!==null){let b=a.cloneNode(!1);t.appendChild(b);let f=new e.Range;f[_].node=a,f[_].offset=0,f[j].node=this[j].node,f[j].offset=o;let S=f.extractContents();b.appendChild(S)}return this[_].node=p,this[_].offset=d,this[j].node=p,this[j].offset=d,t}getBoundingClientRect(){return new ns}getClientRects(){return new Gy(h)}isPointInRange(e,t=0){if(e[T]!==this[T])return!1;let r={node:e,offset:t};return Se.validateBoundaryPoint(r),!(Se.compareBoundaryPointsPosition(r,{node:this[_].node,offset:this.startOffset})===-1||Se.compareBoundaryPointsPosition(r,{node:this[j].node,offset:this.endOffset})===1)}insertNode(e){if(this[_].node[U]===L.processingInstructionNode||this[_].node[U]===L.commentNode||this[_].node[U]===L.textNode&&!this[_].node[Y]||e===this[_].node)throw new this[m].DOMException("Invalid start node.",v.hierarchyRequestError);let t=this[_].node[U]===L.textNode?this[_].node:this[_].node[q][this.startOffset]||null,r=t?t[Y]:this[_].node;this[_].node[U]===L.textNode&&(t=this[_].node.splitText(this.startOffset)),e===t&&(t=t.nextSibling);let o=e[Y];o&&o.removeChild(e);let i=t?t[Y][q].indexOf(t):St.getNodeLength(r);i+=e[U]===L.documentFragmentNode?St.getNodeLength(e):1,r.insertBefore(e,t),this.collapsed&&(this[j].node=r,this[j].offset=i)}intersectsNode(e){if(e[T]!==this[T])return!1;let t=e[Y];if(!t)return!0;let r=t[q].indexOf(e);return Se.compareBoundaryPointsPosition({node:t,offset:r},{node:this[j].node,offset:this.endOffset})===-1&&Se.compareBoundaryPointsPosition({node:t,offset:r+1},{node:this[_].node,offset:this.startOffset})===1}selectNode(e){if(!e[Y])throw new this[m].DOMException("The given Node has no parent.",v.invalidNodeTypeError);let t=e[Y][q].indexOf(e);this[_].node=e[Y],this[_].offset=t,this[j].node=e[Y],this[j].offset=t+1}selectNodeContents(e){if(e[U]===L.documentTypeNode)throw new this[m].DOMException("DocumentType Node can't be used as boundary point.",v.invalidNodeTypeError);this[_].node=e,this[_].offset=0,this[j].node=e,this[j].offset=St.getNodeLength(e)}setEnd(e,t=0){Se.validateBoundaryPoint({node:e,offset:t});let r={node:e,offset:t};(e[T]!==this[T]||Se.compareBoundaryPointsPosition(r,{node:this[_].node,offset:this.startOffset})===-1)&&(this[_].node=e,this[_].offset=t),this[j].node=e,this[j].offset=t}setStart(e,t=0){Se.validateBoundaryPoint({node:e,offset:t});let r={node:e,offset:t};(e[T]!==this[T]||Se.compareBoundaryPointsPosition(r,{node:this[j].node,offset:this.endOffset})===1)&&(this[j].node=e,this[j].offset=t),this[_].node=e,this[_].offset=t}setEndAfter(e){if(!e[Y])throw new this[m].DOMException("The given Node has no parent.",v.invalidNodeTypeError);this.setEnd(e[Y],e[Y][q].indexOf(e)+1)}setEndBefore(e){if(!e[Y])throw new this[m].DOMException("The given Node has no parent.",v.invalidNodeTypeError);this.setEnd(e[Y],e[Y][q].indexOf(e))}setStartAfter(e){if(!e[Y])throw new this[m].DOMException("The given Node has no parent.",v.invalidNodeTypeError);this.setStart(e[Y],e[Y][q].indexOf(e)+1)}setStartBefore(e){if(!e[Y])throw new this[m].DOMException("The given Node has no parent.",v.invalidNodeTypeError);this.setStart(e[Y],e[Y][q].indexOf(e))}surroundContents(e){let t=this.commonAncestorContainer;if(!t)return;let r=St.nextDescendantNode(t);for(;t&&t!==r;){if(t[U]!==L.textNode&&Se.isPartiallyContained(t,this))throw new this[m].DOMException("The Range has partially contains a non-Text node.",v.invalidStateError);t=St.following(t)}if(e[U]===L.documentNode||e[U]===L.documentTypeNode||e[U]===L.documentFragmentNode)throw new this[m].DOMException("Invalid element type.",v.invalidNodeTypeError);let o=this.extractContents();for(;e.firstChild;)e.removeChild(e.firstChild);this.insertNode(e),e.appendChild(o),this.selectNode(e)}toString(){let e=this.startOffset,t=this.endOffset,r="";if(this[_].node===this[j].node&&this[_].node[U]===L.textNode)return this[_].node.data.slice(e,t);this[_].node[U]===L.textNode&&(r+=this[_].node.data.slice(e));let o=St.nextDescendantNode(this[j].node),i=this[_].node;for(;i&&i!==o;)i[U]===L.textNode&&Se.isContained(i,this)&&(r+=i.data),i=St.following(i);return this[j].node[U]===L.textNode&&(r+=this[j].node.data.slice(0,t)),r}};s(ol,"END_TO_END",Cr.endToEnd),s(ol,"END_TO_START",Cr.endToStart),s(ol,"START_TO_END",Cr.startToEnd),s(ol,"START_TO_START",Cr.startToStart);var EL,xL,Gm=class extends(xL=Tt,EL=Fu,xL){constructor(t){super();s(this,"id","");s(this,"startTime",0);s(this,"endTime",0);s(this,"pauseOnExit",!1);s(this,EL,null);s(this,"onenter",null);s(this,"onexit",null);if(t!==h)throw new TypeError("Illegal constructor");if(!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get track(){return this[Fu]}};var Jh=class extends Gm{constructor(t,r,o){super(h);s(this,"region",null);s(this,"vertical","");s(this,"snapToLines",!0);s(this,"line",0);s(this,"lineAlign","");s(this,"position","auto");s(this,"positionAlign","auto");s(this,"size",100);s(this,"align","");s(this,"text","");let i=this[m],n=0;if(t!==void 0&&n++,r!==void 0&&n++,o!==void 0&&n++,n<3)throw new i.TypeError(`Failed to construct 'VTTCue': 3 arguments required, but only ${n} present.`);if(t=Number(t),r=Number(r),isNaN(t)||isNaN(r))throw new i.TypeError("Failed to construct 'VTTCue': The provided double value is non-finite.");this.startTime=t,this.endTime=r,this.text=String(o)}getCueAsHTML(){let t=this[m],r=t.document.createDocumentFragment();return r.appendChild(t.document.createTextNode(this.text)),r}};var vL,TL,CL,NL,LL,kL,IL,ML,Zh=class extends(ML=Tt,IL=ui,kL=wl,LL=py,NL=_c,CL=Me,TL=uy,vL=RP,ML){constructor(t){super();s(this,IL,Yn.subtitles);s(this,kL,"");s(this,LL,"");s(this,NL,"");s(this,CL,"disabled");s(this,TL,new ta(h));s(this,vL,new ta(h));s(this,"oncuechange",null);if(t!==h)throw new TypeError("Illegal constructor");if(!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[ui]}get label(){return this[wl]}get language(){return this[py]}get id(){return this[_c]}get mode(){return this[Me]}set mode(t){t!=="disabled"&&t!=="showing"||(this[Me]=t)}get cues(){return this[Me]==="disabled"?null:this[uy]}get activeCues(){return this[Me]==="disabled"?null:this[RP]}addCue(t){this[uy].includes(t)||(t[Fu]=this,this[uy].push(t))}removeCue(t){let r=this[uy].indexOf(t);r!==-1&&(t[Fu]=null,this[uy].splice(r,1))}};var RL,tc=class l extends Tt{constructor(t,r){super();s(this,RL,[]);s(this,"onaddtrack",null);s(this,"onchange",null);s(this,"onremovetrack",null);if(t!==h)throw new TypeError("Illegal constructor");this[$]=r;let o=new Te(this,[l,Tt]);return new Proxy(this,{get:(i,n)=>{if(n==="length")return r.length;if(n in i||typeof n=="symbol")return o.bind(n),i[n];let a=Number(n);if(!isNaN(a))return r[a]},set(i,n,a){if(o.bind(n),typeof n=="symbol")return i[n]=a,!0;let y=Number(n);return isNaN(y)&&(i[n]=a),!0},deleteProperty(i,n){if(typeof n=="symbol")return delete i[n],!0;let a=Number(n);return isNaN(a)&&delete i[n],!0},ownKeys(){return Object.keys(r)},has(i,n){if(n in i)return!0;if(typeof n=="symbol")return!1;let a=Number(n);return!isNaN(a)&&a>=0&&a<r.length},defineProperty(i,n,a){return o.preventBinding(n),n in i?(Object.defineProperty(i,n,a),!0):!1},getOwnPropertyDescriptor(i,n){if(n in i||typeof n=="symbol")return;let a=Number(n);if(!isNaN(a)&&r[a])return{value:r[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[$].length}get[(RL=$,Symbol.toStringTag)](){return"TextTrackList"}toLocaleString(){return"[object TextTrackList]"}toString(){return"[object TextTrackList]"}[Symbol.iterator](){return this[$][Symbol.iterator]()}getTrackById(t){for(let r of this[$])if(r.id===t)return r;return null}};var FL,BL,ec=class extends(BL=Tt,FL=FP,BL){constructor(){super(...arguments);s(this,FL,"disconnected");s(this,"onconnecting",null);s(this,"onconnect",null);s(this,"ondisconnect",null)}get state(){return this[FP]}async watchAvailability(){}cancelWatchAvailability(){}prompt(){}};var jL=oy(KL(),1);var XA;(function(l){l[l.empty=0]="empty",l[l.loading=1]="loading",l[l.done=2]="done"})(XA||(XA={}));var aa=XA;var zA;(function(l){l.buffer="buffer",l.binaryString="binaryString",l.dataURL="dataURL",l.text="text"})(zA||(zA={}));var ma=zA;var JA;(function(l){l.abort="abort",l.error="error",l.load="load",l.loadstart="loadstart",l.loadend="loadend",l.progress="progress"})(JA||(JA={}));var su=JA;import{Buffer as TG}from"buffer";var Hm,rc,oc,nu,xg,ic=class extends Tt{constructor(){super();E(this,nu);s(this,"error",null);s(this,"result",null);s(this,"readyState",aa.empty);s(this,"onabort",null);s(this,"onerror",null);s(this,"onload",null);s(this,"onloadstart",null);s(this,"onloadend",null);s(this,"onprogress",null);E(this,Hm,!1);E(this,rc,null);E(this,oc,null);if(!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}readAsArrayBuffer(t){if(!(t instanceof be))throw new this[m].TypeError("Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'.");D(this,nu,xg).call(this,t,ma.buffer)}readAsBinaryString(t){if(!(t instanceof be))throw new this[m].TypeError("Failed to execute 'readAsBinaryString' on 'FileReader': parameter 1 is not of type 'Blob'.");D(this,nu,xg).call(this,t,ma.binaryString)}readAsDataURL(t){if(!(t instanceof be))throw new this[m].TypeError("Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'.");D(this,nu,xg).call(this,t,ma.dataURL)}readAsText(t,r=null){if(!(t instanceof be))throw new this[m].TypeError("Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'.");D(this,nu,xg).call(this,t,ma.text,r||"UTF-8")}abort(){let t=this[m];if(u(this,rc)&&t.clearTimeout(u(this,rc)),u(this,oc)&&t.clearTimeout(u(this,oc)),this.readyState===aa.empty||this.readyState===aa.done){this.result=null;return}this.readyState===aa.loading&&(this.readyState=aa.done,this.result=null),w(this,Hm,!0),this.dispatchEvent(new Qo(su.abort)),this.dispatchEvent(new Qo(su.loadend))}};Hm=new WeakMap,rc=new WeakMap,oc=new WeakMap,nu=new WeakSet,xg=function(t,r,o=null){let i=this[m];if(this.readyState===aa.loading)throw new i.DOMException("The object is in an invalid state.",v.invalidStateError);this.readyState=aa.loading,w(this,rc,i.setTimeout(()=>{if(u(this,Hm)){w(this,Hm,!1);return}this.dispatchEvent(new Qo(su.loadstart));let n=t[Mt];n||(n=TG.alloc(0)),this.dispatchEvent(new Qo(su.loadstart,{lengthComputable:!isNaN(t.size),total:t.size,loaded:n.length})),w(this,oc,i.setTimeout(()=>{if(u(this,Hm)){w(this,Hm,!1);return}switch(r){default:case ma.buffer:{this.result=new Uint8Array(n).buffer;break}case ma.binaryString:{this.result=n.toString("binary");break}case ma.dataURL:{let a=jL.default.parse(t.type)||"application/octet-stream";this.result=`data:${a};base64,${n.toString("base64")}`;break}case ma.text:{this.result=new TextDecoder(o||"UTF-8").decode(n);break}}this.readyState=aa.done,this.dispatchEvent(new Qo(su.load)),this.dispatchEvent(new Qo(su.loadend))}))}))};import CG from"crypto";var NG={aspectRatio:{max:300,min:.006666666666666667},deviceId:"",facingMode:[],frameRate:{max:60,min:0},height:{max:150,min:1},resizeMode:["none","crop-and-scale"],width:{max:300,min:1}},LG={deviceId:"",frameRate:60,resizeMode:"none"},QL,$L,XL,zL,JL,ZL,vg,ZA,Wm=class extends(ZL=Tt,JL=wl,zL=ui,XL=Mu,$L=ws,QL=Ra,ZL){constructor(t){super();E(this,vg);s(this,"contentHint","");s(this,"enabled",!0);s(this,"id",CG.randomUUID());s(this,"muted",!1);s(this,"readyState","live");s(this,"label","");s(this,JL,"");s(this,zL,"video");s(this,XL,{});s(this,$L,JSON.parse(JSON.stringify(NG)));s(this,QL,JSON.parse(JSON.stringify(LG)));s(this,"onended",null);s(this,"onmute",null);s(this,"onunmute",null);if(t!==h)throw new TypeError("Illegal constructor");if(!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[ui]}async applyConstraints(t){D(this,vg,ZA).call(this,this[Mu],t)}getConstraints(){return this[Mu]}getCapabilities(){return this[ws]}getSettings(){return this[Ra]}clone(){let t=new this.constructor(h);return t[ui]=this[ui],t[Mu]=this[Mu],t[ws]=this[ws],t[Ra]=this[Ra],t.contentHint=this.contentHint,t.enabled=this.enabled,t.label=this.label,t.muted=this.muted,t.readyState=this.readyState,t}stop(){this.readyState="ended"}};vg=new WeakSet,ZA=function(t,r){for(let o in r)r[o]!==null&&typeof r[o]=="object"&&!Array.isArray(r[o])?(typeof t[o]!="object"&&(t[o]={}),D(this,vg,ZA).call(this,t[o],r[o])):t[o]=r[o]};var t0,e0,Tg=class extends(e0=Wm,t0=Hc,e0){constructor(t,r){super(t);s(this,t0);this[Hc]=r}get canvas(){return this[Hc]}requestFrame(){}clone(){let t=super.clone();return t[Hc]=this.canvas,t}};var tw;(function(l){l[l.connecting=0]="connecting",l[l.open=1]="open",l[l.closing=2]="closing",l[l.closed=3]="closed"})(tw||(tw={}));var ii=tw;var $_=oy(X0(),1),X_=oy(uw(),1),z_=oy(cw(),1),nk=oy(eP(),1),J_=oy(sk(),1);var lk=nk.default;var Z_=/^[!#$%&'*+\-.^_`|~\dA-Za-z]+$/,ak,qs,Bg,Dg,Og,pc,lo,mk,ww,yk,uk,pk,Ew,hk,sl=class extends Tt{constructor(t,r){super();E(this,lo);E(this,qs,ii.closed);E(this,Bg,"");E(this,Dg,"blob");E(this,Og,null);E(this,pc);s(this,ak,null);let o=this[m],i;try{i=new URL(t)}catch{throw new o.DOMException(`The URL '${t}' is invalid.`,v.syntaxError)}if(i.protocol!=="ws:"&&i.protocol!=="wss:")throw new o.DOMException(`The URL's protocol must be either 'ws' or 'wss'. '${i.protocol}' is not allowed.`,v.syntaxError);i.hash&&(i.hash="");let n=new Set,a=r!==void 0?Array.isArray(r)?r:[r]:[];for(let y of a){if(!D(this,lo,hk).call(this,y))throw new o.DOMException(`The subprotocol '${y}' is invalid.`,v.syntaxError);if(n.has(y))throw new o.DOMException(`The subprotocol '${y}' is duplicated.`,v.syntaxError);n.add(y)}w(this,pc,i),D(this,lo,mk).call(this,i,a)}get readyState(){return u(this,qs)}get extensions(){return u(this,Bg)}get binaryType(){return u(this,Dg)}set binaryType(t){t!=="blob"&&t!=="arraybuffer"||w(this,Dg,t)}get protocol(){return this[ro]?.protocol||""}get url(){return u(this,pc).href}close(t,r){let o=this[m];if(t!==void 0&&t!==1e3&&!(t>=3e3&&t<=4999))throw new o.DOMException(`The code must be either 1000, or between 3000 and 4999. ${t} is neither.`,v.invalidAccessError);if(r!==void 0&&Buffer.byteLength(r,"utf8")>123)throw new o.DOMException("The message must not be greater than 123 bytes.",v.syntaxError);D(this,lo,ww).call(this,t,r?Buffer.from(r):void 0)}send(t){let r=this[m];if(u(this,qs)===ii.connecting)throw new r.DOMException("Still in CONNECTING state.",v.invalidStateError);if(u(this,qs)!==ii.open)return;if(typeof t=="string"){this[ro]?.send(t,{binary:!1});return}let o;t instanceof ArrayBuffer?o=Buffer.from(new Uint8Array(t)):t instanceof be?o=t[Mt]:t instanceof Buffer?o=t:ArrayBuffer.isView(t)?o=Buffer.from(new Uint8Array(t.buffer,t.byteOffset,t.byteLength)):o=Buffer.from(String(t)),this[ro]?.send(o,{binary:!0})}[(ak=ro,wt)](){super[wt](),D(this,lo,ww).call(this,1001)}};qs=new WeakMap,Bg=new WeakMap,Dg=new WeakMap,Og=new WeakMap,pc=new WeakMap,lo=new WeakSet,mk=function(t,r){let o=this[m],i=new rt(o).getBrowserContext();if(!i)return;let n=new URL(o.location.href),a=i.cookieContainer.getCookies(n,!1);w(this,qs,ii.connecting),this[ro]=new lk(t,r,{headers:{"user-agent":o.navigator.userAgent,cookie:Fi.cookiesToString(a),origin:n.origin},rejectUnauthorized:!i.browser.settings.fetch.disableStrictSSL}),this[ro].once("open",()=>{D(this,lo,yk).call(this)}),this[ro].on("message",D(this,lo,pk).bind(this)),this[ro].once("close",(y,p)=>{D(this,lo,uk).call(this,y,p)}),this[ro].once("upgrade",({headers:y})=>{if(y["set-cookie"]!==void 0){let p=Array.isArray(y["set-cookie"])?y["set-cookie"]:[y["set-cookie"]];for(let d of p){let b=Fi.stringToCookie(n,d);b&&i.cookieContainer.addCookies([b])}}}),this[ro].once("error",y=>{w(this,Og,y)}),o[Ha].push(this)},ww=function(t,r){this.readyState===ii.connecting?this[ro]?this[ro].terminate():w(this,qs,ii.closing):this[ro]&&this.readyState===ii.open&&this[ro].close(t,r),this[ro]=null},yk=function(){this[ro]?.extensions&&w(this,Bg,Object.keys(this[ro].extensions).join(", ")),w(this,qs,ii.open),this.dispatchEvent(new this[m].Event("open"))},uk=function(t,r){let o=this[m],i=o[Ha].indexOf(this);i!==-1&&o[Ha].splice(i,1),w(this,qs,ii.closed),this.dispatchEvent(new this[m].CloseEvent("close",{wasClean:u(this,Og)===null,code:t,reason:r.toString()}))},pk=function(t,r){if(u(this,qs)!==ii.open)return;let o=this[m],i;r?this.binaryType==="arraybuffer"?t instanceof o.ArrayBuffer?i=t:Array.isArray(t)?i=D(this,lo,Ew).call(this,Buffer.concat(t)):i=D(this,lo,Ew).call(this,t):(Array.isArray(t)||(t=[t]),i=new o.Blob(t)):i=String(t),this.dispatchEvent(new o.MessageEvent("message",{data:i,origin:u(this,pc).origin}))},Ew=function(t){let r=this[m],o=new r.ArrayBuffer(t.byteLength);return new Uint8Array(o).set(t),o},hk=function(t){return Z_.test(t)},s(sl,"CONNECTING",ii.connecting),s(sl,"OPEN",ii.open),s(sl,"CLOSING",ii.closing),s(sl,"CLOSED",ii.closed);var Vg=class{static extendClasses(e){class t extends Zn{}t.prototype[m]=e,e.Document=t;class r extends Ih{}r.prototype[m]=e,e.HTMLDocument=r;class o extends Mh{}o.prototype[m]=e,e.XMLDocument=o;class i extends Im{}i.prototype[m]=e,e.DocumentFragment=i;class n extends Rh{}n.prototype[m]=e,e.Text=n;class a extends Fh{}a.prototype[m]=e,e.Comment=a;class y extends Bh{}y.prototype[m]=e,e.Image=y;class p extends dg{}p.prototype[m]=e,e.Audio=p;class d extends Gh{}d.prototype[m]=e,e.MutationObserver=d;class b extends Sg{}b.prototype[m]=e,e.MessagePort=b;class f extends Wh{}f.prototype[m]=e,e.CSSStyleSheet=f;class S extends ae{}e.DOMException=S;class M extends Cs{}M.prototype[m]=e,e.Headers=M;class N extends bm{}N.prototype[m]=e,e.Request=N;class K extends Xo{}K.prototype[m]=e,K[m]=e,e.Response=K;class mt extends Tt{}mt.prototype[m]=e,e.EventTarget=mt;class Nt extends Ag{}Nt.prototype[m]=e,e.XMLHttpRequestUpload=Nt;class qt extends sa{}qt.prototype[m]=e,e.XMLHttpRequestEventTarget=qt;class at extends Yh{}at.prototype[m]=e,e.AbortController=at;class xt extends qh{}xt.prototype[m]=e,xt[m]=e,e.AbortSignal=xt;class It extends cm{}It.prototype[m]=e,e.FormData=It;class At extends Kh{}At.prototype[m]=e,e.PermissionStatus=At;class Xe extends el{}Xe.prototype[m]=e,e.XMLHttpRequest=Xe;class ze extends zh{}ze.prototype[m]=e,e.DOMParser=ze;class ao extends ol{}ao.prototype[m]=e,e.Range=ao;class ai extends Jh{}ai.prototype[m]=e,e.VTTCue=ai;class wa extends Zh{}wa.prototype[m]=e,e.TextTrack=wa;class tn extends tc{}tn.prototype[m]=e,e.TextTrackList=tn;class Nc extends Gm{}Nc.prototype[m]=e,e.TextTrackCue=Nc;class qi extends ec{}qi.prototype[m]=e,e.RemotePlayback=qi;class Lc extends ic{}Lc.prototype[m]=e,e.FileReader=Lc;class qf extends Am{}qf.prototype[m]=e,e.MediaStream=qf;class ur extends Wm{}ur.prototype[m]=e,e.MediaStreamTrack=ur;class mi extends Tg{}mi.prototype[m]=e,e.CanvasCaptureMediaStreamTrack=mi;class Ea extends De{}Ea.prototype[m]=e,e.URL=Ea;class Kf extends sl{}Kf.prototype[m]=e,e.WebSocket=Kf}};var ck,dk,bk,gk;gk=R,bk=F,dk=ho,ck=hy;var Ug=class{constructor(e,t,r,o){s(this,gk,0);s(this,bk,0);s(this,dk,0);s(this,ck,1);this[R]=e!=null?Number(e):0,this[F]=t!=null?Number(t):0,this[ho]=r!=null?Number(r):0,this[hy]=o!=null?Number(o):1}get x(){return this[R]}get y(){return this[F]}get z(){return this[ho]}get w(){return this[hy]}toJSON(){return{x:this.x,y:this.y,z:this.z,w:this.w}}static fromPoint(e){return e?new this(e.x??null,e.y??null,e.z??null,e.w??null):new this}};var pu=class extends Ug{set x(e){this[R]=e}get x(){return this[R]}set y(e){this[F]=e}get y(){return this[F]}set z(e){this[ho]=e}get z(){return this[ho]}set w(e){this[hy]=e}get w(){return this[hy]}};var hc={a:1,b:0,c:0,d:1,e:0,f:0,m11:1,m12:0,m13:0,m14:0,m21:0,m22:1,m23:0,m24:0,m31:0,m32:0,m33:1,m34:0,m41:0,m42:0,m43:0,m44:1,is2D:!0,isIdentity:!0},tH=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,eH=/[\s,]+/,fk,Sk,Pk,Ak,wk,Ek,xk,vk,Tk,Ck,Nk,Lk,kk,Ik,Mk,Rk,oP,Fk,iP=class iP{constructor(e){E(this,oP);s(this,Rk,1);s(this,Mk,0);s(this,Ik,0);s(this,kk,0);s(this,Lk,0);s(this,Nk,1);s(this,Ck,0);s(this,Tk,0);s(this,vk,0);s(this,xk,0);s(this,Ek,1);s(this,wk,0);s(this,Ak,0);s(this,Pk,0);s(this,Sk,0);s(this,fk,1);e&&this[Bu](e)}get a(){return this[Ft]}get b(){return this[Ut]}get c(){return this[Bt]}get d(){return this[Gt]}get e(){return this[Dt]}get f(){return this[_t]}get m11(){return this[Ft]}get m12(){return this[Ut]}get m13(){return this[ie]}get m14(){return this[se]}get m21(){return this[Bt]}get m22(){return this[Gt]}get m23(){return this[ne]}get m24(){return this[le]}get m31(){return this[Kt]}get m32(){return this[Jt]}get m33(){return this[Zt]}get m34(){return this[jt]}get m41(){return this[Dt]}get m42(){return this[_t]}get m43(){return this[te]}get m44(){return this[ee]}get isIdentity(){return this[Ft]===1&&this[Ut]===0&&this[ie]===0&&this[se]===0&&this[Bt]===0&&this[Gt]===1&&this[ne]===0&&this[le]===0&&this[Kt]===0&&this[Jt]===0&&this[Zt]===1&&this[jt]===0&&this[Dt]===0&&this[_t]===0&&this[te]===0&&this[ee]===1}get is2D(){return this[Kt]===0&&this[Jt]===0&&this[Zt]===1&&this[jt]===0&&this[te]===0&&this[ee]===1}toFloat32Array(e){return Float32Array.from(this[gd](e))}toFloat64Array(e){return Float64Array.from(this[gd](e))}toString(){let e=this.is2D,t=this[gd](e).join(", ");return`${e?"matrix":"matrix3d"}(${t})`}toJSON(){let{is2D:e,isIdentity:t}=this;return{m11:this[Ft],m12:this[Ut],m13:this[ie],m14:this[se],m21:this[Bt],m22:this[Gt],m23:this[ne],m24:this[le],m31:this[Kt],m32:this[Jt],m33:this[Zt],m34:this[jt],m41:this[Dt],m42:this[_t],m43:this[te],m44:this[ee],a:this[Ft],b:this[Ut],c:this[Bt],d:this[Gt],e:this[Dt],f:this[_t],is2D:e,isIdentity:t}}multiply(e){let t=new this.constructor(this);return t[ci](e),t}translate(e=0,t=0,r=0){let o=new this.constructor(this);return o[hi](e,t,r),o}scale(e,t,r=1,o=0,i=0,n=0){let a=new this.constructor(this);return a[xn](e,t,r,o,i,n),a}scale3d(e=1,t=0,r=0,o=0){let i=new this.constructor(this);return i[fd](e,t,r,o),i}scaleNonUniform(e=1,t=1){let r=new this.constructor(this);return r[Sd](e,t),r}rotateAxisAngle(e=0,t=0,r=0,o=0){let i=new this.constructor(this);return i[vl](e,t,r,o),i}rotate(e=0,t,r){let o=new this.constructor(this);return o[xl](e,t,r),o}rotateFromVector(e=0,t=0){let r=new this.constructor(this);return r[tb](e,t),r}skewX(e){let t=new this.constructor(this);return t[dy](e),t}skewY(e){let t=new this.constructor(this);return t[by](e),t}flipX(){let e=new this.constructor(this);return e[eb](),e}flipY(){let e=new this.constructor(this);return e[rb](),e}inverse(){let e=new this.constructor(this);return e[ob](),e}transformPoint(e){let t=e.x??0,r=e.y??0,o=e.z??0,i=e.w??1,n=this[Ft]*t+this[Bt]*r+this[Kt]*o+this[Dt]*i,a=this[Ut]*t+this[Gt]*r+this[Jt]*o+this[_t]*i,y=this[ie]*t+this[ne]*r+this[Zt]*o+this[te]*i,p=this[se]*t+this[le]*r+this[jt]*o+this[ee]*i;return new pu(n,a,y,p)}[(Rk=Ft,Mk=Ut,Ik=ie,kk=se,Lk=Bt,Nk=Gt,Ck=ne,Tk=le,vk=Kt,xk=Jt,Ek=Zt,wk=jt,Ak=Dt,Pk=_t,Sk=te,fk=ee,Bu)](e){let t=null;if(typeof e=="string"&&e.length&&e!=="none")t=this.constructor[cy](e);else if(Array.isArray(e)||e instanceof Float64Array||e instanceof Float32Array)t=this.constructor[pi](e);else if(typeof e=="object")t=this.constructor.fromMatrix(e);else return;this[Ft]=t[Ft],this[Ut]=t[Ut],this[ie]=t[ie],this[se]=t[se],this[Bt]=t[Bt],this[Gt]=t[Gt],this[ne]=t[ne],this[le]=t[le],this[Kt]=t[Kt],this[Jt]=t[Jt],this[Zt]=t[Zt],this[jt]=t[jt],this[Dt]=t[Dt],this[_t]=t[_t],this[te]=t[te],this[ee]=t[ee]}[ci](e){let t=e;t instanceof iP||(t?.m11===void 0&&t?.a!==void 0?(t=Object.assign({},hc,t),t.m11=t.a,t.m12=t.b,t.m21=t.c,t.m22=t.d,t.m41=t.e,t.m42=t.f):t=Object.assign({},hc,t));let r=this[Ft]*t.m11+this[Bt]*t.m12+this[Kt]*t.m13+this[Dt]*t.m14,o=this[Ft]*t.m21+this[Bt]*t.m22+this[Kt]*t.m23+this[Dt]*t.m24,i=this[Ft]*t.m31+this[Bt]*t.m32+this[Kt]*t.m33+this[Dt]*t.m34,n=this[Ft]*t.m41+this[Bt]*t.m42+this[Kt]*t.m43+this[Dt]*t.m44,a=this[Ut]*t.m11+this[Gt]*t.m12+this[Jt]*t.m13+this[_t]*t.m14,y=this[Ut]*t.m21+this[Gt]*t.m22+this[Jt]*t.m23+this[_t]*t.m24,p=this[Ut]*t.m31+this[Gt]*t.m32+this[Jt]*t.m33+this[_t]*t.m34,d=this[Ut]*t.m41+this[Gt]*t.m42+this[Jt]*t.m43+this[_t]*t.m44,b=this[ie]*t.m11+this[ne]*t.m12+this[Zt]*t.m13+this[te]*t.m14,f=this[ie]*t.m21+this[ne]*t.m22+this[Zt]*t.m23+this[te]*t.m24,S=this[ie]*t.m31+this[ne]*t.m32+this[Zt]*t.m33+this[te]*t.m34,M=this[ie]*t.m41+this[ne]*t.m42+this[Zt]*t.m43+this[te]*t.m44,N=this[se]*t.m11+this[le]*t.m12+this[jt]*t.m13+this[ee]*t.m14,K=this[se]*t.m21+this[le]*t.m22+this[jt]*t.m23+this[ee]*t.m24,mt=this[se]*t.m31+this[le]*t.m32+this[jt]*t.m33+this[ee]*t.m34,Nt=this[se]*t.m41+this[le]*t.m42+this[jt]*t.m43+this[ee]*t.m44;this[Ft]=r,this[Ut]=a,this[ie]=b,this[se]=N,this[Bt]=o,this[Gt]=y,this[ne]=f,this[le]=K,this[Kt]=i,this[Jt]=p,this[Zt]=S,this[jt]=mt,this[Dt]=n,this[_t]=d,this[te]=M,this[ee]=Nt}[hi](e=0,t=0,r=0){let o=this.constructor[pi]([1,0,0,0,0,1,0,0,0,0,1,0,e,t,r,1]);this[ci](o)}[xn](e,t,r=1,o=0,i=0,n=0){e=e===void 0?1:Number(e),t=t===void 0?e:Number(t),(o!==0||i!==0||n!==0)&&this[hi](o,i,n),(e!==1||t!==1||r!==1)&&this[ci](this.constructor[pi]([e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1])),(o!==0||i!==0||n!==0)&&this[hi](-o,-i,-n)}[fd](e=1,t=0,r=0,o=0){(t!==0||r!==0||o!==0)&&this[hi](t,r,o),e!==1&&this[ci](this.constructor[pi]([e,0,0,0,0,e,0,0,0,0,e,0,0,0,0,1])),(t!==0||r!==0||o!==0)&&this[hi](-t,-r,-o)}[Sd](e=1,t=1){e===1&&t===1||this[ci](this.constructor[pi]([e,0,0,0,0,t,0,0,0,0,1,0,0,0,0,1]))}[vl](e=0,t=0,r=0,o=0){if(e=Number(e),t=Number(t),r=Number(r),o=Number(o),isNaN(e)||isNaN(t)||isNaN(r)||isNaN(o))throw new TypeError("Failed to execute 'rotateAxisAngleSelf' on 'DOMMatrix': The arguments must be numbers.");let i=Math.hypot(e,t,r);if(i===0)return;i!==1&&(e/=i,t/=i,r/=i);let n=-(o*Math.PI/360),a=D(this,oP,Fk),y=Math.sin(n)*Math.cos(n),p=Math.sin(n)*Math.sin(n),d=a(1-2*(t*t+r*r)*p),b=a(2*(e*t*p+r*y)),f=a(2*(e*r*p-t*y)),S=a(2*(e*t*p-r*y)),M=a(1-2*(e*e+r*r)*p),N=a(2*(t*r*p+e*y)),K=a(2*(e*r*p+t*y)),mt=a(2*(t*r*p-e*y)),Nt=a(1-2*(e*e+t*t)*p),qt=this.constructor[pi]([d,S,K,0,b,M,mt,0,f,N,Nt,0,0,0,0,1]);this[ci](qt)}[xl](e=0,t,r){if(t===void 0&&r===void 0&&(r=e,e=0,t=0),t===void 0&&(t=0),r===void 0&&(r=0),e=Number(e),t=Number(t),r=Number(r),isNaN(e)||isNaN(t)||isNaN(r))throw new TypeError("Failed to execute 'rotateSelf' on 'DOMMatrix': The arguments must be numbers.");r!==0&&this[vl](0,0,1,r),t!==0&&this[vl](0,1,0,t),e!==0&&this[vl](1,0,0,e)}[tb](e=0,t=0){e===0&&t===0||this[xl](Math.atan2(t,e)*180/Math.PI)}[dy](e){let t=Object.assign({},hc),r=Math.tan(e*Math.PI/180);t.m21=r,t.c=r,this[ci](t)}[by](e){let t=Object.assign({},hc),r=Math.tan(e*Math.PI/180);t.m12=r,t.b=r,this[ci](t)}[eb](){let e=this.constructor[pi]([-1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);this[ci](e)}[rb](){let e=this.constructor[pi]([1,0,0,0,0,-1,0,0,0,0,1,0,0,0,0,1]);this[ci](e)}[ob](){let e=this[Gt]*this[Zt]*this[ee]-this[Gt]*this[jt]*this[te]-this[Jt]*this[ne]*this[ee]+this[Jt]*this[le]*this[te]+this[_t]*this[ne]*this[jt]-this[_t]*this[le]*this[Zt],t=-this[Ut]*this[Zt]*this[ee]+this[Ut]*this[jt]*this[te]+this[Jt]*this[ie]*this[ee]-this[Jt]*this[se]*this[te]-this[_t]*this[ie]*this[jt]+this[_t]*this[se]*this[Zt],r=this[Ut]*this[ne]*this[ee]-this[Ut]*this[le]*this[te]-this[Gt]*this[ie]*this[ee]+this[Gt]*this[se]*this[te]+this[_t]*this[ie]*this[le]-this[_t]*this[se]*this[ne],o=-this[Ut]*this[ne]*this[jt]+this[Ut]*this[le]*this[Zt]+this[Gt]*this[ie]*this[jt]-this[Gt]*this[se]*this[Zt]-this[Jt]*this[ie]*this[le]+this[Jt]*this[se]*this[ne],i=this[Ft]*e+this[Bt]*t+this[Kt]*r+this[Dt]*o;if(i===0){this[Ft]=NaN,this[Ut]=NaN,this[ie]=NaN,this[se]=NaN,this[Bt]=NaN,this[Gt]=NaN,this[ne]=NaN,this[le]=NaN,this[Kt]=NaN,this[Jt]=NaN,this[Zt]=NaN,this[jt]=NaN,this[Dt]=NaN,this[_t]=NaN,this[te]=NaN,this[ee]=NaN;return}let n=-this[Bt]*this[Zt]*this[ee]+this[Bt]*this[jt]*this[te]+this[Kt]*this[ne]*this[ee]-this[Kt]*this[le]*this[te]-this[Dt]*this[ne]*this[jt]+this[Dt]*this[le]*this[Zt],a=this[Ft]*this[Zt]*this[ee]-this[Ft]*this[jt]*this[te]-this[Kt]*this[ie]*this[ee]+this[Kt]*this[se]*this[te]+this[Dt]*this[ie]*this[jt]-this[Dt]*this[se]*this[Zt],y=-this[Ft]*this[ne]*this[ee]+this[Ft]*this[le]*this[te]+this[Bt]*this[ie]*this[ee]-this[Bt]*this[se]*this[te]-this[Dt]*this[ie]*this[le]+this[Dt]*this[se]*this[ne],p=this[Ft]*this[ne]*this[jt]-this[Ft]*this[le]*this[Zt]-this[Bt]*this[ie]*this[jt]+this[Bt]*this[se]*this[Zt]+this[Kt]*this[ie]*this[le]-this[Kt]*this[se]*this[ne],d=this[Bt]*this[Jt]*this[ee]-this[Bt]*this[jt]*this[_t]-this[Kt]*this[Gt]*this[ee]+this[Kt]*this[le]*this[_t]+this[Dt]*this[Gt]*this[jt]-this[Dt]*this[le]*this[Jt],b=-this[Ft]*this[Jt]*this[ee]+this[Ft]*this[jt]*this[_t]+this[Kt]*this[Ut]*this[ee]-this[Kt]*this[se]*this[_t]-this[Dt]*this[Ut]*this[jt]+this[Dt]*this[se]*this[Jt],f=this[Ft]*this[Gt]*this[ee]-this[Ft]*this[le]*this[_t]-this[Bt]*this[Ut]*this[ee]+this[Bt]*this[se]*this[_t]+this[Dt]*this[Ut]*this[le]-this[Dt]*this[se]*this[Gt],S=-this[Ft]*this[Gt]*this[jt]+this[Ft]*this[le]*this[Jt]+this[Bt]*this[Ut]*this[jt]-this[Bt]*this[se]*this[Jt]-this[Kt]*this[Ut]*this[le]+this[Kt]*this[se]*this[Gt],M=-this[Bt]*this[Jt]*this[te]+this[Bt]*this[Zt]*this[_t]+this[Kt]*this[Gt]*this[te]-this[Kt]*this[ne]*this[_t]-this[Dt]*this[Gt]*this[Zt]+this[Dt]*this[ne]*this[Jt],N=this[Ft]*this[Jt]*this[te]-this[Ft]*this[Zt]*this[_t]-this[Kt]*this[Ut]*this[te]+this[Kt]*this[ie]*this[_t]+this[Dt]*this[Ut]*this[Zt]-this[Dt]*this[ie]*this[Jt],K=-this[Ft]*this[Gt]*this[te]+this[Ft]*this[ne]*this[_t]+this[Bt]*this[Ut]*this[te]-this[Bt]*this[ie]*this[_t]-this[Dt]*this[Ut]*this[ne]+this[Dt]*this[ie]*this[Gt],mt=this[Ft]*this[Gt]*this[Zt]-this[Ft]*this[ne]*this[Jt]-this[Bt]*this[Ut]*this[Zt]+this[Bt]*this[ie]*this[Jt]+this[Kt]*this[Ut]*this[ne]-this[Kt]*this[ie]*this[Gt];this[Ft]=e/i||0,this[Ut]=t/i||0,this[ie]=r/i||0,this[se]=o/i||0,this[Bt]=n/i||0,this[Gt]=a/i||0,this[ne]=y/i||0,this[le]=p/i||0,this[Kt]=d/i||0,this[Jt]=b/i||0,this[Zt]=f/i||0,this[jt]=S/i||0,this[Dt]=M/i||0,this[_t]=N/i||0,this[te]=K/i||0,this[ee]=mt/i||0}[gd](e=!1){return e?[this[Ft],this[Ut],this[Bt],this[Gt],this[Dt],this[_t]]:[this[Ft],this[Ut],this[ie],this[se],this[Bt],this[Gt],this[ne],this[le],this[Kt],this[Jt],this[Zt],this[jt],this[Dt],this[_t],this[te],this[ee]]}static fromMatrix(e){return e instanceof iP||(e?.m11===void 0&&e?.a!==void 0?(e=Object.assign({},hc,e),e.m11=e.a,e.m12=e.b,e.m21=e.c,e.m22=e.d,e.m41=e.e,e.m42=e.f):e=Object.assign({},hc,e)),this[pi]([e.m11,e.m12,e.m13,e.m14,e.m21,e.m22,e.m23,e.m24,e.m31,e.m32,e.m33,e.m34,e.m41,e.m42,e.m43,e.m44])}static fromFloat32Array(e){return this[pi](e)}static fromFloat64Array(e){return this[pi](e)}static[pi](e){if(!(e instanceof Float64Array||e instanceof Float32Array||Array.isArray(e))||e.length!==6&&e.length!==16)throw TypeError(`Failed to execute 'fromArray' on '${this.name}': '${String(e)}' is not a compatible array.`);let t=new this;if(e.length===16){let[r,o,i,n,a,y,p,d,b,f,S,M,N,K,mt,Nt]=e;t[Ft]=r,t[Ut]=o,t[ie]=i,t[se]=n,t[Bt]=a,t[Gt]=y,t[ne]=p,t[le]=d,t[Kt]=b,t[Jt]=f,t[Zt]=S,t[jt]=M,t[Dt]=N,t[_t]=K,t[te]=mt,t[ee]=Nt}else if(e.length===6){let[r,o,i,n,a,y]=e;t[Ft]=r,t[Ut]=o,t[Bt]=i,t[Gt]=n,t[Dt]=a,t[_t]=y}return t}static[cy](e){if(typeof e!="string")throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Expected '${String(e)}' to be a string.`);let t=new this,r=new RegExp(tH),o;for(;o=r.exec(e);){let i=o[1],n=o[2].split(eH);for(let b=0,f=n.length;b<f;b++)n[b]=this[DP](n[b]);let[a,y,p,d]=n;switch(i){case"perspective":!isNaN(a)&&a!==0&&y===void 0&&p===void 0&&(t[jt]=-1/a);break;case"translate":!isNaN(a)&&p===void 0&&t[hi](a,y||0,0);break;case"translate3d":!isNaN(a)&&!isNaN(y)&&!isNaN(p)&&t[hi](a,y,p);break;case"translateX":!isNaN(a)&&y===void 0&&p===void 0&&t[hi](a);break;case"translateY":!isNaN(a)&&y===void 0&&p===void 0&&t[hi](0,a);break;case"translateZ":!isNaN(a)&&y===void 0&&p===void 0&&t[hi](0,0,a);break;case"matrix":case"matrix3d":(n.length===6||n.length===16)&&t[Bu](this[pi](n));break;case"rotate":case"rotateZ":!isNaN(a)&&y===void 0&&p===void 0&&t[xl](0,0,a);break;case"rotateX":!isNaN(a)&&y===void 0&&p===void 0&&t[xl](a,0,0);break;case"rotateY":!isNaN(a)&&y===void 0&&p===void 0&&t[xl](0,a,0);case"rotate3d":!isNaN(a)&&!isNaN(y)&&!isNaN(p)&&!isNaN(d)&&t[vl](a,y,p,d);break;case"scale":!isNaN(a)&&a!==1&&p===void 0&&t[xn](a,isNaN(y)?a:y);break;case"scale3d":!isNaN(a)&&!isNaN(y)&&!isNaN(p)&&t[xn](a,y,p);break;case"scaleX":!isNaN(a)&&y===void 0&&p===void 0&&t[xn](a,1,1);break;case"scaleY":!isNaN(a)&&y===void 0&&p===void 0&&t[xn](1,a,1);break;case"scaleZ":!isNaN(a)&&y===void 0&&p===void 0&&t[xn](1,1,a);break;case"skew":isNaN(a)||t[dy](a),isNaN(y)||t[by](y);break;case"skewX":!isNaN(a)&&y===void 0&&t[dy](a);break;case"skewY":!isNaN(a)&&y===void 0&&t[by](a);break;default:throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Unknown transform function '${o[1]}'.`)}}return t}static[DP](e){let t=parseFloat(e);switch(e.replace(t.toString(),"")){case"rem":case"em":case"vw":case"vh":case"%":case"vmin":case"vmax":throw new SyntaxError(`Failed to construct '${this.name}': Lengths must be absolute, not relative`);case"rad":return t*(180/Math.PI);case"turn":return t*360;case"px":return t;case"cm":return t*37.7812;case"mm":return t*3.7781;case"in":return t*96;case"pt":return t*1.3281;case"pc":return t*16;case"Q":return t*.945;default:return t}}};oP=new WeakSet,Fk=function(e,t=1e15){return Math.round(e*t)/t};var hu=iP;var ko=class extends hu{get a(){return this[Ft]}set a(e){this[Ft]=e}get b(){return this[Ut]}set b(e){this[Ut]=e}get c(){return this[Bt]}set c(e){this[Bt]=e}get d(){return this[Gt]}set d(e){this[Gt]=e}get e(){return this[Dt]}set e(e){this[Dt]=e}get f(){return this[_t]}set f(e){this[_t]=e}get m11(){return this[Ft]}set m11(e){this[Ft]=e}get m12(){return this[Ut]}set m12(e){this[Ut]=e}get m13(){return this[ie]}set m13(e){this[ie]=e}get m14(){return this[se]}set m14(e){this[se]=e}get m21(){return this[Bt]}set m21(e){this[Bt]=e}get m22(){return this[Gt]}set m22(e){this[Gt]=e}get m23(){return this[ne]}set m23(e){this[ne]=e}get m24(){return this[le]}set m24(e){this[le]=e}get m31(){return this[Kt]}set m31(e){this[Kt]=e}get m32(){return this[Jt]}set m32(e){this[Jt]=e}get m33(){return this[Zt]}set m33(e){this[Zt]=e}get m34(){return this[jt]}set m34(e){this[jt]=e}get m41(){return this[Dt]}set m41(e){this[Dt]=e}get m42(){return this[_t]}set m42(e){this[_t]=e}get m43(){return this[te]}set m43(e){this[te]=e}get m44(){return this[ee]}set m44(e){this[ee]=e}setMatrixValue(e){return this[Bu](e),this}multiplySelf(e){return this[ci](e),this}translateSelf(e=0,t=0,r=0){return this[hi](e,t,r),this}scaleSelf(e,t,r=1,o=0,i=0,n=0){return this[xn](e,t,r,o,i,n),this}scale3dSelf(e=1,t=0,r=0,o=0){return this[fd](e,t,r,o),this}scaleNonUniformSelf(e=1,t=1){return this[Sd](e,t),this}rotateAxisAngleSelf(e=0,t=0,r=0,o=0){return this[vl](e,t,r,o),this}rotateSelf(e=0,t,r){return this[xl](e,t,r),this}rotateFromVectorSelf(e=0,t=0){return this[tb](e,t),this}skewXSelf(e){return this[dy](e),this}skewYSelf(e){return this[by](e),this}flipXSelf(){return this[eb](),this}flipYSelf(){return this[rb](),this}invertSelf(){return this[ob](),this}};var rH=/[\t\f\n\r ,]+/,Bk,Dk,Ok,Vk,Uk,Ks=class l{constructor(e,t,r){s(this,Uk);s(this,Vk);s(this,Ok);s(this,Dk,!1);s(this,Bk,{items:[],attributeValue:""});if(e!==h)throw new TypeError("Illegal constructor");if(this[m]=t,this[X]=!!r.readOnly,this[C]=r.getAttribute,this[x]=r.setAttribute,e!==h)throw new TypeError("Illegal constructor");let o=new Te(this,[l]);return new Proxy(this,{get:(i,n)=>{if(n==="length"||n==="numberOfItems")return i[Q]().length;if(n in i||typeof n=="symbol")return o.bind(n),i[n];let a=Number(n);if(!isNaN(a))return i[Q]()[a]},set(i,n,a){if(o.bind(n),typeof n=="symbol")return i[n]=a,!0;let y=Number(n);return isNaN(y)&&(i[n]=a),!0},deleteProperty(i,n){if(typeof n=="symbol")return delete i[n],!0;let a=Number(n);return isNaN(a)&&delete i[n],!0},ownKeys(i){return Object.keys(i[Q]())},has(i,n){if(n in i)return!0;if(typeof n=="symbol")return!1;let a=Number(n);return!isNaN(a)&&a>=0&&a<i[Q]().length},defineProperty(i,n,a){return o.preventBinding(n),n in i?(Object.defineProperty(i,n,a),!0):!1},getOwnPropertyDescriptor(i,n){if(n in i||typeof n=="symbol")return;let a=Number(n),y=i[Q]();if(!isNaN(a)&&y[a])return{value:y[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Q]().length}get numberOfItems(){return this[Q]().length}[(Uk=m,Vk=C,Ok=x,Dk=X,Bk=W,Symbol.iterator)](){return this[Q]().values()}clear(){this[W].attributeValue="",this[W].items=[],this[x]("")}initialize(e){if(this[X])throw new this[m].TypeError("Failed to execute 'initialize' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'initialize' on 'SVGStringList': 1 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e){this.clear();return}return this[x](e),e}getItem(e){let t=this[Q]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),t[e]?t[e]:null}insertItemBefore(e,t){if(this[X])throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGStringList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertItemBefore' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e)return e;let r=this[Q](),o=r.indexOf(e);return o!==-1&&r.splice(o,1),t<0?t=0:t>r.length&&(t=r.length),r.splice(t,0,e),this[x](r.join(" ")),e}replaceItem(e,t){if(this[X])throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGStringList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceItem' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e)return this.removeItem(t);let r=this[Q]();t<0?t=0:t>=r.length&&(t=r.length-1);let o=r[t];return r[t]=e,this[x](r.join(" ")),o}removeItem(e){if(this[X])throw new this[m].TypeError("Failed to execute 'removeItem' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'removeItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`);let t=this[Q]();if(e=Number(e),isNaN(e)&&(e=0),e>=t.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${e}) is greater than the maximum bound.`,v.indexSizeError);if(e<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${e}) is negative.`,v.indexSizeError);let r=t[e];return t.splice(e,1),this[x](t.join(" ")),r}appendItem(e){if(this[X])throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'appendItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`);if(e=String(e),!e)return e;let t=this[Q](),r=t.indexOf(e);return r!==-1&&t.splice(r,1),t.push(e),this[x](t.join(" ")),e}[Q](){let e=this[C]()??"",t=this[W];if(t.attributeValue===e)return t.items;let r=[],o=e.trim();if(o)for(let i of o.split(rH))r.includes(i)||r.push(i);return t.attributeValue=e,t.items=r,r}};var oH=/([a-zA-Z0-9]+)\(([^)]+)\)/,iH=/[\s,]+/,Gk,_k,Hk,Wk,Yk,nl=class l{constructor(e,t,r){s(this,Yk);s(this,Wk,null);s(this,Hk,null);s(this,_k,null);s(this,Gk,!1);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,r&&(this[X]=!!r.readOnly,this[C]=r.getAttribute||null,this[x]=r.setAttribute||null)}get a(){return this[He]().a}set a(e){if(this[X])return;let t=this[He]();t.a=e,this[qr](t)}get b(){return this[He]().b}set b(e){if(this[X])return;let t=this[He]();t.b=e,this[qr](t)}get c(){return this[He]().c}set c(e){if(this[X])return;let t=this[He]();t.c=e,this[qr](t)}get d(){return this[He]().d}set d(e){if(this[X])return;let t=this[He]();t.d=e,this[qr](t)}get e(){return this[He]().e}set e(e){if(this[X])return;let t=this[He]();t.e=e,this[qr](t)}get f(){return this[He]().f}set f(e){if(this[X])return;let t=this[He]();t.f=e,this[qr](t)}multiply(e){if(!(e instanceof l))throw new this[m].TypeError("Failed to execute 'multiply' on 'SVGMatrix': parameter 1 is not of type 'SVGMatrix'.");let t=this[He](),r=new l(h,this[m]);return t.multiplySelf(e[He]()),r[qr](t),r}translate(e=0,t=0){let r=this[He](),o=new l(h,this[m]);return r.translateSelf(e,t),o[qr](r),o}scale(e){let t=this[He](),r=new l(h,this[m]);return t.scaleSelf(e),r[qr](t),r}scaleNonUniform(e=1,t=1){let r=this[He](),o=new l(h,this[m]);return r.scaleNonUniformSelf(e,t),o[qr](r),o}rotate(e){let t=this[He](),r=new l(h,this[m]);return t.rotateSelf(e),r[qr](t),r}rotateFromVector(e=0,t=0){let r=this[He](),o=new l(h,this[m]);return r.rotateFromVectorSelf(e,t),o[qr](r),o}skewX(e){let t=this[He](),r=new l(h,this[m]);return t.skewXSelf(e),r[qr](t),r}skewY(e){let t=this[He](),r=new l(h,this[m]);return t.skewYSelf(e),r[qr](t),r}flipX(){let e=this[He](),t=new l(h,this[m]);return e.flipXSelf(),t[qr](e),t}flipY(){let e=this[He](),t=new l(h,this[m]);return e.flipYSelf(),t[qr](e),t}inverse(){let e=this[He](),t=new l(h,this[m]);return e.invertSelf(),t[qr](e),t}[(Yk=m,Wk=C,Hk=x,_k=B,Gk=X,He)](){let e=this[C]?this[C]():this[B];if(!e)return new ko;let t=e.match(oH);if(!t)return new ko;let r=[];for(let o of t[2].trim().split(iH)){let i=Number(o);if(isNaN(i))throw new this[m].TypeError(`Failed to parse transform attribute: Expected number, but got "${o}" in "${e}".`);r.push(i)}switch(t[1]){case"matrix":if(r.length!==6)throw new this[m].TypeError(`Failed to parse transform attribute: Expected 6 parameters in "${e}".`);return ko[cy](e);case"scale":case"translate":if(r.length!==1&&r.length!==2)throw new this[m].TypeError(`Failed to parse transform attribute: Expected 1 or 2 parameters in "${e}".`);return ko[cy](e);case"skewY":case"skewX":if(r.length!==1)throw new this[m].TypeError(`Failed to parse transform attribute: Expected 1 parameter in "${e}".`);return ko[cy](e);case"rotate":let o=new ko;if(r.length!==1&&r.length!==3)throw new this[m].TypeError(`Failed to parse transform attribute: Expected 1 or 3 parameters in "${e}".`);let[i,n,a]=r;(n||a)&&o.translateSelf(n,a);let y=i*Math.PI/180;return o.multiplySelf(new ko([Math.cos(y),Math.sin(y),-Math.sin(y),Math.cos(y),0,0])),(n||a)&&o.translateSelf(-n,-a),o;default:throw new this[m].TypeError(`Failed to parse transform attribute: Unknown transformation "${e}".`)}}[qr](e){this[B]=e.toString().replace(/, /g," "),this[x]&&this[x](this[B])}};var xw;(function(l){l[l.unknown=0]="unknown",l[l.matrix=1]="matrix",l[l.translate=2]="translate",l[l.scale=3]="scale",l[l.rotate=4]="rotate",l[l.skewX=5]="skewX",l[l.skewY=6]="skewY"})(xw||(xw={}));var si=xw;var qk=/([a-zA-Z0-9]+)\(([^)]+)\)/,sH=/[\s,]+/,Kk,jk,Qk,$k,Xk,zk;zk=m,Xk=C,$k=x,Qk=B,jk=X,Kk=Tl;var Nr=class{constructor(e,t,r){s(this,zk);s(this,Xk,null);s(this,$k,null);s(this,Qk,null);s(this,jk,!1);s(this,Kk,null);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,r&&(this[X]=!!r.readOnly,this[C]=r.getAttribute||null,this[x]=r.setAttribute||null)}get type(){let t=(this[C]?this[C]():this[B])?.match(qk);if(!t)return si.unknown;switch(t[1]){case"matrix":return si.matrix;case"translate":return si.translate;case"rotate":return si.rotate;case"scale":return si.scale;case"skewX":return si.skewX;case"skewY":return si.skewY}return 0}get angle(){let t=(this[C]?this[C]():this[B])?.match(qk);if(!t)return 0;let r=parseFloat(t[2].trim().split(sH)[0]);if(isNaN(r))return 0;switch(t[1]){case"rotate":case"skewX":case"skewY":return r}return 0}get matrix(){return this[Tl]||(this[Tl]=new nl(h,this[m],{readOnly:this[X],getAttribute:()=>this[C]?this[C]():this[B],setAttribute:e=>{if(this[B]=e,this[x]){this[x](e);return}}})),this[Tl]}setMatrix(e){if(!(e instanceof nl))throw new TypeError('Failed to set the "matrix" property on "SVGTransform": The provided value is not of type "SVGMatrix".');this[X]||(this[Tl]&&(this[Tl][C]=null,this[Tl][x]=null),e[C]=()=>this[C]?this[C]():this[B],e[x]=t=>{if(this[B]=t,this[x]){this[x](t);return}},this[Tl]=e,e[B]!==this[B]&&(this[B]=e[B],this[x]&&this[x](this[B]||"")))}setTranslate(e,t){if(arguments.length<2)throw new TypeError(`Failed to execute 'setTranslate' on 'SVGTransform': 2 arguments required, but only ${arguments.length} present.`);if(e=Number(e),t=Number(t),isNaN(e)||isNaN(t))throw new TypeError("Failed to execute 'setTranslate' on 'SVGTransform': The provided float value is non-finite.");this[X]||(this[B]=`translate(${e} ${t})`,this[x]&&this[x](this[B]))}setScale(e,t){if(arguments.length<2)throw new TypeError(`Failed to execute 'setScale' on 'SVGTransform': 2 arguments required, but only ${arguments.length} present.`);if(e=Number(e),t=Number(t),isNaN(e)||isNaN(t))throw new TypeError("Failed to execute 'setScale' on 'SVGTransform': The provided float value is non-finite.");this[X]||(this[B]=`scale(${e} ${t})`,this[x]&&this[x](this[B]))}setRotate(e,t,r){if(arguments.length<3)throw new TypeError(`Failed to execute 'setRotate' on 'SVGTransform': 3 arguments required, but only ${arguments.length} present.`);if(e=Number(e),t=Number(t),r=Number(r),isNaN(e)||isNaN(t)||isNaN(r))throw new TypeError("Failed to execute 'setRotate' on 'SVGTransform': The provided float value is non-finite.");this[X]||(this[B]=`rotate(${e} ${t} ${r})`,this[x]&&this[x](this[B]))}setSkewX(e){if(arguments.length<1)throw new TypeError(`Failed to execute 'setSkewX' on 'SVGTransform': 1 arguments required, but only ${arguments.length} present.`);if(e=Number(e),isNaN(e))throw new TypeError("Failed to execute 'setSkewX' on 'SVGTransform': The provided float value is non-finite.");this[X]||(this[B]=`skewX(${e})`,this[x]&&this[x](this[B]))}setSkewY(e){if(arguments.length<1)throw new TypeError(`Failed to execute 'setSkewY' on 'SVGTransform': 1 arguments required, but only ${arguments.length} present.`);if(e=Number(e),isNaN(e))throw new TypeError("Failed to execute 'setSkewY' on 'SVGTransform': The provided float value is non-finite.");this[X]||(this[B]=`skewY(${e})`,this[x]&&this[x](this[B]))}};s(Nr,"SVG_TRANSFORM_UNKNOWN",si.unknown),s(Nr,"SVG_TRANSFORM_MATRIX",si.matrix),s(Nr,"SVG_TRANSFORM_TRANSLATE",si.translate),s(Nr,"SVG_TRANSFORM_SCALE",si.scale),s(Nr,"SVG_TRANSFORM_ROTATE",si.rotate),s(Nr,"SVG_TRANSFORM_SKEWX",si.skewX),s(Nr,"SVG_TRANSFORM_SKEWY",si.skewY);var nH=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,ca="matrix(1 0 0 1 0 0)",Jk,Zk,t1,e1,r1,Km=class l{constructor(e,t,r){s(this,r1);s(this,e1);s(this,t1);s(this,Zk,!1);s(this,Jk,{items:[],attributeValue:""});if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[X]=!!r.readOnly,this[C]=r.getAttribute,this[x]=r.setAttribute;let o=new Te(this,[l]);return new Proxy(this,{get:(i,n)=>{if(n==="length"||n==="numberOfItems")return i[Q]().length;if(n in i||typeof n=="symbol")return o.bind(n),i[n];let a=Number(n);if(!isNaN(a))return i[Q]()[a]},set(i,n,a){if(o.bind(n),typeof n=="symbol")return i[n]=a,!0;let y=Number(n);return isNaN(y)&&(i[n]=a),!0},deleteProperty(i,n){if(typeof n=="symbol")return delete i[n],!0;let a=Number(n);return isNaN(a)&&delete i[n],!0},ownKeys(i){return Object.keys(i[Q]())},has(i,n){if(n in i)return!0;if(typeof n=="symbol")return!1;let a=Number(n);return!isNaN(a)&&a>=0&&a<i[Q]().length},defineProperty(i,n,a){return o.preventBinding(n),n in i?(Object.defineProperty(i,n,a),!0):!1},getOwnPropertyDescriptor(i,n){if(n in i||typeof n=="symbol")return;let a=Number(n),y=i[Q]();if(!isNaN(a)&&y[a])return{value:y[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Q]().length}get numberOfItems(){return this[Q]().length}[(r1=m,e1=C,t1=x,Zk=X,Jk=W,Symbol.iterator)](){return this[Q]().values()}clear(){if(this[X])throw new this[m].TypeError("Failed to execute 'clear' on 'SVGTransformList': The object is read-only.");for(let e of this[W].items)e[C]=null,e[x]=null;this[W].items=[],this[W].attributeValue="",this[x]("")}initialize(e){if(this[X])throw new this[m].TypeError("Failed to execute 'initialize' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'initialize' on 'SVGTransformList': 1 arguments required, but only ${arguments.length} present.`);if(!(e instanceof Nr))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");for(let t of this[W].items)t[C]=null,t[x]=null;return e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(t=>t[B]||ca).join(" "),this[x](this[W].attributeValue)},this[W].items=[e],this[W].attributeValue=e[B],this[x](e[B]||""),e}getItem(e){let t=this[Q]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),t[e]?t[e]:null}insertItemBefore(e,t){if(this[X])throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGTransformList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof Nr))throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let r=this[Q](),o=r.indexOf(e);return o!==-1&&r.splice(o,1),t<0?t=0:t>r.length&&(t=r.length),r.splice(t,0,e),e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(i=>i[B]||ca).join(" "),this[x](this[W].attributeValue)},this[W].attributeValue=r.map(i=>i[B]||ca).join(" "),this[x](this[W].attributeValue),e}replaceItem(e,t){if(this[X])throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceItem' on 'SVGTransformList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof Nr))throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let r=this[Q](),o=r.indexOf(e);if(o===t)return e;o!==-1&&r.splice(o,1),t<0?t=0:t>=r.length&&(t=r.length-1),r[t]&&(r[t][C]=null,r[t][x]=null);let i=r[t];return r[t]=e,e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(n=>n[B]||ca).join(" "),this[x](this[W].attributeValue)},this[W].attributeValue=r.map(n=>n[B]||ca).join(" "),this[x](this[W].attributeValue),i}removeItem(e){if(this[X])throw new this[m].TypeError("Failed to execute 'removeItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'removeItem' on 'SVGTransformList': 1 argument required, but only ${arguments.length} present.`);let t=this[Q]();if(e=Number(e),isNaN(e)&&(e=0),e>=t.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${e}) is greater than the maximum bound.`,v.indexSizeError);if(e<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${e}) is negative.`,v.indexSizeError);let r=t[e];return r&&(r[C]=null,r[x]=null),t.splice(e,1),this[W].attributeValue=t.map(o=>o[B]||ca).join(" "),this[x](this[W].attributeValue),r}appendItem(e){if(this[X])throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'appendItem' on 'SVGTransformList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof Nr))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let t=this[Q](),r=t.indexOf(e);return r!==-1&&t.splice(r,1),t.push(e),e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(o=>o[B]||ca).join(" "),this[x](this[W].attributeValue)},this[W].attributeValue=t.map(o=>o[B]||ca).join(" "),this[x](this[W].attributeValue),e}[Q](){let e=this[C]()??"",t=this[W];if(t.attributeValue===e)return t.items;if(t.items.length)for(let i of t.items)i[C]=null,i[x]=null;let r=[],o=e.trim();if(o){let i=new RegExp(nH),n;for(;n=i.exec(o);){let a=new Nr(h,this[m],{readOnly:this[X],getAttribute:()=>a[B],setAttribute:()=>{this[W].attributeValue=this[Q]().map(y=>y[B]||ca).join(" "),this[x](this[W].attributeValue)}});a[B]=`${n[1]}(${n[2]})`,r.push(a)}}return t.attributeValue=e,t.items=r,r}};var o1,i1,s1,n1,l1;l1=m,n1=C,s1=x,i1=pe,o1=he;var js=class{constructor(e,t,r){s(this,l1);s(this,n1);s(this,s1);s(this,i1,null);s(this,o1,null);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[C]=r.getAttribute,this[x]=r.setAttribute}get animVal(){return this[he]||(this[he]=new Km(h,this[m],{readOnly:!0,getAttribute:this[C],setAttribute:()=>{}})),this[he]}set animVal(e){}get baseVal(){return this[pe]||(this[pe]=new Km(h,this[m],{getAttribute:this[C],setAttribute:this[x]})),this[pe]}set baseVal(e){}};var a1,m1,y1,u1,Le=class extends(u1=ot,y1=un,m1=pn,a1=jc,u1){constructor(){super(...arguments);s(this,y1,null);s(this,m1,null);s(this,a1,null)}get oncopy(){return P.getEventListener(this,"oncopy")}set oncopy(t){this[c].set("oncopy",t)}get oncut(){return P.getEventListener(this,"oncut")}set oncut(t){this[c].set("oncut",t)}get onpaste(){return P.getEventListener(this,"onpaste")}set onpaste(t){this[c].set("onpaste",t)}get requiredExtensions(){return this[un]||(this[un]=new Ks(h,this[m],{getAttribute:()=>this.getAttribute("requiredExtensions"),setAttribute:t=>this.setAttribute("requiredExtensions",t)})),this[un]}get systemLanguage(){return this[pn]||(this[pn]=new Ks(h,this[m],{getAttribute:()=>this.getAttribute("systemLanguage"),setAttribute:t=>this.setAttribute("systemLanguage",t)})),this[pn]}get transform(){return this[jc]||(this[jc]=new js(h,this[m],{getAttribute:()=>this.getAttribute("transform"),setAttribute:t=>this.setAttribute("transform",t)})),this[jc]}getBBox(){return new ns}getCTM(){return new ko}getScreenCTM(){return new ko}};var p1,h1,c1,d1,b1;b1=m,d1=C,c1=x,h1=B,p1=X;var hs=class{constructor(e,t,r){s(this,b1);s(this,d1,null);s(this,c1,null);s(this,h1,null);s(this,p1,!1);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,r&&(this[X]=!!r.readOnly,this[C]=r.getAttribute||null,this[x]=r.setAttribute||null)}get x(){let e=this[C]?this[C]():this[B];if(!e)return 0;let t=e.split(/\s+/),r=Number(t[0]);return isNaN(r)?0:r}set x(e){if(this[X])throw new this[m].TypeError("Failed to set the 'x' property on 'SVGRect': The object is read-only.");this[B]=`${String(typeof e=="number"?e:parseFloat(e))} ${this.y} ${this.width} ${this.height}`,this[x]&&this[x](this[B])}get y(){let e=this[C]?this[C]():this[B];if(!e)return 0;let t=e.split(/\s+/),r=Number(t[1]);return isNaN(r)?0:r}set y(e){if(this[X])throw new this[m].TypeError("Failed to set the 'y' property on 'SVGRect': The object is read-only.");this[B]=`${this.x} ${String(typeof e=="number"?e:parseFloat(e))} ${this.width} ${this.height}`,this[x]&&this[x](this[B])}get width(){let e=this[C]?this[C]():this[B];if(!e)return 0;let t=e.split(/\s+/),r=Number(t[2]);return isNaN(r)?0:r}set width(e){if(this[X])throw new this[m].TypeError("Failed to set the 'width' property on 'SVGRect': The object is read-only.");this[B]=`${this.x} ${this.y} ${String(typeof e=="number"?e:parseFloat(e))} ${this.height}`,this[x]&&this[x](this[B])}get height(){let e=this[C]?this[C]():this[B];if(!e)return 0;let t=e.split(/\s+/),r=Number(t[3]);return isNaN(r)?0:r}set height(e){if(this[X])throw new this[m].TypeError("Failed to set the 'height' property on 'SVGRect': The object is read-only.");this[B]=`${this.x} ${this.y} ${this.width} ${String(typeof e=="number"?e:parseFloat(e))}`,this[x]&&this[x](this[B])}};var g1=/[\t\f\n\r, ]+/,f1,S1,P1,A1,w1;w1=m,A1=C,P1=x,S1=B,f1=X;var Lr=class{constructor(e,t,r){s(this,w1);s(this,A1,null);s(this,P1,null);s(this,S1,null);s(this,f1,!1);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,r&&(this[X]=!!r.readOnly,this[C]=r.getAttribute||null,this[x]=r.setAttribute||null)}get x(){let t=((this[C]?this[C]():this[B])||"").split(g1);return t[0]?parseFloat(t[0]):0}set x(e){if(this[X])throw new this[m].TypeError("Failed to set the 'x' property on 'SVGPoint': The object is read-only.");this[B]=`${e} ${this.y}`,this[x]&&this[x](this[B])}get y(){let t=((this[C]?this[C]():this[B])||"").split(g1);return t[1]?parseFloat(t[1]):0}set y(e){if(this[X])throw new this[m].TypeError("Failed to set the 'y' property on 'SVGPoint': The object is read-only.");this[B]=`${this.x} ${e}`,this[x]&&this[x](this[B])}};var vw;(function(l){l[l.unknown=0]="unknown",l[l.number=1]="number",l[l.percentage=2]="percentage",l[l.ems=3]="ems",l[l.exs=4]="exs",l[l.px=5]="px",l[l.cm=6]="cm",l[l.mm=7]="mm",l[l.in=8]="in",l[l.pt=9]="pt",l[l.pc=10]="pc"})(vw||(vw={}));var Et=vw;var E1=/^(\d+|\d+\.\d+)(px|em|ex|cm|mm|in|pt|pc|%|)$/,x1,v1,T1,C1,N1;N1=m,C1=C,T1=x,v1=B,x1=X;var yr=class{constructor(e,t,r){s(this,N1);s(this,C1,null);s(this,T1,null);s(this,v1,null);s(this,x1,!1);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,r&&(this[X]=!!r.readOnly,this[C]=r.getAttribute||null,this[x]=r.setAttribute||null)}get unitType(){let t=(this[C]?this[C]()||"":this[B]||"").match(E1);if(!t)return Et.unknown;if(isNaN(parseFloat(t[1])))return Et.unknown;switch(t[2]){case"":return Et.number;case"px":return Et.px;case"cm":return Et.cm;case"mm":return Et.mm;case"in":return Et.in;case"pt":return Et.pt;case"pc":return Et.pc;case"em":case"ex":case"%":throw new this[m].TypeError("Failed to execute 'value' on 'SVGLength': Could not resolve relative length.");default:return Et.unknown}}get value(){let t=(this[C]?this[C]()||"":this[B]||"").match(E1);if(!t)return 0;let r=parseFloat(t[1]);if(isNaN(r))return 0;switch(t[2]){case"":return r;case"px":return r;case"cm":return r/2.54*96;case"mm":return r/25.4*96;case"in":return r*96;case"pt":return r*72;case"pc":return r*6;case"em":case"ex":case"%":throw new this[m].TypeError("Failed to execute 'value' on 'SVGLength': Could not resolve relative length.");default:return 0}}set value(e){if(this[X])throw new this[m].TypeError("Failed to set the 'value' property on 'SVGLength': The object is read-only.");if(e=typeof e!="number"?parseFloat(String(e)):e,isNaN(e))throw new this[m].TypeError("Failed to set the 'value' property on 'SVGLength': The provided float value is non-finite.");let t="",r=e;switch(this.unitType){case Et.number:r=e,t="";break;case Et.px:r=e,t="px";break;case Et.cm:r=e/96*2.54,t="cm";break;case Et.mm:r=e/96*25.4,t="mm";break;case Et.in:r=e/96,t="in";break;case Et.pt:r=e/72,t="pt";break;case Et.pc:r=e/6,t="pc";break;case Et.percentage:case Et.ems:case Et.exs:throw new this[m].TypeError("Failed to set the 'value' property on 'SVGLength': Could not resolve relative length.");default:break}this[B]=String(r)+t,this[x]&&this[x](this[B])}get valueAsString(){return this[C]?this[C]()||"0":this[B]||"0"}get valueInSpecifiedUnits(){let e=this.valueAsString;return parseFloat(e)||0}newValueSpecifiedUnits(e,t){if(this[X])throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The object is read-only.");if(typeof e!="number")throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.");if(t=typeof t!="number"?parseFloat(String(t)):t,isNaN(t))throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The provided float value is non-finite.");let r="";switch(e){case Et.number:r="";break;case Et.px:r="px";break;case Et.cm:r="cm";break;case Et.mm:r="mm";break;case Et.in:r="in";break;case Et.pt:r="pt";break;case Et.pc:r="pc";break;case Et.ems:case Et.exs:case Et.percentage:throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Could not resolve relative length.");default:break}this[B]=String(t)+r,this[x]&&this[x](this[B])}convertToSpecifiedUnits(e){if(this[X])throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': The object is read-only.");if(typeof e!="number")throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.");let t=this.value,r="";switch(e){case Et.number:r="";break;case Et.px:r="px";break;case Et.cm:t=t/96*2.54,r="cm";break;case Et.mm:t=t/96*25.4,r="mm";break;case Et.in:t=t/96,r="in";break;case Et.pt:t=t/72,r="pt";break;case Et.pc:t=t/6,r="pc";break;case Et.percentage:case Et.ems:case Et.exs:throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': Could not resolve relative length.");default:break}this[B]=String(t)+r,this[x]&&this[x](this[B])}};s(yr,"SVG_LENGTHTYPE_UNKNOWN",Et.unknown),s(yr,"SVG_LENGTHTYPE_NUMBER",Et.number),s(yr,"SVG_LENGTHTYPE_PERCENTAGE",Et.percentage),s(yr,"SVG_LENGTHTYPE_EMS",Et.ems),s(yr,"SVG_LENGTHTYPE_EXS",Et.exs),s(yr,"SVG_LENGTHTYPE_PX",Et.px),s(yr,"SVG_LENGTHTYPE_CM",Et.cm),s(yr,"SVG_LENGTHTYPE_MM",Et.mm),s(yr,"SVG_LENGTHTYPE_IN",Et.in),s(yr,"SVG_LENGTHTYPE_PT",Et.pt),s(yr,"SVG_LENGTHTYPE_PC",Et.pc);var Tw;(function(l){l[l.unknown=0]="unknown",l[l.unspecified=1]="unspecified",l[l.deg=2]="deg",l[l.rad=3]="rad",l[l.grad=4]="grad"})(Tw||(Tw={}));var ke=Tw;var L1=/^(\d+|\d+\.\d+)(deg|rad|grad|turn|)$/,k1,I1,M1,R1,F1;F1=m,R1=C,M1=x,I1=B,k1=X;var ni=class{constructor(e,t,r){s(this,F1);s(this,R1,null);s(this,M1,null);s(this,I1,"");s(this,k1,!1);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,r&&(this[X]=!!r.readOnly,this[C]=r.getAttribute||null,this[x]=r.setAttribute||null)}get unitType(){let t=(this[C]?this[C]():this[B])?.match(L1);if(!t)return ke.unknown;if(isNaN(parseFloat(t[1])))return ke.unknown;switch(t[2]){case"":return ke.unspecified;case"deg":return ke.deg;case"rad":return ke.rad;case"grad":return ke.grad;case"turn":return ke.unknown;default:return ke.unspecified}}get value(){let t=(this[C]?this[C]():this[B])?.match(L1);if(!t)return 0;let r=parseFloat(t[1]);if(isNaN(r))return 0;switch(t[2]){case"":return r;case"deg":return r;case"rad":return r*(180/Math.PI);case"grad":return r*(180/200);case"turn":return r*360;default:return r}}set value(e){if(this[X])throw new this[m].TypeError("Failed to set the 'value' property on 'SVGAngle': The object is read-only.");if(e=typeof e!="number"?parseFloat(String(e)):e,isNaN(e))throw new this[m].TypeError("Failed to set the 'value' property on 'SVGAngle': The provided float value is non-finite.");let t="",r=e;switch(this.unitType){case ke.unspecified:r=e,t="";break;case ke.deg:r=e,t="deg";break;case ke.rad:r=e/(180/Math.PI),t="rad";break;case ke.grad:r=e/(180/200),t="grad";break;case ke.unknown:r=e/360,t="turn";default:break}this[B]=String(r)+t,this[x]&&this[x](this[B])}get valueAsString(){return this[C]?this[C]()||"0":this[B]||"0"}get valueInSpecifiedUnits(){let e=this.valueAsString;return parseFloat(e)||0}newValueSpecifiedUnits(e,t){if(this[X])throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The object is read-only.");if(typeof e!="number")throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.");if(t=typeof t!="number"?parseFloat(t):t,isNaN(t))throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The provided float value is non-finite.");let r="";switch(e){case ke.unspecified:r="";break;case ke.deg:r="deg";break;case ke.rad:r="rad";break;case ke.grad:r="grad";break;case ke.unknown:r="turn";break;default:break}this[B]=String(t)+r,this[x]&&this[x](this[B])}convertToSpecifiedUnits(e){if(this[X])throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': The object is read-only.");if(typeof e!="number")throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.");let t=this.value,r="";switch(e){case ke.unspecified:r="";break;case ke.deg:r="deg";break;case ke.rad:r="rad",t=t/(180/Math.PI);break;case ke.grad:r="grad",t=t/(180/200);break;case ke.unknown:r="turn",t=t/360;break;default:break}this[B]=String(t)+r,this[x]&&this[x](this[B])}};s(ni,"SVG_ANGLETYPE_UNKNOWN",ke.unknown),s(ni,"SVG_ANGLETYPE_UNSPECIFIED",ke.unspecified),s(ni,"SVG_ANGLETYPE_DEG",ke.deg),s(ni,"SVG_ANGLETYPE_RAD",ke.rad),s(ni,"SVG_ANGLETYPE_GRAD",ke.grad);var B1,D1,O1,V1,U1;U1=m,V1=C,O1=x,D1=B,B1=X;var cs=class{constructor(e,t,r){s(this,U1);s(this,V1,null);s(this,O1,null);s(this,D1,null);s(this,B1,!1);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,r&&(this[X]=!!r.readOnly,this[C]=r.getAttribute||null,this[x]=r.setAttribute||null)}get value(){let e=this[C]?this[C]():this[B];return parseFloat(e||"0")}set value(e){if(this[X])throw new TypeError("Failed to set the 'value' property on 'SVGNumber': The object is read-only.");let t=typeof e!="number"?parseFloat(String(e)):e;if(isNaN(t))throw new TypeError("Failed to set the 'value' property on 'SVGNumber': The provided value is not a number.");this[B]=String(e),this[x]&&this[x](this[B]||"")}};var G1,_1,H1,W1,Y1;Y1=m,W1=C,H1=x,_1=pe,G1=he;var da=class{constructor(e,t,r){s(this,Y1);s(this,W1);s(this,H1);s(this,_1,null);s(this,G1,null);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[C]=r.getAttribute,this[x]=r.setAttribute}get animVal(){return this[he]||(this[he]=new hs(h,this[m],{readOnly:!0,getAttribute:this[C]})),this[he]}set animVal(e){}get baseVal(){return this[pe]||(this[pe]=new hs(h,this[m],{getAttribute:this[C],setAttribute:this[x]})),this[pe]}set baseVal(e){}};var Cw;(function(l){l[l.unknown=0]="unknown",l[l.meet=1]="meet",l[l.slice=2]="slice"})(Cw||(Cw={}));var ba=Cw;var Nw;(function(l){l[l.unknown=0]="unknown",l[l.none=1]="none",l[l.xMinYMin=2]="xMinYMin",l[l.xMidYMin=3]="xMidYMin",l[l.xMaxYMin=4]="xMaxYMin",l[l.xMinYMid=5]="xMinYMid",l[l.xMidYMid=6]="xMidYMid",l[l.xMaxYMid=7]="xMaxYMid",l[l.xMinYMax=8]="xMinYMax",l[l.xMidYMax=9]="xMidYMax",l[l.xMaxYMax=10]="xMaxYMax"})(Nw||(Nw={}));var wo=Nw;var Gg=Object.values(wo);Gg.length=Gg.indexOf(0);var sP=Object.values(ba);sP.length=sP.indexOf(0);var q1,K1,j1,Q1,$1;$1=m,Q1=C,j1=x,K1=B,q1=X;var fr=class{constructor(e,t,r){s(this,$1);s(this,Q1,null);s(this,j1,null);s(this,K1,null);s(this,q1,!1);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,r&&(this[X]=!!r.readOnly,this[C]=r.getAttribute||null,this[x]=r.setAttribute||null)}get align(){let e=this[C]?this[C]():this[B];if(!e)return wo.xMidYMid;let t=e.split(/\s+/)[0];return wo[t]===void 0?wo.xMidYMid:wo[t]}set align(e){if(this[X])throw new this[m].TypeError("Failed to set the 'align' property on 'SVGPreserveAspectRatio': The object is read-only.");let t=Number(e);if(isNaN(t)||t<1||t>Gg.length)throw new this[m].TypeError("Failed to set the 'align' property on 'SVGPreserveAspectRatio': The alignment provided is invalid.");this[B]=`${Gg[t]} ${sP[this.meetOrSlice]}`,this[x]&&this[x](this[B])}get meetOrSlice(){let e=this[C]?this[C]():this[B];if(!e)return ba.meet;let t=e.split(/\s+/)[1];return!t||ba[t]===void 0?ba.meet:ba[t]}set meetOrSlice(e){if(this[X])throw new this[m].TypeError("Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The object is read-only.");let t=Number(e);if(isNaN(t)||t<1||t>2)throw new this[m].TypeError("Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The meetOrSlice provided is invalid.");this[B]=`${Gg[this.align]} ${sP[t]}`,this[x]&&this[x](this[B])}};s(fr,"SVG_MEETORSLICE_UNKNOWN",ba.unknown),s(fr,"SVG_MEETORSLICE_MEET",ba.meet),s(fr,"SVG_MEETORSLICE_SLICE",ba.slice),s(fr,"SVG_PRESERVEASPECTRATIO_UNKNOWN",wo.unknown),s(fr,"SVG_PRESERVEASPECTRATIO_NONE",wo.none),s(fr,"SVG_PRESERVEASPECTRATIO_XMINYMIN",wo.xMinYMin),s(fr,"SVG_PRESERVEASPECTRATIO_XMIDYMIN",wo.xMidYMin),s(fr,"SVG_PRESERVEASPECTRATIO_XMAXYMIN",wo.xMaxYMin),s(fr,"SVG_PRESERVEASPECTRATIO_XMINYMID",wo.xMinYMid),s(fr,"SVG_PRESERVEASPECTRATIO_XMIDYMID",wo.xMidYMid),s(fr,"SVG_PRESERVEASPECTRATIO_XMAXYMID",wo.xMaxYMid),s(fr,"SVG_PRESERVEASPECTRATIO_XMINYMAX",wo.xMinYMax),s(fr,"SVG_PRESERVEASPECTRATIO_XMIDYMAX",wo.xMidYMax),s(fr,"SVG_PRESERVEASPECTRATIO_XMAXYMAX",wo.xMaxYMax);var X1,z1,J1,Z1,tI;tI=m,Z1=C,J1=x,z1=pe,X1=he;var Hi=class{constructor(e,t,r){s(this,tI);s(this,Z1);s(this,J1);s(this,z1,null);s(this,X1,null);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[C]=r.getAttribute,this[x]=r.setAttribute}get animVal(){return this[he]||(this[he]=new fr(h,this[m],{readOnly:!0,getAttribute:this[C]})),this[he]}set animVal(e){}get baseVal(){return this[pe]||(this[pe]=new fr(h,this[m],{getAttribute:this[C],setAttribute:this[x]})),this[pe]}set baseVal(e){}};var eI,rI,oI,iI,sI;sI=m,iI=C,oI=x,rI=pe,eI=he;var I=class{constructor(e,t,r){s(this,sI);s(this,iI);s(this,oI);s(this,rI,null);s(this,eI,null);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[C]=r.getAttribute,this[x]=r.setAttribute}get animVal(){return this[he]||(this[he]=new yr(h,this[m],{readOnly:!0,getAttribute:this[C]})),this[he]}set animVal(e){}get baseVal(){return this[pe]||(this[pe]=new yr(h,this[m],{getAttribute:this[C],setAttribute:this[x]})),this[pe]}set baseVal(e){}};var nI,lI,aI,mI,yI,uI,pI,cc=class extends Le{constructor(){super(...arguments);s(this,pI,null);s(this,uI,null);s(this,yI,null);s(this,mI,null);s(this,aI,null);s(this,lI,1);s(this,nI,null)}get onafterprint(){return P.getEventListener(this,"onafterprint")}set onafterprint(t){this[c].set("onafterprint",t)}get onbeforeprint(){return P.getEventListener(this,"onbeforeprint")}set onbeforeprint(t){this[c].set("onbeforeprint",t)}get onbeforeunload(){return P.getEventListener(this,"onbeforeunload")}set onbeforeunload(t){this[c].set("onbeforeunload",t)}get ongamepadconnected(){return P.getEventListener(this,"ongamepadconnected")}set ongamepadconnected(t){this[c].set("ongamepadconnected",t)}get ongamepaddisconnected(){return P.getEventListener(this,"ongamepaddisconnected")}set ongamepaddisconnected(t){this[c].set("ongamepaddisconnected",t)}get onhashchange(){return P.getEventListener(this,"onhashchange")}set onhashchange(t){this[c].set("onhashchange",t)}get onlanguagechange(){return P.getEventListener(this,"onlanguagechange")}set onlanguagechange(t){this[c].set("onlanguagechange",t)}get onmessage(){return P.getEventListener(this,"onmessage")}set onmessage(t){this[c].set("onmessage",t)}get onmessageerror(){return P.getEventListener(this,"onmessageerror")}set onmessageerror(t){this[c].set("onmessageerror",t)}get onoffline(){return P.getEventListener(this,"onoffline")}set onoffline(t){this[c].set("onoffline",t)}get ononline(){return P.getEventListener(this,"ononline")}set ononline(t){this[c].set("ononline",t)}get onpagehide(){return P.getEventListener(this,"onpagehide")}set onpagehide(t){this[c].set("onpagehide",t)}get onpageshow(){return P.getEventListener(this,"onpageshow")}set onpageshow(t){this[c].set("onpageshow",t)}get onpopstate(){return P.getEventListener(this,"onpopstate")}set onpopstate(t){this[c].set("onpopstate",t)}get onrejectionhandled(){return P.getEventListener(this,"onrejectionhandled")}set onrejectionhandled(t){this[c].set("onrejectionhandled",t)}get onstorage(){return P.getEventListener(this,"onstorage")}set onstorage(t){this[c].set("onstorage",t)}get onunhandledrejection(){return P.getEventListener(this,"onunhandledrejection")}set onunhandledrejection(t){this[c].set("onunhandledrejection",t)}get onunload(){return P.getEventListener(this,"onunload")}set onunload(t){this[c].set("onunload",t)}get preserveAspectRatio(){return this[Dr]||(this[Dr]=new Hi(h,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:t=>this.setAttribute("preserveAspectRatio",t)})),this[Dr]}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}get currentScale(){return this[cS]}set currentScale(t){let r=typeof t!="number"?parseFloat(String(t)):t;if(isNaN(r))throw this[m].TypeError("Failed to set the 'currentScale' property on 'SVGSVGElement': The provided float value is non-finite.");r<1||(this[cS]=r)}get currentTranslate(){return new Lr(h,this[m])}get viewBox(){return this[hn]||(this[hn]=new da(h,this[m],{getAttribute:()=>this.getAttribute("viewBox"),setAttribute:t=>this.setAttribute("viewBox",t)})),this[hn]}pauseAnimations(){}unpauseAnimations(){}animationsPaused(){return!1}getCurrentTime(){return 0}setCurrentTime(t){}getIntersectionList(t,r){return new Ii(h,[])}getEnclosureList(t,r){return new Ii(h,[])}checkIntersection(t,r){return!1}checkEnclosure(t,r){return!1}deselectAll(){}createSVGNumber(){return new cs(h,this[m])}createSVGLength(){return new yr(h,this[m])}createSVGAngle(){return new ni(h,this[m])}createSVGPoint(){return new Lr(h,this[m])}createSVGMatrix(){return new nl(h,this[m])}createSVGRect(){return new hs(h,this[m])}createSVGTransform(){return new Nr(h,this[m])}createSVGTransformFromMatrix(t){let r=new Nr(h,this[m]);return r.setMatrix(t),r}getElementsByClassName(t){return me.getElementsByClassName(this,t)}getElementsByTagName(t){return me.getElementsByTagName(this,t)}getElementsByTagNameNS(t,r){return me.getElementsByTagNameNS(this,t,r)}getElementById(t){return me.getElementById(this,t)}[(pI=Dr,uI=R,yI=F,mI=V,aI=O,lI=cS,nI=hn,ct)](t=!1){return super[ct](t)}};var hI,cI,dI,Wi=class extends(dI=ot,cI=un,hI=pn,dI){constructor(){super(...arguments);s(this,cI,null);s(this,hI,null)}get onbegin(){return P.getEventListener(this,"onbegin")}set onbegin(t){this[c].set("onbegin",t)}get onend(){return P.getEventListener(this,"onend")}set onend(t){this[c].set("onend",t)}get onrepeat(){return P.getEventListener(this,"onrepeat")}set onrepeat(t){this[c].set("onrepeat",t)}get requiredExtensions(){return this[un]||(this[un]=new Ks(h,this[m],{getAttribute:()=>this.getAttribute("requiredExtensions"),setAttribute:t=>this.setAttribute("requiredExtensions",t)})),this[un]}get systemLanguage(){return this[pn]||(this[pn]=new Ks(h,this[m],{getAttribute:()=>this.getAttribute("systemLanguage"),setAttribute:t=>this.setAttribute("systemLanguage",t)})),this[pn]}get targetElement(){return null}};var _g=class extends Wi{};var Hg=class extends Wi{};var Wg=class extends Wi{};var bI,gI,fI,SI;SI=m,fI=C,gI=x,bI=Vo;var pt=class{constructor(e,t,r){s(this,SI);s(this,fI);s(this,gI);s(this,bI,0);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[C]=r.getAttribute,this[x]=r.setAttribute,this[Vo]=r.defaultValue||0}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[C]();if(!e)return this[Vo];let t=parseFloat(e);return isNaN(t)?this[Vo]:t}set baseVal(e){let t=typeof e!="number"?parseFloat(e):e;if(isNaN(t))throw new this[m].TypeError("TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedNumber': The provided float value is non-finite.");this[x](String(t))}};var PI,AI,Qr=class extends(AI=Le,PI=Qc,AI){constructor(){super(...arguments);s(this,PI,null)}get pathLength(){return this[Qc]||(this[Qc]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("pathLength"),setAttribute:t=>this.setAttribute("pathLength",t)})),this[Qc]}isPointInFill(t){if(!(t instanceof Lr))throw new TypeError("Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.");return!1}isPointInStroke(t){if(!(t instanceof Lr))throw new TypeError("Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.");return!1}getTotalLength(){return 0}getPointAtLength(t){return new Lr(h,this[m])}};var wI,EI,xI,vI,Yg=class extends(vI=Qr,xI=Uo,EI=Go,wI=fn,vI){constructor(){super(...arguments);s(this,xI,null);s(this,EI,null);s(this,wI,null)}get cx(){return this[Uo]||(this[Uo]=new I(h,this[m],{getAttribute:()=>this.getAttribute("cx"),setAttribute:t=>this.setAttribute("cx",t)})),this[Uo]}get cy(){return this[Go]||(this[Go]=new I(h,this[m],{getAttribute:()=>this.getAttribute("cy"),setAttribute:t=>this.setAttribute("cy",t)})),this[Go]}get r(){return this[fn]||(this[fn]=new I(h,this[m],{getAttribute:()=>this.getAttribute("r"),setAttribute:t=>this.setAttribute("r",t)})),this[fn]}};var TI,CI,NI,LI,kI;kI=m,LI=C,NI=x,CI=wr,TI=Vo;var kt=class{constructor(e,t,r){s(this,kI);s(this,LI);s(this,NI);s(this,CI);s(this,TI);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[C]=r.getAttribute,this[x]=r.setAttribute,this[wr]=r.values,this[Vo]=r.defaultValue}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[C]();if(!e)return this[wr].indexOf(this[Vo])+1;let t=this[wr].indexOf(e);if(t===-1){let r=this[wr].indexOf(null);return r!==-1?r+1:0}return t+1}set baseVal(e){let t=Number(e);if(isNaN(t)&&(t=0),t<1)throw new TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided is ${t}, which is not settable.`);if(t>this[wr].length)throw new TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided (${t}) is larger than the largest allowed value (${this[wr].length}).`);let r=this[C](),o=this[wr][t-1]===null,i=o?"0":this[wr][t-1];(!r||o&&this[wr].includes(r)||!o&&r!==i)&&this[x](i||"")}};var II,MI,qg=class extends(MI=ot,II=rd,MI){constructor(){super(...arguments);s(this,II,null)}get clipPathUnits(){return this[rd]||(this[rd]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("clipPathUnits"),setAttribute:t=>this.setAttribute("clipPathUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[rd]}};var Kg=class extends Le{};var jg=class extends ot{};var RI,FI,BI,DI,OI,Qg=class extends(OI=Qr,DI=Uo,BI=Go,FI=bn,RI=gn,OI){constructor(){super(...arguments);s(this,DI,null);s(this,BI,null);s(this,FI,null);s(this,RI,null)}get cx(){return this[Uo]||(this[Uo]=new I(h,this[m],{getAttribute:()=>this.getAttribute("cx"),setAttribute:t=>this.setAttribute("cx",t)})),this[Uo]}get cy(){return this[Go]||(this[Go]=new I(h,this[m],{getAttribute:()=>this.getAttribute("cy"),setAttribute:t=>this.setAttribute("cy",t)})),this[Go]}get rx(){return this[bn]||(this[bn]=new I(h,this[m],{getAttribute:()=>this.getAttribute("rx"),setAttribute:t=>this.setAttribute("rx",t)})),this[bn]}get ry(){return this[gn]||(this[gn]=new I(h,this[m],{getAttribute:()=>this.getAttribute("ry"),setAttribute:t=>this.setAttribute("ry",t)})),this[gn]}};var VI,UI,GI;GI=m,UI=C,VI=x;var lt=class{constructor(e,t,r){s(this,GI);s(this,UI);s(this,VI);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[C]=r.getAttribute,this[x]=r.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[C]();return e||""}set baseVal(e){this[x](String(e))}};var _I,HI,WI,YI,qI,KI,jI,QI,Sr=class extends(QI=ot,jI=O,KI=ut,qI=_o,YI=Me,WI=R,HI=F,_I=V,QI){constructor(){super(...arguments);s(this,jI,null);s(this,KI,null);s(this,qI,null);s(this,YI,null);s(this,WI,null);s(this,HI,null);s(this,_I,null)}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get in1(){return this[ut]||(this[ut]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ut]}get in2(){return this[_o]||(this[_o]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in2"),setAttribute:t=>this.setAttribute("in2",t)})),this[_o]}get mode(){return this[Me]||(this[Me]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("mode"),setAttribute:t=>this.setAttribute("mode",t),values:["normal","multiply","screen","darken","lighten","overlay","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],defaultValue:"normal"})),this[Me]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};s(Sr,"SVG_FEBLEND_MODE_UNKNOWN",0),s(Sr,"SVG_FEBLEND_MODE_NORMAL",1),s(Sr,"SVG_FEBLEND_MODE_MULTIPLY",2),s(Sr,"SVG_FEBLEND_MODE_SCREEN",3),s(Sr,"SVG_FEBLEND_MODE_DARKEN",4),s(Sr,"SVG_FEBLEND_MODE_LIGHTEN",5),s(Sr,"SVG_FEBLEND_MODE_OVERLAY",6),s(Sr,"SVG_FEBLEND_MODE_COLOR_DODGE",7),s(Sr,"SVG_FEBLEND_MODE_COLOR_BURN",8),s(Sr,"SVG_FEBLEND_MODE_HARD_LIGHT",9),s(Sr,"SVG_FEBLEND_MODE_SOFT_LIGHT",10),s(Sr,"SVG_FEBLEND_MODE_DIFFERENCE",11),s(Sr,"SVG_FEBLEND_MODE_EXCLUSION",12),s(Sr,"SVG_FEBLEND_MODE_HUE",13),s(Sr,"SVG_FEBLEND_MODE_SATURATION",14),s(Sr,"SVG_FEBLEND_MODE_COLOR",15),s(Sr,"SVG_FEBLEND_MODE_LUMINOSITY",16);var lH=/[\t\f\n\r, ]+/,$I,XI,zI,JI,ZI,jm=class l{constructor(e,t,r){s(this,ZI);s(this,JI);s(this,zI);s(this,XI,!1);s(this,$I,{items:[],attributeValue:""});if(e!==h)throw new TypeError("Illegal constructor");if(this[m]=t,this[X]=!!r.readOnly,this[C]=r.getAttribute,this[x]=r.setAttribute,e!==h)throw new TypeError("Illegal constructor");let o=new Te(this,[l]);return new Proxy(this,{get:(i,n)=>{if(n==="length"||n==="numberOfItems")return i[Q]().length;if(n in i||typeof n=="symbol")return o.bind(n),i[n];let a=Number(n);if(!isNaN(a))return i[Q]()[a]},set(i,n,a){if(o.bind(n),typeof n=="symbol")return i[n]=a,!0;let y=Number(n);return isNaN(y)&&(i[n]=a),!0},deleteProperty(i,n){if(typeof n=="symbol")return delete i[n],!0;let a=Number(n);return isNaN(a)&&delete i[n],!0},ownKeys(i){return Object.keys(i[Q]())},has(i,n){if(n in i)return!0;if(typeof n=="symbol")return!1;let a=Number(n);return!isNaN(a)&&a>=0&&a<i[Q]().length},defineProperty(i,n,a){return o.preventBinding(n),n in i?(Object.defineProperty(i,n,a),!0):!1},getOwnPropertyDescriptor(i,n){if(n in i||typeof n=="symbol")return;let a=Number(n),y=i[Q]();if(!isNaN(a)&&y[a])return{value:y[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Q]().length}get numberOfItems(){return this[Q]().length}[(ZI=m,JI=C,zI=x,XI=X,$I=W,Symbol.iterator)](){return this[Q]().values()}clear(){if(this[X])throw new this[m].TypeError("Failed to execute 'clear' on 'SVGNumberList': The object is read-only.");for(let e of this[W].items)e[C]=null,e[x]=null;this[W].items=[],this[W].attributeValue="",this[x]("")}initialize(e){if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'initialize' on 'SVGNumberList': 1 arguments required, but only ${arguments.length} present.`);if(this[X])throw new this[m].TypeError("Failed to execute 'initialize' on 'SVGNumberList': The object is read-only.");for(let t of this[W].items)t[C]=null,t[x]=null;return e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(t=>t[B]||"0").join(" "),this[x](this[W].attributeValue)},this[W].items=[e],this[W].attributeValue=e[B],this[x](e[B]||""),e}getItem(e){let t=this[Q]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),t[e]?t[e]:null}insertItemBefore(e,t){if(this[X])throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGNumberList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertItemBefore' on 'SVGNumberList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof cs))throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let r=this[Q](),o=r.indexOf(e);return o!==-1&&r.splice(o,1),t<0?t=0:t>r.length&&(t=r.length),r.splice(t,0,e),e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(i=>i[B]||"0").join(" "),this[x](this[W].attributeValue)},this[W].attributeValue=r.map(i=>i[B]||"0").join(" "),this[x](this[W].attributeValue),e}replaceItem(e,t){if(this[X])throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceItem' on 'SVGNumberList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof cs))throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let r=this[Q](),o=r.indexOf(e);if(o===t)return e;o!==-1&&r.splice(o,1),t<0?t=0:t>=r.length&&(t=r.length-1),r[t]&&(r[t][C]=null,r[t][x]=null);let i=r[t];return r[t]=e,e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(n=>n[B]||"0").join(" "),this[x](this[W].attributeValue)},this[W].attributeValue=r.map(n=>n[B]||"0").join(" "),this[x](this[W].attributeValue),i}removeItem(e){if(this[X])throw new this[m].TypeError("Failed to execute 'removeItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'removeItem' on 'SVGNumberList': 1 argument required, but only ${arguments.length} present.`);let t=this[Q]();if(e=Number(e),isNaN(e)&&(e=0),e>=t.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${e}) is greater than the maximum bound.`,v.indexSizeError);if(e<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${e}) is negative.`,v.indexSizeError);let r=t[e];return r&&(r[C]=null,r[x]=null),t.splice(e,1),this[x](t.map(o=>o[B]||"0").join(" ")),r}appendItem(e){if(this[X])throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'appendItem' on 'SVGNumberList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof cs))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let t=this[Q](),r=t.indexOf(e);return r!==-1&&t.splice(r,1),t.push(e),e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(o=>o[B]||"0").join(" "),this[x](this[W].attributeValue)},this[W].attributeValue=t.map(o=>o[B]||"0").join(" "),this[x](this[W].attributeValue),e}[Q](){let e=this[C]()??"",t=this[W];if(t.attributeValue===e)return t.items;if(t.items.length)for(let i of t.items)i[C]=null,i[x]=null;let r=[],o=e.trim();if(o){let i=o.split(lH);for(let n=0,a=i.length;n<a;n++){let y=new cs(h,this[m],{readOnly:this[X],getAttribute:()=>y[B],setAttribute:()=>{this[W].attributeValue=this[Q]().map(p=>p[B]||"0").join(" "),this[x](this[W].attributeValue)}});y[B]=String(parseFloat(i[n])),r.push(y)}}return t.attributeValue=e,t.items=r,r}};var tM,eM,rM,oM,iM;iM=m,oM=C,rM=x,eM=pe,tM=he;var li=class{constructor(e,t,r){s(this,iM);s(this,oM);s(this,rM);s(this,eM,null);s(this,tM,null);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[C]=r.getAttribute,this[x]=r.setAttribute}get animVal(){return this[he]||(this[he]=new jm(h,this[m],{readOnly:!0,getAttribute:this[C],setAttribute:()=>{}})),this[he]}set animVal(e){}get baseVal(){return this[pe]||(this[pe]=new jm(h,this[m],{getAttribute:this[C],setAttribute:this[x]})),this[pe]}set baseVal(e){}};var sM,nM,lM,aM,mM,yM,uM,pM,hM,cM,ll=class extends(cM=ot,hM=O,pM=ut,uM=_o,yM=et,mM=zt,aM=wr,lM=R,nM=F,sM=V,cM){constructor(){super(...arguments);s(this,hM,null);s(this,pM,null);s(this,uM,null);s(this,yM,null);s(this,mM,null);s(this,aM,null);s(this,lM,null);s(this,nM,null);s(this,sM,null)}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get in1(){return this[ut]||(this[ut]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ut]}get in2(){return this[_o]||(this[_o]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in2"),setAttribute:t=>this.setAttribute("in2",t)})),this[_o]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get type(){return this[zt]||(this[zt]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:t=>this.setAttribute("type",t),values:["matrix","saturate","huerotate","luminancetoalpha"],defaultValue:"matrix"})),this[zt]}get values(){return this[wr]||(this[wr]=new li(h,this[m],{getAttribute:()=>this.getAttribute("values"),setAttribute:t=>this.setAttribute("values",t)})),this[wr]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};s(ll,"SVG_FEBLEND_TYPE_UNKNOWN",0),s(ll,"SVG_FEBLEND_TYPE_MATRIX",1),s(ll,"SVG_FEBLEND_TYPE_SATURATE",2),s(ll,"SVG_FEBLEND_TYPE_HUEROTATE",3),s(ll,"SVG_FEBLEND_TYPE_LUMINANCETOALPHA",4);var dM,bM,gM,fM,SM,PM,AM,$g=class extends(AM=ot,PM=O,SM=ut,fM=et,gM=R,bM=F,dM=V,AM){constructor(){super(...arguments);s(this,PM,null);s(this,SM,null);s(this,fM,null);s(this,gM,null);s(this,bM,null);s(this,dM,null)}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get in1(){return this[ut]||(this[ut]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ut]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};var wM,EM,xM,vM,TM,CM,NM,LM,kM,ds=class extends(kM=ot,LM=O,NM=ut,CM=et,TM=zt,vM=wr,xM=R,EM=F,wM=V,kM){constructor(){super(...arguments);s(this,LM,null);s(this,NM,null);s(this,CM,null);s(this,TM,null);s(this,vM,null);s(this,xM,null);s(this,EM,null);s(this,wM,null)}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get in1(){return this[ut]||(this[ut]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ut]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get type(){return this[zt]||(this[zt]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:t=>this.setAttribute("type",t),values:["over","in","out","atop","xor","arithmetic"],defaultValue:"over"})),this[zt]}get values(){return this[wr]||(this[wr]=new li(h,this[m],{getAttribute:()=>this.getAttribute("values"),setAttribute:t=>this.setAttribute("values",t)})),this[wr]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};s(ds,"SVG_FECOMPOSITE_OPERATOR_UNKNOWN",0),s(ds,"SVG_FECOMPOSITE_OPERATOR_OVER",1),s(ds,"SVG_FECOMPOSITE_OPERATOR_IN",2),s(ds,"SVG_FECOMPOSITE_OPERATOR_OUT",3),s(ds,"SVG_FECOMPOSITE_OPERATOR_ATOP",4),s(ds,"SVG_FECOMPOSITE_OPERATOR_XOR",5),s(ds,"SVG_FECOMPOSITE_OPERATOR_ARITHMETIC",6);var IM,MM,RM;RM=m,MM=C,IM=x;var cu=class{constructor(e,t,r){s(this,RM);s(this,MM);s(this,IM);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[C]=r.getAttribute,this[x]=r.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){return this[C]()==="true"}set baseVal(e){this[x](String(typeof e!="boolean"?!!e:e))}};var FM,BM,DM;DM=m,BM=C,FM=x;var bs=class{constructor(e,t,r){s(this,DM);s(this,BM);s(this,FM);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[C]=r.getAttribute,this[x]=r.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[C]();if(!e)return 0;let t=parseInt(e);return isNaN(t)?0:t}set baseVal(e){let t=parseInt(String(e));if(isNaN(t))throw new this[m].TypeError("TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedInteger': The provided float value is non-finite.");this[x](String(t))}};var OM,VM,UM,GM,_M,HM,WM,YM,qM,KM,jM,QM,$M,XM,zM,JM,ZM,tR,ga=class extends(tR=ot,ZM=wd,JM=Ed,zM=vn,XM=O,$M=ut,QM=xd,jM=Ho,KM=Wo,qM=vd,YM=Td,WM=Cd,HM=et,_M=Nd,GM=Ld,UM=V,VM=R,OM=F,tR){constructor(){super(...arguments);s(this,ZM,null);s(this,JM,null);s(this,zM,null);s(this,XM,null);s(this,$M,null);s(this,QM,null);s(this,jM,null);s(this,KM,null);s(this,qM,null);s(this,YM,null);s(this,WM,null);s(this,HM,null);s(this,_M,null);s(this,GM,null);s(this,UM,null);s(this,VM,null);s(this,OM,null)}get bias(){return this[wd]||(this[wd]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("bias"),setAttribute:t=>this.setAttribute("bias",t)})),this[wd]}get divisor(){return this[Ed]||(this[Ed]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("divisor"),setAttribute:t=>this.setAttribute("divisor",t)})),this[Ed]}get edgeMode(){return this[vn]||(this[vn]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("edgeMode"),setAttribute:t=>this.setAttribute("edgeMode",t),values:["duplicate","wrap","none"],defaultValue:"duplicate"})),this[vn]}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get in1(){return this[ut]||(this[ut]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ut]}get kernelMatrix(){return this[xd]||(this[xd]=new li(h,this[m],{getAttribute:()=>this.getAttribute("kernelMatrix"),setAttribute:t=>this.setAttribute("kernelMatrix",t)})),this[xd]}get kernelUnitLengthX(){return this[Ho]||(this[Ho]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:t=>this.setAttribute("kernelUnitLengthX",t)})),this[Ho]}get kernelUnitLengthY(){return this[Wo]||(this[Wo]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:t=>this.setAttribute("kernelUnitLengthY",t)})),this[Wo]}get orderX(){return this[vd]||(this[vd]=new bs(h,this[m],{getAttribute:()=>this.getAttribute("orderX"),setAttribute:t=>this.setAttribute("orderX",t)})),this[vd]}get orderY(){return this[Td]||(this[Td]=new bs(h,this[m],{getAttribute:()=>this.getAttribute("orderY"),setAttribute:t=>this.setAttribute("orderY",t)})),this[Td]}get preserveAlpha(){return this[Cd]||(this[Cd]=new cu(h,this[m],{getAttribute:()=>this.getAttribute("preserveAlpha"),setAttribute:t=>this.setAttribute("preserveAlpha",t)})),this[Cd]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get targetX(){return this[Nd]||(this[Nd]=new bs(h,this[m],{getAttribute:()=>this.getAttribute("targetX"),setAttribute:t=>this.setAttribute("targetX",t)})),this[Nd]}get targetY(){return this[Ld]||(this[Ld]=new bs(h,this[m],{getAttribute:()=>this.getAttribute("targetY"),setAttribute:t=>this.setAttribute("targetY",t)})),this[Ld]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};s(ga,"SVG_EDGEMODE_UNKNOWN",0),s(ga,"SVG_EDGEMODE_DUPLICATE",1),s(ga,"SVG_EDGEMODE_WRAP",2),s(ga,"SVG_EDGEMODE_NONE",3);var eR,rR,oR,iR,sR,nR,lR,aR,mR,yR,uR,Xg=class extends(uR=ot,yR=kd,mR=O,aR=ut,lR=Ho,nR=Wo,sR=et,iR=Tn,oR=V,rR=R,eR=F,uR){constructor(){super(...arguments);s(this,yR,null);s(this,mR,null);s(this,aR,null);s(this,lR,null);s(this,nR,null);s(this,sR,null);s(this,iR,null);s(this,oR,null);s(this,rR,null);s(this,eR,null)}get diffuseConstant(){return this[kd]||(this[kd]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("diffuseConstant"),setAttribute:t=>this.setAttribute("diffuseConstant",t)})),this[kd]}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get in1(){return this[ut]||(this[ut]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ut]}get kernelUnitLengthX(){return this[Ho]||(this[Ho]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:t=>this.setAttribute("kernelUnitLengthX",t)})),this[Ho]}get kernelUnitLengthY(){return this[Wo]||(this[Wo]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:t=>this.setAttribute("kernelUnitLengthY",t)})),this[Wo]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get surfaceScale(){return this[Tn]||(this[Tn]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("surfaceScale"),setAttribute:t=>this.setAttribute("surfaceScale",t)})),this[Tn]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};var pR,hR,cR,dR,bR,gR,fR,SR,PR,AR,wR,al=class extends(wR=ot,AR=O,PR=ut,SR=_o,fR=et,gR=Id,bR=V,dR=R,cR=Md,hR=F,pR=Rd,wR){constructor(){super(...arguments);s(this,AR,null);s(this,PR,null);s(this,SR,null);s(this,fR,null);s(this,gR,null);s(this,bR,null);s(this,dR,null);s(this,cR,null);s(this,hR,null);s(this,pR,null)}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get in1(){return this[ut]||(this[ut]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ut]}get in2(){return this[_o]||(this[_o]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in2"),setAttribute:t=>this.setAttribute("in2",t)})),this[_o]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get scale(){return this[Id]||(this[Id]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("scale"),setAttribute:t=>this.setAttribute("scale",t)})),this[Id]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get xChannelSelector(){return this[Md]||(this[Md]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("xChannelSelector"),setAttribute:t=>this.setAttribute("xChannelSelector",t),values:["r","g","b","a"],defaultValue:"r"})),this[Md]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}get yChannelSelector(){return this[Rd]||(this[Rd]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("yChannelSelector"),setAttribute:t=>this.setAttribute("yChannelSelector",t),values:["r","g","b","a"],defaultValue:"r"})),this[Rd]}};s(al,"SVG_CHANNEL_UNKNOWN",0),s(al,"SVG_CHANNEL_R",1),s(al,"SVG_CHANNEL_G",2),s(al,"SVG_CHANNEL_B",3),s(al,"SVG_CHANNEL_A",4);var ER,xR,vR,zg=class extends(vR=ot,xR=Fd,ER=Bd,vR){constructor(){super(...arguments);s(this,xR,null);s(this,ER,null)}get azimuth(){return this[Fd]||(this[Fd]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("azimuth"),setAttribute:t=>this.setAttribute("azimuth",t)})),this[Fd]}get elevation(){return this[Bd]||(this[Bd]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("elevation"),setAttribute:t=>this.setAttribute("elevation",t)})),this[Bd]}};var TR,CR,NR,LR,kR,IR,MR,RR,FR,BR,DR,Jg=class extends(DR=ot,BR=Yo,FR=qo,RR=O,MR=ut,IR=et,kR=Cn,LR=Nn,NR=V,CR=R,TR=F,DR){constructor(){super(...arguments);s(this,BR,null);s(this,FR,null);s(this,RR,null);s(this,MR,null);s(this,IR,null);s(this,kR,null);s(this,LR,null);s(this,NR,null);s(this,CR,null);s(this,TR,null)}get dx(){return this[Yo]||(this[Yo]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("dx"),setAttribute:t=>this.setAttribute("dx",t)})),this[Yo]}get dy(){return this[qo]||(this[qo]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("dy"),setAttribute:t=>this.setAttribute("dy",t)})),this[qo]}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get in1(){return this[ut]||(this[ut]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ut]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get stdDeviationX(){return this[Cn]||(this[Cn]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("stdDeviationX"),setAttribute:t=>this.setAttribute("stdDeviationX",t),defaultValue:2})),this[Cn]}get stdDeviationY(){return this[Nn]||(this[Nn]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("stdDeviationY"),setAttribute:t=>this.setAttribute("stdDeviationY",t),defaultValue:2})),this[Nn]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}setStdDeviation(t,r){this.stdDeviationX.baseVal=t,this.stdDeviationY.baseVal=r}};var OR,VR,UR,GR,_R,HR,Zg=class extends(HR=ot,_R=O,GR=et,UR=V,VR=R,OR=F,HR){constructor(){super(...arguments);s(this,_R,null);s(this,GR,null);s(this,UR,null);s(this,VR,null);s(this,OR,null)}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};var WR,YR,qR,KR,jR,QR,$R,XR,$r=class extends(XR=ot,$R=zt,QR=Dd,jR=Od,KR=Vd,qR=Ud,YR=Gd,WR=En,XR){constructor(){super(...arguments);s(this,$R,null);s(this,QR,null);s(this,jR,null);s(this,KR,null);s(this,qR,null);s(this,YR,null);s(this,WR,null)}get type(){return this[zt]||(this[zt]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:t=>this.setAttribute("type",t),values:["identity","table","discrete","linear","gamma"],defaultValue:"identity"})),this[zt]}get tableValues(){return this[Dd]||(this[Dd]=new li(h,this[m],{getAttribute:()=>this.getAttribute("tableValues"),setAttribute:t=>this.setAttribute("tableValues",t)})),this[Dd]}get slope(){return this[Od]||(this[Od]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("slope"),setAttribute:t=>this.setAttribute("slope",t),defaultValue:1})),this[Od]}get intercept(){return this[Vd]||(this[Vd]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("intercept"),setAttribute:t=>this.setAttribute("intercept",t)})),this[Vd]}get amplitude(){return this[Ud]||(this[Ud]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("amplitude"),setAttribute:t=>this.setAttribute("amplitude",t),defaultValue:1})),this[Ud]}get exponent(){return this[Gd]||(this[Gd]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("exponent"),setAttribute:t=>this.setAttribute("exponent",t),defaultValue:1})),this[Gd]}get offset(){return this[En]||(this[En]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("offset"),setAttribute:t=>this.setAttribute("offset",t)})),this[En]}};s($r,"SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN",0),s($r,"SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY",1),s($r,"SVG_FECOMPONENTTRANSFER_TYPE_TABLE",2),s($r,"SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE",3),s($r,"SVG_FECOMPONENTTRANSFER_TYPE_LINEAR",4),s($r,"SVG_FECOMPONENTTRANSFER_TYPE_GAMMA",5);var tf=class extends $r{};var ef=class extends $r{};var rf=class extends $r{};var of=class extends $r{};var zR,JR,ZR,tF,eF,rF,oF,iF,sF,nF,fa=class extends(nF=ot,sF=vn,iF=O,oF=ut,rF=et,eF=Cn,tF=Nn,ZR=V,JR=R,zR=F,nF){constructor(){super(...arguments);s(this,sF,null);s(this,iF,null);s(this,oF,null);s(this,rF,null);s(this,eF,null);s(this,tF,null);s(this,ZR,null);s(this,JR,null);s(this,zR,null)}get edgeMode(){return this[vn]||(this[vn]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("edgeMode"),setAttribute:t=>this.setAttribute("edgeMode",t),values:["duplicate","wrap","none"],defaultValue:"duplicate"})),this[vn]}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get in1(){return this[ut]||(this[ut]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ut]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get stdDeviationX(){return this[Cn]||(this[Cn]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("stdDeviationX")||"2",setAttribute:t=>this.setAttribute("stdDeviationX",t)})),this[Cn]}get stdDeviationY(){return this[Nn]||(this[Nn]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("stdDeviationY")||"2",setAttribute:t=>this.setAttribute("stdDeviationY",t)})),this[Nn]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}setStdDeviation(t,r){this.stdDeviationX.baseVal=t,this.stdDeviationY.baseVal=r}};s(fa,"SVG_EDGEMODE_UNKNOWN",0),s(fa,"SVG_EDGEMODE_DUPLICATE",1),s(fa,"SVG_EDGEMODE_WRAP",2),s(fa,"SVG_EDGEMODE_NONE",3);var lF,aF,mF,yF,uF,pF,hF,cF,dF,sf=class extends(dF=ot,cF=Dw,hF=O,pF=Rt,uF=Dr,yF=et,mF=V,aF=R,lF=F,dF){constructor(){super(...arguments);s(this,cF,null);s(this,hF,null);s(this,pF,null);s(this,uF,null);s(this,yF,null);s(this,mF,null);s(this,aF,null);s(this,lF,null)}get crossOrigin(){return this.getAttribute("crossorigin")}set crossOrigin(t){this.setAttribute("crossorigin",t)}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get href(){return this[Rt]||(this[Rt]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Rt]}get preserveAspectRatio(){return this[Dr]||(this[Dr]=new Hi(h,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:t=>this.setAttribute("preserveAspectRatio",t)})),this[Dr]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};var bF,gF,fF,SF,PF,AF,nf=class extends(AF=ot,PF=O,SF=et,fF=V,gF=R,bF=F,AF){constructor(){super(...arguments);s(this,PF,null);s(this,SF,null);s(this,fF,null);s(this,gF,null);s(this,bF,null)}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};var wF,EF,lf=class extends(EF=ot,wF=ut,EF){constructor(){super(...arguments);s(this,wF,null)}get in1(){return this[ut]||(this[ut]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ut]}};var xF,vF,TF,CF,NF,LF,kF,IF,MF,RF,Qm=class extends(RF=ot,MF=O,IF=ut,kF=_d,LF=Hd,NF=Wd,CF=et,TF=V,vF=R,xF=F,RF){constructor(){super(...arguments);s(this,MF,null);s(this,IF,null);s(this,kF,null);s(this,LF,null);s(this,NF,null);s(this,CF,null);s(this,TF,null);s(this,vF,null);s(this,xF,null)}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get in1(){return this[ut]||(this[ut]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ut]}get operator(){return this[_d]||(this[_d]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("operator"),setAttribute:t=>this.setAttribute("operator",t),values:["erode","dilate"],defaultValue:"erode"})),this[_d]}get radiusX(){return this[Hd]||(this[Hd]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("radiusX"),setAttribute:t=>this.setAttribute("radiusX",t)})),this[Hd]}get radiusY(){return this[Wd]||(this[Wd]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("radiusY"),setAttribute:t=>this.setAttribute("radiusY",t)})),this[Wd]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};s(Qm,"SVG_MORPHOLOGY_OPERATOR_UNKNOWN",0),s(Qm,"SVG_MORPHOLOGY_OPERATOR_ERODE",1),s(Qm,"SVG_MORPHOLOGY_OPERATOR_DILATE",2);var FF,BF,DF,OF,VF,UF,GF,_F,HF,af=class extends(HF=ot,_F=O,GF=ut,UF=Yo,VF=qo,OF=et,DF=V,BF=R,FF=F,HF){constructor(){super(...arguments);s(this,_F,null);s(this,GF,null);s(this,UF,null);s(this,VF,null);s(this,OF,null);s(this,DF,null);s(this,BF,null);s(this,FF,null)}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get in1(){return this[ut]||(this[ut]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ut]}get dx(){return this[Yo]||(this[Yo]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("dx"),setAttribute:t=>this.setAttribute("dx",t)})),this[Yo]}get dy(){return this[qo]||(this[qo]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("dy"),setAttribute:t=>this.setAttribute("dy",t)})),this[qo]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};var WF,YF,qF,KF,mf=class extends(KF=ot,qF=R,YF=F,WF=ho,KF){constructor(){super(...arguments);s(this,qF,null);s(this,YF,null);s(this,WF,null)}get x(){return this[R]||(this[R]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}get z(){return this[ho]||(this[ho]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("z"),setAttribute:t=>this.setAttribute("z",t)})),this[ho]}};var jF,QF,$F,XF,zF,JF,ZF,tB,eB,rB,oB,iB,yf=class extends(iB=ot,oB=O,rB=ut,eB=Ho,tB=Wo,ZF=et,JF=Yd,zF=Ln,XF=Tn,$F=V,QF=R,jF=F,iB){constructor(){super(...arguments);s(this,oB,null);s(this,rB,null);s(this,eB,null);s(this,tB,null);s(this,ZF,null);s(this,JF,null);s(this,zF,null);s(this,XF,null);s(this,$F,null);s(this,QF,null);s(this,jF,null)}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get in1(){return this[ut]||(this[ut]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ut]}get kernelUnitLengthX(){return this[Ho]||(this[Ho]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:t=>this.setAttribute("kernelUnitLengthX",t)})),this[Ho]}get kernelUnitLengthY(){return this[Wo]||(this[Wo]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:t=>this.setAttribute("kernelUnitLengthY",t)})),this[Wo]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get specularConstant(){return this[Yd]||(this[Yd]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("specularConstant"),setAttribute:t=>this.setAttribute("specularConstant",t),defaultValue:1})),this[Yd]}get specularExponent(){return this[Ln]||(this[Ln]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("specularExponent"),setAttribute:t=>this.setAttribute("specularExponent",t),defaultValue:1})),this[Ln]}get surfaceScale(){return this[Tn]||(this[Tn]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("surfaceScale"),setAttribute:t=>this.setAttribute("surfaceScale",t),defaultValue:1})),this[Tn]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};var sB,nB,lB,aB,mB,yB,uB,pB,hB,uf=class extends(hB=ot,pB=R,uB=F,yB=ho,mB=qd,aB=Kd,lB=jd,nB=Ln,sB=Qd,hB){constructor(){super(...arguments);s(this,pB,null);s(this,uB,null);s(this,yB,null);s(this,mB,null);s(this,aB,null);s(this,lB,null);s(this,nB,null);s(this,sB,null)}get x(){return this[R]||(this[R]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}get z(){return this[ho]||(this[ho]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("z"),setAttribute:t=>this.setAttribute("z",t)})),this[ho]}get pointsAtX(){return this[qd]||(this[qd]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("pointsAtX"),setAttribute:t=>this.setAttribute("pointsAtX",t)})),this[qd]}get pointsAtY(){return this[Kd]||(this[Kd]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("pointsAtY"),setAttribute:t=>this.setAttribute("pointsAtY",t)})),this[Kd]}get pointsAtZ(){return this[jd]||(this[jd]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("pointsAtZ"),setAttribute:t=>this.setAttribute("pointsAtZ",t)})),this[jd]}get specularExponent(){return this[Ln]||(this[Ln]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("specularExponent"),setAttribute:t=>this.setAttribute("specularExponent",t),defaultValue:1})),this[Ln]}get limitingConeAngle(){return this[Qd]||(this[Qd]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("limitingConeAngle"),setAttribute:t=>this.setAttribute("limitingConeAngle",t)})),this[Qd]}};var cB,dB,bB,gB,fB,SB,PB,pf=class extends(PB=ot,SB=O,fB=ut,gB=et,bB=V,dB=R,cB=F,PB){constructor(){super(...arguments);s(this,SB,null);s(this,fB,null);s(this,gB,null);s(this,bB,null);s(this,dB,null);s(this,cB,null)}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get in1(){return this[ut]||(this[ut]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ut]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};var AB,wB,EB,xB,vB,TB,CB,NB,LB,kB,IB,MB,Qs=class extends(MB=ot,IB=$d,kB=Xd,LB=O,NB=zd,CB=et,TB=Jd,vB=Zd,xB=zt,EB=V,wB=R,AB=F,MB){constructor(){super(...arguments);s(this,IB,null);s(this,kB,null);s(this,LB,null);s(this,NB,null);s(this,CB,null);s(this,TB,null);s(this,vB,null);s(this,xB,null);s(this,EB,null);s(this,wB,null);s(this,AB,null)}get baseFrequencyX(){return this[$d]||(this[$d]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("baseFrequencyX"),setAttribute:t=>this.setAttribute("baseFrequencyX",t)})),this[$d]}get baseFrequencyY(){return this[Xd]||(this[Xd]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("baseFrequencyY"),setAttribute:t=>this.setAttribute("baseFrequencyY",t)})),this[Xd]}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get numOctaves(){return this[zd]||(this[zd]=new bs(h,this[m],{getAttribute:()=>this.getAttribute("numOctaves"),setAttribute:t=>this.setAttribute("numOctaves",t)})),this[zd]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get seed(){return this[Jd]||(this[Jd]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("seed"),setAttribute:t=>this.setAttribute("seed",t)})),this[Jd]}get stitchTiles(){return this[Zd]||(this[Zd]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("stitchTiles"),setAttribute:t=>this.setAttribute("stitchTiles",t),values:["stitch","noStitch"],defaultValue:"stitch"})),this[Zd]}get type(){return this[zt]||(this[zt]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:t=>this.setAttribute("type",t),values:["fractalNoise","turbulence"],defaultValue:"turbulence"})),this[zt]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};s(Qs,"SVG_TURBULENCE_TYPE_UNKNOWN",0),s(Qs,"SVG_TURBULENCE_TYPE_FRACTALNOISE",1),s(Qs,"SVG_TURBULENCE_TYPE_TURBULENCE",2),s(Qs,"SVG_STITCHTYPE_UNKNOWN",0),s(Qs,"SVG_STITCHTYPE_STITCH",1),s(Qs,"SVG_STITCHTYPE_NOSTITCH",2);var RB,FB,BB,DB,OB,VB,UB,GB,hf=class extends(GB=ot,UB=Rt,VB=sd,OB=nd,DB=R,BB=F,FB=V,RB=O,GB){constructor(){super(...arguments);s(this,UB,null);s(this,VB,null);s(this,OB,null);s(this,DB,null);s(this,BB,null);s(this,FB,null);s(this,RB,null)}get href(){return this[Rt]||(this[Rt]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Rt]}get filterUnits(){return this[sd]||(this[sd]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("filterUnits"),setAttribute:t=>this.setAttribute("filterUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[sd]}get primitiveUnits(){return this[nd]||(this[nd]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("primitiveUnits"),setAttribute:t=>this.setAttribute("primitiveUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[nd]}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};var _B,HB,WB,YB,qB,cf=class extends(qB=Le,YB=R,WB=F,HB=V,_B=O,qB){constructor(){super(...arguments);s(this,YB,null);s(this,WB,null);s(this,HB,null);s(this,_B,null)}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};var df=class extends Le{};var KB,jB,QB,$B,XB,zB,JB,bf=class extends(JB=Le,zB=Rt,XB=Dr,$B=R,QB=F,jB=V,KB=O,JB){constructor(){super(...arguments);s(this,zB,null);s(this,XB,null);s(this,$B,null);s(this,QB,null);s(this,jB,null);s(this,KB,null)}get crossOrigin(){return this.getAttribute("crossorigin")}set crossOrigin(t){this.setAttribute("crossorigin",t)}get href(){return this[Rt]||(this[Rt]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Rt]}get decoding(){let t=this.getAttribute("decoding");switch(t){case"sync":case"async":case"auto":return t;default:return"auto"}}set decoding(t){this.setAttribute("decoding",t)}get preserveAspectRatio(){return this[Dr]||(this[Dr]=new Hi(h,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:t=>this.setAttribute("preserveAspectRatio",t)})),this[Dr]}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}decode(){return Promise.resolve()}};var ZB,tD,eD,rD,oD,gf=class extends(oD=Qr,rD=Sn,eD=Pn,tD=An,ZB=wn,oD){constructor(){super(...arguments);s(this,rD,null);s(this,eD,null);s(this,tD,null);s(this,ZB,null)}get x1(){return this[Sn]||(this[Sn]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x1"),setAttribute:t=>this.setAttribute("x1",t)})),this[Sn]}get y1(){return this[Pn]||(this[Pn]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y1"),setAttribute:t=>this.setAttribute("y1",t)})),this[Pn]}get x2(){return this[An]||(this[An]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x2"),setAttribute:t=>this.setAttribute("x2",t)})),this[An]}get y2(){return this[wn]||(this[wn]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y2"),setAttribute:t=>this.setAttribute("y2",t)})),this[wn]}};var iD,sD,nD,lD,aD,Yi=class extends(aD=Le,lD=Rt,nD=ld,sD=ad,iD=md,aD){constructor(){super(...arguments);s(this,lD,null);s(this,nD,null);s(this,sD,null);s(this,iD,null)}get href(){return this[Rt]||(this[Rt]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Rt]}get gradientUnits(){return this[ld]||(this[ld]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("gradientUnits"),setAttribute:t=>this.setAttribute("gradientUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"objectBoundingBox"})),this[ld]}get gradientTransform(){return this[ad]||(this[ad]=new js(h,this[m],{getAttribute:()=>this.getAttribute("gradientTransform"),setAttribute:t=>this.setAttribute("gradientTransform",t)})),this[ad]}get spreadMethod(){return this[md]||(this[md]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("spreadMethod"),setAttribute:t=>this.setAttribute("spreadMethod",t),values:["pad","reflect","repeat"],defaultValue:"pad"})),this[md]}};s(Yi,"SVG_SPREADMETHOD_UNKNOWN",0),s(Yi,"SVG_SPREADMETHOD_PAD",1),s(Yi,"SVG_SPREADMETHOD_REFLECT",2),s(Yi,"SVG_SPREADMETHOD_REPEAT",3);var mD,yD,uD,pD,hD,ff=class extends(hD=Yi,pD=Sn,uD=Pn,yD=An,mD=wn,hD){constructor(){super(...arguments);s(this,pD,null);s(this,uD,null);s(this,yD,null);s(this,mD,null)}get x1(){return this[Sn]||(this[Sn]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x1"),setAttribute:t=>this.setAttribute("x1",t)})),this[Sn]}get y1(){return this[Pn]||(this[Pn]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y1"),setAttribute:t=>this.setAttribute("y1",t)})),this[Pn]}get x2(){return this[An]||(this[An]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x2"),setAttribute:t=>this.setAttribute("x2",t)})),this[An]}get y2(){return this[wn]||(this[wn]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y2"),setAttribute:t=>this.setAttribute("y2",t)})),this[wn]}};var cD,dD,bD,gD,fD;fD=m,gD=C,bD=x,dD=pe,cD=he;var du=class{constructor(e,t,r){s(this,fD);s(this,gD);s(this,bD);s(this,dD,null);s(this,cD,null);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[C]=r.getAttribute,this[x]=r.setAttribute}get animVal(){return this[he]||(this[he]=new ni(h,this[m],{readOnly:!0,getAttribute:this[C]})),this[he]}set animVal(e){}get baseVal(){return this[pe]||(this[pe]=new ni(h,this[m],{getAttribute:this[C],setAttribute:this[x]})),this[pe]}set baseVal(e){}};var SD,PD,AD,wD,ED,xD,vD,TD,CD,ND,$s=class extends(ND=ot,CD=$c,TD=Xc,vD=zc,xD=Jc,ED=Zc,wD=td,AD=ed,PD=hn,SD=Dr,ND){constructor(){super(...arguments);s(this,"SVG_MARKER_ORIENT_UNKNOWN",0);s(this,"SVG_MARKER_ORIENT_AUTO",1);s(this,"SVG_MARKER_ORIENT_ANGLE",2);s(this,CD,null);s(this,TD,null);s(this,vD,null);s(this,xD,null);s(this,ED,null);s(this,wD,null);s(this,AD,null);s(this,PD,null);s(this,SD,null)}get markerUnits(){return this[$c]||(this[$c]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("markerUnits"),setAttribute:t=>this.setAttribute("markerUnits",t),values:["userSpaceOnUse","strokeWidth"],defaultValue:"strokeWidth"})),this[$c]}get markerWidth(){return this[Xc]||(this[Xc]=new I(h,this[m],{getAttribute:()=>this.getAttribute("markerWidth"),setAttribute:t=>this.setAttribute("markerWidth",t)})),this[Xc]}get markerHeight(){return this[zc]||(this[zc]=new I(h,this[m],{getAttribute:()=>this.getAttribute("markerHeight"),setAttribute:t=>this.setAttribute("markerHeight",t)})),this[zc]}get orientType(){return this[Jc]||(this[Jc]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("orient"),setAttribute:t=>this.setAttribute("orient",t),values:["auto",null],defaultValue:"auto"})),this[Jc]}get orientAngle(){return this[Zc]||(this[Zc]=new du(h,this[m],{getAttribute:()=>this.getAttribute("orient"),setAttribute:t=>this.setAttribute("orient",t)})),this[Zc]}get refX(){return this[td]||(this[td]=new I(h,this[m],{getAttribute:()=>this.getAttribute("refX"),setAttribute:t=>this.setAttribute("refX",t)})),this[td]}get refY(){return this[ed]||(this[ed]=new I(h,this[m],{getAttribute:()=>this.getAttribute("refY"),setAttribute:t=>this.setAttribute("refY",t)})),this[ed]}get viewBox(){return this[hn]||(this[hn]=new da(h,this[m],{getAttribute:()=>this.getAttribute("viewBox"),setAttribute:t=>this.setAttribute("viewBox",t)})),this[hn]}get preserveAspectRatio(){return this[Dr]||(this[Dr]=new Hi(h,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:t=>this.setAttribute("preserveAspectRatio",t)})),this[Dr]}setOrientToAuto(){this.setAttribute("orient","auto")}setOrientToAngle(t){this.setAttribute("orient",t.valueAsString)}};s($s,"SVG_MARKER_ORIENT_UNKNOWN",0),s($s,"SVG_MARKER_ORIENT_AUTO",1),s($s,"SVG_MARKER_ORIENT_ANGLE",2),s($s,"SVG_MARKERUNITS_UNKNOWN",0),s($s,"SVG_MARKERUNITS_USERSPACEONUSE",1),s($s,"SVG_MARKERUNITS_STROKEWIDTH",2);var LD,kD,ID,MD,RD,FD,BD,Sf=class extends(BD=ot,FD=od,RD=id,MD=R,ID=F,kD=V,LD=O,BD){constructor(){super(...arguments);s(this,FD,null);s(this,RD,null);s(this,MD,null);s(this,ID,null);s(this,kD,null);s(this,LD,null)}get maskUnits(){return this[od]||(this[od]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("maskUnits"),setAttribute:t=>this.setAttribute("maskUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[od]}get maskContentUnits(){return this[id]||(this[id]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("maskContentUnits"),setAttribute:t=>this.setAttribute("maskContentUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[id]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};var Pf=class extends ot{};var DD,OD,Af=class extends(OD=ot,DD=Rt,OD){constructor(){super(...arguments);s(this,DD,null)}get href(){return this[Rt]||(this[Rt]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Rt]}};var wf=class extends Qr{};var VD,UD,GD,_D,HD,WD,YD,qD,KD,Ef=class extends(KD=ot,qD=Rt,YD=yd,WD=ud,HD=pd,_D=R,GD=F,UD=V,VD=O,KD){constructor(){super(...arguments);s(this,qD,null);s(this,YD,null);s(this,WD,null);s(this,HD,null);s(this,_D,null);s(this,GD,null);s(this,UD,null);s(this,VD,null)}get href(){return this[Rt]||(this[Rt]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Rt]}get patternUnits(){return this[yd]||(this[yd]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("patternUnits"),setAttribute:t=>this.setAttribute("patternUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"objectBoundingBox"})),this[yd]}get patternContentUnits(){return this[ud]||(this[ud]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("patternContentUnits"),setAttribute:t=>this.setAttribute("patternContentUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[ud]}get patternTransform(){return this[pd]||(this[pd]=new js(h,this[m],{getAttribute:()=>this.getAttribute("patternTransform"),setAttribute:t=>this.setAttribute("patternTransform",t)})),this[pd]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};var aH=/[\t\f\n\r, ]+/,jD,QD,$D,XD,zD,Xs=class l{constructor(e,t,r){s(this,zD);s(this,XD);s(this,$D);s(this,QD,!1);s(this,jD,{items:[],attributeValue:""});if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[X]=!!r.readOnly,this[C]=r.getAttribute,this[x]=r.setAttribute;let o=new Te(this,[l]);return new Proxy(this,{get:(i,n)=>{if(n==="length"||n==="numberOfItems")return i[Q]().length;if(n in i||typeof n=="symbol")return o.bind(n),i[n];let a=Number(n);if(!isNaN(a))return i[Q]()[a]},set(i,n,a){if(o.bind(n),typeof n=="symbol")return i[n]=a,!0;let y=Number(n);return isNaN(y)&&(i[n]=a),!0},deleteProperty(i,n){if(typeof n=="symbol")return delete i[n],!0;let a=Number(n);return isNaN(a)&&delete i[n],!0},ownKeys(i){return Object.keys(i[Q]())},has(i,n){if(n in i)return!0;if(typeof n=="symbol")return!1;let a=Number(n);return!isNaN(a)&&a>=0&&a<i[Q]().length},defineProperty(i,n,a){return o.preventBinding(n),n in i?(Object.defineProperty(i,n,a),!0):!1},getOwnPropertyDescriptor(i,n){if(n in i||typeof n=="symbol")return;let a=Number(n),y=i[Q]();if(!isNaN(a)&&y[a])return{value:y[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Q]().length}get numberOfItems(){return this[Q]().length}[(zD=m,XD=C,$D=x,QD=X,jD=W,Symbol.iterator)](){return this[Q]().values()}clear(){if(this[X])throw new this[m].TypeError("Failed to execute 'clear' on 'SVGPointList': The object is read-only.");for(let e of this[W].items)e[C]=null,e[x]=null;this[W].items=[],this[W].attributeValue="",this[x]("")}initialize(e){if(this[X])throw new this[m].TypeError("Failed to execute 'initialize' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'initialize' on 'SVGPointList': 1 arguments required, but only ${arguments.length} present.`);if(!(e instanceof Lr))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");for(let t of this[W].items)t[C]=null,t[x]=null;return e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(t=>t[B]||"0 0").join(" "),this[x](this[W].attributeValue)},this[W].items=[e],this[W].attributeValue=e[B],this[x](e[B]||""),e}getItem(e){let t=this[Q]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),t[e]?t[e]:null}insertItemBefore(e,t){if(this[X])throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGPointList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertItemBefore' on 'SVGPointList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof Lr))throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let r=this[Q](),o=r.indexOf(e);return o!==-1&&r.splice(o,1),t<0?t=0:t>r.length&&(t=r.length),r.splice(t,0,e),e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(i=>i[B]||"0 0").join(" "),this[x](this[W].attributeValue)},this[W].attributeValue=r.map(i=>i[B]||"0 0").join(" "),this[x](this[W].attributeValue),e}replaceItem(e,t){if(this[X])throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGPointList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceItem' on 'SVGPointList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof Lr))throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let r=this[Q](),o=r.indexOf(e);if(o===t)return e;o!==-1&&r.splice(o,1),t<0?t=0:t>=r.length&&(t=r.length-1),r[t]&&(r[t][C]=null,r[t][x]=null);let i=r[t];return r[t]=e,e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(n=>n[B]||"0 0").join(" "),this[x](this[W].attributeValue)},this[W].attributeValue=r.map(n=>n[B]||"0 0").join(" "),this[x](this[W].attributeValue),i}removeItem(e){if(this[X])throw new this[m].TypeError("Failed to execute 'removeItem' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'removeItem' on 'SVGPointList': 1 argument required, but only ${arguments.length} present.`);let t=this[Q]();if(e=Number(e),isNaN(e)&&(e=0),e>=t.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${e}) is greater than the maximum bound.`,v.indexSizeError);if(e<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${e}) is negative.`,v.indexSizeError);let r=t[e];return r&&(r[C]=null,r[x]=null),t.splice(e,1),this[x](t.map(o=>o[B]||"0 0").join(" ")),r}appendItem(e){if(this[X])throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'appendItem' on 'SVGPointList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof Lr))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let t=this[Q](),r=t.indexOf(e);return r!==-1&&t.splice(r,1),t.push(e),e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(o=>o[B]||"0 0").join(" "),this[x](this[W].attributeValue)},this[W].attributeValue=t.map(o=>o[B]||"0 0").join(" "),this[x](this[W].attributeValue),e}[Q](){let e=this[C]()??"",t=this[W];if(t.attributeValue===e)return t.items;if(t.items.length)for(let i of t.items)i[C]=null,i[x]=null;let r=[],o=e.trim();if(o){let i=o.split(aH);for(let n=0,a=i.length;n<a;n+=2){let y=parseFloat(i[n]),p=i[n+1]!==void 0?" "+parseFloat(i[n+1]):"",d=new Lr(h,this[m],{readOnly:this[X],getAttribute:()=>d[B],setAttribute:()=>{this[W].attributeValue=this[Q]().map(b=>b[B]||"0 0").join(" "),this[x](this[W].attributeValue)}});d[B]=`${y}${p}`,r.push(d)}}return t.attributeValue=e,t.items=r,r}};var JD,ZD,tO,xf=class extends(tO=Qr,ZD=cn,JD=dn,tO){constructor(){super(...arguments);s(this,ZD,null);s(this,JD,null)}get animatedPoints(){return this[cn]||(this[cn]=new Xs(h,this[m],{readOnly:!0,getAttribute:()=>this.getAttribute("points"),setAttribute:()=>{}})),this[cn]}get points(){return this[dn]||(this[dn]=new Xs(h,this[m],{getAttribute:()=>this.getAttribute("points"),setAttribute:t=>this.setAttribute("points",t)})),this[dn]}};var eO,rO,oO,vf=class extends(oO=Qr,rO=cn,eO=dn,oO){constructor(){super(...arguments);s(this,rO,null);s(this,eO,null)}get animatedPoints(){return this[cn]||(this[cn]=new Xs(h,this[m],{readOnly:!0,getAttribute:()=>this.getAttribute("points"),setAttribute:()=>{}})),this[cn]}get points(){return this[dn]||(this[dn]=new Xs(h,this[m],{getAttribute:()=>this.getAttribute("points"),setAttribute:t=>this.setAttribute("points",t)})),this[dn]}};var iO,sO,nO,lO,aO,mO,Tf=class extends(mO=Yi,aO=Uo,lO=Go,nO=fn,sO=hd,iO=cd,mO){constructor(){super(...arguments);s(this,aO,null);s(this,lO,null);s(this,nO,null);s(this,sO,null);s(this,iO,null)}get cx(){return this[Uo]||(this[Uo]=new I(h,this[m],{getAttribute:()=>this.getAttribute("cx"),setAttribute:t=>this.setAttribute("cx",t)})),this[Uo]}get cy(){return this[Go]||(this[Go]=new I(h,this[m],{getAttribute:()=>this.getAttribute("cy"),setAttribute:t=>this.setAttribute("cy",t)})),this[Go]}get r(){return this[fn]||(this[fn]=new I(h,this[m],{getAttribute:()=>this.getAttribute("r"),setAttribute:t=>this.setAttribute("r",t)})),this[fn]}get fx(){return this[hd]||(this[hd]=new I(h,this[m],{getAttribute:()=>this.getAttribute("fx"),setAttribute:t=>this.setAttribute("fx",t)})),this[hd]}get fy(){return this[cd]||(this[cd]=new I(h,this[m],{getAttribute:()=>this.getAttribute("fy"),setAttribute:t=>this.setAttribute("fy",t)})),this[cd]}};var yO,uO,pO,hO,cO,dO,bO,Cf=class extends(bO=Qr,dO=R,cO=F,hO=V,pO=O,uO=bn,yO=gn,bO){constructor(){super(...arguments);s(this,dO,null);s(this,cO,null);s(this,hO,null);s(this,pO,null);s(this,uO,null);s(this,yO,null)}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get rx(){return this[bn]||(this[bn]=new I(h,this[m],{getAttribute:()=>this.getAttribute("rx"),setAttribute:t=>this.setAttribute("rx",t)})),this[bn]}get ry(){return this[gn]||(this[gn]=new I(h,this[m],{getAttribute:()=>this.getAttribute("ry"),setAttribute:t=>this.setAttribute("ry",t)})),this[gn]}};var gO,fO,Nf=class extends(fO=Le,gO=Rt,fO){constructor(){super(...arguments);s(this,gO,null)}get href(){return this[Rt]||(this[Rt]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Rt]}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}};var Lf=class extends Wi{};var SO,PO,kf=class extends(PO=ot,SO=En,PO){constructor(){super(...arguments);s(this,SO,null)}get offset(){return this[En]||(this[En]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("offset"),setAttribute:t=>this.setAttribute("offset",t)})),this[En]}};var AO,wO,EO,If=class extends ot{constructor(){super(...arguments);s(this,EO,null);s(this,wO,this);s(this,AO,!1)}get media(){return this.getAttribute("media")||"all"}set media(t){this.setAttribute("media",t)}get type(){return this.getAttribute("type")||"text/css"}set type(t){this.setAttribute("type",t)}get title(){return this.getAttribute("title")||""}set title(t){this.setAttribute("title",t)}get disabled(){return this[Ua]}set disabled(t){this[Ua]=!!t}get sheet(){return this[it]?(this[Je]||(this[Je]=new this[T][m].CSSStyleSheet,this[Je].replaceSync(this.textContent)),this[Je]):null}[(EO=Je,wO=Wr,AO=Ua,Fr)](){super[Fr](),this[Je]=null}[wt](){super[wt](),this[Je]=null}[Ba](){this[Je]&&this[Je].replaceSync(this.textContent)}};var Mf=class extends Le{};var Rf=class extends Le{};var xO,vO,TO,ml=class extends(TO=Le,vO=dd,xO=bd,TO){constructor(){super(...arguments);s(this,vO,null);s(this,xO,null)}get textLength(){return this[dd]||(this[dd]=new I(h,this[m],{getAttribute:()=>this.getAttribute("textLength"),setAttribute:t=>this.setAttribute("textLength",t)})),this[dd]}get lengthAdjust(){return this[bd]||(this[bd]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("lengthAdjust"),setAttribute:t=>this.setAttribute("lengthAdjust",t),values:["spacing","spacingAndGlyphs"],defaultValue:"spacing"})),this[bd]}getNumberOfChars(){return 0}getComputedTextLength(){return 0}getSubStringLength(t,r){return 0}getStartPositionOfChar(t){return new Lr(h,this[m])}getEndPositionOfChar(t){return new Lr(h,this[m])}getExtentOfChar(t){return new hs(h,this[m])}getRotationOfChar(t){return 0}getCharNumAtPosition(t){return 0}};s(ml,"LENGTHADJUST_UNKNOWN",0),s(ml,"LENGTHADJUST_SPACING",1),s(ml,"LENGTHADJUST_SPACINGANDGLYPHS",2);var mH=/[\t\f\n\r, ]+/,CO,NO,LO,kO,IO,$m=class l{constructor(e,t,r){s(this,IO);s(this,kO);s(this,LO);s(this,NO,!1);s(this,CO,{items:[],attributeValue:""});if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[X]=!!r.readOnly,this[C]=r.getAttribute,this[x]=r.setAttribute;let o=new Te(this,[l]);return new Proxy(this,{get:(i,n)=>{if(n==="length"||n==="numberOfItems")return i[Q]().length;if(n in i||typeof n=="symbol")return o.bind(n),i[n];let a=Number(n);if(!isNaN(a))return i[Q]()[a]},set(i,n,a){if(o.bind(n),typeof n=="symbol")return i[n]=a,!0;let y=Number(n);return isNaN(y)&&(i[n]=a),!0},deleteProperty(i,n){if(typeof n=="symbol")return delete i[n],!0;let a=Number(n);return isNaN(a)&&delete i[n],!0},ownKeys(i){return Object.keys(i[Q]())},has(i,n){if(n in i)return!0;if(typeof n=="symbol")return!1;let a=Number(n);return!isNaN(a)&&a>=0&&a<i[Q]().length},defineProperty(i,n,a){return o.preventBinding(n),n in i?(Object.defineProperty(i,n,a),!0):!1},getOwnPropertyDescriptor(i,n){if(n in i||typeof n=="symbol")return;let a=Number(n),y=i[Q]();if(!isNaN(a)&&y[a])return{value:y[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Q]().length}get numberOfItems(){return this[Q]().length}[(IO=m,kO=C,LO=x,NO=X,CO=W,Symbol.iterator)](){return this[Q]().values()}clear(){this[x]("")}initialize(e){if(this[X])throw new this[m].TypeError("Failed to execute 'initialize' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'initialize' on 'SVGLengthList': 1 arguments required, but only ${arguments.length} present.`);for(let t of this[W].items)t[C]=null,t[x]=null;return e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(t=>t[B]??"0").join(" "),this[x](this[W].attributeValue)},this[W].items=[e],this[W].attributeValue=e[B],this[x](e[B]||""),e}getItem(e){let t=this[Q]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),t[e]?t[e]:null}insertItemBefore(e,t){if(this[X])throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGLengthList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertItemBefore' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let r=this[Q](),o=r.indexOf(e);return o!==-1&&r.splice(o,1),t<0?t=0:t>r.length&&(t=r.length),r.splice(t,0,e),e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(i=>i[B]??"0").join(" "),this[x](this[W].attributeValue)},this[W].attributeValue=r.map(i=>i[B]??"0").join(" "),this[x](this[W].attributeValue),e}replaceItem(e,t){if(this[X])throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceItem' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let r=this[Q](),o=r.indexOf(e);if(o===t)return e;o!==-1&&r.splice(o,1),t<0?t=0:t>=r.length&&(t=r.length-1),r[t]&&(r[t][C]=null,r[t][x]=null);let i=r[t];return r[t]=e,e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(n=>n[B]??"0").join(" "),this[x](this[W].attributeValue)},this[W].attributeValue=r.map(n=>n[B]??"0").join(" "),this[x](this[W].attributeValue),i}removeItem(e){if(this[X])throw new this[m].TypeError("Failed to execute 'removeItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'removeItem' on 'SVGLengthList': 1 argument required, but only ${arguments.length} present.`);let t=this[Q]();if(e=Number(e),isNaN(e)&&(e=0),e>=t.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${e}) is greater than the maximum bound.`,v.indexSizeError);if(e<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${e}) is negative.`,v.indexSizeError);let r=t[e];return r&&(r[C]=null,r[x]=null),t.splice(e,1),this[x](t.map(o=>o[B]??"0").join(" ")),r}appendItem(e){if(this[X])throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'appendItem' on 'SVGLengthList': 1 argument required, but only ${arguments.length} present.`);let t=this[Q](),r=t.indexOf(e);return r!==-1&&t.splice(r,1),t.push(e),e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(o=>o[B]??"0").join(" "),this[x](this[W].attributeValue)},this[W].attributeValue=t.map(o=>o[B]??"0").join(" "),this[x](this[W].attributeValue),e}[Q](){let e=this[C]()??"",t=this[W];if(t.attributeValue===e)return t.items;if(t.items.length)for(let i of t.items)i[C]=null,i[x]=null;let r=[],o=e.trim();if(o){let i=o.split(mH);for(let n=0,a=i.length;n<a;n++){let y=new yr(h,this[m],{readOnly:this[X],getAttribute:()=>y[B],setAttribute:p=>{y[B]=p;let d=r.map(b=>b[B]??"0").join(" ");t.attributeValue=d,this[x](d)}});y[B]=i[n],r.push(y)}}return t.attributeValue=e,t.items=r,r}};var MO,RO,FO,BO,DO;DO=m,BO=C,FO=x,RO=pe,MO=he;var yl=class{constructor(e,t,r){s(this,DO);s(this,BO);s(this,FO);s(this,RO,null);s(this,MO,null);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[C]=r.getAttribute,this[x]=r.setAttribute}get animVal(){return this[he]||(this[he]=new $m(h,this[m],{readOnly:!0,getAttribute:this[C],setAttribute:this[x]})),this[he]}set animVal(e){}get baseVal(){return this[pe]||(this[pe]=new $m(h,this[m],{getAttribute:this[C],setAttribute:this[x]})),this[pe]}set baseVal(e){}};var OO,VO,UO,GO,_O,HO,Sa=class extends(HO=ml,_O=R,GO=F,UO=Yo,VO=qo,OO=ib,HO){constructor(){super(...arguments);s(this,_O,null);s(this,GO,null);s(this,UO,null);s(this,VO,null);s(this,OO,null)}get x(){return this[R]||(this[R]=new yl(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new yl(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}get dx(){return this[Yo]||(this[Yo]=new yl(h,this[m],{getAttribute:()=>this.getAttribute("dx"),setAttribute:t=>this.setAttribute("dx",t)})),this[Yo]}get dy(){return this[qo]||(this[qo]=new yl(h,this[m],{getAttribute:()=>this.getAttribute("dy"),setAttribute:t=>this.setAttribute("dy",t)})),this[qo]}get rotate(){return this[ib]||(this[ib]=new li(h,this[m],{getAttribute:()=>this.getAttribute("rotate"),setAttribute:t=>this.setAttribute("rotate",t)})),this[ib]}};var Ff=class extends Sa{};var WO,YO,qO,KO,jO,zs=class extends(jO=ml,KO=Rt,qO=Pd,YO=Cl,WO=Ad,jO){constructor(){super(...arguments);s(this,KO,null);s(this,qO,null);s(this,YO,null);s(this,WO,null)}get href(){return this[Rt]||(this[Rt]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Rt]}get startOffset(){return this[Pd]||(this[Pd]=new I(h,this[m],{getAttribute:()=>this.getAttribute("startOffset"),setAttribute:t=>this.setAttribute("startOffset",t)})),this[Pd]}get method(){return this[Cl]||(this[Cl]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("method"),setAttribute:t=>this.setAttribute("method",t),values:["align","stretch"],defaultValue:"align"})),this[Cl]}get spacing(){return this[Ad]||(this[Ad]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("spacing"),setAttribute:t=>this.setAttribute("spacing",t),values:["auto","exact"],defaultValue:"exact"})),this[Ad]}};s(zs,"TEXTPATH_METHODTYPE_UNKNOWN",0),s(zs,"TEXTPATH_METHODTYPE_ALIGN",1),s(zs,"TEXTPATH_METHODTYPE_STRETCH",2),s(zs,"TEXTPATH_SPACINGTYPE_UNKNOWN",0),s(zs,"TEXTPATH_SPACINGTYPE_AUTO",1),s(zs,"TEXTPATH_SPACINGTYPE_EXACT",2);var Bf=class extends ot{};var Df=class extends Sa{};var QO,$O,XO,zO,JO,ZO,Of=class extends(ZO=Le,JO=Rt,zO=R,XO=F,$O=V,QO=O,ZO){constructor(){super(...arguments);s(this,JO,null);s(this,zO,null);s(this,XO,null);s(this,$O,null);s(this,QO,null)}get href(){return this[Rt]||(this[Rt]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Rt]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}};var Vf=class extends ot{};var Xm=class{constructor(e){s(this,"SVG_UNIT_TYPE_UNKNOWN",0);s(this,"SVG_UNIT_TYPE_USERSPACEONUSE",1);s(this,"SVG_UNIT_TYPE_OBJECTBOUNDINGBOX",2);if(e!==h)throw new TypeError("Illegal constructor")}};s(Xm,"SVG_UNIT_TYPE_UNKNOWN",0),s(Xm,"SVG_UNIT_TYPE_USERSPACEONUSE",1),s(Xm,"SVG_UNIT_TYPE_OBJECTBOUNDINGBOX",2);var Uf=class{constructor(e){s(this,"window");this.window=e}enqueueReaction(e,t,r){let o=this.window.customElements[Ps]?.get(e.localName);if(o&&e[T]===this.window.document)switch(t){case"connectedCallback":if(o.lifecycleCallbacks.connectedCallback){let i=o.lifecycleCallbacks.connectedCallback?.call(e);if(i instanceof Promise){let n=new rt(this.window).getAsyncTaskManager();if(n){let a=n.startTask();i.then(()=>n.endTask(a)).catch(()=>n.endTask(a))}}}break;case"disconnectedCallback":o.lifecycleCallbacks.disconnectedCallback&&o.lifecycleCallbacks.disconnectedCallback.call(e);break;case"attributeChangedCallback":o.lifecycleCallbacks.attributeChangedCallback&&r?.length&&o.observedAttributes.has(r[0])&&o.lifecycleCallbacks.attributeChangedCallback.apply(e,r);break}}};var dc=class extends k{constructor(t,r=null){super(t);s(this,"state");s(this,"hasUAVisualTransition");this.state=r?.state??null,this.hasUAVisualTransition=r?.hasUAVisualTransition??!1}};var Gf=class extends k{constructor(t,r=null){super(t,r);s(this,"code");s(this,"reason");s(this,"wasClean");this.code=r?.code??0,this.reason=r?.reason??"",this.wasClean=r?.wasClean??!1}};var zm={setTimeout:globalThis.setTimeout.bind(globalThis),clearTimeout:globalThis.clearTimeout.bind(globalThis),setInterval:globalThis.setInterval.bind(globalThis),clearInterval:globalThis.clearInterval.bind(globalThis),queueMicrotask:globalThis.queueMicrotask.bind(globalThis),setImmediate:globalThis.setImmediate.bind(globalThis),clearImmediate:globalThis.clearImmediate.bind(globalThis)},kw=setTimeout.toString().includes("new Timeout"),fH=(()=>{try{return new Function("return true;")(),!0}catch{return!1}})(),SH=(()=>{try{return globalThis.Function.$UNFROZEN$=!0,delete globalThis.Function.$UNFROZEN$,!0}catch{return!1}})(),Iw=class{constructor(){throw new TypeError("Illegal constructor")}},nP=class{constructor(e){s(this,"callback");this.callback=e}},eV,rV,oV,iV,sV,nV,lV,aV,mV,yV,uV,pV,hV,cV,dV,bV,gV,fV,Ct,bc,gc,fc,Sc,Pc,_f,Hf,Wf,Mw=class Mw extends Tt{constructor(t,r){super();s(this,"Node",bt);s(this,"Attr",pp);s(this,"ShadowRoot",Nh);s(this,"ProcessingInstruction",Ch);s(this,"Element",xr);s(this,"CharacterData",Ds);s(this,"DocumentType",Hn);s(this,"HTMLAnchorElement",dp);s(this,"HTMLButtonElement",Ap);s(this,"HTMLOptGroupElement",eh);s(this,"HTMLOptionElement",$n);s(this,"HTMLElement",G);s(this,"HTMLUnknownElement",vh);s(this,"HTMLTemplateElement",Sh);s(this,"HTMLInputElement",Gp);s(this,"HTMLSelectElement",uh);s(this,"HTMLTextAreaElement",Ph);s(this,"HTMLImageElement",Tm);s(this,"HTMLStyleElement",ch);s(this,"HTMLLabelElement",_p);s(this,"HTMLSlotElement",OA);s(this,"HTMLMetaElement",Xp);s(this,"HTMLMediaElement",qn);s(this,"HTMLAudioElement",wm);s(this,"HTMLVideoElement",Th);s(this,"HTMLBaseElement",fp);s(this,"HTMLDialogElement",Cp);s(this,"HTMLScriptElement",yh);s(this,"HTMLLinkElement",jp);s(this,"HTMLIFrameElement",Op);s(this,"HTMLFormElement",Mp);s(this,"HTMLUListElement",xh);s(this,"HTMLTrackElement",Eh);s(this,"HTMLTableRowElement",fh);s(this,"HTMLTitleElement",wh);s(this,"HTMLTimeElement",Ah);s(this,"HTMLTableSectionElement",Ws);s(this,"HTMLTableCellElement",dh);s(this,"HTMLTableElement",gh);s(this,"HTMLSpanElement",hh);s(this,"HTMLSourceElement",ph);s(this,"HTMLQuoteElement",ah);s(this,"HTMLProgressElement",lh);s(this,"HTMLPreElement",nh);s(this,"HTMLPictureElement",sh);s(this,"HTMLParamElement",ih);s(this,"HTMLParagraphElement",oh);s(this,"HTMLOutputElement",rh);s(this,"HTMLOListElement",Zp);s(this,"HTMLObjectElement",th);s(this,"HTMLMeterElement",zp);s(this,"HTMLMenuElement",$p);s(this,"HTMLMapElement",Qp);s(this,"HTMLLIElement",Wp);s(this,"HTMLLegendElement",Hp);s(this,"HTMLModElement",Jp);s(this,"HTMLHtmlElement",Dp);s(this,"HTMLHRElement",Bp);s(this,"HTMLHeadElement",Rp);s(this,"HTMLHeadingElement",Fp);s(this,"HTMLFieldSetElement",Em);s(this,"HTMLEmbedElement",Lp);s(this,"HTMLDListElement",Ep);s(this,"HTMLDivElement",Np);s(this,"HTMLDetailsElement",Tp);s(this,"HTMLDataListElement",vp);s(this,"HTMLDataElement",xp);s(this,"HTMLTableColElement",bh);s(this,"HTMLTableCaptionElement",km);s(this,"HTMLCanvasElement",wp);s(this,"HTMLBRElement",Pp);s(this,"HTMLBodyElement",Sp);s(this,"HTMLAreaElement",bp);s(this,"SVGSVGElement",cc);s(this,"SVGAnimateElement",_g);s(this,"SVGAnimateMotionElement",Hg);s(this,"SVGAnimateTransformElement",Wg);s(this,"SVGCircleElement",Yg);s(this,"SVGClipPathElement",qg);s(this,"SVGDefsElement",Kg);s(this,"SVGDescElement",jg);s(this,"SVGEllipseElement",Qg);s(this,"SVGFEBlendElement",Sr);s(this,"SVGFEColorMatrixElement",ll);s(this,"SVGFEComponentTransferElement",$g);s(this,"SVGFECompositeElement",ds);s(this,"SVGFEConvolveMatrixElement",ga);s(this,"SVGFEDiffuseLightingElement",Xg);s(this,"SVGFEDisplacementMapElement",al);s(this,"SVGFEDistantLightElement",zg);s(this,"SVGFEDropShadowElement",Jg);s(this,"SVGFEFloodElement",Zg);s(this,"SVGFEFuncAElement",tf);s(this,"SVGFEFuncBElement",ef);s(this,"SVGFEFuncGElement",rf);s(this,"SVGFEFuncRElement",of);s(this,"SVGFEGaussianBlurElement",fa);s(this,"SVGFEImageElement",sf);s(this,"SVGFEMergeElement",nf);s(this,"SVGFEMergeNodeElement",lf);s(this,"SVGFEMorphologyElement",Qm);s(this,"SVGFEOffsetElement",af);s(this,"SVGFEPointLightElement",mf);s(this,"SVGFESpecularLightingElement",yf);s(this,"SVGFESpotLightElement",uf);s(this,"SVGFETileElement",pf);s(this,"SVGFETurbulenceElement",Qs);s(this,"SVGFilterElement",hf);s(this,"SVGForeignObjectElement",cf);s(this,"SVGGElement",df);s(this,"SVGImageElement",bf);s(this,"SVGLineElement",gf);s(this,"SVGLinearGradientElement",ff);s(this,"SVGMarkerElement",$s);s(this,"SVGMaskElement",Sf);s(this,"SVGMetadataElement",Pf);s(this,"SVGMPathElement",Af);s(this,"SVGPathElement",wf);s(this,"SVGPatternElement",Ef);s(this,"SVGPolygonElement",xf);s(this,"SVGPolylineElement",vf);s(this,"SVGRadialGradientElement",Tf);s(this,"SVGRectElement",Cf);s(this,"SVGScriptElement",Nf);s(this,"SVGSetElement",Lf);s(this,"SVGStopElement",kf);s(this,"SVGStyleElement",If);s(this,"SVGSwitchElement",Mf);s(this,"SVGSymbolElement",Rf);s(this,"SVGTextElement",Ff);s(this,"SVGTextPathElement",zs);s(this,"SVGTitleElement",Bf);s(this,"SVGTSpanElement",Df);s(this,"SVGUseElement",Of);s(this,"SVGViewElement",Vf);s(this,"SVGElement",ot);s(this,"SVGAnimationElement",Wi);s(this,"SVGComponentTransferFunctionElement",$r);s(this,"SVGGeometryElement",Qr);s(this,"SVGGradientElement",Yi);s(this,"SVGTextPositioningElement",Sa);s(this,"SVGGraphicsElement",Le);s(this,"Event",k);s(this,"UIEvent",Ze);s(this,"CustomEvent",ep);s(this,"CloseEvent",Gf);s(this,"AnimationEvent",Zu);s(this,"KeyboardEvent",Gn);s(this,"MessageEvent",op);s(this,"MouseEvent",nr);s(this,"PointerEvent",pm);s(this,"FocusEvent",Ms);s(this,"WheelEvent",Gl);s(this,"InputEvent",rp);s(this,"ErrorEvent",Un);s(this,"StorageEvent",wb);s(this,"SubmitEvent",hm);s(this,"ProgressEvent",Qo);s(this,"MediaQueryListEvent",Xa);s(this,"HashChangeEvent",um);s(this,"ClipboardEvent",tp);s(this,"TouchEvent",ip);s(this,"PopStateEvent",dc);s(this,"Touch",Ju);s(this,"AudioProcessingEvent",k);s(this,"BeforeInputEvent",k);s(this,"BeforeUnloadEvent",k);s(this,"BlobEvent",k);s(this,"CompositionEvent",k);s(this,"CSSFontFaceLoadEvent",k);s(this,"DeviceLightEvent",k);s(this,"DeviceMotionEvent",k);s(this,"DeviceOrientationEvent",k);s(this,"DeviceProximityEvent",k);s(this,"DOMTransactionEvent",k);s(this,"DragEvent",k);s(this,"EditingBeforeInputEvent",k);s(this,"FetchEvent",k);s(this,"GamepadEvent",k);s(this,"IDBVersionChangeEvent",k);s(this,"MediaStreamEvent",k);s(this,"MutationEvent",k);s(this,"OfflineAudioCompletionEvent",k);s(this,"OverconstrainedError",k);s(this,"PageTransitionEvent",k);s(this,"PaymentRequestUpdateEvent",k);s(this,"RelatedEvent",k);s(this,"RTCDataChannelEvent",k);s(this,"RTCIdentityErrorEvent",k);s(this,"RTCIdentityEvent",k);s(this,"RTCPeerConnectionIceEvent",k);s(this,"SensorEvent",k);s(this,"SVGEvent",k);s(this,"SVGZoomEvent",k);s(this,"TimeEvent",k);s(this,"TrackEvent",k);s(this,"TransitionEvent",k);s(this,"UserProximityEvent",k);s(this,"WebGLContextEvent",k);s(this,"TextEvent",k);s(this,"Permissions",fm);s(this,"History",Fy);s(this,"Navigator",up);s(this,"Clipboard",ja);s(this,"TimeRanges",jl);s(this,"TextTrackCueList",ta);s(this,"ValidityState",Po);s(this,"MutationRecord",Jo);s(this,"IntersectionObserver",ap);s(this,"IntersectionObserverEntry",mp);s(this,"CSSStyleDeclaration",go);s(this,"CSSRule",Re);s(this,"CSSContainerRule",Za);s(this,"CSSFontFaceRule",em);s(this,"CSSKeyframeRule",On);s(this,"CSSKeyframesRule",om);s(this,"CSSMediaRule",sm);s(this,"CSSStyleRule",Vn);s(this,"CSSSupportsRule",mm);s(this,"CSSConditionRule",rs);s(this,"CSSGroupingRule",es);s(this,"CSSScopeRule",Bn);s(this,"DOMRect",ns);s(this,"DOMRectReadOnly",Pm);s(this,"Plugin",Lb);s(this,"PluginArray",Oy);s(this,"Location",By);s(this,"CustomElementRegistry",Ly);s(this,"ResizeObserver",Lh);s(this,"Blob",be);s(this,"File",jo);s(this,"Storage",Fm);s(this,"MimeType",Nb);s(this,"MimeTypeArray",Dy);s(this,"NodeFilter",Pe);s(this,"HTMLCollection",Ne);s(this,"HTMLFormControlCollection",xm);s(this,"HTMLOptionsCollection",Jy);s(this,"NodeList",Ii);s(this,"RadioNodeList",Wy);s(this,"FileList",$l);s(this,"Screen",ra);s(this,"ScreenDetails",Zy);s(this,"ScreenDetailed",Mm);s(this,"DOMMatrixReadOnly",hu);s(this,"DOMMatrix",ko);s(this,"NamedNodeMap",Wn);s(this,"TreeWalker",Jn);s(this,"NodeIterator",Om);s(this,"DataTransfer",zu);s(this,"DataTransferItem",Is);s(this,"DataTransferItemList",ym);s(this,"XMLSerializer",kh);s(this,"ClipboardItem",_u);s(this,"Selection",Rm);s(this,"CSSUnitValue",ge);s(this,"SVGAngle",ni);s(this,"SVGAnimatedAngle",du);s(this,"SVGAnimatedBoolean",cu);s(this,"SVGAnimatedEnumeration",kt);s(this,"SVGAnimatedInteger",bs);s(this,"SVGAnimatedLength",I);s(this,"SVGAnimatedNumber",pt);s(this,"SVGAnimatedNumberList",li);s(this,"SVGAnimatedPreserveAspectRatio",Hi);s(this,"SVGAnimatedRect",da);s(this,"SVGAnimatedString",lt);s(this,"SVGAnimatedTransformList",js);s(this,"SVGLength",yr);s(this,"SVGLengthList",$m);s(this,"SVGMatrix",nl);s(this,"SVGNumber",cs);s(this,"SVGNumberList",jm);s(this,"SVGPoint",Lr);s(this,"SVGPointList",Xs);s(this,"SVGPreserveAspectRatio",fr);s(this,"SVGRect",hs);s(this,"SVGStringList",Ks);s(this,"SVGTransform",Nr);s(this,"SVGTransformList",Km);s(this,"SVGAnimatedLengthList",yl);s(this,"SVGUnitTypes",Xm);s(this,"DOMPoint",pu);s(this,"StylePropertyMap",lm);s(this,"StylePropertyMapReadOnly",nm);s(this,"MediaList",im);s(this,"CSSKeywordValue",Vl);s(this,"CSSStyleValue",Ul);s(this,"Window",this.constructor);s(this,"URLSearchParams",dH);s(this,"WritableStream",tV.Writable);s(this,"ReadableStream",cH);s(this,"TransformStream",tV.Transform);s(this,"PerformanceObserver",bH);s(this,"PerformanceEntry",gH);s(this,"PerformanceObserverEntryList",Iw);s(this,"onload",null);s(this,"onerror",null);s(this,"document");s(this,"customElements",new Ly(this));s(this,"window",this);s(this,"globalThis",this);s(this,"performance",performance);s(this,"screenLeft",0);s(this,"screenTop",0);s(this,"screenX",0);s(this,"screenY",0);s(this,"crypto",uH);s(this,"TextEncoder",pH);s(this,"TextDecoder",hH);s(this,"closed",!1);s(this,"console");s(this,"name","");s(this,"Buffer",yH);s(this,fV,[]);s(this,gV);s(this,bV);s(this,dV);s(this,cV);s(this,hV);s(this,pV);s(this,uV);s(this,yV,this);s(this,mV,this);s(this,aV,this);s(this,lV,this);s(this,nV,this);s(this,sV,-1);s(this,iV,new Uf(this));s(this,oV,{json:new Map,css:new Map,esm:new Map});s(this,rV,null);s(this,eV,[]);E(this,Ct);E(this,bc,null);E(this,gc,null);E(this,fc,null);E(this,Sc,null);E(this,Pc,null);E(this,_f,{timeouts:null});E(this,Hf,[]);E(this,Wf,[]);w(this,Ct,t),this[GP](),this.console=t.page.console,this[yi]=new Rb(t),this[iS]=new up(this),this[sS]=new ra,this[nS]=new Fm,this[lS]=new Fm,this[vo]=new By(u(this,Ct),r?.url??"about:blank"),this[je]=new Fy(u(this,Ct),this),t[je].currentItem.href=r?.url??"about:blank",rt.setWindowBrowserFrameRelation(this,u(this,Ct)),this[kc](),Vg.extendClasses(this),this.document=new this.HTMLDocument,this.document[mo]=this;let o=t[gt].startTask(()=>this[yi].destroy());this[yi].waitUntilComplete().then(()=>{t[gt].endTask(o),this.document[Ia]=LS.complete,this.document.dispatchEvent(new k("readystatechange"));let i=new k("load");i[Ti]=this,i[Zr]=this.document,i[eo]=de.atTarget,this.dispatchEvent(i),i[Ti]=null,i[eo]=de.none,i[_a]=!1}),this[OP]()}get self(){return this[Da]}set self(t){this[Da]=t}get top(){return this[zi]}get parent(){return this[Oo]}set parent(t){this[Oo]=t}get frames(){return this[UP]}set frames(t){this[Oo]=t}get location(){return this[vo]}set location(t){this[vo].href=t}get history(){return this[je]}get navigator(){return this[iS]}get screen(){return this[sS]}get sessionStorage(){return this[nS]}get localStorage(){return this[lS]}get opener(){return u(this,Ct)[ji]}get scrollX(){return this.document?.documentElement?.scrollLeft??0}get pageXOffset(){return this.scrollX}get scrollY(){return this.document?.documentElement?.scrollTop??0}get pageYOffset(){return this.scrollY}get CSS(){return new cb}get innerWidth(){return u(this,bc)===null?u(this,Ct).page.viewport.width:u(this,bc)}set innerWidth(t){w(this,bc,t)}get innerHeight(){return u(this,gc)===null?u(this,Ct).page.viewport.height:u(this,gc)}set innerHeight(t){w(this,gc,t)}get outerWidth(){return u(this,fc)===null?u(this,Ct).page.viewport.width:u(this,fc)}set outerWidth(t){w(this,fc,t)}get outerHeight(){return u(this,Sc)===null?u(this,Ct).page.viewport.height:u(this,Sc)}set outerHeight(t){w(this,Sc,t)}get devicePixelRatio(){return u(this,Pc)===null?u(this,Ct).page.viewport.devicePixelRatio:u(this,Pc)}set devicePixelRatio(t){w(this,Pc,t)}getComputedStyle(t){return t[my]=t[my]||new go(h,this,{element:t,computed:!0}),t[my]}getSelection(){return this.document.getSelection()}scroll(t,r){if(typeof t!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scroll' on 'Window': The provided value is not of type 'ScrollToOptions'.");let o=typeof t=="object"?t:{left:t,top:r};if(o.behavior==="smooth")this.setTimeout(()=>{if(o.top!==void 0){let i=Number(o.top);this.document.documentElement.scrollTop=isNaN(i)?0:i}if(o.left!==void 0){let i=Number(o.left);this.document.documentElement.scrollLeft=isNaN(i)?0:i}});else{if(o.top!==void 0){let i=Number(o.top);this.document.documentElement.scrollTop=isNaN(i)?0:i}if(o.left!==void 0){let i=Number(o.left);this.document.documentElement.scrollLeft=isNaN(i)?0:i}}}scrollTo(t,r){if(typeof t!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scrollTo' on 'Window': The provided value is not of type 'ScrollToOptions'.");this.scroll(t,r)}scrollBy(t,r){if(typeof t!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scrollBy' on 'Window': The provided value is not of type 'ScrollToOptions'.");let o=typeof t=="object"?t:{left:t,top:r};this.scroll({left:this.document.documentElement.scrollLeft+(o.left??0),top:this.document.documentElement.scrollTop+(o.top??0),behavior:o.behavior})}blur(){}focus(){}open(t,r,o){return pg.openPage(u(this,Ct),{url:t,target:r,features:o})}close(){u(this,Ct).page.mainFrame===u(this,Ct)&&u(this,Ct)[ji]&&(this[wt](),u(this,Ct).page.close())}matchMedia(t){return new Ny({window:this,media:t})}getScreenDetails(){return Promise.resolve(new Zy)}setTimeout(t,r=0,...o){if(this.closed)return{};let i=u(this,Ct).page.context.browser.settings;if(i.timer.preventTimerLoops){let y=new Error().stack,p=u(this,Hf),d=u(this,Wf),b=p.indexOf(y);if(b!==-1){if(d[b].timeout++,d[b].timeout>=(i.timer.preventTimerLoops===!0?1:i.timer.preventTimerLoops.timeout??1))return{}}else p.push(y),d.push({timeout:0,requestAnimationFrame:0})}if(!r){let y=u(this,_f);if(!y.timeouts){let d=!i||!i.disableErrorCapturing&&i.errorCapture===ue.tryAndCatch,b=zm.setTimeout(()=>{u(this,Ct)[gt].endTimer(b);let f=y.timeouts;y.timeouts=null;for(let S of f)if(d){let M;try{M=S.callback()}catch(N){this[ce](N)}M instanceof Promise&&M.catch(N=>this[ce](N))}else S.callback()},0);y.timeouts=[],u(this,Ct)[gt].startTimer(b)}let p=new nP(()=>t(...o));return y.timeouts.push(p),p}let n=!i||!i.disableErrorCapturing&&i.errorCapture===ue.tryAndCatch,a=zm.setTimeout(()=>{if(u(this,Ct)[gt].endTimer(a),n){let y;try{y=t(...o)}catch(p){this[ce](p)}y instanceof Promise&&y.catch(p=>this[ce](p))}else t(...o)},i?.timer.maxTimeout!==-1&&r&&r>i?.timer.maxTimeout?i?.timer.maxTimeout:r);return u(this,Ct)[gt].startTimer(a),a}clearTimeout(t){if(t&&t instanceof nP){let r=u(this,_f);if(!r.timeouts)return;let o=r.timeouts.indexOf(t);o!==-1&&r.timeouts.splice(o,1);return}kw&&(!t||t.constructor.name!=="Timeout")||(zm.clearTimeout(t),u(this,Ct)[gt].endTimer(t))}setInterval(t,r=0,...o){if(this.closed)return{};let i=u(this,Ct).page.context.browser.settings,n=!i||!i.disableErrorCapturing&&i.errorCapture===ue.tryAndCatch,a=0,y=zm.setInterval(()=>{if(n){let p;try{p=t(...o)}catch(d){this.clearInterval(y),this[ce](d)}p instanceof Promise&&p.catch(d=>{this.clearInterval(y),this[ce](d)})}else t(...o);i?.timer.maxIntervalIterations!==-1&&(a>=i?.timer.maxIntervalIterations&&this.clearInterval(y),a++)},i?.timer.maxIntervalTime!==-1&&r&&r>i?.timer.maxIntervalTime?i?.timer.maxIntervalTime:r);return u(this,Ct)[gt].startTimer(y),y}clearInterval(t){kw&&(!t||t.constructor.name!=="Timeout")||(zm.clearInterval(t),u(this,Ct)[gt].endTimer(t))}requestAnimationFrame(t){if(this.closed)return{};let r=u(this,Ct).page.context.browser.settings;if(r.timer.preventTimerLoops){let n=new Error().stack,a=u(this,Hf),y=u(this,Wf),p=a.indexOf(n);if(p!==-1){if(y[p].requestAnimationFrame++,y[p].requestAnimationFrame>=(r.timer.preventTimerLoops===!0?1:r.timer.preventTimerLoops.requestAnimationFrame??1))return{}}else a.push(n),y.push({timeout:0,requestAnimationFrame:0})}let o=!r||!r.disableErrorCapturing&&r.errorCapture===ue.tryAndCatch,i=zm.setImmediate(()=>{if(u(this,Ct)[gt].endImmediate(i),o){let n;try{n=t(this.performance.now())}catch(a){this[ce](a)}n instanceof Promise&&n.catch(a=>this[ce](a))}else t(this.performance.now())});return u(this,Ct)[gt].startImmediate(i),i}cancelAnimationFrame(t){kw&&(!t||t.constructor.name!=="Immediate")||(zm.clearImmediate(t),u(this,Ct)[gt].endImmediate(t))}queueMicrotask(t){if(this.closed)return;let r=!1,o=u(this,Ct)[gt].startTask(()=>r=!0),i=u(this,Ct).page.context.browser.settings,n=!i||!i.disableErrorCapturing&&i.errorCapture===ue.tryAndCatch;zm.queueMicrotask(()=>{if(!r)if(u(this,Ct)[gt].endTask(o),n){let a;try{a=t()}catch(y){this[ce](y)}a instanceof Promise&&a.catch(y=>this[ce](y))}else t()})}async fetch(t,r){return this.closed?Promise.reject(new this.DOMException("Failed to execute 'fetch' on 'Window': The window is closed.",v.invalidStateError)):await new zo({browserFrame:u(this,Ct),window:this,url:t,init:r}).send()}btoa(t){return Gu.btoa(t)}atob(t){return Gu.atob(t)}postMessage(t,r="*",o){if(!this.closed){if(r&&r!=="*"&&this.location.origin!==r)throw new this.DOMException(`Failed to execute 'postMessage' on 'Window': The target origin provided ('${r}') does not match the recipient window's origin ('${this.location.origin}').`,v.securityError);try{JSON.stringify(t)}catch{throw new this.DOMException("Failed to execute 'postMessage' on 'Window': The provided message cannot be serialized.",v.invalidStateError)}this.setTimeout(()=>this.dispatchEvent(new op("message",{data:t,origin:u(this,Ct).parentFrame?u(this,Ct).parentFrame.window.location.origin:u(this,Ct).window.location.origin,source:u(this,Ct).parentFrame?u(this,Ct).parentFrame.window:u(this,Ct).window,lastEventId:""})))}}resizeTo(t,r){if(!this.closed){if(!t||!r)throw new this.DOMException(`Failed to execute 'resizeTo' on 'Window': 2 arguments required, but only ${arguments.length} present.`);u(this,Ct)[bl]&&u(this,Ct).page.setViewport({width:t,height:r})}}resizeBy(t,r){if(!this.closed){if(!t||!r)throw new this.DOMException(`Failed to execute 'resizeBy' on 'Window': 2 arguments required, but only ${arguments.length} present.`);if(u(this,Ct)[bl]){let o=u(this,Ct).page.viewport;u(this,Ct).page.setViewport({width:o.width+t,height:o.height+r})}}}[(fV=ka,gV=yi,bV=vo,dV=je,cV=iS,hV=sS,pV=nS,uV=lS,yV=Da,mV=zi,aV=Oo,lV=m,nV=UP,sV=Ta,iV=Nl,oV=kn,rV=gy,eV=Ha,ce)](t){u(this,Ct).page.console.error(t),this.dispatchEvent(new Un("error",{message:t.message,error:t}))}[Ci](t,r){return new Lw.Script(t,r).runInContext(this)}[kc](){Lw.isContext(this)||(Lw.createContext(this),LN.runInContext(this))}[GP](){let t=u(this,Ct);(fH||SH)&&t.page.context.browser.settings.enableJavaScriptEvaluation&&!t.page.context.browser.settings.suppressInsecureJavaScriptEnvironmentWarning&&!t.page.context.browser.settings.suppressCodeGenerationFromStringsWarning&&console.warn(`
221
+ `),i=o[o.length-1].length+1,n=`error on line ${o.length} at column ${i}: ${t||"Unknown error"}`,a=this.rootNode.createElementNS(Yt.html,"parsererror");a.setAttribute("style","display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black"),a.innerHTML=`<h3>This page contains the following errors:</h3><div style="font-family:monospace;font-size:12px">${n}</div><h3>Below is a rendering of the page up to the first error.</h3>`,r.insertBefore(a,r.firstChild)}removeOverflowingTextNodes(){if(this.currentNode&&this.currentNode!==this.rootNode)for(;this.currentNode.lastChild?.[U]===bt.TEXT_NODE;)this.currentNode.removeChild(this.currentNode.lastChild)}getDocumentType(e){if(!e.toUpperCase().startsWith("DOCTYPE"))return null;let t=e.split(wg);if(t.length<=1)return null;let r=t.slice(1).join(" "),o=[],i=new RegExp(cG,"gm"),n=r.toUpperCase().includes("PUBLIC"),a;for(;a=i.exec(r);)o.push(a[1]);let y=n&&o[0]||"",p=n?o[1]||"":o[0]||"";return{name:t[1].toLowerCase(),publicId:y,systemId:p}}};var zh=class{parseFromString(e,t){if(!t)throw new this[m].DOMException('Second parameter "mimeType" is mandatory.');let r=this[m];switch(t){case"text/html":let o=new r.HTMLDocument;return o[mo]=r,new Kr(this[m]).parse(e,o);case"image/svg+xml":case"text/xml":case"application/xml":case"application/xhtml+xml":return new Xh(this[m]).parse(e);default:throw new r.DOMException(`Unknown mime type "${t}".`)}}};var jA;(function(l){l[l.endToEnd=2]="endToEnd",l[l.endToStart=3]="endToStart",l[l.startToEnd=1]="startToEnd",l[l.startToStart=0]="startToStart"})(jA||(jA={}));var Cr=jA;var PL,AL,wL;wL=_,AL=j,PL=T;var ol=class{constructor(){s(this,"END_TO_END",Cr.endToEnd);s(this,"END_TO_START",Cr.endToStart);s(this,"START_TO_END",Cr.startToEnd);s(this,"START_TO_START",Cr.startToStart);s(this,wL);s(this,AL);s(this,PL);let e=this[m];if(!e)throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);this[T]=e.document,this[_]={node:e.document,offset:0},this[j]={node:e.document,offset:0}}get startContainer(){return this[_].node}get endContainer(){return this[j].node}get startOffset(){if(this[_].offset>0){let e=St.getNodeLength(this[_].node);this[_].offset>e&&(this[_].offset=e)}return this[_].offset}get endOffset(){if(this[j].offset>0){let e=St.getNodeLength(this[j].node);this[j].offset>e&&(this[j].offset=e)}return this[j].offset}get collapsed(){return this[_].node===this[j].node&&this.startOffset===this.endOffset}get commonAncestorContainer(){let e=this[_].node;for(;e;){if(St.isInclusiveAncestor(e,this[j].node))return e;e=e[Y]}return null}collapse(e=!1){e?this[j]=Object.assign({},this[_]):this[_]=Object.assign({},this[j])}compareBoundaryPoints(e,t){if(e!==Cr.startToStart&&e!==Cr.startToEnd&&e!==Cr.endToEnd&&e!==Cr.endToStart)throw new this[m].DOMException(`The comparison method provided must be one of '${Cr.startToStart}', '${Cr.startToEnd}', '${Cr.endToEnd}' or '${Cr.endToStart}'.`,v.notSupportedError);if(this[T]!==t[T])throw new this[m].DOMException("The two Ranges are not in the same tree.",v.wrongDocumentError);let r={node:null,offset:0},o={node:null,offset:0};switch(e){case Cr.startToStart:r.node=this[_].node,r.offset=this.startOffset,o.node=t[_].node,o.offset=t.startOffset;break;case Cr.startToEnd:r.node=this[j].node,r.offset=this.endOffset,o.node=t[_].node,o.offset=t.startOffset;break;case Cr.endToEnd:r.node=this[j].node,r.offset=this.endOffset,o.node=t[j].node,o.offset=t.endOffset;break;case Cr.endToStart:r.node=this[_].node,r.offset=this.startOffset,o.node=t[j].node,o.offset=t.endOffset;break}return Se.compareBoundaryPointsPosition(r,o)}comparePoint(e,t){if(e[T]!==this[T])throw new this[m].DOMException("The two Ranges are not in the same tree.",v.wrongDocumentError);Se.validateBoundaryPoint({node:e,offset:t});let r={node:e,offset:t};return Se.compareBoundaryPointsPosition(r,{node:this[_].node,offset:this.startOffset})===-1?-1:Se.compareBoundaryPointsPosition(r,{node:this[j].node,offset:this.endOffset})===1?1:0}cloneContents(){let e=this[m],t=this[T].createDocumentFragment(),r=this.startOffset,o=this.endOffset;if(this.collapsed)return t;if(this[_].node===this[j].node&&(this[_].node[U]===L.textNode||this[_].node[U]===L.processingInstructionNode||this[_].node[U]===L.commentNode)){let p=this[_].node.cloneNode(!1);return p[Xt]=p.substringData(r,o-r),t.appendChild(p),t}let i=this[_].node;for(;!St.isInclusiveAncestor(i,this[j].node);)i=i[Y];let n=null;if(!St.isInclusiveAncestor(this[_].node,this[j].node)){let p=i.firstChild;for(;!n;)Se.isPartiallyContained(p,this)&&(n=p),p=p.nextSibling}let a=null;if(!St.isInclusiveAncestor(this[j].node,this[_].node)){let p=i.lastChild;for(;!a;)Se.isPartiallyContained(p,this)&&(a=p),p=p.previousSibling}let y=[];for(let p of i[q])if(Se.isContained(p,this)){if(p[U]===L.documentTypeNode)throw new e.DOMException("Invalid document type element.",v.hierarchyRequestError);y.push(p)}if(n!==null&&(n[U]===L.textNode||n[U]===L.processingInstructionNode||n[U]===L.commentNode)){let p=this[_].node.cloneNode(!1);p[Xt]=p.substringData(r,St.getNodeLength(this[_].node)-r),t.appendChild(p)}else if(n!==null){let p=n.cloneNode();t.appendChild(p);let d=new e.Range;d[_].node=this[_].node,d[_].offset=r,d[j].node=n,d[j].offset=St.getNodeLength(n);let b=d.cloneContents();p.appendChild(b)}for(let p of y){let d=p.cloneNode(!0);t.appendChild(d)}if(a!==null&&(a[U]===L.textNode||a[U]===L.processingInstructionNode||a[U]===L.commentNode)){let p=this[j].node.cloneNode(!1);p[Xt]=p.substringData(0,o),t.appendChild(p)}else if(a!==null){let p=a.cloneNode(!1);t.appendChild(p);let d=new e.Range;d[_].node=a,d[_].offset=0,d[j].node=this[j].node,d[j].offset=o;let b=d.cloneContents();p.appendChild(b)}return t}cloneRange(){let e=new this[m].Range;return e[_].node=this[_].node,e[_].offset=this[_].offset,e[j].node=this[j].node,e[j].offset=this[j].offset,e}createContextualFragment(e){return new Kr(this[m]).parse(e)}deleteContents(){let e=this.startOffset,t=this.endOffset;if(this.collapsed)return;if(this[_].node===this[j].node&&(this[_].node[U]===L.textNode||this[_].node[U]===L.processingInstructionNode||this[_].node[U]===L.commentNode)){this[_].node.replaceData(e,t-e,"");return}let r=[],o=this[_].node,i=St.nextDescendantNode(this[j].node);for(;o&&o!==i;)Se.isContained(o,this)&&!Se.isContained(o[Y],this)&&r.push(o),o=St.following(o);let n,a;if(St.isInclusiveAncestor(this[_].node,this[j].node))n=this[_].node,a=e;else{let y=this[_].node;for(;y&&!St.isInclusiveAncestor(y[Y],this[j].node);)y=y[Y];n=y[Y],a=y[Y][q].indexOf(y)+1}(this[_].node[U]===L.textNode||this[_].node[U]===L.processingInstructionNode||this[_].node[U]===L.commentNode)&&this[_].node.replaceData(this.startOffset,St.getNodeLength(this[_].node)-this.startOffset,"");for(let y of r)y[Y].removeChild(y);(this[j].node[U]===L.textNode||this[j].node[U]===L.processingInstructionNode||this[j].node[U]===L.commentNode)&&this[j].node.replaceData(0,t,""),this[_].node=n,this[_].offset=a,this[j].node=n,this[j].offset=a}detach(){}extractContents(){let e=this[m],t=this[T].createDocumentFragment(),r=this.startOffset,o=this.endOffset;if(this.collapsed)return t;if(this[_].node===this[j].node&&(this[_].node[U]===L.textNode||this[_].node[U]===L.processingInstructionNode||this[_].node[U]===L.commentNode)){let b=this[_].node.cloneNode(!1);return b[Xt]=b.substringData(r,o-r),t.appendChild(b),this[_].node.replaceData(r,o-r,""),t}let i=this[_].node;for(;!St.isInclusiveAncestor(i,this[j].node);)i=i[Y];let n=null;if(!St.isInclusiveAncestor(this[_].node,this[j].node)){let b=i.firstChild;for(;!n;)Se.isPartiallyContained(b,this)&&(n=b),b=b.nextSibling}let a=null;if(!St.isInclusiveAncestor(this[j].node,this[_].node)){let b=i.lastChild;for(;!a;)Se.isPartiallyContained(b,this)&&(a=b),b=b.previousSibling}let y=[];for(let b of i[q])if(Se.isContained(b,this)){if(b[U]===L.documentTypeNode)throw new this[m].DOMException("Invalid document type element.",v.hierarchyRequestError);y.push(b)}let p,d;if(St.isInclusiveAncestor(this[_].node,this[j].node))p=this[_].node,d=r;else{let b=this[_].node;for(;b&&!St.isInclusiveAncestor(b[Y],this[j].node);)b=b[Y];p=b[Y],d=b[Y][q].indexOf(b)+1}if(n!==null&&(n[U]===L.textNode||n[U]===L.processingInstructionNode||n[U]===L.commentNode)){let b=this[_].node.cloneNode(!1);b[Xt]=b.substringData(r,St.getNodeLength(this[_].node)-r),t.appendChild(b),this[_].node.replaceData(r,St.getNodeLength(this[_].node)-r,"")}else if(n!==null){let b=n.cloneNode(!1);t.appendChild(b);let f=new e.Range;f[_].node=this[_].node,f[_].offset=r,f[j].node=n,f[j].offset=St.getNodeLength(n);let S=f.extractContents();b.appendChild(S)}for(let b of y)t.appendChild(b);if(a!==null&&(a[U]===L.textNode||a[U]===L.processingInstructionNode||a[U]===L.commentNode)){let b=this[j].node.cloneNode(!1);b[Xt]=b.substringData(0,o),t.appendChild(b),this[j].node.replaceData(0,o,"")}else if(a!==null){let b=a.cloneNode(!1);t.appendChild(b);let f=new e.Range;f[_].node=a,f[_].offset=0,f[j].node=this[j].node,f[j].offset=o;let S=f.extractContents();b.appendChild(S)}return this[_].node=p,this[_].offset=d,this[j].node=p,this[j].offset=d,t}getBoundingClientRect(){return new ns}getClientRects(){return new Gy(h)}isPointInRange(e,t=0){if(e[T]!==this[T])return!1;let r={node:e,offset:t};return Se.validateBoundaryPoint(r),!(Se.compareBoundaryPointsPosition(r,{node:this[_].node,offset:this.startOffset})===-1||Se.compareBoundaryPointsPosition(r,{node:this[j].node,offset:this.endOffset})===1)}insertNode(e){if(this[_].node[U]===L.processingInstructionNode||this[_].node[U]===L.commentNode||this[_].node[U]===L.textNode&&!this[_].node[Y]||e===this[_].node)throw new this[m].DOMException("Invalid start node.",v.hierarchyRequestError);let t=this[_].node[U]===L.textNode?this[_].node:this[_].node[q][this.startOffset]||null,r=t?t[Y]:this[_].node;this[_].node[U]===L.textNode&&(t=this[_].node.splitText(this.startOffset)),e===t&&(t=t.nextSibling);let o=e[Y];o&&o.removeChild(e);let i=t?t[Y][q].indexOf(t):St.getNodeLength(r);i+=e[U]===L.documentFragmentNode?St.getNodeLength(e):1,r.insertBefore(e,t),this.collapsed&&(this[j].node=r,this[j].offset=i)}intersectsNode(e){if(e[T]!==this[T])return!1;let t=e[Y];if(!t)return!0;let r=t[q].indexOf(e);return Se.compareBoundaryPointsPosition({node:t,offset:r},{node:this[j].node,offset:this.endOffset})===-1&&Se.compareBoundaryPointsPosition({node:t,offset:r+1},{node:this[_].node,offset:this.startOffset})===1}selectNode(e){if(!e[Y])throw new this[m].DOMException("The given Node has no parent.",v.invalidNodeTypeError);let t=e[Y][q].indexOf(e);this[_].node=e[Y],this[_].offset=t,this[j].node=e[Y],this[j].offset=t+1}selectNodeContents(e){if(e[U]===L.documentTypeNode)throw new this[m].DOMException("DocumentType Node can't be used as boundary point.",v.invalidNodeTypeError);this[_].node=e,this[_].offset=0,this[j].node=e,this[j].offset=St.getNodeLength(e)}setEnd(e,t=0){Se.validateBoundaryPoint({node:e,offset:t});let r={node:e,offset:t};(e[T]!==this[T]||Se.compareBoundaryPointsPosition(r,{node:this[_].node,offset:this.startOffset})===-1)&&(this[_].node=e,this[_].offset=t),this[j].node=e,this[j].offset=t}setStart(e,t=0){Se.validateBoundaryPoint({node:e,offset:t});let r={node:e,offset:t};(e[T]!==this[T]||Se.compareBoundaryPointsPosition(r,{node:this[j].node,offset:this.endOffset})===1)&&(this[j].node=e,this[j].offset=t),this[_].node=e,this[_].offset=t}setEndAfter(e){if(!e[Y])throw new this[m].DOMException("The given Node has no parent.",v.invalidNodeTypeError);this.setEnd(e[Y],e[Y][q].indexOf(e)+1)}setEndBefore(e){if(!e[Y])throw new this[m].DOMException("The given Node has no parent.",v.invalidNodeTypeError);this.setEnd(e[Y],e[Y][q].indexOf(e))}setStartAfter(e){if(!e[Y])throw new this[m].DOMException("The given Node has no parent.",v.invalidNodeTypeError);this.setStart(e[Y],e[Y][q].indexOf(e)+1)}setStartBefore(e){if(!e[Y])throw new this[m].DOMException("The given Node has no parent.",v.invalidNodeTypeError);this.setStart(e[Y],e[Y][q].indexOf(e))}surroundContents(e){let t=this.commonAncestorContainer;if(!t)return;let r=St.nextDescendantNode(t);for(;t&&t!==r;){if(t[U]!==L.textNode&&Se.isPartiallyContained(t,this))throw new this[m].DOMException("The Range has partially contains a non-Text node.",v.invalidStateError);t=St.following(t)}if(e[U]===L.documentNode||e[U]===L.documentTypeNode||e[U]===L.documentFragmentNode)throw new this[m].DOMException("Invalid element type.",v.invalidNodeTypeError);let o=this.extractContents();for(;e.firstChild;)e.removeChild(e.firstChild);this.insertNode(e),e.appendChild(o),this.selectNode(e)}toString(){let e=this.startOffset,t=this.endOffset,r="";if(this[_].node===this[j].node&&this[_].node[U]===L.textNode)return this[_].node.data.slice(e,t);this[_].node[U]===L.textNode&&(r+=this[_].node.data.slice(e));let o=St.nextDescendantNode(this[j].node),i=this[_].node;for(;i&&i!==o;)i[U]===L.textNode&&Se.isContained(i,this)&&(r+=i.data),i=St.following(i);return this[j].node[U]===L.textNode&&(r+=this[j].node.data.slice(0,t)),r}};s(ol,"END_TO_END",Cr.endToEnd),s(ol,"END_TO_START",Cr.endToStart),s(ol,"START_TO_END",Cr.startToEnd),s(ol,"START_TO_START",Cr.startToStart);var EL,xL,Gm=class extends(xL=Tt,EL=Fu,xL){constructor(t){super();s(this,"id","");s(this,"startTime",0);s(this,"endTime",0);s(this,"pauseOnExit",!1);s(this,EL,null);s(this,"onenter",null);s(this,"onexit",null);if(t!==h)throw new TypeError("Illegal constructor");if(!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get track(){return this[Fu]}};var Jh=class extends Gm{constructor(t,r,o){super(h);s(this,"region",null);s(this,"vertical","");s(this,"snapToLines",!0);s(this,"line",0);s(this,"lineAlign","");s(this,"position","auto");s(this,"positionAlign","auto");s(this,"size",100);s(this,"align","");s(this,"text","");let i=this[m],n=0;if(t!==void 0&&n++,r!==void 0&&n++,o!==void 0&&n++,n<3)throw new i.TypeError(`Failed to construct 'VTTCue': 3 arguments required, but only ${n} present.`);if(t=Number(t),r=Number(r),isNaN(t)||isNaN(r))throw new i.TypeError("Failed to construct 'VTTCue': The provided double value is non-finite.");this.startTime=t,this.endTime=r,this.text=String(o)}getCueAsHTML(){let t=this[m],r=t.document.createDocumentFragment();return r.appendChild(t.document.createTextNode(this.text)),r}};var vL,TL,CL,NL,LL,kL,IL,ML,Zh=class extends(ML=Tt,IL=ui,kL=wl,LL=py,NL=_c,CL=Me,TL=uy,vL=RP,ML){constructor(t){super();s(this,IL,Yn.subtitles);s(this,kL,"");s(this,LL,"");s(this,NL,"");s(this,CL,"disabled");s(this,TL,new ta(h));s(this,vL,new ta(h));s(this,"oncuechange",null);if(t!==h)throw new TypeError("Illegal constructor");if(!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[ui]}get label(){return this[wl]}get language(){return this[py]}get id(){return this[_c]}get mode(){return this[Me]}set mode(t){t!=="disabled"&&t!=="showing"||(this[Me]=t)}get cues(){return this[Me]==="disabled"?null:this[uy]}get activeCues(){return this[Me]==="disabled"?null:this[RP]}addCue(t){this[uy].includes(t)||(t[Fu]=this,this[uy].push(t))}removeCue(t){let r=this[uy].indexOf(t);r!==-1&&(t[Fu]=null,this[uy].splice(r,1))}};var RL,tc=class l extends Tt{constructor(t,r){super();s(this,RL,[]);s(this,"onaddtrack",null);s(this,"onchange",null);s(this,"onremovetrack",null);if(t!==h)throw new TypeError("Illegal constructor");this[$]=r;let o=new Te(this,[l,Tt]);return new Proxy(this,{get:(i,n)=>{if(n==="length")return r.length;if(n in i||typeof n=="symbol")return o.bind(n),i[n];let a=Number(n);if(!isNaN(a))return r[a]},set(i,n,a){if(o.bind(n),typeof n=="symbol")return i[n]=a,!0;let y=Number(n);return isNaN(y)&&(i[n]=a),!0},deleteProperty(i,n){if(typeof n=="symbol")return delete i[n],!0;let a=Number(n);return isNaN(a)&&delete i[n],!0},ownKeys(){return Object.keys(r)},has(i,n){if(n in i)return!0;if(typeof n=="symbol")return!1;let a=Number(n);return!isNaN(a)&&a>=0&&a<r.length},defineProperty(i,n,a){return o.preventBinding(n),n in i?(Object.defineProperty(i,n,a),!0):!1},getOwnPropertyDescriptor(i,n){if(n in i||typeof n=="symbol")return;let a=Number(n);if(!isNaN(a)&&r[a])return{value:r[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[$].length}get[(RL=$,Symbol.toStringTag)](){return"TextTrackList"}toLocaleString(){return"[object TextTrackList]"}toString(){return"[object TextTrackList]"}[Symbol.iterator](){return this[$][Symbol.iterator]()}getTrackById(t){for(let r of this[$])if(r.id===t)return r;return null}};var FL,BL,ec=class extends(BL=Tt,FL=FP,BL){constructor(){super(...arguments);s(this,FL,"disconnected");s(this,"onconnecting",null);s(this,"onconnect",null);s(this,"ondisconnect",null)}get state(){return this[FP]}async watchAvailability(){}cancelWatchAvailability(){}prompt(){}};var jL=oy(KL(),1);var XA;(function(l){l[l.empty=0]="empty",l[l.loading=1]="loading",l[l.done=2]="done"})(XA||(XA={}));var aa=XA;var zA;(function(l){l.buffer="buffer",l.binaryString="binaryString",l.dataURL="dataURL",l.text="text"})(zA||(zA={}));var ma=zA;var JA;(function(l){l.abort="abort",l.error="error",l.load="load",l.loadstart="loadstart",l.loadend="loadend",l.progress="progress"})(JA||(JA={}));var su=JA;import{Buffer as CG}from"buffer";var Hm,rc,oc,nu,xg,ic=class extends Tt{constructor(){super();E(this,nu);s(this,"error",null);s(this,"result",null);s(this,"readyState",aa.empty);s(this,"onabort",null);s(this,"onerror",null);s(this,"onload",null);s(this,"onloadstart",null);s(this,"onloadend",null);s(this,"onprogress",null);E(this,Hm,!1);E(this,rc,null);E(this,oc,null);if(!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}readAsArrayBuffer(t){if(!(t instanceof be))throw new this[m].TypeError("Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'.");D(this,nu,xg).call(this,t,ma.buffer)}readAsBinaryString(t){if(!(t instanceof be))throw new this[m].TypeError("Failed to execute 'readAsBinaryString' on 'FileReader': parameter 1 is not of type 'Blob'.");D(this,nu,xg).call(this,t,ma.binaryString)}readAsDataURL(t){if(!(t instanceof be))throw new this[m].TypeError("Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'.");D(this,nu,xg).call(this,t,ma.dataURL)}readAsText(t,r=null){if(!(t instanceof be))throw new this[m].TypeError("Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'.");D(this,nu,xg).call(this,t,ma.text,r||"UTF-8")}abort(){let t=this[m];if(u(this,rc)&&t.clearTimeout(u(this,rc)),u(this,oc)&&t.clearTimeout(u(this,oc)),this.readyState===aa.empty||this.readyState===aa.done){this.result=null;return}this.readyState===aa.loading&&(this.readyState=aa.done,this.result=null),w(this,Hm,!0),this.dispatchEvent(new Qo(su.abort)),this.dispatchEvent(new Qo(su.loadend))}};Hm=new WeakMap,rc=new WeakMap,oc=new WeakMap,nu=new WeakSet,xg=function(t,r,o=null){let i=this[m];if(this.readyState===aa.loading)throw new i.DOMException("The object is in an invalid state.",v.invalidStateError);this.readyState=aa.loading,w(this,rc,i.setTimeout(()=>{if(u(this,Hm)){w(this,Hm,!1);return}this.dispatchEvent(new Qo(su.loadstart));let n=t[Mt];n||(n=CG.alloc(0)),this.dispatchEvent(new Qo(su.loadstart,{lengthComputable:!isNaN(t.size),total:t.size,loaded:n.length})),w(this,oc,i.setTimeout(()=>{if(u(this,Hm)){w(this,Hm,!1);return}switch(r){default:case ma.buffer:{this.result=new Uint8Array(n).buffer;break}case ma.binaryString:{this.result=n.toString("binary");break}case ma.dataURL:{let a=jL.default.parse(t.type)||"application/octet-stream";this.result=`data:${a};base64,${n.toString("base64")}`;break}case ma.text:{this.result=new TextDecoder(o||"UTF-8").decode(n);break}}this.readyState=aa.done,this.dispatchEvent(new Qo(su.load)),this.dispatchEvent(new Qo(su.loadend))}))}))};import NG from"crypto";var LG={aspectRatio:{max:300,min:.006666666666666667},deviceId:"",facingMode:[],frameRate:{max:60,min:0},height:{max:150,min:1},resizeMode:["none","crop-and-scale"],width:{max:300,min:1}},kG={deviceId:"",frameRate:60,resizeMode:"none"},QL,$L,XL,zL,JL,ZL,vg,ZA,Wm=class extends(ZL=Tt,JL=wl,zL=ui,XL=Mu,$L=ws,QL=Ra,ZL){constructor(t){super();E(this,vg);s(this,"contentHint","");s(this,"enabled",!0);s(this,"id",NG.randomUUID());s(this,"muted",!1);s(this,"readyState","live");s(this,"label","");s(this,JL,"");s(this,zL,"video");s(this,XL,{});s(this,$L,JSON.parse(JSON.stringify(LG)));s(this,QL,JSON.parse(JSON.stringify(kG)));s(this,"onended",null);s(this,"onmute",null);s(this,"onunmute",null);if(t!==h)throw new TypeError("Illegal constructor");if(!this[m])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[ui]}async applyConstraints(t){D(this,vg,ZA).call(this,this[Mu],t)}getConstraints(){return this[Mu]}getCapabilities(){return this[ws]}getSettings(){return this[Ra]}clone(){let t=new this.constructor(h);return t[ui]=this[ui],t[Mu]=this[Mu],t[ws]=this[ws],t[Ra]=this[Ra],t.contentHint=this.contentHint,t.enabled=this.enabled,t.label=this.label,t.muted=this.muted,t.readyState=this.readyState,t}stop(){this.readyState="ended"}};vg=new WeakSet,ZA=function(t,r){for(let o in r)r[o]!==null&&typeof r[o]=="object"&&!Array.isArray(r[o])?(typeof t[o]!="object"&&(t[o]={}),D(this,vg,ZA).call(this,t[o],r[o])):t[o]=r[o]};var t0,e0,Tg=class extends(e0=Wm,t0=Hc,e0){constructor(t,r){super(t);s(this,t0);this[Hc]=r}get canvas(){return this[Hc]}requestFrame(){}clone(){let t=super.clone();return t[Hc]=this.canvas,t}};var tw;(function(l){l[l.connecting=0]="connecting",l[l.open=1]="open",l[l.closing=2]="closing",l[l.closed=3]="closed"})(tw||(tw={}));var ii=tw;var X_=oy(X0(),1),z_=oy(uw(),1),J_=oy(cw(),1),nk=oy(eP(),1),Z_=oy(sk(),1);var lk=nk.default;var tH=/^[!#$%&'*+\-.^_`|~\dA-Za-z]+$/,ak,qs,Bg,Dg,Og,pc,lo,mk,ww,yk,uk,pk,Ew,hk,sl=class extends Tt{constructor(t,r){super();E(this,lo);E(this,qs,ii.closed);E(this,Bg,"");E(this,Dg,"blob");E(this,Og,null);E(this,pc);s(this,ak,null);let o=this[m],i;try{i=new URL(t)}catch{throw new o.DOMException(`The URL '${t}' is invalid.`,v.syntaxError)}if(i.protocol!=="ws:"&&i.protocol!=="wss:")throw new o.DOMException(`The URL's protocol must be either 'ws' or 'wss'. '${i.protocol}' is not allowed.`,v.syntaxError);i.hash&&(i.hash="");let n=new Set,a=r!==void 0?Array.isArray(r)?r:[r]:[];for(let y of a){if(!D(this,lo,hk).call(this,y))throw new o.DOMException(`The subprotocol '${y}' is invalid.`,v.syntaxError);if(n.has(y))throw new o.DOMException(`The subprotocol '${y}' is duplicated.`,v.syntaxError);n.add(y)}w(this,pc,i),D(this,lo,mk).call(this,i,a)}get readyState(){return u(this,qs)}get extensions(){return u(this,Bg)}get binaryType(){return u(this,Dg)}set binaryType(t){t!=="blob"&&t!=="arraybuffer"||w(this,Dg,t)}get protocol(){return this[ro]?.protocol||""}get url(){return u(this,pc).href}close(t,r){let o=this[m];if(t!==void 0&&t!==1e3&&!(t>=3e3&&t<=4999))throw new o.DOMException(`The code must be either 1000, or between 3000 and 4999. ${t} is neither.`,v.invalidAccessError);if(r!==void 0&&Buffer.byteLength(r,"utf8")>123)throw new o.DOMException("The message must not be greater than 123 bytes.",v.syntaxError);D(this,lo,ww).call(this,t,r?Buffer.from(r):void 0)}send(t){let r=this[m];if(u(this,qs)===ii.connecting)throw new r.DOMException("Still in CONNECTING state.",v.invalidStateError);if(u(this,qs)!==ii.open)return;if(typeof t=="string"){this[ro]?.send(t,{binary:!1});return}let o;t instanceof ArrayBuffer?o=Buffer.from(new Uint8Array(t)):t instanceof be?o=t[Mt]:t instanceof Buffer?o=t:ArrayBuffer.isView(t)?o=Buffer.from(new Uint8Array(t.buffer,t.byteOffset,t.byteLength)):o=Buffer.from(String(t)),this[ro]?.send(o,{binary:!0})}[(ak=ro,wt)](){super[wt](),D(this,lo,ww).call(this,1001)}};qs=new WeakMap,Bg=new WeakMap,Dg=new WeakMap,Og=new WeakMap,pc=new WeakMap,lo=new WeakSet,mk=function(t,r){let o=this[m],i=new rt(o).getBrowserContext();if(!i)return;let n=new URL(o.location.href),a=i.cookieContainer.getCookies(n,!1);w(this,qs,ii.connecting),this[ro]=new lk(t,r,{headers:{"user-agent":o.navigator.userAgent,cookie:Fi.cookiesToString(a),origin:n.origin},rejectUnauthorized:!i.browser.settings.fetch.disableStrictSSL}),this[ro].once("open",()=>{D(this,lo,yk).call(this)}),this[ro].on("message",D(this,lo,pk).bind(this)),this[ro].once("close",(y,p)=>{D(this,lo,uk).call(this,y,p)}),this[ro].once("upgrade",({headers:y})=>{if(y["set-cookie"]!==void 0){let p=Array.isArray(y["set-cookie"])?y["set-cookie"]:[y["set-cookie"]];for(let d of p){let b=Fi.stringToCookie(n,d);b&&i.cookieContainer.addCookies([b])}}}),this[ro].once("error",y=>{w(this,Og,y)}),o[Ha].push(this)},ww=function(t,r){this.readyState===ii.connecting?this[ro]?this[ro].terminate():w(this,qs,ii.closing):this[ro]&&this.readyState===ii.open&&this[ro].close(t,r),this[ro]=null},yk=function(){this[ro]?.extensions&&w(this,Bg,Object.keys(this[ro].extensions).join(", ")),w(this,qs,ii.open),this.dispatchEvent(new this[m].Event("open"))},uk=function(t,r){let o=this[m],i=o[Ha].indexOf(this);i!==-1&&o[Ha].splice(i,1),w(this,qs,ii.closed),this.dispatchEvent(new this[m].CloseEvent("close",{wasClean:u(this,Og)===null,code:t,reason:r.toString()}))},pk=function(t,r){if(u(this,qs)!==ii.open)return;let o=this[m],i;r?this.binaryType==="arraybuffer"?t instanceof o.ArrayBuffer?i=t:Array.isArray(t)?i=D(this,lo,Ew).call(this,Buffer.concat(t)):i=D(this,lo,Ew).call(this,t):(Array.isArray(t)||(t=[t]),i=new o.Blob(t)):i=String(t),this.dispatchEvent(new o.MessageEvent("message",{data:i,origin:u(this,pc).origin}))},Ew=function(t){let r=this[m],o=new r.ArrayBuffer(t.byteLength);return new Uint8Array(o).set(t),o},hk=function(t){return tH.test(t)},s(sl,"CONNECTING",ii.connecting),s(sl,"OPEN",ii.open),s(sl,"CLOSING",ii.closing),s(sl,"CLOSED",ii.closed);var Vg=class{static extendClasses(e){class t extends Zn{}t.prototype[m]=e,e.Document=t;class r extends Ih{}r.prototype[m]=e,e.HTMLDocument=r;class o extends Mh{}o.prototype[m]=e,e.XMLDocument=o;class i extends Im{}i.prototype[m]=e,e.DocumentFragment=i;class n extends Rh{}n.prototype[m]=e,e.Text=n;class a extends Fh{}a.prototype[m]=e,e.Comment=a;class y extends Bh{}y.prototype[m]=e,e.Image=y;class p extends dg{}p.prototype[m]=e,e.Audio=p;class d extends Gh{}d.prototype[m]=e,e.MutationObserver=d;class b extends Sg{}b.prototype[m]=e,e.MessagePort=b;class f extends Wh{}f.prototype[m]=e,e.CSSStyleSheet=f;class S extends ae{}e.DOMException=S;class M extends Cs{}M.prototype[m]=e,e.Headers=M;class N extends bm{}N.prototype[m]=e,e.Request=N;class K extends Xo{}K.prototype[m]=e,K[m]=e,e.Response=K;class mt extends Tt{}mt.prototype[m]=e,e.EventTarget=mt;class Nt extends Ag{}Nt.prototype[m]=e,e.XMLHttpRequestUpload=Nt;class qt extends sa{}qt.prototype[m]=e,e.XMLHttpRequestEventTarget=qt;class at extends Yh{}at.prototype[m]=e,e.AbortController=at;class xt extends qh{}xt.prototype[m]=e,xt[m]=e,e.AbortSignal=xt;class It extends cm{}It.prototype[m]=e,e.FormData=It;class At extends Kh{}At.prototype[m]=e,e.PermissionStatus=At;class ze extends el{}ze.prototype[m]=e,e.XMLHttpRequest=ze;class qe extends zh{}qe.prototype[m]=e,e.DOMParser=qe;class ao extends ol{}ao.prototype[m]=e,e.Range=ao;class ai extends Jh{}ai.prototype[m]=e,e.VTTCue=ai;class wa extends Zh{}wa.prototype[m]=e,e.TextTrack=wa;class tn extends tc{}tn.prototype[m]=e,e.TextTrackList=tn;class Nc extends Gm{}Nc.prototype[m]=e,e.TextTrackCue=Nc;class qi extends ec{}qi.prototype[m]=e,e.RemotePlayback=qi;class Lc extends ic{}Lc.prototype[m]=e,e.FileReader=Lc;class qf extends Am{}qf.prototype[m]=e,e.MediaStream=qf;class ur extends Wm{}ur.prototype[m]=e,e.MediaStreamTrack=ur;class mi extends Tg{}mi.prototype[m]=e,e.CanvasCaptureMediaStreamTrack=mi;class Ea extends De{}Ea.prototype[m]=e,e.URL=Ea;class Kf extends sl{}Kf.prototype[m]=e,e.WebSocket=Kf}};var ck,dk,bk,gk;gk=R,bk=F,dk=ho,ck=hy;var Ug=class{constructor(e,t,r,o){s(this,gk,0);s(this,bk,0);s(this,dk,0);s(this,ck,1);this[R]=e!=null?Number(e):0,this[F]=t!=null?Number(t):0,this[ho]=r!=null?Number(r):0,this[hy]=o!=null?Number(o):1}get x(){return this[R]}get y(){return this[F]}get z(){return this[ho]}get w(){return this[hy]}toJSON(){return{x:this.x,y:this.y,z:this.z,w:this.w}}static fromPoint(e){return e?new this(e.x??null,e.y??null,e.z??null,e.w??null):new this}};var pu=class extends Ug{set x(e){this[R]=e}get x(){return this[R]}set y(e){this[F]=e}get y(){return this[F]}set z(e){this[ho]=e}get z(){return this[ho]}set w(e){this[hy]=e}get w(){return this[hy]}};var hc={a:1,b:0,c:0,d:1,e:0,f:0,m11:1,m12:0,m13:0,m14:0,m21:0,m22:1,m23:0,m24:0,m31:0,m32:0,m33:1,m34:0,m41:0,m42:0,m43:0,m44:1,is2D:!0,isIdentity:!0},eH=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,rH=/[\s,]+/,fk,Sk,Pk,Ak,wk,Ek,xk,vk,Tk,Ck,Nk,Lk,kk,Ik,Mk,Rk,oP,Fk,iP=class iP{constructor(e){E(this,oP);s(this,Rk,1);s(this,Mk,0);s(this,Ik,0);s(this,kk,0);s(this,Lk,0);s(this,Nk,1);s(this,Ck,0);s(this,Tk,0);s(this,vk,0);s(this,xk,0);s(this,Ek,1);s(this,wk,0);s(this,Ak,0);s(this,Pk,0);s(this,Sk,0);s(this,fk,1);e&&this[Bu](e)}get a(){return this[Ft]}get b(){return this[Ut]}get c(){return this[Bt]}get d(){return this[Gt]}get e(){return this[Dt]}get f(){return this[_t]}get m11(){return this[Ft]}get m12(){return this[Ut]}get m13(){return this[ie]}get m14(){return this[se]}get m21(){return this[Bt]}get m22(){return this[Gt]}get m23(){return this[ne]}get m24(){return this[le]}get m31(){return this[Kt]}get m32(){return this[Jt]}get m33(){return this[Zt]}get m34(){return this[jt]}get m41(){return this[Dt]}get m42(){return this[_t]}get m43(){return this[te]}get m44(){return this[ee]}get isIdentity(){return this[Ft]===1&&this[Ut]===0&&this[ie]===0&&this[se]===0&&this[Bt]===0&&this[Gt]===1&&this[ne]===0&&this[le]===0&&this[Kt]===0&&this[Jt]===0&&this[Zt]===1&&this[jt]===0&&this[Dt]===0&&this[_t]===0&&this[te]===0&&this[ee]===1}get is2D(){return this[Kt]===0&&this[Jt]===0&&this[Zt]===1&&this[jt]===0&&this[te]===0&&this[ee]===1}toFloat32Array(e){return Float32Array.from(this[gd](e))}toFloat64Array(e){return Float64Array.from(this[gd](e))}toString(){let e=this.is2D,t=this[gd](e).join(", ");return`${e?"matrix":"matrix3d"}(${t})`}toJSON(){let{is2D:e,isIdentity:t}=this;return{m11:this[Ft],m12:this[Ut],m13:this[ie],m14:this[se],m21:this[Bt],m22:this[Gt],m23:this[ne],m24:this[le],m31:this[Kt],m32:this[Jt],m33:this[Zt],m34:this[jt],m41:this[Dt],m42:this[_t],m43:this[te],m44:this[ee],a:this[Ft],b:this[Ut],c:this[Bt],d:this[Gt],e:this[Dt],f:this[_t],is2D:e,isIdentity:t}}multiply(e){let t=new this.constructor(this);return t[ci](e),t}translate(e=0,t=0,r=0){let o=new this.constructor(this);return o[hi](e,t,r),o}scale(e,t,r=1,o=0,i=0,n=0){let a=new this.constructor(this);return a[xn](e,t,r,o,i,n),a}scale3d(e=1,t=0,r=0,o=0){let i=new this.constructor(this);return i[fd](e,t,r,o),i}scaleNonUniform(e=1,t=1){let r=new this.constructor(this);return r[Sd](e,t),r}rotateAxisAngle(e=0,t=0,r=0,o=0){let i=new this.constructor(this);return i[vl](e,t,r,o),i}rotate(e=0,t,r){let o=new this.constructor(this);return o[xl](e,t,r),o}rotateFromVector(e=0,t=0){let r=new this.constructor(this);return r[tb](e,t),r}skewX(e){let t=new this.constructor(this);return t[dy](e),t}skewY(e){let t=new this.constructor(this);return t[by](e),t}flipX(){let e=new this.constructor(this);return e[eb](),e}flipY(){let e=new this.constructor(this);return e[rb](),e}inverse(){let e=new this.constructor(this);return e[ob](),e}transformPoint(e){let t=e.x??0,r=e.y??0,o=e.z??0,i=e.w??1,n=this[Ft]*t+this[Bt]*r+this[Kt]*o+this[Dt]*i,a=this[Ut]*t+this[Gt]*r+this[Jt]*o+this[_t]*i,y=this[ie]*t+this[ne]*r+this[Zt]*o+this[te]*i,p=this[se]*t+this[le]*r+this[jt]*o+this[ee]*i;return new pu(n,a,y,p)}[(Rk=Ft,Mk=Ut,Ik=ie,kk=se,Lk=Bt,Nk=Gt,Ck=ne,Tk=le,vk=Kt,xk=Jt,Ek=Zt,wk=jt,Ak=Dt,Pk=_t,Sk=te,fk=ee,Bu)](e){let t=null;if(typeof e=="string"&&e.length&&e!=="none")t=this.constructor[cy](e);else if(Array.isArray(e)||e instanceof Float64Array||e instanceof Float32Array)t=this.constructor[pi](e);else if(typeof e=="object")t=this.constructor.fromMatrix(e);else return;this[Ft]=t[Ft],this[Ut]=t[Ut],this[ie]=t[ie],this[se]=t[se],this[Bt]=t[Bt],this[Gt]=t[Gt],this[ne]=t[ne],this[le]=t[le],this[Kt]=t[Kt],this[Jt]=t[Jt],this[Zt]=t[Zt],this[jt]=t[jt],this[Dt]=t[Dt],this[_t]=t[_t],this[te]=t[te],this[ee]=t[ee]}[ci](e){let t=e;t instanceof iP||(t?.m11===void 0&&t?.a!==void 0?(t=Object.assign({},hc,t),t.m11=t.a,t.m12=t.b,t.m21=t.c,t.m22=t.d,t.m41=t.e,t.m42=t.f):t=Object.assign({},hc,t));let r=this[Ft]*t.m11+this[Bt]*t.m12+this[Kt]*t.m13+this[Dt]*t.m14,o=this[Ft]*t.m21+this[Bt]*t.m22+this[Kt]*t.m23+this[Dt]*t.m24,i=this[Ft]*t.m31+this[Bt]*t.m32+this[Kt]*t.m33+this[Dt]*t.m34,n=this[Ft]*t.m41+this[Bt]*t.m42+this[Kt]*t.m43+this[Dt]*t.m44,a=this[Ut]*t.m11+this[Gt]*t.m12+this[Jt]*t.m13+this[_t]*t.m14,y=this[Ut]*t.m21+this[Gt]*t.m22+this[Jt]*t.m23+this[_t]*t.m24,p=this[Ut]*t.m31+this[Gt]*t.m32+this[Jt]*t.m33+this[_t]*t.m34,d=this[Ut]*t.m41+this[Gt]*t.m42+this[Jt]*t.m43+this[_t]*t.m44,b=this[ie]*t.m11+this[ne]*t.m12+this[Zt]*t.m13+this[te]*t.m14,f=this[ie]*t.m21+this[ne]*t.m22+this[Zt]*t.m23+this[te]*t.m24,S=this[ie]*t.m31+this[ne]*t.m32+this[Zt]*t.m33+this[te]*t.m34,M=this[ie]*t.m41+this[ne]*t.m42+this[Zt]*t.m43+this[te]*t.m44,N=this[se]*t.m11+this[le]*t.m12+this[jt]*t.m13+this[ee]*t.m14,K=this[se]*t.m21+this[le]*t.m22+this[jt]*t.m23+this[ee]*t.m24,mt=this[se]*t.m31+this[le]*t.m32+this[jt]*t.m33+this[ee]*t.m34,Nt=this[se]*t.m41+this[le]*t.m42+this[jt]*t.m43+this[ee]*t.m44;this[Ft]=r,this[Ut]=a,this[ie]=b,this[se]=N,this[Bt]=o,this[Gt]=y,this[ne]=f,this[le]=K,this[Kt]=i,this[Jt]=p,this[Zt]=S,this[jt]=mt,this[Dt]=n,this[_t]=d,this[te]=M,this[ee]=Nt}[hi](e=0,t=0,r=0){let o=this.constructor[pi]([1,0,0,0,0,1,0,0,0,0,1,0,e,t,r,1]);this[ci](o)}[xn](e,t,r=1,o=0,i=0,n=0){e=e===void 0?1:Number(e),t=t===void 0?e:Number(t),(o!==0||i!==0||n!==0)&&this[hi](o,i,n),(e!==1||t!==1||r!==1)&&this[ci](this.constructor[pi]([e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1])),(o!==0||i!==0||n!==0)&&this[hi](-o,-i,-n)}[fd](e=1,t=0,r=0,o=0){(t!==0||r!==0||o!==0)&&this[hi](t,r,o),e!==1&&this[ci](this.constructor[pi]([e,0,0,0,0,e,0,0,0,0,e,0,0,0,0,1])),(t!==0||r!==0||o!==0)&&this[hi](-t,-r,-o)}[Sd](e=1,t=1){e===1&&t===1||this[ci](this.constructor[pi]([e,0,0,0,0,t,0,0,0,0,1,0,0,0,0,1]))}[vl](e=0,t=0,r=0,o=0){if(e=Number(e),t=Number(t),r=Number(r),o=Number(o),isNaN(e)||isNaN(t)||isNaN(r)||isNaN(o))throw new TypeError("Failed to execute 'rotateAxisAngleSelf' on 'DOMMatrix': The arguments must be numbers.");let i=Math.hypot(e,t,r);if(i===0)return;i!==1&&(e/=i,t/=i,r/=i);let n=-(o*Math.PI/360),a=D(this,oP,Fk),y=Math.sin(n)*Math.cos(n),p=Math.sin(n)*Math.sin(n),d=a(1-2*(t*t+r*r)*p),b=a(2*(e*t*p+r*y)),f=a(2*(e*r*p-t*y)),S=a(2*(e*t*p-r*y)),M=a(1-2*(e*e+r*r)*p),N=a(2*(t*r*p+e*y)),K=a(2*(e*r*p+t*y)),mt=a(2*(t*r*p-e*y)),Nt=a(1-2*(e*e+t*t)*p),qt=this.constructor[pi]([d,S,K,0,b,M,mt,0,f,N,Nt,0,0,0,0,1]);this[ci](qt)}[xl](e=0,t,r){if(t===void 0&&r===void 0&&(r=e,e=0,t=0),t===void 0&&(t=0),r===void 0&&(r=0),e=Number(e),t=Number(t),r=Number(r),isNaN(e)||isNaN(t)||isNaN(r))throw new TypeError("Failed to execute 'rotateSelf' on 'DOMMatrix': The arguments must be numbers.");r!==0&&this[vl](0,0,1,r),t!==0&&this[vl](0,1,0,t),e!==0&&this[vl](1,0,0,e)}[tb](e=0,t=0){e===0&&t===0||this[xl](Math.atan2(t,e)*180/Math.PI)}[dy](e){let t=Object.assign({},hc),r=Math.tan(e*Math.PI/180);t.m21=r,t.c=r,this[ci](t)}[by](e){let t=Object.assign({},hc),r=Math.tan(e*Math.PI/180);t.m12=r,t.b=r,this[ci](t)}[eb](){let e=this.constructor[pi]([-1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);this[ci](e)}[rb](){let e=this.constructor[pi]([1,0,0,0,0,-1,0,0,0,0,1,0,0,0,0,1]);this[ci](e)}[ob](){let e=this[Gt]*this[Zt]*this[ee]-this[Gt]*this[jt]*this[te]-this[Jt]*this[ne]*this[ee]+this[Jt]*this[le]*this[te]+this[_t]*this[ne]*this[jt]-this[_t]*this[le]*this[Zt],t=-this[Ut]*this[Zt]*this[ee]+this[Ut]*this[jt]*this[te]+this[Jt]*this[ie]*this[ee]-this[Jt]*this[se]*this[te]-this[_t]*this[ie]*this[jt]+this[_t]*this[se]*this[Zt],r=this[Ut]*this[ne]*this[ee]-this[Ut]*this[le]*this[te]-this[Gt]*this[ie]*this[ee]+this[Gt]*this[se]*this[te]+this[_t]*this[ie]*this[le]-this[_t]*this[se]*this[ne],o=-this[Ut]*this[ne]*this[jt]+this[Ut]*this[le]*this[Zt]+this[Gt]*this[ie]*this[jt]-this[Gt]*this[se]*this[Zt]-this[Jt]*this[ie]*this[le]+this[Jt]*this[se]*this[ne],i=this[Ft]*e+this[Bt]*t+this[Kt]*r+this[Dt]*o;if(i===0){this[Ft]=NaN,this[Ut]=NaN,this[ie]=NaN,this[se]=NaN,this[Bt]=NaN,this[Gt]=NaN,this[ne]=NaN,this[le]=NaN,this[Kt]=NaN,this[Jt]=NaN,this[Zt]=NaN,this[jt]=NaN,this[Dt]=NaN,this[_t]=NaN,this[te]=NaN,this[ee]=NaN;return}let n=-this[Bt]*this[Zt]*this[ee]+this[Bt]*this[jt]*this[te]+this[Kt]*this[ne]*this[ee]-this[Kt]*this[le]*this[te]-this[Dt]*this[ne]*this[jt]+this[Dt]*this[le]*this[Zt],a=this[Ft]*this[Zt]*this[ee]-this[Ft]*this[jt]*this[te]-this[Kt]*this[ie]*this[ee]+this[Kt]*this[se]*this[te]+this[Dt]*this[ie]*this[jt]-this[Dt]*this[se]*this[Zt],y=-this[Ft]*this[ne]*this[ee]+this[Ft]*this[le]*this[te]+this[Bt]*this[ie]*this[ee]-this[Bt]*this[se]*this[te]-this[Dt]*this[ie]*this[le]+this[Dt]*this[se]*this[ne],p=this[Ft]*this[ne]*this[jt]-this[Ft]*this[le]*this[Zt]-this[Bt]*this[ie]*this[jt]+this[Bt]*this[se]*this[Zt]+this[Kt]*this[ie]*this[le]-this[Kt]*this[se]*this[ne],d=this[Bt]*this[Jt]*this[ee]-this[Bt]*this[jt]*this[_t]-this[Kt]*this[Gt]*this[ee]+this[Kt]*this[le]*this[_t]+this[Dt]*this[Gt]*this[jt]-this[Dt]*this[le]*this[Jt],b=-this[Ft]*this[Jt]*this[ee]+this[Ft]*this[jt]*this[_t]+this[Kt]*this[Ut]*this[ee]-this[Kt]*this[se]*this[_t]-this[Dt]*this[Ut]*this[jt]+this[Dt]*this[se]*this[Jt],f=this[Ft]*this[Gt]*this[ee]-this[Ft]*this[le]*this[_t]-this[Bt]*this[Ut]*this[ee]+this[Bt]*this[se]*this[_t]+this[Dt]*this[Ut]*this[le]-this[Dt]*this[se]*this[Gt],S=-this[Ft]*this[Gt]*this[jt]+this[Ft]*this[le]*this[Jt]+this[Bt]*this[Ut]*this[jt]-this[Bt]*this[se]*this[Jt]-this[Kt]*this[Ut]*this[le]+this[Kt]*this[se]*this[Gt],M=-this[Bt]*this[Jt]*this[te]+this[Bt]*this[Zt]*this[_t]+this[Kt]*this[Gt]*this[te]-this[Kt]*this[ne]*this[_t]-this[Dt]*this[Gt]*this[Zt]+this[Dt]*this[ne]*this[Jt],N=this[Ft]*this[Jt]*this[te]-this[Ft]*this[Zt]*this[_t]-this[Kt]*this[Ut]*this[te]+this[Kt]*this[ie]*this[_t]+this[Dt]*this[Ut]*this[Zt]-this[Dt]*this[ie]*this[Jt],K=-this[Ft]*this[Gt]*this[te]+this[Ft]*this[ne]*this[_t]+this[Bt]*this[Ut]*this[te]-this[Bt]*this[ie]*this[_t]-this[Dt]*this[Ut]*this[ne]+this[Dt]*this[ie]*this[Gt],mt=this[Ft]*this[Gt]*this[Zt]-this[Ft]*this[ne]*this[Jt]-this[Bt]*this[Ut]*this[Zt]+this[Bt]*this[ie]*this[Jt]+this[Kt]*this[Ut]*this[ne]-this[Kt]*this[ie]*this[Gt];this[Ft]=e/i||0,this[Ut]=t/i||0,this[ie]=r/i||0,this[se]=o/i||0,this[Bt]=n/i||0,this[Gt]=a/i||0,this[ne]=y/i||0,this[le]=p/i||0,this[Kt]=d/i||0,this[Jt]=b/i||0,this[Zt]=f/i||0,this[jt]=S/i||0,this[Dt]=M/i||0,this[_t]=N/i||0,this[te]=K/i||0,this[ee]=mt/i||0}[gd](e=!1){return e?[this[Ft],this[Ut],this[Bt],this[Gt],this[Dt],this[_t]]:[this[Ft],this[Ut],this[ie],this[se],this[Bt],this[Gt],this[ne],this[le],this[Kt],this[Jt],this[Zt],this[jt],this[Dt],this[_t],this[te],this[ee]]}static fromMatrix(e){return e instanceof iP||(e?.m11===void 0&&e?.a!==void 0?(e=Object.assign({},hc,e),e.m11=e.a,e.m12=e.b,e.m21=e.c,e.m22=e.d,e.m41=e.e,e.m42=e.f):e=Object.assign({},hc,e)),this[pi]([e.m11,e.m12,e.m13,e.m14,e.m21,e.m22,e.m23,e.m24,e.m31,e.m32,e.m33,e.m34,e.m41,e.m42,e.m43,e.m44])}static fromFloat32Array(e){return this[pi](e)}static fromFloat64Array(e){return this[pi](e)}static[pi](e){if(!(e instanceof Float64Array||e instanceof Float32Array||Array.isArray(e))||e.length!==6&&e.length!==16)throw TypeError(`Failed to execute 'fromArray' on '${this.name}': '${String(e)}' is not a compatible array.`);let t=new this;if(e.length===16){let[r,o,i,n,a,y,p,d,b,f,S,M,N,K,mt,Nt]=e;t[Ft]=r,t[Ut]=o,t[ie]=i,t[se]=n,t[Bt]=a,t[Gt]=y,t[ne]=p,t[le]=d,t[Kt]=b,t[Jt]=f,t[Zt]=S,t[jt]=M,t[Dt]=N,t[_t]=K,t[te]=mt,t[ee]=Nt}else if(e.length===6){let[r,o,i,n,a,y]=e;t[Ft]=r,t[Ut]=o,t[Bt]=i,t[Gt]=n,t[Dt]=a,t[_t]=y}return t}static[cy](e){if(typeof e!="string")throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Expected '${String(e)}' to be a string.`);let t=new this,r=new RegExp(eH),o;for(;o=r.exec(e);){let i=o[1],n=o[2].split(rH);for(let b=0,f=n.length;b<f;b++)n[b]=this[DP](n[b]);let[a,y,p,d]=n;switch(i){case"perspective":!isNaN(a)&&a!==0&&y===void 0&&p===void 0&&(t[jt]=-1/a);break;case"translate":!isNaN(a)&&p===void 0&&t[hi](a,y||0,0);break;case"translate3d":!isNaN(a)&&!isNaN(y)&&!isNaN(p)&&t[hi](a,y,p);break;case"translateX":!isNaN(a)&&y===void 0&&p===void 0&&t[hi](a);break;case"translateY":!isNaN(a)&&y===void 0&&p===void 0&&t[hi](0,a);break;case"translateZ":!isNaN(a)&&y===void 0&&p===void 0&&t[hi](0,0,a);break;case"matrix":case"matrix3d":(n.length===6||n.length===16)&&t[Bu](this[pi](n));break;case"rotate":case"rotateZ":!isNaN(a)&&y===void 0&&p===void 0&&t[xl](0,0,a);break;case"rotateX":!isNaN(a)&&y===void 0&&p===void 0&&t[xl](a,0,0);break;case"rotateY":!isNaN(a)&&y===void 0&&p===void 0&&t[xl](0,a,0);case"rotate3d":!isNaN(a)&&!isNaN(y)&&!isNaN(p)&&!isNaN(d)&&t[vl](a,y,p,d);break;case"scale":!isNaN(a)&&a!==1&&p===void 0&&t[xn](a,isNaN(y)?a:y);break;case"scale3d":!isNaN(a)&&!isNaN(y)&&!isNaN(p)&&t[xn](a,y,p);break;case"scaleX":!isNaN(a)&&y===void 0&&p===void 0&&t[xn](a,1,1);break;case"scaleY":!isNaN(a)&&y===void 0&&p===void 0&&t[xn](1,a,1);break;case"scaleZ":!isNaN(a)&&y===void 0&&p===void 0&&t[xn](1,1,a);break;case"skew":isNaN(a)||t[dy](a),isNaN(y)||t[by](y);break;case"skewX":!isNaN(a)&&y===void 0&&t[dy](a);break;case"skewY":!isNaN(a)&&y===void 0&&t[by](a);break;default:throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Unknown transform function '${o[1]}'.`)}}return t}static[DP](e){let t=parseFloat(e);switch(e.replace(t.toString(),"")){case"rem":case"em":case"vw":case"vh":case"%":case"vmin":case"vmax":throw new SyntaxError(`Failed to construct '${this.name}': Lengths must be absolute, not relative`);case"rad":return t*(180/Math.PI);case"turn":return t*360;case"px":return t;case"cm":return t*37.7812;case"mm":return t*3.7781;case"in":return t*96;case"pt":return t*1.3281;case"pc":return t*16;case"Q":return t*.945;default:return t}}};oP=new WeakSet,Fk=function(e,t=1e15){return Math.round(e*t)/t};var hu=iP;var ko=class extends hu{get a(){return this[Ft]}set a(e){this[Ft]=e}get b(){return this[Ut]}set b(e){this[Ut]=e}get c(){return this[Bt]}set c(e){this[Bt]=e}get d(){return this[Gt]}set d(e){this[Gt]=e}get e(){return this[Dt]}set e(e){this[Dt]=e}get f(){return this[_t]}set f(e){this[_t]=e}get m11(){return this[Ft]}set m11(e){this[Ft]=e}get m12(){return this[Ut]}set m12(e){this[Ut]=e}get m13(){return this[ie]}set m13(e){this[ie]=e}get m14(){return this[se]}set m14(e){this[se]=e}get m21(){return this[Bt]}set m21(e){this[Bt]=e}get m22(){return this[Gt]}set m22(e){this[Gt]=e}get m23(){return this[ne]}set m23(e){this[ne]=e}get m24(){return this[le]}set m24(e){this[le]=e}get m31(){return this[Kt]}set m31(e){this[Kt]=e}get m32(){return this[Jt]}set m32(e){this[Jt]=e}get m33(){return this[Zt]}set m33(e){this[Zt]=e}get m34(){return this[jt]}set m34(e){this[jt]=e}get m41(){return this[Dt]}set m41(e){this[Dt]=e}get m42(){return this[_t]}set m42(e){this[_t]=e}get m43(){return this[te]}set m43(e){this[te]=e}get m44(){return this[ee]}set m44(e){this[ee]=e}setMatrixValue(e){return this[Bu](e),this}multiplySelf(e){return this[ci](e),this}translateSelf(e=0,t=0,r=0){return this[hi](e,t,r),this}scaleSelf(e,t,r=1,o=0,i=0,n=0){return this[xn](e,t,r,o,i,n),this}scale3dSelf(e=1,t=0,r=0,o=0){return this[fd](e,t,r,o),this}scaleNonUniformSelf(e=1,t=1){return this[Sd](e,t),this}rotateAxisAngleSelf(e=0,t=0,r=0,o=0){return this[vl](e,t,r,o),this}rotateSelf(e=0,t,r){return this[xl](e,t,r),this}rotateFromVectorSelf(e=0,t=0){return this[tb](e,t),this}skewXSelf(e){return this[dy](e),this}skewYSelf(e){return this[by](e),this}flipXSelf(){return this[eb](),this}flipYSelf(){return this[rb](),this}invertSelf(){return this[ob](),this}};var oH=/[\t\f\n\r ,]+/,Bk,Dk,Ok,Vk,Uk,Ks=class l{constructor(e,t,r){s(this,Uk);s(this,Vk);s(this,Ok);s(this,Dk,!1);s(this,Bk,{items:[],attributeValue:""});if(e!==h)throw new TypeError("Illegal constructor");if(this[m]=t,this[X]=!!r.readOnly,this[C]=r.getAttribute,this[x]=r.setAttribute,e!==h)throw new TypeError("Illegal constructor");let o=new Te(this,[l]);return new Proxy(this,{get:(i,n)=>{if(n==="length"||n==="numberOfItems")return i[Q]().length;if(n in i||typeof n=="symbol")return o.bind(n),i[n];let a=Number(n);if(!isNaN(a))return i[Q]()[a]},set(i,n,a){if(o.bind(n),typeof n=="symbol")return i[n]=a,!0;let y=Number(n);return isNaN(y)&&(i[n]=a),!0},deleteProperty(i,n){if(typeof n=="symbol")return delete i[n],!0;let a=Number(n);return isNaN(a)&&delete i[n],!0},ownKeys(i){return Object.keys(i[Q]())},has(i,n){if(n in i)return!0;if(typeof n=="symbol")return!1;let a=Number(n);return!isNaN(a)&&a>=0&&a<i[Q]().length},defineProperty(i,n,a){return o.preventBinding(n),n in i?(Object.defineProperty(i,n,a),!0):!1},getOwnPropertyDescriptor(i,n){if(n in i||typeof n=="symbol")return;let a=Number(n),y=i[Q]();if(!isNaN(a)&&y[a])return{value:y[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Q]().length}get numberOfItems(){return this[Q]().length}[(Uk=m,Vk=C,Ok=x,Dk=X,Bk=W,Symbol.iterator)](){return this[Q]().values()}clear(){this[W].attributeValue="",this[W].items=[],this[x]("")}initialize(e){if(this[X])throw new this[m].TypeError("Failed to execute 'initialize' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'initialize' on 'SVGStringList': 1 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e){this.clear();return}return this[x](e),e}getItem(e){let t=this[Q]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),t[e]?t[e]:null}insertItemBefore(e,t){if(this[X])throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGStringList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertItemBefore' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e)return e;let r=this[Q](),o=r.indexOf(e);return o!==-1&&r.splice(o,1),t<0?t=0:t>r.length&&(t=r.length),r.splice(t,0,e),this[x](r.join(" ")),e}replaceItem(e,t){if(this[X])throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGStringList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceItem' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e)return this.removeItem(t);let r=this[Q]();t<0?t=0:t>=r.length&&(t=r.length-1);let o=r[t];return r[t]=e,this[x](r.join(" ")),o}removeItem(e){if(this[X])throw new this[m].TypeError("Failed to execute 'removeItem' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'removeItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`);let t=this[Q]();if(e=Number(e),isNaN(e)&&(e=0),e>=t.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${e}) is greater than the maximum bound.`,v.indexSizeError);if(e<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${e}) is negative.`,v.indexSizeError);let r=t[e];return t.splice(e,1),this[x](t.join(" ")),r}appendItem(e){if(this[X])throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'appendItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`);if(e=String(e),!e)return e;let t=this[Q](),r=t.indexOf(e);return r!==-1&&t.splice(r,1),t.push(e),this[x](t.join(" ")),e}[Q](){let e=this[C]()??"",t=this[W];if(t.attributeValue===e)return t.items;let r=[],o=e.trim();if(o)for(let i of o.split(oH))r.includes(i)||r.push(i);return t.attributeValue=e,t.items=r,r}};var iH=/([a-zA-Z0-9]+)\(([^)]+)\)/,sH=/[\s,]+/,Gk,_k,Hk,Wk,Yk,nl=class l{constructor(e,t,r){s(this,Yk);s(this,Wk,null);s(this,Hk,null);s(this,_k,null);s(this,Gk,!1);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,r&&(this[X]=!!r.readOnly,this[C]=r.getAttribute||null,this[x]=r.setAttribute||null)}get a(){return this[He]().a}set a(e){if(this[X])return;let t=this[He]();t.a=e,this[qr](t)}get b(){return this[He]().b}set b(e){if(this[X])return;let t=this[He]();t.b=e,this[qr](t)}get c(){return this[He]().c}set c(e){if(this[X])return;let t=this[He]();t.c=e,this[qr](t)}get d(){return this[He]().d}set d(e){if(this[X])return;let t=this[He]();t.d=e,this[qr](t)}get e(){return this[He]().e}set e(e){if(this[X])return;let t=this[He]();t.e=e,this[qr](t)}get f(){return this[He]().f}set f(e){if(this[X])return;let t=this[He]();t.f=e,this[qr](t)}multiply(e){if(!(e instanceof l))throw new this[m].TypeError("Failed to execute 'multiply' on 'SVGMatrix': parameter 1 is not of type 'SVGMatrix'.");let t=this[He](),r=new l(h,this[m]);return t.multiplySelf(e[He]()),r[qr](t),r}translate(e=0,t=0){let r=this[He](),o=new l(h,this[m]);return r.translateSelf(e,t),o[qr](r),o}scale(e){let t=this[He](),r=new l(h,this[m]);return t.scaleSelf(e),r[qr](t),r}scaleNonUniform(e=1,t=1){let r=this[He](),o=new l(h,this[m]);return r.scaleNonUniformSelf(e,t),o[qr](r),o}rotate(e){let t=this[He](),r=new l(h,this[m]);return t.rotateSelf(e),r[qr](t),r}rotateFromVector(e=0,t=0){let r=this[He](),o=new l(h,this[m]);return r.rotateFromVectorSelf(e,t),o[qr](r),o}skewX(e){let t=this[He](),r=new l(h,this[m]);return t.skewXSelf(e),r[qr](t),r}skewY(e){let t=this[He](),r=new l(h,this[m]);return t.skewYSelf(e),r[qr](t),r}flipX(){let e=this[He](),t=new l(h,this[m]);return e.flipXSelf(),t[qr](e),t}flipY(){let e=this[He](),t=new l(h,this[m]);return e.flipYSelf(),t[qr](e),t}inverse(){let e=this[He](),t=new l(h,this[m]);return e.invertSelf(),t[qr](e),t}[(Yk=m,Wk=C,Hk=x,_k=B,Gk=X,He)](){let e=this[C]?this[C]():this[B];if(!e)return new ko;let t=e.match(iH);if(!t)return new ko;let r=[];for(let o of t[2].trim().split(sH)){let i=Number(o);if(isNaN(i))throw new this[m].TypeError(`Failed to parse transform attribute: Expected number, but got "${o}" in "${e}".`);r.push(i)}switch(t[1]){case"matrix":if(r.length!==6)throw new this[m].TypeError(`Failed to parse transform attribute: Expected 6 parameters in "${e}".`);return ko[cy](e);case"scale":case"translate":if(r.length!==1&&r.length!==2)throw new this[m].TypeError(`Failed to parse transform attribute: Expected 1 or 2 parameters in "${e}".`);return ko[cy](e);case"skewY":case"skewX":if(r.length!==1)throw new this[m].TypeError(`Failed to parse transform attribute: Expected 1 parameter in "${e}".`);return ko[cy](e);case"rotate":let o=new ko;if(r.length!==1&&r.length!==3)throw new this[m].TypeError(`Failed to parse transform attribute: Expected 1 or 3 parameters in "${e}".`);let[i,n,a]=r;(n||a)&&o.translateSelf(n,a);let y=i*Math.PI/180;return o.multiplySelf(new ko([Math.cos(y),Math.sin(y),-Math.sin(y),Math.cos(y),0,0])),(n||a)&&o.translateSelf(-n,-a),o;default:throw new this[m].TypeError(`Failed to parse transform attribute: Unknown transformation "${e}".`)}}[qr](e){this[B]=e.toString().replace(/, /g," "),this[x]&&this[x](this[B])}};var xw;(function(l){l[l.unknown=0]="unknown",l[l.matrix=1]="matrix",l[l.translate=2]="translate",l[l.scale=3]="scale",l[l.rotate=4]="rotate",l[l.skewX=5]="skewX",l[l.skewY=6]="skewY"})(xw||(xw={}));var si=xw;var qk=/([a-zA-Z0-9]+)\(([^)]+)\)/,nH=/[\s,]+/,Kk,jk,Qk,$k,Xk,zk;zk=m,Xk=C,$k=x,Qk=B,jk=X,Kk=Tl;var Nr=class{constructor(e,t,r){s(this,zk);s(this,Xk,null);s(this,$k,null);s(this,Qk,null);s(this,jk,!1);s(this,Kk,null);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,r&&(this[X]=!!r.readOnly,this[C]=r.getAttribute||null,this[x]=r.setAttribute||null)}get type(){let t=(this[C]?this[C]():this[B])?.match(qk);if(!t)return si.unknown;switch(t[1]){case"matrix":return si.matrix;case"translate":return si.translate;case"rotate":return si.rotate;case"scale":return si.scale;case"skewX":return si.skewX;case"skewY":return si.skewY}return 0}get angle(){let t=(this[C]?this[C]():this[B])?.match(qk);if(!t)return 0;let r=parseFloat(t[2].trim().split(nH)[0]);if(isNaN(r))return 0;switch(t[1]){case"rotate":case"skewX":case"skewY":return r}return 0}get matrix(){return this[Tl]||(this[Tl]=new nl(h,this[m],{readOnly:this[X],getAttribute:()=>this[C]?this[C]():this[B],setAttribute:e=>{if(this[B]=e,this[x]){this[x](e);return}}})),this[Tl]}setMatrix(e){if(!(e instanceof nl))throw new TypeError('Failed to set the "matrix" property on "SVGTransform": The provided value is not of type "SVGMatrix".');this[X]||(this[Tl]&&(this[Tl][C]=null,this[Tl][x]=null),e[C]=()=>this[C]?this[C]():this[B],e[x]=t=>{if(this[B]=t,this[x]){this[x](t);return}},this[Tl]=e,e[B]!==this[B]&&(this[B]=e[B],this[x]&&this[x](this[B]||"")))}setTranslate(e,t){if(arguments.length<2)throw new TypeError(`Failed to execute 'setTranslate' on 'SVGTransform': 2 arguments required, but only ${arguments.length} present.`);if(e=Number(e),t=Number(t),isNaN(e)||isNaN(t))throw new TypeError("Failed to execute 'setTranslate' on 'SVGTransform': The provided float value is non-finite.");this[X]||(this[B]=`translate(${e} ${t})`,this[x]&&this[x](this[B]))}setScale(e,t){if(arguments.length<2)throw new TypeError(`Failed to execute 'setScale' on 'SVGTransform': 2 arguments required, but only ${arguments.length} present.`);if(e=Number(e),t=Number(t),isNaN(e)||isNaN(t))throw new TypeError("Failed to execute 'setScale' on 'SVGTransform': The provided float value is non-finite.");this[X]||(this[B]=`scale(${e} ${t})`,this[x]&&this[x](this[B]))}setRotate(e,t,r){if(arguments.length<3)throw new TypeError(`Failed to execute 'setRotate' on 'SVGTransform': 3 arguments required, but only ${arguments.length} present.`);if(e=Number(e),t=Number(t),r=Number(r),isNaN(e)||isNaN(t)||isNaN(r))throw new TypeError("Failed to execute 'setRotate' on 'SVGTransform': The provided float value is non-finite.");this[X]||(this[B]=`rotate(${e} ${t} ${r})`,this[x]&&this[x](this[B]))}setSkewX(e){if(arguments.length<1)throw new TypeError(`Failed to execute 'setSkewX' on 'SVGTransform': 1 arguments required, but only ${arguments.length} present.`);if(e=Number(e),isNaN(e))throw new TypeError("Failed to execute 'setSkewX' on 'SVGTransform': The provided float value is non-finite.");this[X]||(this[B]=`skewX(${e})`,this[x]&&this[x](this[B]))}setSkewY(e){if(arguments.length<1)throw new TypeError(`Failed to execute 'setSkewY' on 'SVGTransform': 1 arguments required, but only ${arguments.length} present.`);if(e=Number(e),isNaN(e))throw new TypeError("Failed to execute 'setSkewY' on 'SVGTransform': The provided float value is non-finite.");this[X]||(this[B]=`skewY(${e})`,this[x]&&this[x](this[B]))}};s(Nr,"SVG_TRANSFORM_UNKNOWN",si.unknown),s(Nr,"SVG_TRANSFORM_MATRIX",si.matrix),s(Nr,"SVG_TRANSFORM_TRANSLATE",si.translate),s(Nr,"SVG_TRANSFORM_SCALE",si.scale),s(Nr,"SVG_TRANSFORM_ROTATE",si.rotate),s(Nr,"SVG_TRANSFORM_SKEWX",si.skewX),s(Nr,"SVG_TRANSFORM_SKEWY",si.skewY);var lH=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,ca="matrix(1 0 0 1 0 0)",Jk,Zk,t1,e1,r1,Km=class l{constructor(e,t,r){s(this,r1);s(this,e1);s(this,t1);s(this,Zk,!1);s(this,Jk,{items:[],attributeValue:""});if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[X]=!!r.readOnly,this[C]=r.getAttribute,this[x]=r.setAttribute;let o=new Te(this,[l]);return new Proxy(this,{get:(i,n)=>{if(n==="length"||n==="numberOfItems")return i[Q]().length;if(n in i||typeof n=="symbol")return o.bind(n),i[n];let a=Number(n);if(!isNaN(a))return i[Q]()[a]},set(i,n,a){if(o.bind(n),typeof n=="symbol")return i[n]=a,!0;let y=Number(n);return isNaN(y)&&(i[n]=a),!0},deleteProperty(i,n){if(typeof n=="symbol")return delete i[n],!0;let a=Number(n);return isNaN(a)&&delete i[n],!0},ownKeys(i){return Object.keys(i[Q]())},has(i,n){if(n in i)return!0;if(typeof n=="symbol")return!1;let a=Number(n);return!isNaN(a)&&a>=0&&a<i[Q]().length},defineProperty(i,n,a){return o.preventBinding(n),n in i?(Object.defineProperty(i,n,a),!0):!1},getOwnPropertyDescriptor(i,n){if(n in i||typeof n=="symbol")return;let a=Number(n),y=i[Q]();if(!isNaN(a)&&y[a])return{value:y[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Q]().length}get numberOfItems(){return this[Q]().length}[(r1=m,e1=C,t1=x,Zk=X,Jk=W,Symbol.iterator)](){return this[Q]().values()}clear(){if(this[X])throw new this[m].TypeError("Failed to execute 'clear' on 'SVGTransformList': The object is read-only.");for(let e of this[W].items)e[C]=null,e[x]=null;this[W].items=[],this[W].attributeValue="",this[x]("")}initialize(e){if(this[X])throw new this[m].TypeError("Failed to execute 'initialize' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'initialize' on 'SVGTransformList': 1 arguments required, but only ${arguments.length} present.`);if(!(e instanceof Nr))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");for(let t of this[W].items)t[C]=null,t[x]=null;return e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(t=>t[B]||ca).join(" "),this[x](this[W].attributeValue)},this[W].items=[e],this[W].attributeValue=e[B],this[x](e[B]||""),e}getItem(e){let t=this[Q]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),t[e]?t[e]:null}insertItemBefore(e,t){if(this[X])throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGTransformList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof Nr))throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let r=this[Q](),o=r.indexOf(e);return o!==-1&&r.splice(o,1),t<0?t=0:t>r.length&&(t=r.length),r.splice(t,0,e),e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(i=>i[B]||ca).join(" "),this[x](this[W].attributeValue)},this[W].attributeValue=r.map(i=>i[B]||ca).join(" "),this[x](this[W].attributeValue),e}replaceItem(e,t){if(this[X])throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceItem' on 'SVGTransformList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof Nr))throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let r=this[Q](),o=r.indexOf(e);if(o===t)return e;o!==-1&&r.splice(o,1),t<0?t=0:t>=r.length&&(t=r.length-1),r[t]&&(r[t][C]=null,r[t][x]=null);let i=r[t];return r[t]=e,e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(n=>n[B]||ca).join(" "),this[x](this[W].attributeValue)},this[W].attributeValue=r.map(n=>n[B]||ca).join(" "),this[x](this[W].attributeValue),i}removeItem(e){if(this[X])throw new this[m].TypeError("Failed to execute 'removeItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'removeItem' on 'SVGTransformList': 1 argument required, but only ${arguments.length} present.`);let t=this[Q]();if(e=Number(e),isNaN(e)&&(e=0),e>=t.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${e}) is greater than the maximum bound.`,v.indexSizeError);if(e<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${e}) is negative.`,v.indexSizeError);let r=t[e];return r&&(r[C]=null,r[x]=null),t.splice(e,1),this[W].attributeValue=t.map(o=>o[B]||ca).join(" "),this[x](this[W].attributeValue),r}appendItem(e){if(this[X])throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'appendItem' on 'SVGTransformList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof Nr))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let t=this[Q](),r=t.indexOf(e);return r!==-1&&t.splice(r,1),t.push(e),e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(o=>o[B]||ca).join(" "),this[x](this[W].attributeValue)},this[W].attributeValue=t.map(o=>o[B]||ca).join(" "),this[x](this[W].attributeValue),e}[Q](){let e=this[C]()??"",t=this[W];if(t.attributeValue===e)return t.items;if(t.items.length)for(let i of t.items)i[C]=null,i[x]=null;let r=[],o=e.trim();if(o){let i=new RegExp(lH),n;for(;n=i.exec(o);){let a=new Nr(h,this[m],{readOnly:this[X],getAttribute:()=>a[B],setAttribute:()=>{this[W].attributeValue=this[Q]().map(y=>y[B]||ca).join(" "),this[x](this[W].attributeValue)}});a[B]=`${n[1]}(${n[2]})`,r.push(a)}}return t.attributeValue=e,t.items=r,r}};var o1,i1,s1,n1,l1;l1=m,n1=C,s1=x,i1=pe,o1=he;var js=class{constructor(e,t,r){s(this,l1);s(this,n1);s(this,s1);s(this,i1,null);s(this,o1,null);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[C]=r.getAttribute,this[x]=r.setAttribute}get animVal(){return this[he]||(this[he]=new Km(h,this[m],{readOnly:!0,getAttribute:this[C],setAttribute:()=>{}})),this[he]}set animVal(e){}get baseVal(){return this[pe]||(this[pe]=new Km(h,this[m],{getAttribute:this[C],setAttribute:this[x]})),this[pe]}set baseVal(e){}};var a1,m1,y1,u1,Le=class extends(u1=ot,y1=un,m1=pn,a1=jc,u1){constructor(){super(...arguments);s(this,y1,null);s(this,m1,null);s(this,a1,null)}get oncopy(){return P.getEventListener(this,"oncopy")}set oncopy(t){this[c].set("oncopy",t)}get oncut(){return P.getEventListener(this,"oncut")}set oncut(t){this[c].set("oncut",t)}get onpaste(){return P.getEventListener(this,"onpaste")}set onpaste(t){this[c].set("onpaste",t)}get requiredExtensions(){return this[un]||(this[un]=new Ks(h,this[m],{getAttribute:()=>this.getAttribute("requiredExtensions"),setAttribute:t=>this.setAttribute("requiredExtensions",t)})),this[un]}get systemLanguage(){return this[pn]||(this[pn]=new Ks(h,this[m],{getAttribute:()=>this.getAttribute("systemLanguage"),setAttribute:t=>this.setAttribute("systemLanguage",t)})),this[pn]}get transform(){return this[jc]||(this[jc]=new js(h,this[m],{getAttribute:()=>this.getAttribute("transform"),setAttribute:t=>this.setAttribute("transform",t)})),this[jc]}getBBox(){return new ns}getCTM(){return new ko}getScreenCTM(){return new ko}};var p1,h1,c1,d1,b1;b1=m,d1=C,c1=x,h1=B,p1=X;var hs=class{constructor(e,t,r){s(this,b1);s(this,d1,null);s(this,c1,null);s(this,h1,null);s(this,p1,!1);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,r&&(this[X]=!!r.readOnly,this[C]=r.getAttribute||null,this[x]=r.setAttribute||null)}get x(){let e=this[C]?this[C]():this[B];if(!e)return 0;let t=e.split(/\s+/),r=Number(t[0]);return isNaN(r)?0:r}set x(e){if(this[X])throw new this[m].TypeError("Failed to set the 'x' property on 'SVGRect': The object is read-only.");this[B]=`${String(typeof e=="number"?e:parseFloat(e))} ${this.y} ${this.width} ${this.height}`,this[x]&&this[x](this[B])}get y(){let e=this[C]?this[C]():this[B];if(!e)return 0;let t=e.split(/\s+/),r=Number(t[1]);return isNaN(r)?0:r}set y(e){if(this[X])throw new this[m].TypeError("Failed to set the 'y' property on 'SVGRect': The object is read-only.");this[B]=`${this.x} ${String(typeof e=="number"?e:parseFloat(e))} ${this.width} ${this.height}`,this[x]&&this[x](this[B])}get width(){let e=this[C]?this[C]():this[B];if(!e)return 0;let t=e.split(/\s+/),r=Number(t[2]);return isNaN(r)?0:r}set width(e){if(this[X])throw new this[m].TypeError("Failed to set the 'width' property on 'SVGRect': The object is read-only.");this[B]=`${this.x} ${this.y} ${String(typeof e=="number"?e:parseFloat(e))} ${this.height}`,this[x]&&this[x](this[B])}get height(){let e=this[C]?this[C]():this[B];if(!e)return 0;let t=e.split(/\s+/),r=Number(t[3]);return isNaN(r)?0:r}set height(e){if(this[X])throw new this[m].TypeError("Failed to set the 'height' property on 'SVGRect': The object is read-only.");this[B]=`${this.x} ${this.y} ${this.width} ${String(typeof e=="number"?e:parseFloat(e))}`,this[x]&&this[x](this[B])}};var g1=/[\t\f\n\r, ]+/,f1,S1,P1,A1,w1;w1=m,A1=C,P1=x,S1=B,f1=X;var Lr=class{constructor(e,t,r){s(this,w1);s(this,A1,null);s(this,P1,null);s(this,S1,null);s(this,f1,!1);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,r&&(this[X]=!!r.readOnly,this[C]=r.getAttribute||null,this[x]=r.setAttribute||null)}get x(){let t=((this[C]?this[C]():this[B])||"").split(g1);return t[0]?parseFloat(t[0]):0}set x(e){if(this[X])throw new this[m].TypeError("Failed to set the 'x' property on 'SVGPoint': The object is read-only.");this[B]=`${e} ${this.y}`,this[x]&&this[x](this[B])}get y(){let t=((this[C]?this[C]():this[B])||"").split(g1);return t[1]?parseFloat(t[1]):0}set y(e){if(this[X])throw new this[m].TypeError("Failed to set the 'y' property on 'SVGPoint': The object is read-only.");this[B]=`${this.x} ${e}`,this[x]&&this[x](this[B])}};var vw;(function(l){l[l.unknown=0]="unknown",l[l.number=1]="number",l[l.percentage=2]="percentage",l[l.ems=3]="ems",l[l.exs=4]="exs",l[l.px=5]="px",l[l.cm=6]="cm",l[l.mm=7]="mm",l[l.in=8]="in",l[l.pt=9]="pt",l[l.pc=10]="pc"})(vw||(vw={}));var Et=vw;var E1=/^(\d+|\d+\.\d+)(px|em|ex|cm|mm|in|pt|pc|%|)$/,x1,v1,T1,C1,N1;N1=m,C1=C,T1=x,v1=B,x1=X;var yr=class{constructor(e,t,r){s(this,N1);s(this,C1,null);s(this,T1,null);s(this,v1,null);s(this,x1,!1);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,r&&(this[X]=!!r.readOnly,this[C]=r.getAttribute||null,this[x]=r.setAttribute||null)}get unitType(){let t=(this[C]?this[C]()||"":this[B]||"").match(E1);if(!t)return Et.unknown;if(isNaN(parseFloat(t[1])))return Et.unknown;switch(t[2]){case"":return Et.number;case"px":return Et.px;case"cm":return Et.cm;case"mm":return Et.mm;case"in":return Et.in;case"pt":return Et.pt;case"pc":return Et.pc;case"em":case"ex":case"%":throw new this[m].TypeError("Failed to execute 'value' on 'SVGLength': Could not resolve relative length.");default:return Et.unknown}}get value(){let t=(this[C]?this[C]()||"":this[B]||"").match(E1);if(!t)return 0;let r=parseFloat(t[1]);if(isNaN(r))return 0;switch(t[2]){case"":return r;case"px":return r;case"cm":return r/2.54*96;case"mm":return r/25.4*96;case"in":return r*96;case"pt":return r*72;case"pc":return r*6;case"em":case"ex":case"%":throw new this[m].TypeError("Failed to execute 'value' on 'SVGLength': Could not resolve relative length.");default:return 0}}set value(e){if(this[X])throw new this[m].TypeError("Failed to set the 'value' property on 'SVGLength': The object is read-only.");if(e=typeof e!="number"?parseFloat(String(e)):e,isNaN(e))throw new this[m].TypeError("Failed to set the 'value' property on 'SVGLength': The provided float value is non-finite.");let t="",r=e;switch(this.unitType){case Et.number:r=e,t="";break;case Et.px:r=e,t="px";break;case Et.cm:r=e/96*2.54,t="cm";break;case Et.mm:r=e/96*25.4,t="mm";break;case Et.in:r=e/96,t="in";break;case Et.pt:r=e/72,t="pt";break;case Et.pc:r=e/6,t="pc";break;case Et.percentage:case Et.ems:case Et.exs:throw new this[m].TypeError("Failed to set the 'value' property on 'SVGLength': Could not resolve relative length.");default:break}this[B]=String(r)+t,this[x]&&this[x](this[B])}get valueAsString(){return this[C]?this[C]()||"0":this[B]||"0"}get valueInSpecifiedUnits(){let e=this.valueAsString;return parseFloat(e)||0}newValueSpecifiedUnits(e,t){if(this[X])throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The object is read-only.");if(typeof e!="number")throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.");if(t=typeof t!="number"?parseFloat(String(t)):t,isNaN(t))throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The provided float value is non-finite.");let r="";switch(e){case Et.number:r="";break;case Et.px:r="px";break;case Et.cm:r="cm";break;case Et.mm:r="mm";break;case Et.in:r="in";break;case Et.pt:r="pt";break;case Et.pc:r="pc";break;case Et.ems:case Et.exs:case Et.percentage:throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Could not resolve relative length.");default:break}this[B]=String(t)+r,this[x]&&this[x](this[B])}convertToSpecifiedUnits(e){if(this[X])throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': The object is read-only.");if(typeof e!="number")throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.");let t=this.value,r="";switch(e){case Et.number:r="";break;case Et.px:r="px";break;case Et.cm:t=t/96*2.54,r="cm";break;case Et.mm:t=t/96*25.4,r="mm";break;case Et.in:t=t/96,r="in";break;case Et.pt:t=t/72,r="pt";break;case Et.pc:t=t/6,r="pc";break;case Et.percentage:case Et.ems:case Et.exs:throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': Could not resolve relative length.");default:break}this[B]=String(t)+r,this[x]&&this[x](this[B])}};s(yr,"SVG_LENGTHTYPE_UNKNOWN",Et.unknown),s(yr,"SVG_LENGTHTYPE_NUMBER",Et.number),s(yr,"SVG_LENGTHTYPE_PERCENTAGE",Et.percentage),s(yr,"SVG_LENGTHTYPE_EMS",Et.ems),s(yr,"SVG_LENGTHTYPE_EXS",Et.exs),s(yr,"SVG_LENGTHTYPE_PX",Et.px),s(yr,"SVG_LENGTHTYPE_CM",Et.cm),s(yr,"SVG_LENGTHTYPE_MM",Et.mm),s(yr,"SVG_LENGTHTYPE_IN",Et.in),s(yr,"SVG_LENGTHTYPE_PT",Et.pt),s(yr,"SVG_LENGTHTYPE_PC",Et.pc);var Tw;(function(l){l[l.unknown=0]="unknown",l[l.unspecified=1]="unspecified",l[l.deg=2]="deg",l[l.rad=3]="rad",l[l.grad=4]="grad"})(Tw||(Tw={}));var Ie=Tw;var L1=/^(\d+|\d+\.\d+)(deg|rad|grad|turn|)$/,k1,I1,M1,R1,F1;F1=m,R1=C,M1=x,I1=B,k1=X;var ni=class{constructor(e,t,r){s(this,F1);s(this,R1,null);s(this,M1,null);s(this,I1,"");s(this,k1,!1);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,r&&(this[X]=!!r.readOnly,this[C]=r.getAttribute||null,this[x]=r.setAttribute||null)}get unitType(){let t=(this[C]?this[C]():this[B])?.match(L1);if(!t)return Ie.unknown;if(isNaN(parseFloat(t[1])))return Ie.unknown;switch(t[2]){case"":return Ie.unspecified;case"deg":return Ie.deg;case"rad":return Ie.rad;case"grad":return Ie.grad;case"turn":return Ie.unknown;default:return Ie.unspecified}}get value(){let t=(this[C]?this[C]():this[B])?.match(L1);if(!t)return 0;let r=parseFloat(t[1]);if(isNaN(r))return 0;switch(t[2]){case"":return r;case"deg":return r;case"rad":return r*(180/Math.PI);case"grad":return r*(180/200);case"turn":return r*360;default:return r}}set value(e){if(this[X])throw new this[m].TypeError("Failed to set the 'value' property on 'SVGAngle': The object is read-only.");if(e=typeof e!="number"?parseFloat(String(e)):e,isNaN(e))throw new this[m].TypeError("Failed to set the 'value' property on 'SVGAngle': The provided float value is non-finite.");let t="",r=e;switch(this.unitType){case Ie.unspecified:r=e,t="";break;case Ie.deg:r=e,t="deg";break;case Ie.rad:r=e/(180/Math.PI),t="rad";break;case Ie.grad:r=e/(180/200),t="grad";break;case Ie.unknown:r=e/360,t="turn";default:break}this[B]=String(r)+t,this[x]&&this[x](this[B])}get valueAsString(){return this[C]?this[C]()||"0":this[B]||"0"}get valueInSpecifiedUnits(){let e=this.valueAsString;return parseFloat(e)||0}newValueSpecifiedUnits(e,t){if(this[X])throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The object is read-only.");if(typeof e!="number")throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.");if(t=typeof t!="number"?parseFloat(t):t,isNaN(t))throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The provided float value is non-finite.");let r="";switch(e){case Ie.unspecified:r="";break;case Ie.deg:r="deg";break;case Ie.rad:r="rad";break;case Ie.grad:r="grad";break;case Ie.unknown:r="turn";break;default:break}this[B]=String(t)+r,this[x]&&this[x](this[B])}convertToSpecifiedUnits(e){if(this[X])throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': The object is read-only.");if(typeof e!="number")throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.");let t=this.value,r="";switch(e){case Ie.unspecified:r="";break;case Ie.deg:r="deg";break;case Ie.rad:r="rad",t=t/(180/Math.PI);break;case Ie.grad:r="grad",t=t/(180/200);break;case Ie.unknown:r="turn",t=t/360;break;default:break}this[B]=String(t)+r,this[x]&&this[x](this[B])}};s(ni,"SVG_ANGLETYPE_UNKNOWN",Ie.unknown),s(ni,"SVG_ANGLETYPE_UNSPECIFIED",Ie.unspecified),s(ni,"SVG_ANGLETYPE_DEG",Ie.deg),s(ni,"SVG_ANGLETYPE_RAD",Ie.rad),s(ni,"SVG_ANGLETYPE_GRAD",Ie.grad);var B1,D1,O1,V1,U1;U1=m,V1=C,O1=x,D1=B,B1=X;var cs=class{constructor(e,t,r){s(this,U1);s(this,V1,null);s(this,O1,null);s(this,D1,null);s(this,B1,!1);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,r&&(this[X]=!!r.readOnly,this[C]=r.getAttribute||null,this[x]=r.setAttribute||null)}get value(){let e=this[C]?this[C]():this[B];return parseFloat(e||"0")}set value(e){if(this[X])throw new TypeError("Failed to set the 'value' property on 'SVGNumber': The object is read-only.");let t=typeof e!="number"?parseFloat(String(e)):e;if(isNaN(t))throw new TypeError("Failed to set the 'value' property on 'SVGNumber': The provided value is not a number.");this[B]=String(e),this[x]&&this[x](this[B]||"")}};var G1,_1,H1,W1,Y1;Y1=m,W1=C,H1=x,_1=pe,G1=he;var da=class{constructor(e,t,r){s(this,Y1);s(this,W1);s(this,H1);s(this,_1,null);s(this,G1,null);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[C]=r.getAttribute,this[x]=r.setAttribute}get animVal(){return this[he]||(this[he]=new hs(h,this[m],{readOnly:!0,getAttribute:this[C]})),this[he]}set animVal(e){}get baseVal(){return this[pe]||(this[pe]=new hs(h,this[m],{getAttribute:this[C],setAttribute:this[x]})),this[pe]}set baseVal(e){}};var Cw;(function(l){l[l.unknown=0]="unknown",l[l.meet=1]="meet",l[l.slice=2]="slice"})(Cw||(Cw={}));var ba=Cw;var Nw;(function(l){l[l.unknown=0]="unknown",l[l.none=1]="none",l[l.xMinYMin=2]="xMinYMin",l[l.xMidYMin=3]="xMidYMin",l[l.xMaxYMin=4]="xMaxYMin",l[l.xMinYMid=5]="xMinYMid",l[l.xMidYMid=6]="xMidYMid",l[l.xMaxYMid=7]="xMaxYMid",l[l.xMinYMax=8]="xMinYMax",l[l.xMidYMax=9]="xMidYMax",l[l.xMaxYMax=10]="xMaxYMax"})(Nw||(Nw={}));var wo=Nw;var Gg=Object.values(wo);Gg.length=Gg.indexOf(0);var sP=Object.values(ba);sP.length=sP.indexOf(0);var q1,K1,j1,Q1,$1;$1=m,Q1=C,j1=x,K1=B,q1=X;var fr=class{constructor(e,t,r){s(this,$1);s(this,Q1,null);s(this,j1,null);s(this,K1,null);s(this,q1,!1);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,r&&(this[X]=!!r.readOnly,this[C]=r.getAttribute||null,this[x]=r.setAttribute||null)}get align(){let e=this[C]?this[C]():this[B];if(!e)return wo.xMidYMid;let t=e.split(/\s+/)[0];return wo[t]===void 0?wo.xMidYMid:wo[t]}set align(e){if(this[X])throw new this[m].TypeError("Failed to set the 'align' property on 'SVGPreserveAspectRatio': The object is read-only.");let t=Number(e);if(isNaN(t)||t<1||t>Gg.length)throw new this[m].TypeError("Failed to set the 'align' property on 'SVGPreserveAspectRatio': The alignment provided is invalid.");this[B]=`${Gg[t]} ${sP[this.meetOrSlice]}`,this[x]&&this[x](this[B])}get meetOrSlice(){let e=this[C]?this[C]():this[B];if(!e)return ba.meet;let t=e.split(/\s+/)[1];return!t||ba[t]===void 0?ba.meet:ba[t]}set meetOrSlice(e){if(this[X])throw new this[m].TypeError("Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The object is read-only.");let t=Number(e);if(isNaN(t)||t<1||t>2)throw new this[m].TypeError("Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The meetOrSlice provided is invalid.");this[B]=`${Gg[this.align]} ${sP[t]}`,this[x]&&this[x](this[B])}};s(fr,"SVG_MEETORSLICE_UNKNOWN",ba.unknown),s(fr,"SVG_MEETORSLICE_MEET",ba.meet),s(fr,"SVG_MEETORSLICE_SLICE",ba.slice),s(fr,"SVG_PRESERVEASPECTRATIO_UNKNOWN",wo.unknown),s(fr,"SVG_PRESERVEASPECTRATIO_NONE",wo.none),s(fr,"SVG_PRESERVEASPECTRATIO_XMINYMIN",wo.xMinYMin),s(fr,"SVG_PRESERVEASPECTRATIO_XMIDYMIN",wo.xMidYMin),s(fr,"SVG_PRESERVEASPECTRATIO_XMAXYMIN",wo.xMaxYMin),s(fr,"SVG_PRESERVEASPECTRATIO_XMINYMID",wo.xMinYMid),s(fr,"SVG_PRESERVEASPECTRATIO_XMIDYMID",wo.xMidYMid),s(fr,"SVG_PRESERVEASPECTRATIO_XMAXYMID",wo.xMaxYMid),s(fr,"SVG_PRESERVEASPECTRATIO_XMINYMAX",wo.xMinYMax),s(fr,"SVG_PRESERVEASPECTRATIO_XMIDYMAX",wo.xMidYMax),s(fr,"SVG_PRESERVEASPECTRATIO_XMAXYMAX",wo.xMaxYMax);var X1,z1,J1,Z1,tI;tI=m,Z1=C,J1=x,z1=pe,X1=he;var Hi=class{constructor(e,t,r){s(this,tI);s(this,Z1);s(this,J1);s(this,z1,null);s(this,X1,null);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[C]=r.getAttribute,this[x]=r.setAttribute}get animVal(){return this[he]||(this[he]=new fr(h,this[m],{readOnly:!0,getAttribute:this[C]})),this[he]}set animVal(e){}get baseVal(){return this[pe]||(this[pe]=new fr(h,this[m],{getAttribute:this[C],setAttribute:this[x]})),this[pe]}set baseVal(e){}};var eI,rI,oI,iI,sI;sI=m,iI=C,oI=x,rI=pe,eI=he;var I=class{constructor(e,t,r){s(this,sI);s(this,iI);s(this,oI);s(this,rI,null);s(this,eI,null);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[C]=r.getAttribute,this[x]=r.setAttribute}get animVal(){return this[he]||(this[he]=new yr(h,this[m],{readOnly:!0,getAttribute:this[C]})),this[he]}set animVal(e){}get baseVal(){return this[pe]||(this[pe]=new yr(h,this[m],{getAttribute:this[C],setAttribute:this[x]})),this[pe]}set baseVal(e){}};var nI,lI,aI,mI,yI,uI,pI,cc=class extends Le{constructor(){super(...arguments);s(this,pI,null);s(this,uI,null);s(this,yI,null);s(this,mI,null);s(this,aI,null);s(this,lI,1);s(this,nI,null)}get onafterprint(){return P.getEventListener(this,"onafterprint")}set onafterprint(t){this[c].set("onafterprint",t)}get onbeforeprint(){return P.getEventListener(this,"onbeforeprint")}set onbeforeprint(t){this[c].set("onbeforeprint",t)}get onbeforeunload(){return P.getEventListener(this,"onbeforeunload")}set onbeforeunload(t){this[c].set("onbeforeunload",t)}get ongamepadconnected(){return P.getEventListener(this,"ongamepadconnected")}set ongamepadconnected(t){this[c].set("ongamepadconnected",t)}get ongamepaddisconnected(){return P.getEventListener(this,"ongamepaddisconnected")}set ongamepaddisconnected(t){this[c].set("ongamepaddisconnected",t)}get onhashchange(){return P.getEventListener(this,"onhashchange")}set onhashchange(t){this[c].set("onhashchange",t)}get onlanguagechange(){return P.getEventListener(this,"onlanguagechange")}set onlanguagechange(t){this[c].set("onlanguagechange",t)}get onmessage(){return P.getEventListener(this,"onmessage")}set onmessage(t){this[c].set("onmessage",t)}get onmessageerror(){return P.getEventListener(this,"onmessageerror")}set onmessageerror(t){this[c].set("onmessageerror",t)}get onoffline(){return P.getEventListener(this,"onoffline")}set onoffline(t){this[c].set("onoffline",t)}get ononline(){return P.getEventListener(this,"ononline")}set ononline(t){this[c].set("ononline",t)}get onpagehide(){return P.getEventListener(this,"onpagehide")}set onpagehide(t){this[c].set("onpagehide",t)}get onpageshow(){return P.getEventListener(this,"onpageshow")}set onpageshow(t){this[c].set("onpageshow",t)}get onpopstate(){return P.getEventListener(this,"onpopstate")}set onpopstate(t){this[c].set("onpopstate",t)}get onrejectionhandled(){return P.getEventListener(this,"onrejectionhandled")}set onrejectionhandled(t){this[c].set("onrejectionhandled",t)}get onstorage(){return P.getEventListener(this,"onstorage")}set onstorage(t){this[c].set("onstorage",t)}get onunhandledrejection(){return P.getEventListener(this,"onunhandledrejection")}set onunhandledrejection(t){this[c].set("onunhandledrejection",t)}get onunload(){return P.getEventListener(this,"onunload")}set onunload(t){this[c].set("onunload",t)}get preserveAspectRatio(){return this[Dr]||(this[Dr]=new Hi(h,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:t=>this.setAttribute("preserveAspectRatio",t)})),this[Dr]}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}get currentScale(){return this[cS]}set currentScale(t){let r=typeof t!="number"?parseFloat(String(t)):t;if(isNaN(r))throw this[m].TypeError("Failed to set the 'currentScale' property on 'SVGSVGElement': The provided float value is non-finite.");r<1||(this[cS]=r)}get currentTranslate(){return new Lr(h,this[m])}get viewBox(){return this[hn]||(this[hn]=new da(h,this[m],{getAttribute:()=>this.getAttribute("viewBox"),setAttribute:t=>this.setAttribute("viewBox",t)})),this[hn]}pauseAnimations(){}unpauseAnimations(){}animationsPaused(){return!1}getCurrentTime(){return 0}setCurrentTime(t){}getIntersectionList(t,r){return new Ii(h,[])}getEnclosureList(t,r){return new Ii(h,[])}checkIntersection(t,r){return!1}checkEnclosure(t,r){return!1}deselectAll(){}createSVGNumber(){return new cs(h,this[m])}createSVGLength(){return new yr(h,this[m])}createSVGAngle(){return new ni(h,this[m])}createSVGPoint(){return new Lr(h,this[m])}createSVGMatrix(){return new nl(h,this[m])}createSVGRect(){return new hs(h,this[m])}createSVGTransform(){return new Nr(h,this[m])}createSVGTransformFromMatrix(t){let r=new Nr(h,this[m]);return r.setMatrix(t),r}getElementsByClassName(t){return me.getElementsByClassName(this,t)}getElementsByTagName(t){return me.getElementsByTagName(this,t)}getElementsByTagNameNS(t,r){return me.getElementsByTagNameNS(this,t,r)}getElementById(t){return me.getElementById(this,t)}[(pI=Dr,uI=R,yI=F,mI=V,aI=O,lI=cS,nI=hn,ct)](t=!1){return super[ct](t)}};var hI,cI,dI,Wi=class extends(dI=ot,cI=un,hI=pn,dI){constructor(){super(...arguments);s(this,cI,null);s(this,hI,null)}get onbegin(){return P.getEventListener(this,"onbegin")}set onbegin(t){this[c].set("onbegin",t)}get onend(){return P.getEventListener(this,"onend")}set onend(t){this[c].set("onend",t)}get onrepeat(){return P.getEventListener(this,"onrepeat")}set onrepeat(t){this[c].set("onrepeat",t)}get requiredExtensions(){return this[un]||(this[un]=new Ks(h,this[m],{getAttribute:()=>this.getAttribute("requiredExtensions"),setAttribute:t=>this.setAttribute("requiredExtensions",t)})),this[un]}get systemLanguage(){return this[pn]||(this[pn]=new Ks(h,this[m],{getAttribute:()=>this.getAttribute("systemLanguage"),setAttribute:t=>this.setAttribute("systemLanguage",t)})),this[pn]}get targetElement(){return null}};var _g=class extends Wi{};var Hg=class extends Wi{};var Wg=class extends Wi{};var bI,gI,fI,SI;SI=m,fI=C,gI=x,bI=Vo;var pt=class{constructor(e,t,r){s(this,SI);s(this,fI);s(this,gI);s(this,bI,0);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[C]=r.getAttribute,this[x]=r.setAttribute,this[Vo]=r.defaultValue||0}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[C]();if(!e)return this[Vo];let t=parseFloat(e);return isNaN(t)?this[Vo]:t}set baseVal(e){let t=typeof e!="number"?parseFloat(e):e;if(isNaN(t))throw new this[m].TypeError("TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedNumber': The provided float value is non-finite.");this[x](String(t))}};var PI,AI,Qr=class extends(AI=Le,PI=Qc,AI){constructor(){super(...arguments);s(this,PI,null)}get pathLength(){return this[Qc]||(this[Qc]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("pathLength"),setAttribute:t=>this.setAttribute("pathLength",t)})),this[Qc]}isPointInFill(t){if(!(t instanceof Lr))throw new TypeError("Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.");return!1}isPointInStroke(t){if(!(t instanceof Lr))throw new TypeError("Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.");return!1}getTotalLength(){return 0}getPointAtLength(t){return new Lr(h,this[m])}};var wI,EI,xI,vI,Yg=class extends(vI=Qr,xI=Uo,EI=Go,wI=fn,vI){constructor(){super(...arguments);s(this,xI,null);s(this,EI,null);s(this,wI,null)}get cx(){return this[Uo]||(this[Uo]=new I(h,this[m],{getAttribute:()=>this.getAttribute("cx"),setAttribute:t=>this.setAttribute("cx",t)})),this[Uo]}get cy(){return this[Go]||(this[Go]=new I(h,this[m],{getAttribute:()=>this.getAttribute("cy"),setAttribute:t=>this.setAttribute("cy",t)})),this[Go]}get r(){return this[fn]||(this[fn]=new I(h,this[m],{getAttribute:()=>this.getAttribute("r"),setAttribute:t=>this.setAttribute("r",t)})),this[fn]}};var TI,CI,NI,LI,kI;kI=m,LI=C,NI=x,CI=wr,TI=Vo;var kt=class{constructor(e,t,r){s(this,kI);s(this,LI);s(this,NI);s(this,CI);s(this,TI);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[C]=r.getAttribute,this[x]=r.setAttribute,this[wr]=r.values,this[Vo]=r.defaultValue}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[C]();if(!e)return this[wr].indexOf(this[Vo])+1;let t=this[wr].indexOf(e);if(t===-1){let r=this[wr].indexOf(null);return r!==-1?r+1:0}return t+1}set baseVal(e){let t=Number(e);if(isNaN(t)&&(t=0),t<1)throw new TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided is ${t}, which is not settable.`);if(t>this[wr].length)throw new TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided (${t}) is larger than the largest allowed value (${this[wr].length}).`);let r=this[C](),o=this[wr][t-1]===null,i=o?"0":this[wr][t-1];(!r||o&&this[wr].includes(r)||!o&&r!==i)&&this[x](i||"")}};var II,MI,qg=class extends(MI=ot,II=rd,MI){constructor(){super(...arguments);s(this,II,null)}get clipPathUnits(){return this[rd]||(this[rd]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("clipPathUnits"),setAttribute:t=>this.setAttribute("clipPathUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[rd]}};var Kg=class extends Le{};var jg=class extends ot{};var RI,FI,BI,DI,OI,Qg=class extends(OI=Qr,DI=Uo,BI=Go,FI=bn,RI=gn,OI){constructor(){super(...arguments);s(this,DI,null);s(this,BI,null);s(this,FI,null);s(this,RI,null)}get cx(){return this[Uo]||(this[Uo]=new I(h,this[m],{getAttribute:()=>this.getAttribute("cx"),setAttribute:t=>this.setAttribute("cx",t)})),this[Uo]}get cy(){return this[Go]||(this[Go]=new I(h,this[m],{getAttribute:()=>this.getAttribute("cy"),setAttribute:t=>this.setAttribute("cy",t)})),this[Go]}get rx(){return this[bn]||(this[bn]=new I(h,this[m],{getAttribute:()=>this.getAttribute("rx"),setAttribute:t=>this.setAttribute("rx",t)})),this[bn]}get ry(){return this[gn]||(this[gn]=new I(h,this[m],{getAttribute:()=>this.getAttribute("ry"),setAttribute:t=>this.setAttribute("ry",t)})),this[gn]}};var VI,UI,GI;GI=m,UI=C,VI=x;var lt=class{constructor(e,t,r){s(this,GI);s(this,UI);s(this,VI);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[C]=r.getAttribute,this[x]=r.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[C]();return e||""}set baseVal(e){this[x](String(e))}};var _I,HI,WI,YI,qI,KI,jI,QI,Sr=class extends(QI=ot,jI=O,KI=ut,qI=_o,YI=Me,WI=R,HI=F,_I=V,QI){constructor(){super(...arguments);s(this,jI,null);s(this,KI,null);s(this,qI,null);s(this,YI,null);s(this,WI,null);s(this,HI,null);s(this,_I,null)}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get in1(){return this[ut]||(this[ut]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ut]}get in2(){return this[_o]||(this[_o]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in2"),setAttribute:t=>this.setAttribute("in2",t)})),this[_o]}get mode(){return this[Me]||(this[Me]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("mode"),setAttribute:t=>this.setAttribute("mode",t),values:["normal","multiply","screen","darken","lighten","overlay","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],defaultValue:"normal"})),this[Me]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};s(Sr,"SVG_FEBLEND_MODE_UNKNOWN",0),s(Sr,"SVG_FEBLEND_MODE_NORMAL",1),s(Sr,"SVG_FEBLEND_MODE_MULTIPLY",2),s(Sr,"SVG_FEBLEND_MODE_SCREEN",3),s(Sr,"SVG_FEBLEND_MODE_DARKEN",4),s(Sr,"SVG_FEBLEND_MODE_LIGHTEN",5),s(Sr,"SVG_FEBLEND_MODE_OVERLAY",6),s(Sr,"SVG_FEBLEND_MODE_COLOR_DODGE",7),s(Sr,"SVG_FEBLEND_MODE_COLOR_BURN",8),s(Sr,"SVG_FEBLEND_MODE_HARD_LIGHT",9),s(Sr,"SVG_FEBLEND_MODE_SOFT_LIGHT",10),s(Sr,"SVG_FEBLEND_MODE_DIFFERENCE",11),s(Sr,"SVG_FEBLEND_MODE_EXCLUSION",12),s(Sr,"SVG_FEBLEND_MODE_HUE",13),s(Sr,"SVG_FEBLEND_MODE_SATURATION",14),s(Sr,"SVG_FEBLEND_MODE_COLOR",15),s(Sr,"SVG_FEBLEND_MODE_LUMINOSITY",16);var aH=/[\t\f\n\r, ]+/,$I,XI,zI,JI,ZI,jm=class l{constructor(e,t,r){s(this,ZI);s(this,JI);s(this,zI);s(this,XI,!1);s(this,$I,{items:[],attributeValue:""});if(e!==h)throw new TypeError("Illegal constructor");if(this[m]=t,this[X]=!!r.readOnly,this[C]=r.getAttribute,this[x]=r.setAttribute,e!==h)throw new TypeError("Illegal constructor");let o=new Te(this,[l]);return new Proxy(this,{get:(i,n)=>{if(n==="length"||n==="numberOfItems")return i[Q]().length;if(n in i||typeof n=="symbol")return o.bind(n),i[n];let a=Number(n);if(!isNaN(a))return i[Q]()[a]},set(i,n,a){if(o.bind(n),typeof n=="symbol")return i[n]=a,!0;let y=Number(n);return isNaN(y)&&(i[n]=a),!0},deleteProperty(i,n){if(typeof n=="symbol")return delete i[n],!0;let a=Number(n);return isNaN(a)&&delete i[n],!0},ownKeys(i){return Object.keys(i[Q]())},has(i,n){if(n in i)return!0;if(typeof n=="symbol")return!1;let a=Number(n);return!isNaN(a)&&a>=0&&a<i[Q]().length},defineProperty(i,n,a){return o.preventBinding(n),n in i?(Object.defineProperty(i,n,a),!0):!1},getOwnPropertyDescriptor(i,n){if(n in i||typeof n=="symbol")return;let a=Number(n),y=i[Q]();if(!isNaN(a)&&y[a])return{value:y[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Q]().length}get numberOfItems(){return this[Q]().length}[(ZI=m,JI=C,zI=x,XI=X,$I=W,Symbol.iterator)](){return this[Q]().values()}clear(){if(this[X])throw new this[m].TypeError("Failed to execute 'clear' on 'SVGNumberList': The object is read-only.");for(let e of this[W].items)e[C]=null,e[x]=null;this[W].items=[],this[W].attributeValue="",this[x]("")}initialize(e){if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'initialize' on 'SVGNumberList': 1 arguments required, but only ${arguments.length} present.`);if(this[X])throw new this[m].TypeError("Failed to execute 'initialize' on 'SVGNumberList': The object is read-only.");for(let t of this[W].items)t[C]=null,t[x]=null;return e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(t=>t[B]||"0").join(" "),this[x](this[W].attributeValue)},this[W].items=[e],this[W].attributeValue=e[B],this[x](e[B]||""),e}getItem(e){let t=this[Q]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),t[e]?t[e]:null}insertItemBefore(e,t){if(this[X])throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGNumberList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertItemBefore' on 'SVGNumberList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof cs))throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let r=this[Q](),o=r.indexOf(e);return o!==-1&&r.splice(o,1),t<0?t=0:t>r.length&&(t=r.length),r.splice(t,0,e),e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(i=>i[B]||"0").join(" "),this[x](this[W].attributeValue)},this[W].attributeValue=r.map(i=>i[B]||"0").join(" "),this[x](this[W].attributeValue),e}replaceItem(e,t){if(this[X])throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceItem' on 'SVGNumberList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof cs))throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let r=this[Q](),o=r.indexOf(e);if(o===t)return e;o!==-1&&r.splice(o,1),t<0?t=0:t>=r.length&&(t=r.length-1),r[t]&&(r[t][C]=null,r[t][x]=null);let i=r[t];return r[t]=e,e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(n=>n[B]||"0").join(" "),this[x](this[W].attributeValue)},this[W].attributeValue=r.map(n=>n[B]||"0").join(" "),this[x](this[W].attributeValue),i}removeItem(e){if(this[X])throw new this[m].TypeError("Failed to execute 'removeItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'removeItem' on 'SVGNumberList': 1 argument required, but only ${arguments.length} present.`);let t=this[Q]();if(e=Number(e),isNaN(e)&&(e=0),e>=t.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${e}) is greater than the maximum bound.`,v.indexSizeError);if(e<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${e}) is negative.`,v.indexSizeError);let r=t[e];return r&&(r[C]=null,r[x]=null),t.splice(e,1),this[x](t.map(o=>o[B]||"0").join(" ")),r}appendItem(e){if(this[X])throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'appendItem' on 'SVGNumberList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof cs))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let t=this[Q](),r=t.indexOf(e);return r!==-1&&t.splice(r,1),t.push(e),e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(o=>o[B]||"0").join(" "),this[x](this[W].attributeValue)},this[W].attributeValue=t.map(o=>o[B]||"0").join(" "),this[x](this[W].attributeValue),e}[Q](){let e=this[C]()??"",t=this[W];if(t.attributeValue===e)return t.items;if(t.items.length)for(let i of t.items)i[C]=null,i[x]=null;let r=[],o=e.trim();if(o){let i=o.split(aH);for(let n=0,a=i.length;n<a;n++){let y=new cs(h,this[m],{readOnly:this[X],getAttribute:()=>y[B],setAttribute:()=>{this[W].attributeValue=this[Q]().map(p=>p[B]||"0").join(" "),this[x](this[W].attributeValue)}});y[B]=String(parseFloat(i[n])),r.push(y)}}return t.attributeValue=e,t.items=r,r}};var tM,eM,rM,oM,iM;iM=m,oM=C,rM=x,eM=pe,tM=he;var li=class{constructor(e,t,r){s(this,iM);s(this,oM);s(this,rM);s(this,eM,null);s(this,tM,null);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[C]=r.getAttribute,this[x]=r.setAttribute}get animVal(){return this[he]||(this[he]=new jm(h,this[m],{readOnly:!0,getAttribute:this[C],setAttribute:()=>{}})),this[he]}set animVal(e){}get baseVal(){return this[pe]||(this[pe]=new jm(h,this[m],{getAttribute:this[C],setAttribute:this[x]})),this[pe]}set baseVal(e){}};var sM,nM,lM,aM,mM,yM,uM,pM,hM,cM,ll=class extends(cM=ot,hM=O,pM=ut,uM=_o,yM=et,mM=zt,aM=wr,lM=R,nM=F,sM=V,cM){constructor(){super(...arguments);s(this,hM,null);s(this,pM,null);s(this,uM,null);s(this,yM,null);s(this,mM,null);s(this,aM,null);s(this,lM,null);s(this,nM,null);s(this,sM,null)}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get in1(){return this[ut]||(this[ut]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ut]}get in2(){return this[_o]||(this[_o]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in2"),setAttribute:t=>this.setAttribute("in2",t)})),this[_o]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get type(){return this[zt]||(this[zt]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:t=>this.setAttribute("type",t),values:["matrix","saturate","huerotate","luminancetoalpha"],defaultValue:"matrix"})),this[zt]}get values(){return this[wr]||(this[wr]=new li(h,this[m],{getAttribute:()=>this.getAttribute("values"),setAttribute:t=>this.setAttribute("values",t)})),this[wr]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};s(ll,"SVG_FEBLEND_TYPE_UNKNOWN",0),s(ll,"SVG_FEBLEND_TYPE_MATRIX",1),s(ll,"SVG_FEBLEND_TYPE_SATURATE",2),s(ll,"SVG_FEBLEND_TYPE_HUEROTATE",3),s(ll,"SVG_FEBLEND_TYPE_LUMINANCETOALPHA",4);var dM,bM,gM,fM,SM,PM,AM,$g=class extends(AM=ot,PM=O,SM=ut,fM=et,gM=R,bM=F,dM=V,AM){constructor(){super(...arguments);s(this,PM,null);s(this,SM,null);s(this,fM,null);s(this,gM,null);s(this,bM,null);s(this,dM,null)}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get in1(){return this[ut]||(this[ut]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ut]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};var wM,EM,xM,vM,TM,CM,NM,LM,kM,ds=class extends(kM=ot,LM=O,NM=ut,CM=et,TM=zt,vM=wr,xM=R,EM=F,wM=V,kM){constructor(){super(...arguments);s(this,LM,null);s(this,NM,null);s(this,CM,null);s(this,TM,null);s(this,vM,null);s(this,xM,null);s(this,EM,null);s(this,wM,null)}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get in1(){return this[ut]||(this[ut]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ut]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get type(){return this[zt]||(this[zt]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:t=>this.setAttribute("type",t),values:["over","in","out","atop","xor","arithmetic"],defaultValue:"over"})),this[zt]}get values(){return this[wr]||(this[wr]=new li(h,this[m],{getAttribute:()=>this.getAttribute("values"),setAttribute:t=>this.setAttribute("values",t)})),this[wr]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};s(ds,"SVG_FECOMPOSITE_OPERATOR_UNKNOWN",0),s(ds,"SVG_FECOMPOSITE_OPERATOR_OVER",1),s(ds,"SVG_FECOMPOSITE_OPERATOR_IN",2),s(ds,"SVG_FECOMPOSITE_OPERATOR_OUT",3),s(ds,"SVG_FECOMPOSITE_OPERATOR_ATOP",4),s(ds,"SVG_FECOMPOSITE_OPERATOR_XOR",5),s(ds,"SVG_FECOMPOSITE_OPERATOR_ARITHMETIC",6);var IM,MM,RM;RM=m,MM=C,IM=x;var cu=class{constructor(e,t,r){s(this,RM);s(this,MM);s(this,IM);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[C]=r.getAttribute,this[x]=r.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){return this[C]()==="true"}set baseVal(e){this[x](String(typeof e!="boolean"?!!e:e))}};var FM,BM,DM;DM=m,BM=C,FM=x;var bs=class{constructor(e,t,r){s(this,DM);s(this,BM);s(this,FM);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[C]=r.getAttribute,this[x]=r.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[C]();if(!e)return 0;let t=parseInt(e);return isNaN(t)?0:t}set baseVal(e){let t=parseInt(String(e));if(isNaN(t))throw new this[m].TypeError("TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedInteger': The provided float value is non-finite.");this[x](String(t))}};var OM,VM,UM,GM,_M,HM,WM,YM,qM,KM,jM,QM,$M,XM,zM,JM,ZM,tR,ga=class extends(tR=ot,ZM=wd,JM=Ed,zM=vn,XM=O,$M=ut,QM=xd,jM=Ho,KM=Wo,qM=vd,YM=Td,WM=Cd,HM=et,_M=Nd,GM=Ld,UM=V,VM=R,OM=F,tR){constructor(){super(...arguments);s(this,ZM,null);s(this,JM,null);s(this,zM,null);s(this,XM,null);s(this,$M,null);s(this,QM,null);s(this,jM,null);s(this,KM,null);s(this,qM,null);s(this,YM,null);s(this,WM,null);s(this,HM,null);s(this,_M,null);s(this,GM,null);s(this,UM,null);s(this,VM,null);s(this,OM,null)}get bias(){return this[wd]||(this[wd]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("bias"),setAttribute:t=>this.setAttribute("bias",t)})),this[wd]}get divisor(){return this[Ed]||(this[Ed]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("divisor"),setAttribute:t=>this.setAttribute("divisor",t)})),this[Ed]}get edgeMode(){return this[vn]||(this[vn]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("edgeMode"),setAttribute:t=>this.setAttribute("edgeMode",t),values:["duplicate","wrap","none"],defaultValue:"duplicate"})),this[vn]}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get in1(){return this[ut]||(this[ut]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ut]}get kernelMatrix(){return this[xd]||(this[xd]=new li(h,this[m],{getAttribute:()=>this.getAttribute("kernelMatrix"),setAttribute:t=>this.setAttribute("kernelMatrix",t)})),this[xd]}get kernelUnitLengthX(){return this[Ho]||(this[Ho]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:t=>this.setAttribute("kernelUnitLengthX",t)})),this[Ho]}get kernelUnitLengthY(){return this[Wo]||(this[Wo]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:t=>this.setAttribute("kernelUnitLengthY",t)})),this[Wo]}get orderX(){return this[vd]||(this[vd]=new bs(h,this[m],{getAttribute:()=>this.getAttribute("orderX"),setAttribute:t=>this.setAttribute("orderX",t)})),this[vd]}get orderY(){return this[Td]||(this[Td]=new bs(h,this[m],{getAttribute:()=>this.getAttribute("orderY"),setAttribute:t=>this.setAttribute("orderY",t)})),this[Td]}get preserveAlpha(){return this[Cd]||(this[Cd]=new cu(h,this[m],{getAttribute:()=>this.getAttribute("preserveAlpha"),setAttribute:t=>this.setAttribute("preserveAlpha",t)})),this[Cd]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get targetX(){return this[Nd]||(this[Nd]=new bs(h,this[m],{getAttribute:()=>this.getAttribute("targetX"),setAttribute:t=>this.setAttribute("targetX",t)})),this[Nd]}get targetY(){return this[Ld]||(this[Ld]=new bs(h,this[m],{getAttribute:()=>this.getAttribute("targetY"),setAttribute:t=>this.setAttribute("targetY",t)})),this[Ld]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};s(ga,"SVG_EDGEMODE_UNKNOWN",0),s(ga,"SVG_EDGEMODE_DUPLICATE",1),s(ga,"SVG_EDGEMODE_WRAP",2),s(ga,"SVG_EDGEMODE_NONE",3);var eR,rR,oR,iR,sR,nR,lR,aR,mR,yR,uR,Xg=class extends(uR=ot,yR=kd,mR=O,aR=ut,lR=Ho,nR=Wo,sR=et,iR=Tn,oR=V,rR=R,eR=F,uR){constructor(){super(...arguments);s(this,yR,null);s(this,mR,null);s(this,aR,null);s(this,lR,null);s(this,nR,null);s(this,sR,null);s(this,iR,null);s(this,oR,null);s(this,rR,null);s(this,eR,null)}get diffuseConstant(){return this[kd]||(this[kd]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("diffuseConstant"),setAttribute:t=>this.setAttribute("diffuseConstant",t)})),this[kd]}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get in1(){return this[ut]||(this[ut]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ut]}get kernelUnitLengthX(){return this[Ho]||(this[Ho]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:t=>this.setAttribute("kernelUnitLengthX",t)})),this[Ho]}get kernelUnitLengthY(){return this[Wo]||(this[Wo]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:t=>this.setAttribute("kernelUnitLengthY",t)})),this[Wo]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get surfaceScale(){return this[Tn]||(this[Tn]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("surfaceScale"),setAttribute:t=>this.setAttribute("surfaceScale",t)})),this[Tn]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};var pR,hR,cR,dR,bR,gR,fR,SR,PR,AR,wR,al=class extends(wR=ot,AR=O,PR=ut,SR=_o,fR=et,gR=Id,bR=V,dR=R,cR=Md,hR=F,pR=Rd,wR){constructor(){super(...arguments);s(this,AR,null);s(this,PR,null);s(this,SR,null);s(this,fR,null);s(this,gR,null);s(this,bR,null);s(this,dR,null);s(this,cR,null);s(this,hR,null);s(this,pR,null)}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get in1(){return this[ut]||(this[ut]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ut]}get in2(){return this[_o]||(this[_o]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in2"),setAttribute:t=>this.setAttribute("in2",t)})),this[_o]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get scale(){return this[Id]||(this[Id]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("scale"),setAttribute:t=>this.setAttribute("scale",t)})),this[Id]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get xChannelSelector(){return this[Md]||(this[Md]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("xChannelSelector"),setAttribute:t=>this.setAttribute("xChannelSelector",t),values:["r","g","b","a"],defaultValue:"r"})),this[Md]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}get yChannelSelector(){return this[Rd]||(this[Rd]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("yChannelSelector"),setAttribute:t=>this.setAttribute("yChannelSelector",t),values:["r","g","b","a"],defaultValue:"r"})),this[Rd]}};s(al,"SVG_CHANNEL_UNKNOWN",0),s(al,"SVG_CHANNEL_R",1),s(al,"SVG_CHANNEL_G",2),s(al,"SVG_CHANNEL_B",3),s(al,"SVG_CHANNEL_A",4);var ER,xR,vR,zg=class extends(vR=ot,xR=Fd,ER=Bd,vR){constructor(){super(...arguments);s(this,xR,null);s(this,ER,null)}get azimuth(){return this[Fd]||(this[Fd]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("azimuth"),setAttribute:t=>this.setAttribute("azimuth",t)})),this[Fd]}get elevation(){return this[Bd]||(this[Bd]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("elevation"),setAttribute:t=>this.setAttribute("elevation",t)})),this[Bd]}};var TR,CR,NR,LR,kR,IR,MR,RR,FR,BR,DR,Jg=class extends(DR=ot,BR=Yo,FR=qo,RR=O,MR=ut,IR=et,kR=Cn,LR=Nn,NR=V,CR=R,TR=F,DR){constructor(){super(...arguments);s(this,BR,null);s(this,FR,null);s(this,RR,null);s(this,MR,null);s(this,IR,null);s(this,kR,null);s(this,LR,null);s(this,NR,null);s(this,CR,null);s(this,TR,null)}get dx(){return this[Yo]||(this[Yo]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("dx"),setAttribute:t=>this.setAttribute("dx",t)})),this[Yo]}get dy(){return this[qo]||(this[qo]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("dy"),setAttribute:t=>this.setAttribute("dy",t)})),this[qo]}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get in1(){return this[ut]||(this[ut]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ut]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get stdDeviationX(){return this[Cn]||(this[Cn]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("stdDeviationX"),setAttribute:t=>this.setAttribute("stdDeviationX",t),defaultValue:2})),this[Cn]}get stdDeviationY(){return this[Nn]||(this[Nn]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("stdDeviationY"),setAttribute:t=>this.setAttribute("stdDeviationY",t),defaultValue:2})),this[Nn]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}setStdDeviation(t,r){this.stdDeviationX.baseVal=t,this.stdDeviationY.baseVal=r}};var OR,VR,UR,GR,_R,HR,Zg=class extends(HR=ot,_R=O,GR=et,UR=V,VR=R,OR=F,HR){constructor(){super(...arguments);s(this,_R,null);s(this,GR,null);s(this,UR,null);s(this,VR,null);s(this,OR,null)}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};var WR,YR,qR,KR,jR,QR,$R,XR,$r=class extends(XR=ot,$R=zt,QR=Dd,jR=Od,KR=Vd,qR=Ud,YR=Gd,WR=En,XR){constructor(){super(...arguments);s(this,$R,null);s(this,QR,null);s(this,jR,null);s(this,KR,null);s(this,qR,null);s(this,YR,null);s(this,WR,null)}get type(){return this[zt]||(this[zt]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:t=>this.setAttribute("type",t),values:["identity","table","discrete","linear","gamma"],defaultValue:"identity"})),this[zt]}get tableValues(){return this[Dd]||(this[Dd]=new li(h,this[m],{getAttribute:()=>this.getAttribute("tableValues"),setAttribute:t=>this.setAttribute("tableValues",t)})),this[Dd]}get slope(){return this[Od]||(this[Od]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("slope"),setAttribute:t=>this.setAttribute("slope",t),defaultValue:1})),this[Od]}get intercept(){return this[Vd]||(this[Vd]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("intercept"),setAttribute:t=>this.setAttribute("intercept",t)})),this[Vd]}get amplitude(){return this[Ud]||(this[Ud]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("amplitude"),setAttribute:t=>this.setAttribute("amplitude",t),defaultValue:1})),this[Ud]}get exponent(){return this[Gd]||(this[Gd]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("exponent"),setAttribute:t=>this.setAttribute("exponent",t),defaultValue:1})),this[Gd]}get offset(){return this[En]||(this[En]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("offset"),setAttribute:t=>this.setAttribute("offset",t)})),this[En]}};s($r,"SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN",0),s($r,"SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY",1),s($r,"SVG_FECOMPONENTTRANSFER_TYPE_TABLE",2),s($r,"SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE",3),s($r,"SVG_FECOMPONENTTRANSFER_TYPE_LINEAR",4),s($r,"SVG_FECOMPONENTTRANSFER_TYPE_GAMMA",5);var tf=class extends $r{};var ef=class extends $r{};var rf=class extends $r{};var of=class extends $r{};var zR,JR,ZR,tF,eF,rF,oF,iF,sF,nF,fa=class extends(nF=ot,sF=vn,iF=O,oF=ut,rF=et,eF=Cn,tF=Nn,ZR=V,JR=R,zR=F,nF){constructor(){super(...arguments);s(this,sF,null);s(this,iF,null);s(this,oF,null);s(this,rF,null);s(this,eF,null);s(this,tF,null);s(this,ZR,null);s(this,JR,null);s(this,zR,null)}get edgeMode(){return this[vn]||(this[vn]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("edgeMode"),setAttribute:t=>this.setAttribute("edgeMode",t),values:["duplicate","wrap","none"],defaultValue:"duplicate"})),this[vn]}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get in1(){return this[ut]||(this[ut]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ut]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get stdDeviationX(){return this[Cn]||(this[Cn]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("stdDeviationX")||"2",setAttribute:t=>this.setAttribute("stdDeviationX",t)})),this[Cn]}get stdDeviationY(){return this[Nn]||(this[Nn]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("stdDeviationY")||"2",setAttribute:t=>this.setAttribute("stdDeviationY",t)})),this[Nn]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}setStdDeviation(t,r){this.stdDeviationX.baseVal=t,this.stdDeviationY.baseVal=r}};s(fa,"SVG_EDGEMODE_UNKNOWN",0),s(fa,"SVG_EDGEMODE_DUPLICATE",1),s(fa,"SVG_EDGEMODE_WRAP",2),s(fa,"SVG_EDGEMODE_NONE",3);var lF,aF,mF,yF,uF,pF,hF,cF,dF,sf=class extends(dF=ot,cF=Dw,hF=O,pF=Rt,uF=Dr,yF=et,mF=V,aF=R,lF=F,dF){constructor(){super(...arguments);s(this,cF,null);s(this,hF,null);s(this,pF,null);s(this,uF,null);s(this,yF,null);s(this,mF,null);s(this,aF,null);s(this,lF,null)}get crossOrigin(){return this.getAttribute("crossorigin")}set crossOrigin(t){this.setAttribute("crossorigin",t)}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get href(){return this[Rt]||(this[Rt]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Rt]}get preserveAspectRatio(){return this[Dr]||(this[Dr]=new Hi(h,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:t=>this.setAttribute("preserveAspectRatio",t)})),this[Dr]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};var bF,gF,fF,SF,PF,AF,nf=class extends(AF=ot,PF=O,SF=et,fF=V,gF=R,bF=F,AF){constructor(){super(...arguments);s(this,PF,null);s(this,SF,null);s(this,fF,null);s(this,gF,null);s(this,bF,null)}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};var wF,EF,lf=class extends(EF=ot,wF=ut,EF){constructor(){super(...arguments);s(this,wF,null)}get in1(){return this[ut]||(this[ut]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ut]}};var xF,vF,TF,CF,NF,LF,kF,IF,MF,RF,Qm=class extends(RF=ot,MF=O,IF=ut,kF=_d,LF=Hd,NF=Wd,CF=et,TF=V,vF=R,xF=F,RF){constructor(){super(...arguments);s(this,MF,null);s(this,IF,null);s(this,kF,null);s(this,LF,null);s(this,NF,null);s(this,CF,null);s(this,TF,null);s(this,vF,null);s(this,xF,null)}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get in1(){return this[ut]||(this[ut]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ut]}get operator(){return this[_d]||(this[_d]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("operator"),setAttribute:t=>this.setAttribute("operator",t),values:["erode","dilate"],defaultValue:"erode"})),this[_d]}get radiusX(){return this[Hd]||(this[Hd]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("radiusX"),setAttribute:t=>this.setAttribute("radiusX",t)})),this[Hd]}get radiusY(){return this[Wd]||(this[Wd]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("radiusY"),setAttribute:t=>this.setAttribute("radiusY",t)})),this[Wd]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};s(Qm,"SVG_MORPHOLOGY_OPERATOR_UNKNOWN",0),s(Qm,"SVG_MORPHOLOGY_OPERATOR_ERODE",1),s(Qm,"SVG_MORPHOLOGY_OPERATOR_DILATE",2);var FF,BF,DF,OF,VF,UF,GF,_F,HF,af=class extends(HF=ot,_F=O,GF=ut,UF=Yo,VF=qo,OF=et,DF=V,BF=R,FF=F,HF){constructor(){super(...arguments);s(this,_F,null);s(this,GF,null);s(this,UF,null);s(this,VF,null);s(this,OF,null);s(this,DF,null);s(this,BF,null);s(this,FF,null)}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get in1(){return this[ut]||(this[ut]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ut]}get dx(){return this[Yo]||(this[Yo]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("dx"),setAttribute:t=>this.setAttribute("dx",t)})),this[Yo]}get dy(){return this[qo]||(this[qo]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("dy"),setAttribute:t=>this.setAttribute("dy",t)})),this[qo]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};var WF,YF,qF,KF,mf=class extends(KF=ot,qF=R,YF=F,WF=ho,KF){constructor(){super(...arguments);s(this,qF,null);s(this,YF,null);s(this,WF,null)}get x(){return this[R]||(this[R]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}get z(){return this[ho]||(this[ho]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("z"),setAttribute:t=>this.setAttribute("z",t)})),this[ho]}};var jF,QF,$F,XF,zF,JF,ZF,tB,eB,rB,oB,iB,yf=class extends(iB=ot,oB=O,rB=ut,eB=Ho,tB=Wo,ZF=et,JF=Yd,zF=Ln,XF=Tn,$F=V,QF=R,jF=F,iB){constructor(){super(...arguments);s(this,oB,null);s(this,rB,null);s(this,eB,null);s(this,tB,null);s(this,ZF,null);s(this,JF,null);s(this,zF,null);s(this,XF,null);s(this,$F,null);s(this,QF,null);s(this,jF,null)}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get in1(){return this[ut]||(this[ut]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ut]}get kernelUnitLengthX(){return this[Ho]||(this[Ho]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:t=>this.setAttribute("kernelUnitLengthX",t)})),this[Ho]}get kernelUnitLengthY(){return this[Wo]||(this[Wo]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:t=>this.setAttribute("kernelUnitLengthY",t)})),this[Wo]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get specularConstant(){return this[Yd]||(this[Yd]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("specularConstant"),setAttribute:t=>this.setAttribute("specularConstant",t),defaultValue:1})),this[Yd]}get specularExponent(){return this[Ln]||(this[Ln]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("specularExponent"),setAttribute:t=>this.setAttribute("specularExponent",t),defaultValue:1})),this[Ln]}get surfaceScale(){return this[Tn]||(this[Tn]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("surfaceScale"),setAttribute:t=>this.setAttribute("surfaceScale",t),defaultValue:1})),this[Tn]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};var sB,nB,lB,aB,mB,yB,uB,pB,hB,uf=class extends(hB=ot,pB=R,uB=F,yB=ho,mB=qd,aB=Kd,lB=jd,nB=Ln,sB=Qd,hB){constructor(){super(...arguments);s(this,pB,null);s(this,uB,null);s(this,yB,null);s(this,mB,null);s(this,aB,null);s(this,lB,null);s(this,nB,null);s(this,sB,null)}get x(){return this[R]||(this[R]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}get z(){return this[ho]||(this[ho]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("z"),setAttribute:t=>this.setAttribute("z",t)})),this[ho]}get pointsAtX(){return this[qd]||(this[qd]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("pointsAtX"),setAttribute:t=>this.setAttribute("pointsAtX",t)})),this[qd]}get pointsAtY(){return this[Kd]||(this[Kd]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("pointsAtY"),setAttribute:t=>this.setAttribute("pointsAtY",t)})),this[Kd]}get pointsAtZ(){return this[jd]||(this[jd]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("pointsAtZ"),setAttribute:t=>this.setAttribute("pointsAtZ",t)})),this[jd]}get specularExponent(){return this[Ln]||(this[Ln]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("specularExponent"),setAttribute:t=>this.setAttribute("specularExponent",t),defaultValue:1})),this[Ln]}get limitingConeAngle(){return this[Qd]||(this[Qd]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("limitingConeAngle"),setAttribute:t=>this.setAttribute("limitingConeAngle",t)})),this[Qd]}};var cB,dB,bB,gB,fB,SB,PB,pf=class extends(PB=ot,SB=O,fB=ut,gB=et,bB=V,dB=R,cB=F,PB){constructor(){super(...arguments);s(this,SB,null);s(this,fB,null);s(this,gB,null);s(this,bB,null);s(this,dB,null);s(this,cB,null)}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get in1(){return this[ut]||(this[ut]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[ut]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};var AB,wB,EB,xB,vB,TB,CB,NB,LB,kB,IB,MB,Qs=class extends(MB=ot,IB=$d,kB=Xd,LB=O,NB=zd,CB=et,TB=Jd,vB=Zd,xB=zt,EB=V,wB=R,AB=F,MB){constructor(){super(...arguments);s(this,IB,null);s(this,kB,null);s(this,LB,null);s(this,NB,null);s(this,CB,null);s(this,TB,null);s(this,vB,null);s(this,xB,null);s(this,EB,null);s(this,wB,null);s(this,AB,null)}get baseFrequencyX(){return this[$d]||(this[$d]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("baseFrequencyX"),setAttribute:t=>this.setAttribute("baseFrequencyX",t)})),this[$d]}get baseFrequencyY(){return this[Xd]||(this[Xd]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("baseFrequencyY"),setAttribute:t=>this.setAttribute("baseFrequencyY",t)})),this[Xd]}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get numOctaves(){return this[zd]||(this[zd]=new bs(h,this[m],{getAttribute:()=>this.getAttribute("numOctaves"),setAttribute:t=>this.setAttribute("numOctaves",t)})),this[zd]}get result(){return this[et]||(this[et]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[et]}get seed(){return this[Jd]||(this[Jd]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("seed"),setAttribute:t=>this.setAttribute("seed",t)})),this[Jd]}get stitchTiles(){return this[Zd]||(this[Zd]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("stitchTiles"),setAttribute:t=>this.setAttribute("stitchTiles",t),values:["stitch","noStitch"],defaultValue:"stitch"})),this[Zd]}get type(){return this[zt]||(this[zt]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:t=>this.setAttribute("type",t),values:["fractalNoise","turbulence"],defaultValue:"turbulence"})),this[zt]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};s(Qs,"SVG_TURBULENCE_TYPE_UNKNOWN",0),s(Qs,"SVG_TURBULENCE_TYPE_FRACTALNOISE",1),s(Qs,"SVG_TURBULENCE_TYPE_TURBULENCE",2),s(Qs,"SVG_STITCHTYPE_UNKNOWN",0),s(Qs,"SVG_STITCHTYPE_STITCH",1),s(Qs,"SVG_STITCHTYPE_NOSTITCH",2);var RB,FB,BB,DB,OB,VB,UB,GB,hf=class extends(GB=ot,UB=Rt,VB=sd,OB=nd,DB=R,BB=F,FB=V,RB=O,GB){constructor(){super(...arguments);s(this,UB,null);s(this,VB,null);s(this,OB,null);s(this,DB,null);s(this,BB,null);s(this,FB,null);s(this,RB,null)}get href(){return this[Rt]||(this[Rt]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Rt]}get filterUnits(){return this[sd]||(this[sd]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("filterUnits"),setAttribute:t=>this.setAttribute("filterUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[sd]}get primitiveUnits(){return this[nd]||(this[nd]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("primitiveUnits"),setAttribute:t=>this.setAttribute("primitiveUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[nd]}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};var _B,HB,WB,YB,qB,cf=class extends(qB=Le,YB=R,WB=F,HB=V,_B=O,qB){constructor(){super(...arguments);s(this,YB,null);s(this,WB,null);s(this,HB,null);s(this,_B,null)}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};var df=class extends Le{};var KB,jB,QB,$B,XB,zB,JB,bf=class extends(JB=Le,zB=Rt,XB=Dr,$B=R,QB=F,jB=V,KB=O,JB){constructor(){super(...arguments);s(this,zB,null);s(this,XB,null);s(this,$B,null);s(this,QB,null);s(this,jB,null);s(this,KB,null)}get crossOrigin(){return this.getAttribute("crossorigin")}set crossOrigin(t){this.setAttribute("crossorigin",t)}get href(){return this[Rt]||(this[Rt]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Rt]}get decoding(){let t=this.getAttribute("decoding");switch(t){case"sync":case"async":case"auto":return t;default:return"auto"}}set decoding(t){this.setAttribute("decoding",t)}get preserveAspectRatio(){return this[Dr]||(this[Dr]=new Hi(h,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:t=>this.setAttribute("preserveAspectRatio",t)})),this[Dr]}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}decode(){return Promise.resolve()}};var ZB,tD,eD,rD,oD,gf=class extends(oD=Qr,rD=Sn,eD=Pn,tD=An,ZB=wn,oD){constructor(){super(...arguments);s(this,rD,null);s(this,eD,null);s(this,tD,null);s(this,ZB,null)}get x1(){return this[Sn]||(this[Sn]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x1"),setAttribute:t=>this.setAttribute("x1",t)})),this[Sn]}get y1(){return this[Pn]||(this[Pn]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y1"),setAttribute:t=>this.setAttribute("y1",t)})),this[Pn]}get x2(){return this[An]||(this[An]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x2"),setAttribute:t=>this.setAttribute("x2",t)})),this[An]}get y2(){return this[wn]||(this[wn]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y2"),setAttribute:t=>this.setAttribute("y2",t)})),this[wn]}};var iD,sD,nD,lD,aD,Yi=class extends(aD=Le,lD=Rt,nD=ld,sD=ad,iD=md,aD){constructor(){super(...arguments);s(this,lD,null);s(this,nD,null);s(this,sD,null);s(this,iD,null)}get href(){return this[Rt]||(this[Rt]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Rt]}get gradientUnits(){return this[ld]||(this[ld]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("gradientUnits"),setAttribute:t=>this.setAttribute("gradientUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"objectBoundingBox"})),this[ld]}get gradientTransform(){return this[ad]||(this[ad]=new js(h,this[m],{getAttribute:()=>this.getAttribute("gradientTransform"),setAttribute:t=>this.setAttribute("gradientTransform",t)})),this[ad]}get spreadMethod(){return this[md]||(this[md]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("spreadMethod"),setAttribute:t=>this.setAttribute("spreadMethod",t),values:["pad","reflect","repeat"],defaultValue:"pad"})),this[md]}};s(Yi,"SVG_SPREADMETHOD_UNKNOWN",0),s(Yi,"SVG_SPREADMETHOD_PAD",1),s(Yi,"SVG_SPREADMETHOD_REFLECT",2),s(Yi,"SVG_SPREADMETHOD_REPEAT",3);var mD,yD,uD,pD,hD,ff=class extends(hD=Yi,pD=Sn,uD=Pn,yD=An,mD=wn,hD){constructor(){super(...arguments);s(this,pD,null);s(this,uD,null);s(this,yD,null);s(this,mD,null)}get x1(){return this[Sn]||(this[Sn]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x1"),setAttribute:t=>this.setAttribute("x1",t)})),this[Sn]}get y1(){return this[Pn]||(this[Pn]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y1"),setAttribute:t=>this.setAttribute("y1",t)})),this[Pn]}get x2(){return this[An]||(this[An]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x2"),setAttribute:t=>this.setAttribute("x2",t)})),this[An]}get y2(){return this[wn]||(this[wn]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y2"),setAttribute:t=>this.setAttribute("y2",t)})),this[wn]}};var cD,dD,bD,gD,fD;fD=m,gD=C,bD=x,dD=pe,cD=he;var du=class{constructor(e,t,r){s(this,fD);s(this,gD);s(this,bD);s(this,dD,null);s(this,cD,null);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[C]=r.getAttribute,this[x]=r.setAttribute}get animVal(){return this[he]||(this[he]=new ni(h,this[m],{readOnly:!0,getAttribute:this[C]})),this[he]}set animVal(e){}get baseVal(){return this[pe]||(this[pe]=new ni(h,this[m],{getAttribute:this[C],setAttribute:this[x]})),this[pe]}set baseVal(e){}};var SD,PD,AD,wD,ED,xD,vD,TD,CD,ND,$s=class extends(ND=ot,CD=$c,TD=Xc,vD=zc,xD=Jc,ED=Zc,wD=td,AD=ed,PD=hn,SD=Dr,ND){constructor(){super(...arguments);s(this,"SVG_MARKER_ORIENT_UNKNOWN",0);s(this,"SVG_MARKER_ORIENT_AUTO",1);s(this,"SVG_MARKER_ORIENT_ANGLE",2);s(this,CD,null);s(this,TD,null);s(this,vD,null);s(this,xD,null);s(this,ED,null);s(this,wD,null);s(this,AD,null);s(this,PD,null);s(this,SD,null)}get markerUnits(){return this[$c]||(this[$c]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("markerUnits"),setAttribute:t=>this.setAttribute("markerUnits",t),values:["userSpaceOnUse","strokeWidth"],defaultValue:"strokeWidth"})),this[$c]}get markerWidth(){return this[Xc]||(this[Xc]=new I(h,this[m],{getAttribute:()=>this.getAttribute("markerWidth"),setAttribute:t=>this.setAttribute("markerWidth",t)})),this[Xc]}get markerHeight(){return this[zc]||(this[zc]=new I(h,this[m],{getAttribute:()=>this.getAttribute("markerHeight"),setAttribute:t=>this.setAttribute("markerHeight",t)})),this[zc]}get orientType(){return this[Jc]||(this[Jc]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("orient"),setAttribute:t=>this.setAttribute("orient",t),values:["auto",null],defaultValue:"auto"})),this[Jc]}get orientAngle(){return this[Zc]||(this[Zc]=new du(h,this[m],{getAttribute:()=>this.getAttribute("orient"),setAttribute:t=>this.setAttribute("orient",t)})),this[Zc]}get refX(){return this[td]||(this[td]=new I(h,this[m],{getAttribute:()=>this.getAttribute("refX"),setAttribute:t=>this.setAttribute("refX",t)})),this[td]}get refY(){return this[ed]||(this[ed]=new I(h,this[m],{getAttribute:()=>this.getAttribute("refY"),setAttribute:t=>this.setAttribute("refY",t)})),this[ed]}get viewBox(){return this[hn]||(this[hn]=new da(h,this[m],{getAttribute:()=>this.getAttribute("viewBox"),setAttribute:t=>this.setAttribute("viewBox",t)})),this[hn]}get preserveAspectRatio(){return this[Dr]||(this[Dr]=new Hi(h,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:t=>this.setAttribute("preserveAspectRatio",t)})),this[Dr]}setOrientToAuto(){this.setAttribute("orient","auto")}setOrientToAngle(t){this.setAttribute("orient",t.valueAsString)}};s($s,"SVG_MARKER_ORIENT_UNKNOWN",0),s($s,"SVG_MARKER_ORIENT_AUTO",1),s($s,"SVG_MARKER_ORIENT_ANGLE",2),s($s,"SVG_MARKERUNITS_UNKNOWN",0),s($s,"SVG_MARKERUNITS_USERSPACEONUSE",1),s($s,"SVG_MARKERUNITS_STROKEWIDTH",2);var LD,kD,ID,MD,RD,FD,BD,Sf=class extends(BD=ot,FD=od,RD=id,MD=R,ID=F,kD=V,LD=O,BD){constructor(){super(...arguments);s(this,FD,null);s(this,RD,null);s(this,MD,null);s(this,ID,null);s(this,kD,null);s(this,LD,null)}get maskUnits(){return this[od]||(this[od]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("maskUnits"),setAttribute:t=>this.setAttribute("maskUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[od]}get maskContentUnits(){return this[id]||(this[id]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("maskContentUnits"),setAttribute:t=>this.setAttribute("maskContentUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[id]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};var Pf=class extends ot{};var DD,OD,Af=class extends(OD=ot,DD=Rt,OD){constructor(){super(...arguments);s(this,DD,null)}get href(){return this[Rt]||(this[Rt]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Rt]}};var wf=class extends Qr{};var VD,UD,GD,_D,HD,WD,YD,qD,KD,Ef=class extends(KD=ot,qD=Rt,YD=yd,WD=ud,HD=pd,_D=R,GD=F,UD=V,VD=O,KD){constructor(){super(...arguments);s(this,qD,null);s(this,YD,null);s(this,WD,null);s(this,HD,null);s(this,_D,null);s(this,GD,null);s(this,UD,null);s(this,VD,null)}get href(){return this[Rt]||(this[Rt]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Rt]}get patternUnits(){return this[yd]||(this[yd]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("patternUnits"),setAttribute:t=>this.setAttribute("patternUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"objectBoundingBox"})),this[yd]}get patternContentUnits(){return this[ud]||(this[ud]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("patternContentUnits"),setAttribute:t=>this.setAttribute("patternContentUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[ud]}get patternTransform(){return this[pd]||(this[pd]=new js(h,this[m],{getAttribute:()=>this.getAttribute("patternTransform"),setAttribute:t=>this.setAttribute("patternTransform",t)})),this[pd]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}};var mH=/[\t\f\n\r, ]+/,jD,QD,$D,XD,zD,Xs=class l{constructor(e,t,r){s(this,zD);s(this,XD);s(this,$D);s(this,QD,!1);s(this,jD,{items:[],attributeValue:""});if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[X]=!!r.readOnly,this[C]=r.getAttribute,this[x]=r.setAttribute;let o=new Te(this,[l]);return new Proxy(this,{get:(i,n)=>{if(n==="length"||n==="numberOfItems")return i[Q]().length;if(n in i||typeof n=="symbol")return o.bind(n),i[n];let a=Number(n);if(!isNaN(a))return i[Q]()[a]},set(i,n,a){if(o.bind(n),typeof n=="symbol")return i[n]=a,!0;let y=Number(n);return isNaN(y)&&(i[n]=a),!0},deleteProperty(i,n){if(typeof n=="symbol")return delete i[n],!0;let a=Number(n);return isNaN(a)&&delete i[n],!0},ownKeys(i){return Object.keys(i[Q]())},has(i,n){if(n in i)return!0;if(typeof n=="symbol")return!1;let a=Number(n);return!isNaN(a)&&a>=0&&a<i[Q]().length},defineProperty(i,n,a){return o.preventBinding(n),n in i?(Object.defineProperty(i,n,a),!0):!1},getOwnPropertyDescriptor(i,n){if(n in i||typeof n=="symbol")return;let a=Number(n),y=i[Q]();if(!isNaN(a)&&y[a])return{value:y[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Q]().length}get numberOfItems(){return this[Q]().length}[(zD=m,XD=C,$D=x,QD=X,jD=W,Symbol.iterator)](){return this[Q]().values()}clear(){if(this[X])throw new this[m].TypeError("Failed to execute 'clear' on 'SVGPointList': The object is read-only.");for(let e of this[W].items)e[C]=null,e[x]=null;this[W].items=[],this[W].attributeValue="",this[x]("")}initialize(e){if(this[X])throw new this[m].TypeError("Failed to execute 'initialize' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'initialize' on 'SVGPointList': 1 arguments required, but only ${arguments.length} present.`);if(!(e instanceof Lr))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");for(let t of this[W].items)t[C]=null,t[x]=null;return e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(t=>t[B]||"0 0").join(" "),this[x](this[W].attributeValue)},this[W].items=[e],this[W].attributeValue=e[B],this[x](e[B]||""),e}getItem(e){let t=this[Q]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),t[e]?t[e]:null}insertItemBefore(e,t){if(this[X])throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGPointList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertItemBefore' on 'SVGPointList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof Lr))throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let r=this[Q](),o=r.indexOf(e);return o!==-1&&r.splice(o,1),t<0?t=0:t>r.length&&(t=r.length),r.splice(t,0,e),e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(i=>i[B]||"0 0").join(" "),this[x](this[W].attributeValue)},this[W].attributeValue=r.map(i=>i[B]||"0 0").join(" "),this[x](this[W].attributeValue),e}replaceItem(e,t){if(this[X])throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGPointList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceItem' on 'SVGPointList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof Lr))throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let r=this[Q](),o=r.indexOf(e);if(o===t)return e;o!==-1&&r.splice(o,1),t<0?t=0:t>=r.length&&(t=r.length-1),r[t]&&(r[t][C]=null,r[t][x]=null);let i=r[t];return r[t]=e,e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(n=>n[B]||"0 0").join(" "),this[x](this[W].attributeValue)},this[W].attributeValue=r.map(n=>n[B]||"0 0").join(" "),this[x](this[W].attributeValue),i}removeItem(e){if(this[X])throw new this[m].TypeError("Failed to execute 'removeItem' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'removeItem' on 'SVGPointList': 1 argument required, but only ${arguments.length} present.`);let t=this[Q]();if(e=Number(e),isNaN(e)&&(e=0),e>=t.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${e}) is greater than the maximum bound.`,v.indexSizeError);if(e<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${e}) is negative.`,v.indexSizeError);let r=t[e];return r&&(r[C]=null,r[x]=null),t.splice(e,1),this[x](t.map(o=>o[B]||"0 0").join(" ")),r}appendItem(e){if(this[X])throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'appendItem' on 'SVGPointList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof Lr))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let t=this[Q](),r=t.indexOf(e);return r!==-1&&t.splice(r,1),t.push(e),e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(o=>o[B]||"0 0").join(" "),this[x](this[W].attributeValue)},this[W].attributeValue=t.map(o=>o[B]||"0 0").join(" "),this[x](this[W].attributeValue),e}[Q](){let e=this[C]()??"",t=this[W];if(t.attributeValue===e)return t.items;if(t.items.length)for(let i of t.items)i[C]=null,i[x]=null;let r=[],o=e.trim();if(o){let i=o.split(mH);for(let n=0,a=i.length;n<a;n+=2){let y=parseFloat(i[n]),p=i[n+1]!==void 0?" "+parseFloat(i[n+1]):"",d=new Lr(h,this[m],{readOnly:this[X],getAttribute:()=>d[B],setAttribute:()=>{this[W].attributeValue=this[Q]().map(b=>b[B]||"0 0").join(" "),this[x](this[W].attributeValue)}});d[B]=`${y}${p}`,r.push(d)}}return t.attributeValue=e,t.items=r,r}};var JD,ZD,tO,xf=class extends(tO=Qr,ZD=cn,JD=dn,tO){constructor(){super(...arguments);s(this,ZD,null);s(this,JD,null)}get animatedPoints(){return this[cn]||(this[cn]=new Xs(h,this[m],{readOnly:!0,getAttribute:()=>this.getAttribute("points"),setAttribute:()=>{}})),this[cn]}get points(){return this[dn]||(this[dn]=new Xs(h,this[m],{getAttribute:()=>this.getAttribute("points"),setAttribute:t=>this.setAttribute("points",t)})),this[dn]}};var eO,rO,oO,vf=class extends(oO=Qr,rO=cn,eO=dn,oO){constructor(){super(...arguments);s(this,rO,null);s(this,eO,null)}get animatedPoints(){return this[cn]||(this[cn]=new Xs(h,this[m],{readOnly:!0,getAttribute:()=>this.getAttribute("points"),setAttribute:()=>{}})),this[cn]}get points(){return this[dn]||(this[dn]=new Xs(h,this[m],{getAttribute:()=>this.getAttribute("points"),setAttribute:t=>this.setAttribute("points",t)})),this[dn]}};var iO,sO,nO,lO,aO,mO,Tf=class extends(mO=Yi,aO=Uo,lO=Go,nO=fn,sO=hd,iO=cd,mO){constructor(){super(...arguments);s(this,aO,null);s(this,lO,null);s(this,nO,null);s(this,sO,null);s(this,iO,null)}get cx(){return this[Uo]||(this[Uo]=new I(h,this[m],{getAttribute:()=>this.getAttribute("cx"),setAttribute:t=>this.setAttribute("cx",t)})),this[Uo]}get cy(){return this[Go]||(this[Go]=new I(h,this[m],{getAttribute:()=>this.getAttribute("cy"),setAttribute:t=>this.setAttribute("cy",t)})),this[Go]}get r(){return this[fn]||(this[fn]=new I(h,this[m],{getAttribute:()=>this.getAttribute("r"),setAttribute:t=>this.setAttribute("r",t)})),this[fn]}get fx(){return this[hd]||(this[hd]=new I(h,this[m],{getAttribute:()=>this.getAttribute("fx"),setAttribute:t=>this.setAttribute("fx",t)})),this[hd]}get fy(){return this[cd]||(this[cd]=new I(h,this[m],{getAttribute:()=>this.getAttribute("fy"),setAttribute:t=>this.setAttribute("fy",t)})),this[cd]}};var yO,uO,pO,hO,cO,dO,bO,Cf=class extends(bO=Qr,dO=R,cO=F,hO=V,pO=O,uO=bn,yO=gn,bO){constructor(){super(...arguments);s(this,dO,null);s(this,cO,null);s(this,hO,null);s(this,pO,null);s(this,uO,null);s(this,yO,null)}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get rx(){return this[bn]||(this[bn]=new I(h,this[m],{getAttribute:()=>this.getAttribute("rx"),setAttribute:t=>this.setAttribute("rx",t)})),this[bn]}get ry(){return this[gn]||(this[gn]=new I(h,this[m],{getAttribute:()=>this.getAttribute("ry"),setAttribute:t=>this.setAttribute("ry",t)})),this[gn]}};var gO,fO,Nf=class extends(fO=Le,gO=Rt,fO){constructor(){super(...arguments);s(this,gO,null)}get href(){return this[Rt]||(this[Rt]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Rt]}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}};var Lf=class extends Wi{};var SO,PO,kf=class extends(PO=ot,SO=En,PO){constructor(){super(...arguments);s(this,SO,null)}get offset(){return this[En]||(this[En]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("offset"),setAttribute:t=>this.setAttribute("offset",t)})),this[En]}};var AO,wO,EO,If=class extends ot{constructor(){super(...arguments);s(this,EO,null);s(this,wO,this);s(this,AO,!1)}get media(){return this.getAttribute("media")||"all"}set media(t){this.setAttribute("media",t)}get type(){return this.getAttribute("type")||"text/css"}set type(t){this.setAttribute("type",t)}get title(){return this.getAttribute("title")||""}set title(t){this.setAttribute("title",t)}get disabled(){return this[Ua]}set disabled(t){this[Ua]=!!t}get sheet(){return this[it]?(this[Je]||(this[Je]=new this[T][m].CSSStyleSheet,this[Je].replaceSync(this.textContent)),this[Je]):null}[(EO=Je,wO=Wr,AO=Ua,Fr)](){super[Fr](),this[Je]=null}[wt](){super[wt](),this[Je]=null}[Ba](){this[Je]&&this[Je].replaceSync(this.textContent)}};var Mf=class extends Le{};var Rf=class extends Le{};var xO,vO,TO,ml=class extends(TO=Le,vO=dd,xO=bd,TO){constructor(){super(...arguments);s(this,vO,null);s(this,xO,null)}get textLength(){return this[dd]||(this[dd]=new I(h,this[m],{getAttribute:()=>this.getAttribute("textLength"),setAttribute:t=>this.setAttribute("textLength",t)})),this[dd]}get lengthAdjust(){return this[bd]||(this[bd]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("lengthAdjust"),setAttribute:t=>this.setAttribute("lengthAdjust",t),values:["spacing","spacingAndGlyphs"],defaultValue:"spacing"})),this[bd]}getNumberOfChars(){return 0}getComputedTextLength(){return 0}getSubStringLength(t,r){return 0}getStartPositionOfChar(t){return new Lr(h,this[m])}getEndPositionOfChar(t){return new Lr(h,this[m])}getExtentOfChar(t){return new hs(h,this[m])}getRotationOfChar(t){return 0}getCharNumAtPosition(t){return 0}};s(ml,"LENGTHADJUST_UNKNOWN",0),s(ml,"LENGTHADJUST_SPACING",1),s(ml,"LENGTHADJUST_SPACINGANDGLYPHS",2);var yH=/[\t\f\n\r, ]+/,CO,NO,LO,kO,IO,$m=class l{constructor(e,t,r){s(this,IO);s(this,kO);s(this,LO);s(this,NO,!1);s(this,CO,{items:[],attributeValue:""});if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[X]=!!r.readOnly,this[C]=r.getAttribute,this[x]=r.setAttribute;let o=new Te(this,[l]);return new Proxy(this,{get:(i,n)=>{if(n==="length"||n==="numberOfItems")return i[Q]().length;if(n in i||typeof n=="symbol")return o.bind(n),i[n];let a=Number(n);if(!isNaN(a))return i[Q]()[a]},set(i,n,a){if(o.bind(n),typeof n=="symbol")return i[n]=a,!0;let y=Number(n);return isNaN(y)&&(i[n]=a),!0},deleteProperty(i,n){if(typeof n=="symbol")return delete i[n],!0;let a=Number(n);return isNaN(a)&&delete i[n],!0},ownKeys(i){return Object.keys(i[Q]())},has(i,n){if(n in i)return!0;if(typeof n=="symbol")return!1;let a=Number(n);return!isNaN(a)&&a>=0&&a<i[Q]().length},defineProperty(i,n,a){return o.preventBinding(n),n in i?(Object.defineProperty(i,n,a),!0):!1},getOwnPropertyDescriptor(i,n){if(n in i||typeof n=="symbol")return;let a=Number(n),y=i[Q]();if(!isNaN(a)&&y[a])return{value:y[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Q]().length}get numberOfItems(){return this[Q]().length}[(IO=m,kO=C,LO=x,NO=X,CO=W,Symbol.iterator)](){return this[Q]().values()}clear(){this[x]("")}initialize(e){if(this[X])throw new this[m].TypeError("Failed to execute 'initialize' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'initialize' on 'SVGLengthList': 1 arguments required, but only ${arguments.length} present.`);for(let t of this[W].items)t[C]=null,t[x]=null;return e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(t=>t[B]??"0").join(" "),this[x](this[W].attributeValue)},this[W].items=[e],this[W].attributeValue=e[B],this[x](e[B]||""),e}getItem(e){let t=this[Q]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),t[e]?t[e]:null}insertItemBefore(e,t){if(this[X])throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGLengthList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertItemBefore' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let r=this[Q](),o=r.indexOf(e);return o!==-1&&r.splice(o,1),t<0?t=0:t>r.length&&(t=r.length),r.splice(t,0,e),e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(i=>i[B]??"0").join(" "),this[x](this[W].attributeValue)},this[W].attributeValue=r.map(i=>i[B]??"0").join(" "),this[x](this[W].attributeValue),e}replaceItem(e,t){if(this[X])throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceItem' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let r=this[Q](),o=r.indexOf(e);if(o===t)return e;o!==-1&&r.splice(o,1),t<0?t=0:t>=r.length&&(t=r.length-1),r[t]&&(r[t][C]=null,r[t][x]=null);let i=r[t];return r[t]=e,e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(n=>n[B]??"0").join(" "),this[x](this[W].attributeValue)},this[W].attributeValue=r.map(n=>n[B]??"0").join(" "),this[x](this[W].attributeValue),i}removeItem(e){if(this[X])throw new this[m].TypeError("Failed to execute 'removeItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'removeItem' on 'SVGLengthList': 1 argument required, but only ${arguments.length} present.`);let t=this[Q]();if(e=Number(e),isNaN(e)&&(e=0),e>=t.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${e}) is greater than the maximum bound.`,v.indexSizeError);if(e<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${e}) is negative.`,v.indexSizeError);let r=t[e];return r&&(r[C]=null,r[x]=null),t.splice(e,1),this[x](t.map(o=>o[B]??"0").join(" ")),r}appendItem(e){if(this[X])throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'appendItem' on 'SVGLengthList': 1 argument required, but only ${arguments.length} present.`);let t=this[Q](),r=t.indexOf(e);return r!==-1&&t.splice(r,1),t.push(e),e[C]=()=>e[B],e[x]=()=>{this[W].attributeValue=this[Q]().map(o=>o[B]??"0").join(" "),this[x](this[W].attributeValue)},this[W].attributeValue=t.map(o=>o[B]??"0").join(" "),this[x](this[W].attributeValue),e}[Q](){let e=this[C]()??"",t=this[W];if(t.attributeValue===e)return t.items;if(t.items.length)for(let i of t.items)i[C]=null,i[x]=null;let r=[],o=e.trim();if(o){let i=o.split(yH);for(let n=0,a=i.length;n<a;n++){let y=new yr(h,this[m],{readOnly:this[X],getAttribute:()=>y[B],setAttribute:p=>{y[B]=p;let d=r.map(b=>b[B]??"0").join(" ");t.attributeValue=d,this[x](d)}});y[B]=i[n],r.push(y)}}return t.attributeValue=e,t.items=r,r}};var MO,RO,FO,BO,DO;DO=m,BO=C,FO=x,RO=pe,MO=he;var yl=class{constructor(e,t,r){s(this,DO);s(this,BO);s(this,FO);s(this,RO,null);s(this,MO,null);if(e!==h)throw new TypeError("Illegal constructor");this[m]=t,this[C]=r.getAttribute,this[x]=r.setAttribute}get animVal(){return this[he]||(this[he]=new $m(h,this[m],{readOnly:!0,getAttribute:this[C],setAttribute:this[x]})),this[he]}set animVal(e){}get baseVal(){return this[pe]||(this[pe]=new $m(h,this[m],{getAttribute:this[C],setAttribute:this[x]})),this[pe]}set baseVal(e){}};var OO,VO,UO,GO,_O,HO,Sa=class extends(HO=ml,_O=R,GO=F,UO=Yo,VO=qo,OO=ib,HO){constructor(){super(...arguments);s(this,_O,null);s(this,GO,null);s(this,UO,null);s(this,VO,null);s(this,OO,null)}get x(){return this[R]||(this[R]=new yl(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new yl(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}get dx(){return this[Yo]||(this[Yo]=new yl(h,this[m],{getAttribute:()=>this.getAttribute("dx"),setAttribute:t=>this.setAttribute("dx",t)})),this[Yo]}get dy(){return this[qo]||(this[qo]=new yl(h,this[m],{getAttribute:()=>this.getAttribute("dy"),setAttribute:t=>this.setAttribute("dy",t)})),this[qo]}get rotate(){return this[ib]||(this[ib]=new li(h,this[m],{getAttribute:()=>this.getAttribute("rotate"),setAttribute:t=>this.setAttribute("rotate",t)})),this[ib]}};var Ff=class extends Sa{};var WO,YO,qO,KO,jO,zs=class extends(jO=ml,KO=Rt,qO=Pd,YO=Cl,WO=Ad,jO){constructor(){super(...arguments);s(this,KO,null);s(this,qO,null);s(this,YO,null);s(this,WO,null)}get href(){return this[Rt]||(this[Rt]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Rt]}get startOffset(){return this[Pd]||(this[Pd]=new I(h,this[m],{getAttribute:()=>this.getAttribute("startOffset"),setAttribute:t=>this.setAttribute("startOffset",t)})),this[Pd]}get method(){return this[Cl]||(this[Cl]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("method"),setAttribute:t=>this.setAttribute("method",t),values:["align","stretch"],defaultValue:"align"})),this[Cl]}get spacing(){return this[Ad]||(this[Ad]=new kt(h,this[m],{getAttribute:()=>this.getAttribute("spacing"),setAttribute:t=>this.setAttribute("spacing",t),values:["auto","exact"],defaultValue:"exact"})),this[Ad]}};s(zs,"TEXTPATH_METHODTYPE_UNKNOWN",0),s(zs,"TEXTPATH_METHODTYPE_ALIGN",1),s(zs,"TEXTPATH_METHODTYPE_STRETCH",2),s(zs,"TEXTPATH_SPACINGTYPE_UNKNOWN",0),s(zs,"TEXTPATH_SPACINGTYPE_AUTO",1),s(zs,"TEXTPATH_SPACINGTYPE_EXACT",2);var Bf=class extends ot{};var Df=class extends Sa{};var QO,$O,XO,zO,JO,ZO,Of=class extends(ZO=Le,JO=Rt,zO=R,XO=F,$O=V,QO=O,ZO){constructor(){super(...arguments);s(this,JO,null);s(this,zO,null);s(this,XO,null);s(this,$O,null);s(this,QO,null)}get href(){return this[Rt]||(this[Rt]=new lt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[Rt]}get x(){return this[R]||(this[R]=new I(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[R]}get y(){return this[F]||(this[F]=new I(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[F]}get width(){return this[V]||(this[V]=new I(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[V]}get height(){return this[O]||(this[O]=new I(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[O]}};var Vf=class extends ot{};var Xm=class{constructor(e){s(this,"SVG_UNIT_TYPE_UNKNOWN",0);s(this,"SVG_UNIT_TYPE_USERSPACEONUSE",1);s(this,"SVG_UNIT_TYPE_OBJECTBOUNDINGBOX",2);if(e!==h)throw new TypeError("Illegal constructor")}};s(Xm,"SVG_UNIT_TYPE_UNKNOWN",0),s(Xm,"SVG_UNIT_TYPE_USERSPACEONUSE",1),s(Xm,"SVG_UNIT_TYPE_OBJECTBOUNDINGBOX",2);var Uf=class{constructor(e){s(this,"window");this.window=e}enqueueReaction(e,t,r){let o=this.window.customElements[Ps]?.get(e.localName);if(o&&e[T]===this.window.document)switch(t){case"connectedCallback":if(o.lifecycleCallbacks.connectedCallback){let i=o.lifecycleCallbacks.connectedCallback?.call(e);if(i instanceof Promise){let n=new rt(this.window).getAsyncTaskManager();if(n){let a=n.startTask();i.then(()=>n.endTask(a)).catch(()=>n.endTask(a))}}}break;case"disconnectedCallback":o.lifecycleCallbacks.disconnectedCallback&&o.lifecycleCallbacks.disconnectedCallback.call(e);break;case"attributeChangedCallback":o.lifecycleCallbacks.attributeChangedCallback&&r?.length&&o.observedAttributes.has(r[0])&&o.lifecycleCallbacks.attributeChangedCallback.apply(e,r);break}}};var dc=class extends k{constructor(t,r=null){super(t);s(this,"state");s(this,"hasUAVisualTransition");this.state=r?.state??null,this.hasUAVisualTransition=r?.hasUAVisualTransition??!1}};var Gf=class extends k{constructor(t,r=null){super(t,r);s(this,"code");s(this,"reason");s(this,"wasClean");this.code=r?.code??0,this.reason=r?.reason??"",this.wasClean=r?.wasClean??!1}};var zm={setTimeout:globalThis.setTimeout.bind(globalThis),clearTimeout:globalThis.clearTimeout.bind(globalThis),setInterval:globalThis.setInterval.bind(globalThis),clearInterval:globalThis.clearInterval.bind(globalThis),queueMicrotask:globalThis.queueMicrotask.bind(globalThis),setImmediate:globalThis.setImmediate.bind(globalThis),clearImmediate:globalThis.clearImmediate.bind(globalThis)},kw=setTimeout.toString().includes("new Timeout"),SH=(()=>{try{return new Function("return true;")(),!0}catch{return!1}})(),PH=(()=>{try{return globalThis.Function.$UNFROZEN$=!0,delete globalThis.Function.$UNFROZEN$,!0}catch{return!1}})(),Iw=class{constructor(){throw new TypeError("Illegal constructor")}},nP=class{constructor(e){s(this,"callback");this.callback=e}},eV,rV,oV,iV,sV,nV,lV,aV,mV,yV,uV,pV,hV,cV,dV,bV,gV,fV,Ct,bc,gc,fc,Sc,Pc,_f,Hf,Wf,Mw=class Mw extends Tt{constructor(t,r){super();s(this,"Node",bt);s(this,"Attr",pp);s(this,"ShadowRoot",Nh);s(this,"ProcessingInstruction",Ch);s(this,"Element",xr);s(this,"CharacterData",Ds);s(this,"DocumentType",Hn);s(this,"HTMLAnchorElement",dp);s(this,"HTMLButtonElement",Ap);s(this,"HTMLOptGroupElement",eh);s(this,"HTMLOptionElement",$n);s(this,"HTMLElement",G);s(this,"HTMLUnknownElement",vh);s(this,"HTMLTemplateElement",Sh);s(this,"HTMLInputElement",Gp);s(this,"HTMLSelectElement",uh);s(this,"HTMLTextAreaElement",Ph);s(this,"HTMLImageElement",Tm);s(this,"HTMLStyleElement",ch);s(this,"HTMLLabelElement",_p);s(this,"HTMLSlotElement",OA);s(this,"HTMLMetaElement",Xp);s(this,"HTMLMediaElement",qn);s(this,"HTMLAudioElement",wm);s(this,"HTMLVideoElement",Th);s(this,"HTMLBaseElement",fp);s(this,"HTMLDialogElement",Cp);s(this,"HTMLScriptElement",yh);s(this,"HTMLLinkElement",jp);s(this,"HTMLIFrameElement",Op);s(this,"HTMLFormElement",Mp);s(this,"HTMLUListElement",xh);s(this,"HTMLTrackElement",Eh);s(this,"HTMLTableRowElement",fh);s(this,"HTMLTitleElement",wh);s(this,"HTMLTimeElement",Ah);s(this,"HTMLTableSectionElement",Ws);s(this,"HTMLTableCellElement",dh);s(this,"HTMLTableElement",gh);s(this,"HTMLSpanElement",hh);s(this,"HTMLSourceElement",ph);s(this,"HTMLQuoteElement",ah);s(this,"HTMLProgressElement",lh);s(this,"HTMLPreElement",nh);s(this,"HTMLPictureElement",sh);s(this,"HTMLParamElement",ih);s(this,"HTMLParagraphElement",oh);s(this,"HTMLOutputElement",rh);s(this,"HTMLOListElement",Zp);s(this,"HTMLObjectElement",th);s(this,"HTMLMeterElement",zp);s(this,"HTMLMenuElement",$p);s(this,"HTMLMapElement",Qp);s(this,"HTMLLIElement",Wp);s(this,"HTMLLegendElement",Hp);s(this,"HTMLModElement",Jp);s(this,"HTMLHtmlElement",Dp);s(this,"HTMLHRElement",Bp);s(this,"HTMLHeadElement",Rp);s(this,"HTMLHeadingElement",Fp);s(this,"HTMLFieldSetElement",Em);s(this,"HTMLEmbedElement",Lp);s(this,"HTMLDListElement",Ep);s(this,"HTMLDivElement",Np);s(this,"HTMLDetailsElement",Tp);s(this,"HTMLDataListElement",vp);s(this,"HTMLDataElement",xp);s(this,"HTMLTableColElement",bh);s(this,"HTMLTableCaptionElement",km);s(this,"HTMLCanvasElement",wp);s(this,"HTMLBRElement",Pp);s(this,"HTMLBodyElement",Sp);s(this,"HTMLAreaElement",bp);s(this,"SVGSVGElement",cc);s(this,"SVGAnimateElement",_g);s(this,"SVGAnimateMotionElement",Hg);s(this,"SVGAnimateTransformElement",Wg);s(this,"SVGCircleElement",Yg);s(this,"SVGClipPathElement",qg);s(this,"SVGDefsElement",Kg);s(this,"SVGDescElement",jg);s(this,"SVGEllipseElement",Qg);s(this,"SVGFEBlendElement",Sr);s(this,"SVGFEColorMatrixElement",ll);s(this,"SVGFEComponentTransferElement",$g);s(this,"SVGFECompositeElement",ds);s(this,"SVGFEConvolveMatrixElement",ga);s(this,"SVGFEDiffuseLightingElement",Xg);s(this,"SVGFEDisplacementMapElement",al);s(this,"SVGFEDistantLightElement",zg);s(this,"SVGFEDropShadowElement",Jg);s(this,"SVGFEFloodElement",Zg);s(this,"SVGFEFuncAElement",tf);s(this,"SVGFEFuncBElement",ef);s(this,"SVGFEFuncGElement",rf);s(this,"SVGFEFuncRElement",of);s(this,"SVGFEGaussianBlurElement",fa);s(this,"SVGFEImageElement",sf);s(this,"SVGFEMergeElement",nf);s(this,"SVGFEMergeNodeElement",lf);s(this,"SVGFEMorphologyElement",Qm);s(this,"SVGFEOffsetElement",af);s(this,"SVGFEPointLightElement",mf);s(this,"SVGFESpecularLightingElement",yf);s(this,"SVGFESpotLightElement",uf);s(this,"SVGFETileElement",pf);s(this,"SVGFETurbulenceElement",Qs);s(this,"SVGFilterElement",hf);s(this,"SVGForeignObjectElement",cf);s(this,"SVGGElement",df);s(this,"SVGImageElement",bf);s(this,"SVGLineElement",gf);s(this,"SVGLinearGradientElement",ff);s(this,"SVGMarkerElement",$s);s(this,"SVGMaskElement",Sf);s(this,"SVGMetadataElement",Pf);s(this,"SVGMPathElement",Af);s(this,"SVGPathElement",wf);s(this,"SVGPatternElement",Ef);s(this,"SVGPolygonElement",xf);s(this,"SVGPolylineElement",vf);s(this,"SVGRadialGradientElement",Tf);s(this,"SVGRectElement",Cf);s(this,"SVGScriptElement",Nf);s(this,"SVGSetElement",Lf);s(this,"SVGStopElement",kf);s(this,"SVGStyleElement",If);s(this,"SVGSwitchElement",Mf);s(this,"SVGSymbolElement",Rf);s(this,"SVGTextElement",Ff);s(this,"SVGTextPathElement",zs);s(this,"SVGTitleElement",Bf);s(this,"SVGTSpanElement",Df);s(this,"SVGUseElement",Of);s(this,"SVGViewElement",Vf);s(this,"SVGElement",ot);s(this,"SVGAnimationElement",Wi);s(this,"SVGComponentTransferFunctionElement",$r);s(this,"SVGGeometryElement",Qr);s(this,"SVGGradientElement",Yi);s(this,"SVGTextPositioningElement",Sa);s(this,"SVGGraphicsElement",Le);s(this,"Event",k);s(this,"UIEvent",Ze);s(this,"CustomEvent",ep);s(this,"CloseEvent",Gf);s(this,"AnimationEvent",Zu);s(this,"KeyboardEvent",Gn);s(this,"MessageEvent",op);s(this,"MouseEvent",nr);s(this,"PointerEvent",pm);s(this,"FocusEvent",Ms);s(this,"WheelEvent",Gl);s(this,"InputEvent",rp);s(this,"ErrorEvent",Un);s(this,"StorageEvent",wb);s(this,"SubmitEvent",hm);s(this,"ProgressEvent",Qo);s(this,"MediaQueryListEvent",Xa);s(this,"HashChangeEvent",um);s(this,"ClipboardEvent",tp);s(this,"TouchEvent",ip);s(this,"PopStateEvent",dc);s(this,"Touch",Ju);s(this,"AudioProcessingEvent",k);s(this,"BeforeInputEvent",k);s(this,"BeforeUnloadEvent",k);s(this,"BlobEvent",k);s(this,"CompositionEvent",k);s(this,"CSSFontFaceLoadEvent",k);s(this,"DeviceLightEvent",k);s(this,"DeviceMotionEvent",k);s(this,"DeviceOrientationEvent",k);s(this,"DeviceProximityEvent",k);s(this,"DOMTransactionEvent",k);s(this,"DragEvent",k);s(this,"EditingBeforeInputEvent",k);s(this,"FetchEvent",k);s(this,"GamepadEvent",k);s(this,"IDBVersionChangeEvent",k);s(this,"MediaStreamEvent",k);s(this,"MutationEvent",k);s(this,"OfflineAudioCompletionEvent",k);s(this,"OverconstrainedError",k);s(this,"PageTransitionEvent",k);s(this,"PaymentRequestUpdateEvent",k);s(this,"RelatedEvent",k);s(this,"RTCDataChannelEvent",k);s(this,"RTCIdentityErrorEvent",k);s(this,"RTCIdentityEvent",k);s(this,"RTCPeerConnectionIceEvent",k);s(this,"SensorEvent",k);s(this,"SVGEvent",k);s(this,"SVGZoomEvent",k);s(this,"TimeEvent",k);s(this,"TrackEvent",k);s(this,"TransitionEvent",k);s(this,"UserProximityEvent",k);s(this,"WebGLContextEvent",k);s(this,"TextEvent",k);s(this,"Permissions",fm);s(this,"History",Fy);s(this,"Navigator",up);s(this,"Clipboard",ja);s(this,"TimeRanges",jl);s(this,"TextTrackCueList",ta);s(this,"ValidityState",Po);s(this,"MutationRecord",Jo);s(this,"IntersectionObserver",ap);s(this,"IntersectionObserverEntry",mp);s(this,"CSSStyleDeclaration",go);s(this,"CSSRule",Re);s(this,"CSSContainerRule",Za);s(this,"CSSFontFaceRule",em);s(this,"CSSKeyframeRule",On);s(this,"CSSKeyframesRule",om);s(this,"CSSMediaRule",sm);s(this,"CSSStyleRule",Vn);s(this,"CSSSupportsRule",mm);s(this,"CSSConditionRule",rs);s(this,"CSSGroupingRule",es);s(this,"CSSScopeRule",Bn);s(this,"DOMRect",ns);s(this,"DOMRectReadOnly",Pm);s(this,"Plugin",Lb);s(this,"PluginArray",Oy);s(this,"Location",By);s(this,"CustomElementRegistry",Ly);s(this,"ResizeObserver",Lh);s(this,"Blob",be);s(this,"File",jo);s(this,"Storage",Fm);s(this,"MimeType",Nb);s(this,"MimeTypeArray",Dy);s(this,"NodeFilter",Pe);s(this,"HTMLCollection",Ne);s(this,"HTMLFormControlCollection",xm);s(this,"HTMLOptionsCollection",Jy);s(this,"NodeList",Ii);s(this,"RadioNodeList",Wy);s(this,"FileList",$l);s(this,"Screen",ra);s(this,"ScreenDetails",Zy);s(this,"ScreenDetailed",Mm);s(this,"DOMMatrixReadOnly",hu);s(this,"DOMMatrix",ko);s(this,"NamedNodeMap",Wn);s(this,"TreeWalker",Jn);s(this,"NodeIterator",Om);s(this,"DataTransfer",zu);s(this,"DataTransferItem",Is);s(this,"DataTransferItemList",ym);s(this,"XMLSerializer",kh);s(this,"ClipboardItem",_u);s(this,"Selection",Rm);s(this,"CSSUnitValue",ge);s(this,"SVGAngle",ni);s(this,"SVGAnimatedAngle",du);s(this,"SVGAnimatedBoolean",cu);s(this,"SVGAnimatedEnumeration",kt);s(this,"SVGAnimatedInteger",bs);s(this,"SVGAnimatedLength",I);s(this,"SVGAnimatedNumber",pt);s(this,"SVGAnimatedNumberList",li);s(this,"SVGAnimatedPreserveAspectRatio",Hi);s(this,"SVGAnimatedRect",da);s(this,"SVGAnimatedString",lt);s(this,"SVGAnimatedTransformList",js);s(this,"SVGLength",yr);s(this,"SVGLengthList",$m);s(this,"SVGMatrix",nl);s(this,"SVGNumber",cs);s(this,"SVGNumberList",jm);s(this,"SVGPoint",Lr);s(this,"SVGPointList",Xs);s(this,"SVGPreserveAspectRatio",fr);s(this,"SVGRect",hs);s(this,"SVGStringList",Ks);s(this,"SVGTransform",Nr);s(this,"SVGTransformList",Km);s(this,"SVGAnimatedLengthList",yl);s(this,"SVGUnitTypes",Xm);s(this,"DOMPoint",pu);s(this,"StylePropertyMap",lm);s(this,"StylePropertyMapReadOnly",nm);s(this,"MediaList",im);s(this,"CSSKeywordValue",Vl);s(this,"CSSStyleValue",Ul);s(this,"Window",this.constructor);s(this,"URLSearchParams",bH);s(this,"WritableStream",tV.Writable);s(this,"ReadableStream",dH);s(this,"TransformStream",tV.Transform);s(this,"PerformanceObserver",gH);s(this,"PerformanceEntry",fH);s(this,"PerformanceObserverEntryList",Iw);s(this,"onload",null);s(this,"onerror",null);s(this,"document");s(this,"customElements",new Ly(this));s(this,"window",this);s(this,"globalThis",this);s(this,"performance",performance);s(this,"screenLeft",0);s(this,"screenTop",0);s(this,"screenX",0);s(this,"screenY",0);s(this,"crypto",pH);s(this,"TextEncoder",hH);s(this,"TextDecoder",cH);s(this,"closed",!1);s(this,"console");s(this,"name","");s(this,"Buffer",uH);s(this,fV,[]);s(this,gV);s(this,bV);s(this,dV);s(this,cV);s(this,hV);s(this,pV);s(this,uV);s(this,yV,this);s(this,mV,this);s(this,aV,this);s(this,lV,this);s(this,nV,this);s(this,sV,-1);s(this,iV,new Uf(this));s(this,oV,{json:new Map,css:new Map,esm:new Map});s(this,rV,null);s(this,eV,[]);E(this,Ct);E(this,bc,null);E(this,gc,null);E(this,fc,null);E(this,Sc,null);E(this,Pc,null);E(this,_f,{timeouts:null});E(this,Hf,[]);E(this,Wf,[]);w(this,Ct,t),this[GP](),this.console=t.page.console,this[yi]=new Rb(t),this[iS]=new up(this),this[sS]=new ra,this[nS]=new Fm,this[lS]=new Fm,this[vo]=new By(u(this,Ct),r?.url??"about:blank"),this[Qe]=new Fy(u(this,Ct),this),t[Qe].currentItem.href=r?.url??"about:blank",rt.setWindowBrowserFrameRelation(this,u(this,Ct)),this[kc](),Vg.extendClasses(this),this.document=new this.HTMLDocument,this.document[mo]=this;let o=t[gt].startTask(()=>this[yi].destroy());this[yi].waitUntilComplete().then(()=>{t[gt].endTask(o),this.document[Ia]=LS.complete,this.document.dispatchEvent(new k("readystatechange"));let i=new k("load");i[Ti]=this,i[Zr]=this.document,i[eo]=de.atTarget,this.dispatchEvent(i),i[Ti]=null,i[eo]=de.none,i[_a]=!1}),this[OP]()}get self(){return this[Da]}set self(t){this[Da]=t}get top(){return this[zi]}get parent(){return this[Oo]}set parent(t){this[Oo]=t}get frames(){return this[UP]}set frames(t){this[Oo]=t}get location(){return this[vo]}set location(t){this[vo].href=t}get history(){return this[Qe]}get navigator(){return this[iS]}get screen(){return this[sS]}get sessionStorage(){return this[nS]}get localStorage(){return this[lS]}get opener(){return u(this,Ct)[ji]}get scrollX(){return this.document?.documentElement?.scrollLeft??0}get pageXOffset(){return this.scrollX}get scrollY(){return this.document?.documentElement?.scrollTop??0}get pageYOffset(){return this.scrollY}get CSS(){return new cb}get innerWidth(){return u(this,bc)===null?u(this,Ct).page.viewport.width:u(this,bc)}set innerWidth(t){w(this,bc,t)}get innerHeight(){return u(this,gc)===null?u(this,Ct).page.viewport.height:u(this,gc)}set innerHeight(t){w(this,gc,t)}get outerWidth(){return u(this,fc)===null?u(this,Ct).page.viewport.width:u(this,fc)}set outerWidth(t){w(this,fc,t)}get outerHeight(){return u(this,Sc)===null?u(this,Ct).page.viewport.height:u(this,Sc)}set outerHeight(t){w(this,Sc,t)}get devicePixelRatio(){return u(this,Pc)===null?u(this,Ct).page.viewport.devicePixelRatio:u(this,Pc)}set devicePixelRatio(t){w(this,Pc,t)}getComputedStyle(t){return t[my]=t[my]||new go(h,this,{element:t,computed:!0}),t[my]}getSelection(){return this.document.getSelection()}scroll(t,r){if(typeof t!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scroll' on 'Window': The provided value is not of type 'ScrollToOptions'.");let o=typeof t=="object"?t:{left:t,top:r};if(o.behavior==="smooth")this.setTimeout(()=>{if(o.top!==void 0){let i=Number(o.top);this.document.documentElement.scrollTop=isNaN(i)?0:i}if(o.left!==void 0){let i=Number(o.left);this.document.documentElement.scrollLeft=isNaN(i)?0:i}});else{if(o.top!==void 0){let i=Number(o.top);this.document.documentElement.scrollTop=isNaN(i)?0:i}if(o.left!==void 0){let i=Number(o.left);this.document.documentElement.scrollLeft=isNaN(i)?0:i}}}scrollTo(t,r){if(typeof t!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scrollTo' on 'Window': The provided value is not of type 'ScrollToOptions'.");this.scroll(t,r)}scrollBy(t,r){if(typeof t!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scrollBy' on 'Window': The provided value is not of type 'ScrollToOptions'.");let o=typeof t=="object"?t:{left:t,top:r};this.scroll({left:this.document.documentElement.scrollLeft+(o.left??0),top:this.document.documentElement.scrollTop+(o.top??0),behavior:o.behavior})}blur(){}focus(){}open(t,r,o){return pg.openPage(u(this,Ct),{url:t,target:r,features:o})}close(){u(this,Ct).page.mainFrame===u(this,Ct)&&u(this,Ct)[ji]&&(this[wt](),u(this,Ct).page.close())}matchMedia(t){return new Ny({window:this,media:t})}getScreenDetails(){return Promise.resolve(new Zy)}setTimeout(t,r=0,...o){if(this.closed)return{};let i=u(this,Ct).page.context.browser.settings;if(i.timer.preventTimerLoops){let y=new Error().stack,p=u(this,Hf),d=u(this,Wf),b=p.indexOf(y);if(b!==-1){if(d[b].timeout++,d[b].timeout>=(i.timer.preventTimerLoops===!0?1:i.timer.preventTimerLoops.timeout??1))return{}}else p.push(y),d.push({timeout:0,requestAnimationFrame:0})}if(!r){let y=u(this,_f);if(!y.timeouts){let d=!i||!i.disableErrorCapturing&&i.errorCapture===ue.tryAndCatch,b=zm.setTimeout(()=>{u(this,Ct)[gt].endTimer(b);let f=y.timeouts;y.timeouts=null;for(let S of f)if(d){let M;try{M=S.callback()}catch(N){this[ce](N)}M instanceof Promise&&M.catch(N=>this[ce](N))}else S.callback()},0);y.timeouts=[],u(this,Ct)[gt].startTimer(b)}let p=new nP(()=>t(...o));return y.timeouts.push(p),p}let n=!i||!i.disableErrorCapturing&&i.errorCapture===ue.tryAndCatch,a=zm.setTimeout(()=>{if(u(this,Ct)[gt].endTimer(a),n){let y;try{y=t(...o)}catch(p){this[ce](p)}y instanceof Promise&&y.catch(p=>this[ce](p))}else t(...o)},i?.timer.maxTimeout!==-1&&r&&r>i?.timer.maxTimeout?i?.timer.maxTimeout:r);return u(this,Ct)[gt].startTimer(a),a}clearTimeout(t){if(t&&t instanceof nP){let r=u(this,_f);if(!r.timeouts)return;let o=r.timeouts.indexOf(t);o!==-1&&r.timeouts.splice(o,1);return}kw&&(!t||t.constructor.name!=="Timeout")||(zm.clearTimeout(t),u(this,Ct)[gt].endTimer(t))}setInterval(t,r=0,...o){if(this.closed)return{};let i=u(this,Ct).page.context.browser.settings,n=!i||!i.disableErrorCapturing&&i.errorCapture===ue.tryAndCatch,a=0,y=zm.setInterval(()=>{if(n){let p;try{p=t(...o)}catch(d){this.clearInterval(y),this[ce](d)}p instanceof Promise&&p.catch(d=>{this.clearInterval(y),this[ce](d)})}else t(...o);i?.timer.maxIntervalIterations!==-1&&(a>=i?.timer.maxIntervalIterations&&this.clearInterval(y),a++)},i?.timer.maxIntervalTime!==-1&&r&&r>i?.timer.maxIntervalTime?i?.timer.maxIntervalTime:r);return u(this,Ct)[gt].startTimer(y),y}clearInterval(t){kw&&(!t||t.constructor.name!=="Timeout")||(zm.clearInterval(t),u(this,Ct)[gt].endTimer(t))}requestAnimationFrame(t){if(this.closed)return{};let r=u(this,Ct).page.context.browser.settings;if(r.timer.preventTimerLoops){let n=new Error().stack,a=u(this,Hf),y=u(this,Wf),p=a.indexOf(n);if(p!==-1){if(y[p].requestAnimationFrame++,y[p].requestAnimationFrame>=(r.timer.preventTimerLoops===!0?1:r.timer.preventTimerLoops.requestAnimationFrame??1))return{}}else a.push(n),y.push({timeout:0,requestAnimationFrame:0})}let o=!r||!r.disableErrorCapturing&&r.errorCapture===ue.tryAndCatch,i=zm.setImmediate(()=>{if(u(this,Ct)[gt].endImmediate(i),o){let n;try{n=t(this.performance.now())}catch(a){this[ce](a)}n instanceof Promise&&n.catch(a=>this[ce](a))}else t(this.performance.now())});return u(this,Ct)[gt].startImmediate(i),i}cancelAnimationFrame(t){kw&&(!t||t.constructor.name!=="Immediate")||(zm.clearImmediate(t),u(this,Ct)[gt].endImmediate(t))}queueMicrotask(t){if(this.closed)return;let r=!1,o=u(this,Ct)[gt].startTask(()=>r=!0),i=u(this,Ct).page.context.browser.settings,n=!i||!i.disableErrorCapturing&&i.errorCapture===ue.tryAndCatch;zm.queueMicrotask(()=>{if(!r)if(u(this,Ct)[gt].endTask(o),n){let a;try{a=t()}catch(y){this[ce](y)}a instanceof Promise&&a.catch(y=>this[ce](y))}else t()})}async fetch(t,r){return this.closed?Promise.reject(new this.DOMException("Failed to execute 'fetch' on 'Window': The window is closed.",v.invalidStateError)):await new zo({browserFrame:u(this,Ct),window:this,url:t,init:r}).send()}btoa(t){return Gu.btoa(t)}atob(t){return Gu.atob(t)}postMessage(t,r="*",o){if(!this.closed){if(r&&r!=="*"&&this.location.origin!==r)throw new this.DOMException(`Failed to execute 'postMessage' on 'Window': The target origin provided ('${r}') does not match the recipient window's origin ('${this.location.origin}').`,v.securityError);try{JSON.stringify(t)}catch{throw new this.DOMException("Failed to execute 'postMessage' on 'Window': The provided message cannot be serialized.",v.invalidStateError)}this.setTimeout(()=>this.dispatchEvent(new op("message",{data:t,origin:u(this,Ct).parentFrame?u(this,Ct).parentFrame.window.location.origin:u(this,Ct).window.location.origin,source:u(this,Ct).parentFrame?u(this,Ct).parentFrame.window:u(this,Ct).window,lastEventId:""})))}}resizeTo(t,r){if(!this.closed){if(!t||!r)throw new this.DOMException(`Failed to execute 'resizeTo' on 'Window': 2 arguments required, but only ${arguments.length} present.`);u(this,Ct)[bl]&&u(this,Ct).page.setViewport({width:t,height:r})}}resizeBy(t,r){if(!this.closed){if(!t||!r)throw new this.DOMException(`Failed to execute 'resizeBy' on 'Window': 2 arguments required, but only ${arguments.length} present.`);if(u(this,Ct)[bl]){let o=u(this,Ct).page.viewport;u(this,Ct).page.setViewport({width:o.width+t,height:o.height+r})}}}[(fV=ka,gV=yi,bV=vo,dV=Qe,cV=iS,hV=sS,pV=nS,uV=lS,yV=Da,mV=zi,aV=Oo,lV=m,nV=UP,sV=Ta,iV=Nl,oV=kn,rV=gy,eV=Ha,ce)](t){u(this,Ct).page.console.error(t),this.dispatchEvent(new Un("error",{message:t.message,error:t}))}[Ci](t,r){return new Lw.Script(t,r).runInContext(this)}[kc](){Lw.isContext(this)||(Lw.createContext(this),LN.runInContext(this))}[GP](){let t=u(this,Ct);(SH||PH)&&t.page.context.browser.settings.enableJavaScriptEvaluation&&!t.page.context.browser.settings.suppressInsecureJavaScriptEnvironmentWarning&&!t.page.context.browser.settings.suppressCodeGenerationFromStringsWarning&&console.warn(`
222
222
  Warning! Happy DOM has JavaScript evaluation enabled and is running in an insecure environment.
223
223
 
224
224
  A VM Context is not an isolated environment, and if you run untrusted code you are at risk of RCE (Remote Code Execution) attacks. The attacker can escape the VM and run code at process level.
@@ -227,18 +227,18 @@ It is recommended to disable code generation and freeze all builtins at process
227
227
 
228
228
  For more information, see https://github.com/capricorn86/happy-dom/wiki/JavaScript-Evaluation-Warning
229
229
 
230
- `)}[wt](){if(this.closed)return;super[wt](),this.closed=!0;let t=this[ka];for(let n of t)n[wt]&&n[wt]();this[ka]=[];for(let n of this[Ha])n[wt]();this[Ha]=[],this.document[wt]();let r=this.document.createElement("html"),o=this.document.createElement("head"),i=this.document.createElement("body");r.appendChild(o),r.appendChild(i),this.document[vt](r),this.location[wt]&&this.location[wt](),this.customElements[wt]&&this.customElements[wt](),this.history[wt]&&this.history[wt](),this[kn].json.clear(),this[kn].css.clear(),this[kn].esm.clear(),this.document[co].clear(),this.document[qe]=null,this.document[cl]=null,this.document[vi]=null,this.document[Na]=null,this[Oo]=null,this[zi]=null,rt.removeWindowBrowserFrameRelation(this)}[OP](){for(let t of[Mw,Tt]){let r=Object.getOwnPropertyDescriptors(t.prototype),o=Object.keys(r);for(let i of o){let n=r[i];n.get||n.set?Object.defineProperty(this,i,{...n,get:n.get?.bind(this),set:n.set?.bind(this)}):i!=="constructor"&&typeof n.value=="function"&&!n.value.toString().startsWith("class ")&&Object.defineProperty(this,i,{...n,value:n.value.bind(this)})}}}};Ct=new WeakMap,bc=new WeakMap,gc=new WeakMap,fc=new WeakMap,Sc=new WeakMap,Pc=new WeakMap,_f=new WeakMap,Hf=new WeakMap,Wf=new WeakMap;var xi=Mw;import{Script as PH}from"vm";var Pa=class{static evaluate(e,t){if(!e.window)throw new Error('The frame has been destroyed, the "window" property is not set.');return t=typeof t=="string"?new PH(t):t,t.runInContext(e.window)}static async evaluateModule(e,t){if(!e.window)throw new Error('The frame has been destroyed, the "window" property is not set.');let r=e.window;if(t?.code){let o=t.url?new URL(t.url,r.location.href):r.location,i=t.code;switch(t?.type||"esm"){case"esm":let n=new Ui(r,o);return await new Zl({window:r,url:o,source:i,factory:n}).evaluate();case"json":return await new Xy({window:r,url:o,source:i}).evaluate();case"css":return await new Qy({window:r,url:o,source:i}).evaluate()}}return t?.url?await(await new Ui(r,r.location).getModule(t.url,{with:{type:t.type||"esm"}})).evaluate():{}}};var bu=class{constructor(){s(this,"currentItem",{title:"",href:"about:blank",state:null,popState:!1,scrollRestoration:is.auto,method:"GET",formData:null});s(this,"items",[this.currentItem])}push(e){let t=this.items.indexOf(this.currentItem);t!==this.items.length-1&&(this.items.length=t+1),this.items.push(e),this.currentItem=e}replace(e){let t=this.items.indexOf(this.currentItem);if(t!==this.items.length-1&&(this.items.length=t+1),t===-1)throw new Error("Current history item not found");this.currentItem=e,this.items[t]=e}clear(){this.items.length=0,this.currentItem={title:"",href:"about:blank",state:null,popState:!1,scrollRestoration:is.auto,method:"GET",formData:null},this.items.push(this.currentItem)}};var SV,PV,AV,wV,EV,xV;xV=gt,EV=fe,wV=xo,AV=ji,PV=bl,SV=je;var Ac=class{constructor(e){s(this,"childFrames",[]);s(this,"parentFrame",null);s(this,"page");s(this,"window");s(this,"closed",!1);s(this,xV,new ts(this));s(this,EV,{navigation:[]});s(this,wV,null);s(this,AV,null);s(this,PV,!1);s(this,SV,new bu);this.page=e,this.window=new xi(this),e.context.browser[_r]&&e.context.browser[_r].observe(this.window)}get content(){return this.window.document.documentElement.outerHTML}set content(e){this.window.document[rn]=!0,this.window.document[on]=!1,this.window.document.open(),this.window.document.write(e)}get url(){return this.window.location.href}set url(e){this.window[vo][yo](this,Co.getRelativeURL(this,e).href)}get document(){return this.window?.document??null}async waitUntilComplete(){await Promise.all([this[gt].waitUntilComplete(),...this.childFrames.map(e=>e.waitUntilComplete())])}waitForNavigation(){return new Promise(e=>this[fe].navigation.push(e))}abort(){return this.childFrames.length?new Promise((e,t)=>{Promise.all(this.childFrames.map(r=>r.abort()).concat([this[gt].abort()])).then(()=>e()).catch(t)}):this[gt].abort()}evaluate(e){return Pa.evaluate(this,e)}evaluateModule(e){return Pa.evaluateModule(this,e)}goto(e,t){return so.navigate({windowClass:xi,frame:this,url:e,goToOptions:t})}goBack(e){return so.navigateBack({windowClass:xi,frame:this,goToOptions:e})}goForward(e){return so.navigateForward({windowClass:xi,frame:this,goToOptions:e})}goSteps(e,t){return so.navigateSteps({windowClass:xi,frame:this,steps:e,goToOptions:t})}reload(e){return so.reload({windowClass:xi,frame:this,goToOptions:e})}};var kr,Jm,wc,gu,re,Zm=class{constructor(e){E(this,kr);E(this,Jm,{});E(this,wc,{});E(this,gu,0);E(this,re,[]);w(this,kr,e)}assert(e,t,...r){e||u(this,kr).print({type:$e.assert,level:Or.error,message:["Assertion failed:",...t?[t,...r]:r],group:u(this,re)[u(this,re).length-1]||null})}clear(){u(this,kr).clear()}count(e="default"){u(this,Jm)[e]||(u(this,Jm)[e]=0),u(this,Jm)[e]++,u(this,kr).print({type:$e.count,level:Or.info,message:[`${e}: ${u(this,Jm)[e]}`],group:u(this,re)[u(this,re).length-1]||null})}countReset(e="default"){delete u(this,Jm)[e],u(this,kr).print({type:$e.countReset,level:Or.warn,message:[`${e}: 0`],group:u(this,re)[u(this,re).length-1]||null})}debug(e,...t){u(this,kr).print({type:$e.debug,level:Or.log,message:e?[e,...t]:t,group:u(this,re)[u(this,re).length-1]||null})}dir(e){u(this,kr).print({type:$e.dir,level:Or.log,message:[e],group:u(this,re)[u(this,re).length-1]||null})}dirxml(e){u(this,kr).print({type:$e.dirxml,level:Or.log,message:[e],group:u(this,re)[u(this,re).length-1]||null})}error(e,...t){u(this,kr).print({type:$e.error,level:Or.error,message:e?[e,...t]:t,group:u(this,re)[u(this,re).length-1]||null})}exception(...e){this.error(...e)}group(e){uP(this,gu)._++;let t={id:u(this,gu),label:e||"default",collapsed:!1,parent:u(this,re)[u(this,re).length-1]||null};u(this,re).push(t),u(this,kr).print({type:$e.group,level:Or.log,message:[e||"default"],group:t})}groupCollapsed(e){uP(this,gu)._++;let t={id:u(this,gu),label:e||"default",collapsed:!0,parent:u(this,re)[u(this,re).length-1]||null};u(this,re).push(t),u(this,kr).print({type:$e.groupCollapsed,level:Or.log,message:[e||"default"],group:t})}groupEnd(){u(this,re).length!==0&&u(this,re).pop()}info(e,...t){u(this,kr).print({type:$e.info,level:Or.info,message:e?[e,...t]:t,group:u(this,re)[u(this,re).length-1]||null})}log(e,...t){u(this,kr).print({type:$e.log,level:Or.log,message:e?[e,...t]:t,group:u(this,re)[u(this,re).length-1]||null})}profile(){throw new Error("Method not implemented.")}profileEnd(){throw new Error("Method not implemented.")}table(e){u(this,kr).print({type:$e.table,level:Or.log,message:[e],group:u(this,re)[u(this,re).length-1]||null})}time(e="default"){u(this,wc)[e]=performance.now()}timeEnd(e="default"){let t=u(this,wc)[e];if(t){let r=performance.now()-t;u(this,kr).print({type:$e.timeEnd,level:Or.info,message:[`${e}: ${r}ms - timer ended`],group:u(this,re)[u(this,re).length-1]||null})}}timeLog(e="default",...t){let r=u(this,wc)[e];if(r){let o=performance.now()-r;u(this,kr).print({type:$e.timeLog,level:Or.info,message:[`${e}: ${o}ms`,...t],group:u(this,re)[u(this,re).length-1]||null})}}timeStamp(){throw new Error("Method not implemented.")}trace(e,...t){u(this,kr).print({type:$e.trace,level:Or.log,message:[...e?[e,...t]:t,new Error("stack").stack.replace("Error: stack","")],group:u(this,re)[u(this,re).length-1]||null})}warn(e,...t){u(this,kr).print({type:$e.warn,level:Or.warn,message:e?[e,...t]:t,group:u(this,re)[u(this,re).length-1]||null})}};kr=new WeakMap,Jm=new WeakMap,wc=new WeakMap,gu=new WeakMap,re=new WeakMap;var Aa=class{static getFrames(e){return this.findFrames(e.mainFrame)}static closePage(e){if(e.closed)return Promise.resolve();e.closed=!0;let t=e.context.pages.indexOf(e);return t!==-1&&e.context.pages.splice(t,1),e.virtualConsolePrinter.close(),Us.destroyFrame(e.mainFrame)}static findFrames(e){let t=[e];for(let r of e.childFrames)t=t.concat(this.findFrames(r));return t}};var Ec=class{constructor(e){s(this,"virtualConsolePrinter",new qa);s(this,"mainFrame");s(this,"context");s(this,"console");s(this,"viewport");s(this,"closed",!1);this.context=e,this.console=e.browser.console??new Zm(this.virtualConsolePrinter),this.mainFrame=new Ac(this),this.viewport={width:e.browser.settings.viewport.width,height:e.browser.settings.viewport.height,devicePixelRatio:e.browser.settings.viewport.devicePixelRatio}}get frames(){return Aa.getFrames(this)}get content(){return this.mainFrame.content}set content(e){this.mainFrame.content=e}get url(){return this.mainFrame.url}set url(e){this.mainFrame.url=e}close(){return Aa.closePage(this)}waitUntilComplete(){return this.mainFrame.waitUntilComplete()}waitForNavigation(){return this.mainFrame.waitForNavigation()}abort(){return this.mainFrame.abort()}evaluate(e){return this.mainFrame.evaluate(e)}evaluateModule(e){return this.mainFrame.evaluateModule(e)}setViewport(e){let t=Object.assign({},this.viewport);Object.assign(this.viewport,e),(t.width!==this.viewport.width||t.height!==this.viewport.height||t.devicePixelRatio!==this.viewport.devicePixelRatio)&&this.mainFrame.window.dispatchEvent(new k("resize"))}goto(e,t){return this.mainFrame.goto(e,t)}goBack(e){return this.mainFrame.goBack(e)}goForward(e){return this.mainFrame.goForward(e)}goSteps(e,t){return this.mainFrame.goSteps(e,t)}reload(e){return this.mainFrame.reload(e)}};var ty,fu=class{constructor(){E(this,ty,new Map)}get(e){let t=u(this,ty).get(e.url);return t?t.expires<Date.now()?(u(this,ty).delete(e.url),null):t:null}add(e,t){if(u(this,ty).delete(e.url),e.headers.get("Cache-Control")?.includes("no-cache")||t.status<200||t.status>=300)return null;let r=t.headers.get("Access-Control-Max-Age"),o=t.headers.get("Access-Control-Allow-Origin");if(!r||!o)return null;let i=[];if(t.headers.has("Access-Control-Allow-Methods")&&t.headers.get("Access-Control-Allow-Methods")!=="*")for(let y of t.headers.get("Access-Control-Allow-Methods").split(","))i.push(y.trim().toUpperCase());let n={allowOrigin:o,allowMethods:i,expires:Date.now()+parseInt(r)*1e3};return isNaN(n.expires)||n.expires<Date.now()?null:(u(this,ty).set(e.url,n),n)}clear(){u(this,ty).clear()}};ty=new WeakMap;var vV;vV=Py;var Su=class{constructor(e){s(this,"pages",[]);s(this,"browser");s(this,"cookieContainer",new Ay);s(this,"responseCache",new Ey);s(this,"preflightResponseCache",new fu);s(this,"closed",!1);s(this,vV,new Map);this.browser=e}async close(){if(this.closed)return;if(this.browser.contexts[0]===this)throw new Error("Cannot close the default context. Use `browser.close()` to close the browser instead.");this.closed=!0,await Promise.all(this.pages.slice().map(r=>r.close()));let e=this.browser,t=e.contexts.indexOf(this);t!==-1&&e.contexts.splice(t,1),this.pages=[],this.cookieContainer.clearCookies(),this.responseCache.clear(),this.preflightResponseCache.clear()}async waitUntilComplete(){await Promise.all(this.pages.map(e=>e.waitUntilComplete()))}abort(){return new Promise((e,t)=>{if(!this.pages.length){e();return}Promise.all(this.pages.slice().map(r=>r.abort())).then(()=>e()).catch(r=>t(r))})}newPage(){let e=new Ec(this);return this.pages.push(e),e}};var TV={version:"20.8.4"};var Js={disableJavaScriptEvaluation:!1,enableJavaScriptEvaluation:!1,disableJavaScriptFileLoading:!1,disableCSSFileLoading:!1,disableIframePageLoading:!1,disableComputedStyleRendering:!1,handleDisabledFileLoadingAsSuccess:!1,disableErrorCapturing:!1,errorCapture:ue.tryAndCatch,enableFileSystemHttpRequests:!1,suppressCodeGenerationFromStringsWarning:!1,suppressInsecureJavaScriptEnvironmentWarning:!1,timer:{maxTimeout:-1,maxIntervalTime:-1,maxIntervalIterations:-1,preventTimerLoops:!1},fetch:{disableSameOriginPolicy:!1,disableStrictSSL:!1,interceptor:null,requestHeaders:null,virtualServers:null},module:{resolveNodeModules:null,urlResolver:null,disableCache:!1},navigation:{disableMainFrameNavigation:!1,disableChildFrameNavigation:!1,disableChildPageNavigation:!1,disableFallbackToSetURL:!1,crossOriginPolicy:kp.anyOrigin,beforeContentCallback:null},navigator:{userAgent:`Mozilla/5.0 (X11; ${process.platform.charAt(0).toUpperCase()+process.platform.slice(1)+" "+process.arch}) AppleWebKit/537.36 (KHTML, like Gecko) HappyDOM/${TV.version}`,maxTouchPoints:0},device:{prefersColorScheme:"light",prefersReducedMotion:"no-preference",mediaType:"screen",forcedColors:"none"},debug:{traceWaitUntilComplete:-1},viewport:{width:1024,height:768,devicePixelRatio:1}};var Pu=class{static createSettings(e){return e&&this.validate(Js,e),{...Js,...e,navigation:{...Js.navigation,...e?.navigation},navigator:{...Js.navigator,...e?.navigator},timer:{...Js.timer,...e?.timer},fetch:{...Js.fetch,...e?.fetch},module:{...Js.module,...e?.module},device:{...Js.device,...e?.device},debug:{...Js.debug,...e?.debug},viewport:{...Js.viewport,...e?.viewport}}}static validate(e,t,r){for(let o of Object.keys(t)){if(e[o]===void 0){let i=r?r+"."+o:o;throw new Error(`Unknown browser setting "${i}"`)}if(typeof e[o]=="object"&&!Array.isArray(e[o])&&e[o]!==null){let i=r?r+"."+o:o;if(typeof t[o]!="object"||Array.isArray(t[o])||t[o]===null)throw new Error(`Browser setting "${i}" cannot be null`);this.validate(e[o],t[o],i)}else if((typeof e[o]=="boolean"||typeof e[o]=="number"||typeof e[o]=="string")&&typeof t[o]!=typeof e[o]&&!(o==="preventTimerLoops"&&typeof t[o]=="object"&&t[o]!==null)){let n=r?r+"."+o:o;throw new Error(`Browser setting "${n}" must be of type "${typeof e[o]}"`)}}}};var ey=class{constructor(){s(this,"observedWindows",[]);s(this,"uncaughtExceptionListener",null);s(this,"uncaughtRejectionListener",null)}observe(e){if(this.observedWindows.includes(e))throw new Error("Browser window is already being observed.");this.observedWindows.push(e),!this.uncaughtExceptionListener&&(this.uncaughtExceptionListener=(t,r)=>{if(r==="unhandledRejection")return;let o=null;for(let i of this.observedWindows)if(t instanceof i.Error||t instanceof i.DOMException){o=i;break}o?(o.console.error(t),o.dispatchEvent(new o.ErrorEvent("error",{error:t,message:t.message}))):process.listenerCount("uncaughtException")===this.constructor.listenerCount&&(console.error(t),process.exit(1))},this.uncaughtRejectionListener=t=>{let r=null;for(let o of this.observedWindows)if(t instanceof o.Error||t instanceof o.DOMException){r=o;break}r?(r.console.error(t),r.dispatchEvent(new r.ErrorEvent("error",{error:t,message:t.message}))):process.listenerCount("unhandledRejection")===this.constructor.listenerCount&&(console.error(t),process.exit(1))},this.constructor.listenerCount++,process.on("uncaughtException",this.uncaughtExceptionListener),process.on("unhandledRejection",this.uncaughtRejectionListener))}disconnect(e){let t=this.observedWindows.indexOf(e);t!==-1&&(this.observedWindows.splice(t,1),this.observedWindows.length===0&&this.uncaughtExceptionListener&&(this.constructor.listenerCount--,process.off("uncaughtException",this.uncaughtExceptionListener),this.uncaughtRejectionListener&&process.off("unhandledRejection",this.uncaughtRejectionListener),this.uncaughtExceptionListener=null,this.uncaughtRejectionListener=null))}};s(ey,"listenerCount",0);var CV;CV=_r;var lP=class{constructor(e){s(this,"contexts");s(this,"settings");s(this,"console");s(this,CV,null);this.console=e?.console||null,this.settings=Pu.createSettings(e?.settings),this.settings.errorCapture===ue.processLevel&&(this[_r]=new ey),this.contexts=[new Su(this)]}get closed(){return this.contexts.length===0}get defaultContext(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");return this.contexts[0]}async close(){if(this.contexts.length===0)return;let e=this.contexts;this.contexts=[],await Promise.all(e.map(t=>t.close()))}async waitUntilComplete(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");await Promise.all(this.contexts.map(e=>e.waitUntilComplete()))}abort(){return new Promise((e,t)=>{if(!this.contexts.length){e();return}Promise.all(this.contexts.slice().map(r=>r.abort())).then(()=>e()).catch(r=>t(r))})}newIncognitoContext(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");let e=new Su(this);return this.contexts.push(e),e}newPage(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");return this.contexts[0].newPage()}};var NV,LV,kV,IV,MV,RV;RV=gt,MV=fe,IV=xo,kV=ji,LV=bl,NV=je;var xc=class{constructor(e){s(this,"childFrames",[]);s(this,"parentFrame",null);s(this,"page");s(this,"closed",!1);s(this,RV,new ts(this));s(this,MV,{navigation:[]});s(this,IV,null);s(this,kV,null);s(this,LV,!1);s(this,NV,new bu);this.page=e,e.context.browser.contexts[0]?.pages[0]?.mainFrame&&(this.window=new this.page.context.browser.windowClass(this),e.context.browser[_r]&&e.context.browser[_r].observe(this.window))}get content(){if(!this.window)throw new Error('The frame has been destroyed, the "window" property is not set.');return this.window.document.documentElement.outerHTML}set content(e){if(!this.window)throw new Error('The frame has been destroyed, the "window" property is not set.');this.window.document[rn]=!0,this.window.document[on]=!1,this.window.document.open(),this.window.document.write(e)}get url(){if(!this.window)throw new Error('The frame has been destroyed, the "window" property is not set.');return this.window.location.href}set url(e){if(!this.window)throw new Error('The frame has been destroyed, the "window" property is not set.');this.window[vo][yo](this,Co.getRelativeURL(this,e).href)}get document(){return this.window?.document??null}async waitUntilComplete(){await Promise.all([this[gt].waitUntilComplete(),...this.childFrames.map(e=>e.waitUntilComplete())])}waitForNavigation(){return new Promise(e=>this[fe].navigation.push(e))}abort(){return this.childFrames.length?new Promise((e,t)=>{Promise.all(this.childFrames.map(r=>r.abort()).concat([this[gt].abort()])).then(()=>e()).catch(t)}):this[gt].abort()}evaluate(e){return Pa.evaluate(this,e)}evaluateModule(e){return Pa.evaluateModule(this,e)}goto(e,t){return so.navigate({windowClass:this.page.context.browser.windowClass,frame:this,url:e,goToOptions:t})}goBack(e){return so.navigateBack({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:e})}goForward(e){return so.navigateForward({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:e})}goSteps(e,t){return so.navigateSteps({windowClass:this.page.context.browser.windowClass,frame:this,steps:e,goToOptions:t})}reload(e){return so.reload({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:e})}};var Au=class{constructor(e){s(this,"virtualConsolePrinter",new qa);s(this,"mainFrame");s(this,"context");s(this,"console");s(this,"viewport");s(this,"closed",!1);this.context=e,this.console=e.browser.console??new Zm(this.virtualConsolePrinter),this.mainFrame=new xc(this),this.viewport={width:e.browser.settings.viewport.width,height:e.browser.settings.viewport.height,devicePixelRatio:e.browser.settings.viewport.devicePixelRatio}}get frames(){return Aa.getFrames(this)}get content(){return this.mainFrame.content}set content(e){this.mainFrame.content=e}get url(){return this.mainFrame.url}set url(e){this.mainFrame.url=e}close(){return new Promise((e,t)=>{let r=this.context;Aa.closePage(this).then(()=>{r.pages[0]===this?r.browser.close().then(e).catch(t):e()}).catch(t)})}waitUntilComplete(){return this.mainFrame.waitUntilComplete()}waitForNavigation(){return this.mainFrame.waitForNavigation()}abort(){return this.mainFrame.abort()}evaluate(e){return this.mainFrame.evaluate(e)}evaluateModule(e){return this.mainFrame.evaluateModule(e)}setViewport(e){let t=Object.assign({},this.viewport);Object.assign(this.viewport,e),(t.width!==this.viewport.width||t.height!==this.viewport.height||t.devicePixelRatio!==this.viewport.devicePixelRatio)&&this.mainFrame.window.dispatchEvent(new k("resize"))}goto(e,t){return this.mainFrame.goto(e,t)}goBack(e){return this.mainFrame.goBack(e)}goForward(e){return this.mainFrame.goForward(e)}goSteps(e,t){return this.mainFrame.goSteps(e,t)}reload(e){return this.mainFrame.reload(e)}};var FV;FV=Py;var vc=class{constructor(e){s(this,"pages");s(this,"browser");s(this,"cookieContainer",new Ay);s(this,"responseCache",new Ey);s(this,"preflightResponseCache",new fu);s(this,"closed",!1);s(this,FV,new Map);this.browser=e,this.pages=[],this.pages.push(new Au(this))}async close(){if(this.closed)return;if(this.browser.contexts[0]===this)throw new Error("Cannot close the default context. Use `browser.close()` to close the browser instead.");this.closed=!0,await Promise.all(this.pages.slice().map(r=>r.close()));let e=this.browser,t=e.contexts.indexOf(this);t!==-1&&e.contexts.splice(t,1),this.pages=[],this.cookieContainer.clearCookies(),this.responseCache.clear(),this.preflightResponseCache.clear()}async waitUntilComplete(){await Promise.all(this.pages.map(e=>e.waitUntilComplete()))}abort(){return new Promise((e,t)=>{if(!this.pages.length){e();return}Promise.all(this.pages.slice().map(r=>r.abort())).then(()=>e()).catch(r=>t(r))})}newPage(){let e=new Au(this);return this.pages.push(e),e}};var BV;BV=_r;var Tc=class{constructor(e,t){s(this,"contexts");s(this,"settings");s(this,"console");s(this,"windowClass");s(this,BV,null);this.windowClass=e,this.console=t?.console||null,this.settings=Pu.createSettings(t?.settings),this.settings.errorCapture===ue.processLevel&&(this[_r]=new ey),this.contexts=[],this.contexts.push(new vc(this))}get closed(){return this.contexts.length===0}get defaultContext(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");return this.contexts[0]}async close(){if(this.contexts.length===0)return;let e=this.contexts;this.contexts=[],await Promise.all(e.map(t=>t.close()))}async waitUntilComplete(){await Promise.all(this.contexts.map(e=>e.waitUntilComplete()))}abort(){return new Promise((e,t)=>{if(!this.contexts.length){e();return}Promise.all(this.contexts.slice().map(r=>r.abort())).then(()=>e()).catch(r=>t(r))})}newIncognitoContext(){throw new Error("Not possible to create a new context on a detached browser.")}newPage(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");return this.contexts[0].newPage()}};var Zs,Cc=class{constructor(e){E(this,Zs);w(this,Zs,e)}get settings(){return u(this,Zs).page.context.browser.settings}get virtualConsolePrinter(){return u(this,Zs).page.virtualConsolePrinter}waitUntilComplete(){return u(this,Zs).waitUntilComplete()}whenAsyncComplete(){return this.waitUntilComplete()}abort(){return u(this,Zs).abort()}cancelAsync(){return this.abort()}close(){return u(this,Zs).page.close()}setURL(e){u(this,Zs).url=e}setViewport(e){u(this,Zs).page.setViewport(e)}setWindowSize(e){this.setViewport({width:e?.width,height:e?.height})}setInnerWidth(e){this.setViewport({width:e})}setInnerHeight(e){this.setViewport({height:e})}};Zs=new WeakMap;var ry=class extends xi{constructor(t){let o=new Tc(xi,{console:t?.console,settings:t?.settings}).defaultContext.pages[0],i=o.mainFrame;t&&(t.width||t.height||t.innerWidth||t.innerHeight)&&Object.assign(o.viewport,{width:t.width||t.innerWidth||o.viewport.width,height:t.height||t.innerHeight||o.viewport.height});super(i,{url:t?.url});s(this,"happyDOM");i.window=this,i.page.context.browser[_r]&&i.page.context.browser[_r].observe(this),this.happyDOM=new Cc(i)}};import{Buffer as AH}from"buffer";var aP=class extends ry{constructor(){super(...arguments);s(this,"Array",globalThis.Array);s(this,"ArrayBuffer",globalThis.ArrayBuffer);s(this,"Boolean",globalThis.Boolean);s(this,"Buffer",AH);s(this,"DataView",globalThis.DataView);s(this,"Date",globalThis.Date);s(this,"Error",globalThis.Error);s(this,"EvalError",globalThis.EvalError);s(this,"Float32Array",globalThis.Float32Array);s(this,"Float64Array",globalThis.Float64Array);s(this,"Function",globalThis.Function);s(this,"Infinity",globalThis.Infinity);s(this,"Int16Array",globalThis.Int16Array);s(this,"Int32Array",globalThis.Int32Array);s(this,"Int8Array",globalThis.Int8Array);s(this,"Intl",globalThis.Intl);s(this,"JSON",globalThis.JSON);s(this,"Map",globalThis.Map);s(this,"Math",globalThis.Math);s(this,"NaN",globalThis.NaN);s(this,"Number",globalThis.Number);s(this,"Object",globalThis.Object);s(this,"Promise",globalThis.Promise);s(this,"RangeError",globalThis.RangeError);s(this,"ReferenceError",globalThis.ReferenceError);s(this,"RegExp",globalThis.RegExp);s(this,"Set",globalThis.Set);s(this,"String",globalThis.String);s(this,"Symbol",globalThis.Symbol);s(this,"SyntaxError",globalThis.SyntaxError);s(this,"TypeError",globalThis.TypeError);s(this,"URIError",globalThis.URIError);s(this,"Uint16Array",globalThis.Uint16Array);s(this,"Uint32Array",globalThis.Uint32Array);s(this,"Uint8Array",globalThis.Uint8Array);s(this,"Uint8ClampedArray",globalThis.Uint8ClampedArray);s(this,"WeakMap",globalThis.WeakMap);s(this,"WeakSet",globalThis.WeakSet);s(this,"decodeURI",globalThis.decodeURI);s(this,"decodeURIComponent",globalThis.decodeURIComponent);s(this,"encodeURI",globalThis.encodeURI);s(this,"encodeURIComponent",globalThis.encodeURIComponent);s(this,"eval",globalThis.eval);s(this,"escape",globalThis.escape);s(this,"global",globalThis);s(this,"isFinite",globalThis.isFinite);s(this,"isNaN",globalThis.isNaN);s(this,"parseFloat",globalThis.parseFloat);s(this,"parseInt",globalThis.parseInt);s(this,"undefined",globalThis.undefined);s(this,"unescape",globalThis.unescape)}[Ci](t,r){return r?.filename?this.eval(`${t}
231
- //# sourceURL=${r.filename}`):this.eval(t)}[kc](){}};var Fw=oy(VV(),1),UV=(l,e=[])=>(wu.readdirSync(l).forEach(r=>{let o=Yf.join(l,r);wu.statSync(o).isDirectory()?UV(o,e):o.endsWith(".html")&&e.push(o)}),e),GV=async({dir:l,logger:e},t)=>{let r=TH(l),o=t.build?.assets||"_astro",i=0,n=UV(r);for(let a of n){let y=wu.readFileSync(a,"utf-8"),d=new ry().document;d.write(y);let b=d.body.querySelectorAll("style[data-ssr-emotion]");if(!b.length)continue;let f=Array.from(b).map(mt=>mt.textContent).join(`
232
- `).trim();if(!f)continue;let S=vH.createHash("md5").update(f).digest("hex").slice(0,10),M=`${o}/ssremo.${S}.css`,N=Yf.join(r,M);wu.existsSync(Yf.dirname(N))||wu.mkdirSync(Yf.dirname(N),{recursive:!0}),wu.writeFileSync(N,f),b.forEach(mt=>mt.remove());let K=d.createElement("link");K.rel="stylesheet",K.href=`/${t.base}/${M}`.replace(/\/+/g,"/"),d.head.appendChild(K),e.info(`Link ${Fw.default.cyan(M)} from ${Fw.default.magenta(Yf.relative(r,a))}`),i++,wu.writeFileSync(a,`<!DOCTYPE html>
233
- `+d.documentElement.outerHTML)}i&&console.log("")};function qxt(){let l=null;return{name:"ssr-emotion-react",hooks:{"astro:config:setup":async({addRenderer:e,updateConfig:t,config:r,logger:o})=>{let i=r.integrations?.find(n=>n.name==="@astrojs/react");if(i){let n=r.integrations.findIndex(y=>y.name==="ssr-emotion-react"),a=r.integrations.indexOf(i);n!==-1&&a!==-1&&a<n&&o.warn(`
230
+ `)}[wt](){if(this.closed)return;super[wt](),this.closed=!0;let t=this[ka];for(let n of t)n[wt]&&n[wt]();this[ka]=[];for(let n of this[Ha])n[wt]();this[Ha]=[],this.document[wt]();let r=this.document.createElement("html"),o=this.document.createElement("head"),i=this.document.createElement("body");r.appendChild(o),r.appendChild(i),this.document[vt](r),this.location[wt]&&this.location[wt](),this.customElements[wt]&&this.customElements[wt](),this.history[wt]&&this.history[wt](),this[kn].json.clear(),this[kn].css.clear(),this[kn].esm.clear(),this.document[co].clear(),this.document[Ke]=null,this.document[cl]=null,this.document[vi]=null,this.document[Na]=null,this[Oo]=null,this[zi]=null,rt.removeWindowBrowserFrameRelation(this)}[OP](){for(let t of[Mw,Tt]){let r=Object.getOwnPropertyDescriptors(t.prototype),o=Object.keys(r);for(let i of o){let n=r[i];n.get||n.set?Object.defineProperty(this,i,{...n,get:n.get?.bind(this),set:n.set?.bind(this)}):i!=="constructor"&&typeof n.value=="function"&&!n.value.toString().startsWith("class ")&&Object.defineProperty(this,i,{...n,value:n.value.bind(this)})}}}};Ct=new WeakMap,bc=new WeakMap,gc=new WeakMap,fc=new WeakMap,Sc=new WeakMap,Pc=new WeakMap,_f=new WeakMap,Hf=new WeakMap,Wf=new WeakMap;var xi=Mw;import{Script as AH}from"vm";var Pa=class{static evaluate(e,t){if(!e.window)throw new Error('The frame has been destroyed, the "window" property is not set.');return t=typeof t=="string"?new AH(t):t,t.runInContext(e.window)}static async evaluateModule(e,t){if(!e.window)throw new Error('The frame has been destroyed, the "window" property is not set.');let r=e.window;if(t?.code){let o=t.url?new URL(t.url,r.location.href):r.location,i=t.code;switch(t?.type||"esm"){case"esm":let n=new Ui(r,o);return await new Zl({window:r,url:o,source:i,factory:n}).evaluate();case"json":return await new Xy({window:r,url:o,source:i}).evaluate();case"css":return await new Qy({window:r,url:o,source:i}).evaluate()}}return t?.url?await(await new Ui(r,r.location).getModule(t.url,{with:{type:t.type||"esm"}})).evaluate():{}}};var bu=class{constructor(){s(this,"currentItem",{title:"",href:"about:blank",state:null,popState:!1,scrollRestoration:is.auto,method:"GET",formData:null});s(this,"items",[this.currentItem])}push(e){let t=this.items.indexOf(this.currentItem);t!==this.items.length-1&&(this.items.length=t+1),this.items.push(e),this.currentItem=e}replace(e){let t=this.items.indexOf(this.currentItem);if(t!==this.items.length-1&&(this.items.length=t+1),t===-1)throw new Error("Current history item not found");this.currentItem=e,this.items[t]=e}clear(){this.items.length=0,this.currentItem={title:"",href:"about:blank",state:null,popState:!1,scrollRestoration:is.auto,method:"GET",formData:null},this.items.push(this.currentItem)}};var SV,PV,AV,wV,EV,xV;xV=gt,EV=fe,wV=xo,AV=ji,PV=bl,SV=Qe;var Ac=class{constructor(e){s(this,"childFrames",[]);s(this,"parentFrame",null);s(this,"page");s(this,"window");s(this,"closed",!1);s(this,xV,new ts(this));s(this,EV,{navigation:[]});s(this,wV,null);s(this,AV,null);s(this,PV,!1);s(this,SV,new bu);this.page=e,this.window=new xi(this),e.context.browser[_r]&&e.context.browser[_r].observe(this.window)}get content(){return this.window.document.documentElement.outerHTML}set content(e){this.window.document[rn]=!0,this.window.document[on]=!1,this.window.document.open(),this.window.document.write(e)}get url(){return this.window.location.href}set url(e){this.window[vo][yo](this,Co.getRelativeURL(this,e).href)}get document(){return this.window?.document??null}async waitUntilComplete(){await Promise.all([this[gt].waitUntilComplete(),...this.childFrames.map(e=>e.waitUntilComplete())])}waitForNavigation(){return new Promise(e=>this[fe].navigation.push(e))}abort(){return this.childFrames.length?new Promise((e,t)=>{Promise.all(this.childFrames.map(r=>r.abort()).concat([this[gt].abort()])).then(()=>e()).catch(t)}):this[gt].abort()}evaluate(e){return Pa.evaluate(this,e)}evaluateModule(e){return Pa.evaluateModule(this,e)}goto(e,t){return so.navigate({windowClass:xi,frame:this,url:e,goToOptions:t})}goBack(e){return so.navigateBack({windowClass:xi,frame:this,goToOptions:e})}goForward(e){return so.navigateForward({windowClass:xi,frame:this,goToOptions:e})}goSteps(e,t){return so.navigateSteps({windowClass:xi,frame:this,steps:e,goToOptions:t})}reload(e){return so.reload({windowClass:xi,frame:this,goToOptions:e})}};var kr,Jm,wc,gu,re,Zm=class{constructor(e){E(this,kr);E(this,Jm,{});E(this,wc,{});E(this,gu,0);E(this,re,[]);w(this,kr,e)}assert(e,t,...r){e||u(this,kr).print({type:Xe.assert,level:Or.error,message:["Assertion failed:",...t?[t,...r]:r],group:u(this,re)[u(this,re).length-1]||null})}clear(){u(this,kr).clear()}count(e="default"){u(this,Jm)[e]||(u(this,Jm)[e]=0),u(this,Jm)[e]++,u(this,kr).print({type:Xe.count,level:Or.info,message:[`${e}: ${u(this,Jm)[e]}`],group:u(this,re)[u(this,re).length-1]||null})}countReset(e="default"){delete u(this,Jm)[e],u(this,kr).print({type:Xe.countReset,level:Or.warn,message:[`${e}: 0`],group:u(this,re)[u(this,re).length-1]||null})}debug(e,...t){u(this,kr).print({type:Xe.debug,level:Or.log,message:e?[e,...t]:t,group:u(this,re)[u(this,re).length-1]||null})}dir(e){u(this,kr).print({type:Xe.dir,level:Or.log,message:[e],group:u(this,re)[u(this,re).length-1]||null})}dirxml(e){u(this,kr).print({type:Xe.dirxml,level:Or.log,message:[e],group:u(this,re)[u(this,re).length-1]||null})}error(e,...t){u(this,kr).print({type:Xe.error,level:Or.error,message:e?[e,...t]:t,group:u(this,re)[u(this,re).length-1]||null})}exception(...e){this.error(...e)}group(e){uP(this,gu)._++;let t={id:u(this,gu),label:e||"default",collapsed:!1,parent:u(this,re)[u(this,re).length-1]||null};u(this,re).push(t),u(this,kr).print({type:Xe.group,level:Or.log,message:[e||"default"],group:t})}groupCollapsed(e){uP(this,gu)._++;let t={id:u(this,gu),label:e||"default",collapsed:!0,parent:u(this,re)[u(this,re).length-1]||null};u(this,re).push(t),u(this,kr).print({type:Xe.groupCollapsed,level:Or.log,message:[e||"default"],group:t})}groupEnd(){u(this,re).length!==0&&u(this,re).pop()}info(e,...t){u(this,kr).print({type:Xe.info,level:Or.info,message:e?[e,...t]:t,group:u(this,re)[u(this,re).length-1]||null})}log(e,...t){u(this,kr).print({type:Xe.log,level:Or.log,message:e?[e,...t]:t,group:u(this,re)[u(this,re).length-1]||null})}profile(){throw new Error("Method not implemented.")}profileEnd(){throw new Error("Method not implemented.")}table(e){u(this,kr).print({type:Xe.table,level:Or.log,message:[e],group:u(this,re)[u(this,re).length-1]||null})}time(e="default"){u(this,wc)[e]=performance.now()}timeEnd(e="default"){let t=u(this,wc)[e];if(t){let r=performance.now()-t;u(this,kr).print({type:Xe.timeEnd,level:Or.info,message:[`${e}: ${r}ms - timer ended`],group:u(this,re)[u(this,re).length-1]||null})}}timeLog(e="default",...t){let r=u(this,wc)[e];if(r){let o=performance.now()-r;u(this,kr).print({type:Xe.timeLog,level:Or.info,message:[`${e}: ${o}ms`,...t],group:u(this,re)[u(this,re).length-1]||null})}}timeStamp(){throw new Error("Method not implemented.")}trace(e,...t){u(this,kr).print({type:Xe.trace,level:Or.log,message:[...e?[e,...t]:t,new Error("stack").stack.replace("Error: stack","")],group:u(this,re)[u(this,re).length-1]||null})}warn(e,...t){u(this,kr).print({type:Xe.warn,level:Or.warn,message:e?[e,...t]:t,group:u(this,re)[u(this,re).length-1]||null})}};kr=new WeakMap,Jm=new WeakMap,wc=new WeakMap,gu=new WeakMap,re=new WeakMap;var Aa=class{static getFrames(e){return this.findFrames(e.mainFrame)}static closePage(e){if(e.closed)return Promise.resolve();e.closed=!0;let t=e.context.pages.indexOf(e);return t!==-1&&e.context.pages.splice(t,1),e.virtualConsolePrinter.close(),Us.destroyFrame(e.mainFrame)}static findFrames(e){let t=[e];for(let r of e.childFrames)t=t.concat(this.findFrames(r));return t}};var Ec=class{constructor(e){s(this,"virtualConsolePrinter",new qa);s(this,"mainFrame");s(this,"context");s(this,"console");s(this,"viewport");s(this,"closed",!1);this.context=e,this.console=e.browser.console??new Zm(this.virtualConsolePrinter),this.mainFrame=new Ac(this),this.viewport={width:e.browser.settings.viewport.width,height:e.browser.settings.viewport.height,devicePixelRatio:e.browser.settings.viewport.devicePixelRatio}}get frames(){return Aa.getFrames(this)}get content(){return this.mainFrame.content}set content(e){this.mainFrame.content=e}get url(){return this.mainFrame.url}set url(e){this.mainFrame.url=e}close(){return Aa.closePage(this)}waitUntilComplete(){return this.mainFrame.waitUntilComplete()}waitForNavigation(){return this.mainFrame.waitForNavigation()}abort(){return this.mainFrame.abort()}evaluate(e){return this.mainFrame.evaluate(e)}evaluateModule(e){return this.mainFrame.evaluateModule(e)}setViewport(e){let t=Object.assign({},this.viewport);Object.assign(this.viewport,e),(t.width!==this.viewport.width||t.height!==this.viewport.height||t.devicePixelRatio!==this.viewport.devicePixelRatio)&&this.mainFrame.window.dispatchEvent(new k("resize"))}goto(e,t){return this.mainFrame.goto(e,t)}goBack(e){return this.mainFrame.goBack(e)}goForward(e){return this.mainFrame.goForward(e)}goSteps(e,t){return this.mainFrame.goSteps(e,t)}reload(e){return this.mainFrame.reload(e)}};var ty,fu=class{constructor(){E(this,ty,new Map)}get(e){let t=u(this,ty).get(e.url);return t?t.expires<Date.now()?(u(this,ty).delete(e.url),null):t:null}add(e,t){if(u(this,ty).delete(e.url),e.headers.get("Cache-Control")?.includes("no-cache")||t.status<200||t.status>=300)return null;let r=t.headers.get("Access-Control-Max-Age"),o=t.headers.get("Access-Control-Allow-Origin");if(!r||!o)return null;let i=[];if(t.headers.has("Access-Control-Allow-Methods")&&t.headers.get("Access-Control-Allow-Methods")!=="*")for(let y of t.headers.get("Access-Control-Allow-Methods").split(","))i.push(y.trim().toUpperCase());let n={allowOrigin:o,allowMethods:i,expires:Date.now()+parseInt(r)*1e3};return isNaN(n.expires)||n.expires<Date.now()?null:(u(this,ty).set(e.url,n),n)}clear(){u(this,ty).clear()}};ty=new WeakMap;var vV;vV=Py;var Su=class{constructor(e){s(this,"pages",[]);s(this,"browser");s(this,"cookieContainer",new Ay);s(this,"responseCache",new Ey);s(this,"preflightResponseCache",new fu);s(this,"closed",!1);s(this,vV,new Map);this.browser=e}async close(){if(this.closed)return;if(this.browser.contexts[0]===this)throw new Error("Cannot close the default context. Use `browser.close()` to close the browser instead.");this.closed=!0,await Promise.all(this.pages.slice().map(r=>r.close()));let e=this.browser,t=e.contexts.indexOf(this);t!==-1&&e.contexts.splice(t,1),this.pages=[],this.cookieContainer.clearCookies(),this.responseCache.clear(),this.preflightResponseCache.clear()}async waitUntilComplete(){await Promise.all(this.pages.map(e=>e.waitUntilComplete()))}abort(){return new Promise((e,t)=>{if(!this.pages.length){e();return}Promise.all(this.pages.slice().map(r=>r.abort())).then(()=>e()).catch(r=>t(r))})}newPage(){let e=new Ec(this);return this.pages.push(e),e}};var TV={version:"20.8.9"};var Js={disableJavaScriptEvaluation:!1,enableJavaScriptEvaluation:!1,disableJavaScriptFileLoading:!1,disableCSSFileLoading:!1,disableIframePageLoading:!1,disableComputedStyleRendering:!1,handleDisabledFileLoadingAsSuccess:!1,disableErrorCapturing:!1,errorCapture:ue.tryAndCatch,enableFileSystemHttpRequests:!1,suppressCodeGenerationFromStringsWarning:!1,suppressInsecureJavaScriptEnvironmentWarning:!1,timer:{maxTimeout:-1,maxIntervalTime:-1,maxIntervalIterations:-1,preventTimerLoops:!1},fetch:{disableSameOriginPolicy:!1,disableStrictSSL:!1,interceptor:null,requestHeaders:null,virtualServers:null},module:{resolveNodeModules:null,urlResolver:null,disableCache:!1},navigation:{disableMainFrameNavigation:!1,disableChildFrameNavigation:!1,disableChildPageNavigation:!1,disableFallbackToSetURL:!1,crossOriginPolicy:kp.anyOrigin,beforeContentCallback:null},navigator:{userAgent:`Mozilla/5.0 (X11; ${process.platform.charAt(0).toUpperCase()+process.platform.slice(1)+" "+process.arch}) AppleWebKit/537.36 (KHTML, like Gecko) HappyDOM/${TV.version}`,maxTouchPoints:0},device:{prefersColorScheme:"light",prefersReducedMotion:"no-preference",mediaType:"screen",forcedColors:"none"},debug:{traceWaitUntilComplete:-1},viewport:{width:1024,height:768,devicePixelRatio:1}};var Pu=class{static createSettings(e){return e&&this.validate(Js,e),{...Js,...e,navigation:{...Js.navigation,...e?.navigation},navigator:{...Js.navigator,...e?.navigator},timer:{...Js.timer,...e?.timer},fetch:{...Js.fetch,...e?.fetch},module:{...Js.module,...e?.module},device:{...Js.device,...e?.device},debug:{...Js.debug,...e?.debug},viewport:{...Js.viewport,...e?.viewport}}}static validate(e,t,r){for(let o of Object.keys(t)){if(e[o]===void 0){let i=r?r+"."+o:o;throw new Error(`Unknown browser setting "${i}"`)}if(typeof e[o]=="object"&&!Array.isArray(e[o])&&e[o]!==null){let i=r?r+"."+o:o;if(typeof t[o]!="object"||Array.isArray(t[o])||t[o]===null)throw new Error(`Browser setting "${i}" cannot be null`);this.validate(e[o],t[o],i)}else if((typeof e[o]=="boolean"||typeof e[o]=="number"||typeof e[o]=="string")&&typeof t[o]!=typeof e[o]&&!(o==="preventTimerLoops"&&typeof t[o]=="object"&&t[o]!==null)){let n=r?r+"."+o:o;throw new Error(`Browser setting "${n}" must be of type "${typeof e[o]}"`)}}}};var ey=class{constructor(){s(this,"observedWindows",[]);s(this,"uncaughtExceptionListener",null);s(this,"uncaughtRejectionListener",null)}observe(e){if(this.observedWindows.includes(e))throw new Error("Browser window is already being observed.");this.observedWindows.push(e),!this.uncaughtExceptionListener&&(this.uncaughtExceptionListener=(t,r)=>{if(r==="unhandledRejection")return;let o=null;for(let i of this.observedWindows)if(t instanceof i.Error||t instanceof i.DOMException){o=i;break}o?(o.console.error(t),o.dispatchEvent(new o.ErrorEvent("error",{error:t,message:t.message}))):process.listenerCount("uncaughtException")===this.constructor.listenerCount&&(console.error(t),process.exit(1))},this.uncaughtRejectionListener=t=>{let r=null;for(let o of this.observedWindows)if(t instanceof o.Error||t instanceof o.DOMException){r=o;break}r?(r.console.error(t),r.dispatchEvent(new r.ErrorEvent("error",{error:t,message:t.message}))):process.listenerCount("unhandledRejection")===this.constructor.listenerCount&&(console.error(t),process.exit(1))},this.constructor.listenerCount++,process.on("uncaughtException",this.uncaughtExceptionListener),process.on("unhandledRejection",this.uncaughtRejectionListener))}disconnect(e){let t=this.observedWindows.indexOf(e);t!==-1&&(this.observedWindows.splice(t,1),this.observedWindows.length===0&&this.uncaughtExceptionListener&&(this.constructor.listenerCount--,process.off("uncaughtException",this.uncaughtExceptionListener),this.uncaughtRejectionListener&&process.off("unhandledRejection",this.uncaughtRejectionListener),this.uncaughtExceptionListener=null,this.uncaughtRejectionListener=null))}};s(ey,"listenerCount",0);var CV;CV=_r;var lP=class{constructor(e){s(this,"contexts");s(this,"settings");s(this,"console");s(this,CV,null);this.console=e?.console||null,this.settings=Pu.createSettings(e?.settings),this.settings.errorCapture===ue.processLevel&&(this[_r]=new ey),this.contexts=[new Su(this)]}get closed(){return this.contexts.length===0}get defaultContext(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");return this.contexts[0]}async close(){if(this.contexts.length===0)return;let e=this.contexts;this.contexts=[],await Promise.all(e.map(t=>t.close()))}async waitUntilComplete(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");await Promise.all(this.contexts.map(e=>e.waitUntilComplete()))}abort(){return new Promise((e,t)=>{if(!this.contexts.length){e();return}Promise.all(this.contexts.slice().map(r=>r.abort())).then(()=>e()).catch(r=>t(r))})}newIncognitoContext(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");let e=new Su(this);return this.contexts.push(e),e}newPage(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");return this.contexts[0].newPage()}};var NV,LV,kV,IV,MV,RV;RV=gt,MV=fe,IV=xo,kV=ji,LV=bl,NV=Qe;var xc=class{constructor(e){s(this,"childFrames",[]);s(this,"parentFrame",null);s(this,"page");s(this,"closed",!1);s(this,RV,new ts(this));s(this,MV,{navigation:[]});s(this,IV,null);s(this,kV,null);s(this,LV,!1);s(this,NV,new bu);this.page=e,e.context.browser.contexts[0]?.pages[0]?.mainFrame&&(this.window=new this.page.context.browser.windowClass(this),e.context.browser[_r]&&e.context.browser[_r].observe(this.window))}get content(){if(!this.window)throw new Error('The frame has been destroyed, the "window" property is not set.');return this.window.document.documentElement.outerHTML}set content(e){if(!this.window)throw new Error('The frame has been destroyed, the "window" property is not set.');this.window.document[rn]=!0,this.window.document[on]=!1,this.window.document.open(),this.window.document.write(e)}get url(){if(!this.window)throw new Error('The frame has been destroyed, the "window" property is not set.');return this.window.location.href}set url(e){if(!this.window)throw new Error('The frame has been destroyed, the "window" property is not set.');this.window[vo][yo](this,Co.getRelativeURL(this,e).href)}get document(){return this.window?.document??null}async waitUntilComplete(){await Promise.all([this[gt].waitUntilComplete(),...this.childFrames.map(e=>e.waitUntilComplete())])}waitForNavigation(){return new Promise(e=>this[fe].navigation.push(e))}abort(){return this.childFrames.length?new Promise((e,t)=>{Promise.all(this.childFrames.map(r=>r.abort()).concat([this[gt].abort()])).then(()=>e()).catch(t)}):this[gt].abort()}evaluate(e){return Pa.evaluate(this,e)}evaluateModule(e){return Pa.evaluateModule(this,e)}goto(e,t){return so.navigate({windowClass:this.page.context.browser.windowClass,frame:this,url:e,goToOptions:t})}goBack(e){return so.navigateBack({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:e})}goForward(e){return so.navigateForward({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:e})}goSteps(e,t){return so.navigateSteps({windowClass:this.page.context.browser.windowClass,frame:this,steps:e,goToOptions:t})}reload(e){return so.reload({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:e})}};var Au=class{constructor(e){s(this,"virtualConsolePrinter",new qa);s(this,"mainFrame");s(this,"context");s(this,"console");s(this,"viewport");s(this,"closed",!1);this.context=e,this.console=e.browser.console??new Zm(this.virtualConsolePrinter),this.mainFrame=new xc(this),this.viewport={width:e.browser.settings.viewport.width,height:e.browser.settings.viewport.height,devicePixelRatio:e.browser.settings.viewport.devicePixelRatio}}get frames(){return Aa.getFrames(this)}get content(){return this.mainFrame.content}set content(e){this.mainFrame.content=e}get url(){return this.mainFrame.url}set url(e){this.mainFrame.url=e}close(){return new Promise((e,t)=>{let r=this.context;Aa.closePage(this).then(()=>{r.pages[0]===this?r.browser.close().then(e).catch(t):e()}).catch(t)})}waitUntilComplete(){return this.mainFrame.waitUntilComplete()}waitForNavigation(){return this.mainFrame.waitForNavigation()}abort(){return this.mainFrame.abort()}evaluate(e){return this.mainFrame.evaluate(e)}evaluateModule(e){return this.mainFrame.evaluateModule(e)}setViewport(e){let t=Object.assign({},this.viewport);Object.assign(this.viewport,e),(t.width!==this.viewport.width||t.height!==this.viewport.height||t.devicePixelRatio!==this.viewport.devicePixelRatio)&&this.mainFrame.window.dispatchEvent(new k("resize"))}goto(e,t){return this.mainFrame.goto(e,t)}goBack(e){return this.mainFrame.goBack(e)}goForward(e){return this.mainFrame.goForward(e)}goSteps(e,t){return this.mainFrame.goSteps(e,t)}reload(e){return this.mainFrame.reload(e)}};var FV;FV=Py;var vc=class{constructor(e){s(this,"pages");s(this,"browser");s(this,"cookieContainer",new Ay);s(this,"responseCache",new Ey);s(this,"preflightResponseCache",new fu);s(this,"closed",!1);s(this,FV,new Map);this.browser=e,this.pages=[],this.pages.push(new Au(this))}async close(){if(this.closed)return;if(this.browser.contexts[0]===this)throw new Error("Cannot close the default context. Use `browser.close()` to close the browser instead.");this.closed=!0,await Promise.all(this.pages.slice().map(r=>r.close()));let e=this.browser,t=e.contexts.indexOf(this);t!==-1&&e.contexts.splice(t,1),this.pages=[],this.cookieContainer.clearCookies(),this.responseCache.clear(),this.preflightResponseCache.clear()}async waitUntilComplete(){await Promise.all(this.pages.map(e=>e.waitUntilComplete()))}abort(){return new Promise((e,t)=>{if(!this.pages.length){e();return}Promise.all(this.pages.slice().map(r=>r.abort())).then(()=>e()).catch(r=>t(r))})}newPage(){let e=new Au(this);return this.pages.push(e),e}};var BV;BV=_r;var Tc=class{constructor(e,t){s(this,"contexts");s(this,"settings");s(this,"console");s(this,"windowClass");s(this,BV,null);this.windowClass=e,this.console=t?.console||null,this.settings=Pu.createSettings(t?.settings),this.settings.errorCapture===ue.processLevel&&(this[_r]=new ey),this.contexts=[],this.contexts.push(new vc(this))}get closed(){return this.contexts.length===0}get defaultContext(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");return this.contexts[0]}async close(){if(this.contexts.length===0)return;let e=this.contexts;this.contexts=[],await Promise.all(e.map(t=>t.close()))}async waitUntilComplete(){await Promise.all(this.contexts.map(e=>e.waitUntilComplete()))}abort(){return new Promise((e,t)=>{if(!this.contexts.length){e();return}Promise.all(this.contexts.slice().map(r=>r.abort())).then(()=>e()).catch(r=>t(r))})}newIncognitoContext(){throw new Error("Not possible to create a new context on a detached browser.")}newPage(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");return this.contexts[0].newPage()}};var Zs,Cc=class{constructor(e){E(this,Zs);w(this,Zs,e)}get settings(){return u(this,Zs).page.context.browser.settings}get virtualConsolePrinter(){return u(this,Zs).page.virtualConsolePrinter}waitUntilComplete(){return u(this,Zs).waitUntilComplete()}whenAsyncComplete(){return this.waitUntilComplete()}abort(){return u(this,Zs).abort()}cancelAsync(){return this.abort()}close(){return u(this,Zs).page.close()}setURL(e){u(this,Zs).url=e}setViewport(e){u(this,Zs).page.setViewport(e)}setWindowSize(e){this.setViewport({width:e?.width,height:e?.height})}setInnerWidth(e){this.setViewport({width:e})}setInnerHeight(e){this.setViewport({height:e})}};Zs=new WeakMap;var ry=class extends xi{constructor(t){let o=new Tc(xi,{console:t?.console,settings:t?.settings}).defaultContext.pages[0],i=o.mainFrame;t&&(t.width||t.height||t.innerWidth||t.innerHeight)&&Object.assign(o.viewport,{width:t.width||t.innerWidth||o.viewport.width,height:t.height||t.innerHeight||o.viewport.height});super(i,{url:t?.url});s(this,"happyDOM");i.window=this,i.page.context.browser[_r]&&i.page.context.browser[_r].observe(this),this.happyDOM=new Cc(i)}};import{Buffer as wH}from"buffer";var aP=class extends ry{constructor(){super(...arguments);s(this,"Array",globalThis.Array);s(this,"ArrayBuffer",globalThis.ArrayBuffer);s(this,"Boolean",globalThis.Boolean);s(this,"Buffer",wH);s(this,"DataView",globalThis.DataView);s(this,"Date",globalThis.Date);s(this,"Error",globalThis.Error);s(this,"EvalError",globalThis.EvalError);s(this,"Float32Array",globalThis.Float32Array);s(this,"Float64Array",globalThis.Float64Array);s(this,"Function",globalThis.Function);s(this,"Infinity",globalThis.Infinity);s(this,"Int16Array",globalThis.Int16Array);s(this,"Int32Array",globalThis.Int32Array);s(this,"Int8Array",globalThis.Int8Array);s(this,"Intl",globalThis.Intl);s(this,"JSON",globalThis.JSON);s(this,"Map",globalThis.Map);s(this,"Math",globalThis.Math);s(this,"NaN",globalThis.NaN);s(this,"Number",globalThis.Number);s(this,"Object",globalThis.Object);s(this,"Promise",globalThis.Promise);s(this,"RangeError",globalThis.RangeError);s(this,"ReferenceError",globalThis.ReferenceError);s(this,"RegExp",globalThis.RegExp);s(this,"Set",globalThis.Set);s(this,"String",globalThis.String);s(this,"Symbol",globalThis.Symbol);s(this,"SyntaxError",globalThis.SyntaxError);s(this,"TypeError",globalThis.TypeError);s(this,"URIError",globalThis.URIError);s(this,"Uint16Array",globalThis.Uint16Array);s(this,"Uint32Array",globalThis.Uint32Array);s(this,"Uint8Array",globalThis.Uint8Array);s(this,"Uint8ClampedArray",globalThis.Uint8ClampedArray);s(this,"WeakMap",globalThis.WeakMap);s(this,"WeakSet",globalThis.WeakSet);s(this,"decodeURI",globalThis.decodeURI);s(this,"decodeURIComponent",globalThis.decodeURIComponent);s(this,"encodeURI",globalThis.encodeURI);s(this,"encodeURIComponent",globalThis.encodeURIComponent);s(this,"eval",globalThis.eval);s(this,"escape",globalThis.escape);s(this,"global",globalThis);s(this,"isFinite",globalThis.isFinite);s(this,"isNaN",globalThis.isNaN);s(this,"parseFloat",globalThis.parseFloat);s(this,"parseInt",globalThis.parseInt);s(this,"undefined",globalThis.undefined);s(this,"unescape",globalThis.unescape)}[Ci](t,r){return r?.filename?this.eval(`${t}
231
+ //# sourceURL=${r.filename}`):this.eval(t)}[kc](){}};var Fw=oy(VV(),1),UV=(l,e=[])=>(wu.readdirSync(l).forEach(r=>{let o=Yf.join(l,r);wu.statSync(o).isDirectory()?UV(o,e):o.endsWith(".html")&&e.push(o)}),e),GV=async({dir:l,logger:e},t)=>{let r=CH(l),o=t.build?.assets||"_astro",i=0,n=UV(r);for(let a of n){let y=wu.readFileSync(a,"utf-8"),d=new ry().document;d.write(y);let b=d.body.querySelectorAll("style[data-ssr-emotion]");if(!b.length)continue;let f=Array.from(b).map(mt=>mt.textContent).join(`
232
+ `).trim();if(!f)continue;let S=TH.createHash("md5").update(f).digest("hex").slice(0,10),M=`${o}/ssremo.${S}.css`,N=Yf.join(r,M);wu.existsSync(Yf.dirname(N))||wu.mkdirSync(Yf.dirname(N),{recursive:!0}),wu.writeFileSync(N,f),b.forEach(mt=>mt.remove());let K=d.createElement("link");K.rel="stylesheet",K.href=`/${t.base}/${M}`.replace(/\/+/g,"/"),d.head.appendChild(K),e.info(`Link ${Fw.default.cyan(M)} from ${Fw.default.magenta(Yf.relative(r,a))}`),i++,wu.writeFileSync(a,`<!DOCTYPE html>
233
+ `+d.documentElement.outerHTML)}i&&console.log("")};function Kxt(){let l=null;return{name:"ssr-emotion-react",hooks:{"astro:config:setup":async({addRenderer:e,updateConfig:t,config:r,logger:o})=>{let i=r.integrations?.find(n=>n.name==="@astrojs/react");if(i){let n=r.integrations.findIndex(y=>y.name==="ssr-emotion-react"),a=r.integrations.indexOf(i);n!==-1&&a!==-1&&a<n&&o.warn(`
234
234
  [ssr-emotion-react] \u26A0\uFE0F @astrojs/react detected before ssr-emotion-react.
235
235
  Emotion CSS extraction will NOT work because @astrojs/react takes precedence for rendering.
236
236
  Please move ssr-emotion-react BEFORE @astrojs/react in your astro.config integrations.
237
- `)}else try{let n=(await import("./dist-L6FGFE6Q.js")).default;t({integrations:[n()]})}catch{try{let y=CH(NH(new URL("./package.json",r.root))).resolve("@astrojs/react"),p=(await import(LH(y).href)).default;t({integrations:[p()]})}catch(a){a.code==="MODULE_NOT_FOUND"?o.error(`
237
+ `)}else try{let n=(await import("./dist-L6FGFE6Q.js")).default;t({integrations:[n()]})}catch{try{let y=NH(LH(new URL("./package.json",r.root))).resolve("@astrojs/react"),p=(await import(kH(y).href)).default;t({integrations:[p()]})}catch(a){a.code==="MODULE_NOT_FOUND"?o.error(`
238
238
  [ssr-emotion-react] \u274C @astrojs/react is not installed.
239
239
  This integration requires @astrojs/react to function correctly.
240
240
  Please install it: npm install @astrojs/react
241
241
  `):o.error(`
242
242
  [ssr-emotion-react] \u274C @astrojs/react is installed but failed to load automatically.
243
243
  Please add the react() integration to your astro.config manually.
244
- `);return}}e({name:"ssr-emotion-react",serverEntrypoint:"ssr-emotion-react/astro/render",clientEntrypoint:"ssr-emotion-react/astro/client"}),l=r,t({vite:{ssr:{external:["@emotion/css","@emotion/server"]}}})},"astro:build:done":async e=>{l&&await GV(e,l)}}}}export{qxt as default};
244
+ `);return}}e({name:"ssr-emotion-react",serverEntrypoint:"ssr-emotion-react/astro/render",clientEntrypoint:"ssr-emotion-react/astro/client"}),l=r,t({vite:{ssr:{external:["@emotion/css","@emotion/server"]}}})},"astro:build:done":async e=>{l&&await GV(e,l)}}}}export{Kxt as default};