@github/copilot 0.0.338-5 → 0.0.338-7

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.
package/index.js CHANGED
@@ -1310,13 +1310,13 @@ this.Function = globalThis.Function;
1310
1310
  `,this.errorIndex=this.startTagIndex),this.readState=Za.error,this.removeOverflowingTextNodes();return}}if(this.nextElement[vr]&&!this.nextElement[rn]){this.errorMessage=`Namespace prefix ${this.nextElement[vr]} on name is not defined
1311
1311
  `,this.errorIndex=this.lastIndex,this.readState=Za.error;return}if(this.currentNode===this.rootNode&&this.rootNode[ZI].length!==0){this.errorMessage=`Extra content at the end of the document
1312
1312
  `,this.errorIndex=this.lastIndex-this.nextElement[In].length-1,this.readState=Za.error;return}this.currentNode[_I](this.nextElement,!0),l||(this.currentNode=this.nextElement,this.nodeStack.push(this.currentNode),this.tagNameStack.push(this.nextTagName),this.currentNode[rn]&&!this.currentNode[vr]?this.defaultNamespaceStack.push(this.currentNode[rn]):this.defaultNamespaceStack.push(this.defaultNamespaceStack[this.defaultNamespaceStack.length-1])),this.nextElement=null,this.nextTagName=null,this.readState=Za.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,l){let n=this.rootNode.documentElement;if(!n){let o=this.rootNode.createElementNS($r.html,"html"),d=this.rootNode.createElementNS($r.html,"body");o.appendChild(d),n=d,this.rootNode[_I](o,!0)}let I=e.split(`
1313
- `),r=I[I.length-1].length+1,a=`error on line ${I.length} at column ${r}: ${l||"Unknown error"}`,s=this.rootNode.createElementNS($r.html,"parsererror");s.setAttribute("style","display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black"),s.innerHTML=`<h3>This page contains the following errors:</h3><div style="font-family:monospace;font-size:12px">${a}</div><h3>Below is a rendering of the page up to the first error.</h3>`,n.insertBefore(s,n.firstChild)}removeOverflowingTextNodes(){if(this.currentNode&&this.currentNode!==this.rootNode)for(;this.currentNode.lastChild?.[Lt]===gI.TEXT_NODE;)this.currentNode.removeChild(this.currentNode.lastChild)}getDocumentType(e){if(!e.toUpperCase().startsWith("DOCTYPE"))return null;let l=e.split(Xne);if(l.length<=1)return null;let n=l.slice(1).join(" "),I=[],r=new RegExp(z9l,"gm"),a=n.toUpperCase().includes("PUBLIC"),s;for(;s=r.exec(n);)I.push(s[1]);let o=a&&I[0]||"",d=a?I[1]||"":I[0]||"";return{name:l[1].toLowerCase(),publicId:o,systemId:d}}};var Xz=class{parseFromString(e,l){if(!l)throw new this[f].DOMException('Second parameter "mimeType" is mandatory.');let n=this[f];switch(l){case"text/html":let I=new n.HTMLDocument;return I[Pp]=n,new rG(this[f]).parse(e,I);case"image/svg+xml":case"text/xml":case"application/xml":case"application/xhtml+xml":return new Hz(this[f]).parse(e);default:throw new n.DOMException(`Unknown mime type "${l}".`)}}};c();c();var mxe;(function(t){t[t.endToEnd=2]="endToEnd",t[t.endToStart=3]="endToStart",t[t.startToEnd=1]="startToEnd",t[t.startToStart=0]="startToStart"})(mxe||(mxe={}));var xu=mxe;var kz=class{static END_TO_END=xu.endToEnd;static END_TO_START=xu.endToStart;static START_TO_END=xu.startToEnd;static START_TO_START=xu.startToStart;END_TO_END=xu.endToEnd;END_TO_START=xu.endToStart;START_TO_END=xu.startToEnd;START_TO_START=xu.startToStart;[xt];[Zl];[rt];constructor(){let e=this[f];if(!e)throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);this[rt]=e.document,this[xt]={node:e.document,offset:0},this[Zl]={node:e.document,offset:0}}get startContainer(){return this[xt].node}get endContainer(){return this[Zl].node}get startOffset(){if(this[xt].offset>0){let e=QI.getNodeLength(this[xt].node);this[xt].offset>e&&(this[xt].offset=e)}return this[xt].offset}get endOffset(){if(this[Zl].offset>0){let e=QI.getNodeLength(this[Zl].node);this[Zl].offset>e&&(this[Zl].offset=e)}return this[Zl].offset}get collapsed(){return this[xt].node===this[Zl].node&&this.startOffset===this.endOffset}get commonAncestorContainer(){let e=this[xt].node;for(;e;){if(QI.isInclusiveAncestor(e,this[Zl].node))return e;e=e[ol]}return null}collapse(e=!1){e?this[Zl]=Object.assign({},this[xt]):this[xt]=Object.assign({},this[Zl])}compareBoundaryPoints(e,l){if(e!==xu.startToStart&&e!==xu.startToEnd&&e!==xu.endToEnd&&e!==xu.endToStart)throw new this[f].DOMException(`The comparison method provided must be one of '${xu.startToStart}', '${xu.startToEnd}', '${xu.endToEnd}' or '${xu.endToStart}'.`,qe.notSupportedError);if(this[rt]!==l[rt])throw new this[f].DOMException("The two Ranges are not in the same tree.",qe.wrongDocumentError);let n={node:null,offset:0},I={node:null,offset:0};switch(e){case xu.startToStart:n.node=this[xt].node,n.offset=this.startOffset,I.node=l[xt].node,I.offset=l.startOffset;break;case xu.startToEnd:n.node=this[Zl].node,n.offset=this.endOffset,I.node=l[xt].node,I.offset=l.startOffset;break;case xu.endToEnd:n.node=this[Zl].node,n.offset=this.endOffset,I.node=l[Zl].node,I.offset=l.endOffset;break;case xu.endToStart:n.node=this[xt].node,n.offset=this.startOffset,I.node=l[Zl].node,I.offset=l.endOffset;break}return Js.compareBoundaryPointsPosition(n,I)}comparePoint(e,l){if(e[rt]!==this[rt])throw new this[f].DOMException("The two Ranges are not in the same tree.",qe.wrongDocumentError);Js.validateBoundaryPoint({node:e,offset:l});let n={node:e,offset:l};return Js.compareBoundaryPointsPosition(n,{node:this[xt].node,offset:this.startOffset})===-1?-1:Js.compareBoundaryPointsPosition(n,{node:this[Zl].node,offset:this.endOffset})===1?1:0}cloneContents(){let e=this[f],l=this[rt].createDocumentFragment(),n=this.startOffset,I=this.endOffset;if(this.collapsed)return l;if(this[xt].node===this[Zl].node&&(this[xt].node[Lt]===pt.textNode||this[xt].node[Lt]===pt.processingInstructionNode||this[xt].node[Lt]===pt.commentNode)){let d=this[xt].node.cloneNode(!1);return d[ls]=d.substringData(n,I-n),l.appendChild(d),l}let r=this[xt].node;for(;!QI.isInclusiveAncestor(r,this[Zl].node);)r=r[ol];let a=null;if(!QI.isInclusiveAncestor(this[xt].node,this[Zl].node)){let d=r.firstChild;for(;!a;)Js.isPartiallyContained(d,this)&&(a=d),d=d.nextSibling}let s=null;if(!QI.isInclusiveAncestor(this[Zl].node,this[xt].node)){let d=r.lastChild;for(;!s;)Js.isPartiallyContained(d,this)&&(s=d),d=d.previousSibling}let o=[];for(let d of r[Il])if(Js.isContained(d,this)){if(d[Lt]===pt.documentTypeNode)throw new e.DOMException("Invalid document type element.",qe.hierarchyRequestError);o.push(d)}if(a!==null&&(a[Lt]===pt.textNode||a[Lt]===pt.processingInstructionNode||a[Lt]===pt.commentNode)){let d=this[xt].node.cloneNode(!1);d[ls]=d.substringData(n,QI.getNodeLength(this[xt].node)-n),l.appendChild(d)}else if(a!==null){let d=a.cloneNode();l.appendChild(d);let u=new e.Range;u[xt].node=this[xt].node,u[xt].offset=n,u[Zl].node=a,u[Zl].offset=QI.getNodeLength(a);let G=u.cloneContents();d.appendChild(G)}for(let d of o){let u=d.cloneNode(!0);l.appendChild(u)}if(s!==null&&(s[Lt]===pt.textNode||s[Lt]===pt.processingInstructionNode||s[Lt]===pt.commentNode)){let d=this[Zl].node.cloneNode(!1);d[ls]=d.substringData(0,I),l.appendChild(d)}else if(s!==null){let d=s.cloneNode(!1);l.appendChild(d);let u=new e.Range;u[xt].node=s,u[xt].offset=0,u[Zl].node=this[Zl].node,u[Zl].offset=I;let G=u.cloneContents();d.appendChild(G)}return l}cloneRange(){let e=new this[f].Range;return e[xt].node=this[xt].node,e[xt].offset=this[xt].offset,e[Zl].node=this[Zl].node,e[Zl].offset=this[Zl].offset,e}createContextualFragment(e){return new rG(this[f]).parse(e)}deleteContents(){let e=this.startOffset,l=this.endOffset;if(this.collapsed)return;if(this[xt].node===this[Zl].node&&(this[xt].node[Lt]===pt.textNode||this[xt].node[Lt]===pt.processingInstructionNode||this[xt].node[Lt]===pt.commentNode)){this[xt].node.replaceData(e,l-e,"");return}let n=[],I=this[xt].node,r=QI.nextDescendantNode(this[Zl].node);for(;I&&I!==r;)Js.isContained(I,this)&&!Js.isContained(I[ol],this)&&n.push(I),I=QI.following(I);let a,s;if(QI.isInclusiveAncestor(this[xt].node,this[Zl].node))a=this[xt].node,s=e;else{let o=this[xt].node;for(;o&&!QI.isInclusiveAncestor(o[ol],this[Zl].node);)o=o[ol];a=o[ol],s=o[ol][Il].indexOf(o)+1}(this[xt].node[Lt]===pt.textNode||this[xt].node[Lt]===pt.processingInstructionNode||this[xt].node[Lt]===pt.commentNode)&&this[xt].node.replaceData(this.startOffset,QI.getNodeLength(this[xt].node)-this.startOffset,"");for(let o of n)o[ol].removeChild(o);(this[Zl].node[Lt]===pt.textNode||this[Zl].node[Lt]===pt.processingInstructionNode||this[Zl].node[Lt]===pt.commentNode)&&this[Zl].node.replaceData(0,l,""),this[xt].node=a,this[xt].offset=s,this[Zl].node=a,this[Zl].offset=s}detach(){}extractContents(){let e=this[f],l=this[rt].createDocumentFragment(),n=this.startOffset,I=this.endOffset;if(this.collapsed)return l;if(this[xt].node===this[Zl].node&&(this[xt].node[Lt]===pt.textNode||this[xt].node[Lt]===pt.processingInstructionNode||this[xt].node[Lt]===pt.commentNode)){let G=this[xt].node.cloneNode(!1);return G[ls]=G.substringData(n,I-n),l.appendChild(G),this[xt].node.replaceData(n,I-n,""),l}let r=this[xt].node;for(;!QI.isInclusiveAncestor(r,this[Zl].node);)r=r[ol];let a=null;if(!QI.isInclusiveAncestor(this[xt].node,this[Zl].node)){let G=r.firstChild;for(;!a;)Js.isPartiallyContained(G,this)&&(a=G),G=G.nextSibling}let s=null;if(!QI.isInclusiveAncestor(this[Zl].node,this[xt].node)){let G=r.lastChild;for(;!s;)Js.isPartiallyContained(G,this)&&(s=G),G=G.previousSibling}let o=[];for(let G of r[Il])if(Js.isContained(G,this)){if(G[Lt]===pt.documentTypeNode)throw new this[f].DOMException("Invalid document type element.",qe.hierarchyRequestError);o.push(G)}let d,u;if(QI.isInclusiveAncestor(this[xt].node,this[Zl].node))d=this[xt].node,u=n;else{let G=this[xt].node;for(;G&&!QI.isInclusiveAncestor(G[ol],this[Zl].node);)G=G[ol];d=G[ol],u=G[ol][Il].indexOf(G)+1}if(a!==null&&(a[Lt]===pt.textNode||a[Lt]===pt.processingInstructionNode||a[Lt]===pt.commentNode)){let G=this[xt].node.cloneNode(!1);G[ls]=G.substringData(n,QI.getNodeLength(this[xt].node)-n),l.appendChild(G),this[xt].node.replaceData(n,QI.getNodeLength(this[xt].node)-n,"")}else if(a!==null){let G=a.cloneNode(!1);l.appendChild(G);let p=new e.Range;p[xt].node=this[xt].node,p[xt].offset=n,p[Zl].node=a,p[Zl].offset=QI.getNodeLength(a);let h=p.extractContents();G.appendChild(h)}for(let G of o)l.appendChild(G);if(s!==null&&(s[Lt]===pt.textNode||s[Lt]===pt.processingInstructionNode||s[Lt]===pt.commentNode)){let G=this[Zl].node.cloneNode(!1);G[ls]=G.substringData(0,I),l.appendChild(G),this[Zl].node.replaceData(0,I,"")}else if(s!==null){let G=s.cloneNode(!1);l.appendChild(G);let p=new e.Range;p[xt].node=s,p[xt].offset=0,p[Zl].node=this[Zl].node,p[Zl].offset=I;let h=p.extractContents();G.appendChild(h)}return this[xt].node=d,this[xt].offset=u,this[Zl].node=d,this[Zl].offset=u,l}getBoundingClientRect(){return new zy}getClientRects(){return new QB(M)}isPointInRange(e,l=0){if(e[rt]!==this[rt])return!1;let n={node:e,offset:l};return Js.validateBoundaryPoint(n),!(Js.compareBoundaryPointsPosition(n,{node:this[xt].node,offset:this.startOffset})===-1||Js.compareBoundaryPointsPosition(n,{node:this[Zl].node,offset:this.endOffset})===1)}insertNode(e){if(this[xt].node[Lt]===pt.processingInstructionNode||this[xt].node[Lt]===pt.commentNode||this[xt].node[Lt]===pt.textNode&&!this[xt].node[ol]||e===this[xt].node)throw new this[f].DOMException("Invalid start node.",qe.hierarchyRequestError);let l=this[xt].node[Lt]===pt.textNode?this[xt].node:this[xt].node[Il][this.startOffset]||null,n=l?l[ol]:this[xt].node;this[xt].node[Lt]===pt.textNode&&(l=this[xt].node.splitText(this.startOffset)),e===l&&(l=l.nextSibling);let I=e[ol];I&&I.removeChild(e);let r=l?l[ol][Il].indexOf(l):QI.getNodeLength(n);r+=e[Lt]===pt.documentFragmentNode?QI.getNodeLength(e):1,n.insertBefore(e,l),this.collapsed&&(this[Zl].node=n,this[Zl].offset=r)}intersectsNode(e){if(e[rt]!==this[rt])return!1;let l=e[ol];if(!l)return!0;let n=l[Il].indexOf(e);return Js.compareBoundaryPointsPosition({node:l,offset:n},{node:this[Zl].node,offset:this.endOffset})===-1&&Js.compareBoundaryPointsPosition({node:l,offset:n+1},{node:this[xt].node,offset:this.startOffset})===1}selectNode(e){if(!e[ol])throw new this[f].DOMException("The given Node has no parent.",qe.invalidNodeTypeError);let l=e[ol][Il].indexOf(e);this[xt].node=e[ol],this[xt].offset=l,this[Zl].node=e[ol],this[Zl].offset=l+1}selectNodeContents(e){if(e[Lt]===pt.documentTypeNode)throw new this[f].DOMException("DocumentType Node can't be used as boundary point.",qe.invalidNodeTypeError);this[xt].node=e,this[xt].offset=0,this[Zl].node=e,this[Zl].offset=QI.getNodeLength(e)}setEnd(e,l=0){Js.validateBoundaryPoint({node:e,offset:l});let n={node:e,offset:l};(e[rt]!==this[rt]||Js.compareBoundaryPointsPosition(n,{node:this[xt].node,offset:this.startOffset})===-1)&&(this[xt].node=e,this[xt].offset=l),this[Zl].node=e,this[Zl].offset=l}setStart(e,l=0){Js.validateBoundaryPoint({node:e,offset:l});let n={node:e,offset:l};(e[rt]!==this[rt]||Js.compareBoundaryPointsPosition(n,{node:this[Zl].node,offset:this.endOffset})===1)&&(this[Zl].node=e,this[Zl].offset=l),this[xt].node=e,this[xt].offset=l}setEndAfter(e){if(!e[ol])throw new this[f].DOMException("The given Node has no parent.",qe.invalidNodeTypeError);this.setEnd(e[ol],e[ol][Il].indexOf(e)+1)}setEndBefore(e){if(!e[ol])throw new this[f].DOMException("The given Node has no parent.",qe.invalidNodeTypeError);this.setEnd(e[ol],e[ol][Il].indexOf(e))}setStartAfter(e){if(!e[ol])throw new this[f].DOMException("The given Node has no parent.",qe.invalidNodeTypeError);this.setStart(e[ol],e[ol][Il].indexOf(e)+1)}setStartBefore(e){if(!e[ol])throw new this[f].DOMException("The given Node has no parent.",qe.invalidNodeTypeError);this.setStart(e[ol],e[ol][Il].indexOf(e))}surroundContents(e){let l=this.commonAncestorContainer;if(!l)return;let n=QI.nextDescendantNode(l);for(;l&&l!==n;){if(l[Lt]!==pt.textNode&&Js.isPartiallyContained(l,this))throw new this[f].DOMException("The Range has partially contains a non-Text node.",qe.invalidStateError);l=QI.following(l)}if(e[Lt]===pt.documentNode||e[Lt]===pt.documentTypeNode||e[Lt]===pt.documentFragmentNode)throw new this[f].DOMException("Invalid element type.",qe.invalidNodeTypeError);let I=this.extractContents();for(;e.firstChild;)e.removeChild(e.firstChild);this.insertNode(e),e.appendChild(I),this.selectNode(e)}toString(){let e=this.startOffset,l=this.endOffset,n="";if(this[xt].node===this[Zl].node&&this[xt].node[Lt]===pt.textNode)return this[xt].node.data.slice(e,l);this[xt].node[Lt]===pt.textNode&&(n+=this[xt].node.data.slice(e));let I=QI.nextDescendantNode(this[Zl].node),r=this[xt].node;for(;r&&r!==I;)r[Lt]===pt.textNode&&Js.isContained(r,this)&&(n+=r.data),r=QI.following(r);return this[Zl].node[Lt]===pt.textNode&&(n+=this[Zl].node.data.slice(0,l)),n}};c();c();var F5=class extends qr{id="";startTime=0;endTime=0;pauseOnExit=!1;[O_]=null;onenter=null;onexit=null;constructor(e){if(super(),e!==M)throw new TypeError("Illegal constructor");if(!this[f])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get track(){return this[O_]}};var Lz=class extends F5{region=null;vertical="";snapToLines=!0;line=0;lineAlign="";position="auto";positionAlign="auto";size=100;align="";text="";constructor(e,l,n){super(M);let I=this[f],r=0;if(e!==void 0&&r++,l!==void 0&&r++,n!==void 0&&r++,r<3)throw new I.TypeError(`Failed to construct 'VTTCue': 3 arguments required, but only ${r} present.`);if(e=Number(e),l=Number(l),isNaN(e)||isNaN(l))throw new I.TypeError("Failed to construct 'VTTCue': The provided double value is non-finite.");this.startTime=e,this.endTime=l,this.text=String(n)}getCueAsHTML(){let e=this[f],l=e.document.createDocumentFragment();return l.appendChild(e.document.createTextNode(this.text)),l}};c();var Jz=class extends qr{[$Z]=D1.subtitles;[BF]="";[IB]="";[kte]="";[hi]="disabled";[nB]=new cC(M);[EBe]=new cC(M);oncuechange=null;constructor(e){if(super(),e!==M)throw new TypeError("Illegal constructor");if(!this[f])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[$Z]}get label(){return this[BF]}get language(){return this[IB]}get id(){return this[kte]}get mode(){return this[hi]}set mode(e){e!=="disabled"&&e!=="showing"||(this[hi]=e)}get cues(){return this[hi]==="disabled"?null:this[nB]}get activeCues(){return this[hi]==="disabled"?null:this[EBe]}addCue(e){this[nB].includes(e)||(e[O_]=this,this[nB].push(e))}removeCue(e){let l=this[nB].indexOf(e);l!==-1&&(e[O_]=null,this[nB].splice(l,1))}};c();var Bz=class t extends qr{[Yl]=[];onaddtrack=null;onchange=null;onremovetrack=null;constructor(e,l){if(super(),e!==M)throw new TypeError("Illegal constructor");this[Yl]=l;let n=new Wo(this,[t,qr]);return new Proxy(this,{get:(I,r)=>{if(r==="length")return l.length;if(r in I||typeof r=="symbol")return n.bind(r),I[r];let a=Number(r);if(!isNaN(a))return l[a]},set(I,r,a){if(n.bind(r),typeof r=="symbol")return I[r]=a,!0;let s=Number(r);return isNaN(s)&&(I[r]=a),!0},deleteProperty(I,r){if(typeof r=="symbol")return delete I[r],!0;let a=Number(r);return isNaN(a)&&delete I[r],!0},ownKeys(){return Object.keys(l)},has(I,r){if(r in I)return!0;if(typeof r=="symbol")return!1;let a=Number(r);return!isNaN(a)&&a>=0&&a<l.length},defineProperty(I,r,a){return n.preventBinding(r),r in I?(Object.defineProperty(I,r,a),!0):!1},getOwnPropertyDescriptor(I,r){if(r in I||typeof r=="symbol")return;let a=Number(r);if(!isNaN(a)&&l[a])return{value:l[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Yl].length}get[Symbol.toStringTag](){return"TextTrackList"}toLocaleString(){return"[object TextTrackList]"}toString(){return"[object TextTrackList]"}[Symbol.iterator](){return this[Yl][Symbol.iterator]()}getTrackById(e){for(let l of this[Yl])if(l.id===e)return l;return null}};c();var xz=class extends qr{[RBe]="disconnected";onconnecting=null;onconnect=null;ondisconnect=null;get state(){return this[RBe]}async watchAvailability(){}cancelWatchAvailability(){}prompt(){}};c();var T0t=dt(O0t(),1);c();var pxe;(function(t){t[t.empty=0]="empty",t[t.loading=1]="loading",t[t.done=2]="done"})(pxe||(pxe={}));var uC=pxe;c();var hxe;(function(t){t.buffer="buffer",t.binaryString="binaryString",t.dataURL="dataURL",t.text="text"})(hxe||(hxe={}));var mC=hxe;c();var Axe;(function(t){t.abort="abort",t.error="error",t.load="load",t.loadstart="loadstart",t.loadend="loadend",t.progress="progress"})(Axe||(Axe={}));var xB=Axe;import{Buffer as sOl}from"buffer";var Sz=class extends qr{error=null;result=null;readyState=uC.empty;onabort=null;onerror=null;onload=null;onloadstart=null;onloadend=null;onprogress=null;#e=!1;#t=null;#l=null;constructor(){if(super(),!this[f])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}readAsArrayBuffer(e){if(!(e instanceof _s))throw new this[f].TypeError("Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#n(e,mC.buffer)}readAsBinaryString(e){if(!(e instanceof _s))throw new this[f].TypeError("Failed to execute 'readAsBinaryString' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#n(e,mC.binaryString)}readAsDataURL(e){if(!(e instanceof _s))throw new this[f].TypeError("Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#n(e,mC.dataURL)}readAsText(e,l=null){if(!(e instanceof _s))throw new this[f].TypeError("Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#n(e,mC.text,l||"UTF-8")}abort(){let e=this[f];if(this.#t&&e.clearTimeout(this.#t),this.#l&&e.clearTimeout(this.#l),this.readyState===uC.empty||this.readyState===uC.done){this.result=null;return}this.readyState===uC.loading&&(this.readyState=uC.done,this.result=null),this.#e=!0,this.dispatchEvent(new RA(xB.abort)),this.dispatchEvent(new RA(xB.loadend))}#n(e,l,n=null){let I=this[f];if(this.readyState===uC.loading)throw new I.DOMException("The object is in an invalid state.",qe.invalidStateError);this.readyState=uC.loading,this.#t=I.setTimeout(()=>{if(this.#e){this.#e=!1;return}this.dispatchEvent(new RA(xB.loadstart));let r=e[Jr];r||(r=sOl.alloc(0)),this.dispatchEvent(new RA(xB.loadstart,{lengthComputable:!isNaN(e.size),total:e.size,loaded:r.length})),this.#l=I.setTimeout(()=>{if(this.#e){this.#e=!1;return}switch(l){default:case mC.buffer:{this.result=new Uint8Array(r).buffer;break}case mC.binaryString:{this.result=r.toString("binary");break}case mC.dataURL:{let a=T0t.default.parse(e.type)||"application/octet-stream";this.result=`data:${a};base64,${r.toString("base64")}`;break}case mC.text:{this.result=new TextDecoder(n||"UTF-8").decode(r);break}}this.readyState=uC.done,this.dispatchEvent(new RA(xB.load)),this.dispatchEvent(new RA(xB.loadend))})})}};c();import oOl from"crypto";var iOl={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}},cOl={deviceId:"",frameRate:60,resizeMode:"none"},v5=class extends qr{contentHint="";enabled=!0;id=oOl.randomUUID();muted=!1;readyState="live";label="";[BF]="";[$Z]="video";[x_]={};[WR]=JSON.parse(JSON.stringify(iOl));[xX]=JSON.parse(JSON.stringify(cOl));onended=null;onmute=null;onunmute=null;constructor(e){if(super(),e!==M)throw new TypeError("Illegal constructor");if(!this[f])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[$Z]}async applyConstraints(e){this.#e(this[x_],e)}getConstraints(){return this[x_]}getCapabilities(){return this[WR]}getSettings(){return this[xX]}clone(){let e=new this.constructor(M);return e[$Z]=this[$Z],e[x_]=this[x_],e[WR]=this[WR],e[xX]=this[xX],e.contentHint=this.contentHint,e.enabled=this.enabled,e.label=this.label,e.muted=this.muted,e.readyState=this.readyState,e}stop(){this.readyState="ended"}#e(e,l){for(let n in l)l[n]!==null&&typeof l[n]=="object"&&!Array.isArray(l[n])?(typeof e[n]!="object"&&(e[n]={}),this.#e(e[n],l[n])):e[n]=l[n]}};c();var Lne=class extends v5{[Lte];constructor(e,l){super(e),this[Lte]=l}get canvas(){return this[Lte]}requestFrame(){}clone(){let e=super.clone();return e[Lte]=this.canvas,e}};var Jne=class{static extendClasses(e){class l extends wA{}l.prototype[f]=e,e.Document=l;class n extends Wz{}n.prototype[f]=e,e.HTMLDocument=n;class I extends yz{}I.prototype[f]=e,e.XMLDocument=I;class r extends Q5{}r.prototype[f]=e,e.DocumentFragment=r;class a extends Ez{}a.prototype[f]=e,e.Text=a;class s extends Rz{}s.prototype[f]=e,e.Comment=s;class o extends Yz{}o.prototype[f]=e,e.Image=o;class d extends Fne{}d.prototype[f]=e,e.Audio=d;class u extends Vz{}u.prototype[f]=e,e.MutationObserver=u;class G extends vne{}G.prototype[f]=e,e.MessagePort=G;class p extends wz{}p.prototype[f]=e,e.CSSStyleSheet=p;class h extends Kr{}e.DOMException=h;class W extends G5{}W.prototype[f]=e,e.Request=W;class y extends YA{}y.prototype[f]=e,y[f]=e,e.Response=y;class R extends qr{}R.prototype[f]=e,e.EventTarget=R;class w extends fne{}w.prototype[f]=e,e.XMLHttpRequestUpload=w;class C extends dC{}C.prototype[f]=e,e.XMLHttpRequestEventTarget=C;class L extends Fz{}L.prototype[f]=e,e.AbortController=L;class x extends Cz{}x.prototype[f]=e,x[f]=e,e.AbortSignal=x;class U extends u5{}U.prototype[f]=e,e.FormData=U;class P extends vz{}P.prototype[f]=e,e.PermissionStatus=P;class _ extends Hne{}_.prototype[f]=e,e.XMLHttpRequest=_;class K extends Xz{}K.prototype[f]=e,e.DOMParser=K;class O extends kz{}O.prototype[f]=e,e.Range=O;class $ extends Lz{}$.prototype[f]=e,e.VTTCue=$;class ue extends Jz{}ue.prototype[f]=e,e.TextTrack=ue;class ge extends Bz{}ge.prototype[f]=e,e.TextTrackList=ge;class He extends F5{}He.prototype[f]=e,e.TextTrackCue=He;class ne extends xz{}ne.prototype[f]=e,e.RemotePlayback=ne;class z extends Sz{}z.prototype[f]=e,e.FileReader=z;class be extends Z5{}be.prototype[f]=e,e.MediaStream=be;class oe extends v5{}oe.prototype[f]=e,e.MediaStreamTrack=oe;class Ee extends Lne{}Ee.prototype[f]=e,e.CanvasCaptureMediaStreamTrack=Ee;class Ge extends fi{}Ge.prototype[f]=e,e.URL=Ge}};c();c();c();c();c();c();var Bne=class{[Zt]=0;[gt]=0;[Kb]=0;[rB]=1;constructor(e,l,n,I){this[Zt]=e!=null?Number(e):0,this[gt]=l!=null?Number(l):0,this[Kb]=n!=null?Number(n):0,this[rB]=I!=null?Number(I):1}get x(){return this[Zt]}get y(){return this[gt]}get z(){return this[Kb]}get w(){return this[rB]}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 SB=class extends Bne{set x(e){this[Zt]=e}get x(){return this[Zt]}set y(e){this[gt]=e}get y(){return this[gt]}set z(e){this[Kb]=e}get z(){return this[Kb]}set w(e){this[rB]=e}get w(){return this[rB]}};var Oz={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},dOl=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,uOl=/[\s,]+/,OB=class t{[Ar]=1;[fr]=0;[Oa]=0;[Ta]=0;[Zr]=0;[Hr]=1;[Ua]=0;[Ma]=0;[ha]=0;[Va]=0;[Qa]=1;[Aa]=0;[gr]=0;[Xr]=0;[wa]=0;[Fa]=1;constructor(e){e&&this[T_](e)}get a(){return this[Ar]}get b(){return this[fr]}get c(){return this[Zr]}get d(){return this[Hr]}get e(){return this[gr]}get f(){return this[Xr]}get m11(){return this[Ar]}get m12(){return this[fr]}get m13(){return this[Oa]}get m14(){return this[Ta]}get m21(){return this[Zr]}get m22(){return this[Hr]}get m23(){return this[Ua]}get m24(){return this[Ma]}get m31(){return this[ha]}get m32(){return this[Va]}get m33(){return this[Qa]}get m34(){return this[Aa]}get m41(){return this[gr]}get m42(){return this[Xr]}get m43(){return this[wa]}get m44(){return this[Fa]}get isIdentity(){return this[Ar]===1&&this[fr]===0&&this[Oa]===0&&this[Ta]===0&&this[Zr]===0&&this[Hr]===1&&this[Ua]===0&&this[Ma]===0&&this[ha]===0&&this[Va]===0&&this[Qa]===1&&this[Aa]===0&&this[gr]===0&&this[Xr]===0&&this[wa]===0&&this[Fa]===1}get is2D(){return this[ha]===0&&this[Va]===0&&this[Qa]===1&&this[Aa]===0&&this[wa]===0&&this[Fa]===1}toFloat32Array(e){return Float32Array.from(this[ule](e))}toFloat64Array(e){return Float64Array.from(this[ule](e))}toString(){let e=this.is2D,l=this[ule](e).join(", ");return`${e?"matrix":"matrix3d"}(${l})`}toJSON(){let{is2D:e,isIdentity:l}=this;return{m11:this[Ar],m12:this[fr],m13:this[Oa],m14:this[Ta],m21:this[Zr],m22:this[Hr],m23:this[Ua],m24:this[Ma],m31:this[ha],m32:this[Va],m33:this[Qa],m34:this[Aa],m41:this[gr],m42:this[Xr],m43:this[wa],m44:this[Fa],a:this[Ar],b:this[fr],c:this[Zr],d:this[Hr],e:this[gr],f:this[Xr],is2D:e,isIdentity:l}}multiply(e){let l=new this.constructor(this);return l[lg](e),l}translate(e=0,l=0,n=0){let I=new this.constructor(this);return I[tg](e,l,n),I}scale(e,l,n=1,I=0,r=0,a=0){let s=new this.constructor(this);return s[w1](e,l,n,I,r,a),s}scale3d(e=1,l=0,n=0,I=0){let r=new this.constructor(this);return r[mle](e,l,n,I),r}scaleNonUniform(e=1,l=1){let n=new this.constructor(this);return n[Gle](e,l),n}rotateAxisAngle(e=0,l=0,n=0,I=0){let r=new this.constructor(this);return r[OF](e,l,n,I),r}rotate(e=0,l,n){let I=new this.constructor(this);return I[SF](e,l,n),I}rotateFromVector(e=0,l=0){let n=new this.constructor(this);return n[Ple](e,l),n}skewX(e){let l=new this.constructor(this);return l[sB](e),l}skewY(e){let l=new this.constructor(this);return l[oB](e),l}flipX(){let e=new this.constructor(this);return e[jle](),e}flipY(){let e=new this.constructor(this);return e[Kle](),e}inverse(){let e=new this.constructor(this);return e[qle](),e}transformPoint(e){let l=e.x??0,n=e.y??0,I=e.z??0,r=e.w??1,a=this[Ar]*l+this[Zr]*n+this[ha]*I+this[gr]*r,s=this[fr]*l+this[Hr]*n+this[Va]*I+this[Xr]*r,o=this[Oa]*l+this[Ua]*n+this[Qa]*I+this[wa]*r,d=this[Ta]*l+this[Ma]*n+this[Aa]*I+this[Fa]*r;return new SB(a,s,o,d)}[T_](e){let l=null;if(typeof e=="string"&&e.length&&e!=="none")l=this.constructor[aB](e);else if(Array.isArray(e)||e instanceof Float64Array||e instanceof Float32Array)l=this.constructor[eg](e);else if(typeof e=="object")l=this.constructor.fromMatrix(e);else return;this[Ar]=l[Ar],this[fr]=l[fr],this[Oa]=l[Oa],this[Ta]=l[Ta],this[Zr]=l[Zr],this[Hr]=l[Hr],this[Ua]=l[Ua],this[Ma]=l[Ma],this[ha]=l[ha],this[Va]=l[Va],this[Qa]=l[Qa],this[Aa]=l[Aa],this[gr]=l[gr],this[Xr]=l[Xr],this[wa]=l[wa],this[Fa]=l[Fa]}[lg](e){let l=e;l instanceof t||(l?.m11===void 0&&l?.a!==void 0?(l=Object.assign({},Oz,l),l.m11=l.a,l.m12=l.b,l.m21=l.c,l.m22=l.d,l.m41=l.e,l.m42=l.f):l=Object.assign({},Oz,l));let n=this[Ar]*l.m11+this[Zr]*l.m12+this[ha]*l.m13+this[gr]*l.m14,I=this[Ar]*l.m21+this[Zr]*l.m22+this[ha]*l.m23+this[gr]*l.m24,r=this[Ar]*l.m31+this[Zr]*l.m32+this[ha]*l.m33+this[gr]*l.m34,a=this[Ar]*l.m41+this[Zr]*l.m42+this[ha]*l.m43+this[gr]*l.m44,s=this[fr]*l.m11+this[Hr]*l.m12+this[Va]*l.m13+this[Xr]*l.m14,o=this[fr]*l.m21+this[Hr]*l.m22+this[Va]*l.m23+this[Xr]*l.m24,d=this[fr]*l.m31+this[Hr]*l.m32+this[Va]*l.m33+this[Xr]*l.m34,u=this[fr]*l.m41+this[Hr]*l.m42+this[Va]*l.m43+this[Xr]*l.m44,G=this[Oa]*l.m11+this[Ua]*l.m12+this[Qa]*l.m13+this[wa]*l.m14,p=this[Oa]*l.m21+this[Ua]*l.m22+this[Qa]*l.m23+this[wa]*l.m24,h=this[Oa]*l.m31+this[Ua]*l.m32+this[Qa]*l.m33+this[wa]*l.m34,W=this[Oa]*l.m41+this[Ua]*l.m42+this[Qa]*l.m43+this[wa]*l.m44,y=this[Ta]*l.m11+this[Ma]*l.m12+this[Aa]*l.m13+this[Fa]*l.m14,R=this[Ta]*l.m21+this[Ma]*l.m22+this[Aa]*l.m23+this[Fa]*l.m24,w=this[Ta]*l.m31+this[Ma]*l.m32+this[Aa]*l.m33+this[Fa]*l.m34,C=this[Ta]*l.m41+this[Ma]*l.m42+this[Aa]*l.m43+this[Fa]*l.m44;this[Ar]=n,this[fr]=s,this[Oa]=G,this[Ta]=y,this[Zr]=I,this[Hr]=o,this[Ua]=p,this[Ma]=R,this[ha]=r,this[Va]=d,this[Qa]=h,this[Aa]=w,this[gr]=a,this[Xr]=u,this[wa]=W,this[Fa]=C}[tg](e=0,l=0,n=0){let I=this.constructor[eg]([1,0,0,0,0,1,0,0,0,0,1,0,e,l,n,1]);this[lg](I)}[w1](e,l,n=1,I=0,r=0,a=0){e=e===void 0?1:Number(e),l=l===void 0?e:Number(l),(I!==0||r!==0||a!==0)&&this[tg](I,r,a),(e!==1||l!==1||n!==1)&&this[lg](this.constructor[eg]([e,0,0,0,0,l,0,0,0,0,n,0,0,0,0,1])),(I!==0||r!==0||a!==0)&&this[tg](-I,-r,-a)}[mle](e=1,l=0,n=0,I=0){(l!==0||n!==0||I!==0)&&this[tg](l,n,I),e!==1&&this[lg](this.constructor[eg]([e,0,0,0,0,e,0,0,0,0,e,0,0,0,0,1])),(l!==0||n!==0||I!==0)&&this[tg](-l,-n,-I)}[Gle](e=1,l=1){e===1&&l===1||this[lg](this.constructor[eg]([e,0,0,0,0,l,0,0,0,0,1,0,0,0,0,1]))}[OF](e=0,l=0,n=0,I=0){if(e=Number(e),l=Number(l),n=Number(n),I=Number(I),isNaN(e)||isNaN(l)||isNaN(n)||isNaN(I))throw new TypeError("Failed to execute 'rotateAxisAngleSelf' on 'DOMMatrix': The arguments must be numbers.");let r=Math.hypot(e,l,n);if(r===0)return;r!==1&&(e/=r,l/=r,n/=r);let a=-(I*Math.PI/360),s=this.#e,o=Math.sin(a)*Math.cos(a),d=Math.sin(a)*Math.sin(a),u=s(1-2*(l*l+n*n)*d),G=s(2*(e*l*d+n*o)),p=s(2*(e*n*d-l*o)),h=s(2*(e*l*d-n*o)),W=s(1-2*(e*e+n*n)*d),y=s(2*(l*n*d+e*o)),R=s(2*(e*n*d+l*o)),w=s(2*(l*n*d-e*o)),C=s(1-2*(e*e+l*l)*d),L=this.constructor[eg]([u,h,R,0,G,W,w,0,p,y,C,0,0,0,0,1]);this[lg](L)}[SF](e=0,l,n){if(l===void 0&&n===void 0&&(n=e,e=0,l=0),l===void 0&&(l=0),n===void 0&&(n=0),e=Number(e),l=Number(l),n=Number(n),isNaN(e)||isNaN(l)||isNaN(n))throw new TypeError("Failed to execute 'rotateSelf' on 'DOMMatrix': The arguments must be numbers.");n!==0&&this[OF](0,0,1,n),l!==0&&this[OF](0,1,0,l),e!==0&&this[OF](1,0,0,e)}[Ple](e=0,l=0){e===0&&l===0||this[SF](Math.atan2(l,e)*180/Math.PI)}[sB](e){let l=Object.assign({},Oz),n=Math.tan(e*Math.PI/180);l.m21=n,l.c=n,this[lg](l)}[oB](e){let l=Object.assign({},Oz),n=Math.tan(e*Math.PI/180);l.m12=n,l.b=n,this[lg](l)}[jle](){let e=this.constructor[eg]([-1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);this[lg](e)}[Kle](){let e=this.constructor[eg]([1,0,0,0,0,-1,0,0,0,0,1,0,0,0,0,1]);this[lg](e)}[qle](){let e=this[Hr]*this[Qa]*this[Fa]-this[Hr]*this[Aa]*this[wa]-this[Va]*this[Ua]*this[Fa]+this[Va]*this[Ma]*this[wa]+this[Xr]*this[Ua]*this[Aa]-this[Xr]*this[Ma]*this[Qa],l=-this[fr]*this[Qa]*this[Fa]+this[fr]*this[Aa]*this[wa]+this[Va]*this[Oa]*this[Fa]-this[Va]*this[Ta]*this[wa]-this[Xr]*this[Oa]*this[Aa]+this[Xr]*this[Ta]*this[Qa],n=this[fr]*this[Ua]*this[Fa]-this[fr]*this[Ma]*this[wa]-this[Hr]*this[Oa]*this[Fa]+this[Hr]*this[Ta]*this[wa]+this[Xr]*this[Oa]*this[Ma]-this[Xr]*this[Ta]*this[Ua],I=-this[fr]*this[Ua]*this[Aa]+this[fr]*this[Ma]*this[Qa]+this[Hr]*this[Oa]*this[Aa]-this[Hr]*this[Ta]*this[Qa]-this[Va]*this[Oa]*this[Ma]+this[Va]*this[Ta]*this[Ua],r=this[Ar]*e+this[Zr]*l+this[ha]*n+this[gr]*I;if(r===0){this[Ar]=NaN,this[fr]=NaN,this[Oa]=NaN,this[Ta]=NaN,this[Zr]=NaN,this[Hr]=NaN,this[Ua]=NaN,this[Ma]=NaN,this[ha]=NaN,this[Va]=NaN,this[Qa]=NaN,this[Aa]=NaN,this[gr]=NaN,this[Xr]=NaN,this[wa]=NaN,this[Fa]=NaN;return}let a=-this[Zr]*this[Qa]*this[Fa]+this[Zr]*this[Aa]*this[wa]+this[ha]*this[Ua]*this[Fa]-this[ha]*this[Ma]*this[wa]-this[gr]*this[Ua]*this[Aa]+this[gr]*this[Ma]*this[Qa],s=this[Ar]*this[Qa]*this[Fa]-this[Ar]*this[Aa]*this[wa]-this[ha]*this[Oa]*this[Fa]+this[ha]*this[Ta]*this[wa]+this[gr]*this[Oa]*this[Aa]-this[gr]*this[Ta]*this[Qa],o=-this[Ar]*this[Ua]*this[Fa]+this[Ar]*this[Ma]*this[wa]+this[Zr]*this[Oa]*this[Fa]-this[Zr]*this[Ta]*this[wa]-this[gr]*this[Oa]*this[Ma]+this[gr]*this[Ta]*this[Ua],d=this[Ar]*this[Ua]*this[Aa]-this[Ar]*this[Ma]*this[Qa]-this[Zr]*this[Oa]*this[Aa]+this[Zr]*this[Ta]*this[Qa]+this[ha]*this[Oa]*this[Ma]-this[ha]*this[Ta]*this[Ua],u=this[Zr]*this[Va]*this[Fa]-this[Zr]*this[Aa]*this[Xr]-this[ha]*this[Hr]*this[Fa]+this[ha]*this[Ma]*this[Xr]+this[gr]*this[Hr]*this[Aa]-this[gr]*this[Ma]*this[Va],G=-this[Ar]*this[Va]*this[Fa]+this[Ar]*this[Aa]*this[Xr]+this[ha]*this[fr]*this[Fa]-this[ha]*this[Ta]*this[Xr]-this[gr]*this[fr]*this[Aa]+this[gr]*this[Ta]*this[Va],p=this[Ar]*this[Hr]*this[Fa]-this[Ar]*this[Ma]*this[Xr]-this[Zr]*this[fr]*this[Fa]+this[Zr]*this[Ta]*this[Xr]+this[gr]*this[fr]*this[Ma]-this[gr]*this[Ta]*this[Hr],h=-this[Ar]*this[Hr]*this[Aa]+this[Ar]*this[Ma]*this[Va]+this[Zr]*this[fr]*this[Aa]-this[Zr]*this[Ta]*this[Va]-this[ha]*this[fr]*this[Ma]+this[ha]*this[Ta]*this[Hr],W=-this[Zr]*this[Va]*this[wa]+this[Zr]*this[Qa]*this[Xr]+this[ha]*this[Hr]*this[wa]-this[ha]*this[Ua]*this[Xr]-this[gr]*this[Hr]*this[Qa]+this[gr]*this[Ua]*this[Va],y=this[Ar]*this[Va]*this[wa]-this[Ar]*this[Qa]*this[Xr]-this[ha]*this[fr]*this[wa]+this[ha]*this[Oa]*this[Xr]+this[gr]*this[fr]*this[Qa]-this[gr]*this[Oa]*this[Va],R=-this[Ar]*this[Hr]*this[wa]+this[Ar]*this[Ua]*this[Xr]+this[Zr]*this[fr]*this[wa]-this[Zr]*this[Oa]*this[Xr]-this[gr]*this[fr]*this[Ua]+this[gr]*this[Oa]*this[Hr],w=this[Ar]*this[Hr]*this[Qa]-this[Ar]*this[Ua]*this[Va]-this[Zr]*this[fr]*this[Qa]+this[Zr]*this[Oa]*this[Va]+this[ha]*this[fr]*this[Ua]-this[ha]*this[Oa]*this[Hr];this[Ar]=e/r||0,this[fr]=l/r||0,this[Oa]=n/r||0,this[Ta]=I/r||0,this[Zr]=a/r||0,this[Hr]=s/r||0,this[Ua]=o/r||0,this[Ma]=d/r||0,this[ha]=u/r||0,this[Va]=G/r||0,this[Qa]=p/r||0,this[Aa]=h/r||0,this[gr]=W/r||0,this[Xr]=y/r||0,this[wa]=R/r||0,this[Fa]=w/r||0}[ule](e=!1){return e?[this[Ar],this[fr],this[Zr],this[Hr],this[gr],this[Xr]]:[this[Ar],this[fr],this[Oa],this[Ta],this[Zr],this[Hr],this[Ua],this[Ma],this[ha],this[Va],this[Qa],this[Aa],this[gr],this[Xr],this[wa],this[Fa]]}#e(e,l=1e15){return Math.round(e*l)/l}static fromMatrix(e){return e instanceof t||(e?.m11===void 0&&e?.a!==void 0?(e=Object.assign({},Oz,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({},Oz,e)),this[eg]([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[eg](e)}static fromFloat64Array(e){return this[eg](e)}static[eg](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 l=new this;if(e.length===16){let[n,I,r,a,s,o,d,u,G,p,h,W,y,R,w,C]=e;l[Ar]=n,l[fr]=I,l[Oa]=r,l[Ta]=a,l[Zr]=s,l[Hr]=o,l[Ua]=d,l[Ma]=u,l[ha]=G,l[Va]=p,l[Qa]=h,l[Aa]=W,l[gr]=y,l[Xr]=R,l[wa]=w,l[Fa]=C}else if(e.length===6){let[n,I,r,a,s,o]=e;l[Ar]=n,l[fr]=I,l[Zr]=r,l[Hr]=a,l[gr]=s,l[Xr]=o}return l}static[aB](e){if(typeof e!="string")throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Expected '${String(e)}' to be a string.`);let l=new this,n=new RegExp(dOl),I;for(;I=n.exec(e);){let r=I[1],a=I[2].split(uOl);for(let G=0,p=a.length;G<p;G++)a[G]=this[VBe](a[G]);let[s,o,d,u]=a;switch(r){case"perspective":!isNaN(s)&&s!==0&&o===void 0&&d===void 0&&(l[Aa]=-1/s);break;case"translate":!isNaN(s)&&d===void 0&&l[tg](s,o||0,0);break;case"translate3d":!isNaN(s)&&!isNaN(o)&&!isNaN(d)&&l[tg](s,o,d);break;case"translateX":!isNaN(s)&&o===void 0&&d===void 0&&l[tg](s);break;case"translateY":!isNaN(s)&&o===void 0&&d===void 0&&l[tg](0,s);break;case"translateZ":!isNaN(s)&&o===void 0&&d===void 0&&l[tg](0,0,s);break;case"matrix":case"matrix3d":(a.length===6||a.length===16)&&l[T_](this[eg](a));break;case"rotate":case"rotateZ":!isNaN(s)&&o===void 0&&d===void 0&&l[SF](0,0,s);break;case"rotateX":!isNaN(s)&&o===void 0&&d===void 0&&l[SF](s,0,0);break;case"rotateY":!isNaN(s)&&o===void 0&&d===void 0&&l[SF](0,s,0);case"rotate3d":!isNaN(s)&&!isNaN(o)&&!isNaN(d)&&!isNaN(u)&&l[OF](s,o,d,u);break;case"scale":!isNaN(s)&&s!==1&&d===void 0&&l[w1](s,isNaN(o)?s:o);break;case"scale3d":!isNaN(s)&&!isNaN(o)&&!isNaN(d)&&l[w1](s,o,d);break;case"scaleX":!isNaN(s)&&o===void 0&&d===void 0&&l[w1](s,1,1);break;case"scaleY":!isNaN(s)&&o===void 0&&d===void 0&&l[w1](1,s,1);break;case"scaleZ":!isNaN(s)&&o===void 0&&d===void 0&&l[w1](1,1,s);break;case"skew":isNaN(s)||l[sB](s),isNaN(o)||l[oB](o);break;case"skewX":!isNaN(s)&&o===void 0&&l[sB](s);break;case"skewY":!isNaN(s)&&o===void 0&&l[oB](s);break;default:throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Unknown transform function '${I[1]}'.`)}}return l}static[VBe](e){let l=parseFloat(e);switch(e.replace(l.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 l*(180/Math.PI);case"turn":return l*360;case"px":return l;case"cm":return l*37.7812;case"mm":return l*3.7781;case"in":return l*96;case"pt":return l*1.3281;case"pc":return l*16;case"Q":return l*.945;default:return l}}};var lh=class extends OB{get a(){return this[Ar]}set a(e){this[Ar]=e}get b(){return this[fr]}set b(e){this[fr]=e}get c(){return this[Zr]}set c(e){this[Zr]=e}get d(){return this[Hr]}set d(e){this[Hr]=e}get e(){return this[gr]}set e(e){this[gr]=e}get f(){return this[Xr]}set f(e){this[Xr]=e}get m11(){return this[Ar]}set m11(e){this[Ar]=e}get m12(){return this[fr]}set m12(e){this[fr]=e}get m13(){return this[Oa]}set m13(e){this[Oa]=e}get m14(){return this[Ta]}set m14(e){this[Ta]=e}get m21(){return this[Zr]}set m21(e){this[Zr]=e}get m22(){return this[Hr]}set m22(e){this[Hr]=e}get m23(){return this[Ua]}set m23(e){this[Ua]=e}get m24(){return this[Ma]}set m24(e){this[Ma]=e}get m31(){return this[ha]}set m31(e){this[ha]=e}get m32(){return this[Va]}set m32(e){this[Va]=e}get m33(){return this[Qa]}set m33(e){this[Qa]=e}get m34(){return this[Aa]}set m34(e){this[Aa]=e}get m41(){return this[gr]}set m41(e){this[gr]=e}get m42(){return this[Xr]}set m42(e){this[Xr]=e}get m43(){return this[wa]}set m43(e){this[wa]=e}get m44(){return this[Fa]}set m44(e){this[Fa]=e}setMatrixValue(e){return this[T_](e),this}multiplySelf(e){return this[lg](e),this}translateSelf(e=0,l=0,n=0){return this[tg](e,l,n),this}scaleSelf(e,l,n=1,I=0,r=0,a=0){return this[w1](e,l,n,I,r,a),this}scale3dSelf(e=1,l=0,n=0,I=0){return this[mle](e,l,n,I),this}scaleNonUniformSelf(e=1,l=1){return this[Gle](e,l),this}rotateAxisAngleSelf(e=0,l=0,n=0,I=0){return this[OF](e,l,n,I),this}rotateSelf(e=0,l,n){return this[SF](e,l,n),this}rotateFromVectorSelf(e=0,l=0){return this[Ple](e,l),this}skewXSelf(e){return this[sB](e),this}skewYSelf(e){return this[oB](e),this}flipXSelf(){return this[jle](),this}flipYSelf(){return this[Kle](),this}invertSelf(){return this[qle](),this}};c();var mOl=/[\t\f\n\r ,]+/,BR=class t{[f];[it];[Me];[Cl]=!1;[Dt]={items:[],attributeValue:""};constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");if(this[f]=l,this[Cl]=!!n.readOnly,this[it]=n.getAttribute,this[Me]=n.setAttribute,e!==M)throw new TypeError("Illegal constructor");let I=new Wo(this,[t]);return new Proxy(this,{get:(r,a)=>{if(a==="length"||a==="numberOfItems")return r[gl]().length;if(a in r||typeof a=="symbol")return I.bind(a),r[a];let s=Number(a);if(!isNaN(s))return r[gl]()[s]},set(r,a,s){if(I.bind(a),typeof a=="symbol")return r[a]=s,!0;let o=Number(a);return isNaN(o)&&(r[a]=s),!0},deleteProperty(r,a){if(typeof a=="symbol")return delete r[a],!0;let s=Number(a);return isNaN(s)&&delete r[a],!0},ownKeys(r){return Object.keys(r[gl]())},has(r,a){if(a in r)return!0;if(typeof a=="symbol")return!1;let s=Number(a);return!isNaN(s)&&s>=0&&s<r[gl]().length},defineProperty(r,a,s){return I.preventBinding(a),a in r?(Object.defineProperty(r,a,s),!0):!1},getOwnPropertyDescriptor(r,a){if(a in r||typeof a=="symbol")return;let s=Number(a),o=r[gl]();if(!isNaN(s)&&o[s])return{value:o[s],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[gl]().length}get numberOfItems(){return this[gl]().length}[Symbol.iterator](){return this[gl]().values()}clear(){this[Dt].attributeValue="",this[Dt].items=[],this[Me]("")}initialize(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'initialize' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[f].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[Me](e),e}getItem(e){let l=this[gl]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),l[e]?l[e]:null}insertItemBefore(e,l){if(this[Cl])throw new this[f].TypeError("Failed to execute 'insertItemBefore' on 'SVGStringList': The object is read-only.");if(arguments.length<2)throw new this[f].TypeError(`Failed to execute 'insertItemBefore' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e)return e;let n=this[gl](),I=n.indexOf(e);return I!==-1&&n.splice(I,1),l<0?l=0:l>n.length&&(l=n.length),n.splice(l,0,e),this[Me](n.join(" ")),e}replaceItem(e,l){if(this[Cl])throw new this[f].TypeError("Failed to execute 'replaceItem' on 'SVGStringList': The object is read-only.");if(arguments.length<2)throw new this[f].TypeError(`Failed to execute 'replaceItem' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e)return this.removeItem(l);let n=this[gl]();l<0?l=0:l>=n.length&&(l=n.length-1);let I=n[l];return n[l]=e,this[Me](n.join(" ")),I}removeItem(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'removeItem' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[f].TypeError(`Failed to execute 'removeItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`);let l=this[gl]();if(e=Number(e),isNaN(e)&&(e=0),e>=l.length)throw new this[f].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${e}) is greater than the maximum bound.`,qe.indexSizeError);if(e<0)throw new this[f].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${e}) is negative.`,qe.indexSizeError);let n=l[e];return l.splice(e,1),this[Me](l.join(" ")),n}appendItem(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'appendItem' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[f].TypeError(`Failed to execute 'appendItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`);if(e=String(e),!e)return e;let l=this[gl](),n=l.indexOf(e);return n!==-1&&l.splice(n,1),l.push(e),this[Me](l.join(" ")),e}[gl](){let e=this[it]()??"",l=this[Dt];if(l.attributeValue===e)return l.items;let n=[],I=e.trim();if(I)for(let r of I.split(mOl))n.includes(r)||n.push(r);return l.attributeValue=e,l.items=n,n}};c();c();c();c();var GOl=/([a-zA-Z0-9]+)\(([^)]+)\)/,bOl=/[\s,]+/,q1=class t{[f];[it]=null;[Me]=null;[yt]=null;[Cl]=!1;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,n&&(this[Cl]=!!n.readOnly,this[it]=n.getAttribute||null,this[Me]=n.setAttribute||null)}get a(){return this[sc]().a}set a(e){if(this[Cl])return;let l=this[sc]();l.a=e,this[IG](l)}get b(){return this[sc]().b}set b(e){if(this[Cl])return;let l=this[sc]();l.b=e,this[IG](l)}get c(){return this[sc]().c}set c(e){if(this[Cl])return;let l=this[sc]();l.c=e,this[IG](l)}get d(){return this[sc]().d}set d(e){if(this[Cl])return;let l=this[sc]();l.d=e,this[IG](l)}get e(){return this[sc]().e}set e(e){if(this[Cl])return;let l=this[sc]();l.e=e,this[IG](l)}get f(){return this[sc]().f}set f(e){if(this[Cl])return;let l=this[sc]();l.f=e,this[IG](l)}multiply(e){if(!(e instanceof t))throw new this[f].TypeError("Failed to execute 'multiply' on 'SVGMatrix': parameter 1 is not of type 'SVGMatrix'.");let l=this[sc](),n=new t(M,this[f]);return l.multiplySelf(e[sc]()),n[IG](l),n}translate(e=0,l=0){let n=this[sc](),I=new t(M,this[f]);return n.translateSelf(e,l),I[IG](n),I}scale(e){let l=this[sc](),n=new t(M,this[f]);return l.scaleSelf(e),n[IG](l),n}scaleNonUniform(e=1,l=1){let n=this[sc](),I=new t(M,this[f]);return n.scaleNonUniformSelf(e,l),I[IG](n),I}rotate(e){let l=this[sc](),n=new t(M,this[f]);return l.rotateSelf(e),n[IG](l),n}rotateFromVector(e=0,l=0){let n=this[sc](),I=new t(M,this[f]);return n.rotateFromVectorSelf(e,l),I[IG](n),I}skewX(e){let l=this[sc](),n=new t(M,this[f]);return l.skewXSelf(e),n[IG](l),n}skewY(e){let l=this[sc](),n=new t(M,this[f]);return l.skewYSelf(e),n[IG](l),n}flipX(){let e=this[sc](),l=new t(M,this[f]);return e.flipXSelf(),l[IG](e),l}flipY(){let e=this[sc](),l=new t(M,this[f]);return e.flipYSelf(),l[IG](e),l}inverse(){let e=this[sc](),l=new t(M,this[f]);return e.invertSelf(),l[IG](e),l}[sc](){let e=this[it]?this[it]():this[yt];if(!e)return new lh;let l=e.match(GOl);if(!l)return new lh;let n=[];for(let I of l[2].trim().split(bOl)){let r=Number(I);if(isNaN(r))throw new this[f].TypeError(`Failed to parse transform attribute: Expected number, but got "${I}" in "${e}".`);n.push(r)}switch(l[1]){case"matrix":if(n.length!==6)throw new this[f].TypeError(`Failed to parse transform attribute: Expected 6 parameters in "${e}".`);return lh[aB](e);case"scale":case"translate":if(n.length!==1&&n.length!==2)throw new this[f].TypeError(`Failed to parse transform attribute: Expected 1 or 2 parameters in "${e}".`);return lh[aB](e);case"skewY":case"skewX":if(n.length!==1)throw new this[f].TypeError(`Failed to parse transform attribute: Expected 1 parameter in "${e}".`);return lh[aB](e);case"rotate":let I=new lh;if(n.length!==1&&n.length!==3)throw new this[f].TypeError(`Failed to parse transform attribute: Expected 1 or 3 parameters in "${e}".`);let[r,a,s]=n;(a||s)&&I.translateSelf(a,s);let o=r*Math.PI/180;return I.multiplySelf(new lh([Math.cos(o),Math.sin(o),-Math.sin(o),Math.cos(o),0,0])),(a||s)&&I.translateSelf(-a,-s),I;default:throw new this[f].TypeError(`Failed to parse transform attribute: Unknown transformation "${e}".`)}}[IG](e){this[yt]=e.toString().replace(/, /g," "),this[Me]&&this[Me](this[yt])}};c();var Zxe;(function(t){t[t.unknown=0]="unknown",t[t.matrix=1]="matrix",t[t.translate=2]="translate",t[t.scale=3]="scale",t[t.rotate=4]="rotate",t[t.skewX=5]="skewX",t[t.skewY=6]="skewY"})(Zxe||(Zxe={}));var CA=Zxe;var U0t=/([a-zA-Z0-9]+)\(([^)]+)\)/,pOl=/[\s,]+/,og=class{static SVG_TRANSFORM_UNKNOWN=CA.unknown;static SVG_TRANSFORM_MATRIX=CA.matrix;static SVG_TRANSFORM_TRANSLATE=CA.translate;static SVG_TRANSFORM_SCALE=CA.scale;static SVG_TRANSFORM_ROTATE=CA.rotate;static SVG_TRANSFORM_SKEWX=CA.skewX;static SVG_TRANSFORM_SKEWY=CA.skewY;[f];[it]=null;[Me]=null;[yt]=null;[Cl]=!1;[TF]=null;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,n&&(this[Cl]=!!n.readOnly,this[it]=n.getAttribute||null,this[Me]=n.setAttribute||null)}get type(){let l=(this[it]?this[it]():this[yt])?.match(U0t);if(!l)return CA.unknown;switch(l[1]){case"matrix":return CA.matrix;case"translate":return CA.translate;case"rotate":return CA.rotate;case"scale":return CA.scale;case"skewX":return CA.skewX;case"skewY":return CA.skewY}return 0}get angle(){let l=(this[it]?this[it]():this[yt])?.match(U0t);if(!l)return 0;let n=parseFloat(l[2].trim().split(pOl)[0]);if(isNaN(n))return 0;switch(l[1]){case"rotate":case"skewX":case"skewY":return n}return 0}get matrix(){return this[TF]||(this[TF]=new q1(M,this[f],{readOnly:this[Cl],getAttribute:()=>this[it]?this[it]():this[yt],setAttribute:e=>{if(this[yt]=e,this[Me]){this[Me](e);return}}})),this[TF]}setMatrix(e){if(!(e instanceof q1))throw new TypeError('Failed to set the "matrix" property on "SVGTransform": The provided value is not of type "SVGMatrix".');this[Cl]||(this[TF]&&(this[TF][it]=null,this[TF][Me]=null),e[it]=()=>this[it]?this[it]():this[yt],e[Me]=l=>{if(this[yt]=l,this[Me]){this[Me](l);return}},this[TF]=e,e[yt]!==this[yt]&&(this[yt]=e[yt],this[Me]&&this[Me](this[yt]||"")))}setTranslate(e,l){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),l=Number(l),isNaN(e)||isNaN(l))throw new TypeError("Failed to execute 'setTranslate' on 'SVGTransform': The provided float value is non-finite.");this[Cl]||(this[yt]=`translate(${e} ${l})`,this[Me]&&this[Me](this[yt]))}setScale(e,l){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),l=Number(l),isNaN(e)||isNaN(l))throw new TypeError("Failed to execute 'setScale' on 'SVGTransform': The provided float value is non-finite.");this[Cl]||(this[yt]=`scale(${e} ${l})`,this[Me]&&this[Me](this[yt]))}setRotate(e,l,n){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),l=Number(l),n=Number(n),isNaN(e)||isNaN(l)||isNaN(n))throw new TypeError("Failed to execute 'setRotate' on 'SVGTransform': The provided float value is non-finite.");this[Cl]||(this[yt]=`rotate(${e} ${l} ${n})`,this[Me]&&this[Me](this[yt]))}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[Cl]||(this[yt]=`skewX(${e})`,this[Me]&&this[Me](this[yt]))}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[Cl]||(this[yt]=`skewY(${e})`,this[Me]&&this[Me](this[yt]))}};var hOl=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,GC="matrix(1 0 0 1 0 0)",f5=class t{[f];[it];[Me];[Cl]=!1;[Dt]={items:[],attributeValue:""};constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,this[Cl]=!!n.readOnly,this[it]=n.getAttribute,this[Me]=n.setAttribute;let I=new Wo(this,[t]);return new Proxy(this,{get:(r,a)=>{if(a==="length"||a==="numberOfItems")return r[gl]().length;if(a in r||typeof a=="symbol")return I.bind(a),r[a];let s=Number(a);if(!isNaN(s))return r[gl]()[s]},set(r,a,s){if(I.bind(a),typeof a=="symbol")return r[a]=s,!0;let o=Number(a);return isNaN(o)&&(r[a]=s),!0},deleteProperty(r,a){if(typeof a=="symbol")return delete r[a],!0;let s=Number(a);return isNaN(s)&&delete r[a],!0},ownKeys(r){return Object.keys(r[gl]())},has(r,a){if(a in r)return!0;if(typeof a=="symbol")return!1;let s=Number(a);return!isNaN(s)&&s>=0&&s<r[gl]().length},defineProperty(r,a,s){return I.preventBinding(a),a in r?(Object.defineProperty(r,a,s),!0):!1},getOwnPropertyDescriptor(r,a){if(a in r||typeof a=="symbol")return;let s=Number(a),o=r[gl]();if(!isNaN(s)&&o[s])return{value:o[s],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[gl]().length}get numberOfItems(){return this[gl]().length}[Symbol.iterator](){return this[gl]().values()}clear(){if(this[Cl])throw new this[f].TypeError("Failed to execute 'clear' on 'SVGTransformList': The object is read-only.");for(let e of this[Dt].items)e[it]=null,e[Me]=null;this[Dt].items=[],this[Dt].attributeValue="",this[Me]("")}initialize(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'initialize' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[f].TypeError(`Failed to execute 'initialize' on 'SVGTransformList': 1 arguments required, but only ${arguments.length} present.`);if(!(e instanceof og))throw new this[f].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");for(let l of this[Dt].items)l[it]=null,l[Me]=null;return e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(l=>l[yt]||GC).join(" "),this[Me](this[Dt].attributeValue)},this[Dt].items=[e],this[Dt].attributeValue=e[yt],this[Me](e[yt]||""),e}getItem(e){let l=this[gl]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),l[e]?l[e]:null}insertItemBefore(e,l){if(this[Cl])throw new this[f].TypeError("Failed to execute 'insertItemBefore' on 'SVGTransformList': The object is read-only.");if(arguments.length<2)throw new this[f].TypeError(`Failed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof og))throw new this[f].TypeError("Failed to execute 'insertItemBefore' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let n=this[gl](),I=n.indexOf(e);return I!==-1&&n.splice(I,1),l<0?l=0:l>n.length&&(l=n.length),n.splice(l,0,e),e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(r=>r[yt]||GC).join(" "),this[Me](this[Dt].attributeValue)},this[Dt].attributeValue=n.map(r=>r[yt]||GC).join(" "),this[Me](this[Dt].attributeValue),e}replaceItem(e,l){if(this[Cl])throw new this[f].TypeError("Failed to execute 'replaceItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<2)throw new this[f].TypeError(`Failed to execute 'replaceItem' on 'SVGTransformList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof og))throw new this[f].TypeError("Failed to execute 'replaceItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let n=this[gl](),I=n.indexOf(e);if(I===l)return e;I!==-1&&n.splice(I,1),l<0?l=0:l>=n.length&&(l=n.length-1),n[l]&&(n[l][it]=null,n[l][Me]=null);let r=n[l];return n[l]=e,e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(a=>a[yt]||GC).join(" "),this[Me](this[Dt].attributeValue)},this[Dt].attributeValue=n.map(a=>a[yt]||GC).join(" "),this[Me](this[Dt].attributeValue),r}removeItem(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'removeItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[f].TypeError(`Failed to execute 'removeItem' on 'SVGTransformList': 1 argument required, but only ${arguments.length} present.`);let l=this[gl]();if(e=Number(e),isNaN(e)&&(e=0),e>=l.length)throw new this[f].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${e}) is greater than the maximum bound.`,qe.indexSizeError);if(e<0)throw new this[f].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${e}) is negative.`,qe.indexSizeError);let n=l[e];return n&&(n[it]=null,n[Me]=null),l.splice(e,1),this[Dt].attributeValue=l.map(I=>I[yt]||GC).join(" "),this[Me](this[Dt].attributeValue),n}appendItem(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[f].TypeError(`Failed to execute 'appendItem' on 'SVGTransformList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof og))throw new this[f].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let l=this[gl](),n=l.indexOf(e);return n!==-1&&l.splice(n,1),l.push(e),e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(I=>I[yt]||GC).join(" "),this[Me](this[Dt].attributeValue)},this[Dt].attributeValue=l.map(I=>I[yt]||GC).join(" "),this[Me](this[Dt].attributeValue),e}[gl](){let e=this[it]()??"",l=this[Dt];if(l.attributeValue===e)return l.items;if(l.items.length)for(let r of l.items)r[it]=null,r[Me]=null;let n=[],I=e.trim();if(I){let r=new RegExp(hOl),a;for(;a=r.exec(I);){let s=new og(M,this[f],{readOnly:this[Cl],getAttribute:()=>s[yt],setAttribute:()=>{this[Dt].attributeValue=this[gl]().map(o=>o[yt]||GC).join(" "),this[Me](this[Dt].attributeValue)}});s[yt]=`${a[1]}(${a[2]})`,n.push(s)}}return l.attributeValue=e,l.items=n,n}};var xR=class{[f];[it];[Me];[Ns]=null;[Ws]=null;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,this[it]=n.getAttribute,this[Me]=n.setAttribute}get animVal(){return this[Ws]||(this[Ws]=new f5(M,this[f],{readOnly:!0,getAttribute:this[it],setAttribute:()=>{}})),this[Ws]}set animVal(e){}get baseVal(){return this[Ns]||(this[Ns]=new f5(M,this[f],{getAttribute:this[it],setAttribute:this[Me]})),this[Ns]}set baseVal(e){}};var To=class extends dn{[p1]=null;[h1]=null;[Ote]=null;get oncopy(){return Fe.getEventListener(this,"oncopy")}set oncopy(e){this[q].set("oncopy",e)}get oncut(){return Fe.getEventListener(this,"oncut")}set oncut(e){this[q].set("oncut",e)}get onpaste(){return Fe.getEventListener(this,"onpaste")}set onpaste(e){this[q].set("onpaste",e)}get requiredExtensions(){return this[p1]||(this[p1]=new BR(M,this[f],{getAttribute:()=>this.getAttribute("requiredExtensions"),setAttribute:e=>this.setAttribute("requiredExtensions",e)})),this[p1]}get systemLanguage(){return this[h1]||(this[h1]=new BR(M,this[f],{getAttribute:()=>this.getAttribute("systemLanguage"),setAttribute:e=>this.setAttribute("systemLanguage",e)})),this[h1]}get transform(){return this[Ote]||(this[Ote]=new xR(M,this[f],{getAttribute:()=>this.getAttribute("transform"),setAttribute:e=>this.setAttribute("transform",e)})),this[Ote]}getBBox(){return new zy}getCTM(){return new lh}getScreenCTM(){return new lh}};c();var jy=class{[f];[it]=null;[Me]=null;[yt]=null;[Cl]=!1;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,n&&(this[Cl]=!!n.readOnly,this[it]=n.getAttribute||null,this[Me]=n.setAttribute||null)}get x(){let e=this[it]?this[it]():this[yt];if(!e)return 0;let l=e.split(/\s+/),n=Number(l[0]);return isNaN(n)?0:n}set x(e){if(this[Cl])throw new this[f].TypeError("Failed to set the 'x' property on 'SVGRect': The object is read-only.");this[yt]=`${String(typeof e=="number"?e:parseFloat(e))} ${this.y} ${this.width} ${this.height}`,this[Me]&&this[Me](this[yt])}get y(){let e=this[it]?this[it]():this[yt];if(!e)return 0;let l=e.split(/\s+/),n=Number(l[1]);return isNaN(n)?0:n}set y(e){if(this[Cl])throw new this[f].TypeError("Failed to set the 'y' property on 'SVGRect': The object is read-only.");this[yt]=`${this.x} ${String(typeof e=="number"?e:parseFloat(e))} ${this.width} ${this.height}`,this[Me]&&this[Me](this[yt])}get width(){let e=this[it]?this[it]():this[yt];if(!e)return 0;let l=e.split(/\s+/),n=Number(l[2]);return isNaN(n)?0:n}set width(e){if(this[Cl])throw new this[f].TypeError("Failed to set the 'width' property on 'SVGRect': The object is read-only.");this[yt]=`${this.x} ${this.y} ${String(typeof e=="number"?e:parseFloat(e))} ${this.height}`,this[Me]&&this[Me](this[yt])}get height(){let e=this[it]?this[it]():this[yt];if(!e)return 0;let l=e.split(/\s+/),n=Number(l[3]);return isNaN(n)?0:n}set height(e){if(this[Cl])throw new this[f].TypeError("Failed to set the 'height' property on 'SVGRect': The object is read-only.");this[yt]=`${this.x} ${this.y} ${this.width} ${String(typeof e=="number"?e:parseFloat(e))}`,this[Me]&&this[Me](this[yt])}};c();var M0t=/[\t\f\n\r, ]+/,Su=class{[f];[it]=null;[Me]=null;[yt]=null;[Cl]=!1;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,n&&(this[Cl]=!!n.readOnly,this[it]=n.getAttribute||null,this[Me]=n.setAttribute||null)}get x(){let l=((this[it]?this[it]():this[yt])||"").split(M0t);return l[0]?parseFloat(l[0]):0}set x(e){if(this[Cl])throw new this[f].TypeError("Failed to set the 'x' property on 'SVGPoint': The object is read-only.");this[yt]=`${e} ${this.y}`,this[Me]&&this[Me](this[yt])}get y(){let l=((this[it]?this[it]():this[yt])||"").split(M0t);return l[1]?parseFloat(l[1]):0}set y(e){if(this[Cl])throw new this[f].TypeError("Failed to set the 'y' property on 'SVGPoint': The object is read-only.");this[yt]=`${this.x} ${e}`,this[Me]&&this[Me](this[yt])}};c();c();var gxe;(function(t){t[t.unknown=0]="unknown",t[t.number=1]="number",t[t.percentage=2]="percentage",t[t.ems=3]="ems",t[t.exs=4]="exs",t[t.px=5]="px",t[t.cm=6]="cm",t[t.mm=7]="mm",t[t.in=8]="in",t[t.pt=9]="pt",t[t.pc=10]="pc"})(gxe||(gxe={}));var LI=gxe;var _0t=/^(\d+|\d+\.\d+)(px|em|ex|cm|mm|in|pt|pc|%|)$/,Ky=class{static SVG_LENGTHTYPE_UNKNOWN=LI.unknown;static SVG_LENGTHTYPE_NUMBER=LI.number;static SVG_LENGTHTYPE_PERCENTAGE=LI.percentage;static SVG_LENGTHTYPE_EMS=LI.ems;static SVG_LENGTHTYPE_EXS=LI.exs;static SVG_LENGTHTYPE_PX=LI.px;static SVG_LENGTHTYPE_CM=LI.cm;static SVG_LENGTHTYPE_MM=LI.mm;static SVG_LENGTHTYPE_IN=LI.in;static SVG_LENGTHTYPE_PT=LI.pt;static SVG_LENGTHTYPE_PC=LI.pc;[f];[it]=null;[Me]=null;[yt]=null;[Cl]=!1;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,n&&(this[Cl]=!!n.readOnly,this[it]=n.getAttribute||null,this[Me]=n.setAttribute||null)}get unitType(){let l=(this[it]?this[it]()||"":this[yt]||"").match(_0t);if(!l)return LI.unknown;if(isNaN(parseFloat(l[1])))return LI.unknown;switch(l[2]){case"":return LI.number;case"px":return LI.px;case"cm":return LI.cm;case"mm":return LI.mm;case"in":return LI.in;case"pt":return LI.pt;case"pc":return LI.pc;case"em":case"ex":case"%":throw new this[f].TypeError("Failed to execute 'value' on 'SVGLength': Could not resolve relative length.");default:return LI.unknown}}get value(){let l=(this[it]?this[it]()||"":this[yt]||"").match(_0t);if(!l)return 0;let n=parseFloat(l[1]);if(isNaN(n))return 0;switch(l[2]){case"":return n;case"px":return n;case"cm":return n/2.54*96;case"mm":return n/25.4*96;case"in":return n*96;case"pt":return n*72;case"pc":return n*6;case"em":case"ex":case"%":throw new this[f].TypeError("Failed to execute 'value' on 'SVGLength': Could not resolve relative length.");default:return 0}}set value(e){if(this[Cl])throw new this[f].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[f].TypeError("Failed to set the 'value' property on 'SVGLength': The provided float value is non-finite.");let l="",n=e;switch(this.unitType){case LI.number:n=e,l="";break;case LI.px:n=e,l="px";break;case LI.cm:n=e/96*2.54,l="cm";break;case LI.mm:n=e/96*25.4,l="mm";break;case LI.in:n=e/96,l="in";break;case LI.pt:n=e/72,l="pt";break;case LI.pc:n=e/6,l="pc";break;case LI.percentage:case LI.ems:case LI.exs:throw new this[f].TypeError("Failed to set the 'value' property on 'SVGLength': Could not resolve relative length.");default:break}this[yt]=String(n)+l,this[Me]&&this[Me](this[yt])}get valueAsString(){return this[it]?this[it]()||"0":this[yt]||"0"}get valueInSpecifiedUnits(){let e=this.valueAsString;return parseFloat(e)||0}newValueSpecifiedUnits(e,l){if(this[Cl])throw new this[f].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The object is read-only.");if(typeof e!="number")throw new this[f].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.");if(l=typeof l!="number"?parseFloat(String(l)):l,isNaN(l))throw new this[f].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The provided float value is non-finite.");let n="";switch(e){case LI.number:n="";break;case LI.px:n="px";break;case LI.cm:n="cm";break;case LI.mm:n="mm";break;case LI.in:n="in";break;case LI.pt:n="pt";break;case LI.pc:n="pc";break;case LI.ems:case LI.exs:case LI.percentage:throw new this[f].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Could not resolve relative length.");default:break}this[yt]=String(l)+n,this[Me]&&this[Me](this[yt])}convertToSpecifiedUnits(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': The object is read-only.");if(typeof e!="number")throw new this[f].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.");let l=this.value,n="";switch(e){case LI.number:n="";break;case LI.px:n="px";break;case LI.cm:l=l/96*2.54,n="cm";break;case LI.mm:l=l/96*25.4,n="mm";break;case LI.in:l=l/96,n="in";break;case LI.pt:l=l/72,n="pt";break;case LI.pc:l=l/6,n="pc";break;case LI.percentage:case LI.ems:case LI.exs:throw new this[f].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': Could not resolve relative length.");default:break}this[yt]=String(l)+n,this[Me]&&this[Me](this[yt])}};c();c();var Nxe;(function(t){t[t.unknown=0]="unknown",t[t.unspecified=1]="unspecified",t[t.deg=2]="deg",t[t.rad=3]="rad",t[t.grad=4]="grad"})(Nxe||(Nxe={}));var ri=Nxe;var D0t=/^(\d+|\d+\.\d+)(deg|rad|grad|turn|)$/,$1=class{static SVG_ANGLETYPE_UNKNOWN=ri.unknown;static SVG_ANGLETYPE_UNSPECIFIED=ri.unspecified;static SVG_ANGLETYPE_DEG=ri.deg;static SVG_ANGLETYPE_RAD=ri.rad;static SVG_ANGLETYPE_GRAD=ri.grad;[f];[it]=null;[Me]=null;[yt]="";[Cl]=!1;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,n&&(this[Cl]=!!n.readOnly,this[it]=n.getAttribute||null,this[Me]=n.setAttribute||null)}get unitType(){let l=(this[it]?this[it]():this[yt])?.match(D0t);if(!l)return ri.unknown;if(isNaN(parseFloat(l[1])))return ri.unknown;switch(l[2]){case"":return ri.unspecified;case"deg":return ri.deg;case"rad":return ri.rad;case"grad":return ri.grad;case"turn":return ri.unknown;default:return ri.unspecified}}get value(){let l=(this[it]?this[it]():this[yt])?.match(D0t);if(!l)return 0;let n=parseFloat(l[1]);if(isNaN(n))return 0;switch(l[2]){case"":return n;case"deg":return n;case"rad":return n*(180/Math.PI);case"grad":return n*(180/200);case"turn":return n*360;default:return n}}set value(e){if(this[Cl])throw new this[f].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[f].TypeError("Failed to set the 'value' property on 'SVGAngle': The provided float value is non-finite.");let l="",n=e;switch(this.unitType){case ri.unspecified:n=e,l="";break;case ri.deg:n=e,l="deg";break;case ri.rad:n=e/(180/Math.PI),l="rad";break;case ri.grad:n=e/(180/200),l="grad";break;case ri.unknown:n=e/360,l="turn";default:break}this[yt]=String(n)+l,this[Me]&&this[Me](this[yt])}get valueAsString(){return this[it]?this[it]()||"0":this[yt]||"0"}get valueInSpecifiedUnits(){let e=this.valueAsString;return parseFloat(e)||0}newValueSpecifiedUnits(e,l){if(this[Cl])throw new this[f].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The object is read-only.");if(typeof e!="number")throw new this[f].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.");if(l=typeof l!="number"?parseFloat(l):l,isNaN(l))throw new this[f].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The provided float value is non-finite.");let n="";switch(e){case ri.unspecified:n="";break;case ri.deg:n="deg";break;case ri.rad:n="rad";break;case ri.grad:n="grad";break;case ri.unknown:n="turn";break;default:break}this[yt]=String(l)+n,this[Me]&&this[Me](this[yt])}convertToSpecifiedUnits(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': The object is read-only.");if(typeof e!="number")throw new this[f].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.");let l=this.value,n="";switch(e){case ri.unspecified:n="";break;case ri.deg:n="deg";break;case ri.rad:n="rad",l=l/(180/Math.PI);break;case ri.grad:n="grad",l=l/(180/200);break;case ri.unknown:n="turn",l=l/360;break;default:break}this[yt]=String(l)+n,this[Me]&&this[Me](this[yt])}};c();var qy=class{[f];[it]=null;[Me]=null;[yt]=null;[Cl]=!1;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,n&&(this[Cl]=!!n.readOnly,this[it]=n.getAttribute||null,this[Me]=n.setAttribute||null)}get value(){let e=this[it]?this[it]():this[yt];return parseFloat(e||"0")}set value(e){if(this[Cl])throw new TypeError("Failed to set the 'value' property on 'SVGNumber': The object is read-only.");let l=typeof e!="number"?parseFloat(String(e)):e;if(isNaN(l))throw new TypeError("Failed to set the 'value' property on 'SVGNumber': The provided value is not a number.");this[yt]=String(e),this[Me]&&this[Me](this[yt]||"")}};c();var bC=class{[f];[it];[Me];[Ns]=null;[Ws]=null;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,this[it]=n.getAttribute,this[Me]=n.setAttribute}get animVal(){return this[Ws]||(this[Ws]=new jy(M,this[f],{readOnly:!0,getAttribute:this[it]})),this[Ws]}set animVal(e){}get baseVal(){return this[Ns]||(this[Ns]=new jy(M,this[f],{getAttribute:this[it],setAttribute:this[Me]})),this[Ns]}set baseVal(e){}};c();c();c();var Wxe;(function(t){t[t.unknown=0]="unknown",t[t.meet=1]="meet",t[t.slice=2]="slice"})(Wxe||(Wxe={}));var pC=Wxe;c();var yxe;(function(t){t[t.unknown=0]="unknown",t[t.none=1]="none",t[t.xMinYMin=2]="xMinYMin",t[t.xMidYMin=3]="xMidYMin",t[t.xMaxYMin=4]="xMaxYMin",t[t.xMinYMid=5]="xMinYMid",t[t.xMidYMid=6]="xMidYMid",t[t.xMaxYMid=7]="xMaxYMid",t[t.xMinYMax=8]="xMinYMax",t[t.xMidYMax=9]="xMidYMax",t[t.xMaxYMax=10]="xMaxYMax"})(yxe||(yxe={}));var np=yxe;var xne=Object.values(np);xne.length=xne.indexOf(0);var jge=Object.values(pC);jge.length=jge.indexOf(0);var H5=class{static SVG_MEETORSLICE_UNKNOWN=pC.unknown;static SVG_MEETORSLICE_MEET=pC.meet;static SVG_MEETORSLICE_SLICE=pC.slice;static SVG_PRESERVEASPECTRATIO_UNKNOWN=np.unknown;static SVG_PRESERVEASPECTRATIO_NONE=np.none;static SVG_PRESERVEASPECTRATIO_XMINYMIN=np.xMinYMin;static SVG_PRESERVEASPECTRATIO_XMIDYMIN=np.xMidYMin;static SVG_PRESERVEASPECTRATIO_XMAXYMIN=np.xMaxYMin;static SVG_PRESERVEASPECTRATIO_XMINYMID=np.xMinYMid;static SVG_PRESERVEASPECTRATIO_XMIDYMID=np.xMidYMid;static SVG_PRESERVEASPECTRATIO_XMAXYMID=np.xMaxYMid;static SVG_PRESERVEASPECTRATIO_XMINYMAX=np.xMinYMax;static SVG_PRESERVEASPECTRATIO_XMIDYMAX=np.xMidYMax;static SVG_PRESERVEASPECTRATIO_XMAXYMAX=np.xMaxYMax;[f];[it]=null;[Me]=null;[yt]=null;[Cl]=!1;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,n&&(this[Cl]=!!n.readOnly,this[it]=n.getAttribute||null,this[Me]=n.setAttribute||null)}get align(){let e=this[it]?this[it]():this[yt];if(!e)return np.xMidYMid;let l=e.split(/\s+/)[0];return np[l]===void 0?np.xMidYMid:np[l]}set align(e){if(this[Cl])throw new this[f].TypeError("Failed to set the 'align' property on 'SVGPreserveAspectRatio': The object is read-only.");let l=Number(e);if(isNaN(l)||l<1||l>xne.length)throw new this[f].TypeError("Failed to set the 'align' property on 'SVGPreserveAspectRatio': The alignment provided is invalid.");this[yt]=`${xne[l]} ${jge[this.meetOrSlice]}`,this[Me]&&this[Me](this[yt])}get meetOrSlice(){let e=this[it]?this[it]():this[yt];if(!e)return pC.meet;let l=e.split(/\s+/)[1];return!l||pC[l]===void 0?pC.meet:pC[l]}set meetOrSlice(e){if(this[Cl])throw new this[f].TypeError("Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The object is read-only.");let l=Number(e);if(isNaN(l)||l<1||l>2)throw new this[f].TypeError("Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The meetOrSlice provided is invalid.");this[yt]=`${xne[this.align]} ${jge[l]}`,this[Me]&&this[Me](this[yt])}};var qN=class{[f];[it];[Me];[Ns]=null;[Ws]=null;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,this[it]=n.getAttribute,this[Me]=n.setAttribute}get animVal(){return this[Ws]||(this[Ws]=new H5(M,this[f],{readOnly:!0,getAttribute:this[it]})),this[Ws]}set animVal(e){}get baseVal(){return this[Ns]||(this[Ns]=new H5(M,this[f],{getAttribute:this[it],setAttribute:this[Me]})),this[Ns]}set baseVal(e){}};c();var Gt=class{[f];[it];[Me];[Ns]=null;[Ws]=null;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,this[it]=n.getAttribute,this[Me]=n.setAttribute}get animVal(){return this[Ws]||(this[Ws]=new Ky(M,this[f],{readOnly:!0,getAttribute:this[it]})),this[Ws]}set animVal(e){}get baseVal(){return this[Ns]||(this[Ns]=new Ky(M,this[f],{getAttribute:this[it],setAttribute:this[Me]})),this[Ns]}set baseVal(e){}};var Tz=class extends To{[Ym]=null;[Zt]=null;[gt]=null;[ft]=null;[vt]=null;[Cge]=1;[A1]=null;get onafterprint(){return Fe.getEventListener(this,"onafterprint")}set onafterprint(e){this[q].set("onafterprint",e)}get onbeforeprint(){return Fe.getEventListener(this,"onbeforeprint")}set onbeforeprint(e){this[q].set("onbeforeprint",e)}get onbeforeunload(){return Fe.getEventListener(this,"onbeforeunload")}set onbeforeunload(e){this[q].set("onbeforeunload",e)}get ongamepadconnected(){return Fe.getEventListener(this,"ongamepadconnected")}set ongamepadconnected(e){this[q].set("ongamepadconnected",e)}get ongamepaddisconnected(){return Fe.getEventListener(this,"ongamepaddisconnected")}set ongamepaddisconnected(e){this[q].set("ongamepaddisconnected",e)}get onhashchange(){return Fe.getEventListener(this,"onhashchange")}set onhashchange(e){this[q].set("onhashchange",e)}get onlanguagechange(){return Fe.getEventListener(this,"onlanguagechange")}set onlanguagechange(e){this[q].set("onlanguagechange",e)}get onmessage(){return Fe.getEventListener(this,"onmessage")}set onmessage(e){this[q].set("onmessage",e)}get onmessageerror(){return Fe.getEventListener(this,"onmessageerror")}set onmessageerror(e){this[q].set("onmessageerror",e)}get onoffline(){return Fe.getEventListener(this,"onoffline")}set onoffline(e){this[q].set("onoffline",e)}get ononline(){return Fe.getEventListener(this,"ononline")}set ononline(e){this[q].set("ononline",e)}get onpagehide(){return Fe.getEventListener(this,"onpagehide")}set onpagehide(e){this[q].set("onpagehide",e)}get onpageshow(){return Fe.getEventListener(this,"onpageshow")}set onpageshow(e){this[q].set("onpageshow",e)}get onpopstate(){return Fe.getEventListener(this,"onpopstate")}set onpopstate(e){this[q].set("onpopstate",e)}get onrejectionhandled(){return Fe.getEventListener(this,"onrejectionhandled")}set onrejectionhandled(e){this[q].set("onrejectionhandled",e)}get onstorage(){return Fe.getEventListener(this,"onstorage")}set onstorage(e){this[q].set("onstorage",e)}get onunhandledrejection(){return Fe.getEventListener(this,"onunhandledrejection")}set onunhandledrejection(e){this[q].set("onunhandledrejection",e)}get onunload(){return Fe.getEventListener(this,"onunload")}set onunload(e){this[q].set("onunload",e)}get preserveAspectRatio(){return this[Ym]||(this[Ym]=new qN(M,this[f],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:e=>this.setAttribute("preserveAspectRatio",e)})),this[Ym]}get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}get currentScale(){return this[Cge]}set currentScale(e){let l=typeof e!="number"?parseFloat(String(e)):e;if(isNaN(l))throw this[f].TypeError("Failed to set the 'currentScale' property on 'SVGSVGElement': The provided float value is non-finite.");l<1||(this[Cge]=l)}get currentTranslate(){return new Su(M,this[f])}get viewBox(){return this[A1]||(this[A1]=new bC(M,this[f],{getAttribute:()=>this.getAttribute("viewBox"),setAttribute:e=>this.setAttribute("viewBox",e)})),this[A1]}pauseAnimations(){}unpauseAnimations(){}animationsPaused(){return!1}getCurrentTime(){return 0}setCurrentTime(e){}getIntersectionList(e,l){return new _N(M,[])}getEnclosureList(e,l){return new _N(M,[])}checkIntersection(e,l){return!1}checkEnclosure(e,l){return!1}deselectAll(){}createSVGNumber(){return new qy(M,this[f])}createSVGLength(){return new Ky(M,this[f])}createSVGAngle(){return new $1(M,this[f])}createSVGPoint(){return new Su(M,this[f])}createSVGMatrix(){return new q1(M,this[f])}createSVGRect(){return new jy(M,this[f])}createSVGTransform(){return new og(M,this[f])}createSVGTransformFromMatrix(e){let l=new og(M,this[f]);return l.setMatrix(e),l}getElementsByClassName(e){return _a.getElementsByClassName(this,e)}getElementsByTagName(e){return _a.getElementsByTagName(this,e)}getElementsByTagNameNS(e,l){return _a.getElementsByTagNameNS(this,e,l)}getElementById(e){return _a.getElementById(this,e)}[aI](e=!1){return super[aI](e)}};c();c();var $N=class extends dn{[p1]=null;[h1]=null;get onbegin(){return Fe.getEventListener(this,"onbegin")}set onbegin(e){this[q].set("onbegin",e)}get onend(){return Fe.getEventListener(this,"onend")}set onend(e){this[q].set("onend",e)}get onrepeat(){return Fe.getEventListener(this,"onrepeat")}set onrepeat(e){this[q].set("onrepeat",e)}get requiredExtensions(){return this[p1]||(this[p1]=new BR(M,this[f],{getAttribute:()=>this.getAttribute("requiredExtensions"),setAttribute:e=>this.setAttribute("requiredExtensions",e)})),this[p1]}get systemLanguage(){return this[h1]||(this[h1]=new BR(M,this[f],{getAttribute:()=>this.getAttribute("systemLanguage"),setAttribute:e=>this.setAttribute("systemLanguage",e)})),this[h1]}get targetElement(){return null}};var Sne=class extends $N{};c();var One=class extends $N{};c();var Tne=class extends $N{};c();c();c();var Mn=class{[f];[it];[Me];[bA]=0;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,this[it]=n.getAttribute,this[Me]=n.setAttribute,this[bA]=n.defaultValue||0}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[it]();if(!e)return this[bA];let l=parseFloat(e);return isNaN(l)?this[bA]:l}set baseVal(e){let l=typeof e!="number"?parseFloat(e):e;if(isNaN(l))throw new this[f].TypeError("TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedNumber': The provided float value is non-finite.");this[Me](String(l))}};var sG=class extends To{[Tte]=null;get pathLength(){return this[Tte]||(this[Tte]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("pathLength"),setAttribute:e=>this.setAttribute("pathLength",e)})),this[Tte]}isPointInFill(e){if(!(e instanceof Su))throw new TypeError("Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.");return!1}isPointInStroke(e){if(!(e instanceof Su))throw new TypeError("Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.");return!1}getTotalLength(){return 0}getPointAtLength(e){return new Su(M,this[f])}};var Une=class extends sG{[pA]=null;[hA]=null;[y1]=null;get cx(){return this[pA]||(this[pA]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("cx"),setAttribute:e=>this.setAttribute("cx",e)})),this[pA]}get cy(){return this[hA]||(this[hA]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("cy"),setAttribute:e=>this.setAttribute("cy",e)})),this[hA]}get r(){return this[y1]||(this[y1]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("r"),setAttribute:e=>this.setAttribute("r",e)})),this[y1]}};c();c();var Ir=class{[f];[it];[Me];[Ju];[bA];constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,this[it]=n.getAttribute,this[Me]=n.setAttribute,this[Ju]=n.values,this[bA]=n.defaultValue}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[it]();if(!e)return this[Ju].indexOf(this[bA])+1;let l=this[Ju].indexOf(e);if(l===-1){let n=this[Ju].indexOf(null);return n!==-1?n+1:0}return l+1}set baseVal(e){let l=Number(e);if(isNaN(l)&&(l=0),l<1)throw new TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided is ${l}, which is not settable.`);if(l>this[Ju].length)throw new TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided (${l}) is larger than the largest allowed value (${this[Ju].length}).`);let n=this[it](),I=this[Ju][l-1]===null,r=I?"0":this[Ju][l-1];(!n||I&&this[Ju].includes(n)||!I&&n!==r)&&this[Me](r||"")}};var Mne=class extends dn{[Kte]=null;get clipPathUnits(){return this[Kte]||(this[Kte]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("clipPathUnits"),setAttribute:e=>this.setAttribute("clipPathUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[Kte]}};c();var _ne=class extends To{};c();var Dne=class extends dn{};c();var zne=class extends sG{[pA]=null;[hA]=null;[N1]=null;[W1]=null;get cx(){return this[pA]||(this[pA]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("cx"),setAttribute:e=>this.setAttribute("cx",e)})),this[pA]}get cy(){return this[hA]||(this[hA]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("cy"),setAttribute:e=>this.setAttribute("cy",e)})),this[hA]}get rx(){return this[N1]||(this[N1]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("rx"),setAttribute:e=>this.setAttribute("rx",e)})),this[N1]}get ry(){return this[W1]||(this[W1]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("ry"),setAttribute:e=>this.setAttribute("ry",e)})),this[W1]}};c();c();var Yn=class{[f];[it];[Me];constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,this[it]=n.getAttribute,this[Me]=n.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[it]();return e||""}set baseVal(e){this[Me](String(e))}};var Pne=class extends dn{static SVG_FEBLEND_MODE_UNKNOWN=0;static SVG_FEBLEND_MODE_NORMAL=1;static SVG_FEBLEND_MODE_MULTIPLY=2;static SVG_FEBLEND_MODE_SCREEN=3;static SVG_FEBLEND_MODE_DARKEN=4;static SVG_FEBLEND_MODE_LIGHTEN=5;static SVG_FEBLEND_MODE_OVERLAY=6;static SVG_FEBLEND_MODE_COLOR_DODGE=7;static SVG_FEBLEND_MODE_COLOR_BURN=8;static SVG_FEBLEND_MODE_HARD_LIGHT=9;static SVG_FEBLEND_MODE_SOFT_LIGHT=10;static SVG_FEBLEND_MODE_DIFFERENCE=11;static SVG_FEBLEND_MODE_EXCLUSION=12;static SVG_FEBLEND_MODE_HUE=13;static SVG_FEBLEND_MODE_SATURATION=14;static SVG_FEBLEND_MODE_COLOR=15;static SVG_FEBLEND_MODE_LUMINOSITY=16;[vt]=null;[Xn]=null;[AA]=null;[hi]=null;[Zt]=null;[gt]=null;[ft]=null;get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get in1(){return this[Xn]||(this[Xn]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Xn]}get in2(){return this[AA]||(this[AA]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in2"),setAttribute:e=>this.setAttribute("in2",e)})),this[AA]}get mode(){return this[hi]||(this[hi]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("mode"),setAttribute:e=>this.setAttribute("mode",e),values:["normal","multiply","screen","darken","lighten","overlay","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],defaultValue:"normal"})),this[hi]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();c();c();var AOl=/[\t\f\n\r, ]+/,X5=class t{[f];[it];[Me];[Cl]=!1;[Dt]={items:[],attributeValue:""};constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");if(this[f]=l,this[Cl]=!!n.readOnly,this[it]=n.getAttribute,this[Me]=n.setAttribute,e!==M)throw new TypeError("Illegal constructor");let I=new Wo(this,[t]);return new Proxy(this,{get:(r,a)=>{if(a==="length"||a==="numberOfItems")return r[gl]().length;if(a in r||typeof a=="symbol")return I.bind(a),r[a];let s=Number(a);if(!isNaN(s))return r[gl]()[s]},set(r,a,s){if(I.bind(a),typeof a=="symbol")return r[a]=s,!0;let o=Number(a);return isNaN(o)&&(r[a]=s),!0},deleteProperty(r,a){if(typeof a=="symbol")return delete r[a],!0;let s=Number(a);return isNaN(s)&&delete r[a],!0},ownKeys(r){return Object.keys(r[gl]())},has(r,a){if(a in r)return!0;if(typeof a=="symbol")return!1;let s=Number(a);return!isNaN(s)&&s>=0&&s<r[gl]().length},defineProperty(r,a,s){return I.preventBinding(a),a in r?(Object.defineProperty(r,a,s),!0):!1},getOwnPropertyDescriptor(r,a){if(a in r||typeof a=="symbol")return;let s=Number(a),o=r[gl]();if(!isNaN(s)&&o[s])return{value:o[s],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[gl]().length}get numberOfItems(){return this[gl]().length}[Symbol.iterator](){return this[gl]().values()}clear(){if(this[Cl])throw new this[f].TypeError("Failed to execute 'clear' on 'SVGNumberList': The object is read-only.");for(let e of this[Dt].items)e[it]=null,e[Me]=null;this[Dt].items=[],this[Dt].attributeValue="",this[Me]("")}initialize(e){if(arguments.length<1)throw new this[f].TypeError(`Failed to execute 'initialize' on 'SVGNumberList': 1 arguments required, but only ${arguments.length} present.`);if(this[Cl])throw new this[f].TypeError("Failed to execute 'initialize' on 'SVGNumberList': The object is read-only.");for(let l of this[Dt].items)l[it]=null,l[Me]=null;return e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(l=>l[yt]||"0").join(" "),this[Me](this[Dt].attributeValue)},this[Dt].items=[e],this[Dt].attributeValue=e[yt],this[Me](e[yt]||""),e}getItem(e){let l=this[gl]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),l[e]?l[e]:null}insertItemBefore(e,l){if(this[Cl])throw new this[f].TypeError("Failed to execute 'insertItemBefore' on 'SVGNumberList': The object is read-only.");if(arguments.length<2)throw new this[f].TypeError(`Failed to execute 'insertItemBefore' on 'SVGNumberList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof qy))throw new this[f].TypeError("Failed to execute 'insertItemBefore' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let n=this[gl](),I=n.indexOf(e);return I!==-1&&n.splice(I,1),l<0?l=0:l>n.length&&(l=n.length),n.splice(l,0,e),e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(r=>r[yt]||"0").join(" "),this[Me](this[Dt].attributeValue)},this[Dt].attributeValue=n.map(r=>r[yt]||"0").join(" "),this[Me](this[Dt].attributeValue),e}replaceItem(e,l){if(this[Cl])throw new this[f].TypeError("Failed to execute 'replaceItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<2)throw new this[f].TypeError(`Failed to execute 'replaceItem' on 'SVGNumberList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof qy))throw new this[f].TypeError("Failed to execute 'replaceItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let n=this[gl](),I=n.indexOf(e);if(I===l)return e;I!==-1&&n.splice(I,1),l<0?l=0:l>=n.length&&(l=n.length-1),n[l]&&(n[l][it]=null,n[l][Me]=null);let r=n[l];return n[l]=e,e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(a=>a[yt]||"0").join(" "),this[Me](this[Dt].attributeValue)},this[Dt].attributeValue=n.map(a=>a[yt]||"0").join(" "),this[Me](this[Dt].attributeValue),r}removeItem(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'removeItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<1)throw new this[f].TypeError(`Failed to execute 'removeItem' on 'SVGNumberList': 1 argument required, but only ${arguments.length} present.`);let l=this[gl]();if(e=Number(e),isNaN(e)&&(e=0),e>=l.length)throw new this[f].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${e}) is greater than the maximum bound.`,qe.indexSizeError);if(e<0)throw new this[f].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${e}) is negative.`,qe.indexSizeError);let n=l[e];return n&&(n[it]=null,n[Me]=null),l.splice(e,1),this[Me](l.map(I=>I[yt]||"0").join(" ")),n}appendItem(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'appendItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<1)throw new this[f].TypeError(`Failed to execute 'appendItem' on 'SVGNumberList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof qy))throw new this[f].TypeError("Failed to execute 'appendItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let l=this[gl](),n=l.indexOf(e);return n!==-1&&l.splice(n,1),l.push(e),e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(I=>I[yt]||"0").join(" "),this[Me](this[Dt].attributeValue)},this[Dt].attributeValue=l.map(I=>I[yt]||"0").join(" "),this[Me](this[Dt].attributeValue),e}[gl](){let e=this[it]()??"",l=this[Dt];if(l.attributeValue===e)return l.items;if(l.items.length)for(let r of l.items)r[it]=null,r[Me]=null;let n=[],I=e.trim();if(I){let r=I.split(AOl);for(let a=0,s=r.length;a<s;a++){let o=new qy(M,this[f],{readOnly:this[Cl],getAttribute:()=>o[yt],setAttribute:()=>{this[Dt].attributeValue=this[gl]().map(d=>d[yt]||"0").join(" "),this[Me](this[Dt].attributeValue)}});o[yt]=String(parseFloat(r[a])),n.push(o)}}return l.attributeValue=e,l.items=n,n}};var vA=class{[f];[it];[Me];[Ns]=null;[Ws]=null;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,this[it]=n.getAttribute,this[Me]=n.setAttribute}get animVal(){return this[Ws]||(this[Ws]=new X5(M,this[f],{readOnly:!0,getAttribute:this[it],setAttribute:()=>{}})),this[Ws]}set animVal(e){}get baseVal(){return this[Ns]||(this[Ns]=new X5(M,this[f],{getAttribute:this[it],setAttribute:this[Me]})),this[Ns]}set baseVal(e){}};var jne=class extends dn{static SVG_FEBLEND_TYPE_UNKNOWN=0;static SVG_FEBLEND_TYPE_MATRIX=1;static SVG_FEBLEND_TYPE_SATURATE=2;static SVG_FEBLEND_TYPE_HUEROTATE=3;static SVG_FEBLEND_TYPE_LUMINANCETOALPHA=4;[vt]=null;[Xn]=null;[AA]=null;[an]=null;[Ya]=null;[Ju]=null;[Zt]=null;[gt]=null;[ft]=null;get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get in1(){return this[Xn]||(this[Xn]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Xn]}get in2(){return this[AA]||(this[AA]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in2"),setAttribute:e=>this.setAttribute("in2",e)})),this[AA]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get type(){return this[Ya]||(this[Ya]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("type"),setAttribute:e=>this.setAttribute("type",e),values:["matrix","saturate","huerotate","luminancetoalpha"],defaultValue:"matrix"})),this[Ya]}get values(){return this[Ju]||(this[Ju]=new vA(M,this[f],{getAttribute:()=>this.getAttribute("values"),setAttribute:e=>this.setAttribute("values",e)})),this[Ju]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();var Kne=class extends dn{[vt]=null;[Xn]=null;[an]=null;[Zt]=null;[gt]=null;[ft]=null;get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get in1(){return this[Xn]||(this[Xn]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Xn]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();var qne=class extends dn{static SVG_FECOMPOSITE_OPERATOR_UNKNOWN=0;static SVG_FECOMPOSITE_OPERATOR_OVER=1;static SVG_FECOMPOSITE_OPERATOR_IN=2;static SVG_FECOMPOSITE_OPERATOR_OUT=3;static SVG_FECOMPOSITE_OPERATOR_ATOP=4;static SVG_FECOMPOSITE_OPERATOR_XOR=5;static SVG_FECOMPOSITE_OPERATOR_ARITHMETIC=6;[vt]=null;[Xn]=null;[an]=null;[Ya]=null;[Ju]=null;[Zt]=null;[gt]=null;[ft]=null;get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get in1(){return this[Xn]||(this[Xn]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Xn]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get type(){return this[Ya]||(this[Ya]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("type"),setAttribute:e=>this.setAttribute("type",e),values:["over","in","out","atop","xor","arithmetic"],defaultValue:"over"})),this[Ya]}get values(){return this[Ju]||(this[Ju]=new vA(M,this[f],{getAttribute:()=>this.getAttribute("values"),setAttribute:e=>this.setAttribute("values",e)})),this[Ju]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();c();var TB=class{[f];[it];[Me];constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,this[it]=n.getAttribute,this[Me]=n.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){return this[it]()==="true"}set baseVal(e){this[Me](String(typeof e!="boolean"?!!e:e))}};c();var $y=class{[f];[it];[Me];constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,this[it]=n.getAttribute,this[Me]=n.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[it]();if(!e)return 0;let l=parseInt(e);return isNaN(l)?0:l}set baseVal(e){let l=parseInt(String(e));if(isNaN(l))throw new this[f].TypeError("TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedInteger': The provided float value is non-finite.");this[Me](String(l))}};var $ne=class extends dn{static SVG_EDGEMODE_UNKNOWN=0;static SVG_EDGEMODE_DUPLICATE=1;static SVG_EDGEMODE_WRAP=2;static SVG_EDGEMODE_NONE=3;[hle]=null;[Ale]=null;[F1]=null;[vt]=null;[Xn]=null;[Zle]=null;[ZA]=null;[gA]=null;[gle]=null;[Nle]=null;[Wle]=null;[an]=null;[yle]=null;[Ele]=null;[ft]=null;[Zt]=null;[gt]=null;get bias(){return this[hle]||(this[hle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("bias"),setAttribute:e=>this.setAttribute("bias",e)})),this[hle]}get divisor(){return this[Ale]||(this[Ale]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("divisor"),setAttribute:e=>this.setAttribute("divisor",e)})),this[Ale]}get edgeMode(){return this[F1]||(this[F1]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("edgeMode"),setAttribute:e=>this.setAttribute("edgeMode",e),values:["duplicate","wrap","none"],defaultValue:"duplicate"})),this[F1]}get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get in1(){return this[Xn]||(this[Xn]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Xn]}get kernelMatrix(){return this[Zle]||(this[Zle]=new vA(M,this[f],{getAttribute:()=>this.getAttribute("kernelMatrix"),setAttribute:e=>this.setAttribute("kernelMatrix",e)})),this[Zle]}get kernelUnitLengthX(){return this[ZA]||(this[ZA]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:e=>this.setAttribute("kernelUnitLengthX",e)})),this[ZA]}get kernelUnitLengthY(){return this[gA]||(this[gA]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:e=>this.setAttribute("kernelUnitLengthY",e)})),this[gA]}get orderX(){return this[gle]||(this[gle]=new $y(M,this[f],{getAttribute:()=>this.getAttribute("orderX"),setAttribute:e=>this.setAttribute("orderX",e)})),this[gle]}get orderY(){return this[Nle]||(this[Nle]=new $y(M,this[f],{getAttribute:()=>this.getAttribute("orderY"),setAttribute:e=>this.setAttribute("orderY",e)})),this[Nle]}get preserveAlpha(){return this[Wle]||(this[Wle]=new TB(M,this[f],{getAttribute:()=>this.getAttribute("preserveAlpha"),setAttribute:e=>this.setAttribute("preserveAlpha",e)})),this[Wle]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get targetX(){return this[yle]||(this[yle]=new $y(M,this[f],{getAttribute:()=>this.getAttribute("targetX"),setAttribute:e=>this.setAttribute("targetX",e)})),this[yle]}get targetY(){return this[Ele]||(this[Ele]=new $y(M,this[f],{getAttribute:()=>this.getAttribute("targetY"),setAttribute:e=>this.setAttribute("targetY",e)})),this[Ele]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();var eIe=class extends dn{[Rle]=null;[vt]=null;[Xn]=null;[ZA]=null;[gA]=null;[an]=null;[C1]=null;[ft]=null;[Zt]=null;[gt]=null;get diffuseConstant(){return this[Rle]||(this[Rle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("diffuseConstant"),setAttribute:e=>this.setAttribute("diffuseConstant",e)})),this[Rle]}get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get in1(){return this[Xn]||(this[Xn]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Xn]}get kernelUnitLengthX(){return this[ZA]||(this[ZA]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:e=>this.setAttribute("kernelUnitLengthX",e)})),this[ZA]}get kernelUnitLengthY(){return this[gA]||(this[gA]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:e=>this.setAttribute("kernelUnitLengthY",e)})),this[gA]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get surfaceScale(){return this[C1]||(this[C1]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("surfaceScale"),setAttribute:e=>this.setAttribute("surfaceScale",e)})),this[C1]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();var tIe=class extends dn{static SVG_CHANNEL_UNKNOWN=0;static SVG_CHANNEL_R=1;static SVG_CHANNEL_G=2;static SVG_CHANNEL_B=3;static SVG_CHANNEL_A=4;[vt]=null;[Xn]=null;[AA]=null;[an]=null;[Yle]=null;[ft]=null;[Zt]=null;[Vle]=null;[gt]=null;[Qle]=null;get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get in1(){return this[Xn]||(this[Xn]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Xn]}get in2(){return this[AA]||(this[AA]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in2"),setAttribute:e=>this.setAttribute("in2",e)})),this[AA]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get scale(){return this[Yle]||(this[Yle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("scale"),setAttribute:e=>this.setAttribute("scale",e)})),this[Yle]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get xChannelSelector(){return this[Vle]||(this[Vle]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("xChannelSelector"),setAttribute:e=>this.setAttribute("xChannelSelector",e),values:["r","g","b","a"],defaultValue:"r"})),this[Vle]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}get yChannelSelector(){return this[Qle]||(this[Qle]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("yChannelSelector"),setAttribute:e=>this.setAttribute("yChannelSelector",e),values:["r","g","b","a"],defaultValue:"r"})),this[Qle]}};c();var lIe=class extends dn{[wle]=null;[Fle]=null;get azimuth(){return this[wle]||(this[wle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("azimuth"),setAttribute:e=>this.setAttribute("azimuth",e)})),this[wle]}get elevation(){return this[Fle]||(this[Fle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("elevation"),setAttribute:e=>this.setAttribute("elevation",e)})),this[Fle]}};c();var nIe=class extends dn{[NA]=null;[WA]=null;[vt]=null;[Xn]=null;[an]=null;[v1]=null;[f1]=null;[ft]=null;[Zt]=null;[gt]=null;get dx(){return this[NA]||(this[NA]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("dx"),setAttribute:e=>this.setAttribute("dx",e)})),this[NA]}get dy(){return this[WA]||(this[WA]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("dy"),setAttribute:e=>this.setAttribute("dy",e)})),this[WA]}get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get in1(){return this[Xn]||(this[Xn]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Xn]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get stdDeviationX(){return this[v1]||(this[v1]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("stdDeviationX"),setAttribute:e=>this.setAttribute("stdDeviationX",e),defaultValue:2})),this[v1]}get stdDeviationY(){return this[f1]||(this[f1]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("stdDeviationY"),setAttribute:e=>this.setAttribute("stdDeviationY",e),defaultValue:2})),this[f1]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}setStdDeviation(e,l){this.stdDeviationX.baseVal=e,this.stdDeviationY.baseVal=l}};c();var IIe=class extends dn{[vt]=null;[an]=null;[ft]=null;[Zt]=null;[gt]=null;get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();c();var eW=class extends dn{static SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN=0;static SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY=1;static SVG_FECOMPONENTTRANSFER_TYPE_TABLE=2;static SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE=3;static SVG_FECOMPONENTTRANSFER_TYPE_LINEAR=4;static SVG_FECOMPONENTTRANSFER_TYPE_GAMMA=5;[Ya]=null;[Cle]=null;[vle]=null;[fle]=null;[Hle]=null;[Xle]=null;[Q1]=null;get type(){return this[Ya]||(this[Ya]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("type"),setAttribute:e=>this.setAttribute("type",e),values:["identity","table","discrete","linear","gamma"],defaultValue:"identity"})),this[Ya]}get tableValues(){return this[Cle]||(this[Cle]=new vA(M,this[f],{getAttribute:()=>this.getAttribute("tableValues"),setAttribute:e=>this.setAttribute("tableValues",e)})),this[Cle]}get slope(){return this[vle]||(this[vle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("slope"),setAttribute:e=>this.setAttribute("slope",e),defaultValue:1})),this[vle]}get intercept(){return this[fle]||(this[fle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("intercept"),setAttribute:e=>this.setAttribute("intercept",e)})),this[fle]}get amplitude(){return this[Hle]||(this[Hle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("amplitude"),setAttribute:e=>this.setAttribute("amplitude",e),defaultValue:1})),this[Hle]}get exponent(){return this[Xle]||(this[Xle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("exponent"),setAttribute:e=>this.setAttribute("exponent",e),defaultValue:1})),this[Xle]}get offset(){return this[Q1]||(this[Q1]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("offset"),setAttribute:e=>this.setAttribute("offset",e)})),this[Q1]}};var rIe=class extends eW{};c();var aIe=class extends eW{};c();var sIe=class extends eW{};c();var oIe=class extends eW{};c();var iIe=class extends dn{static SVG_EDGEMODE_UNKNOWN=0;static SVG_EDGEMODE_DUPLICATE=1;static SVG_EDGEMODE_WRAP=2;static SVG_EDGEMODE_NONE=3;[F1]=null;[vt]=null;[Xn]=null;[an]=null;[v1]=null;[f1]=null;[ft]=null;[Zt]=null;[gt]=null;get edgeMode(){return this[F1]||(this[F1]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("edgeMode"),setAttribute:e=>this.setAttribute("edgeMode",e),values:["duplicate","wrap","none"],defaultValue:"duplicate"})),this[F1]}get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get in1(){return this[Xn]||(this[Xn]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Xn]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get stdDeviationX(){return this[v1]||(this[v1]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("stdDeviationX")||"2",setAttribute:e=>this.setAttribute("stdDeviationX",e)})),this[v1]}get stdDeviationY(){return this[f1]||(this[f1]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("stdDeviationY")||"2",setAttribute:e=>this.setAttribute("stdDeviationY",e)})),this[f1]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}setStdDeviation(e,l){this.stdDeviationX.baseVal=e,this.stdDeviationY.baseVal=l}};c();var cIe=class extends dn{[s0t]=null;[vt]=null;[hr]=null;[Ym]=null;[an]=null;[ft]=null;[Zt]=null;[gt]=null;get crossOrigin(){return this.getAttribute("crossorigin")}set crossOrigin(e){this.setAttribute("crossorigin",e)}get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get href(){return this[hr]||(this[hr]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[hr]}get preserveAspectRatio(){return this[Ym]||(this[Ym]=new qN(M,this[f],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:e=>this.setAttribute("preserveAspectRatio",e)})),this[Ym]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();var dIe=class extends dn{[vt]=null;[an]=null;[ft]=null;[Zt]=null;[gt]=null;get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();var uIe=class extends dn{[Xn]=null;get in1(){return this[Xn]||(this[Xn]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Xn]}};c();var mIe=class extends dn{static SVG_MORPHOLOGY_OPERATOR_UNKNOWN=0;static SVG_MORPHOLOGY_OPERATOR_ERODE=1;static SVG_MORPHOLOGY_OPERATOR_DILATE=2;[vt]=null;[Xn]=null;[kle]=null;[Lle]=null;[Jle]=null;[an]=null;[ft]=null;[Zt]=null;[gt]=null;get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get in1(){return this[Xn]||(this[Xn]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Xn]}get operator(){return this[kle]||(this[kle]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("operator"),setAttribute:e=>this.setAttribute("operator",e),values:["erode","dilate"],defaultValue:"erode"})),this[kle]}get radiusX(){return this[Lle]||(this[Lle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("radiusX"),setAttribute:e=>this.setAttribute("radiusX",e)})),this[Lle]}get radiusY(){return this[Jle]||(this[Jle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("radiusY"),setAttribute:e=>this.setAttribute("radiusY",e)})),this[Jle]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();var GIe=class extends dn{[vt]=null;[Xn]=null;[NA]=null;[WA]=null;[an]=null;[ft]=null;[Zt]=null;[gt]=null;get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get in1(){return this[Xn]||(this[Xn]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Xn]}get dx(){return this[NA]||(this[NA]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("dx"),setAttribute:e=>this.setAttribute("dx",e)})),this[NA]}get dy(){return this[WA]||(this[WA]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("dy"),setAttribute:e=>this.setAttribute("dy",e)})),this[WA]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();var bIe=class extends dn{[Zt]=null;[gt]=null;[Kb]=null;get x(){return this[Zt]||(this[Zt]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}get z(){return this[Kb]||(this[Kb]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("z"),setAttribute:e=>this.setAttribute("z",e)})),this[Kb]}};c();var pIe=class extends dn{[vt]=null;[Xn]=null;[ZA]=null;[gA]=null;[an]=null;[Ble]=null;[H1]=null;[C1]=null;[ft]=null;[Zt]=null;[gt]=null;get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get in1(){return this[Xn]||(this[Xn]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Xn]}get kernelUnitLengthX(){return this[ZA]||(this[ZA]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:e=>this.setAttribute("kernelUnitLengthX",e)})),this[ZA]}get kernelUnitLengthY(){return this[gA]||(this[gA]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:e=>this.setAttribute("kernelUnitLengthY",e)})),this[gA]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get specularConstant(){return this[Ble]||(this[Ble]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("specularConstant"),setAttribute:e=>this.setAttribute("specularConstant",e),defaultValue:1})),this[Ble]}get specularExponent(){return this[H1]||(this[H1]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("specularExponent"),setAttribute:e=>this.setAttribute("specularExponent",e),defaultValue:1})),this[H1]}get surfaceScale(){return this[C1]||(this[C1]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("surfaceScale"),setAttribute:e=>this.setAttribute("surfaceScale",e),defaultValue:1})),this[C1]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();var hIe=class extends dn{[Zt]=null;[gt]=null;[Kb]=null;[xle]=null;[Sle]=null;[Ole]=null;[H1]=null;[Tle]=null;get x(){return this[Zt]||(this[Zt]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}get z(){return this[Kb]||(this[Kb]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("z"),setAttribute:e=>this.setAttribute("z",e)})),this[Kb]}get pointsAtX(){return this[xle]||(this[xle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("pointsAtX"),setAttribute:e=>this.setAttribute("pointsAtX",e)})),this[xle]}get pointsAtY(){return this[Sle]||(this[Sle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("pointsAtY"),setAttribute:e=>this.setAttribute("pointsAtY",e)})),this[Sle]}get pointsAtZ(){return this[Ole]||(this[Ole]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("pointsAtZ"),setAttribute:e=>this.setAttribute("pointsAtZ",e)})),this[Ole]}get specularExponent(){return this[H1]||(this[H1]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("specularExponent"),setAttribute:e=>this.setAttribute("specularExponent",e),defaultValue:1})),this[H1]}get limitingConeAngle(){return this[Tle]||(this[Tle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("limitingConeAngle"),setAttribute:e=>this.setAttribute("limitingConeAngle",e)})),this[Tle]}};c();var AIe=class extends dn{[vt]=null;[Xn]=null;[an]=null;[ft]=null;[Zt]=null;[gt]=null;get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get in1(){return this[Xn]||(this[Xn]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Xn]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();var ZIe=class extends dn{static SVG_TURBULENCE_TYPE_UNKNOWN=0;static SVG_TURBULENCE_TYPE_FRACTALNOISE=1;static SVG_TURBULENCE_TYPE_TURBULENCE=2;static SVG_STITCHTYPE_UNKNOWN=0;static SVG_STITCHTYPE_STITCH=1;static SVG_STITCHTYPE_NOSTITCH=2;[Ule]=null;[Mle]=null;[vt]=null;[_le]=null;[an]=null;[Dle]=null;[zle]=null;[Ya]=null;[ft]=null;[Zt]=null;[gt]=null;get baseFrequencyX(){return this[Ule]||(this[Ule]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("baseFrequencyX"),setAttribute:e=>this.setAttribute("baseFrequencyX",e)})),this[Ule]}get baseFrequencyY(){return this[Mle]||(this[Mle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("baseFrequencyY"),setAttribute:e=>this.setAttribute("baseFrequencyY",e)})),this[Mle]}get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get numOctaves(){return this[_le]||(this[_le]=new $y(M,this[f],{getAttribute:()=>this.getAttribute("numOctaves"),setAttribute:e=>this.setAttribute("numOctaves",e)})),this[_le]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get seed(){return this[Dle]||(this[Dle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("seed"),setAttribute:e=>this.setAttribute("seed",e)})),this[Dle]}get stitchTiles(){return this[zle]||(this[zle]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("stitchTiles"),setAttribute:e=>this.setAttribute("stitchTiles",e),values:["stitch","noStitch"],defaultValue:"stitch"})),this[zle]}get type(){return this[Ya]||(this[Ya]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("type"),setAttribute:e=>this.setAttribute("type",e),values:["fractalNoise","turbulence"],defaultValue:"turbulence"})),this[Ya]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();var gIe=class extends dn{[hr]=null;[ele]=null;[tle]=null;[Zt]=null;[gt]=null;[ft]=null;[vt]=null;get href(){return this[hr]||(this[hr]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[hr]}get filterUnits(){return this[ele]||(this[ele]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("filterUnits"),setAttribute:e=>this.setAttribute("filterUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[ele]}get primitiveUnits(){return this[tle]||(this[tle]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("primitiveUnits"),setAttribute:e=>this.setAttribute("primitiveUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[tle]}get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();var NIe=class extends To{[Zt]=null;[gt]=null;[ft]=null;[vt]=null;get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();var WIe=class extends To{};c();var yIe=class extends To{[hr]=null;[Ym]=null;[Zt]=null;[gt]=null;[ft]=null;[vt]=null;get crossOrigin(){return this.getAttribute("crossorigin")}set crossOrigin(e){this.setAttribute("crossorigin",e)}get href(){return this[hr]||(this[hr]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[hr]}get decoding(){let e=this.getAttribute("decoding");switch(e){case"sync":case"async":case"auto":return e;default:return"auto"}}set decoding(e){this.setAttribute("decoding",e)}get preserveAspectRatio(){return this[Ym]||(this[Ym]=new qN(M,this[f],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:e=>this.setAttribute("preserveAspectRatio",e)})),this[Ym]}get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}decode(){return Promise.resolve()}};c();var EIe=class extends sG{[E1]=null;[R1]=null;[Y1]=null;[V1]=null;get x1(){return this[E1]||(this[E1]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x1"),setAttribute:e=>this.setAttribute("x1",e)})),this[E1]}get y1(){return this[R1]||(this[R1]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y1"),setAttribute:e=>this.setAttribute("y1",e)})),this[R1]}get x2(){return this[Y1]||(this[Y1]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x2"),setAttribute:e=>this.setAttribute("x2",e)})),this[Y1]}get y2(){return this[V1]||(this[V1]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y2"),setAttribute:e=>this.setAttribute("y2",e)})),this[V1]}};c();c();var hC=class extends To{static SVG_SPREADMETHOD_UNKNOWN=0;static SVG_SPREADMETHOD_PAD=1;static SVG_SPREADMETHOD_REFLECT=2;static SVG_SPREADMETHOD_REPEAT=3;[hr]=null;[lle]=null;[nle]=null;[Ile]=null;get href(){return this[hr]||(this[hr]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[hr]}get gradientUnits(){return this[lle]||(this[lle]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("gradientUnits"),setAttribute:e=>this.setAttribute("gradientUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"objectBoundingBox"})),this[lle]}get gradientTransform(){return this[nle]||(this[nle]=new xR(M,this[f],{getAttribute:()=>this.getAttribute("gradientTransform"),setAttribute:e=>this.setAttribute("gradientTransform",e)})),this[nle]}get spreadMethod(){return this[Ile]||(this[Ile]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("spreadMethod"),setAttribute:e=>this.setAttribute("spreadMethod",e),values:["pad","reflect","repeat"],defaultValue:"pad"})),this[Ile]}};var RIe=class extends hC{[E1]=null;[R1]=null;[Y1]=null;[V1]=null;get x1(){return this[E1]||(this[E1]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x1"),setAttribute:e=>this.setAttribute("x1",e)})),this[E1]}get y1(){return this[R1]||(this[R1]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y1"),setAttribute:e=>this.setAttribute("y1",e)})),this[R1]}get x2(){return this[Y1]||(this[Y1]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x2"),setAttribute:e=>this.setAttribute("x2",e)})),this[Y1]}get y2(){return this[V1]||(this[V1]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y2"),setAttribute:e=>this.setAttribute("y2",e)})),this[V1]}};c();c();var UB=class{[f];[it];[Me];[Ns]=null;[Ws]=null;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,this[it]=n.getAttribute,this[Me]=n.setAttribute}get animVal(){return this[Ws]||(this[Ws]=new $1(M,this[f],{readOnly:!0,getAttribute:this[it]})),this[Ws]}set animVal(e){}get baseVal(){return this[Ns]||(this[Ns]=new $1(M,this[f],{getAttribute:this[it],setAttribute:this[Me]})),this[Ns]}set baseVal(e){}};var YIe=class extends dn{static SVG_MARKER_ORIENT_UNKNOWN=0;static SVG_MARKER_ORIENT_AUTO=1;static SVG_MARKER_ORIENT_ANGLE=2;static SVG_MARKERUNITS_UNKNOWN=0;static SVG_MARKERUNITS_USERSPACEONUSE=1;static SVG_MARKERUNITS_STROKEWIDTH=2;SVG_MARKER_ORIENT_UNKNOWN=0;SVG_MARKER_ORIENT_AUTO=1;SVG_MARKER_ORIENT_ANGLE=2;[Ute]=null;[Mte]=null;[_te]=null;[Dte]=null;[zte]=null;[Pte]=null;[jte]=null;[A1]=null;[Ym]=null;get markerUnits(){return this[Ute]||(this[Ute]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("markerUnits"),setAttribute:e=>this.setAttribute("markerUnits",e),values:["userSpaceOnUse","strokeWidth"],defaultValue:"strokeWidth"})),this[Ute]}get markerWidth(){return this[Mte]||(this[Mte]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("markerWidth"),setAttribute:e=>this.setAttribute("markerWidth",e)})),this[Mte]}get markerHeight(){return this[_te]||(this[_te]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("markerHeight"),setAttribute:e=>this.setAttribute("markerHeight",e)})),this[_te]}get orientType(){return this[Dte]||(this[Dte]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("orient"),setAttribute:e=>this.setAttribute("orient",e),values:["auto",null],defaultValue:"auto"})),this[Dte]}get orientAngle(){return this[zte]||(this[zte]=new UB(M,this[f],{getAttribute:()=>this.getAttribute("orient"),setAttribute:e=>this.setAttribute("orient",e)})),this[zte]}get refX(){return this[Pte]||(this[Pte]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("refX"),setAttribute:e=>this.setAttribute("refX",e)})),this[Pte]}get refY(){return this[jte]||(this[jte]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("refY"),setAttribute:e=>this.setAttribute("refY",e)})),this[jte]}get viewBox(){return this[A1]||(this[A1]=new bC(M,this[f],{getAttribute:()=>this.getAttribute("viewBox"),setAttribute:e=>this.setAttribute("viewBox",e)})),this[A1]}get preserveAspectRatio(){return this[Ym]||(this[Ym]=new qN(M,this[f],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:e=>this.setAttribute("preserveAspectRatio",e)})),this[Ym]}setOrientToAuto(){this.setAttribute("orient","auto")}setOrientToAngle(e){this.setAttribute("orient",e.valueAsString)}};c();var VIe=class extends dn{[qte]=null;[$te]=null;[Zt]=null;[gt]=null;[ft]=null;[vt]=null;get maskUnits(){return this[qte]||(this[qte]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("maskUnits"),setAttribute:e=>this.setAttribute("maskUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[qte]}get maskContentUnits(){return this[$te]||(this[$te]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("maskContentUnits"),setAttribute:e=>this.setAttribute("maskContentUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[$te]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();var QIe=class extends dn{};c();var wIe=class extends dn{[hr]=null;get href(){return this[hr]||(this[hr]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[hr]}};c();var FIe=class extends sG{};c();var CIe=class extends dn{[hr]=null;[rle]=null;[ale]=null;[sle]=null;[Zt]=null;[gt]=null;[ft]=null;[vt]=null;get href(){return this[hr]||(this[hr]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[hr]}get patternUnits(){return this[rle]||(this[rle]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("patternUnits"),setAttribute:e=>this.setAttribute("patternUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"objectBoundingBox"})),this[rle]}get patternContentUnits(){return this[ale]||(this[ale]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("patternContentUnits"),setAttribute:e=>this.setAttribute("patternContentUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[ale]}get patternTransform(){return this[sle]||(this[sle]=new xR(M,this[f],{getAttribute:()=>this.getAttribute("patternTransform"),setAttribute:e=>this.setAttribute("patternTransform",e)})),this[sle]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();c();var ZOl=/[\t\f\n\r, ]+/,SR=class t{[f];[it];[Me];[Cl]=!1;[Dt]={items:[],attributeValue:""};constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,this[Cl]=!!n.readOnly,this[it]=n.getAttribute,this[Me]=n.setAttribute;let I=new Wo(this,[t]);return new Proxy(this,{get:(r,a)=>{if(a==="length"||a==="numberOfItems")return r[gl]().length;if(a in r||typeof a=="symbol")return I.bind(a),r[a];let s=Number(a);if(!isNaN(s))return r[gl]()[s]},set(r,a,s){if(I.bind(a),typeof a=="symbol")return r[a]=s,!0;let o=Number(a);return isNaN(o)&&(r[a]=s),!0},deleteProperty(r,a){if(typeof a=="symbol")return delete r[a],!0;let s=Number(a);return isNaN(s)&&delete r[a],!0},ownKeys(r){return Object.keys(r[gl]())},has(r,a){if(a in r)return!0;if(typeof a=="symbol")return!1;let s=Number(a);return!isNaN(s)&&s>=0&&s<r[gl]().length},defineProperty(r,a,s){return I.preventBinding(a),a in r?(Object.defineProperty(r,a,s),!0):!1},getOwnPropertyDescriptor(r,a){if(a in r||typeof a=="symbol")return;let s=Number(a),o=r[gl]();if(!isNaN(s)&&o[s])return{value:o[s],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[gl]().length}get numberOfItems(){return this[gl]().length}[Symbol.iterator](){return this[gl]().values()}clear(){if(this[Cl])throw new this[f].TypeError("Failed to execute 'clear' on 'SVGPointList': The object is read-only.");for(let e of this[Dt].items)e[it]=null,e[Me]=null;this[Dt].items=[],this[Dt].attributeValue="",this[Me]("")}initialize(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'initialize' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[f].TypeError(`Failed to execute 'initialize' on 'SVGPointList': 1 arguments required, but only ${arguments.length} present.`);if(!(e instanceof Su))throw new this[f].TypeError("Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");for(let l of this[Dt].items)l[it]=null,l[Me]=null;return e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(l=>l[yt]||"0 0").join(" "),this[Me](this[Dt].attributeValue)},this[Dt].items=[e],this[Dt].attributeValue=e[yt],this[Me](e[yt]||""),e}getItem(e){let l=this[gl]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),l[e]?l[e]:null}insertItemBefore(e,l){if(this[Cl])throw new this[f].TypeError("Failed to execute 'insertItemBefore' on 'SVGPointList': The object is read-only.");if(arguments.length<2)throw new this[f].TypeError(`Failed to execute 'insertItemBefore' on 'SVGPointList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof Su))throw new this[f].TypeError("Failed to execute 'insertItemBefore' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let n=this[gl](),I=n.indexOf(e);return I!==-1&&n.splice(I,1),l<0?l=0:l>n.length&&(l=n.length),n.splice(l,0,e),e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(r=>r[yt]||"0 0").join(" "),this[Me](this[Dt].attributeValue)},this[Dt].attributeValue=n.map(r=>r[yt]||"0 0").join(" "),this[Me](this[Dt].attributeValue),e}replaceItem(e,l){if(this[Cl])throw new this[f].TypeError("Failed to execute 'replaceItem' on 'SVGPointList': The object is read-only.");if(arguments.length<2)throw new this[f].TypeError(`Failed to execute 'replaceItem' on 'SVGPointList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof Su))throw new this[f].TypeError("Failed to execute 'replaceItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let n=this[gl](),I=n.indexOf(e);if(I===l)return e;I!==-1&&n.splice(I,1),l<0?l=0:l>=n.length&&(l=n.length-1),n[l]&&(n[l][it]=null,n[l][Me]=null);let r=n[l];return n[l]=e,e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(a=>a[yt]||"0 0").join(" "),this[Me](this[Dt].attributeValue)},this[Dt].attributeValue=n.map(a=>a[yt]||"0 0").join(" "),this[Me](this[Dt].attributeValue),r}removeItem(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'removeItem' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[f].TypeError(`Failed to execute 'removeItem' on 'SVGPointList': 1 argument required, but only ${arguments.length} present.`);let l=this[gl]();if(e=Number(e),isNaN(e)&&(e=0),e>=l.length)throw new this[f].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${e}) is greater than the maximum bound.`,qe.indexSizeError);if(e<0)throw new this[f].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${e}) is negative.`,qe.indexSizeError);let n=l[e];return n&&(n[it]=null,n[Me]=null),l.splice(e,1),this[Me](l.map(I=>I[yt]||"0 0").join(" ")),n}appendItem(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'appendItem' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[f].TypeError(`Failed to execute 'appendItem' on 'SVGPointList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof Su))throw new this[f].TypeError("Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let l=this[gl](),n=l.indexOf(e);return n!==-1&&l.splice(n,1),l.push(e),e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(I=>I[yt]||"0 0").join(" "),this[Me](this[Dt].attributeValue)},this[Dt].attributeValue=l.map(I=>I[yt]||"0 0").join(" "),this[Me](this[Dt].attributeValue),e}[gl](){let e=this[it]()??"",l=this[Dt];if(l.attributeValue===e)return l.items;if(l.items.length)for(let r of l.items)r[it]=null,r[Me]=null;let n=[],I=e.trim();if(I){let r=I.split(ZOl);for(let a=0,s=r.length;a<s;a+=2){let o=parseFloat(r[a]),d=r[a+1]!==void 0?" "+parseFloat(r[a+1]):"",u=new Su(M,this[f],{readOnly:this[Cl],getAttribute:()=>u[yt],setAttribute:()=>{this[Dt].attributeValue=this[gl]().map(G=>G[yt]||"0 0").join(" "),this[Me](this[Dt].attributeValue)}});u[yt]=`${o}${d}`,n.push(u)}}return l.attributeValue=e,l.items=n,n}};var vIe=class extends sG{[Z1]=null;[g1]=null;get animatedPoints(){return this[Z1]||(this[Z1]=new SR(M,this[f],{readOnly:!0,getAttribute:()=>this.getAttribute("points"),setAttribute:()=>{}})),this[Z1]}get points(){return this[g1]||(this[g1]=new SR(M,this[f],{getAttribute:()=>this.getAttribute("points"),setAttribute:e=>this.setAttribute("points",e)})),this[g1]}};c();var fIe=class extends sG{[Z1]=null;[g1]=null;get animatedPoints(){return this[Z1]||(this[Z1]=new SR(M,this[f],{readOnly:!0,getAttribute:()=>this.getAttribute("points"),setAttribute:()=>{}})),this[Z1]}get points(){return this[g1]||(this[g1]=new SR(M,this[f],{getAttribute:()=>this.getAttribute("points"),setAttribute:e=>this.setAttribute("points",e)})),this[g1]}};c();var HIe=class extends hC{[pA]=null;[hA]=null;[y1]=null;[ole]=null;[ile]=null;get cx(){return this[pA]||(this[pA]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("cx"),setAttribute:e=>this.setAttribute("cx",e)})),this[pA]}get cy(){return this[hA]||(this[hA]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("cy"),setAttribute:e=>this.setAttribute("cy",e)})),this[hA]}get r(){return this[y1]||(this[y1]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("r"),setAttribute:e=>this.setAttribute("r",e)})),this[y1]}get fx(){return this[ole]||(this[ole]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("fx"),setAttribute:e=>this.setAttribute("fx",e)})),this[ole]}get fy(){return this[ile]||(this[ile]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("fy"),setAttribute:e=>this.setAttribute("fy",e)})),this[ile]}};c();var XIe=class extends sG{[Zt]=null;[gt]=null;[ft]=null;[vt]=null;[N1]=null;[W1]=null;get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get rx(){return this[N1]||(this[N1]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("rx"),setAttribute:e=>this.setAttribute("rx",e)})),this[N1]}get ry(){return this[W1]||(this[W1]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("ry"),setAttribute:e=>this.setAttribute("ry",e)})),this[W1]}};c();var kIe=class extends To{[hr]=null;get href(){return this[hr]||(this[hr]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[hr]}get type(){return this.getAttribute("type")||""}set type(e){this.setAttribute("type",e)}};c();var LIe=class extends $N{};c();var JIe=class extends dn{[Q1]=null;get offset(){return this[Q1]||(this[Q1]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("offset"),setAttribute:e=>this.setAttribute("offset",e)})),this[Q1]}};c();var BIe=class extends dn{[eu]=null;[sb]=this;[_X]=!1;get media(){return this.getAttribute("media")||"all"}set media(e){this.setAttribute("media",e)}get type(){return this.getAttribute("type")||"text/css"}set type(e){this.setAttribute("type",e)}get title(){return this.getAttribute("title")||""}set title(e){this.setAttribute("title",e)}get disabled(){return this[_X]}set disabled(e){this[_X]=!!e}get sheet(){return this[bn]?(this[eu]||(this[eu]=new this[rt][f].CSSStyleSheet,this[eu].replaceSync(this.textContent)),this[eu]):null}[zb](){super[zb](),this[eu]=null}[OX](){this[eu]&&this[eu].replaceSync(this.textContent)}};c();var xIe=class extends To{};c();var SIe=class extends To{};c();c();c();var MB=class extends To{static LENGTHADJUST_UNKNOWN=0;static LENGTHADJUST_SPACING=1;static LENGTHADJUST_SPACINGANDGLYPHS=2;[cle]=null;[dle]=null;get textLength(){return this[cle]||(this[cle]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("textLength"),setAttribute:e=>this.setAttribute("textLength",e)})),this[cle]}get lengthAdjust(){return this[dle]||(this[dle]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("lengthAdjust"),setAttribute:e=>this.setAttribute("lengthAdjust",e),values:["spacing","spacingAndGlyphs"],defaultValue:"spacing"})),this[dle]}getNumberOfChars(){return 0}getComputedTextLength(){return 0}getSubStringLength(e,l){return 0}getStartPositionOfChar(e){return new Su(M,this[f])}getEndPositionOfChar(e){return new Su(M,this[f])}getExtentOfChar(e){return new jy(M,this[f])}getRotationOfChar(e){return 0}getCharNumAtPosition(e){return 0}};c();c();var gOl=/[\t\f\n\r, ]+/,k5=class t{[f];[it];[Me];[Cl]=!1;[Dt]={items:[],attributeValue:""};constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,this[Cl]=!!n.readOnly,this[it]=n.getAttribute,this[Me]=n.setAttribute;let I=new Wo(this,[t]);return new Proxy(this,{get:(r,a)=>{if(a==="length"||a==="numberOfItems")return r[gl]().length;if(a in r||typeof a=="symbol")return I.bind(a),r[a];let s=Number(a);if(!isNaN(s))return r[gl]()[s]},set(r,a,s){if(I.bind(a),typeof a=="symbol")return r[a]=s,!0;let o=Number(a);return isNaN(o)&&(r[a]=s),!0},deleteProperty(r,a){if(typeof a=="symbol")return delete r[a],!0;let s=Number(a);return isNaN(s)&&delete r[a],!0},ownKeys(r){return Object.keys(r[gl]())},has(r,a){if(a in r)return!0;if(typeof a=="symbol")return!1;let s=Number(a);return!isNaN(s)&&s>=0&&s<r[gl]().length},defineProperty(r,a,s){return I.preventBinding(a),a in r?(Object.defineProperty(r,a,s),!0):!1},getOwnPropertyDescriptor(r,a){if(a in r||typeof a=="symbol")return;let s=Number(a),o=r[gl]();if(!isNaN(s)&&o[s])return{value:o[s],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[gl]().length}get numberOfItems(){return this[gl]().length}[Symbol.iterator](){return this[gl]().values()}clear(){this[Me]("")}initialize(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'initialize' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[f].TypeError(`Failed to execute 'initialize' on 'SVGLengthList': 1 arguments required, but only ${arguments.length} present.`);for(let l of this[Dt].items)l[it]=null,l[Me]=null;return e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(l=>l[yt]??"0").join(" "),this[Me](this[Dt].attributeValue)},this[Dt].items=[e],this[Dt].attributeValue=e[yt],this[Me](e[yt]||""),e}getItem(e){let l=this[gl]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),l[e]?l[e]:null}insertItemBefore(e,l){if(this[Cl])throw new this[f].TypeError("Failed to execute 'insertItemBefore' on 'SVGLengthList': The object is read-only.");if(arguments.length<2)throw new this[f].TypeError(`Failed to execute 'insertItemBefore' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let n=this[gl](),I=n.indexOf(e);return I!==-1&&n.splice(I,1),l<0?l=0:l>n.length&&(l=n.length),n.splice(l,0,e),e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(r=>r[yt]??"0").join(" "),this[Me](this[Dt].attributeValue)},this[Dt].attributeValue=n.map(r=>r[yt]??"0").join(" "),this[Me](this[Dt].attributeValue),e}replaceItem(e,l){if(this[Cl])throw new this[f].TypeError("Failed to execute 'replaceItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<2)throw new this[f].TypeError(`Failed to execute 'replaceItem' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let n=this[gl](),I=n.indexOf(e);if(I===l)return e;I!==-1&&n.splice(I,1),l<0?l=0:l>=n.length&&(l=n.length-1),n[l]&&(n[l][it]=null,n[l][Me]=null);let r=n[l];return n[l]=e,e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(a=>a[yt]??"0").join(" "),this[Me](this[Dt].attributeValue)},this[Dt].attributeValue=n.map(a=>a[yt]??"0").join(" "),this[Me](this[Dt].attributeValue),r}removeItem(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'removeItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[f].TypeError(`Failed to execute 'removeItem' on 'SVGLengthList': 1 argument required, but only ${arguments.length} present.`);let l=this[gl]();if(e=Number(e),isNaN(e)&&(e=0),e>=l.length)throw new this[f].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${e}) is greater than the maximum bound.`,qe.indexSizeError);if(e<0)throw new this[f].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${e}) is negative.`,qe.indexSizeError);let n=l[e];return n&&(n[it]=null,n[Me]=null),l.splice(e,1),this[Me](l.map(I=>I[yt]??"0").join(" ")),n}appendItem(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'appendItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[f].TypeError(`Failed to execute 'appendItem' on 'SVGLengthList': 1 argument required, but only ${arguments.length} present.`);let l=this[gl](),n=l.indexOf(e);return n!==-1&&l.splice(n,1),l.push(e),e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(I=>I[yt]??"0").join(" "),this[Me](this[Dt].attributeValue)},this[Dt].attributeValue=l.map(I=>I[yt]??"0").join(" "),this[Me](this[Dt].attributeValue),e}[gl](){let e=this[it]()??"",l=this[Dt];if(l.attributeValue===e)return l.items;if(l.items.length)for(let r of l.items)r[it]=null,r[Me]=null;let n=[],I=e.trim();if(I){let r=I.split(gOl);for(let a=0,s=r.length;a<s;a++){let o=new Ky(M,this[f],{readOnly:this[Cl],getAttribute:()=>o[yt],setAttribute:d=>{o[yt]=d;let u=n.map(G=>G[yt]??"0").join(" ");l.attributeValue=u,this[Me](u)}});o[yt]=r[a],n.push(o)}}return l.attributeValue=e,l.items=n,n}};var eV=class{[f];[it];[Me];[Ns]=null;[Ws]=null;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,this[it]=n.getAttribute,this[Me]=n.setAttribute}get animVal(){return this[Ws]||(this[Ws]=new k5(M,this[f],{readOnly:!0,getAttribute:this[it],setAttribute:this[Me]})),this[Ws]}set animVal(e){}get baseVal(){return this[Ns]||(this[Ns]=new k5(M,this[f],{getAttribute:this[it],setAttribute:this[Me]})),this[Ns]}set baseVal(e){}};var AC=class extends MB{[Zt]=null;[gt]=null;[NA]=null;[WA]=null;[$le]=null;get x(){return this[Zt]||(this[Zt]=new eV(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new eV(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}get dx(){return this[NA]||(this[NA]=new eV(M,this[f],{getAttribute:()=>this.getAttribute("dx"),setAttribute:e=>this.setAttribute("dx",e)})),this[NA]}get dy(){return this[WA]||(this[WA]=new eV(M,this[f],{getAttribute:()=>this.getAttribute("dy"),setAttribute:e=>this.setAttribute("dy",e)})),this[WA]}get rotate(){return this[$le]||(this[$le]=new vA(M,this[f],{getAttribute:()=>this.getAttribute("rotate"),setAttribute:e=>this.setAttribute("rotate",e)})),this[$le]}};var OIe=class extends AC{};c();var TIe=class extends MB{static TEXTPATH_METHODTYPE_UNKNOWN=0;static TEXTPATH_METHODTYPE_ALIGN=1;static TEXTPATH_METHODTYPE_STRETCH=2;static TEXTPATH_SPACINGTYPE_UNKNOWN=0;static TEXTPATH_SPACINGTYPE_AUTO=1;static TEXTPATH_SPACINGTYPE_EXACT=2;[hr]=null;[ble]=null;[UF]=null;[ple]=null;get href(){return this[hr]||(this[hr]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[hr]}get startOffset(){return this[ble]||(this[ble]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("startOffset"),setAttribute:e=>this.setAttribute("startOffset",e)})),this[ble]}get method(){return this[UF]||(this[UF]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("method"),setAttribute:e=>this.setAttribute("method",e),values:["align","stretch"],defaultValue:"align"})),this[UF]}get spacing(){return this[ple]||(this[ple]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("spacing"),setAttribute:e=>this.setAttribute("spacing",e),values:["auto","exact"],defaultValue:"exact"})),this[ple]}};c();var UIe=class extends dn{};c();var MIe=class extends AC{};c();var _Ie=class extends To{[hr]=null;[Zt]=null;[gt]=null;[ft]=null;[vt]=null;get href(){return this[hr]||(this[hr]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[hr]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}};c();var DIe=class extends dn{};c();var zIe=class{static SVG_UNIT_TYPE_UNKNOWN=0;static SVG_UNIT_TYPE_USERSPACEONUSE=1;static SVG_UNIT_TYPE_OBJECTBOUNDINGBOX=2;SVG_UNIT_TYPE_UNKNOWN=0;SVG_UNIT_TYPE_USERSPACEONUSE=1;SVG_UNIT_TYPE_OBJECTBOUNDINGBOX=2;constructor(e){if(e!==M)throw new TypeError("Illegal constructor")}};c();var PIe=class{window;constructor(e){this.window=e}enqueueReaction(e,l,n){let I=this.window.customElements[gR]?.get(e.localName);if(I&&e[rt]===this.window.document)switch(l){case"connectedCallback":if(I.livecycleCallbacks.connectedCallback){let r=I.livecycleCallbacks.connectedCallback?.call(e);if(r instanceof Promise){let a=new kn(this.window).getAsyncTaskManager();if(a){let s=a.startTask();r.then(()=>a.endTask(s)).catch(()=>a.endTask(s))}}}break;case"disconnectedCallback":I.livecycleCallbacks.disconnectedCallback&&I.livecycleCallbacks.disconnectedCallback.call(e);break;case"attributeChangedCallback":I.livecycleCallbacks.attributeChangedCallback&&n?.length&&I.observedAttributes.has(n[0])&&I.livecycleCallbacks.attributeChangedCallback.apply(e,n);break}}};c();var Uz=class extends At{state;hasUAVisualTransition;constructor(e,l=null){super(e),this.state=l?.state??null,this.hasUAVisualTransition=l?.hasUAVisualTransition??!1}};var L5={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)},Exe=setTimeout.toString().includes("new Timeout"),Rxe=class{constructor(){throw new TypeError("Illegal constructor")}},Kge=class{callback;constructor(e){this.callback=e}},ig=class t extends qr{Node=gI;Attr=mD;ShadowRoot=Zz;ProcessingInstruction=Az;Element=aG;CharacterData=XR;DocumentType=T1;HTMLAnchorElement=GD;HTMLButtonElement=ND;HTMLOptGroupElement=PD;HTMLOptionElement=j1;HTMLElement=kt;HTMLUnknownElement=pz;HTMLTemplateElement=dz;HTMLInputElement=th;HTMLSelectElement=nz;HTMLTextAreaElement=aC;HTMLImageElement=Y5;HTMLStyleElement=az;HTMLLabelElement=JD;HTMLSlotElement=cxe;HTMLMetaElement=MD;HTMLMediaElement=z1;HTMLAudioElement=g5;HTMLVideoElement=hz;HTMLBaseElement=hD;HTMLDialogElement=VD;HTMLScriptElement=lz;HTMLLinkElement=OD;HTMLIFrameElement=LD;HTMLFormElement=vD;HTMLUListElement=bz;HTMLTrackElement=Gz;HTMLTableRowElement=cz;HTMLTitleElement=mz;HTMLTimeElement=uz;HTMLTableSectionElement=JR;HTMLTableCellElement=sz;HTMLTableElement=iz;HTMLSpanElement=rz;HTMLSourceElement=Iz;HTMLQuoteElement=tz;HTMLProgressElement=ez;HTMLPreElement=$D;HTMLPictureElement=qD;HTMLParamElement=KD;HTMLParagraphElement=jD;HTMLOutputElement=W5;HTMLOListElement=zD;HTMLObjectElement=N5;HTMLMeterElement=_D;HTMLMenuElement=UD;HTMLMapElement=TD;HTMLLIElement=xD;HTMLLegendElement=BD;HTMLModElement=DD;HTMLHtmlElement=kD;HTMLHRElement=XD;HTMLHeadElement=fD;HTMLHeadingElement=HD;HTMLFieldSetElement=y5;HTMLEmbedElement=wD;HTMLDListElement=yD;HTMLDivElement=QD;HTMLDetailsElement=YD;HTMLDataListElement=RD;HTMLDataElement=ED;HTMLTableColElement=oz;HTMLTableCaptionElement=V5;HTMLCanvasElement=WD;HTMLBRElement=ZD;HTMLBodyElement=AD;HTMLAreaElement=bD;SVGSVGElement=Tz;SVGAnimateElement=Sne;SVGAnimateMotionElement=One;SVGAnimateTransformElement=Tne;SVGCircleElement=Une;SVGClipPathElement=Mne;SVGDefsElement=_ne;SVGDescElement=Dne;SVGEllipseElement=zne;SVGFEBlendElement=Pne;SVGFEColorMatrixElement=jne;SVGFEComponentTransferElement=Kne;SVGFECompositeElement=qne;SVGFEConvolveMatrixElement=$ne;SVGFEDiffuseLightingElement=eIe;SVGFEDisplacementMapElement=tIe;SVGFEDistantLightElement=lIe;SVGFEDropShadowElement=nIe;SVGFEFloodElement=IIe;SVGFEFuncAElement=rIe;SVGFEFuncBElement=aIe;SVGFEFuncGElement=sIe;SVGFEFuncRElement=oIe;SVGFEGaussianBlurElement=iIe;SVGFEImageElement=cIe;SVGFEMergeElement=dIe;SVGFEMergeNodeElement=uIe;SVGFEMorphologyElement=mIe;SVGFEOffsetElement=GIe;SVGFEPointLightElement=bIe;SVGFESpecularLightingElement=pIe;SVGFESpotLightElement=hIe;SVGFETileElement=AIe;SVGFETurbulenceElement=ZIe;SVGFilterElement=gIe;SVGForeignObjectElement=NIe;SVGGElement=WIe;SVGImageElement=yIe;SVGLineElement=EIe;SVGLinearGradientElement=RIe;SVGMarkerElement=YIe;SVGMaskElement=VIe;SVGMetadataElement=QIe;SVGMPathElement=wIe;SVGPathElement=FIe;SVGPatternElement=CIe;SVGPolygonElement=vIe;SVGPolylineElement=fIe;SVGRadialGradientElement=HIe;SVGRectElement=XIe;SVGScriptElement=kIe;SVGSetElement=LIe;SVGStopElement=JIe;SVGStyleElement=BIe;SVGSwitchElement=xIe;SVGSymbolElement=SIe;SVGTextElement=OIe;SVGTextPathElement=TIe;SVGTitleElement=UIe;SVGTSpanElement=MIe;SVGUseElement=_Ie;SVGViewElement=DIe;SVGElement=dn;SVGAnimationElement=$N;SVGComponentTransferFunctionElement=eW;SVGGeometryElement=sG;SVGGradientElement=hC;SVGTextPositioningElement=AC;SVGGraphicsElement=To;Event=At;UIEvent=Qm;CustomEvent=lD;AnimationEvent=eD;KeyboardEvent=ID;MessageEvent=rD;MouseEvent=wd;PointerEvent=c5;FocusEvent=CR;WheelEvent=sD;InputEvent=nD;ErrorEvent=x1;StorageEvent=une;SubmitEvent=d5;ProgressEvent=RA;MediaQueryListEvent=$X;HashChangeEvent=i5;ClipboardEvent=tD;TouchEvent=aD;PopStateEvent=Uz;Touch=$_;AudioProcessingEvent=At;BeforeInputEvent=At;BeforeUnloadEvent=At;BlobEvent=At;CloseEvent=At;CompositionEvent=At;CSSFontFaceLoadEvent=At;DeviceLightEvent=At;DeviceMotionEvent=At;DeviceOrientationEvent=At;DeviceProximityEvent=At;DOMTransactionEvent=At;DragEvent=At;EditingBeforeInputEvent=At;FetchEvent=At;GamepadEvent=At;IDBVersionChangeEvent=At;MediaStreamEvent=At;MutationEvent=At;OfflineAudioCompletionEvent=At;OverconstrainedError=At;PageTransitionEvent=At;PaymentRequestUpdateEvent=At;RelatedEvent=At;RTCDataChannelEvent=At;RTCIdentityErrorEvent=At;RTCIdentityEvent=At;RTCPeerConnectionIceEvent=At;SensorEvent=At;SVGEvent=At;SVGZoomEvent=At;TimeEvent=At;TrackEvent=At;TransitionEvent=At;UserProximityEvent=At;WebGLContextEvent=At;TextEvent=At;Permissions=b5;History=WB;Navigator=uD;Clipboard=KX;TimeRanges=IC;TextTrackCueList=cC;ValidityState=lp;MutationRecord=QA;IntersectionObserver=cD;IntersectionObserverEntry=dD;CSSStyleDeclaration=$b;CSSRule=ag;CSSContainerRule=e5;CSSFontFaceRule=t5;CSSKeyframeRule=J1;CSSKeyframesRule=l5;CSSMediaRule=I5;CSSStyleRule=B1;CSSSupportsRule=s5;CSSConditionRule=Uy;CSSGroupingRule=Ty;CSSScopeRule=L1;DOMRect=zy;DOMRectReadOnly=p5;Plugin=bne;PluginArray=RB;Location=yB;CustomElementRegistry=AB;ResizeObserver=gz;Blob=_s;File=EA;Storage=w5;MimeType=Gne;MimeTypeArray=EB;NodeFilter=Ls;HTMLCollection=Oo;HTMLFormControlCollection=E5;HTMLOptionsCollection=JB;NodeList=_N;RadioNodeList=HB;FileList=rC;Screen=BB;DOMMatrixReadOnly=OB;DOMMatrix=lh;NamedNodeMap=_1;TreeWalker=U1;NodeIterator=h5;DataTransfer=q_;DataTransferItem=FR;DataTransferItemList=o5;Headers=So;XMLSerializer=Nz;ClipboardItem=P_;Selection=A5;CSSUnitValue=Es;SVGAngle=$1;SVGAnimatedAngle=UB;SVGAnimatedBoolean=TB;SVGAnimatedEnumeration=Ir;SVGAnimatedInteger=$y;SVGAnimatedLength=Gt;SVGAnimatedNumber=Mn;SVGAnimatedNumberList=vA;SVGAnimatedPreserveAspectRatio=qN;SVGAnimatedRect=bC;SVGAnimatedString=Yn;SVGAnimatedTransformList=xR;SVGLength=Ky;SVGLengthList=k5;SVGMatrix=q1;SVGNumber=qy;SVGNumberList=X5;SVGPoint=Su;SVGPointList=SR;SVGPreserveAspectRatio=H5;SVGRect=jy;SVGStringList=BR;SVGTransform=og;SVGTransformList=f5;SVGAnimatedLengthList=eV;SVGUnitTypes=zIe;DOMPoint=SB;StylePropertyMap=a5;StylePropertyMapReadOnly=r5;MediaList=n5;CSSKeywordValue=jF;CSSStyleValue=KF;Window=this.constructor;URLSearchParams=YOl;WritableStream=z0t.Writable;ReadableStream=ROl;TransformStream=z0t.Transform;PerformanceObserver=VOl;PerformanceEntry=QOl;PerformanceObserverEntryList=Rxe;onload=null;onerror=null;document;customElements=new AB(this);window=this;globalThis=this;performance=performance;screenLeft=0;screenTop=0;screenX=0;screenY=0;crypto=WOl;TextEncoder=yOl;TextDecoder=EOl;closed=!1;console;name="";Buffer=NOl;[kX]=[];[jZ];[KZ];[Ec];[Wge];[yge];[Ege];[Rge];[TX]=this;[ER]=this;[qZ]=this;[f]=this;[FBe]=this;[FX]=-1;[DX]=new PIe(this);[X1]={json:new Map,css:new Map,esm:new Map};[MF]=null;#e;#t=null;#l=null;#n=null;#I=null;#r=null;#i={timeouts:null};#a=[];#s=[];constructor(e,l){super(),this.#e=e,this.console=e.page.console,this[jZ]=new pne(e),this[Wge]=new uD(this),this[yge]=new BB,this[Ege]=new w5,this[Rge]=new w5,this[KZ]=new yB(this.#e,l?.url??"about:blank"),this[Ec]=new WB(this.#e,this),e[Ec].currentItem.href=l?.url??"about:blank",kn.setWindowBrowserFrameRelation(this,this.#e),this[Ete](),Jne.extendClasses(this),this.document=new this.HTMLDocument,this.document[Pp]=this;let n=e[hI].startTask(()=>this[jZ].destroy());this[jZ].waitUntilComplete().then(()=>{e[hI].endTask(n),this.document[JX]=Uge.complete,this.document.dispatchEvent(new At("readystatechange"));let I=new At("load");I[ON]=this,I[ab]=this.document,I[ib]=ys.atTarget,this.dispatchEvent(I),I[ON]=null,I[ib]=ys.none,I[zX]=!1}),this[QBe]()}get self(){return this[TX]}set self(e){this[TX]=e}get top(){return this[ER]}get parent(){return this[qZ]}set parent(e){this[qZ]=e}get frames(){return this[FBe]}set frames(e){this[qZ]=e}get location(){return this[KZ]}set location(e){this[KZ].href=e}get history(){return this[Ec]}get navigator(){return this[Wge]}get screen(){return this[yge]}get sessionStorage(){return this[Ege]}get localStorage(){return this[Rge]}get opener(){return this.#e[xy]}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 sne}get innerWidth(){return this.#t===null?this.#e.page.viewport.width:this.#t}set innerWidth(e){this.#t=e}get innerHeight(){return this.#l===null?this.#e.page.viewport.height:this.#l}set innerHeight(e){this.#l=e}get outerWidth(){return this.#n===null?this.#e.page.viewport.width:this.#n}set outerWidth(e){this.#n=e}get outerHeight(){return this.#I===null?this.#e.page.viewport.height:this.#I}set outerHeight(e){this.#I=e}get devicePixelRatio(){return this.#r===null?this.#e.page.viewport.devicePixelRatio:this.#r}set devicePixelRatio(e){this.#r=e}getComputedStyle(e){return e[S_]=e[S_]||new $b(M,this,{element:e,computed:!0}),e[S_]}getSelection(){return this.document.getSelection()}scroll(e,l){if(typeof e!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scroll' on 'Window': The provided value is not of type 'ScrollToOptions'.");let n=typeof e=="object"?e:{left:e,top:l};if(n.behavior==="smooth")this.setTimeout(()=>{if(n.top!==void 0){let I=Number(n.top);this.document.documentElement.scrollTop=isNaN(I)?0:I}if(n.left!==void 0){let I=Number(n.left);this.document.documentElement.scrollLeft=isNaN(I)?0:I}});else{if(n.top!==void 0){let I=Number(n.top);this.document.documentElement.scrollTop=isNaN(I)?0:I}if(n.left!==void 0){let I=Number(n.left);this.document.documentElement.scrollLeft=isNaN(I)?0:I}}}scrollTo(e,l){if(typeof e!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scrollTo' on 'Window': The provided value is not of type 'ScrollToOptions'.");this.scroll(e,l)}scrollBy(e,l){if(typeof e!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scrollBy' on 'Window': The provided value is not of type 'ScrollToOptions'.");let n=typeof e=="object"?e:{left:e,top:l};this.scroll({left:this.document.documentElement.scrollLeft+(n.left??0),top:this.document.documentElement.scrollTop+(n.top??0),behavior:n.behavior})}blur(){}focus(){}open(e,l,n){return wne.openPage(this.#e,{url:e,target:l,features:n})}close(){this.#e.page.mainFrame===this.#e&&this.#e[xy]&&(this[ld](),this.#e.page.close())}matchMedia(e){return new hB({window:this,media:e})}setTimeout(e,l=0,...n){if(this.closed)return{};let I=this.#e.page.context.browser.settings;if(I.timer.preventTimerLoops){let s=new Error().stack,o=this.#a,d=this.#s,u=o.indexOf(s);if(u!==-1){if(d[u].timeout++,d[u].timeout>=(I.timer.preventTimerLoops===!0?1:I.timer.preventTimerLoops.timeout??1))return{}}else o.push(s),d.push({timeout:0,requestAnimationFrame:0})}if(!l){let s=this.#i;if(!s.timeouts){let d=!I||!I.disableErrorCapturing&&I.errorCapture===ks.tryAndCatch,u=L5.setTimeout(()=>{this.#e[hI].endTimer(u);let G=s.timeouts;s.timeouts=null;for(let p of G)if(d){let h;try{h=p.callback()}catch(W){this[Ms](W)}h instanceof Promise&&h.catch(W=>this[Ms](W))}else p.callback()},0);s.timeouts=[],this.#e[hI].startTimer(u)}let o=new Kge(()=>e(...n));return s.timeouts.push(o),o}let r=!I||!I.disableErrorCapturing&&I.errorCapture===ks.tryAndCatch,a=L5.setTimeout(()=>{if(this.#e[hI].endTimer(a),r){let s;try{s=e(...n)}catch(o){this[Ms](o)}s instanceof Promise&&s.catch(o=>this[Ms](o))}else e(...n)},I?.timer.maxTimeout!==-1&&l&&l>I?.timer.maxTimeout?I?.timer.maxTimeout:l);return this.#e[hI].startTimer(a),a}clearTimeout(e){if(e&&e instanceof Kge){let l=this.#i;if(!l.timeouts)return;let n=l.timeouts.indexOf(e);n!==-1&&l.timeouts.splice(n,1);return}Exe&&(!e||e.constructor.name!=="Timeout")||(L5.clearTimeout(e),this.#e[hI].endTimer(e))}setInterval(e,l=0,...n){if(this.closed)return{};let I=this.#e.page.context.browser.settings,r=!I||!I.disableErrorCapturing&&I.errorCapture===ks.tryAndCatch,a=0,s=L5.setInterval(()=>{if(r){let o;try{o=e(...n)}catch(d){this.clearInterval(s),this[Ms](d)}o instanceof Promise&&o.catch(d=>{this.clearInterval(s),this[Ms](d)})}else e(...n);I?.timer.maxIntervalIterations!==-1&&(a>=I?.timer.maxIntervalIterations&&this.clearInterval(s),a++)},I?.timer.maxIntervalTime!==-1&&l&&l>I?.timer.maxIntervalTime?I?.timer.maxIntervalTime:l);return this.#e[hI].startTimer(s),s}clearInterval(e){Exe&&(!e||e.constructor.name!=="Timeout")||(L5.clearInterval(e),this.#e[hI].endTimer(e))}requestAnimationFrame(e){if(this.closed)return{};let l=this.#e.page.context.browser.settings;if(l.timer.preventTimerLoops){let r=new Error().stack,a=this.#a,s=this.#s,o=a.indexOf(r);if(o!==-1){if(s[o].requestAnimationFrame++,s[o].requestAnimationFrame>=(l.timer.preventTimerLoops===!0?1:l.timer.preventTimerLoops.requestAnimationFrame??1))return{}}else a.push(r),s.push({timeout:0,requestAnimationFrame:0})}let n=!l||!l.disableErrorCapturing&&l.errorCapture===ks.tryAndCatch,I=L5.setImmediate(()=>{if(this.#e[hI].endImmediate(I),n){let r;try{r=e(this.performance.now())}catch(a){this[Ms](a)}r instanceof Promise&&r.catch(a=>this[Ms](a))}else e(this.performance.now())});return this.#e[hI].startImmediate(I),I}cancelAnimationFrame(e){Exe&&(!e||e.constructor.name!=="Immediate")||(L5.clearImmediate(e),this.#e[hI].endImmediate(e))}queueMicrotask(e){if(this.closed)return;let l=!1,n=this.#e[hI].startTask(()=>l=!0),I=this.#e.page.context.browser.settings,r=!I||!I.disableErrorCapturing&&I.errorCapture===ks.tryAndCatch;L5.queueMicrotask(()=>{if(!l)if(this.#e[hI].endTask(n),r){let a;try{a=e()}catch(s){this[Ms](s)}a instanceof Promise&&a.catch(s=>this[Ms](s))}else e()})}async fetch(e,l){return this.closed?Promise.reject(new this.DOMException("Failed to execute 'fetch' on 'Window': The window is closed.",qe.invalidStateError)):await new VA({browserFrame:this.#e,window:this,url:e,init:l}).send()}btoa(e){return z_.btoa(e)}atob(e){return z_.atob(e)}postMessage(e,l="*",n){if(!this.closed){if(l&&l!=="*"&&this.location.origin!==l)throw new this.DOMException(`Failed to execute 'postMessage' on 'Window': The target origin provided ('${l}') does not match the recipient window's origin ('${this.location.origin}').`,qe.securityError);try{JSON.stringify(e)}catch{throw new this.DOMException("Failed to execute 'postMessage' on 'Window': The provided message cannot be serialized.",qe.invalidStateError)}this.setTimeout(()=>this.dispatchEvent(new rD("message",{data:e,origin:this.#e.parentFrame?this.#e.parentFrame.window.location.origin:this.#e.window.location.origin,source:this.#e.parentFrame?this.#e.parentFrame.window:this.#e.window,lastEventId:""})))}}resizeTo(e,l){if(!this.closed){if(!e||!l)throw new this.DOMException(`Failed to execute 'resizeTo' on 'Window': 2 arguments required, but only ${arguments.length} present.`);this.#e[fF]&&this.#e.page.setViewport({width:e,height:l})}}resizeBy(e,l){if(!this.closed){if(!e||!l)throw new this.DOMException(`Failed to execute 'resizeBy' on 'Window': 2 arguments required, but only ${arguments.length} present.`);if(this.#e[fF]){let n=this.#e.page.viewport;this.#e.page.setViewport({width:n.width+e,height:n.height+l})}}}[Ms](e){this.#e.page.console.error(e),this.dispatchEvent(new x1("error",{message:e.message,error:e}))}[Ete](){P0t.isContext(this)||(P0t.createContext(this),F0t.runInContext(this))}[ld](){if(this.closed)return;this.closed=!0;let e=this[kX];for(let a of e)a[ld]&&a[ld]();this[kX]=[];let l=this.document[Il];for(;l.length>0;)l[0].disconnectedCallback&&delete l[0].disconnectedCallback,this.document[Lu](l[0]);let n=this.document.createElement("html"),I=this.document.createElement("head"),r=this.document.createElement("body");n.appendChild(I),n.appendChild(r),this.document[_I](n),this.location[ld]&&this.location[ld](),this.customElements[ld]&&this.customElements[ld](),this.history[ld]&&this.history[ld](),this[X1].json.clear(),this[X1].css.clear(),this[X1].esm.clear(),this.document[qp].clear(),this.document[yc]=null,this.document[fX]=null,this.document[ZR]=null,this.document[q3]=null,kn.removeWindowBrowserFrameRelation(this)}[QBe](){for(let e of[t,qr]){let l=Object.getOwnPropertyDescriptors(e.prototype),n=Object.keys(l);for(let I of n){let r=l[I];r.get||r.set?Object.defineProperty(this,I,{...r,get:r.get?.bind(this),set:r.set?.bind(this)}):I!=="constructor"&&typeof r.value=="function"&&!r.value.toString().startsWith("class ")&&Object.defineProperty(this,I,{...r,value:r.value.bind(this)})}}}};var Mz=class{childFrames=[];parentFrame=null;page;window;closed=!1;[hI]=new QR(this);[vi]={navigation:[]};[jp]=null;[xy]=null;[fF]=!1;[Ec]=new fB;constructor(e){this.page=e,this.window=new ig(this),e.context.browser[tG]&&e.context.browser[tG].observe(this.window)}get content(){return this.window.document.documentElement.outerHTML}set content(e){this.window.document[s1]=!0,this.window.document[o1]=!1,this.window.document.open(),this.window.document.write(e)}get url(){return this.window.location.href}set url(e){this.window[KZ][Pb](this,eh.getRelativeURL(this,e).href)}get document(){return this.window?.document??null}async waitUntilComplete(){await Promise.all([this[hI].waitUntilComplete(),...this.childFrames.map(e=>e.waitUntilComplete())])}waitForNavigation(){return new Promise(e=>this[vi].navigation.push(e))}abort(){return this.childFrames.length?new Promise((e,l)=>{Promise.all(this.childFrames.map(n=>n.abort()).concat([this[hI].abort()])).then(()=>e()).catch(l)}):this[hI].abort()}evaluate(e){return vB.evaluate(this,e)}goto(e,l){return db.navigate({windowClass:ig,frame:this,url:e,goToOptions:l})}goBack(e){return db.navigateBack({windowClass:ig,frame:this,goToOptions:e})}goForward(e){return db.navigateForward({windowClass:ig,frame:this,goToOptions:e})}goSteps(e,l){return db.navigateSteps({windowClass:ig,frame:this,steps:e,goToOptions:l})}reload(e){return db.reload({windowClass:ig,frame:this,goToOptions:e})}};c();var J5=class{#e;#t={};#l={};#n=0;#I=[];constructor(e){this.#e=e}assert(e,l,...n){e||this.#e.print({type:Yc.assert,level:Vm.error,message:["Assertion failed:",...l?[l,...n]:n],group:this.#I[this.#I.length-1]||null})}clear(){this.#e.clear()}count(e="default"){this.#t[e]||(this.#t[e]=0),this.#t[e]++,this.#e.print({type:Yc.count,level:Vm.info,message:[`${e}: ${this.#t[e]}`],group:this.#I[this.#I.length-1]||null})}countReset(e="default"){delete this.#t[e],this.#e.print({type:Yc.countReset,level:Vm.warn,message:[`${e}: 0`],group:this.#I[this.#I.length-1]||null})}debug(e,...l){this.#e.print({type:Yc.debug,level:Vm.log,message:e?[e,...l]:l,group:this.#I[this.#I.length-1]||null})}dir(e){this.#e.print({type:Yc.dir,level:Vm.log,message:[e],group:this.#I[this.#I.length-1]||null})}dirxml(e){this.#e.print({type:Yc.dirxml,level:Vm.log,message:[e],group:this.#I[this.#I.length-1]||null})}error(e,...l){this.#e.print({type:Yc.error,level:Vm.error,message:e?[e,...l]:l,group:this.#I[this.#I.length-1]||null})}exception(...e){this.error(...e)}group(e){this.#n++;let l={id:this.#n,label:e||"default",collapsed:!1,parent:this.#I[this.#I.length-1]||null};this.#I.push(l),this.#e.print({type:Yc.group,level:Vm.log,message:[e||"default"],group:l})}groupCollapsed(e){this.#n++;let l={id:this.#n,label:e||"default",collapsed:!0,parent:this.#I[this.#I.length-1]||null};this.#I.push(l),this.#e.print({type:Yc.groupCollapsed,level:Vm.log,message:[e||"default"],group:l})}groupEnd(){this.#I.length!==0&&this.#I.pop()}info(e,...l){this.#e.print({type:Yc.info,level:Vm.info,message:e?[e,...l]:l,group:this.#I[this.#I.length-1]||null})}log(e,...l){this.#e.print({type:Yc.log,level:Vm.log,message:e?[e,...l]:l,group:this.#I[this.#I.length-1]||null})}profile(){throw new Error("Method not implemented.")}profileEnd(){throw new Error("Method not implemented.")}table(e){this.#e.print({type:Yc.table,level:Vm.log,message:[e],group:this.#I[this.#I.length-1]||null})}time(e="default"){this.#l[e]=performance.now()}timeEnd(e="default"){let l=this.#l[e];if(l){let n=performance.now()-l;this.#e.print({type:Yc.timeEnd,level:Vm.info,message:[`${e}: ${n}ms - timer ended`],group:this.#I[this.#I.length-1]||null})}}timeLog(e="default",...l){let n=this.#l[e];if(n){let I=performance.now()-n;this.#e.print({type:Yc.timeLog,level:Vm.info,message:[`${e}: ${I}ms`,...l],group:this.#I[this.#I.length-1]||null})}}timeStamp(){throw new Error("Method not implemented.")}trace(e,...l){this.#e.print({type:Yc.trace,level:Vm.log,message:[...e?[e,...l]:l,new Error("stack").stack.replace("Error: stack","")],group:this.#I[this.#I.length-1]||null})}warn(e,...l){this.#e.print({type:Yc.warn,level:Vm.warn,message:e?[e,...l]:l,group:this.#I[this.#I.length-1]||null})}};c();var ZC=class{static getFrames(e){return this.findFrames(e.mainFrame)}static closePage(e){if(e.closed)return Promise.resolve();e.closed=!0;let l=e.context.pages.indexOf(e);return l!==-1&&e.context.pages.splice(l,1),e.virtualConsolePrinter.close(),LR.destroyFrame(e.mainFrame)}static findFrames(e){let l=[e];for(let n of e.childFrames)l=l.concat(this.findFrames(n));return l}};var _z=class{virtualConsolePrinter=new jX;mainFrame;context;console;viewport;closed=!1;constructor(e){this.context=e,this.console=e.browser.console??new J5(this.virtualConsolePrinter),this.mainFrame=new Mz(this),this.viewport={width:e.browser.settings.viewport.width,height:e.browser.settings.viewport.height,devicePixelRatio:e.browser.settings.viewport.devicePixelRatio}}get frames(){return ZC.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 ZC.closePage(this)}waitUntilComplete(){return this.mainFrame.waitUntilComplete()}waitForNavigation(){return this.mainFrame.waitForNavigation()}abort(){return this.mainFrame.abort()}evaluate(e){return this.mainFrame.evaluate(e)}setViewport(e){let l=Object.assign({},this.viewport);Object.assign(this.viewport,e),(l.width!==this.viewport.width||l.height!==this.viewport.height||l.devicePixelRatio!==this.viewport.devicePixelRatio)&&this.mainFrame.window.dispatchEvent(new At("resize"))}goto(e,l){return this.mainFrame.goto(e,l)}goBack(e){return this.mainFrame.goBack(e)}goForward(e){return this.mainFrame.goForward(e)}goSteps(e,l){return this.mainFrame.goSteps(e,l)}reload(e){return this.mainFrame.reload(e)}};c();var _B=class{#e=new Map;get(e){let l=this.#e.get(e.url);return l?l.expires<Date.now()?(this.#e.delete(e.url),null):l:null}add(e,l){if(this.#e.delete(e.url),e.headers.get("Cache-Control")?.includes("no-cache")||l.status<200||l.status>=300)return null;let n=l.headers.get("Access-Control-Max-Age"),I=l.headers.get("Access-Control-Allow-Origin");if(!n||!I)return null;let r=[];if(l.headers.has("Access-Control-Allow-Methods")&&l.headers.get("Access-Control-Allow-Methods")!=="*")for(let o of l.headers.get("Access-Control-Allow-Methods").split(","))r.push(o.trim().toUpperCase());let a={allowOrigin:I,allowMethods:r,expires:Date.now()+parseInt(n)*1e3};return isNaN(a.expires)||a.expires<Date.now()?null:(this.#e.set(e.url,a),a)}clear(){this.#e.clear()}};var DB=class{pages=[];browser;cookieContainer=new uB;responseCache=new mB;preflightResponseCache=new _B;closed=!1;constructor(e){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(n=>n.close()));let e=this.browser,l=e.contexts.indexOf(this);l!==-1&&e.contexts.splice(l,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,l)=>{if(!this.pages.length){e();return}Promise.all(this.pages.slice().map(n=>n.abort())).then(()=>e()).catch(n=>l(n))})}newPage(){let e=new _z(this);return this.pages.push(e),e}};c();c();c();var j0t={version:"19.0.2"};var tV={disableJavaScriptEvaluation:!1,disableJavaScriptFileLoading:!1,disableCSSFileLoading:!1,disableIframePageLoading:!1,disableComputedStyleRendering:!1,handleDisabledFileLoadingAsSuccess:!1,disableErrorCapturing:!1,errorCapture:ks.tryAndCatch,enableFileSystemHttpRequests:!1,timer:{maxTimeout:-1,maxIntervalTime:-1,maxIntervalIterations:-1,preventTimerLoops:!1},fetch:{disableSameOriginPolicy:!1,disableStrictSSL:!1,interceptor:null,requestHeaders:null,virtualServers:null},navigation:{disableMainFrameNavigation:!1,disableChildFrameNavigation:!1,disableChildPageNavigation:!1,disableFallbackToSetURL:!1,crossOriginPolicy:FD.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/${j0t.version}`,maxTouchPoints:0},device:{prefersColorScheme:"light",prefersReducedMotion:"no-preference",mediaType:"screen",forcedColors:"none"},debug:{traceWaitUntilComplete:-1},viewport:{width:1024,height:768,devicePixelRatio:1}};var zB=class{static createSettings(e){return e&&this.validate(tV,e),{...tV,...e,navigation:{...tV.navigation,...e?.navigation},navigator:{...tV.navigator,...e?.navigator},timer:{...tV.timer,...e?.timer},fetch:{...tV.fetch,...e?.fetch},device:{...tV.device,...e?.device},debug:{...tV.debug,...e?.debug},viewport:{...tV.viewport,...e?.viewport}}}static validate(e,l,n){for(let I of Object.keys(l)){if(e[I]===void 0){let r=n?n+"."+I:I;throw new Error(`Unknown browser setting "${r}"`)}if(typeof e[I]=="object"&&!Array.isArray(e[I])&&e[I]!==null){let r=n?n+"."+I:I;if(typeof l[I]!="object"||Array.isArray(l[I])||l[I]===null)throw new Error(`Browser setting "${r}" cannot be null`);this.validate(e[I],l[I],r)}else if((typeof e[I]=="boolean"||typeof e[I]=="number"||typeof e[I]=="string")&&typeof l[I]!=typeof e[I]&&!(I==="preventTimerLoops"&&typeof l[I]=="object"&&l[I]!==null)){let a=n?n+"."+I:I;throw new Error(`Browser setting "${a}" must be of type "${typeof e[I]}"`)}}}};c();var PB=class{static listenerCount=0;observedWindows=[];uncaughtExceptionListener=null;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=(l,n)=>{if(n==="unhandledRejection")return;let I=null;for(let r of this.observedWindows)if(l instanceof r.Error||l instanceof r.DOMException){I=r;break}I?(I.console.error(l),I.dispatchEvent(new I.ErrorEvent("error",{error:l,message:l.message}))):process.listenerCount("uncaughtException")===this.constructor.listenerCount&&(console.error(l),process.exit(1))},this.uncaughtRejectionListener=l=>{let n=null;for(let I of this.observedWindows)if(l instanceof I.Error||l instanceof I.DOMException){n=I;break}n?(n.console.error(l),n.dispatchEvent(new n.ErrorEvent("error",{error:l,message:l.message}))):process.listenerCount("unhandledRejection")===this.constructor.listenerCount&&(console.error(l),process.exit(1))},this.constructor.listenerCount++,process.on("uncaughtException",this.uncaughtExceptionListener),process.on("unhandledRejection",this.uncaughtRejectionListener))}disconnect(e){let l=this.observedWindows.indexOf(e);l!==-1&&(this.observedWindows.splice(l,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))}};var qge=class{contexts;settings;console;[tG]=null;constructor(e){this.console=e?.console||null,this.settings=zB.createSettings(e?.settings),this.settings.errorCapture===ks.processLevel&&(this[tG]=new PB),this.contexts=[new DB(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(l=>l.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,l)=>{if(!this.contexts.length){e();return}Promise.all(this.contexts.slice().map(n=>n.abort())).then(()=>e()).catch(n=>l(n))})}newIncognitoContext(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");let e=new DB(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()}};c();c();c();var jB=class{virtualConsolePrinter=new jX;mainFrame;context;console;viewport;closed=!1;constructor(e){this.context=e,this.console=e.browser.console??new J5(this.virtualConsolePrinter),this.mainFrame=new R5(this),this.viewport={width:e.browser.settings.viewport.width,height:e.browser.settings.viewport.height,devicePixelRatio:e.browser.settings.viewport.devicePixelRatio}}get frames(){return ZC.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,l)=>{let n=this.context;ZC.closePage(this).then(()=>{n.pages[0]===this?n.browser.close().then(e).catch(l):e()}).catch(l)})}waitUntilComplete(){return this.mainFrame.waitUntilComplete()}waitForNavigation(){return this.mainFrame.waitForNavigation()}abort(){return this.mainFrame.abort()}evaluate(e){return this.mainFrame.evaluate(e)}setViewport(e){let l=Object.assign({},this.viewport);Object.assign(this.viewport,e),(l.width!==this.viewport.width||l.height!==this.viewport.height||l.devicePixelRatio!==this.viewport.devicePixelRatio)&&this.mainFrame.window.dispatchEvent(new At("resize"))}goto(e,l){return this.mainFrame.goto(e,l)}goBack(e){return this.mainFrame.goBack(e)}goForward(e){return this.mainFrame.goForward(e)}goSteps(e,l){return this.mainFrame.goSteps(e,l)}reload(e){return this.mainFrame.reload(e)}};var Dz=class{pages;browser;cookieContainer=new uB;responseCache=new mB;preflightResponseCache=new _B;closed=!1;constructor(e){this.browser=e,this.pages=[],this.pages.push(new jB(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(n=>n.close()));let e=this.browser,l=e.contexts.indexOf(this);l!==-1&&e.contexts.splice(l,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,l)=>{if(!this.pages.length){e();return}Promise.all(this.pages.slice().map(n=>n.abort())).then(()=>e()).catch(n=>l(n))})}newPage(){let e=new jB(this);return this.pages.push(e),e}};var zz=class{contexts;settings;console;windowClass;[tG]=null;constructor(e,l){this.windowClass=e,this.console=l?.console||null,this.settings=zB.createSettings(l?.settings),this.settings.errorCapture===ks.processLevel&&(this[tG]=new PB),this.contexts=[],this.contexts.push(new Dz(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(l=>l.close()))}async waitUntilComplete(){await Promise.all(this.contexts.map(e=>e.waitUntilComplete()))}abort(){return new Promise((e,l)=>{if(!this.contexts.length){e();return}Promise.all(this.contexts.slice().map(n=>n.abort())).then(()=>e()).catch(n=>l(n))})}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()}};c();var Pz=class{#e;constructor(e){this.#e=e}get settings(){return this.#e.page.context.browser.settings}get virtualConsolePrinter(){return this.#e.page.virtualConsolePrinter}waitUntilComplete(){return this.#e.waitUntilComplete()}whenAsyncComplete(){return this.waitUntilComplete()}abort(){return this.#e.abort()}cancelAsync(){return this.abort()}close(){return this.#e.page.close()}setURL(e){this.#e.url=e}setViewport(e){this.#e.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})}};c();c();var B5=class extends ig{happyDOM;constructor(e){let n=new zz(ig,{console:e?.console,settings:e?.settings}).defaultContext.pages[0],I=n.mainFrame;e&&(e.width||e.height||e.innerWidth||e.innerHeight)&&Object.assign(n.viewport,{width:e.width||e.innerWidth||n.viewport.width,height:e.height||e.innerHeight||n.viewport.height}),super(I,{url:e?.url}),I.window=this,I.page.context.browser[tG]&&I.page.context.browser[tG].observe(this),this.happyDOM=new Pz(I)}};import{Buffer as wOl}from"buffer";var $ge=class extends B5{Array=globalThis.Array;ArrayBuffer=globalThis.ArrayBuffer;Boolean=globalThis.Boolean;Buffer=wOl;DataView=globalThis.DataView;Date=globalThis.Date;Error=globalThis.Error;EvalError=globalThis.EvalError;Float32Array=globalThis.Float32Array;Float64Array=globalThis.Float64Array;Function=globalThis.Function;Infinity=globalThis.Infinity;Int16Array=globalThis.Int16Array;Int32Array=globalThis.Int32Array;Int8Array=globalThis.Int8Array;Intl=globalThis.Intl;JSON=globalThis.JSON;Map=globalThis.Map;Math=globalThis.Math;NaN=globalThis.NaN;Number=globalThis.Number;Object=globalThis.Object;Promise=globalThis.Promise;RangeError=globalThis.RangeError;ReferenceError=globalThis.ReferenceError;RegExp=globalThis.RegExp;Set=globalThis.Set;String=globalThis.String;Symbol=globalThis.Symbol;SyntaxError=globalThis.SyntaxError;TypeError=globalThis.TypeError;URIError=globalThis.URIError;Uint16Array=globalThis.Uint16Array;Uint32Array=globalThis.Uint32Array;Uint8Array=globalThis.Uint8Array;Uint8ClampedArray=globalThis.Uint8ClampedArray;WeakMap=globalThis.WeakMap;WeakSet=globalThis.WeakSet;decodeURI=globalThis.decodeURI;decodeURIComponent=globalThis.decodeURIComponent;encodeURI=globalThis.encodeURI;encodeURIComponent=globalThis.encodeURIComponent;eval=globalThis.eval;escape=globalThis.escape;global=globalThis;isFinite=globalThis.isFinite;isNaN=globalThis.isNaN;parseFloat=globalThis.parseFloat;parseInt=globalThis.parseInt;undefined=globalThis.undefined;unescape=globalThis.unescape;[Ete](){}};var K0t=5e3,FOl,COl=["b","blockquote","br","code","em","h1","h2","h3","h4","h5","h6","hr","i","li","ol","p","pre","strong","sub","sup","table","tbody","td","th","thead","tr","ul","img","a","#text"],vOl=["href","src"],q0t={img:["src"],a:["href"]};var fOl=new B5,HOl={ALLOWED_TAGS:COl,ALLOW_DATA_ATTR:!1,ALLOWED_ATTR:vOl,KEEP_CONTENT:!1,RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,WHOLE_DOCUMENT:!1,SANITIZE_DOM:!0,SAFE_FOR_TEMPLATES:!1,SAFE_FOR_XML:!0,RETURN_TRUSTED_TYPE:!1,USE_PROFILES:!1};function XOl(t,e,l){let n=t.tagName.toLowerCase();if(!(n in q0t)){e.forceKeepAttr=!1,e.keepAttr=!1;return}let I=q0t[n],r=e.attrName.toLowerCase();if(!I.includes(r)){e.forceKeepAttr=!1,e.keepAttr=!1;return}if(n==="img"&&r==="src"||n==="a"&&r==="href"){try{let a=URL.parse(e.attrValue);if(a&&(a.protocol==="http:"||a.protocol==="https:"))return}catch{}e.forceKeepAttr=!1,e.keepAttr=!1}}function Yxe(t,e){if(!t)return t;try{return $0t(t,e)}catch(l){throw new Error(`Failed to apply content filter: ${l}`)}}function Vxe(t){switch(t.toLowerCase()){case"none":return"none";case"markdown":return"markdown";case"hidden_characters":return"hidden_characters";default:return"hidden_characters"}}function Qxe(t,e){if(t===null||typeof t!="object")return t;for(let[l,n]of Object.entries(t))if(typeof n=="string"){let I=Yxe(n,e);t[l]=I}else typeof n=="object"&&n!==null&&(t[l]=Qxe(n,e));return t}function $0t(t,e,l=[]){if(!t||e==="none")return t;switch(e||(e="markdown"),e){case"markdown":return gC(t,l);case"hidden_characters":return eRt(t);default:throw new Error(`Unknown filter mode: ${e}`)}}function gC(t,e=[]){if(!t)return t;let l=eRt(t),n=/(```.*?\n[\s\S\n]+?\n```)|(`[\s\S\n]+?`)/gm,I="",r=0,a=new Map,s=0;for(let o of l.matchAll(n)){let d=o[0],u=o.index,G=u+d.length;I+=l.slice(r,u);let p=`*****__CODE_BLOCK_${s}__*****`;I+=p,a.set(p,d),r=G,s++}I+=l.slice(r),I=I.replace(/!\[(.*?)\]\((\S+?)(?:\s+"[^"]*")?\)/g,'<img src="$2">').replace(/\[(.*?)\]\((\S+?)(?:\s+"[^"]*")?\)/g,'<a href="$2">$1</a>').replace(/<(https:\/\/.+)>/g,'<a href="$1">$1</a>'),I=kOl(I,e);for(let[o,d]of a)I=I.replaceAll(o,d);return I}function kOl(t,e=[]){let l=r0t(fOl);l.addHook("uponSanitizeAttribute",XOl),l.setConfig({...HOl,ADD_TAGS:e});let n=!1,I="<__filter_complete__></__filter_complete__>",r=setTimeout(()=>{n=!0},K0t),a=l.sanitize(t+I);for(;!n&&a.endsWith(I);)a=l.sanitize(a);return n&&(FOl?.error(`Content filtering timed out after ${K0t}ms. Returning partially filtered content.`),a=a.slice(0,a.length-I.length)),clearTimeout(r),a}function eRt(t){let e=t.normalize("NFD"),l="";do l=e,e=e.replaceAll(/[\u{E0001}\u{E0020}-\u{E007F}\u{2066}-\u{2069}\u{202A}-\u{202E}\u{200B}\u{200C}\u{200E}\u{200F}\u{00AD}\u{FEFF}\u{180E}\u{2060}-\u{2064}]/gu,"");while(e!==l);return e.normalize("NFC")}c();import*as nE from"fs";import{existsSync as S5}from"fs";c();c();c();c();var wxe=(t,e,l)=>{let n=t instanceof RegExp?tRt(t,l):t,I=e instanceof RegExp?tRt(e,l):e,r=n!==null&&I!=null&&LOl(n,I,l);return r&&{start:r[0],end:r[1],pre:l.slice(0,r[0]),body:l.slice(r[0]+n.length,r[1]),post:l.slice(r[1]+I.length)}},tRt=(t,e)=>{let l=e.match(t);return l?l[0]:null},LOl=(t,e,l)=>{let n,I,r,a,s,o=l.indexOf(t),d=l.indexOf(e,o+1),u=o;if(o>=0&&d>0){if(t===e)return[o,d];for(n=[],r=l.length;u>=0&&!s;){if(u===o)n.push(u),o=l.indexOf(t,u+1);else if(n.length===1){let G=n.pop();G!==void 0&&(s=[G,d])}else I=n.pop(),I!==void 0&&I<r&&(r=I,a=d),d=l.indexOf(e,u+1);u=o<d&&o>=0?o:d}n.length&&a!==void 0&&(s=[r,a])}return s};var lRt="\0SLASH"+Math.random()+"\0",nRt="\0OPEN"+Math.random()+"\0",Cxe="\0CLOSE"+Math.random()+"\0",IRt="\0COMMA"+Math.random()+"\0",rRt="\0PERIOD"+Math.random()+"\0",JOl=new RegExp(lRt,"g"),BOl=new RegExp(nRt,"g"),xOl=new RegExp(Cxe,"g"),SOl=new RegExp(IRt,"g"),OOl=new RegExp(rRt,"g"),TOl=/\\\\/g,UOl=/\\{/g,MOl=/\\}/g,_Ol=/\\,/g,DOl=/\\./g;function Fxe(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function zOl(t){return t.replace(TOl,lRt).replace(UOl,nRt).replace(MOl,Cxe).replace(_Ol,IRt).replace(DOl,rRt)}function POl(t){return t.replace(JOl,"\\").replace(BOl,"{").replace(xOl,"}").replace(SOl,",").replace(OOl,".")}function aRt(t){if(!t)return[""];let e=[],l=wxe("{","}",t);if(!l)return t.split(",");let{pre:n,body:I,post:r}=l,a=n.split(",");a[a.length-1]+="{"+I+"}";let s=aRt(r);return r.length&&(a[a.length-1]+=s.shift(),a.push.apply(a,s)),e.push.apply(e,a),e}function sRt(t){return t?(t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),jIe(zOl(t),!0).map(POl)):[]}function jOl(t){return"{"+t+"}"}function KOl(t){return/^-?0\d/.test(t)}function qOl(t,e){return t<=e}function $Ol(t,e){return t>=e}function jIe(t,e){let l=[],n=wxe("{","}",t);if(!n)return[t];let I=n.pre,r=n.post.length?jIe(n.post,!1):[""];if(/\$$/.test(n.pre))for(let a=0;a<r.length;a++){let s=I+"{"+n.body+"}"+r[a];l.push(s)}else{let a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),s=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),o=a||s,d=n.body.indexOf(",")>=0;if(!o&&!d)return n.post.match(/,(?!,).*\}/)?(t=n.pre+"{"+n.body+Cxe+n.post,jIe(t)):[t];let u;if(o)u=n.body.split(/\.\./);else if(u=aRt(n.body),u.length===1&&u[0]!==void 0&&(u=jIe(u[0],!1).map(jOl),u.length===1))return r.map(p=>n.pre+u[0]+p);let G;if(o&&u[0]!==void 0&&u[1]!==void 0){let p=Fxe(u[0]),h=Fxe(u[1]),W=Math.max(u[0].length,u[1].length),y=u.length===3&&u[2]!==void 0?Math.abs(Fxe(u[2])):1,R=qOl;h<p&&(y*=-1,R=$Ol);let C=u.some(KOl);G=[];for(let L=p;R(L,h);L+=y){let x;if(s)x=String.fromCharCode(L),x==="\\"&&(x="");else if(x=String(L),C){let U=W-x.length;if(U>0){let P=new Array(U+1).join("0");L<0?x="-"+P+x.slice(1):x=P+x}}G.push(x)}}else{G=[];for(let p=0;p<u.length;p++)G.push.apply(G,jIe(u[p],!1))}for(let p=0;p<G.length;p++)for(let h=0;h<r.length;h++){let W=I+G[p]+r[h];(!e||o||W)&&l.push(W)}}return l}c();var KIe=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")};c();c();var eTl={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},qIe=t=>t.replace(/[[\]\\-]/g,"\\$&"),tTl=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),oRt=t=>t.join(""),iRt=(t,e)=>{let l=e;if(t.charAt(l)!=="[")throw new Error("not in a brace expression");let n=[],I=[],r=l+1,a=!1,s=!1,o=!1,d=!1,u=l,G="";e:for(;r<t.length;){let y=t.charAt(r);if((y==="!"||y==="^")&&r===l+1){d=!0,r++;continue}if(y==="]"&&a&&!o){u=r+1;break}if(a=!0,y==="\\"&&!o){o=!0,r++;continue}if(y==="["&&!o){for(let[R,[w,C,L]]of Object.entries(eTl))if(t.startsWith(R,r)){if(G)return["$.",!1,t.length-l,!0];r+=R.length,L?I.push(w):n.push(w),s=s||C;continue e}}if(o=!1,G){y>G?n.push(qIe(G)+"-"+qIe(y)):y===G&&n.push(qIe(y)),G="",r++;continue}if(t.startsWith("-]",r+1)){n.push(qIe(y+"-")),r+=2;continue}if(t.startsWith("-",r+1)){G=y,r+=2;continue}n.push(qIe(y)),r++}if(u<r)return["",!1,0,!1];if(!n.length&&!I.length)return["$.",!1,t.length-l,!0];if(I.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!d){let y=n[0].length===2?n[0].slice(-1):n[0];return[tTl(y),!1,u-l,!1]}let p="["+(d?"^":"")+oRt(n)+"]",h="["+(d?"":"^")+oRt(I)+"]";return[n.length&&I.length?"("+p+"|"+h+")":n.length?p:h,s,u-l,!0]};c();var OR=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var lTl=new Set(["!","?","+","*","@"]),cRt=t=>lTl.has(t),nTl="(?!(?:^|/)\\.\\.?(?:$|/))",eNe="(?!\\.)",ITl=new Set(["[","."]),rTl=new Set(["..","."]),aTl=new Set("().*{}+?[]^$\\!"),sTl=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),vxe="[^/]",dRt=vxe+"*?",uRt=vxe+"+?",jz=class t{type;#e;#t;#l=!1;#n=[];#I;#r;#i;#a=!1;#s;#c;#u=!1;constructor(e,l,n={}){this.type=e,e&&(this.#t=!0),this.#I=l,this.#e=this.#I?this.#I.#e:this,this.#s=this.#e===this?n:this.#e.#s,this.#i=this.#e===this?[]:this.#e.#i,e==="!"&&!this.#e.#a&&this.#i.push(this),this.#r=this.#I?this.#I.#n.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#n)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#c!==void 0?this.#c:this.type?this.#c=this.type+"("+this.#n.map(e=>String(e)).join("|")+")":this.#c=this.#n.map(e=>String(e)).join("")}#o(){if(this!==this.#e)throw new Error("should only call on root");if(this.#a)return this;this.toString(),this.#a=!0;let e;for(;e=this.#i.pop();){if(e.type!=="!")continue;let l=e,n=l.#I;for(;n;){for(let I=l.#r+1;!n.type&&I<n.#n.length;I++)for(let r of e.#n){if(typeof r=="string")throw new Error("string part in extglob AST??");r.copyIn(n.#n[I])}l=n,n=l.#I}}return this}push(...e){for(let l of e)if(l!==""){if(typeof l!="string"&&!(l instanceof t&&l.#I===this))throw new Error("invalid part: "+l);this.#n.push(l)}}toJSON(){let e=this.type===null?this.#n.slice().map(l=>typeof l=="string"?l:l.toJSON()):[this.type,...this.#n.map(l=>l.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#a&&this.#I?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#I?.isStart())return!1;if(this.#r===0)return!0;let e=this.#I;for(let l=0;l<this.#r;l++){let n=e.#n[l];if(!(n instanceof t&&n.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#I?.type==="!")return!0;if(!this.#I?.isEnd())return!1;if(!this.type)return this.#I?.isEnd();let e=this.#I?this.#I.#n.length:0;return this.#r===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let l=new t(this.type,e);for(let n of this.#n)l.copyIn(n);return l}static#m(e,l,n,I){let r=!1,a=!1,s=-1,o=!1;if(l.type===null){let h=n,W="";for(;h<e.length;){let y=e.charAt(h++);if(r||y==="\\"){r=!r,W+=y;continue}if(a){h===s+1?(y==="^"||y==="!")&&(o=!0):y==="]"&&!(h===s+2&&o)&&(a=!1),W+=y;continue}else if(y==="["){a=!0,s=h,o=!1,W+=y;continue}if(!I.noext&&cRt(y)&&e.charAt(h)==="("){l.push(W),W="";let R=new t(y,l);h=t.#m(e,R,h,I),l.push(R);continue}W+=y}return l.push(W),h}let d=n+1,u=new t(null,l),G=[],p="";for(;d<e.length;){let h=e.charAt(d++);if(r||h==="\\"){r=!r,p+=h;continue}if(a){d===s+1?(h==="^"||h==="!")&&(o=!0):h==="]"&&!(d===s+2&&o)&&(a=!1),p+=h;continue}else if(h==="["){a=!0,s=d,o=!1,p+=h;continue}if(cRt(h)&&e.charAt(d)==="("){u.push(p),p="";let W=new t(h,u);u.push(W),d=t.#m(e,W,d,I);continue}if(h==="|"){u.push(p),p="",G.push(u),u=new t(null,l);continue}if(h===")")return p===""&&l.#n.length===0&&(l.#u=!0),u.push(p),p="",l.push(...G,u),d;p+=h}return l.type=null,l.#t=void 0,l.#n=[e.substring(n-1)],d}static fromGlob(e,l={}){let n=new t(null,void 0,l);return t.#m(e,n,0,l),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[l,n,I,r]=this.toRegExpSource();if(!(I||this.#t||this.#s.nocase&&!this.#s.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let s=(this.#s.nocase?"i":"")+(r?"u":"");return Object.assign(new RegExp(`^${l}$`,s),{_src:l,_glob:e})}get options(){return this.#s}toRegExpSource(e){let l=e??!!this.#s.dot;if(this.#e===this&&this.#o(),!this.type){let o=this.isStart()&&this.isEnd(),d=this.#n.map(h=>{let[W,y,R,w]=typeof h=="string"?t.#b(h,this.#t,o):h.toRegExpSource(e);return this.#t=this.#t||R,this.#l=this.#l||w,W}).join(""),u="";if(this.isStart()&&typeof this.#n[0]=="string"&&!(this.#n.length===1&&rTl.has(this.#n[0]))){let W=ITl,y=l&&W.has(d.charAt(0))||d.startsWith("\\.")&&W.has(d.charAt(2))||d.startsWith("\\.\\.")&&W.has(d.charAt(4)),R=!l&&!e&&W.has(d.charAt(0));u=y?nTl:R?eNe:""}let G="";return this.isEnd()&&this.#e.#a&&this.#I?.type==="!"&&(G="(?:$|\\/)"),[u+d+G,OR(d),this.#t=!!this.#t,this.#l]}let n=this.type==="*"||this.type==="+",I=this.type==="!"?"(?:(?!(?:":"(?:",r=this.#p(l);if(this.isStart()&&this.isEnd()&&!r&&this.type!=="!"){let o=this.toString();return this.#n=[o],this.type=null,this.#t=void 0,[o,OR(this.toString()),!1,!1]}let a=!n||e||l||!eNe?"":this.#p(!0);a===r&&(a=""),a&&(r=`(?:${r})(?:${a})*?`);let s="";if(this.type==="!"&&this.#u)s=(this.isStart()&&!l?eNe:"")+uRt;else{let o=this.type==="!"?"))"+(this.isStart()&&!l&&!e?eNe:"")+dRt+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;s=I+r+o}return[s,OR(r),this.#t=!!this.#t,this.#l]}#p(e){return this.#n.map(l=>{if(typeof l=="string")throw new Error("string type in extglob ast??");let[n,I,r,a]=l.toRegExpSource(e);return this.#l=this.#l||a,n}).filter(l=>!(this.isStart()&&this.isEnd())||!!l).join("|")}static#b(e,l,n=!1){let I=!1,r="",a=!1;for(let s=0;s<e.length;s++){let o=e.charAt(s);if(I){I=!1,r+=(aTl.has(o)?"\\":"")+o;continue}if(o==="\\"){s===e.length-1?r+="\\\\":I=!0;continue}if(o==="["){let[d,u,G,p]=iRt(e,s);if(G){r+=d,a=a||u,s+=G-1,l=l||p;continue}}if(o==="*"){n&&e==="*"?r+=uRt:r+=dRt,l=!0;continue}if(o==="?"){r+=vxe,l=!0;continue}r+=sTl(o)}return[r,OR(e),!!l,a]}};c();var Kz=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");var fA=(t,e,l={})=>(KIe(e),!l.nocomment&&e.charAt(0)==="#"?!1:new tW(e,l).match(t)),oTl=/^\*+([^+@!?\*\[\(]*)$/,iTl=t=>e=>!e.startsWith(".")&&e.endsWith(t),cTl=t=>e=>e.endsWith(t),dTl=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),uTl=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),mTl=/^\*+\.\*+$/,GTl=t=>!t.startsWith(".")&&t.includes("."),bTl=t=>t!=="."&&t!==".."&&t.includes("."),pTl=/^\.\*+$/,hTl=t=>t!=="."&&t!==".."&&t.startsWith("."),ATl=/^\*+$/,ZTl=t=>t.length!==0&&!t.startsWith("."),gTl=t=>t.length!==0&&t!=="."&&t!=="..",NTl=/^\?+([^+@!?\*\[\(]*)?$/,WTl=([t,e=""])=>{let l=bRt([t]);return e?(e=e.toLowerCase(),n=>l(n)&&n.toLowerCase().endsWith(e)):l},yTl=([t,e=""])=>{let l=pRt([t]);return e?(e=e.toLowerCase(),n=>l(n)&&n.toLowerCase().endsWith(e)):l},ETl=([t,e=""])=>{let l=pRt([t]);return e?n=>l(n)&&n.endsWith(e):l},RTl=([t,e=""])=>{let l=bRt([t]);return e?n=>l(n)&&n.endsWith(e):l},bRt=([t])=>{let e=t.length;return l=>l.length===e&&!l.startsWith(".")},pRt=([t])=>{let e=t.length;return l=>l.length===e&&l!=="."&&l!==".."},hRt=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",mRt={win32:{sep:"\\"},posix:{sep:"/"}},YTl=hRt==="win32"?mRt.win32.sep:mRt.posix.sep;fA.sep=YTl;var Ip=Symbol("globstar **");fA.GLOBSTAR=Ip;var VTl="[^/]",QTl=VTl+"*?",wTl="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",FTl="(?:(?!(?:\\/|^)\\.).)*?",CTl=(t,e={})=>l=>fA(l,t,e);fA.filter=CTl;var eE=(t,e={})=>Object.assign({},t,e),vTl=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return fA;let e=fA;return Object.assign((n,I,r={})=>e(n,I,eE(t,r)),{Minimatch:class extends e.Minimatch{constructor(I,r={}){super(I,eE(t,r))}static defaults(I){return e.defaults(eE(t,I)).Minimatch}},AST:class extends e.AST{constructor(I,r,a={}){super(I,r,eE(t,a))}static fromGlob(I,r={}){return e.AST.fromGlob(I,eE(t,r))}},unescape:(n,I={})=>e.unescape(n,eE(t,I)),escape:(n,I={})=>e.escape(n,eE(t,I)),filter:(n,I={})=>e.filter(n,eE(t,I)),defaults:n=>e.defaults(eE(t,n)),makeRe:(n,I={})=>e.makeRe(n,eE(t,I)),braceExpand:(n,I={})=>e.braceExpand(n,eE(t,I)),match:(n,I,r={})=>e.match(n,I,eE(t,r)),sep:e.sep,GLOBSTAR:Ip})};fA.defaults=vTl;var ARt=(t,e={})=>(KIe(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:sRt(t));fA.braceExpand=ARt;var fTl=(t,e={})=>new tW(t,e).makeRe();fA.makeRe=fTl;var HTl=(t,e,l={})=>{let n=new tW(e,l);return t=t.filter(I=>n.match(I)),n.options.nonull&&!t.length&&t.push(e),t};fA.match=HTl;var GRt=/[?*]|[+@!]\(.*?\)|\[|\]/,XTl=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),tW=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,l={}){KIe(e),l=l||{},this.options=l,this.pattern=e,this.platform=l.platform||hRt,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!l.windowsPathsNoEscape||l.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!l.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!l.nonegate,this.comment=!1,this.empty=!1,this.partial=!!l.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=l.windowsNoMagicRoot!==void 0?l.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let l of e)if(typeof l!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,l=this.options;if(!l.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],l.debug&&(this.debug=(...r)=>console.error(...r)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(r=>this.slashSplit(r));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let I=this.globParts.map((r,a,s)=>{if(this.isWindows&&this.windowsNoMagicRoot){let o=r[0]===""&&r[1]===""&&(r[2]==="?"||!GRt.test(r[2]))&&!GRt.test(r[3]),d=/^[a-z]:/i.test(r[0]);if(o)return[...r.slice(0,4),...r.slice(4).map(u=>this.parse(u))];if(d)return[r[0],...r.slice(1).map(u=>this.parse(u))]}return r.map(o=>this.parse(o))});if(this.debug(this.pattern,I),this.set=I.filter(r=>r.indexOf(!1)===-1),this.isWindows)for(let r=0;r<this.set.length;r++){let a=this.set[r];a[0]===""&&a[1]===""&&this.globParts[r][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let n=0;n<e.length;n++)for(let I=0;I<e[n].length;I++)e[n][I]==="**"&&(e[n][I]="*");let{optimizationLevel:l=1}=this.options;return l>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):l>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(l=>{let n=-1;for(;(n=l.indexOf("**",n+1))!==-1;){let I=n;for(;l[I+1]==="**";)I++;I!==n&&l.splice(n,I-n)}return l})}levelOneOptimize(e){return e.map(l=>(l=l.reduce((n,I)=>{let r=n[n.length-1];return I==="**"&&r==="**"?n:I===".."&&r&&r!==".."&&r!=="."&&r!=="**"?(n.pop(),n):(n.push(I),n)},[]),l.length===0?[""]:l))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let l=!1;do{if(l=!1,!this.preserveMultipleSlashes){for(let I=1;I<e.length-1;I++){let r=e[I];I===1&&r===""&&e[0]===""||(r==="."||r==="")&&(l=!0,e.splice(I,1),I--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(l=!0,e.pop())}let n=0;for(;(n=e.indexOf("..",n+1))!==-1;){let I=e[n-1];I&&I!=="."&&I!==".."&&I!=="**"&&(l=!0,e.splice(n-1,2),n-=2)}}while(l);return e.length===0?[""]:e}firstPhasePreProcess(e){let l=!1;do{l=!1;for(let n of e){let I=-1;for(;(I=n.indexOf("**",I+1))!==-1;){let a=I;for(;n[a+1]==="**";)a++;a>I&&n.splice(I+1,a-I);let s=n[I+1],o=n[I+2],d=n[I+3];if(s!==".."||!o||o==="."||o===".."||!d||d==="."||d==="..")continue;l=!0,n.splice(I,1);let u=n.slice(0);u[I]="**",e.push(u),I--}if(!this.preserveMultipleSlashes){for(let a=1;a<n.length-1;a++){let s=n[a];a===1&&s===""&&n[0]===""||(s==="."||s==="")&&(l=!0,n.splice(a,1),a--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(l=!0,n.pop())}let r=0;for(;(r=n.indexOf("..",r+1))!==-1;){let a=n[r-1];if(a&&a!=="."&&a!==".."&&a!=="**"){l=!0;let o=r===1&&n[r+1]==="**"?["."]:[];n.splice(r-1,2,...o),n.length===0&&n.push(""),r-=2}}}}while(l);return e}secondPhasePreProcess(e){for(let l=0;l<e.length-1;l++)for(let n=l+1;n<e.length;n++){let I=this.partsMatch(e[l],e[n],!this.preserveMultipleSlashes);if(I){e[l]=[],e[n]=I;break}}return e.filter(l=>l.length)}partsMatch(e,l,n=!1){let I=0,r=0,a=[],s="";for(;I<e.length&&r<l.length;)if(e[I]===l[r])a.push(s==="b"?l[r]:e[I]),I++,r++;else if(n&&e[I]==="**"&&l[r]===e[I+1])a.push(e[I]),I++;else if(n&&l[r]==="**"&&e[I]===l[r+1])a.push(l[r]),r++;else if(e[I]==="*"&&l[r]&&(this.options.dot||!l[r].startsWith("."))&&l[r]!=="**"){if(s==="b")return!1;s="a",a.push(e[I]),I++,r++}else if(l[r]==="*"&&e[I]&&(this.options.dot||!e[I].startsWith("."))&&e[I]!=="**"){if(s==="a")return!1;s="b",a.push(l[r]),I++,r++}else return!1;return e.length===l.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,l=!1,n=0;for(let I=0;I<e.length&&e.charAt(I)==="!";I++)l=!l,n++;n&&(this.pattern=e.slice(n)),this.negate=l}matchOne(e,l,n=!1){let I=this.options;if(this.isWindows){let y=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),R=!y&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),w=typeof l[0]=="string"&&/^[a-z]:$/i.test(l[0]),C=!w&&l[0]===""&&l[1]===""&&l[2]==="?"&&typeof l[3]=="string"&&/^[a-z]:$/i.test(l[3]),L=R?3:y?0:void 0,x=C?3:w?0:void 0;if(typeof L=="number"&&typeof x=="number"){let[U,P]=[e[L],l[x]];U.toLowerCase()===P.toLowerCase()&&(l[x]=U,x>L?l=l.slice(x):L>x&&(e=e.slice(L)))}}let{optimizationLevel:r=1}=this.options;r>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:l}),this.debug("matchOne",e.length,l.length);for(var a=0,s=0,o=e.length,d=l.length;a<o&&s<d;a++,s++){this.debug("matchOne loop");var u=l[s],G=e[a];if(this.debug(l,u,G),u===!1)return!1;if(u===Ip){this.debug("GLOBSTAR",[l,u,G]);var p=a,h=s+1;if(h===d){for(this.debug("** at the end");a<o;a++)if(e[a]==="."||e[a]===".."||!I.dot&&e[a].charAt(0)===".")return!1;return!0}for(;p<o;){var W=e[p];if(this.debug(`
1313
+ `),r=I[I.length-1].length+1,a=`error on line ${I.length} at column ${r}: ${l||"Unknown error"}`,s=this.rootNode.createElementNS($r.html,"parsererror");s.setAttribute("style","display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black"),s.innerHTML=`<h3>This page contains the following errors:</h3><div style="font-family:monospace;font-size:12px">${a}</div><h3>Below is a rendering of the page up to the first error.</h3>`,n.insertBefore(s,n.firstChild)}removeOverflowingTextNodes(){if(this.currentNode&&this.currentNode!==this.rootNode)for(;this.currentNode.lastChild?.[Lt]===gI.TEXT_NODE;)this.currentNode.removeChild(this.currentNode.lastChild)}getDocumentType(e){if(!e.toUpperCase().startsWith("DOCTYPE"))return null;let l=e.split(Xne);if(l.length<=1)return null;let n=l.slice(1).join(" "),I=[],r=new RegExp(z9l,"gm"),a=n.toUpperCase().includes("PUBLIC"),s;for(;s=r.exec(n);)I.push(s[1]);let o=a&&I[0]||"",d=a?I[1]||"":I[0]||"";return{name:l[1].toLowerCase(),publicId:o,systemId:d}}};var Xz=class{parseFromString(e,l){if(!l)throw new this[f].DOMException('Second parameter "mimeType" is mandatory.');let n=this[f];switch(l){case"text/html":let I=new n.HTMLDocument;return I[Pp]=n,new rG(this[f]).parse(e,I);case"image/svg+xml":case"text/xml":case"application/xml":case"application/xhtml+xml":return new Hz(this[f]).parse(e);default:throw new n.DOMException(`Unknown mime type "${l}".`)}}};c();c();var mxe;(function(t){t[t.endToEnd=2]="endToEnd",t[t.endToStart=3]="endToStart",t[t.startToEnd=1]="startToEnd",t[t.startToStart=0]="startToStart"})(mxe||(mxe={}));var xu=mxe;var kz=class{static END_TO_END=xu.endToEnd;static END_TO_START=xu.endToStart;static START_TO_END=xu.startToEnd;static START_TO_START=xu.startToStart;END_TO_END=xu.endToEnd;END_TO_START=xu.endToStart;START_TO_END=xu.startToEnd;START_TO_START=xu.startToStart;[xt];[Zl];[rt];constructor(){let e=this[f];if(!e)throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);this[rt]=e.document,this[xt]={node:e.document,offset:0},this[Zl]={node:e.document,offset:0}}get startContainer(){return this[xt].node}get endContainer(){return this[Zl].node}get startOffset(){if(this[xt].offset>0){let e=QI.getNodeLength(this[xt].node);this[xt].offset>e&&(this[xt].offset=e)}return this[xt].offset}get endOffset(){if(this[Zl].offset>0){let e=QI.getNodeLength(this[Zl].node);this[Zl].offset>e&&(this[Zl].offset=e)}return this[Zl].offset}get collapsed(){return this[xt].node===this[Zl].node&&this.startOffset===this.endOffset}get commonAncestorContainer(){let e=this[xt].node;for(;e;){if(QI.isInclusiveAncestor(e,this[Zl].node))return e;e=e[ol]}return null}collapse(e=!1){e?this[Zl]=Object.assign({},this[xt]):this[xt]=Object.assign({},this[Zl])}compareBoundaryPoints(e,l){if(e!==xu.startToStart&&e!==xu.startToEnd&&e!==xu.endToEnd&&e!==xu.endToStart)throw new this[f].DOMException(`The comparison method provided must be one of '${xu.startToStart}', '${xu.startToEnd}', '${xu.endToEnd}' or '${xu.endToStart}'.`,qe.notSupportedError);if(this[rt]!==l[rt])throw new this[f].DOMException("The two Ranges are not in the same tree.",qe.wrongDocumentError);let n={node:null,offset:0},I={node:null,offset:0};switch(e){case xu.startToStart:n.node=this[xt].node,n.offset=this.startOffset,I.node=l[xt].node,I.offset=l.startOffset;break;case xu.startToEnd:n.node=this[Zl].node,n.offset=this.endOffset,I.node=l[xt].node,I.offset=l.startOffset;break;case xu.endToEnd:n.node=this[Zl].node,n.offset=this.endOffset,I.node=l[Zl].node,I.offset=l.endOffset;break;case xu.endToStart:n.node=this[xt].node,n.offset=this.startOffset,I.node=l[Zl].node,I.offset=l.endOffset;break}return Js.compareBoundaryPointsPosition(n,I)}comparePoint(e,l){if(e[rt]!==this[rt])throw new this[f].DOMException("The two Ranges are not in the same tree.",qe.wrongDocumentError);Js.validateBoundaryPoint({node:e,offset:l});let n={node:e,offset:l};return Js.compareBoundaryPointsPosition(n,{node:this[xt].node,offset:this.startOffset})===-1?-1:Js.compareBoundaryPointsPosition(n,{node:this[Zl].node,offset:this.endOffset})===1?1:0}cloneContents(){let e=this[f],l=this[rt].createDocumentFragment(),n=this.startOffset,I=this.endOffset;if(this.collapsed)return l;if(this[xt].node===this[Zl].node&&(this[xt].node[Lt]===pt.textNode||this[xt].node[Lt]===pt.processingInstructionNode||this[xt].node[Lt]===pt.commentNode)){let d=this[xt].node.cloneNode(!1);return d[ls]=d.substringData(n,I-n),l.appendChild(d),l}let r=this[xt].node;for(;!QI.isInclusiveAncestor(r,this[Zl].node);)r=r[ol];let a=null;if(!QI.isInclusiveAncestor(this[xt].node,this[Zl].node)){let d=r.firstChild;for(;!a;)Js.isPartiallyContained(d,this)&&(a=d),d=d.nextSibling}let s=null;if(!QI.isInclusiveAncestor(this[Zl].node,this[xt].node)){let d=r.lastChild;for(;!s;)Js.isPartiallyContained(d,this)&&(s=d),d=d.previousSibling}let o=[];for(let d of r[Il])if(Js.isContained(d,this)){if(d[Lt]===pt.documentTypeNode)throw new e.DOMException("Invalid document type element.",qe.hierarchyRequestError);o.push(d)}if(a!==null&&(a[Lt]===pt.textNode||a[Lt]===pt.processingInstructionNode||a[Lt]===pt.commentNode)){let d=this[xt].node.cloneNode(!1);d[ls]=d.substringData(n,QI.getNodeLength(this[xt].node)-n),l.appendChild(d)}else if(a!==null){let d=a.cloneNode();l.appendChild(d);let u=new e.Range;u[xt].node=this[xt].node,u[xt].offset=n,u[Zl].node=a,u[Zl].offset=QI.getNodeLength(a);let G=u.cloneContents();d.appendChild(G)}for(let d of o){let u=d.cloneNode(!0);l.appendChild(u)}if(s!==null&&(s[Lt]===pt.textNode||s[Lt]===pt.processingInstructionNode||s[Lt]===pt.commentNode)){let d=this[Zl].node.cloneNode(!1);d[ls]=d.substringData(0,I),l.appendChild(d)}else if(s!==null){let d=s.cloneNode(!1);l.appendChild(d);let u=new e.Range;u[xt].node=s,u[xt].offset=0,u[Zl].node=this[Zl].node,u[Zl].offset=I;let G=u.cloneContents();d.appendChild(G)}return l}cloneRange(){let e=new this[f].Range;return e[xt].node=this[xt].node,e[xt].offset=this[xt].offset,e[Zl].node=this[Zl].node,e[Zl].offset=this[Zl].offset,e}createContextualFragment(e){return new rG(this[f]).parse(e)}deleteContents(){let e=this.startOffset,l=this.endOffset;if(this.collapsed)return;if(this[xt].node===this[Zl].node&&(this[xt].node[Lt]===pt.textNode||this[xt].node[Lt]===pt.processingInstructionNode||this[xt].node[Lt]===pt.commentNode)){this[xt].node.replaceData(e,l-e,"");return}let n=[],I=this[xt].node,r=QI.nextDescendantNode(this[Zl].node);for(;I&&I!==r;)Js.isContained(I,this)&&!Js.isContained(I[ol],this)&&n.push(I),I=QI.following(I);let a,s;if(QI.isInclusiveAncestor(this[xt].node,this[Zl].node))a=this[xt].node,s=e;else{let o=this[xt].node;for(;o&&!QI.isInclusiveAncestor(o[ol],this[Zl].node);)o=o[ol];a=o[ol],s=o[ol][Il].indexOf(o)+1}(this[xt].node[Lt]===pt.textNode||this[xt].node[Lt]===pt.processingInstructionNode||this[xt].node[Lt]===pt.commentNode)&&this[xt].node.replaceData(this.startOffset,QI.getNodeLength(this[xt].node)-this.startOffset,"");for(let o of n)o[ol].removeChild(o);(this[Zl].node[Lt]===pt.textNode||this[Zl].node[Lt]===pt.processingInstructionNode||this[Zl].node[Lt]===pt.commentNode)&&this[Zl].node.replaceData(0,l,""),this[xt].node=a,this[xt].offset=s,this[Zl].node=a,this[Zl].offset=s}detach(){}extractContents(){let e=this[f],l=this[rt].createDocumentFragment(),n=this.startOffset,I=this.endOffset;if(this.collapsed)return l;if(this[xt].node===this[Zl].node&&(this[xt].node[Lt]===pt.textNode||this[xt].node[Lt]===pt.processingInstructionNode||this[xt].node[Lt]===pt.commentNode)){let G=this[xt].node.cloneNode(!1);return G[ls]=G.substringData(n,I-n),l.appendChild(G),this[xt].node.replaceData(n,I-n,""),l}let r=this[xt].node;for(;!QI.isInclusiveAncestor(r,this[Zl].node);)r=r[ol];let a=null;if(!QI.isInclusiveAncestor(this[xt].node,this[Zl].node)){let G=r.firstChild;for(;!a;)Js.isPartiallyContained(G,this)&&(a=G),G=G.nextSibling}let s=null;if(!QI.isInclusiveAncestor(this[Zl].node,this[xt].node)){let G=r.lastChild;for(;!s;)Js.isPartiallyContained(G,this)&&(s=G),G=G.previousSibling}let o=[];for(let G of r[Il])if(Js.isContained(G,this)){if(G[Lt]===pt.documentTypeNode)throw new this[f].DOMException("Invalid document type element.",qe.hierarchyRequestError);o.push(G)}let d,u;if(QI.isInclusiveAncestor(this[xt].node,this[Zl].node))d=this[xt].node,u=n;else{let G=this[xt].node;for(;G&&!QI.isInclusiveAncestor(G[ol],this[Zl].node);)G=G[ol];d=G[ol],u=G[ol][Il].indexOf(G)+1}if(a!==null&&(a[Lt]===pt.textNode||a[Lt]===pt.processingInstructionNode||a[Lt]===pt.commentNode)){let G=this[xt].node.cloneNode(!1);G[ls]=G.substringData(n,QI.getNodeLength(this[xt].node)-n),l.appendChild(G),this[xt].node.replaceData(n,QI.getNodeLength(this[xt].node)-n,"")}else if(a!==null){let G=a.cloneNode(!1);l.appendChild(G);let p=new e.Range;p[xt].node=this[xt].node,p[xt].offset=n,p[Zl].node=a,p[Zl].offset=QI.getNodeLength(a);let h=p.extractContents();G.appendChild(h)}for(let G of o)l.appendChild(G);if(s!==null&&(s[Lt]===pt.textNode||s[Lt]===pt.processingInstructionNode||s[Lt]===pt.commentNode)){let G=this[Zl].node.cloneNode(!1);G[ls]=G.substringData(0,I),l.appendChild(G),this[Zl].node.replaceData(0,I,"")}else if(s!==null){let G=s.cloneNode(!1);l.appendChild(G);let p=new e.Range;p[xt].node=s,p[xt].offset=0,p[Zl].node=this[Zl].node,p[Zl].offset=I;let h=p.extractContents();G.appendChild(h)}return this[xt].node=d,this[xt].offset=u,this[Zl].node=d,this[Zl].offset=u,l}getBoundingClientRect(){return new zy}getClientRects(){return new QB(M)}isPointInRange(e,l=0){if(e[rt]!==this[rt])return!1;let n={node:e,offset:l};return Js.validateBoundaryPoint(n),!(Js.compareBoundaryPointsPosition(n,{node:this[xt].node,offset:this.startOffset})===-1||Js.compareBoundaryPointsPosition(n,{node:this[Zl].node,offset:this.endOffset})===1)}insertNode(e){if(this[xt].node[Lt]===pt.processingInstructionNode||this[xt].node[Lt]===pt.commentNode||this[xt].node[Lt]===pt.textNode&&!this[xt].node[ol]||e===this[xt].node)throw new this[f].DOMException("Invalid start node.",qe.hierarchyRequestError);let l=this[xt].node[Lt]===pt.textNode?this[xt].node:this[xt].node[Il][this.startOffset]||null,n=l?l[ol]:this[xt].node;this[xt].node[Lt]===pt.textNode&&(l=this[xt].node.splitText(this.startOffset)),e===l&&(l=l.nextSibling);let I=e[ol];I&&I.removeChild(e);let r=l?l[ol][Il].indexOf(l):QI.getNodeLength(n);r+=e[Lt]===pt.documentFragmentNode?QI.getNodeLength(e):1,n.insertBefore(e,l),this.collapsed&&(this[Zl].node=n,this[Zl].offset=r)}intersectsNode(e){if(e[rt]!==this[rt])return!1;let l=e[ol];if(!l)return!0;let n=l[Il].indexOf(e);return Js.compareBoundaryPointsPosition({node:l,offset:n},{node:this[Zl].node,offset:this.endOffset})===-1&&Js.compareBoundaryPointsPosition({node:l,offset:n+1},{node:this[xt].node,offset:this.startOffset})===1}selectNode(e){if(!e[ol])throw new this[f].DOMException("The given Node has no parent.",qe.invalidNodeTypeError);let l=e[ol][Il].indexOf(e);this[xt].node=e[ol],this[xt].offset=l,this[Zl].node=e[ol],this[Zl].offset=l+1}selectNodeContents(e){if(e[Lt]===pt.documentTypeNode)throw new this[f].DOMException("DocumentType Node can't be used as boundary point.",qe.invalidNodeTypeError);this[xt].node=e,this[xt].offset=0,this[Zl].node=e,this[Zl].offset=QI.getNodeLength(e)}setEnd(e,l=0){Js.validateBoundaryPoint({node:e,offset:l});let n={node:e,offset:l};(e[rt]!==this[rt]||Js.compareBoundaryPointsPosition(n,{node:this[xt].node,offset:this.startOffset})===-1)&&(this[xt].node=e,this[xt].offset=l),this[Zl].node=e,this[Zl].offset=l}setStart(e,l=0){Js.validateBoundaryPoint({node:e,offset:l});let n={node:e,offset:l};(e[rt]!==this[rt]||Js.compareBoundaryPointsPosition(n,{node:this[Zl].node,offset:this.endOffset})===1)&&(this[Zl].node=e,this[Zl].offset=l),this[xt].node=e,this[xt].offset=l}setEndAfter(e){if(!e[ol])throw new this[f].DOMException("The given Node has no parent.",qe.invalidNodeTypeError);this.setEnd(e[ol],e[ol][Il].indexOf(e)+1)}setEndBefore(e){if(!e[ol])throw new this[f].DOMException("The given Node has no parent.",qe.invalidNodeTypeError);this.setEnd(e[ol],e[ol][Il].indexOf(e))}setStartAfter(e){if(!e[ol])throw new this[f].DOMException("The given Node has no parent.",qe.invalidNodeTypeError);this.setStart(e[ol],e[ol][Il].indexOf(e)+1)}setStartBefore(e){if(!e[ol])throw new this[f].DOMException("The given Node has no parent.",qe.invalidNodeTypeError);this.setStart(e[ol],e[ol][Il].indexOf(e))}surroundContents(e){let l=this.commonAncestorContainer;if(!l)return;let n=QI.nextDescendantNode(l);for(;l&&l!==n;){if(l[Lt]!==pt.textNode&&Js.isPartiallyContained(l,this))throw new this[f].DOMException("The Range has partially contains a non-Text node.",qe.invalidStateError);l=QI.following(l)}if(e[Lt]===pt.documentNode||e[Lt]===pt.documentTypeNode||e[Lt]===pt.documentFragmentNode)throw new this[f].DOMException("Invalid element type.",qe.invalidNodeTypeError);let I=this.extractContents();for(;e.firstChild;)e.removeChild(e.firstChild);this.insertNode(e),e.appendChild(I),this.selectNode(e)}toString(){let e=this.startOffset,l=this.endOffset,n="";if(this[xt].node===this[Zl].node&&this[xt].node[Lt]===pt.textNode)return this[xt].node.data.slice(e,l);this[xt].node[Lt]===pt.textNode&&(n+=this[xt].node.data.slice(e));let I=QI.nextDescendantNode(this[Zl].node),r=this[xt].node;for(;r&&r!==I;)r[Lt]===pt.textNode&&Js.isContained(r,this)&&(n+=r.data),r=QI.following(r);return this[Zl].node[Lt]===pt.textNode&&(n+=this[Zl].node.data.slice(0,l)),n}};c();c();var F5=class extends qr{id="";startTime=0;endTime=0;pauseOnExit=!1;[O_]=null;onenter=null;onexit=null;constructor(e){if(super(),e!==M)throw new TypeError("Illegal constructor");if(!this[f])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get track(){return this[O_]}};var Lz=class extends F5{region=null;vertical="";snapToLines=!0;line=0;lineAlign="";position="auto";positionAlign="auto";size=100;align="";text="";constructor(e,l,n){super(M);let I=this[f],r=0;if(e!==void 0&&r++,l!==void 0&&r++,n!==void 0&&r++,r<3)throw new I.TypeError(`Failed to construct 'VTTCue': 3 arguments required, but only ${r} present.`);if(e=Number(e),l=Number(l),isNaN(e)||isNaN(l))throw new I.TypeError("Failed to construct 'VTTCue': The provided double value is non-finite.");this.startTime=e,this.endTime=l,this.text=String(n)}getCueAsHTML(){let e=this[f],l=e.document.createDocumentFragment();return l.appendChild(e.document.createTextNode(this.text)),l}};c();var Jz=class extends qr{[$Z]=D1.subtitles;[BF]="";[IB]="";[kte]="";[hi]="disabled";[nB]=new cC(M);[EBe]=new cC(M);oncuechange=null;constructor(e){if(super(),e!==M)throw new TypeError("Illegal constructor");if(!this[f])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[$Z]}get label(){return this[BF]}get language(){return this[IB]}get id(){return this[kte]}get mode(){return this[hi]}set mode(e){e!=="disabled"&&e!=="showing"||(this[hi]=e)}get cues(){return this[hi]==="disabled"?null:this[nB]}get activeCues(){return this[hi]==="disabled"?null:this[EBe]}addCue(e){this[nB].includes(e)||(e[O_]=this,this[nB].push(e))}removeCue(e){let l=this[nB].indexOf(e);l!==-1&&(e[O_]=null,this[nB].splice(l,1))}};c();var Bz=class t extends qr{[Yl]=[];onaddtrack=null;onchange=null;onremovetrack=null;constructor(e,l){if(super(),e!==M)throw new TypeError("Illegal constructor");this[Yl]=l;let n=new Wo(this,[t,qr]);return new Proxy(this,{get:(I,r)=>{if(r==="length")return l.length;if(r in I||typeof r=="symbol")return n.bind(r),I[r];let a=Number(r);if(!isNaN(a))return l[a]},set(I,r,a){if(n.bind(r),typeof r=="symbol")return I[r]=a,!0;let s=Number(r);return isNaN(s)&&(I[r]=a),!0},deleteProperty(I,r){if(typeof r=="symbol")return delete I[r],!0;let a=Number(r);return isNaN(a)&&delete I[r],!0},ownKeys(){return Object.keys(l)},has(I,r){if(r in I)return!0;if(typeof r=="symbol")return!1;let a=Number(r);return!isNaN(a)&&a>=0&&a<l.length},defineProperty(I,r,a){return n.preventBinding(r),r in I?(Object.defineProperty(I,r,a),!0):!1},getOwnPropertyDescriptor(I,r){if(r in I||typeof r=="symbol")return;let a=Number(r);if(!isNaN(a)&&l[a])return{value:l[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Yl].length}get[Symbol.toStringTag](){return"TextTrackList"}toLocaleString(){return"[object TextTrackList]"}toString(){return"[object TextTrackList]"}[Symbol.iterator](){return this[Yl][Symbol.iterator]()}getTrackById(e){for(let l of this[Yl])if(l.id===e)return l;return null}};c();var xz=class extends qr{[RBe]="disconnected";onconnecting=null;onconnect=null;ondisconnect=null;get state(){return this[RBe]}async watchAvailability(){}cancelWatchAvailability(){}prompt(){}};c();var T0t=dt(O0t(),1);c();var pxe;(function(t){t[t.empty=0]="empty",t[t.loading=1]="loading",t[t.done=2]="done"})(pxe||(pxe={}));var uC=pxe;c();var hxe;(function(t){t.buffer="buffer",t.binaryString="binaryString",t.dataURL="dataURL",t.text="text"})(hxe||(hxe={}));var mC=hxe;c();var Axe;(function(t){t.abort="abort",t.error="error",t.load="load",t.loadstart="loadstart",t.loadend="loadend",t.progress="progress"})(Axe||(Axe={}));var xB=Axe;import{Buffer as sOl}from"buffer";var Sz=class extends qr{error=null;result=null;readyState=uC.empty;onabort=null;onerror=null;onload=null;onloadstart=null;onloadend=null;onprogress=null;#e=!1;#t=null;#l=null;constructor(){if(super(),!this[f])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}readAsArrayBuffer(e){if(!(e instanceof _s))throw new this[f].TypeError("Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#n(e,mC.buffer)}readAsBinaryString(e){if(!(e instanceof _s))throw new this[f].TypeError("Failed to execute 'readAsBinaryString' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#n(e,mC.binaryString)}readAsDataURL(e){if(!(e instanceof _s))throw new this[f].TypeError("Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#n(e,mC.dataURL)}readAsText(e,l=null){if(!(e instanceof _s))throw new this[f].TypeError("Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#n(e,mC.text,l||"UTF-8")}abort(){let e=this[f];if(this.#t&&e.clearTimeout(this.#t),this.#l&&e.clearTimeout(this.#l),this.readyState===uC.empty||this.readyState===uC.done){this.result=null;return}this.readyState===uC.loading&&(this.readyState=uC.done,this.result=null),this.#e=!0,this.dispatchEvent(new RA(xB.abort)),this.dispatchEvent(new RA(xB.loadend))}#n(e,l,n=null){let I=this[f];if(this.readyState===uC.loading)throw new I.DOMException("The object is in an invalid state.",qe.invalidStateError);this.readyState=uC.loading,this.#t=I.setTimeout(()=>{if(this.#e){this.#e=!1;return}this.dispatchEvent(new RA(xB.loadstart));let r=e[Jr];r||(r=sOl.alloc(0)),this.dispatchEvent(new RA(xB.loadstart,{lengthComputable:!isNaN(e.size),total:e.size,loaded:r.length})),this.#l=I.setTimeout(()=>{if(this.#e){this.#e=!1;return}switch(l){default:case mC.buffer:{this.result=new Uint8Array(r).buffer;break}case mC.binaryString:{this.result=r.toString("binary");break}case mC.dataURL:{let a=T0t.default.parse(e.type)||"application/octet-stream";this.result=`data:${a};base64,${r.toString("base64")}`;break}case mC.text:{this.result=new TextDecoder(n||"UTF-8").decode(r);break}}this.readyState=uC.done,this.dispatchEvent(new RA(xB.load)),this.dispatchEvent(new RA(xB.loadend))})})}};c();import oOl from"crypto";var iOl={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}},cOl={deviceId:"",frameRate:60,resizeMode:"none"},v5=class extends qr{contentHint="";enabled=!0;id=oOl.randomUUID();muted=!1;readyState="live";label="";[BF]="";[$Z]="video";[x_]={};[WR]=JSON.parse(JSON.stringify(iOl));[xX]=JSON.parse(JSON.stringify(cOl));onended=null;onmute=null;onunmute=null;constructor(e){if(super(),e!==M)throw new TypeError("Illegal constructor");if(!this[f])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[$Z]}async applyConstraints(e){this.#e(this[x_],e)}getConstraints(){return this[x_]}getCapabilities(){return this[WR]}getSettings(){return this[xX]}clone(){let e=new this.constructor(M);return e[$Z]=this[$Z],e[x_]=this[x_],e[WR]=this[WR],e[xX]=this[xX],e.contentHint=this.contentHint,e.enabled=this.enabled,e.label=this.label,e.muted=this.muted,e.readyState=this.readyState,e}stop(){this.readyState="ended"}#e(e,l){for(let n in l)l[n]!==null&&typeof l[n]=="object"&&!Array.isArray(l[n])?(typeof e[n]!="object"&&(e[n]={}),this.#e(e[n],l[n])):e[n]=l[n]}};c();var Lne=class extends v5{[Lte];constructor(e,l){super(e),this[Lte]=l}get canvas(){return this[Lte]}requestFrame(){}clone(){let e=super.clone();return e[Lte]=this.canvas,e}};var Jne=class{static extendClasses(e){class l extends wA{}l.prototype[f]=e,e.Document=l;class n extends Wz{}n.prototype[f]=e,e.HTMLDocument=n;class I extends yz{}I.prototype[f]=e,e.XMLDocument=I;class r extends Q5{}r.prototype[f]=e,e.DocumentFragment=r;class a extends Ez{}a.prototype[f]=e,e.Text=a;class s extends Rz{}s.prototype[f]=e,e.Comment=s;class o extends Yz{}o.prototype[f]=e,e.Image=o;class d extends Fne{}d.prototype[f]=e,e.Audio=d;class u extends Vz{}u.prototype[f]=e,e.MutationObserver=u;class G extends vne{}G.prototype[f]=e,e.MessagePort=G;class p extends wz{}p.prototype[f]=e,e.CSSStyleSheet=p;class h extends Kr{}e.DOMException=h;class W extends G5{}W.prototype[f]=e,e.Request=W;class y extends YA{}y.prototype[f]=e,y[f]=e,e.Response=y;class R extends qr{}R.prototype[f]=e,e.EventTarget=R;class w extends fne{}w.prototype[f]=e,e.XMLHttpRequestUpload=w;class C extends dC{}C.prototype[f]=e,e.XMLHttpRequestEventTarget=C;class L extends Fz{}L.prototype[f]=e,e.AbortController=L;class x extends Cz{}x.prototype[f]=e,x[f]=e,e.AbortSignal=x;class U extends u5{}U.prototype[f]=e,e.FormData=U;class P extends vz{}P.prototype[f]=e,e.PermissionStatus=P;class _ extends Hne{}_.prototype[f]=e,e.XMLHttpRequest=_;class K extends Xz{}K.prototype[f]=e,e.DOMParser=K;class O extends kz{}O.prototype[f]=e,e.Range=O;class $ extends Lz{}$.prototype[f]=e,e.VTTCue=$;class ue extends Jz{}ue.prototype[f]=e,e.TextTrack=ue;class ge extends Bz{}ge.prototype[f]=e,e.TextTrackList=ge;class He extends F5{}He.prototype[f]=e,e.TextTrackCue=He;class ne extends xz{}ne.prototype[f]=e,e.RemotePlayback=ne;class z extends Sz{}z.prototype[f]=e,e.FileReader=z;class be extends Z5{}be.prototype[f]=e,e.MediaStream=be;class oe extends v5{}oe.prototype[f]=e,e.MediaStreamTrack=oe;class Ee extends Lne{}Ee.prototype[f]=e,e.CanvasCaptureMediaStreamTrack=Ee;class Ge extends fi{}Ge.prototype[f]=e,e.URL=Ge}};c();c();c();c();c();c();var Bne=class{[Zt]=0;[gt]=0;[Kb]=0;[rB]=1;constructor(e,l,n,I){this[Zt]=e!=null?Number(e):0,this[gt]=l!=null?Number(l):0,this[Kb]=n!=null?Number(n):0,this[rB]=I!=null?Number(I):1}get x(){return this[Zt]}get y(){return this[gt]}get z(){return this[Kb]}get w(){return this[rB]}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 SB=class extends Bne{set x(e){this[Zt]=e}get x(){return this[Zt]}set y(e){this[gt]=e}get y(){return this[gt]}set z(e){this[Kb]=e}get z(){return this[Kb]}set w(e){this[rB]=e}get w(){return this[rB]}};var Oz={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},dOl=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,uOl=/[\s,]+/,OB=class t{[Ar]=1;[fr]=0;[Oa]=0;[Ta]=0;[Zr]=0;[Hr]=1;[Ua]=0;[Ma]=0;[ha]=0;[Va]=0;[Qa]=1;[Aa]=0;[gr]=0;[Xr]=0;[wa]=0;[Fa]=1;constructor(e){e&&this[T_](e)}get a(){return this[Ar]}get b(){return this[fr]}get c(){return this[Zr]}get d(){return this[Hr]}get e(){return this[gr]}get f(){return this[Xr]}get m11(){return this[Ar]}get m12(){return this[fr]}get m13(){return this[Oa]}get m14(){return this[Ta]}get m21(){return this[Zr]}get m22(){return this[Hr]}get m23(){return this[Ua]}get m24(){return this[Ma]}get m31(){return this[ha]}get m32(){return this[Va]}get m33(){return this[Qa]}get m34(){return this[Aa]}get m41(){return this[gr]}get m42(){return this[Xr]}get m43(){return this[wa]}get m44(){return this[Fa]}get isIdentity(){return this[Ar]===1&&this[fr]===0&&this[Oa]===0&&this[Ta]===0&&this[Zr]===0&&this[Hr]===1&&this[Ua]===0&&this[Ma]===0&&this[ha]===0&&this[Va]===0&&this[Qa]===1&&this[Aa]===0&&this[gr]===0&&this[Xr]===0&&this[wa]===0&&this[Fa]===1}get is2D(){return this[ha]===0&&this[Va]===0&&this[Qa]===1&&this[Aa]===0&&this[wa]===0&&this[Fa]===1}toFloat32Array(e){return Float32Array.from(this[ule](e))}toFloat64Array(e){return Float64Array.from(this[ule](e))}toString(){let e=this.is2D,l=this[ule](e).join(", ");return`${e?"matrix":"matrix3d"}(${l})`}toJSON(){let{is2D:e,isIdentity:l}=this;return{m11:this[Ar],m12:this[fr],m13:this[Oa],m14:this[Ta],m21:this[Zr],m22:this[Hr],m23:this[Ua],m24:this[Ma],m31:this[ha],m32:this[Va],m33:this[Qa],m34:this[Aa],m41:this[gr],m42:this[Xr],m43:this[wa],m44:this[Fa],a:this[Ar],b:this[fr],c:this[Zr],d:this[Hr],e:this[gr],f:this[Xr],is2D:e,isIdentity:l}}multiply(e){let l=new this.constructor(this);return l[lg](e),l}translate(e=0,l=0,n=0){let I=new this.constructor(this);return I[tg](e,l,n),I}scale(e,l,n=1,I=0,r=0,a=0){let s=new this.constructor(this);return s[w1](e,l,n,I,r,a),s}scale3d(e=1,l=0,n=0,I=0){let r=new this.constructor(this);return r[mle](e,l,n,I),r}scaleNonUniform(e=1,l=1){let n=new this.constructor(this);return n[Gle](e,l),n}rotateAxisAngle(e=0,l=0,n=0,I=0){let r=new this.constructor(this);return r[OF](e,l,n,I),r}rotate(e=0,l,n){let I=new this.constructor(this);return I[SF](e,l,n),I}rotateFromVector(e=0,l=0){let n=new this.constructor(this);return n[Ple](e,l),n}skewX(e){let l=new this.constructor(this);return l[sB](e),l}skewY(e){let l=new this.constructor(this);return l[oB](e),l}flipX(){let e=new this.constructor(this);return e[jle](),e}flipY(){let e=new this.constructor(this);return e[Kle](),e}inverse(){let e=new this.constructor(this);return e[qle](),e}transformPoint(e){let l=e.x??0,n=e.y??0,I=e.z??0,r=e.w??1,a=this[Ar]*l+this[Zr]*n+this[ha]*I+this[gr]*r,s=this[fr]*l+this[Hr]*n+this[Va]*I+this[Xr]*r,o=this[Oa]*l+this[Ua]*n+this[Qa]*I+this[wa]*r,d=this[Ta]*l+this[Ma]*n+this[Aa]*I+this[Fa]*r;return new SB(a,s,o,d)}[T_](e){let l=null;if(typeof e=="string"&&e.length&&e!=="none")l=this.constructor[aB](e);else if(Array.isArray(e)||e instanceof Float64Array||e instanceof Float32Array)l=this.constructor[eg](e);else if(typeof e=="object")l=this.constructor.fromMatrix(e);else return;this[Ar]=l[Ar],this[fr]=l[fr],this[Oa]=l[Oa],this[Ta]=l[Ta],this[Zr]=l[Zr],this[Hr]=l[Hr],this[Ua]=l[Ua],this[Ma]=l[Ma],this[ha]=l[ha],this[Va]=l[Va],this[Qa]=l[Qa],this[Aa]=l[Aa],this[gr]=l[gr],this[Xr]=l[Xr],this[wa]=l[wa],this[Fa]=l[Fa]}[lg](e){let l=e;l instanceof t||(l?.m11===void 0&&l?.a!==void 0?(l=Object.assign({},Oz,l),l.m11=l.a,l.m12=l.b,l.m21=l.c,l.m22=l.d,l.m41=l.e,l.m42=l.f):l=Object.assign({},Oz,l));let n=this[Ar]*l.m11+this[Zr]*l.m12+this[ha]*l.m13+this[gr]*l.m14,I=this[Ar]*l.m21+this[Zr]*l.m22+this[ha]*l.m23+this[gr]*l.m24,r=this[Ar]*l.m31+this[Zr]*l.m32+this[ha]*l.m33+this[gr]*l.m34,a=this[Ar]*l.m41+this[Zr]*l.m42+this[ha]*l.m43+this[gr]*l.m44,s=this[fr]*l.m11+this[Hr]*l.m12+this[Va]*l.m13+this[Xr]*l.m14,o=this[fr]*l.m21+this[Hr]*l.m22+this[Va]*l.m23+this[Xr]*l.m24,d=this[fr]*l.m31+this[Hr]*l.m32+this[Va]*l.m33+this[Xr]*l.m34,u=this[fr]*l.m41+this[Hr]*l.m42+this[Va]*l.m43+this[Xr]*l.m44,G=this[Oa]*l.m11+this[Ua]*l.m12+this[Qa]*l.m13+this[wa]*l.m14,p=this[Oa]*l.m21+this[Ua]*l.m22+this[Qa]*l.m23+this[wa]*l.m24,h=this[Oa]*l.m31+this[Ua]*l.m32+this[Qa]*l.m33+this[wa]*l.m34,W=this[Oa]*l.m41+this[Ua]*l.m42+this[Qa]*l.m43+this[wa]*l.m44,y=this[Ta]*l.m11+this[Ma]*l.m12+this[Aa]*l.m13+this[Fa]*l.m14,R=this[Ta]*l.m21+this[Ma]*l.m22+this[Aa]*l.m23+this[Fa]*l.m24,w=this[Ta]*l.m31+this[Ma]*l.m32+this[Aa]*l.m33+this[Fa]*l.m34,C=this[Ta]*l.m41+this[Ma]*l.m42+this[Aa]*l.m43+this[Fa]*l.m44;this[Ar]=n,this[fr]=s,this[Oa]=G,this[Ta]=y,this[Zr]=I,this[Hr]=o,this[Ua]=p,this[Ma]=R,this[ha]=r,this[Va]=d,this[Qa]=h,this[Aa]=w,this[gr]=a,this[Xr]=u,this[wa]=W,this[Fa]=C}[tg](e=0,l=0,n=0){let I=this.constructor[eg]([1,0,0,0,0,1,0,0,0,0,1,0,e,l,n,1]);this[lg](I)}[w1](e,l,n=1,I=0,r=0,a=0){e=e===void 0?1:Number(e),l=l===void 0?e:Number(l),(I!==0||r!==0||a!==0)&&this[tg](I,r,a),(e!==1||l!==1||n!==1)&&this[lg](this.constructor[eg]([e,0,0,0,0,l,0,0,0,0,n,0,0,0,0,1])),(I!==0||r!==0||a!==0)&&this[tg](-I,-r,-a)}[mle](e=1,l=0,n=0,I=0){(l!==0||n!==0||I!==0)&&this[tg](l,n,I),e!==1&&this[lg](this.constructor[eg]([e,0,0,0,0,e,0,0,0,0,e,0,0,0,0,1])),(l!==0||n!==0||I!==0)&&this[tg](-l,-n,-I)}[Gle](e=1,l=1){e===1&&l===1||this[lg](this.constructor[eg]([e,0,0,0,0,l,0,0,0,0,1,0,0,0,0,1]))}[OF](e=0,l=0,n=0,I=0){if(e=Number(e),l=Number(l),n=Number(n),I=Number(I),isNaN(e)||isNaN(l)||isNaN(n)||isNaN(I))throw new TypeError("Failed to execute 'rotateAxisAngleSelf' on 'DOMMatrix': The arguments must be numbers.");let r=Math.hypot(e,l,n);if(r===0)return;r!==1&&(e/=r,l/=r,n/=r);let a=-(I*Math.PI/360),s=this.#e,o=Math.sin(a)*Math.cos(a),d=Math.sin(a)*Math.sin(a),u=s(1-2*(l*l+n*n)*d),G=s(2*(e*l*d+n*o)),p=s(2*(e*n*d-l*o)),h=s(2*(e*l*d-n*o)),W=s(1-2*(e*e+n*n)*d),y=s(2*(l*n*d+e*o)),R=s(2*(e*n*d+l*o)),w=s(2*(l*n*d-e*o)),C=s(1-2*(e*e+l*l)*d),L=this.constructor[eg]([u,h,R,0,G,W,w,0,p,y,C,0,0,0,0,1]);this[lg](L)}[SF](e=0,l,n){if(l===void 0&&n===void 0&&(n=e,e=0,l=0),l===void 0&&(l=0),n===void 0&&(n=0),e=Number(e),l=Number(l),n=Number(n),isNaN(e)||isNaN(l)||isNaN(n))throw new TypeError("Failed to execute 'rotateSelf' on 'DOMMatrix': The arguments must be numbers.");n!==0&&this[OF](0,0,1,n),l!==0&&this[OF](0,1,0,l),e!==0&&this[OF](1,0,0,e)}[Ple](e=0,l=0){e===0&&l===0||this[SF](Math.atan2(l,e)*180/Math.PI)}[sB](e){let l=Object.assign({},Oz),n=Math.tan(e*Math.PI/180);l.m21=n,l.c=n,this[lg](l)}[oB](e){let l=Object.assign({},Oz),n=Math.tan(e*Math.PI/180);l.m12=n,l.b=n,this[lg](l)}[jle](){let e=this.constructor[eg]([-1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);this[lg](e)}[Kle](){let e=this.constructor[eg]([1,0,0,0,0,-1,0,0,0,0,1,0,0,0,0,1]);this[lg](e)}[qle](){let e=this[Hr]*this[Qa]*this[Fa]-this[Hr]*this[Aa]*this[wa]-this[Va]*this[Ua]*this[Fa]+this[Va]*this[Ma]*this[wa]+this[Xr]*this[Ua]*this[Aa]-this[Xr]*this[Ma]*this[Qa],l=-this[fr]*this[Qa]*this[Fa]+this[fr]*this[Aa]*this[wa]+this[Va]*this[Oa]*this[Fa]-this[Va]*this[Ta]*this[wa]-this[Xr]*this[Oa]*this[Aa]+this[Xr]*this[Ta]*this[Qa],n=this[fr]*this[Ua]*this[Fa]-this[fr]*this[Ma]*this[wa]-this[Hr]*this[Oa]*this[Fa]+this[Hr]*this[Ta]*this[wa]+this[Xr]*this[Oa]*this[Ma]-this[Xr]*this[Ta]*this[Ua],I=-this[fr]*this[Ua]*this[Aa]+this[fr]*this[Ma]*this[Qa]+this[Hr]*this[Oa]*this[Aa]-this[Hr]*this[Ta]*this[Qa]-this[Va]*this[Oa]*this[Ma]+this[Va]*this[Ta]*this[Ua],r=this[Ar]*e+this[Zr]*l+this[ha]*n+this[gr]*I;if(r===0){this[Ar]=NaN,this[fr]=NaN,this[Oa]=NaN,this[Ta]=NaN,this[Zr]=NaN,this[Hr]=NaN,this[Ua]=NaN,this[Ma]=NaN,this[ha]=NaN,this[Va]=NaN,this[Qa]=NaN,this[Aa]=NaN,this[gr]=NaN,this[Xr]=NaN,this[wa]=NaN,this[Fa]=NaN;return}let a=-this[Zr]*this[Qa]*this[Fa]+this[Zr]*this[Aa]*this[wa]+this[ha]*this[Ua]*this[Fa]-this[ha]*this[Ma]*this[wa]-this[gr]*this[Ua]*this[Aa]+this[gr]*this[Ma]*this[Qa],s=this[Ar]*this[Qa]*this[Fa]-this[Ar]*this[Aa]*this[wa]-this[ha]*this[Oa]*this[Fa]+this[ha]*this[Ta]*this[wa]+this[gr]*this[Oa]*this[Aa]-this[gr]*this[Ta]*this[Qa],o=-this[Ar]*this[Ua]*this[Fa]+this[Ar]*this[Ma]*this[wa]+this[Zr]*this[Oa]*this[Fa]-this[Zr]*this[Ta]*this[wa]-this[gr]*this[Oa]*this[Ma]+this[gr]*this[Ta]*this[Ua],d=this[Ar]*this[Ua]*this[Aa]-this[Ar]*this[Ma]*this[Qa]-this[Zr]*this[Oa]*this[Aa]+this[Zr]*this[Ta]*this[Qa]+this[ha]*this[Oa]*this[Ma]-this[ha]*this[Ta]*this[Ua],u=this[Zr]*this[Va]*this[Fa]-this[Zr]*this[Aa]*this[Xr]-this[ha]*this[Hr]*this[Fa]+this[ha]*this[Ma]*this[Xr]+this[gr]*this[Hr]*this[Aa]-this[gr]*this[Ma]*this[Va],G=-this[Ar]*this[Va]*this[Fa]+this[Ar]*this[Aa]*this[Xr]+this[ha]*this[fr]*this[Fa]-this[ha]*this[Ta]*this[Xr]-this[gr]*this[fr]*this[Aa]+this[gr]*this[Ta]*this[Va],p=this[Ar]*this[Hr]*this[Fa]-this[Ar]*this[Ma]*this[Xr]-this[Zr]*this[fr]*this[Fa]+this[Zr]*this[Ta]*this[Xr]+this[gr]*this[fr]*this[Ma]-this[gr]*this[Ta]*this[Hr],h=-this[Ar]*this[Hr]*this[Aa]+this[Ar]*this[Ma]*this[Va]+this[Zr]*this[fr]*this[Aa]-this[Zr]*this[Ta]*this[Va]-this[ha]*this[fr]*this[Ma]+this[ha]*this[Ta]*this[Hr],W=-this[Zr]*this[Va]*this[wa]+this[Zr]*this[Qa]*this[Xr]+this[ha]*this[Hr]*this[wa]-this[ha]*this[Ua]*this[Xr]-this[gr]*this[Hr]*this[Qa]+this[gr]*this[Ua]*this[Va],y=this[Ar]*this[Va]*this[wa]-this[Ar]*this[Qa]*this[Xr]-this[ha]*this[fr]*this[wa]+this[ha]*this[Oa]*this[Xr]+this[gr]*this[fr]*this[Qa]-this[gr]*this[Oa]*this[Va],R=-this[Ar]*this[Hr]*this[wa]+this[Ar]*this[Ua]*this[Xr]+this[Zr]*this[fr]*this[wa]-this[Zr]*this[Oa]*this[Xr]-this[gr]*this[fr]*this[Ua]+this[gr]*this[Oa]*this[Hr],w=this[Ar]*this[Hr]*this[Qa]-this[Ar]*this[Ua]*this[Va]-this[Zr]*this[fr]*this[Qa]+this[Zr]*this[Oa]*this[Va]+this[ha]*this[fr]*this[Ua]-this[ha]*this[Oa]*this[Hr];this[Ar]=e/r||0,this[fr]=l/r||0,this[Oa]=n/r||0,this[Ta]=I/r||0,this[Zr]=a/r||0,this[Hr]=s/r||0,this[Ua]=o/r||0,this[Ma]=d/r||0,this[ha]=u/r||0,this[Va]=G/r||0,this[Qa]=p/r||0,this[Aa]=h/r||0,this[gr]=W/r||0,this[Xr]=y/r||0,this[wa]=R/r||0,this[Fa]=w/r||0}[ule](e=!1){return e?[this[Ar],this[fr],this[Zr],this[Hr],this[gr],this[Xr]]:[this[Ar],this[fr],this[Oa],this[Ta],this[Zr],this[Hr],this[Ua],this[Ma],this[ha],this[Va],this[Qa],this[Aa],this[gr],this[Xr],this[wa],this[Fa]]}#e(e,l=1e15){return Math.round(e*l)/l}static fromMatrix(e){return e instanceof t||(e?.m11===void 0&&e?.a!==void 0?(e=Object.assign({},Oz,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({},Oz,e)),this[eg]([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[eg](e)}static fromFloat64Array(e){return this[eg](e)}static[eg](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 l=new this;if(e.length===16){let[n,I,r,a,s,o,d,u,G,p,h,W,y,R,w,C]=e;l[Ar]=n,l[fr]=I,l[Oa]=r,l[Ta]=a,l[Zr]=s,l[Hr]=o,l[Ua]=d,l[Ma]=u,l[ha]=G,l[Va]=p,l[Qa]=h,l[Aa]=W,l[gr]=y,l[Xr]=R,l[wa]=w,l[Fa]=C}else if(e.length===6){let[n,I,r,a,s,o]=e;l[Ar]=n,l[fr]=I,l[Zr]=r,l[Hr]=a,l[gr]=s,l[Xr]=o}return l}static[aB](e){if(typeof e!="string")throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Expected '${String(e)}' to be a string.`);let l=new this,n=new RegExp(dOl),I;for(;I=n.exec(e);){let r=I[1],a=I[2].split(uOl);for(let G=0,p=a.length;G<p;G++)a[G]=this[VBe](a[G]);let[s,o,d,u]=a;switch(r){case"perspective":!isNaN(s)&&s!==0&&o===void 0&&d===void 0&&(l[Aa]=-1/s);break;case"translate":!isNaN(s)&&d===void 0&&l[tg](s,o||0,0);break;case"translate3d":!isNaN(s)&&!isNaN(o)&&!isNaN(d)&&l[tg](s,o,d);break;case"translateX":!isNaN(s)&&o===void 0&&d===void 0&&l[tg](s);break;case"translateY":!isNaN(s)&&o===void 0&&d===void 0&&l[tg](0,s);break;case"translateZ":!isNaN(s)&&o===void 0&&d===void 0&&l[tg](0,0,s);break;case"matrix":case"matrix3d":(a.length===6||a.length===16)&&l[T_](this[eg](a));break;case"rotate":case"rotateZ":!isNaN(s)&&o===void 0&&d===void 0&&l[SF](0,0,s);break;case"rotateX":!isNaN(s)&&o===void 0&&d===void 0&&l[SF](s,0,0);break;case"rotateY":!isNaN(s)&&o===void 0&&d===void 0&&l[SF](0,s,0);case"rotate3d":!isNaN(s)&&!isNaN(o)&&!isNaN(d)&&!isNaN(u)&&l[OF](s,o,d,u);break;case"scale":!isNaN(s)&&s!==1&&d===void 0&&l[w1](s,isNaN(o)?s:o);break;case"scale3d":!isNaN(s)&&!isNaN(o)&&!isNaN(d)&&l[w1](s,o,d);break;case"scaleX":!isNaN(s)&&o===void 0&&d===void 0&&l[w1](s,1,1);break;case"scaleY":!isNaN(s)&&o===void 0&&d===void 0&&l[w1](1,s,1);break;case"scaleZ":!isNaN(s)&&o===void 0&&d===void 0&&l[w1](1,1,s);break;case"skew":isNaN(s)||l[sB](s),isNaN(o)||l[oB](o);break;case"skewX":!isNaN(s)&&o===void 0&&l[sB](s);break;case"skewY":!isNaN(s)&&o===void 0&&l[oB](s);break;default:throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Unknown transform function '${I[1]}'.`)}}return l}static[VBe](e){let l=parseFloat(e);switch(e.replace(l.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 l*(180/Math.PI);case"turn":return l*360;case"px":return l;case"cm":return l*37.7812;case"mm":return l*3.7781;case"in":return l*96;case"pt":return l*1.3281;case"pc":return l*16;case"Q":return l*.945;default:return l}}};var lh=class extends OB{get a(){return this[Ar]}set a(e){this[Ar]=e}get b(){return this[fr]}set b(e){this[fr]=e}get c(){return this[Zr]}set c(e){this[Zr]=e}get d(){return this[Hr]}set d(e){this[Hr]=e}get e(){return this[gr]}set e(e){this[gr]=e}get f(){return this[Xr]}set f(e){this[Xr]=e}get m11(){return this[Ar]}set m11(e){this[Ar]=e}get m12(){return this[fr]}set m12(e){this[fr]=e}get m13(){return this[Oa]}set m13(e){this[Oa]=e}get m14(){return this[Ta]}set m14(e){this[Ta]=e}get m21(){return this[Zr]}set m21(e){this[Zr]=e}get m22(){return this[Hr]}set m22(e){this[Hr]=e}get m23(){return this[Ua]}set m23(e){this[Ua]=e}get m24(){return this[Ma]}set m24(e){this[Ma]=e}get m31(){return this[ha]}set m31(e){this[ha]=e}get m32(){return this[Va]}set m32(e){this[Va]=e}get m33(){return this[Qa]}set m33(e){this[Qa]=e}get m34(){return this[Aa]}set m34(e){this[Aa]=e}get m41(){return this[gr]}set m41(e){this[gr]=e}get m42(){return this[Xr]}set m42(e){this[Xr]=e}get m43(){return this[wa]}set m43(e){this[wa]=e}get m44(){return this[Fa]}set m44(e){this[Fa]=e}setMatrixValue(e){return this[T_](e),this}multiplySelf(e){return this[lg](e),this}translateSelf(e=0,l=0,n=0){return this[tg](e,l,n),this}scaleSelf(e,l,n=1,I=0,r=0,a=0){return this[w1](e,l,n,I,r,a),this}scale3dSelf(e=1,l=0,n=0,I=0){return this[mle](e,l,n,I),this}scaleNonUniformSelf(e=1,l=1){return this[Gle](e,l),this}rotateAxisAngleSelf(e=0,l=0,n=0,I=0){return this[OF](e,l,n,I),this}rotateSelf(e=0,l,n){return this[SF](e,l,n),this}rotateFromVectorSelf(e=0,l=0){return this[Ple](e,l),this}skewXSelf(e){return this[sB](e),this}skewYSelf(e){return this[oB](e),this}flipXSelf(){return this[jle](),this}flipYSelf(){return this[Kle](),this}invertSelf(){return this[qle](),this}};c();var mOl=/[\t\f\n\r ,]+/,BR=class t{[f];[it];[Me];[Cl]=!1;[Dt]={items:[],attributeValue:""};constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");if(this[f]=l,this[Cl]=!!n.readOnly,this[it]=n.getAttribute,this[Me]=n.setAttribute,e!==M)throw new TypeError("Illegal constructor");let I=new Wo(this,[t]);return new Proxy(this,{get:(r,a)=>{if(a==="length"||a==="numberOfItems")return r[gl]().length;if(a in r||typeof a=="symbol")return I.bind(a),r[a];let s=Number(a);if(!isNaN(s))return r[gl]()[s]},set(r,a,s){if(I.bind(a),typeof a=="symbol")return r[a]=s,!0;let o=Number(a);return isNaN(o)&&(r[a]=s),!0},deleteProperty(r,a){if(typeof a=="symbol")return delete r[a],!0;let s=Number(a);return isNaN(s)&&delete r[a],!0},ownKeys(r){return Object.keys(r[gl]())},has(r,a){if(a in r)return!0;if(typeof a=="symbol")return!1;let s=Number(a);return!isNaN(s)&&s>=0&&s<r[gl]().length},defineProperty(r,a,s){return I.preventBinding(a),a in r?(Object.defineProperty(r,a,s),!0):!1},getOwnPropertyDescriptor(r,a){if(a in r||typeof a=="symbol")return;let s=Number(a),o=r[gl]();if(!isNaN(s)&&o[s])return{value:o[s],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[gl]().length}get numberOfItems(){return this[gl]().length}[Symbol.iterator](){return this[gl]().values()}clear(){this[Dt].attributeValue="",this[Dt].items=[],this[Me]("")}initialize(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'initialize' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[f].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[Me](e),e}getItem(e){let l=this[gl]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),l[e]?l[e]:null}insertItemBefore(e,l){if(this[Cl])throw new this[f].TypeError("Failed to execute 'insertItemBefore' on 'SVGStringList': The object is read-only.");if(arguments.length<2)throw new this[f].TypeError(`Failed to execute 'insertItemBefore' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e)return e;let n=this[gl](),I=n.indexOf(e);return I!==-1&&n.splice(I,1),l<0?l=0:l>n.length&&(l=n.length),n.splice(l,0,e),this[Me](n.join(" ")),e}replaceItem(e,l){if(this[Cl])throw new this[f].TypeError("Failed to execute 'replaceItem' on 'SVGStringList': The object is read-only.");if(arguments.length<2)throw new this[f].TypeError(`Failed to execute 'replaceItem' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e)return this.removeItem(l);let n=this[gl]();l<0?l=0:l>=n.length&&(l=n.length-1);let I=n[l];return n[l]=e,this[Me](n.join(" ")),I}removeItem(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'removeItem' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[f].TypeError(`Failed to execute 'removeItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`);let l=this[gl]();if(e=Number(e),isNaN(e)&&(e=0),e>=l.length)throw new this[f].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${e}) is greater than the maximum bound.`,qe.indexSizeError);if(e<0)throw new this[f].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${e}) is negative.`,qe.indexSizeError);let n=l[e];return l.splice(e,1),this[Me](l.join(" ")),n}appendItem(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'appendItem' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[f].TypeError(`Failed to execute 'appendItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`);if(e=String(e),!e)return e;let l=this[gl](),n=l.indexOf(e);return n!==-1&&l.splice(n,1),l.push(e),this[Me](l.join(" ")),e}[gl](){let e=this[it]()??"",l=this[Dt];if(l.attributeValue===e)return l.items;let n=[],I=e.trim();if(I)for(let r of I.split(mOl))n.includes(r)||n.push(r);return l.attributeValue=e,l.items=n,n}};c();c();c();c();var GOl=/([a-zA-Z0-9]+)\(([^)]+)\)/,bOl=/[\s,]+/,q1=class t{[f];[it]=null;[Me]=null;[yt]=null;[Cl]=!1;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,n&&(this[Cl]=!!n.readOnly,this[it]=n.getAttribute||null,this[Me]=n.setAttribute||null)}get a(){return this[sc]().a}set a(e){if(this[Cl])return;let l=this[sc]();l.a=e,this[IG](l)}get b(){return this[sc]().b}set b(e){if(this[Cl])return;let l=this[sc]();l.b=e,this[IG](l)}get c(){return this[sc]().c}set c(e){if(this[Cl])return;let l=this[sc]();l.c=e,this[IG](l)}get d(){return this[sc]().d}set d(e){if(this[Cl])return;let l=this[sc]();l.d=e,this[IG](l)}get e(){return this[sc]().e}set e(e){if(this[Cl])return;let l=this[sc]();l.e=e,this[IG](l)}get f(){return this[sc]().f}set f(e){if(this[Cl])return;let l=this[sc]();l.f=e,this[IG](l)}multiply(e){if(!(e instanceof t))throw new this[f].TypeError("Failed to execute 'multiply' on 'SVGMatrix': parameter 1 is not of type 'SVGMatrix'.");let l=this[sc](),n=new t(M,this[f]);return l.multiplySelf(e[sc]()),n[IG](l),n}translate(e=0,l=0){let n=this[sc](),I=new t(M,this[f]);return n.translateSelf(e,l),I[IG](n),I}scale(e){let l=this[sc](),n=new t(M,this[f]);return l.scaleSelf(e),n[IG](l),n}scaleNonUniform(e=1,l=1){let n=this[sc](),I=new t(M,this[f]);return n.scaleNonUniformSelf(e,l),I[IG](n),I}rotate(e){let l=this[sc](),n=new t(M,this[f]);return l.rotateSelf(e),n[IG](l),n}rotateFromVector(e=0,l=0){let n=this[sc](),I=new t(M,this[f]);return n.rotateFromVectorSelf(e,l),I[IG](n),I}skewX(e){let l=this[sc](),n=new t(M,this[f]);return l.skewXSelf(e),n[IG](l),n}skewY(e){let l=this[sc](),n=new t(M,this[f]);return l.skewYSelf(e),n[IG](l),n}flipX(){let e=this[sc](),l=new t(M,this[f]);return e.flipXSelf(),l[IG](e),l}flipY(){let e=this[sc](),l=new t(M,this[f]);return e.flipYSelf(),l[IG](e),l}inverse(){let e=this[sc](),l=new t(M,this[f]);return e.invertSelf(),l[IG](e),l}[sc](){let e=this[it]?this[it]():this[yt];if(!e)return new lh;let l=e.match(GOl);if(!l)return new lh;let n=[];for(let I of l[2].trim().split(bOl)){let r=Number(I);if(isNaN(r))throw new this[f].TypeError(`Failed to parse transform attribute: Expected number, but got "${I}" in "${e}".`);n.push(r)}switch(l[1]){case"matrix":if(n.length!==6)throw new this[f].TypeError(`Failed to parse transform attribute: Expected 6 parameters in "${e}".`);return lh[aB](e);case"scale":case"translate":if(n.length!==1&&n.length!==2)throw new this[f].TypeError(`Failed to parse transform attribute: Expected 1 or 2 parameters in "${e}".`);return lh[aB](e);case"skewY":case"skewX":if(n.length!==1)throw new this[f].TypeError(`Failed to parse transform attribute: Expected 1 parameter in "${e}".`);return lh[aB](e);case"rotate":let I=new lh;if(n.length!==1&&n.length!==3)throw new this[f].TypeError(`Failed to parse transform attribute: Expected 1 or 3 parameters in "${e}".`);let[r,a,s]=n;(a||s)&&I.translateSelf(a,s);let o=r*Math.PI/180;return I.multiplySelf(new lh([Math.cos(o),Math.sin(o),-Math.sin(o),Math.cos(o),0,0])),(a||s)&&I.translateSelf(-a,-s),I;default:throw new this[f].TypeError(`Failed to parse transform attribute: Unknown transformation "${e}".`)}}[IG](e){this[yt]=e.toString().replace(/, /g," "),this[Me]&&this[Me](this[yt])}};c();var Zxe;(function(t){t[t.unknown=0]="unknown",t[t.matrix=1]="matrix",t[t.translate=2]="translate",t[t.scale=3]="scale",t[t.rotate=4]="rotate",t[t.skewX=5]="skewX",t[t.skewY=6]="skewY"})(Zxe||(Zxe={}));var CA=Zxe;var U0t=/([a-zA-Z0-9]+)\(([^)]+)\)/,pOl=/[\s,]+/,og=class{static SVG_TRANSFORM_UNKNOWN=CA.unknown;static SVG_TRANSFORM_MATRIX=CA.matrix;static SVG_TRANSFORM_TRANSLATE=CA.translate;static SVG_TRANSFORM_SCALE=CA.scale;static SVG_TRANSFORM_ROTATE=CA.rotate;static SVG_TRANSFORM_SKEWX=CA.skewX;static SVG_TRANSFORM_SKEWY=CA.skewY;[f];[it]=null;[Me]=null;[yt]=null;[Cl]=!1;[TF]=null;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,n&&(this[Cl]=!!n.readOnly,this[it]=n.getAttribute||null,this[Me]=n.setAttribute||null)}get type(){let l=(this[it]?this[it]():this[yt])?.match(U0t);if(!l)return CA.unknown;switch(l[1]){case"matrix":return CA.matrix;case"translate":return CA.translate;case"rotate":return CA.rotate;case"scale":return CA.scale;case"skewX":return CA.skewX;case"skewY":return CA.skewY}return 0}get angle(){let l=(this[it]?this[it]():this[yt])?.match(U0t);if(!l)return 0;let n=parseFloat(l[2].trim().split(pOl)[0]);if(isNaN(n))return 0;switch(l[1]){case"rotate":case"skewX":case"skewY":return n}return 0}get matrix(){return this[TF]||(this[TF]=new q1(M,this[f],{readOnly:this[Cl],getAttribute:()=>this[it]?this[it]():this[yt],setAttribute:e=>{if(this[yt]=e,this[Me]){this[Me](e);return}}})),this[TF]}setMatrix(e){if(!(e instanceof q1))throw new TypeError('Failed to set the "matrix" property on "SVGTransform": The provided value is not of type "SVGMatrix".');this[Cl]||(this[TF]&&(this[TF][it]=null,this[TF][Me]=null),e[it]=()=>this[it]?this[it]():this[yt],e[Me]=l=>{if(this[yt]=l,this[Me]){this[Me](l);return}},this[TF]=e,e[yt]!==this[yt]&&(this[yt]=e[yt],this[Me]&&this[Me](this[yt]||"")))}setTranslate(e,l){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),l=Number(l),isNaN(e)||isNaN(l))throw new TypeError("Failed to execute 'setTranslate' on 'SVGTransform': The provided float value is non-finite.");this[Cl]||(this[yt]=`translate(${e} ${l})`,this[Me]&&this[Me](this[yt]))}setScale(e,l){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),l=Number(l),isNaN(e)||isNaN(l))throw new TypeError("Failed to execute 'setScale' on 'SVGTransform': The provided float value is non-finite.");this[Cl]||(this[yt]=`scale(${e} ${l})`,this[Me]&&this[Me](this[yt]))}setRotate(e,l,n){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),l=Number(l),n=Number(n),isNaN(e)||isNaN(l)||isNaN(n))throw new TypeError("Failed to execute 'setRotate' on 'SVGTransform': The provided float value is non-finite.");this[Cl]||(this[yt]=`rotate(${e} ${l} ${n})`,this[Me]&&this[Me](this[yt]))}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[Cl]||(this[yt]=`skewX(${e})`,this[Me]&&this[Me](this[yt]))}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[Cl]||(this[yt]=`skewY(${e})`,this[Me]&&this[Me](this[yt]))}};var hOl=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,GC="matrix(1 0 0 1 0 0)",f5=class t{[f];[it];[Me];[Cl]=!1;[Dt]={items:[],attributeValue:""};constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,this[Cl]=!!n.readOnly,this[it]=n.getAttribute,this[Me]=n.setAttribute;let I=new Wo(this,[t]);return new Proxy(this,{get:(r,a)=>{if(a==="length"||a==="numberOfItems")return r[gl]().length;if(a in r||typeof a=="symbol")return I.bind(a),r[a];let s=Number(a);if(!isNaN(s))return r[gl]()[s]},set(r,a,s){if(I.bind(a),typeof a=="symbol")return r[a]=s,!0;let o=Number(a);return isNaN(o)&&(r[a]=s),!0},deleteProperty(r,a){if(typeof a=="symbol")return delete r[a],!0;let s=Number(a);return isNaN(s)&&delete r[a],!0},ownKeys(r){return Object.keys(r[gl]())},has(r,a){if(a in r)return!0;if(typeof a=="symbol")return!1;let s=Number(a);return!isNaN(s)&&s>=0&&s<r[gl]().length},defineProperty(r,a,s){return I.preventBinding(a),a in r?(Object.defineProperty(r,a,s),!0):!1},getOwnPropertyDescriptor(r,a){if(a in r||typeof a=="symbol")return;let s=Number(a),o=r[gl]();if(!isNaN(s)&&o[s])return{value:o[s],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[gl]().length}get numberOfItems(){return this[gl]().length}[Symbol.iterator](){return this[gl]().values()}clear(){if(this[Cl])throw new this[f].TypeError("Failed to execute 'clear' on 'SVGTransformList': The object is read-only.");for(let e of this[Dt].items)e[it]=null,e[Me]=null;this[Dt].items=[],this[Dt].attributeValue="",this[Me]("")}initialize(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'initialize' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[f].TypeError(`Failed to execute 'initialize' on 'SVGTransformList': 1 arguments required, but only ${arguments.length} present.`);if(!(e instanceof og))throw new this[f].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");for(let l of this[Dt].items)l[it]=null,l[Me]=null;return e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(l=>l[yt]||GC).join(" "),this[Me](this[Dt].attributeValue)},this[Dt].items=[e],this[Dt].attributeValue=e[yt],this[Me](e[yt]||""),e}getItem(e){let l=this[gl]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),l[e]?l[e]:null}insertItemBefore(e,l){if(this[Cl])throw new this[f].TypeError("Failed to execute 'insertItemBefore' on 'SVGTransformList': The object is read-only.");if(arguments.length<2)throw new this[f].TypeError(`Failed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof og))throw new this[f].TypeError("Failed to execute 'insertItemBefore' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let n=this[gl](),I=n.indexOf(e);return I!==-1&&n.splice(I,1),l<0?l=0:l>n.length&&(l=n.length),n.splice(l,0,e),e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(r=>r[yt]||GC).join(" "),this[Me](this[Dt].attributeValue)},this[Dt].attributeValue=n.map(r=>r[yt]||GC).join(" "),this[Me](this[Dt].attributeValue),e}replaceItem(e,l){if(this[Cl])throw new this[f].TypeError("Failed to execute 'replaceItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<2)throw new this[f].TypeError(`Failed to execute 'replaceItem' on 'SVGTransformList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof og))throw new this[f].TypeError("Failed to execute 'replaceItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let n=this[gl](),I=n.indexOf(e);if(I===l)return e;I!==-1&&n.splice(I,1),l<0?l=0:l>=n.length&&(l=n.length-1),n[l]&&(n[l][it]=null,n[l][Me]=null);let r=n[l];return n[l]=e,e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(a=>a[yt]||GC).join(" "),this[Me](this[Dt].attributeValue)},this[Dt].attributeValue=n.map(a=>a[yt]||GC).join(" "),this[Me](this[Dt].attributeValue),r}removeItem(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'removeItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[f].TypeError(`Failed to execute 'removeItem' on 'SVGTransformList': 1 argument required, but only ${arguments.length} present.`);let l=this[gl]();if(e=Number(e),isNaN(e)&&(e=0),e>=l.length)throw new this[f].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${e}) is greater than the maximum bound.`,qe.indexSizeError);if(e<0)throw new this[f].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${e}) is negative.`,qe.indexSizeError);let n=l[e];return n&&(n[it]=null,n[Me]=null),l.splice(e,1),this[Dt].attributeValue=l.map(I=>I[yt]||GC).join(" "),this[Me](this[Dt].attributeValue),n}appendItem(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[f].TypeError(`Failed to execute 'appendItem' on 'SVGTransformList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof og))throw new this[f].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let l=this[gl](),n=l.indexOf(e);return n!==-1&&l.splice(n,1),l.push(e),e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(I=>I[yt]||GC).join(" "),this[Me](this[Dt].attributeValue)},this[Dt].attributeValue=l.map(I=>I[yt]||GC).join(" "),this[Me](this[Dt].attributeValue),e}[gl](){let e=this[it]()??"",l=this[Dt];if(l.attributeValue===e)return l.items;if(l.items.length)for(let r of l.items)r[it]=null,r[Me]=null;let n=[],I=e.trim();if(I){let r=new RegExp(hOl),a;for(;a=r.exec(I);){let s=new og(M,this[f],{readOnly:this[Cl],getAttribute:()=>s[yt],setAttribute:()=>{this[Dt].attributeValue=this[gl]().map(o=>o[yt]||GC).join(" "),this[Me](this[Dt].attributeValue)}});s[yt]=`${a[1]}(${a[2]})`,n.push(s)}}return l.attributeValue=e,l.items=n,n}};var xR=class{[f];[it];[Me];[Ns]=null;[Ws]=null;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,this[it]=n.getAttribute,this[Me]=n.setAttribute}get animVal(){return this[Ws]||(this[Ws]=new f5(M,this[f],{readOnly:!0,getAttribute:this[it],setAttribute:()=>{}})),this[Ws]}set animVal(e){}get baseVal(){return this[Ns]||(this[Ns]=new f5(M,this[f],{getAttribute:this[it],setAttribute:this[Me]})),this[Ns]}set baseVal(e){}};var To=class extends dn{[p1]=null;[h1]=null;[Ote]=null;get oncopy(){return Fe.getEventListener(this,"oncopy")}set oncopy(e){this[q].set("oncopy",e)}get oncut(){return Fe.getEventListener(this,"oncut")}set oncut(e){this[q].set("oncut",e)}get onpaste(){return Fe.getEventListener(this,"onpaste")}set onpaste(e){this[q].set("onpaste",e)}get requiredExtensions(){return this[p1]||(this[p1]=new BR(M,this[f],{getAttribute:()=>this.getAttribute("requiredExtensions"),setAttribute:e=>this.setAttribute("requiredExtensions",e)})),this[p1]}get systemLanguage(){return this[h1]||(this[h1]=new BR(M,this[f],{getAttribute:()=>this.getAttribute("systemLanguage"),setAttribute:e=>this.setAttribute("systemLanguage",e)})),this[h1]}get transform(){return this[Ote]||(this[Ote]=new xR(M,this[f],{getAttribute:()=>this.getAttribute("transform"),setAttribute:e=>this.setAttribute("transform",e)})),this[Ote]}getBBox(){return new zy}getCTM(){return new lh}getScreenCTM(){return new lh}};c();var jy=class{[f];[it]=null;[Me]=null;[yt]=null;[Cl]=!1;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,n&&(this[Cl]=!!n.readOnly,this[it]=n.getAttribute||null,this[Me]=n.setAttribute||null)}get x(){let e=this[it]?this[it]():this[yt];if(!e)return 0;let l=e.split(/\s+/),n=Number(l[0]);return isNaN(n)?0:n}set x(e){if(this[Cl])throw new this[f].TypeError("Failed to set the 'x' property on 'SVGRect': The object is read-only.");this[yt]=`${String(typeof e=="number"?e:parseFloat(e))} ${this.y} ${this.width} ${this.height}`,this[Me]&&this[Me](this[yt])}get y(){let e=this[it]?this[it]():this[yt];if(!e)return 0;let l=e.split(/\s+/),n=Number(l[1]);return isNaN(n)?0:n}set y(e){if(this[Cl])throw new this[f].TypeError("Failed to set the 'y' property on 'SVGRect': The object is read-only.");this[yt]=`${this.x} ${String(typeof e=="number"?e:parseFloat(e))} ${this.width} ${this.height}`,this[Me]&&this[Me](this[yt])}get width(){let e=this[it]?this[it]():this[yt];if(!e)return 0;let l=e.split(/\s+/),n=Number(l[2]);return isNaN(n)?0:n}set width(e){if(this[Cl])throw new this[f].TypeError("Failed to set the 'width' property on 'SVGRect': The object is read-only.");this[yt]=`${this.x} ${this.y} ${String(typeof e=="number"?e:parseFloat(e))} ${this.height}`,this[Me]&&this[Me](this[yt])}get height(){let e=this[it]?this[it]():this[yt];if(!e)return 0;let l=e.split(/\s+/),n=Number(l[3]);return isNaN(n)?0:n}set height(e){if(this[Cl])throw new this[f].TypeError("Failed to set the 'height' property on 'SVGRect': The object is read-only.");this[yt]=`${this.x} ${this.y} ${this.width} ${String(typeof e=="number"?e:parseFloat(e))}`,this[Me]&&this[Me](this[yt])}};c();var M0t=/[\t\f\n\r, ]+/,Su=class{[f];[it]=null;[Me]=null;[yt]=null;[Cl]=!1;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,n&&(this[Cl]=!!n.readOnly,this[it]=n.getAttribute||null,this[Me]=n.setAttribute||null)}get x(){let l=((this[it]?this[it]():this[yt])||"").split(M0t);return l[0]?parseFloat(l[0]):0}set x(e){if(this[Cl])throw new this[f].TypeError("Failed to set the 'x' property on 'SVGPoint': The object is read-only.");this[yt]=`${e} ${this.y}`,this[Me]&&this[Me](this[yt])}get y(){let l=((this[it]?this[it]():this[yt])||"").split(M0t);return l[1]?parseFloat(l[1]):0}set y(e){if(this[Cl])throw new this[f].TypeError("Failed to set the 'y' property on 'SVGPoint': The object is read-only.");this[yt]=`${this.x} ${e}`,this[Me]&&this[Me](this[yt])}};c();c();var gxe;(function(t){t[t.unknown=0]="unknown",t[t.number=1]="number",t[t.percentage=2]="percentage",t[t.ems=3]="ems",t[t.exs=4]="exs",t[t.px=5]="px",t[t.cm=6]="cm",t[t.mm=7]="mm",t[t.in=8]="in",t[t.pt=9]="pt",t[t.pc=10]="pc"})(gxe||(gxe={}));var LI=gxe;var _0t=/^(\d+|\d+\.\d+)(px|em|ex|cm|mm|in|pt|pc|%|)$/,Ky=class{static SVG_LENGTHTYPE_UNKNOWN=LI.unknown;static SVG_LENGTHTYPE_NUMBER=LI.number;static SVG_LENGTHTYPE_PERCENTAGE=LI.percentage;static SVG_LENGTHTYPE_EMS=LI.ems;static SVG_LENGTHTYPE_EXS=LI.exs;static SVG_LENGTHTYPE_PX=LI.px;static SVG_LENGTHTYPE_CM=LI.cm;static SVG_LENGTHTYPE_MM=LI.mm;static SVG_LENGTHTYPE_IN=LI.in;static SVG_LENGTHTYPE_PT=LI.pt;static SVG_LENGTHTYPE_PC=LI.pc;[f];[it]=null;[Me]=null;[yt]=null;[Cl]=!1;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,n&&(this[Cl]=!!n.readOnly,this[it]=n.getAttribute||null,this[Me]=n.setAttribute||null)}get unitType(){let l=(this[it]?this[it]()||"":this[yt]||"").match(_0t);if(!l)return LI.unknown;if(isNaN(parseFloat(l[1])))return LI.unknown;switch(l[2]){case"":return LI.number;case"px":return LI.px;case"cm":return LI.cm;case"mm":return LI.mm;case"in":return LI.in;case"pt":return LI.pt;case"pc":return LI.pc;case"em":case"ex":case"%":throw new this[f].TypeError("Failed to execute 'value' on 'SVGLength': Could not resolve relative length.");default:return LI.unknown}}get value(){let l=(this[it]?this[it]()||"":this[yt]||"").match(_0t);if(!l)return 0;let n=parseFloat(l[1]);if(isNaN(n))return 0;switch(l[2]){case"":return n;case"px":return n;case"cm":return n/2.54*96;case"mm":return n/25.4*96;case"in":return n*96;case"pt":return n*72;case"pc":return n*6;case"em":case"ex":case"%":throw new this[f].TypeError("Failed to execute 'value' on 'SVGLength': Could not resolve relative length.");default:return 0}}set value(e){if(this[Cl])throw new this[f].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[f].TypeError("Failed to set the 'value' property on 'SVGLength': The provided float value is non-finite.");let l="",n=e;switch(this.unitType){case LI.number:n=e,l="";break;case LI.px:n=e,l="px";break;case LI.cm:n=e/96*2.54,l="cm";break;case LI.mm:n=e/96*25.4,l="mm";break;case LI.in:n=e/96,l="in";break;case LI.pt:n=e/72,l="pt";break;case LI.pc:n=e/6,l="pc";break;case LI.percentage:case LI.ems:case LI.exs:throw new this[f].TypeError("Failed to set the 'value' property on 'SVGLength': Could not resolve relative length.");default:break}this[yt]=String(n)+l,this[Me]&&this[Me](this[yt])}get valueAsString(){return this[it]?this[it]()||"0":this[yt]||"0"}get valueInSpecifiedUnits(){let e=this.valueAsString;return parseFloat(e)||0}newValueSpecifiedUnits(e,l){if(this[Cl])throw new this[f].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The object is read-only.");if(typeof e!="number")throw new this[f].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.");if(l=typeof l!="number"?parseFloat(String(l)):l,isNaN(l))throw new this[f].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The provided float value is non-finite.");let n="";switch(e){case LI.number:n="";break;case LI.px:n="px";break;case LI.cm:n="cm";break;case LI.mm:n="mm";break;case LI.in:n="in";break;case LI.pt:n="pt";break;case LI.pc:n="pc";break;case LI.ems:case LI.exs:case LI.percentage:throw new this[f].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Could not resolve relative length.");default:break}this[yt]=String(l)+n,this[Me]&&this[Me](this[yt])}convertToSpecifiedUnits(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': The object is read-only.");if(typeof e!="number")throw new this[f].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.");let l=this.value,n="";switch(e){case LI.number:n="";break;case LI.px:n="px";break;case LI.cm:l=l/96*2.54,n="cm";break;case LI.mm:l=l/96*25.4,n="mm";break;case LI.in:l=l/96,n="in";break;case LI.pt:l=l/72,n="pt";break;case LI.pc:l=l/6,n="pc";break;case LI.percentage:case LI.ems:case LI.exs:throw new this[f].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': Could not resolve relative length.");default:break}this[yt]=String(l)+n,this[Me]&&this[Me](this[yt])}};c();c();var Nxe;(function(t){t[t.unknown=0]="unknown",t[t.unspecified=1]="unspecified",t[t.deg=2]="deg",t[t.rad=3]="rad",t[t.grad=4]="grad"})(Nxe||(Nxe={}));var ri=Nxe;var D0t=/^(\d+|\d+\.\d+)(deg|rad|grad|turn|)$/,$1=class{static SVG_ANGLETYPE_UNKNOWN=ri.unknown;static SVG_ANGLETYPE_UNSPECIFIED=ri.unspecified;static SVG_ANGLETYPE_DEG=ri.deg;static SVG_ANGLETYPE_RAD=ri.rad;static SVG_ANGLETYPE_GRAD=ri.grad;[f];[it]=null;[Me]=null;[yt]="";[Cl]=!1;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,n&&(this[Cl]=!!n.readOnly,this[it]=n.getAttribute||null,this[Me]=n.setAttribute||null)}get unitType(){let l=(this[it]?this[it]():this[yt])?.match(D0t);if(!l)return ri.unknown;if(isNaN(parseFloat(l[1])))return ri.unknown;switch(l[2]){case"":return ri.unspecified;case"deg":return ri.deg;case"rad":return ri.rad;case"grad":return ri.grad;case"turn":return ri.unknown;default:return ri.unspecified}}get value(){let l=(this[it]?this[it]():this[yt])?.match(D0t);if(!l)return 0;let n=parseFloat(l[1]);if(isNaN(n))return 0;switch(l[2]){case"":return n;case"deg":return n;case"rad":return n*(180/Math.PI);case"grad":return n*(180/200);case"turn":return n*360;default:return n}}set value(e){if(this[Cl])throw new this[f].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[f].TypeError("Failed to set the 'value' property on 'SVGAngle': The provided float value is non-finite.");let l="",n=e;switch(this.unitType){case ri.unspecified:n=e,l="";break;case ri.deg:n=e,l="deg";break;case ri.rad:n=e/(180/Math.PI),l="rad";break;case ri.grad:n=e/(180/200),l="grad";break;case ri.unknown:n=e/360,l="turn";default:break}this[yt]=String(n)+l,this[Me]&&this[Me](this[yt])}get valueAsString(){return this[it]?this[it]()||"0":this[yt]||"0"}get valueInSpecifiedUnits(){let e=this.valueAsString;return parseFloat(e)||0}newValueSpecifiedUnits(e,l){if(this[Cl])throw new this[f].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The object is read-only.");if(typeof e!="number")throw new this[f].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.");if(l=typeof l!="number"?parseFloat(l):l,isNaN(l))throw new this[f].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The provided float value is non-finite.");let n="";switch(e){case ri.unspecified:n="";break;case ri.deg:n="deg";break;case ri.rad:n="rad";break;case ri.grad:n="grad";break;case ri.unknown:n="turn";break;default:break}this[yt]=String(l)+n,this[Me]&&this[Me](this[yt])}convertToSpecifiedUnits(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': The object is read-only.");if(typeof e!="number")throw new this[f].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.");let l=this.value,n="";switch(e){case ri.unspecified:n="";break;case ri.deg:n="deg";break;case ri.rad:n="rad",l=l/(180/Math.PI);break;case ri.grad:n="grad",l=l/(180/200);break;case ri.unknown:n="turn",l=l/360;break;default:break}this[yt]=String(l)+n,this[Me]&&this[Me](this[yt])}};c();var qy=class{[f];[it]=null;[Me]=null;[yt]=null;[Cl]=!1;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,n&&(this[Cl]=!!n.readOnly,this[it]=n.getAttribute||null,this[Me]=n.setAttribute||null)}get value(){let e=this[it]?this[it]():this[yt];return parseFloat(e||"0")}set value(e){if(this[Cl])throw new TypeError("Failed to set the 'value' property on 'SVGNumber': The object is read-only.");let l=typeof e!="number"?parseFloat(String(e)):e;if(isNaN(l))throw new TypeError("Failed to set the 'value' property on 'SVGNumber': The provided value is not a number.");this[yt]=String(e),this[Me]&&this[Me](this[yt]||"")}};c();var bC=class{[f];[it];[Me];[Ns]=null;[Ws]=null;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,this[it]=n.getAttribute,this[Me]=n.setAttribute}get animVal(){return this[Ws]||(this[Ws]=new jy(M,this[f],{readOnly:!0,getAttribute:this[it]})),this[Ws]}set animVal(e){}get baseVal(){return this[Ns]||(this[Ns]=new jy(M,this[f],{getAttribute:this[it],setAttribute:this[Me]})),this[Ns]}set baseVal(e){}};c();c();c();var Wxe;(function(t){t[t.unknown=0]="unknown",t[t.meet=1]="meet",t[t.slice=2]="slice"})(Wxe||(Wxe={}));var pC=Wxe;c();var yxe;(function(t){t[t.unknown=0]="unknown",t[t.none=1]="none",t[t.xMinYMin=2]="xMinYMin",t[t.xMidYMin=3]="xMidYMin",t[t.xMaxYMin=4]="xMaxYMin",t[t.xMinYMid=5]="xMinYMid",t[t.xMidYMid=6]="xMidYMid",t[t.xMaxYMid=7]="xMaxYMid",t[t.xMinYMax=8]="xMinYMax",t[t.xMidYMax=9]="xMidYMax",t[t.xMaxYMax=10]="xMaxYMax"})(yxe||(yxe={}));var np=yxe;var xne=Object.values(np);xne.length=xne.indexOf(0);var jge=Object.values(pC);jge.length=jge.indexOf(0);var H5=class{static SVG_MEETORSLICE_UNKNOWN=pC.unknown;static SVG_MEETORSLICE_MEET=pC.meet;static SVG_MEETORSLICE_SLICE=pC.slice;static SVG_PRESERVEASPECTRATIO_UNKNOWN=np.unknown;static SVG_PRESERVEASPECTRATIO_NONE=np.none;static SVG_PRESERVEASPECTRATIO_XMINYMIN=np.xMinYMin;static SVG_PRESERVEASPECTRATIO_XMIDYMIN=np.xMidYMin;static SVG_PRESERVEASPECTRATIO_XMAXYMIN=np.xMaxYMin;static SVG_PRESERVEASPECTRATIO_XMINYMID=np.xMinYMid;static SVG_PRESERVEASPECTRATIO_XMIDYMID=np.xMidYMid;static SVG_PRESERVEASPECTRATIO_XMAXYMID=np.xMaxYMid;static SVG_PRESERVEASPECTRATIO_XMINYMAX=np.xMinYMax;static SVG_PRESERVEASPECTRATIO_XMIDYMAX=np.xMidYMax;static SVG_PRESERVEASPECTRATIO_XMAXYMAX=np.xMaxYMax;[f];[it]=null;[Me]=null;[yt]=null;[Cl]=!1;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,n&&(this[Cl]=!!n.readOnly,this[it]=n.getAttribute||null,this[Me]=n.setAttribute||null)}get align(){let e=this[it]?this[it]():this[yt];if(!e)return np.xMidYMid;let l=e.split(/\s+/)[0];return np[l]===void 0?np.xMidYMid:np[l]}set align(e){if(this[Cl])throw new this[f].TypeError("Failed to set the 'align' property on 'SVGPreserveAspectRatio': The object is read-only.");let l=Number(e);if(isNaN(l)||l<1||l>xne.length)throw new this[f].TypeError("Failed to set the 'align' property on 'SVGPreserveAspectRatio': The alignment provided is invalid.");this[yt]=`${xne[l]} ${jge[this.meetOrSlice]}`,this[Me]&&this[Me](this[yt])}get meetOrSlice(){let e=this[it]?this[it]():this[yt];if(!e)return pC.meet;let l=e.split(/\s+/)[1];return!l||pC[l]===void 0?pC.meet:pC[l]}set meetOrSlice(e){if(this[Cl])throw new this[f].TypeError("Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The object is read-only.");let l=Number(e);if(isNaN(l)||l<1||l>2)throw new this[f].TypeError("Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The meetOrSlice provided is invalid.");this[yt]=`${xne[this.align]} ${jge[l]}`,this[Me]&&this[Me](this[yt])}};var qN=class{[f];[it];[Me];[Ns]=null;[Ws]=null;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,this[it]=n.getAttribute,this[Me]=n.setAttribute}get animVal(){return this[Ws]||(this[Ws]=new H5(M,this[f],{readOnly:!0,getAttribute:this[it]})),this[Ws]}set animVal(e){}get baseVal(){return this[Ns]||(this[Ns]=new H5(M,this[f],{getAttribute:this[it],setAttribute:this[Me]})),this[Ns]}set baseVal(e){}};c();var Gt=class{[f];[it];[Me];[Ns]=null;[Ws]=null;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,this[it]=n.getAttribute,this[Me]=n.setAttribute}get animVal(){return this[Ws]||(this[Ws]=new Ky(M,this[f],{readOnly:!0,getAttribute:this[it]})),this[Ws]}set animVal(e){}get baseVal(){return this[Ns]||(this[Ns]=new Ky(M,this[f],{getAttribute:this[it],setAttribute:this[Me]})),this[Ns]}set baseVal(e){}};var Tz=class extends To{[Ym]=null;[Zt]=null;[gt]=null;[ft]=null;[vt]=null;[Cge]=1;[A1]=null;get onafterprint(){return Fe.getEventListener(this,"onafterprint")}set onafterprint(e){this[q].set("onafterprint",e)}get onbeforeprint(){return Fe.getEventListener(this,"onbeforeprint")}set onbeforeprint(e){this[q].set("onbeforeprint",e)}get onbeforeunload(){return Fe.getEventListener(this,"onbeforeunload")}set onbeforeunload(e){this[q].set("onbeforeunload",e)}get ongamepadconnected(){return Fe.getEventListener(this,"ongamepadconnected")}set ongamepadconnected(e){this[q].set("ongamepadconnected",e)}get ongamepaddisconnected(){return Fe.getEventListener(this,"ongamepaddisconnected")}set ongamepaddisconnected(e){this[q].set("ongamepaddisconnected",e)}get onhashchange(){return Fe.getEventListener(this,"onhashchange")}set onhashchange(e){this[q].set("onhashchange",e)}get onlanguagechange(){return Fe.getEventListener(this,"onlanguagechange")}set onlanguagechange(e){this[q].set("onlanguagechange",e)}get onmessage(){return Fe.getEventListener(this,"onmessage")}set onmessage(e){this[q].set("onmessage",e)}get onmessageerror(){return Fe.getEventListener(this,"onmessageerror")}set onmessageerror(e){this[q].set("onmessageerror",e)}get onoffline(){return Fe.getEventListener(this,"onoffline")}set onoffline(e){this[q].set("onoffline",e)}get ononline(){return Fe.getEventListener(this,"ononline")}set ononline(e){this[q].set("ononline",e)}get onpagehide(){return Fe.getEventListener(this,"onpagehide")}set onpagehide(e){this[q].set("onpagehide",e)}get onpageshow(){return Fe.getEventListener(this,"onpageshow")}set onpageshow(e){this[q].set("onpageshow",e)}get onpopstate(){return Fe.getEventListener(this,"onpopstate")}set onpopstate(e){this[q].set("onpopstate",e)}get onrejectionhandled(){return Fe.getEventListener(this,"onrejectionhandled")}set onrejectionhandled(e){this[q].set("onrejectionhandled",e)}get onstorage(){return Fe.getEventListener(this,"onstorage")}set onstorage(e){this[q].set("onstorage",e)}get onunhandledrejection(){return Fe.getEventListener(this,"onunhandledrejection")}set onunhandledrejection(e){this[q].set("onunhandledrejection",e)}get onunload(){return Fe.getEventListener(this,"onunload")}set onunload(e){this[q].set("onunload",e)}get preserveAspectRatio(){return this[Ym]||(this[Ym]=new qN(M,this[f],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:e=>this.setAttribute("preserveAspectRatio",e)})),this[Ym]}get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}get currentScale(){return this[Cge]}set currentScale(e){let l=typeof e!="number"?parseFloat(String(e)):e;if(isNaN(l))throw this[f].TypeError("Failed to set the 'currentScale' property on 'SVGSVGElement': The provided float value is non-finite.");l<1||(this[Cge]=l)}get currentTranslate(){return new Su(M,this[f])}get viewBox(){return this[A1]||(this[A1]=new bC(M,this[f],{getAttribute:()=>this.getAttribute("viewBox"),setAttribute:e=>this.setAttribute("viewBox",e)})),this[A1]}pauseAnimations(){}unpauseAnimations(){}animationsPaused(){return!1}getCurrentTime(){return 0}setCurrentTime(e){}getIntersectionList(e,l){return new _N(M,[])}getEnclosureList(e,l){return new _N(M,[])}checkIntersection(e,l){return!1}checkEnclosure(e,l){return!1}deselectAll(){}createSVGNumber(){return new qy(M,this[f])}createSVGLength(){return new Ky(M,this[f])}createSVGAngle(){return new $1(M,this[f])}createSVGPoint(){return new Su(M,this[f])}createSVGMatrix(){return new q1(M,this[f])}createSVGRect(){return new jy(M,this[f])}createSVGTransform(){return new og(M,this[f])}createSVGTransformFromMatrix(e){let l=new og(M,this[f]);return l.setMatrix(e),l}getElementsByClassName(e){return _a.getElementsByClassName(this,e)}getElementsByTagName(e){return _a.getElementsByTagName(this,e)}getElementsByTagNameNS(e,l){return _a.getElementsByTagNameNS(this,e,l)}getElementById(e){return _a.getElementById(this,e)}[aI](e=!1){return super[aI](e)}};c();c();var $N=class extends dn{[p1]=null;[h1]=null;get onbegin(){return Fe.getEventListener(this,"onbegin")}set onbegin(e){this[q].set("onbegin",e)}get onend(){return Fe.getEventListener(this,"onend")}set onend(e){this[q].set("onend",e)}get onrepeat(){return Fe.getEventListener(this,"onrepeat")}set onrepeat(e){this[q].set("onrepeat",e)}get requiredExtensions(){return this[p1]||(this[p1]=new BR(M,this[f],{getAttribute:()=>this.getAttribute("requiredExtensions"),setAttribute:e=>this.setAttribute("requiredExtensions",e)})),this[p1]}get systemLanguage(){return this[h1]||(this[h1]=new BR(M,this[f],{getAttribute:()=>this.getAttribute("systemLanguage"),setAttribute:e=>this.setAttribute("systemLanguage",e)})),this[h1]}get targetElement(){return null}};var Sne=class extends $N{};c();var One=class extends $N{};c();var Tne=class extends $N{};c();c();c();var Mn=class{[f];[it];[Me];[bA]=0;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,this[it]=n.getAttribute,this[Me]=n.setAttribute,this[bA]=n.defaultValue||0}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[it]();if(!e)return this[bA];let l=parseFloat(e);return isNaN(l)?this[bA]:l}set baseVal(e){let l=typeof e!="number"?parseFloat(e):e;if(isNaN(l))throw new this[f].TypeError("TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedNumber': The provided float value is non-finite.");this[Me](String(l))}};var sG=class extends To{[Tte]=null;get pathLength(){return this[Tte]||(this[Tte]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("pathLength"),setAttribute:e=>this.setAttribute("pathLength",e)})),this[Tte]}isPointInFill(e){if(!(e instanceof Su))throw new TypeError("Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.");return!1}isPointInStroke(e){if(!(e instanceof Su))throw new TypeError("Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.");return!1}getTotalLength(){return 0}getPointAtLength(e){return new Su(M,this[f])}};var Une=class extends sG{[pA]=null;[hA]=null;[y1]=null;get cx(){return this[pA]||(this[pA]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("cx"),setAttribute:e=>this.setAttribute("cx",e)})),this[pA]}get cy(){return this[hA]||(this[hA]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("cy"),setAttribute:e=>this.setAttribute("cy",e)})),this[hA]}get r(){return this[y1]||(this[y1]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("r"),setAttribute:e=>this.setAttribute("r",e)})),this[y1]}};c();c();var Ir=class{[f];[it];[Me];[Ju];[bA];constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,this[it]=n.getAttribute,this[Me]=n.setAttribute,this[Ju]=n.values,this[bA]=n.defaultValue}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[it]();if(!e)return this[Ju].indexOf(this[bA])+1;let l=this[Ju].indexOf(e);if(l===-1){let n=this[Ju].indexOf(null);return n!==-1?n+1:0}return l+1}set baseVal(e){let l=Number(e);if(isNaN(l)&&(l=0),l<1)throw new TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided is ${l}, which is not settable.`);if(l>this[Ju].length)throw new TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided (${l}) is larger than the largest allowed value (${this[Ju].length}).`);let n=this[it](),I=this[Ju][l-1]===null,r=I?"0":this[Ju][l-1];(!n||I&&this[Ju].includes(n)||!I&&n!==r)&&this[Me](r||"")}};var Mne=class extends dn{[Kte]=null;get clipPathUnits(){return this[Kte]||(this[Kte]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("clipPathUnits"),setAttribute:e=>this.setAttribute("clipPathUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[Kte]}};c();var _ne=class extends To{};c();var Dne=class extends dn{};c();var zne=class extends sG{[pA]=null;[hA]=null;[N1]=null;[W1]=null;get cx(){return this[pA]||(this[pA]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("cx"),setAttribute:e=>this.setAttribute("cx",e)})),this[pA]}get cy(){return this[hA]||(this[hA]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("cy"),setAttribute:e=>this.setAttribute("cy",e)})),this[hA]}get rx(){return this[N1]||(this[N1]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("rx"),setAttribute:e=>this.setAttribute("rx",e)})),this[N1]}get ry(){return this[W1]||(this[W1]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("ry"),setAttribute:e=>this.setAttribute("ry",e)})),this[W1]}};c();c();var Yn=class{[f];[it];[Me];constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,this[it]=n.getAttribute,this[Me]=n.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[it]();return e||""}set baseVal(e){this[Me](String(e))}};var Pne=class extends dn{static SVG_FEBLEND_MODE_UNKNOWN=0;static SVG_FEBLEND_MODE_NORMAL=1;static SVG_FEBLEND_MODE_MULTIPLY=2;static SVG_FEBLEND_MODE_SCREEN=3;static SVG_FEBLEND_MODE_DARKEN=4;static SVG_FEBLEND_MODE_LIGHTEN=5;static SVG_FEBLEND_MODE_OVERLAY=6;static SVG_FEBLEND_MODE_COLOR_DODGE=7;static SVG_FEBLEND_MODE_COLOR_BURN=8;static SVG_FEBLEND_MODE_HARD_LIGHT=9;static SVG_FEBLEND_MODE_SOFT_LIGHT=10;static SVG_FEBLEND_MODE_DIFFERENCE=11;static SVG_FEBLEND_MODE_EXCLUSION=12;static SVG_FEBLEND_MODE_HUE=13;static SVG_FEBLEND_MODE_SATURATION=14;static SVG_FEBLEND_MODE_COLOR=15;static SVG_FEBLEND_MODE_LUMINOSITY=16;[vt]=null;[Xn]=null;[AA]=null;[hi]=null;[Zt]=null;[gt]=null;[ft]=null;get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get in1(){return this[Xn]||(this[Xn]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Xn]}get in2(){return this[AA]||(this[AA]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in2"),setAttribute:e=>this.setAttribute("in2",e)})),this[AA]}get mode(){return this[hi]||(this[hi]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("mode"),setAttribute:e=>this.setAttribute("mode",e),values:["normal","multiply","screen","darken","lighten","overlay","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],defaultValue:"normal"})),this[hi]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();c();c();var AOl=/[\t\f\n\r, ]+/,X5=class t{[f];[it];[Me];[Cl]=!1;[Dt]={items:[],attributeValue:""};constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");if(this[f]=l,this[Cl]=!!n.readOnly,this[it]=n.getAttribute,this[Me]=n.setAttribute,e!==M)throw new TypeError("Illegal constructor");let I=new Wo(this,[t]);return new Proxy(this,{get:(r,a)=>{if(a==="length"||a==="numberOfItems")return r[gl]().length;if(a in r||typeof a=="symbol")return I.bind(a),r[a];let s=Number(a);if(!isNaN(s))return r[gl]()[s]},set(r,a,s){if(I.bind(a),typeof a=="symbol")return r[a]=s,!0;let o=Number(a);return isNaN(o)&&(r[a]=s),!0},deleteProperty(r,a){if(typeof a=="symbol")return delete r[a],!0;let s=Number(a);return isNaN(s)&&delete r[a],!0},ownKeys(r){return Object.keys(r[gl]())},has(r,a){if(a in r)return!0;if(typeof a=="symbol")return!1;let s=Number(a);return!isNaN(s)&&s>=0&&s<r[gl]().length},defineProperty(r,a,s){return I.preventBinding(a),a in r?(Object.defineProperty(r,a,s),!0):!1},getOwnPropertyDescriptor(r,a){if(a in r||typeof a=="symbol")return;let s=Number(a),o=r[gl]();if(!isNaN(s)&&o[s])return{value:o[s],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[gl]().length}get numberOfItems(){return this[gl]().length}[Symbol.iterator](){return this[gl]().values()}clear(){if(this[Cl])throw new this[f].TypeError("Failed to execute 'clear' on 'SVGNumberList': The object is read-only.");for(let e of this[Dt].items)e[it]=null,e[Me]=null;this[Dt].items=[],this[Dt].attributeValue="",this[Me]("")}initialize(e){if(arguments.length<1)throw new this[f].TypeError(`Failed to execute 'initialize' on 'SVGNumberList': 1 arguments required, but only ${arguments.length} present.`);if(this[Cl])throw new this[f].TypeError("Failed to execute 'initialize' on 'SVGNumberList': The object is read-only.");for(let l of this[Dt].items)l[it]=null,l[Me]=null;return e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(l=>l[yt]||"0").join(" "),this[Me](this[Dt].attributeValue)},this[Dt].items=[e],this[Dt].attributeValue=e[yt],this[Me](e[yt]||""),e}getItem(e){let l=this[gl]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),l[e]?l[e]:null}insertItemBefore(e,l){if(this[Cl])throw new this[f].TypeError("Failed to execute 'insertItemBefore' on 'SVGNumberList': The object is read-only.");if(arguments.length<2)throw new this[f].TypeError(`Failed to execute 'insertItemBefore' on 'SVGNumberList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof qy))throw new this[f].TypeError("Failed to execute 'insertItemBefore' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let n=this[gl](),I=n.indexOf(e);return I!==-1&&n.splice(I,1),l<0?l=0:l>n.length&&(l=n.length),n.splice(l,0,e),e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(r=>r[yt]||"0").join(" "),this[Me](this[Dt].attributeValue)},this[Dt].attributeValue=n.map(r=>r[yt]||"0").join(" "),this[Me](this[Dt].attributeValue),e}replaceItem(e,l){if(this[Cl])throw new this[f].TypeError("Failed to execute 'replaceItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<2)throw new this[f].TypeError(`Failed to execute 'replaceItem' on 'SVGNumberList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof qy))throw new this[f].TypeError("Failed to execute 'replaceItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let n=this[gl](),I=n.indexOf(e);if(I===l)return e;I!==-1&&n.splice(I,1),l<0?l=0:l>=n.length&&(l=n.length-1),n[l]&&(n[l][it]=null,n[l][Me]=null);let r=n[l];return n[l]=e,e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(a=>a[yt]||"0").join(" "),this[Me](this[Dt].attributeValue)},this[Dt].attributeValue=n.map(a=>a[yt]||"0").join(" "),this[Me](this[Dt].attributeValue),r}removeItem(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'removeItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<1)throw new this[f].TypeError(`Failed to execute 'removeItem' on 'SVGNumberList': 1 argument required, but only ${arguments.length} present.`);let l=this[gl]();if(e=Number(e),isNaN(e)&&(e=0),e>=l.length)throw new this[f].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${e}) is greater than the maximum bound.`,qe.indexSizeError);if(e<0)throw new this[f].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${e}) is negative.`,qe.indexSizeError);let n=l[e];return n&&(n[it]=null,n[Me]=null),l.splice(e,1),this[Me](l.map(I=>I[yt]||"0").join(" ")),n}appendItem(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'appendItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<1)throw new this[f].TypeError(`Failed to execute 'appendItem' on 'SVGNumberList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof qy))throw new this[f].TypeError("Failed to execute 'appendItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let l=this[gl](),n=l.indexOf(e);return n!==-1&&l.splice(n,1),l.push(e),e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(I=>I[yt]||"0").join(" "),this[Me](this[Dt].attributeValue)},this[Dt].attributeValue=l.map(I=>I[yt]||"0").join(" "),this[Me](this[Dt].attributeValue),e}[gl](){let e=this[it]()??"",l=this[Dt];if(l.attributeValue===e)return l.items;if(l.items.length)for(let r of l.items)r[it]=null,r[Me]=null;let n=[],I=e.trim();if(I){let r=I.split(AOl);for(let a=0,s=r.length;a<s;a++){let o=new qy(M,this[f],{readOnly:this[Cl],getAttribute:()=>o[yt],setAttribute:()=>{this[Dt].attributeValue=this[gl]().map(d=>d[yt]||"0").join(" "),this[Me](this[Dt].attributeValue)}});o[yt]=String(parseFloat(r[a])),n.push(o)}}return l.attributeValue=e,l.items=n,n}};var vA=class{[f];[it];[Me];[Ns]=null;[Ws]=null;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,this[it]=n.getAttribute,this[Me]=n.setAttribute}get animVal(){return this[Ws]||(this[Ws]=new X5(M,this[f],{readOnly:!0,getAttribute:this[it],setAttribute:()=>{}})),this[Ws]}set animVal(e){}get baseVal(){return this[Ns]||(this[Ns]=new X5(M,this[f],{getAttribute:this[it],setAttribute:this[Me]})),this[Ns]}set baseVal(e){}};var jne=class extends dn{static SVG_FEBLEND_TYPE_UNKNOWN=0;static SVG_FEBLEND_TYPE_MATRIX=1;static SVG_FEBLEND_TYPE_SATURATE=2;static SVG_FEBLEND_TYPE_HUEROTATE=3;static SVG_FEBLEND_TYPE_LUMINANCETOALPHA=4;[vt]=null;[Xn]=null;[AA]=null;[an]=null;[Ya]=null;[Ju]=null;[Zt]=null;[gt]=null;[ft]=null;get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get in1(){return this[Xn]||(this[Xn]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Xn]}get in2(){return this[AA]||(this[AA]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in2"),setAttribute:e=>this.setAttribute("in2",e)})),this[AA]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get type(){return this[Ya]||(this[Ya]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("type"),setAttribute:e=>this.setAttribute("type",e),values:["matrix","saturate","huerotate","luminancetoalpha"],defaultValue:"matrix"})),this[Ya]}get values(){return this[Ju]||(this[Ju]=new vA(M,this[f],{getAttribute:()=>this.getAttribute("values"),setAttribute:e=>this.setAttribute("values",e)})),this[Ju]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();var Kne=class extends dn{[vt]=null;[Xn]=null;[an]=null;[Zt]=null;[gt]=null;[ft]=null;get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get in1(){return this[Xn]||(this[Xn]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Xn]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();var qne=class extends dn{static SVG_FECOMPOSITE_OPERATOR_UNKNOWN=0;static SVG_FECOMPOSITE_OPERATOR_OVER=1;static SVG_FECOMPOSITE_OPERATOR_IN=2;static SVG_FECOMPOSITE_OPERATOR_OUT=3;static SVG_FECOMPOSITE_OPERATOR_ATOP=4;static SVG_FECOMPOSITE_OPERATOR_XOR=5;static SVG_FECOMPOSITE_OPERATOR_ARITHMETIC=6;[vt]=null;[Xn]=null;[an]=null;[Ya]=null;[Ju]=null;[Zt]=null;[gt]=null;[ft]=null;get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get in1(){return this[Xn]||(this[Xn]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Xn]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get type(){return this[Ya]||(this[Ya]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("type"),setAttribute:e=>this.setAttribute("type",e),values:["over","in","out","atop","xor","arithmetic"],defaultValue:"over"})),this[Ya]}get values(){return this[Ju]||(this[Ju]=new vA(M,this[f],{getAttribute:()=>this.getAttribute("values"),setAttribute:e=>this.setAttribute("values",e)})),this[Ju]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();c();var TB=class{[f];[it];[Me];constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,this[it]=n.getAttribute,this[Me]=n.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){return this[it]()==="true"}set baseVal(e){this[Me](String(typeof e!="boolean"?!!e:e))}};c();var $y=class{[f];[it];[Me];constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,this[it]=n.getAttribute,this[Me]=n.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[it]();if(!e)return 0;let l=parseInt(e);return isNaN(l)?0:l}set baseVal(e){let l=parseInt(String(e));if(isNaN(l))throw new this[f].TypeError("TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedInteger': The provided float value is non-finite.");this[Me](String(l))}};var $ne=class extends dn{static SVG_EDGEMODE_UNKNOWN=0;static SVG_EDGEMODE_DUPLICATE=1;static SVG_EDGEMODE_WRAP=2;static SVG_EDGEMODE_NONE=3;[hle]=null;[Ale]=null;[F1]=null;[vt]=null;[Xn]=null;[Zle]=null;[ZA]=null;[gA]=null;[gle]=null;[Nle]=null;[Wle]=null;[an]=null;[yle]=null;[Ele]=null;[ft]=null;[Zt]=null;[gt]=null;get bias(){return this[hle]||(this[hle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("bias"),setAttribute:e=>this.setAttribute("bias",e)})),this[hle]}get divisor(){return this[Ale]||(this[Ale]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("divisor"),setAttribute:e=>this.setAttribute("divisor",e)})),this[Ale]}get edgeMode(){return this[F1]||(this[F1]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("edgeMode"),setAttribute:e=>this.setAttribute("edgeMode",e),values:["duplicate","wrap","none"],defaultValue:"duplicate"})),this[F1]}get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get in1(){return this[Xn]||(this[Xn]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Xn]}get kernelMatrix(){return this[Zle]||(this[Zle]=new vA(M,this[f],{getAttribute:()=>this.getAttribute("kernelMatrix"),setAttribute:e=>this.setAttribute("kernelMatrix",e)})),this[Zle]}get kernelUnitLengthX(){return this[ZA]||(this[ZA]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:e=>this.setAttribute("kernelUnitLengthX",e)})),this[ZA]}get kernelUnitLengthY(){return this[gA]||(this[gA]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:e=>this.setAttribute("kernelUnitLengthY",e)})),this[gA]}get orderX(){return this[gle]||(this[gle]=new $y(M,this[f],{getAttribute:()=>this.getAttribute("orderX"),setAttribute:e=>this.setAttribute("orderX",e)})),this[gle]}get orderY(){return this[Nle]||(this[Nle]=new $y(M,this[f],{getAttribute:()=>this.getAttribute("orderY"),setAttribute:e=>this.setAttribute("orderY",e)})),this[Nle]}get preserveAlpha(){return this[Wle]||(this[Wle]=new TB(M,this[f],{getAttribute:()=>this.getAttribute("preserveAlpha"),setAttribute:e=>this.setAttribute("preserveAlpha",e)})),this[Wle]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get targetX(){return this[yle]||(this[yle]=new $y(M,this[f],{getAttribute:()=>this.getAttribute("targetX"),setAttribute:e=>this.setAttribute("targetX",e)})),this[yle]}get targetY(){return this[Ele]||(this[Ele]=new $y(M,this[f],{getAttribute:()=>this.getAttribute("targetY"),setAttribute:e=>this.setAttribute("targetY",e)})),this[Ele]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();var eIe=class extends dn{[Rle]=null;[vt]=null;[Xn]=null;[ZA]=null;[gA]=null;[an]=null;[C1]=null;[ft]=null;[Zt]=null;[gt]=null;get diffuseConstant(){return this[Rle]||(this[Rle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("diffuseConstant"),setAttribute:e=>this.setAttribute("diffuseConstant",e)})),this[Rle]}get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get in1(){return this[Xn]||(this[Xn]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Xn]}get kernelUnitLengthX(){return this[ZA]||(this[ZA]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:e=>this.setAttribute("kernelUnitLengthX",e)})),this[ZA]}get kernelUnitLengthY(){return this[gA]||(this[gA]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:e=>this.setAttribute("kernelUnitLengthY",e)})),this[gA]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get surfaceScale(){return this[C1]||(this[C1]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("surfaceScale"),setAttribute:e=>this.setAttribute("surfaceScale",e)})),this[C1]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();var tIe=class extends dn{static SVG_CHANNEL_UNKNOWN=0;static SVG_CHANNEL_R=1;static SVG_CHANNEL_G=2;static SVG_CHANNEL_B=3;static SVG_CHANNEL_A=4;[vt]=null;[Xn]=null;[AA]=null;[an]=null;[Yle]=null;[ft]=null;[Zt]=null;[Vle]=null;[gt]=null;[Qle]=null;get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get in1(){return this[Xn]||(this[Xn]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Xn]}get in2(){return this[AA]||(this[AA]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in2"),setAttribute:e=>this.setAttribute("in2",e)})),this[AA]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get scale(){return this[Yle]||(this[Yle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("scale"),setAttribute:e=>this.setAttribute("scale",e)})),this[Yle]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get xChannelSelector(){return this[Vle]||(this[Vle]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("xChannelSelector"),setAttribute:e=>this.setAttribute("xChannelSelector",e),values:["r","g","b","a"],defaultValue:"r"})),this[Vle]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}get yChannelSelector(){return this[Qle]||(this[Qle]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("yChannelSelector"),setAttribute:e=>this.setAttribute("yChannelSelector",e),values:["r","g","b","a"],defaultValue:"r"})),this[Qle]}};c();var lIe=class extends dn{[wle]=null;[Fle]=null;get azimuth(){return this[wle]||(this[wle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("azimuth"),setAttribute:e=>this.setAttribute("azimuth",e)})),this[wle]}get elevation(){return this[Fle]||(this[Fle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("elevation"),setAttribute:e=>this.setAttribute("elevation",e)})),this[Fle]}};c();var nIe=class extends dn{[NA]=null;[WA]=null;[vt]=null;[Xn]=null;[an]=null;[v1]=null;[f1]=null;[ft]=null;[Zt]=null;[gt]=null;get dx(){return this[NA]||(this[NA]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("dx"),setAttribute:e=>this.setAttribute("dx",e)})),this[NA]}get dy(){return this[WA]||(this[WA]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("dy"),setAttribute:e=>this.setAttribute("dy",e)})),this[WA]}get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get in1(){return this[Xn]||(this[Xn]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Xn]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get stdDeviationX(){return this[v1]||(this[v1]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("stdDeviationX"),setAttribute:e=>this.setAttribute("stdDeviationX",e),defaultValue:2})),this[v1]}get stdDeviationY(){return this[f1]||(this[f1]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("stdDeviationY"),setAttribute:e=>this.setAttribute("stdDeviationY",e),defaultValue:2})),this[f1]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}setStdDeviation(e,l){this.stdDeviationX.baseVal=e,this.stdDeviationY.baseVal=l}};c();var IIe=class extends dn{[vt]=null;[an]=null;[ft]=null;[Zt]=null;[gt]=null;get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();c();var eW=class extends dn{static SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN=0;static SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY=1;static SVG_FECOMPONENTTRANSFER_TYPE_TABLE=2;static SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE=3;static SVG_FECOMPONENTTRANSFER_TYPE_LINEAR=4;static SVG_FECOMPONENTTRANSFER_TYPE_GAMMA=5;[Ya]=null;[Cle]=null;[vle]=null;[fle]=null;[Hle]=null;[Xle]=null;[Q1]=null;get type(){return this[Ya]||(this[Ya]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("type"),setAttribute:e=>this.setAttribute("type",e),values:["identity","table","discrete","linear","gamma"],defaultValue:"identity"})),this[Ya]}get tableValues(){return this[Cle]||(this[Cle]=new vA(M,this[f],{getAttribute:()=>this.getAttribute("tableValues"),setAttribute:e=>this.setAttribute("tableValues",e)})),this[Cle]}get slope(){return this[vle]||(this[vle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("slope"),setAttribute:e=>this.setAttribute("slope",e),defaultValue:1})),this[vle]}get intercept(){return this[fle]||(this[fle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("intercept"),setAttribute:e=>this.setAttribute("intercept",e)})),this[fle]}get amplitude(){return this[Hle]||(this[Hle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("amplitude"),setAttribute:e=>this.setAttribute("amplitude",e),defaultValue:1})),this[Hle]}get exponent(){return this[Xle]||(this[Xle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("exponent"),setAttribute:e=>this.setAttribute("exponent",e),defaultValue:1})),this[Xle]}get offset(){return this[Q1]||(this[Q1]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("offset"),setAttribute:e=>this.setAttribute("offset",e)})),this[Q1]}};var rIe=class extends eW{};c();var aIe=class extends eW{};c();var sIe=class extends eW{};c();var oIe=class extends eW{};c();var iIe=class extends dn{static SVG_EDGEMODE_UNKNOWN=0;static SVG_EDGEMODE_DUPLICATE=1;static SVG_EDGEMODE_WRAP=2;static SVG_EDGEMODE_NONE=3;[F1]=null;[vt]=null;[Xn]=null;[an]=null;[v1]=null;[f1]=null;[ft]=null;[Zt]=null;[gt]=null;get edgeMode(){return this[F1]||(this[F1]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("edgeMode"),setAttribute:e=>this.setAttribute("edgeMode",e),values:["duplicate","wrap","none"],defaultValue:"duplicate"})),this[F1]}get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get in1(){return this[Xn]||(this[Xn]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Xn]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get stdDeviationX(){return this[v1]||(this[v1]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("stdDeviationX")||"2",setAttribute:e=>this.setAttribute("stdDeviationX",e)})),this[v1]}get stdDeviationY(){return this[f1]||(this[f1]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("stdDeviationY")||"2",setAttribute:e=>this.setAttribute("stdDeviationY",e)})),this[f1]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}setStdDeviation(e,l){this.stdDeviationX.baseVal=e,this.stdDeviationY.baseVal=l}};c();var cIe=class extends dn{[s0t]=null;[vt]=null;[hr]=null;[Ym]=null;[an]=null;[ft]=null;[Zt]=null;[gt]=null;get crossOrigin(){return this.getAttribute("crossorigin")}set crossOrigin(e){this.setAttribute("crossorigin",e)}get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get href(){return this[hr]||(this[hr]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[hr]}get preserveAspectRatio(){return this[Ym]||(this[Ym]=new qN(M,this[f],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:e=>this.setAttribute("preserveAspectRatio",e)})),this[Ym]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();var dIe=class extends dn{[vt]=null;[an]=null;[ft]=null;[Zt]=null;[gt]=null;get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();var uIe=class extends dn{[Xn]=null;get in1(){return this[Xn]||(this[Xn]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Xn]}};c();var mIe=class extends dn{static SVG_MORPHOLOGY_OPERATOR_UNKNOWN=0;static SVG_MORPHOLOGY_OPERATOR_ERODE=1;static SVG_MORPHOLOGY_OPERATOR_DILATE=2;[vt]=null;[Xn]=null;[kle]=null;[Lle]=null;[Jle]=null;[an]=null;[ft]=null;[Zt]=null;[gt]=null;get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get in1(){return this[Xn]||(this[Xn]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Xn]}get operator(){return this[kle]||(this[kle]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("operator"),setAttribute:e=>this.setAttribute("operator",e),values:["erode","dilate"],defaultValue:"erode"})),this[kle]}get radiusX(){return this[Lle]||(this[Lle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("radiusX"),setAttribute:e=>this.setAttribute("radiusX",e)})),this[Lle]}get radiusY(){return this[Jle]||(this[Jle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("radiusY"),setAttribute:e=>this.setAttribute("radiusY",e)})),this[Jle]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();var GIe=class extends dn{[vt]=null;[Xn]=null;[NA]=null;[WA]=null;[an]=null;[ft]=null;[Zt]=null;[gt]=null;get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get in1(){return this[Xn]||(this[Xn]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Xn]}get dx(){return this[NA]||(this[NA]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("dx"),setAttribute:e=>this.setAttribute("dx",e)})),this[NA]}get dy(){return this[WA]||(this[WA]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("dy"),setAttribute:e=>this.setAttribute("dy",e)})),this[WA]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();var bIe=class extends dn{[Zt]=null;[gt]=null;[Kb]=null;get x(){return this[Zt]||(this[Zt]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}get z(){return this[Kb]||(this[Kb]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("z"),setAttribute:e=>this.setAttribute("z",e)})),this[Kb]}};c();var pIe=class extends dn{[vt]=null;[Xn]=null;[ZA]=null;[gA]=null;[an]=null;[Ble]=null;[H1]=null;[C1]=null;[ft]=null;[Zt]=null;[gt]=null;get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get in1(){return this[Xn]||(this[Xn]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Xn]}get kernelUnitLengthX(){return this[ZA]||(this[ZA]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:e=>this.setAttribute("kernelUnitLengthX",e)})),this[ZA]}get kernelUnitLengthY(){return this[gA]||(this[gA]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:e=>this.setAttribute("kernelUnitLengthY",e)})),this[gA]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get specularConstant(){return this[Ble]||(this[Ble]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("specularConstant"),setAttribute:e=>this.setAttribute("specularConstant",e),defaultValue:1})),this[Ble]}get specularExponent(){return this[H1]||(this[H1]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("specularExponent"),setAttribute:e=>this.setAttribute("specularExponent",e),defaultValue:1})),this[H1]}get surfaceScale(){return this[C1]||(this[C1]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("surfaceScale"),setAttribute:e=>this.setAttribute("surfaceScale",e),defaultValue:1})),this[C1]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();var hIe=class extends dn{[Zt]=null;[gt]=null;[Kb]=null;[xle]=null;[Sle]=null;[Ole]=null;[H1]=null;[Tle]=null;get x(){return this[Zt]||(this[Zt]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}get z(){return this[Kb]||(this[Kb]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("z"),setAttribute:e=>this.setAttribute("z",e)})),this[Kb]}get pointsAtX(){return this[xle]||(this[xle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("pointsAtX"),setAttribute:e=>this.setAttribute("pointsAtX",e)})),this[xle]}get pointsAtY(){return this[Sle]||(this[Sle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("pointsAtY"),setAttribute:e=>this.setAttribute("pointsAtY",e)})),this[Sle]}get pointsAtZ(){return this[Ole]||(this[Ole]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("pointsAtZ"),setAttribute:e=>this.setAttribute("pointsAtZ",e)})),this[Ole]}get specularExponent(){return this[H1]||(this[H1]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("specularExponent"),setAttribute:e=>this.setAttribute("specularExponent",e),defaultValue:1})),this[H1]}get limitingConeAngle(){return this[Tle]||(this[Tle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("limitingConeAngle"),setAttribute:e=>this.setAttribute("limitingConeAngle",e)})),this[Tle]}};c();var AIe=class extends dn{[vt]=null;[Xn]=null;[an]=null;[ft]=null;[Zt]=null;[gt]=null;get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get in1(){return this[Xn]||(this[Xn]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Xn]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();var ZIe=class extends dn{static SVG_TURBULENCE_TYPE_UNKNOWN=0;static SVG_TURBULENCE_TYPE_FRACTALNOISE=1;static SVG_TURBULENCE_TYPE_TURBULENCE=2;static SVG_STITCHTYPE_UNKNOWN=0;static SVG_STITCHTYPE_STITCH=1;static SVG_STITCHTYPE_NOSTITCH=2;[Ule]=null;[Mle]=null;[vt]=null;[_le]=null;[an]=null;[Dle]=null;[zle]=null;[Ya]=null;[ft]=null;[Zt]=null;[gt]=null;get baseFrequencyX(){return this[Ule]||(this[Ule]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("baseFrequencyX"),setAttribute:e=>this.setAttribute("baseFrequencyX",e)})),this[Ule]}get baseFrequencyY(){return this[Mle]||(this[Mle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("baseFrequencyY"),setAttribute:e=>this.setAttribute("baseFrequencyY",e)})),this[Mle]}get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get numOctaves(){return this[_le]||(this[_le]=new $y(M,this[f],{getAttribute:()=>this.getAttribute("numOctaves"),setAttribute:e=>this.setAttribute("numOctaves",e)})),this[_le]}get result(){return this[an]||(this[an]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[an]}get seed(){return this[Dle]||(this[Dle]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("seed"),setAttribute:e=>this.setAttribute("seed",e)})),this[Dle]}get stitchTiles(){return this[zle]||(this[zle]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("stitchTiles"),setAttribute:e=>this.setAttribute("stitchTiles",e),values:["stitch","noStitch"],defaultValue:"stitch"})),this[zle]}get type(){return this[Ya]||(this[Ya]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("type"),setAttribute:e=>this.setAttribute("type",e),values:["fractalNoise","turbulence"],defaultValue:"turbulence"})),this[Ya]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();var gIe=class extends dn{[hr]=null;[ele]=null;[tle]=null;[Zt]=null;[gt]=null;[ft]=null;[vt]=null;get href(){return this[hr]||(this[hr]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[hr]}get filterUnits(){return this[ele]||(this[ele]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("filterUnits"),setAttribute:e=>this.setAttribute("filterUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[ele]}get primitiveUnits(){return this[tle]||(this[tle]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("primitiveUnits"),setAttribute:e=>this.setAttribute("primitiveUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[tle]}get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();var NIe=class extends To{[Zt]=null;[gt]=null;[ft]=null;[vt]=null;get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();var WIe=class extends To{};c();var yIe=class extends To{[hr]=null;[Ym]=null;[Zt]=null;[gt]=null;[ft]=null;[vt]=null;get crossOrigin(){return this.getAttribute("crossorigin")}set crossOrigin(e){this.setAttribute("crossorigin",e)}get href(){return this[hr]||(this[hr]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[hr]}get decoding(){let e=this.getAttribute("decoding");switch(e){case"sync":case"async":case"auto":return e;default:return"auto"}}set decoding(e){this.setAttribute("decoding",e)}get preserveAspectRatio(){return this[Ym]||(this[Ym]=new qN(M,this[f],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:e=>this.setAttribute("preserveAspectRatio",e)})),this[Ym]}get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}decode(){return Promise.resolve()}};c();var EIe=class extends sG{[E1]=null;[R1]=null;[Y1]=null;[V1]=null;get x1(){return this[E1]||(this[E1]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x1"),setAttribute:e=>this.setAttribute("x1",e)})),this[E1]}get y1(){return this[R1]||(this[R1]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y1"),setAttribute:e=>this.setAttribute("y1",e)})),this[R1]}get x2(){return this[Y1]||(this[Y1]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x2"),setAttribute:e=>this.setAttribute("x2",e)})),this[Y1]}get y2(){return this[V1]||(this[V1]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y2"),setAttribute:e=>this.setAttribute("y2",e)})),this[V1]}};c();c();var hC=class extends To{static SVG_SPREADMETHOD_UNKNOWN=0;static SVG_SPREADMETHOD_PAD=1;static SVG_SPREADMETHOD_REFLECT=2;static SVG_SPREADMETHOD_REPEAT=3;[hr]=null;[lle]=null;[nle]=null;[Ile]=null;get href(){return this[hr]||(this[hr]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[hr]}get gradientUnits(){return this[lle]||(this[lle]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("gradientUnits"),setAttribute:e=>this.setAttribute("gradientUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"objectBoundingBox"})),this[lle]}get gradientTransform(){return this[nle]||(this[nle]=new xR(M,this[f],{getAttribute:()=>this.getAttribute("gradientTransform"),setAttribute:e=>this.setAttribute("gradientTransform",e)})),this[nle]}get spreadMethod(){return this[Ile]||(this[Ile]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("spreadMethod"),setAttribute:e=>this.setAttribute("spreadMethod",e),values:["pad","reflect","repeat"],defaultValue:"pad"})),this[Ile]}};var RIe=class extends hC{[E1]=null;[R1]=null;[Y1]=null;[V1]=null;get x1(){return this[E1]||(this[E1]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x1"),setAttribute:e=>this.setAttribute("x1",e)})),this[E1]}get y1(){return this[R1]||(this[R1]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y1"),setAttribute:e=>this.setAttribute("y1",e)})),this[R1]}get x2(){return this[Y1]||(this[Y1]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x2"),setAttribute:e=>this.setAttribute("x2",e)})),this[Y1]}get y2(){return this[V1]||(this[V1]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y2"),setAttribute:e=>this.setAttribute("y2",e)})),this[V1]}};c();c();var UB=class{[f];[it];[Me];[Ns]=null;[Ws]=null;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,this[it]=n.getAttribute,this[Me]=n.setAttribute}get animVal(){return this[Ws]||(this[Ws]=new $1(M,this[f],{readOnly:!0,getAttribute:this[it]})),this[Ws]}set animVal(e){}get baseVal(){return this[Ns]||(this[Ns]=new $1(M,this[f],{getAttribute:this[it],setAttribute:this[Me]})),this[Ns]}set baseVal(e){}};var YIe=class extends dn{static SVG_MARKER_ORIENT_UNKNOWN=0;static SVG_MARKER_ORIENT_AUTO=1;static SVG_MARKER_ORIENT_ANGLE=2;static SVG_MARKERUNITS_UNKNOWN=0;static SVG_MARKERUNITS_USERSPACEONUSE=1;static SVG_MARKERUNITS_STROKEWIDTH=2;SVG_MARKER_ORIENT_UNKNOWN=0;SVG_MARKER_ORIENT_AUTO=1;SVG_MARKER_ORIENT_ANGLE=2;[Ute]=null;[Mte]=null;[_te]=null;[Dte]=null;[zte]=null;[Pte]=null;[jte]=null;[A1]=null;[Ym]=null;get markerUnits(){return this[Ute]||(this[Ute]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("markerUnits"),setAttribute:e=>this.setAttribute("markerUnits",e),values:["userSpaceOnUse","strokeWidth"],defaultValue:"strokeWidth"})),this[Ute]}get markerWidth(){return this[Mte]||(this[Mte]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("markerWidth"),setAttribute:e=>this.setAttribute("markerWidth",e)})),this[Mte]}get markerHeight(){return this[_te]||(this[_te]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("markerHeight"),setAttribute:e=>this.setAttribute("markerHeight",e)})),this[_te]}get orientType(){return this[Dte]||(this[Dte]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("orient"),setAttribute:e=>this.setAttribute("orient",e),values:["auto",null],defaultValue:"auto"})),this[Dte]}get orientAngle(){return this[zte]||(this[zte]=new UB(M,this[f],{getAttribute:()=>this.getAttribute("orient"),setAttribute:e=>this.setAttribute("orient",e)})),this[zte]}get refX(){return this[Pte]||(this[Pte]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("refX"),setAttribute:e=>this.setAttribute("refX",e)})),this[Pte]}get refY(){return this[jte]||(this[jte]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("refY"),setAttribute:e=>this.setAttribute("refY",e)})),this[jte]}get viewBox(){return this[A1]||(this[A1]=new bC(M,this[f],{getAttribute:()=>this.getAttribute("viewBox"),setAttribute:e=>this.setAttribute("viewBox",e)})),this[A1]}get preserveAspectRatio(){return this[Ym]||(this[Ym]=new qN(M,this[f],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:e=>this.setAttribute("preserveAspectRatio",e)})),this[Ym]}setOrientToAuto(){this.setAttribute("orient","auto")}setOrientToAngle(e){this.setAttribute("orient",e.valueAsString)}};c();var VIe=class extends dn{[qte]=null;[$te]=null;[Zt]=null;[gt]=null;[ft]=null;[vt]=null;get maskUnits(){return this[qte]||(this[qte]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("maskUnits"),setAttribute:e=>this.setAttribute("maskUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[qte]}get maskContentUnits(){return this[$te]||(this[$te]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("maskContentUnits"),setAttribute:e=>this.setAttribute("maskContentUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[$te]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();var QIe=class extends dn{};c();var wIe=class extends dn{[hr]=null;get href(){return this[hr]||(this[hr]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[hr]}};c();var FIe=class extends sG{};c();var CIe=class extends dn{[hr]=null;[rle]=null;[ale]=null;[sle]=null;[Zt]=null;[gt]=null;[ft]=null;[vt]=null;get href(){return this[hr]||(this[hr]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[hr]}get patternUnits(){return this[rle]||(this[rle]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("patternUnits"),setAttribute:e=>this.setAttribute("patternUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"objectBoundingBox"})),this[rle]}get patternContentUnits(){return this[ale]||(this[ale]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("patternContentUnits"),setAttribute:e=>this.setAttribute("patternContentUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[ale]}get patternTransform(){return this[sle]||(this[sle]=new xR(M,this[f],{getAttribute:()=>this.getAttribute("patternTransform"),setAttribute:e=>this.setAttribute("patternTransform",e)})),this[sle]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}};c();c();var ZOl=/[\t\f\n\r, ]+/,SR=class t{[f];[it];[Me];[Cl]=!1;[Dt]={items:[],attributeValue:""};constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,this[Cl]=!!n.readOnly,this[it]=n.getAttribute,this[Me]=n.setAttribute;let I=new Wo(this,[t]);return new Proxy(this,{get:(r,a)=>{if(a==="length"||a==="numberOfItems")return r[gl]().length;if(a in r||typeof a=="symbol")return I.bind(a),r[a];let s=Number(a);if(!isNaN(s))return r[gl]()[s]},set(r,a,s){if(I.bind(a),typeof a=="symbol")return r[a]=s,!0;let o=Number(a);return isNaN(o)&&(r[a]=s),!0},deleteProperty(r,a){if(typeof a=="symbol")return delete r[a],!0;let s=Number(a);return isNaN(s)&&delete r[a],!0},ownKeys(r){return Object.keys(r[gl]())},has(r,a){if(a in r)return!0;if(typeof a=="symbol")return!1;let s=Number(a);return!isNaN(s)&&s>=0&&s<r[gl]().length},defineProperty(r,a,s){return I.preventBinding(a),a in r?(Object.defineProperty(r,a,s),!0):!1},getOwnPropertyDescriptor(r,a){if(a in r||typeof a=="symbol")return;let s=Number(a),o=r[gl]();if(!isNaN(s)&&o[s])return{value:o[s],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[gl]().length}get numberOfItems(){return this[gl]().length}[Symbol.iterator](){return this[gl]().values()}clear(){if(this[Cl])throw new this[f].TypeError("Failed to execute 'clear' on 'SVGPointList': The object is read-only.");for(let e of this[Dt].items)e[it]=null,e[Me]=null;this[Dt].items=[],this[Dt].attributeValue="",this[Me]("")}initialize(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'initialize' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[f].TypeError(`Failed to execute 'initialize' on 'SVGPointList': 1 arguments required, but only ${arguments.length} present.`);if(!(e instanceof Su))throw new this[f].TypeError("Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");for(let l of this[Dt].items)l[it]=null,l[Me]=null;return e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(l=>l[yt]||"0 0").join(" "),this[Me](this[Dt].attributeValue)},this[Dt].items=[e],this[Dt].attributeValue=e[yt],this[Me](e[yt]||""),e}getItem(e){let l=this[gl]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),l[e]?l[e]:null}insertItemBefore(e,l){if(this[Cl])throw new this[f].TypeError("Failed to execute 'insertItemBefore' on 'SVGPointList': The object is read-only.");if(arguments.length<2)throw new this[f].TypeError(`Failed to execute 'insertItemBefore' on 'SVGPointList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof Su))throw new this[f].TypeError("Failed to execute 'insertItemBefore' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let n=this[gl](),I=n.indexOf(e);return I!==-1&&n.splice(I,1),l<0?l=0:l>n.length&&(l=n.length),n.splice(l,0,e),e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(r=>r[yt]||"0 0").join(" "),this[Me](this[Dt].attributeValue)},this[Dt].attributeValue=n.map(r=>r[yt]||"0 0").join(" "),this[Me](this[Dt].attributeValue),e}replaceItem(e,l){if(this[Cl])throw new this[f].TypeError("Failed to execute 'replaceItem' on 'SVGPointList': The object is read-only.");if(arguments.length<2)throw new this[f].TypeError(`Failed to execute 'replaceItem' on 'SVGPointList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof Su))throw new this[f].TypeError("Failed to execute 'replaceItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let n=this[gl](),I=n.indexOf(e);if(I===l)return e;I!==-1&&n.splice(I,1),l<0?l=0:l>=n.length&&(l=n.length-1),n[l]&&(n[l][it]=null,n[l][Me]=null);let r=n[l];return n[l]=e,e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(a=>a[yt]||"0 0").join(" "),this[Me](this[Dt].attributeValue)},this[Dt].attributeValue=n.map(a=>a[yt]||"0 0").join(" "),this[Me](this[Dt].attributeValue),r}removeItem(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'removeItem' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[f].TypeError(`Failed to execute 'removeItem' on 'SVGPointList': 1 argument required, but only ${arguments.length} present.`);let l=this[gl]();if(e=Number(e),isNaN(e)&&(e=0),e>=l.length)throw new this[f].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${e}) is greater than the maximum bound.`,qe.indexSizeError);if(e<0)throw new this[f].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${e}) is negative.`,qe.indexSizeError);let n=l[e];return n&&(n[it]=null,n[Me]=null),l.splice(e,1),this[Me](l.map(I=>I[yt]||"0 0").join(" ")),n}appendItem(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'appendItem' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[f].TypeError(`Failed to execute 'appendItem' on 'SVGPointList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof Su))throw new this[f].TypeError("Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let l=this[gl](),n=l.indexOf(e);return n!==-1&&l.splice(n,1),l.push(e),e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(I=>I[yt]||"0 0").join(" "),this[Me](this[Dt].attributeValue)},this[Dt].attributeValue=l.map(I=>I[yt]||"0 0").join(" "),this[Me](this[Dt].attributeValue),e}[gl](){let e=this[it]()??"",l=this[Dt];if(l.attributeValue===e)return l.items;if(l.items.length)for(let r of l.items)r[it]=null,r[Me]=null;let n=[],I=e.trim();if(I){let r=I.split(ZOl);for(let a=0,s=r.length;a<s;a+=2){let o=parseFloat(r[a]),d=r[a+1]!==void 0?" "+parseFloat(r[a+1]):"",u=new Su(M,this[f],{readOnly:this[Cl],getAttribute:()=>u[yt],setAttribute:()=>{this[Dt].attributeValue=this[gl]().map(G=>G[yt]||"0 0").join(" "),this[Me](this[Dt].attributeValue)}});u[yt]=`${o}${d}`,n.push(u)}}return l.attributeValue=e,l.items=n,n}};var vIe=class extends sG{[Z1]=null;[g1]=null;get animatedPoints(){return this[Z1]||(this[Z1]=new SR(M,this[f],{readOnly:!0,getAttribute:()=>this.getAttribute("points"),setAttribute:()=>{}})),this[Z1]}get points(){return this[g1]||(this[g1]=new SR(M,this[f],{getAttribute:()=>this.getAttribute("points"),setAttribute:e=>this.setAttribute("points",e)})),this[g1]}};c();var fIe=class extends sG{[Z1]=null;[g1]=null;get animatedPoints(){return this[Z1]||(this[Z1]=new SR(M,this[f],{readOnly:!0,getAttribute:()=>this.getAttribute("points"),setAttribute:()=>{}})),this[Z1]}get points(){return this[g1]||(this[g1]=new SR(M,this[f],{getAttribute:()=>this.getAttribute("points"),setAttribute:e=>this.setAttribute("points",e)})),this[g1]}};c();var HIe=class extends hC{[pA]=null;[hA]=null;[y1]=null;[ole]=null;[ile]=null;get cx(){return this[pA]||(this[pA]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("cx"),setAttribute:e=>this.setAttribute("cx",e)})),this[pA]}get cy(){return this[hA]||(this[hA]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("cy"),setAttribute:e=>this.setAttribute("cy",e)})),this[hA]}get r(){return this[y1]||(this[y1]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("r"),setAttribute:e=>this.setAttribute("r",e)})),this[y1]}get fx(){return this[ole]||(this[ole]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("fx"),setAttribute:e=>this.setAttribute("fx",e)})),this[ole]}get fy(){return this[ile]||(this[ile]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("fy"),setAttribute:e=>this.setAttribute("fy",e)})),this[ile]}};c();var XIe=class extends sG{[Zt]=null;[gt]=null;[ft]=null;[vt]=null;[N1]=null;[W1]=null;get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get rx(){return this[N1]||(this[N1]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("rx"),setAttribute:e=>this.setAttribute("rx",e)})),this[N1]}get ry(){return this[W1]||(this[W1]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("ry"),setAttribute:e=>this.setAttribute("ry",e)})),this[W1]}};c();var kIe=class extends To{[hr]=null;get href(){return this[hr]||(this[hr]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[hr]}get type(){return this.getAttribute("type")||""}set type(e){this.setAttribute("type",e)}};c();var LIe=class extends $N{};c();var JIe=class extends dn{[Q1]=null;get offset(){return this[Q1]||(this[Q1]=new Mn(M,this[f],{getAttribute:()=>this.getAttribute("offset"),setAttribute:e=>this.setAttribute("offset",e)})),this[Q1]}};c();var BIe=class extends dn{[eu]=null;[sb]=this;[_X]=!1;get media(){return this.getAttribute("media")||"all"}set media(e){this.setAttribute("media",e)}get type(){return this.getAttribute("type")||"text/css"}set type(e){this.setAttribute("type",e)}get title(){return this.getAttribute("title")||""}set title(e){this.setAttribute("title",e)}get disabled(){return this[_X]}set disabled(e){this[_X]=!!e}get sheet(){return this[bn]?(this[eu]||(this[eu]=new this[rt][f].CSSStyleSheet,this[eu].replaceSync(this.textContent)),this[eu]):null}[zb](){super[zb](),this[eu]=null}[OX](){this[eu]&&this[eu].replaceSync(this.textContent)}};c();var xIe=class extends To{};c();var SIe=class extends To{};c();c();c();var MB=class extends To{static LENGTHADJUST_UNKNOWN=0;static LENGTHADJUST_SPACING=1;static LENGTHADJUST_SPACINGANDGLYPHS=2;[cle]=null;[dle]=null;get textLength(){return this[cle]||(this[cle]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("textLength"),setAttribute:e=>this.setAttribute("textLength",e)})),this[cle]}get lengthAdjust(){return this[dle]||(this[dle]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("lengthAdjust"),setAttribute:e=>this.setAttribute("lengthAdjust",e),values:["spacing","spacingAndGlyphs"],defaultValue:"spacing"})),this[dle]}getNumberOfChars(){return 0}getComputedTextLength(){return 0}getSubStringLength(e,l){return 0}getStartPositionOfChar(e){return new Su(M,this[f])}getEndPositionOfChar(e){return new Su(M,this[f])}getExtentOfChar(e){return new jy(M,this[f])}getRotationOfChar(e){return 0}getCharNumAtPosition(e){return 0}};c();c();var gOl=/[\t\f\n\r, ]+/,k5=class t{[f];[it];[Me];[Cl]=!1;[Dt]={items:[],attributeValue:""};constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,this[Cl]=!!n.readOnly,this[it]=n.getAttribute,this[Me]=n.setAttribute;let I=new Wo(this,[t]);return new Proxy(this,{get:(r,a)=>{if(a==="length"||a==="numberOfItems")return r[gl]().length;if(a in r||typeof a=="symbol")return I.bind(a),r[a];let s=Number(a);if(!isNaN(s))return r[gl]()[s]},set(r,a,s){if(I.bind(a),typeof a=="symbol")return r[a]=s,!0;let o=Number(a);return isNaN(o)&&(r[a]=s),!0},deleteProperty(r,a){if(typeof a=="symbol")return delete r[a],!0;let s=Number(a);return isNaN(s)&&delete r[a],!0},ownKeys(r){return Object.keys(r[gl]())},has(r,a){if(a in r)return!0;if(typeof a=="symbol")return!1;let s=Number(a);return!isNaN(s)&&s>=0&&s<r[gl]().length},defineProperty(r,a,s){return I.preventBinding(a),a in r?(Object.defineProperty(r,a,s),!0):!1},getOwnPropertyDescriptor(r,a){if(a in r||typeof a=="symbol")return;let s=Number(a),o=r[gl]();if(!isNaN(s)&&o[s])return{value:o[s],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[gl]().length}get numberOfItems(){return this[gl]().length}[Symbol.iterator](){return this[gl]().values()}clear(){this[Me]("")}initialize(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'initialize' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[f].TypeError(`Failed to execute 'initialize' on 'SVGLengthList': 1 arguments required, but only ${arguments.length} present.`);for(let l of this[Dt].items)l[it]=null,l[Me]=null;return e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(l=>l[yt]??"0").join(" "),this[Me](this[Dt].attributeValue)},this[Dt].items=[e],this[Dt].attributeValue=e[yt],this[Me](e[yt]||""),e}getItem(e){let l=this[gl]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),l[e]?l[e]:null}insertItemBefore(e,l){if(this[Cl])throw new this[f].TypeError("Failed to execute 'insertItemBefore' on 'SVGLengthList': The object is read-only.");if(arguments.length<2)throw new this[f].TypeError(`Failed to execute 'insertItemBefore' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let n=this[gl](),I=n.indexOf(e);return I!==-1&&n.splice(I,1),l<0?l=0:l>n.length&&(l=n.length),n.splice(l,0,e),e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(r=>r[yt]??"0").join(" "),this[Me](this[Dt].attributeValue)},this[Dt].attributeValue=n.map(r=>r[yt]??"0").join(" "),this[Me](this[Dt].attributeValue),e}replaceItem(e,l){if(this[Cl])throw new this[f].TypeError("Failed to execute 'replaceItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<2)throw new this[f].TypeError(`Failed to execute 'replaceItem' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let n=this[gl](),I=n.indexOf(e);if(I===l)return e;I!==-1&&n.splice(I,1),l<0?l=0:l>=n.length&&(l=n.length-1),n[l]&&(n[l][it]=null,n[l][Me]=null);let r=n[l];return n[l]=e,e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(a=>a[yt]??"0").join(" "),this[Me](this[Dt].attributeValue)},this[Dt].attributeValue=n.map(a=>a[yt]??"0").join(" "),this[Me](this[Dt].attributeValue),r}removeItem(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'removeItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[f].TypeError(`Failed to execute 'removeItem' on 'SVGLengthList': 1 argument required, but only ${arguments.length} present.`);let l=this[gl]();if(e=Number(e),isNaN(e)&&(e=0),e>=l.length)throw new this[f].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${e}) is greater than the maximum bound.`,qe.indexSizeError);if(e<0)throw new this[f].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${e}) is negative.`,qe.indexSizeError);let n=l[e];return n&&(n[it]=null,n[Me]=null),l.splice(e,1),this[Me](l.map(I=>I[yt]??"0").join(" ")),n}appendItem(e){if(this[Cl])throw new this[f].TypeError("Failed to execute 'appendItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[f].TypeError(`Failed to execute 'appendItem' on 'SVGLengthList': 1 argument required, but only ${arguments.length} present.`);let l=this[gl](),n=l.indexOf(e);return n!==-1&&l.splice(n,1),l.push(e),e[it]=()=>e[yt],e[Me]=()=>{this[Dt].attributeValue=this[gl]().map(I=>I[yt]??"0").join(" "),this[Me](this[Dt].attributeValue)},this[Dt].attributeValue=l.map(I=>I[yt]??"0").join(" "),this[Me](this[Dt].attributeValue),e}[gl](){let e=this[it]()??"",l=this[Dt];if(l.attributeValue===e)return l.items;if(l.items.length)for(let r of l.items)r[it]=null,r[Me]=null;let n=[],I=e.trim();if(I){let r=I.split(gOl);for(let a=0,s=r.length;a<s;a++){let o=new Ky(M,this[f],{readOnly:this[Cl],getAttribute:()=>o[yt],setAttribute:d=>{o[yt]=d;let u=n.map(G=>G[yt]??"0").join(" ");l.attributeValue=u,this[Me](u)}});o[yt]=r[a],n.push(o)}}return l.attributeValue=e,l.items=n,n}};var eV=class{[f];[it];[Me];[Ns]=null;[Ws]=null;constructor(e,l,n){if(e!==M)throw new TypeError("Illegal constructor");this[f]=l,this[it]=n.getAttribute,this[Me]=n.setAttribute}get animVal(){return this[Ws]||(this[Ws]=new k5(M,this[f],{readOnly:!0,getAttribute:this[it],setAttribute:this[Me]})),this[Ws]}set animVal(e){}get baseVal(){return this[Ns]||(this[Ns]=new k5(M,this[f],{getAttribute:this[it],setAttribute:this[Me]})),this[Ns]}set baseVal(e){}};var AC=class extends MB{[Zt]=null;[gt]=null;[NA]=null;[WA]=null;[$le]=null;get x(){return this[Zt]||(this[Zt]=new eV(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new eV(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}get dx(){return this[NA]||(this[NA]=new eV(M,this[f],{getAttribute:()=>this.getAttribute("dx"),setAttribute:e=>this.setAttribute("dx",e)})),this[NA]}get dy(){return this[WA]||(this[WA]=new eV(M,this[f],{getAttribute:()=>this.getAttribute("dy"),setAttribute:e=>this.setAttribute("dy",e)})),this[WA]}get rotate(){return this[$le]||(this[$le]=new vA(M,this[f],{getAttribute:()=>this.getAttribute("rotate"),setAttribute:e=>this.setAttribute("rotate",e)})),this[$le]}};var OIe=class extends AC{};c();var TIe=class extends MB{static TEXTPATH_METHODTYPE_UNKNOWN=0;static TEXTPATH_METHODTYPE_ALIGN=1;static TEXTPATH_METHODTYPE_STRETCH=2;static TEXTPATH_SPACINGTYPE_UNKNOWN=0;static TEXTPATH_SPACINGTYPE_AUTO=1;static TEXTPATH_SPACINGTYPE_EXACT=2;[hr]=null;[ble]=null;[UF]=null;[ple]=null;get href(){return this[hr]||(this[hr]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[hr]}get startOffset(){return this[ble]||(this[ble]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("startOffset"),setAttribute:e=>this.setAttribute("startOffset",e)})),this[ble]}get method(){return this[UF]||(this[UF]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("method"),setAttribute:e=>this.setAttribute("method",e),values:["align","stretch"],defaultValue:"align"})),this[UF]}get spacing(){return this[ple]||(this[ple]=new Ir(M,this[f],{getAttribute:()=>this.getAttribute("spacing"),setAttribute:e=>this.setAttribute("spacing",e),values:["auto","exact"],defaultValue:"exact"})),this[ple]}};c();var UIe=class extends dn{};c();var MIe=class extends AC{};c();var _Ie=class extends To{[hr]=null;[Zt]=null;[gt]=null;[ft]=null;[vt]=null;get href(){return this[hr]||(this[hr]=new Yn(M,this[f],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[hr]}get x(){return this[Zt]||(this[Zt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[Zt]}get y(){return this[gt]||(this[gt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[gt]}get width(){return this[ft]||(this[ft]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ft]}get height(){return this[vt]||(this[vt]=new Gt(M,this[f],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[vt]}};c();var DIe=class extends dn{};c();var zIe=class{static SVG_UNIT_TYPE_UNKNOWN=0;static SVG_UNIT_TYPE_USERSPACEONUSE=1;static SVG_UNIT_TYPE_OBJECTBOUNDINGBOX=2;SVG_UNIT_TYPE_UNKNOWN=0;SVG_UNIT_TYPE_USERSPACEONUSE=1;SVG_UNIT_TYPE_OBJECTBOUNDINGBOX=2;constructor(e){if(e!==M)throw new TypeError("Illegal constructor")}};c();var PIe=class{window;constructor(e){this.window=e}enqueueReaction(e,l,n){let I=this.window.customElements[gR]?.get(e.localName);if(I&&e[rt]===this.window.document)switch(l){case"connectedCallback":if(I.livecycleCallbacks.connectedCallback){let r=I.livecycleCallbacks.connectedCallback?.call(e);if(r instanceof Promise){let a=new kn(this.window).getAsyncTaskManager();if(a){let s=a.startTask();r.then(()=>a.endTask(s)).catch(()=>a.endTask(s))}}}break;case"disconnectedCallback":I.livecycleCallbacks.disconnectedCallback&&I.livecycleCallbacks.disconnectedCallback.call(e);break;case"attributeChangedCallback":I.livecycleCallbacks.attributeChangedCallback&&n?.length&&I.observedAttributes.has(n[0])&&I.livecycleCallbacks.attributeChangedCallback.apply(e,n);break}}};c();var Uz=class extends At{state;hasUAVisualTransition;constructor(e,l=null){super(e),this.state=l?.state??null,this.hasUAVisualTransition=l?.hasUAVisualTransition??!1}};var L5={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)},Exe=setTimeout.toString().includes("new Timeout"),Rxe=class{constructor(){throw new TypeError("Illegal constructor")}},Kge=class{callback;constructor(e){this.callback=e}},ig=class t extends qr{Node=gI;Attr=mD;ShadowRoot=Zz;ProcessingInstruction=Az;Element=aG;CharacterData=XR;DocumentType=T1;HTMLAnchorElement=GD;HTMLButtonElement=ND;HTMLOptGroupElement=PD;HTMLOptionElement=j1;HTMLElement=kt;HTMLUnknownElement=pz;HTMLTemplateElement=dz;HTMLInputElement=th;HTMLSelectElement=nz;HTMLTextAreaElement=aC;HTMLImageElement=Y5;HTMLStyleElement=az;HTMLLabelElement=JD;HTMLSlotElement=cxe;HTMLMetaElement=MD;HTMLMediaElement=z1;HTMLAudioElement=g5;HTMLVideoElement=hz;HTMLBaseElement=hD;HTMLDialogElement=VD;HTMLScriptElement=lz;HTMLLinkElement=OD;HTMLIFrameElement=LD;HTMLFormElement=vD;HTMLUListElement=bz;HTMLTrackElement=Gz;HTMLTableRowElement=cz;HTMLTitleElement=mz;HTMLTimeElement=uz;HTMLTableSectionElement=JR;HTMLTableCellElement=sz;HTMLTableElement=iz;HTMLSpanElement=rz;HTMLSourceElement=Iz;HTMLQuoteElement=tz;HTMLProgressElement=ez;HTMLPreElement=$D;HTMLPictureElement=qD;HTMLParamElement=KD;HTMLParagraphElement=jD;HTMLOutputElement=W5;HTMLOListElement=zD;HTMLObjectElement=N5;HTMLMeterElement=_D;HTMLMenuElement=UD;HTMLMapElement=TD;HTMLLIElement=xD;HTMLLegendElement=BD;HTMLModElement=DD;HTMLHtmlElement=kD;HTMLHRElement=XD;HTMLHeadElement=fD;HTMLHeadingElement=HD;HTMLFieldSetElement=y5;HTMLEmbedElement=wD;HTMLDListElement=yD;HTMLDivElement=QD;HTMLDetailsElement=YD;HTMLDataListElement=RD;HTMLDataElement=ED;HTMLTableColElement=oz;HTMLTableCaptionElement=V5;HTMLCanvasElement=WD;HTMLBRElement=ZD;HTMLBodyElement=AD;HTMLAreaElement=bD;SVGSVGElement=Tz;SVGAnimateElement=Sne;SVGAnimateMotionElement=One;SVGAnimateTransformElement=Tne;SVGCircleElement=Une;SVGClipPathElement=Mne;SVGDefsElement=_ne;SVGDescElement=Dne;SVGEllipseElement=zne;SVGFEBlendElement=Pne;SVGFEColorMatrixElement=jne;SVGFEComponentTransferElement=Kne;SVGFECompositeElement=qne;SVGFEConvolveMatrixElement=$ne;SVGFEDiffuseLightingElement=eIe;SVGFEDisplacementMapElement=tIe;SVGFEDistantLightElement=lIe;SVGFEDropShadowElement=nIe;SVGFEFloodElement=IIe;SVGFEFuncAElement=rIe;SVGFEFuncBElement=aIe;SVGFEFuncGElement=sIe;SVGFEFuncRElement=oIe;SVGFEGaussianBlurElement=iIe;SVGFEImageElement=cIe;SVGFEMergeElement=dIe;SVGFEMergeNodeElement=uIe;SVGFEMorphologyElement=mIe;SVGFEOffsetElement=GIe;SVGFEPointLightElement=bIe;SVGFESpecularLightingElement=pIe;SVGFESpotLightElement=hIe;SVGFETileElement=AIe;SVGFETurbulenceElement=ZIe;SVGFilterElement=gIe;SVGForeignObjectElement=NIe;SVGGElement=WIe;SVGImageElement=yIe;SVGLineElement=EIe;SVGLinearGradientElement=RIe;SVGMarkerElement=YIe;SVGMaskElement=VIe;SVGMetadataElement=QIe;SVGMPathElement=wIe;SVGPathElement=FIe;SVGPatternElement=CIe;SVGPolygonElement=vIe;SVGPolylineElement=fIe;SVGRadialGradientElement=HIe;SVGRectElement=XIe;SVGScriptElement=kIe;SVGSetElement=LIe;SVGStopElement=JIe;SVGStyleElement=BIe;SVGSwitchElement=xIe;SVGSymbolElement=SIe;SVGTextElement=OIe;SVGTextPathElement=TIe;SVGTitleElement=UIe;SVGTSpanElement=MIe;SVGUseElement=_Ie;SVGViewElement=DIe;SVGElement=dn;SVGAnimationElement=$N;SVGComponentTransferFunctionElement=eW;SVGGeometryElement=sG;SVGGradientElement=hC;SVGTextPositioningElement=AC;SVGGraphicsElement=To;Event=At;UIEvent=Qm;CustomEvent=lD;AnimationEvent=eD;KeyboardEvent=ID;MessageEvent=rD;MouseEvent=wd;PointerEvent=c5;FocusEvent=CR;WheelEvent=sD;InputEvent=nD;ErrorEvent=x1;StorageEvent=une;SubmitEvent=d5;ProgressEvent=RA;MediaQueryListEvent=$X;HashChangeEvent=i5;ClipboardEvent=tD;TouchEvent=aD;PopStateEvent=Uz;Touch=$_;AudioProcessingEvent=At;BeforeInputEvent=At;BeforeUnloadEvent=At;BlobEvent=At;CloseEvent=At;CompositionEvent=At;CSSFontFaceLoadEvent=At;DeviceLightEvent=At;DeviceMotionEvent=At;DeviceOrientationEvent=At;DeviceProximityEvent=At;DOMTransactionEvent=At;DragEvent=At;EditingBeforeInputEvent=At;FetchEvent=At;GamepadEvent=At;IDBVersionChangeEvent=At;MediaStreamEvent=At;MutationEvent=At;OfflineAudioCompletionEvent=At;OverconstrainedError=At;PageTransitionEvent=At;PaymentRequestUpdateEvent=At;RelatedEvent=At;RTCDataChannelEvent=At;RTCIdentityErrorEvent=At;RTCIdentityEvent=At;RTCPeerConnectionIceEvent=At;SensorEvent=At;SVGEvent=At;SVGZoomEvent=At;TimeEvent=At;TrackEvent=At;TransitionEvent=At;UserProximityEvent=At;WebGLContextEvent=At;TextEvent=At;Permissions=b5;History=WB;Navigator=uD;Clipboard=KX;TimeRanges=IC;TextTrackCueList=cC;ValidityState=lp;MutationRecord=QA;IntersectionObserver=cD;IntersectionObserverEntry=dD;CSSStyleDeclaration=$b;CSSRule=ag;CSSContainerRule=e5;CSSFontFaceRule=t5;CSSKeyframeRule=J1;CSSKeyframesRule=l5;CSSMediaRule=I5;CSSStyleRule=B1;CSSSupportsRule=s5;CSSConditionRule=Uy;CSSGroupingRule=Ty;CSSScopeRule=L1;DOMRect=zy;DOMRectReadOnly=p5;Plugin=bne;PluginArray=RB;Location=yB;CustomElementRegistry=AB;ResizeObserver=gz;Blob=_s;File=EA;Storage=w5;MimeType=Gne;MimeTypeArray=EB;NodeFilter=Ls;HTMLCollection=Oo;HTMLFormControlCollection=E5;HTMLOptionsCollection=JB;NodeList=_N;RadioNodeList=HB;FileList=rC;Screen=BB;DOMMatrixReadOnly=OB;DOMMatrix=lh;NamedNodeMap=_1;TreeWalker=U1;NodeIterator=h5;DataTransfer=q_;DataTransferItem=FR;DataTransferItemList=o5;Headers=So;XMLSerializer=Nz;ClipboardItem=P_;Selection=A5;CSSUnitValue=Es;SVGAngle=$1;SVGAnimatedAngle=UB;SVGAnimatedBoolean=TB;SVGAnimatedEnumeration=Ir;SVGAnimatedInteger=$y;SVGAnimatedLength=Gt;SVGAnimatedNumber=Mn;SVGAnimatedNumberList=vA;SVGAnimatedPreserveAspectRatio=qN;SVGAnimatedRect=bC;SVGAnimatedString=Yn;SVGAnimatedTransformList=xR;SVGLength=Ky;SVGLengthList=k5;SVGMatrix=q1;SVGNumber=qy;SVGNumberList=X5;SVGPoint=Su;SVGPointList=SR;SVGPreserveAspectRatio=H5;SVGRect=jy;SVGStringList=BR;SVGTransform=og;SVGTransformList=f5;SVGAnimatedLengthList=eV;SVGUnitTypes=zIe;DOMPoint=SB;StylePropertyMap=a5;StylePropertyMapReadOnly=r5;MediaList=n5;CSSKeywordValue=jF;CSSStyleValue=KF;Window=this.constructor;URLSearchParams=YOl;WritableStream=z0t.Writable;ReadableStream=ROl;TransformStream=z0t.Transform;PerformanceObserver=VOl;PerformanceEntry=QOl;PerformanceObserverEntryList=Rxe;onload=null;onerror=null;document;customElements=new AB(this);window=this;globalThis=this;performance=performance;screenLeft=0;screenTop=0;screenX=0;screenY=0;crypto=WOl;TextEncoder=yOl;TextDecoder=EOl;closed=!1;console;name="";Buffer=NOl;[kX]=[];[jZ];[KZ];[Ec];[Wge];[yge];[Ege];[Rge];[TX]=this;[ER]=this;[qZ]=this;[f]=this;[FBe]=this;[FX]=-1;[DX]=new PIe(this);[X1]={json:new Map,css:new Map,esm:new Map};[MF]=null;#e;#t=null;#l=null;#n=null;#I=null;#r=null;#i={timeouts:null};#a=[];#s=[];constructor(e,l){super(),this.#e=e,this.console=e.page.console,this[jZ]=new pne(e),this[Wge]=new uD(this),this[yge]=new BB,this[Ege]=new w5,this[Rge]=new w5,this[KZ]=new yB(this.#e,l?.url??"about:blank"),this[Ec]=new WB(this.#e,this),e[Ec].currentItem.href=l?.url??"about:blank",kn.setWindowBrowserFrameRelation(this,this.#e),this[Ete](),Jne.extendClasses(this),this.document=new this.HTMLDocument,this.document[Pp]=this;let n=e[hI].startTask(()=>this[jZ].destroy());this[jZ].waitUntilComplete().then(()=>{e[hI].endTask(n),this.document[JX]=Uge.complete,this.document.dispatchEvent(new At("readystatechange"));let I=new At("load");I[ON]=this,I[ab]=this.document,I[ib]=ys.atTarget,this.dispatchEvent(I),I[ON]=null,I[ib]=ys.none,I[zX]=!1}),this[QBe]()}get self(){return this[TX]}set self(e){this[TX]=e}get top(){return this[ER]}get parent(){return this[qZ]}set parent(e){this[qZ]=e}get frames(){return this[FBe]}set frames(e){this[qZ]=e}get location(){return this[KZ]}set location(e){this[KZ].href=e}get history(){return this[Ec]}get navigator(){return this[Wge]}get screen(){return this[yge]}get sessionStorage(){return this[Ege]}get localStorage(){return this[Rge]}get opener(){return this.#e[xy]}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 sne}get innerWidth(){return this.#t===null?this.#e.page.viewport.width:this.#t}set innerWidth(e){this.#t=e}get innerHeight(){return this.#l===null?this.#e.page.viewport.height:this.#l}set innerHeight(e){this.#l=e}get outerWidth(){return this.#n===null?this.#e.page.viewport.width:this.#n}set outerWidth(e){this.#n=e}get outerHeight(){return this.#I===null?this.#e.page.viewport.height:this.#I}set outerHeight(e){this.#I=e}get devicePixelRatio(){return this.#r===null?this.#e.page.viewport.devicePixelRatio:this.#r}set devicePixelRatio(e){this.#r=e}getComputedStyle(e){return e[S_]=e[S_]||new $b(M,this,{element:e,computed:!0}),e[S_]}getSelection(){return this.document.getSelection()}scroll(e,l){if(typeof e!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scroll' on 'Window': The provided value is not of type 'ScrollToOptions'.");let n=typeof e=="object"?e:{left:e,top:l};if(n.behavior==="smooth")this.setTimeout(()=>{if(n.top!==void 0){let I=Number(n.top);this.document.documentElement.scrollTop=isNaN(I)?0:I}if(n.left!==void 0){let I=Number(n.left);this.document.documentElement.scrollLeft=isNaN(I)?0:I}});else{if(n.top!==void 0){let I=Number(n.top);this.document.documentElement.scrollTop=isNaN(I)?0:I}if(n.left!==void 0){let I=Number(n.left);this.document.documentElement.scrollLeft=isNaN(I)?0:I}}}scrollTo(e,l){if(typeof e!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scrollTo' on 'Window': The provided value is not of type 'ScrollToOptions'.");this.scroll(e,l)}scrollBy(e,l){if(typeof e!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scrollBy' on 'Window': The provided value is not of type 'ScrollToOptions'.");let n=typeof e=="object"?e:{left:e,top:l};this.scroll({left:this.document.documentElement.scrollLeft+(n.left??0),top:this.document.documentElement.scrollTop+(n.top??0),behavior:n.behavior})}blur(){}focus(){}open(e,l,n){return wne.openPage(this.#e,{url:e,target:l,features:n})}close(){this.#e.page.mainFrame===this.#e&&this.#e[xy]&&(this[ld](),this.#e.page.close())}matchMedia(e){return new hB({window:this,media:e})}setTimeout(e,l=0,...n){if(this.closed)return{};let I=this.#e.page.context.browser.settings;if(I.timer.preventTimerLoops){let s=new Error().stack,o=this.#a,d=this.#s,u=o.indexOf(s);if(u!==-1){if(d[u].timeout++,d[u].timeout>=(I.timer.preventTimerLoops===!0?1:I.timer.preventTimerLoops.timeout??1))return{}}else o.push(s),d.push({timeout:0,requestAnimationFrame:0})}if(!l){let s=this.#i;if(!s.timeouts){let d=!I||!I.disableErrorCapturing&&I.errorCapture===ks.tryAndCatch,u=L5.setTimeout(()=>{this.#e[hI].endTimer(u);let G=s.timeouts;s.timeouts=null;for(let p of G)if(d){let h;try{h=p.callback()}catch(W){this[Ms](W)}h instanceof Promise&&h.catch(W=>this[Ms](W))}else p.callback()},0);s.timeouts=[],this.#e[hI].startTimer(u)}let o=new Kge(()=>e(...n));return s.timeouts.push(o),o}let r=!I||!I.disableErrorCapturing&&I.errorCapture===ks.tryAndCatch,a=L5.setTimeout(()=>{if(this.#e[hI].endTimer(a),r){let s;try{s=e(...n)}catch(o){this[Ms](o)}s instanceof Promise&&s.catch(o=>this[Ms](o))}else e(...n)},I?.timer.maxTimeout!==-1&&l&&l>I?.timer.maxTimeout?I?.timer.maxTimeout:l);return this.#e[hI].startTimer(a),a}clearTimeout(e){if(e&&e instanceof Kge){let l=this.#i;if(!l.timeouts)return;let n=l.timeouts.indexOf(e);n!==-1&&l.timeouts.splice(n,1);return}Exe&&(!e||e.constructor.name!=="Timeout")||(L5.clearTimeout(e),this.#e[hI].endTimer(e))}setInterval(e,l=0,...n){if(this.closed)return{};let I=this.#e.page.context.browser.settings,r=!I||!I.disableErrorCapturing&&I.errorCapture===ks.tryAndCatch,a=0,s=L5.setInterval(()=>{if(r){let o;try{o=e(...n)}catch(d){this.clearInterval(s),this[Ms](d)}o instanceof Promise&&o.catch(d=>{this.clearInterval(s),this[Ms](d)})}else e(...n);I?.timer.maxIntervalIterations!==-1&&(a>=I?.timer.maxIntervalIterations&&this.clearInterval(s),a++)},I?.timer.maxIntervalTime!==-1&&l&&l>I?.timer.maxIntervalTime?I?.timer.maxIntervalTime:l);return this.#e[hI].startTimer(s),s}clearInterval(e){Exe&&(!e||e.constructor.name!=="Timeout")||(L5.clearInterval(e),this.#e[hI].endTimer(e))}requestAnimationFrame(e){if(this.closed)return{};let l=this.#e.page.context.browser.settings;if(l.timer.preventTimerLoops){let r=new Error().stack,a=this.#a,s=this.#s,o=a.indexOf(r);if(o!==-1){if(s[o].requestAnimationFrame++,s[o].requestAnimationFrame>=(l.timer.preventTimerLoops===!0?1:l.timer.preventTimerLoops.requestAnimationFrame??1))return{}}else a.push(r),s.push({timeout:0,requestAnimationFrame:0})}let n=!l||!l.disableErrorCapturing&&l.errorCapture===ks.tryAndCatch,I=L5.setImmediate(()=>{if(this.#e[hI].endImmediate(I),n){let r;try{r=e(this.performance.now())}catch(a){this[Ms](a)}r instanceof Promise&&r.catch(a=>this[Ms](a))}else e(this.performance.now())});return this.#e[hI].startImmediate(I),I}cancelAnimationFrame(e){Exe&&(!e||e.constructor.name!=="Immediate")||(L5.clearImmediate(e),this.#e[hI].endImmediate(e))}queueMicrotask(e){if(this.closed)return;let l=!1,n=this.#e[hI].startTask(()=>l=!0),I=this.#e.page.context.browser.settings,r=!I||!I.disableErrorCapturing&&I.errorCapture===ks.tryAndCatch;L5.queueMicrotask(()=>{if(!l)if(this.#e[hI].endTask(n),r){let a;try{a=e()}catch(s){this[Ms](s)}a instanceof Promise&&a.catch(s=>this[Ms](s))}else e()})}async fetch(e,l){return this.closed?Promise.reject(new this.DOMException("Failed to execute 'fetch' on 'Window': The window is closed.",qe.invalidStateError)):await new VA({browserFrame:this.#e,window:this,url:e,init:l}).send()}btoa(e){return z_.btoa(e)}atob(e){return z_.atob(e)}postMessage(e,l="*",n){if(!this.closed){if(l&&l!=="*"&&this.location.origin!==l)throw new this.DOMException(`Failed to execute 'postMessage' on 'Window': The target origin provided ('${l}') does not match the recipient window's origin ('${this.location.origin}').`,qe.securityError);try{JSON.stringify(e)}catch{throw new this.DOMException("Failed to execute 'postMessage' on 'Window': The provided message cannot be serialized.",qe.invalidStateError)}this.setTimeout(()=>this.dispatchEvent(new rD("message",{data:e,origin:this.#e.parentFrame?this.#e.parentFrame.window.location.origin:this.#e.window.location.origin,source:this.#e.parentFrame?this.#e.parentFrame.window:this.#e.window,lastEventId:""})))}}resizeTo(e,l){if(!this.closed){if(!e||!l)throw new this.DOMException(`Failed to execute 'resizeTo' on 'Window': 2 arguments required, but only ${arguments.length} present.`);this.#e[fF]&&this.#e.page.setViewport({width:e,height:l})}}resizeBy(e,l){if(!this.closed){if(!e||!l)throw new this.DOMException(`Failed to execute 'resizeBy' on 'Window': 2 arguments required, but only ${arguments.length} present.`);if(this.#e[fF]){let n=this.#e.page.viewport;this.#e.page.setViewport({width:n.width+e,height:n.height+l})}}}[Ms](e){this.#e.page.console.error(e),this.dispatchEvent(new x1("error",{message:e.message,error:e}))}[Ete](){P0t.isContext(this)||(P0t.createContext(this),F0t.runInContext(this))}[ld](){if(this.closed)return;this.closed=!0;let e=this[kX];for(let a of e)a[ld]&&a[ld]();this[kX]=[];let l=this.document[Il];for(;l.length>0;)l[0].disconnectedCallback&&delete l[0].disconnectedCallback,this.document[Lu](l[0]);let n=this.document.createElement("html"),I=this.document.createElement("head"),r=this.document.createElement("body");n.appendChild(I),n.appendChild(r),this.document[_I](n),this.location[ld]&&this.location[ld](),this.customElements[ld]&&this.customElements[ld](),this.history[ld]&&this.history[ld](),this[X1].json.clear(),this[X1].css.clear(),this[X1].esm.clear(),this.document[qp].clear(),this.document[yc]=null,this.document[fX]=null,this.document[ZR]=null,this.document[q3]=null,kn.removeWindowBrowserFrameRelation(this)}[QBe](){for(let e of[t,qr]){let l=Object.getOwnPropertyDescriptors(e.prototype),n=Object.keys(l);for(let I of n){let r=l[I];r.get||r.set?Object.defineProperty(this,I,{...r,get:r.get?.bind(this),set:r.set?.bind(this)}):I!=="constructor"&&typeof r.value=="function"&&!r.value.toString().startsWith("class ")&&Object.defineProperty(this,I,{...r,value:r.value.bind(this)})}}}};var Mz=class{childFrames=[];parentFrame=null;page;window;closed=!1;[hI]=new QR(this);[vi]={navigation:[]};[jp]=null;[xy]=null;[fF]=!1;[Ec]=new fB;constructor(e){this.page=e,this.window=new ig(this),e.context.browser[tG]&&e.context.browser[tG].observe(this.window)}get content(){return this.window.document.documentElement.outerHTML}set content(e){this.window.document[s1]=!0,this.window.document[o1]=!1,this.window.document.open(),this.window.document.write(e)}get url(){return this.window.location.href}set url(e){this.window[KZ][Pb](this,eh.getRelativeURL(this,e).href)}get document(){return this.window?.document??null}async waitUntilComplete(){await Promise.all([this[hI].waitUntilComplete(),...this.childFrames.map(e=>e.waitUntilComplete())])}waitForNavigation(){return new Promise(e=>this[vi].navigation.push(e))}abort(){return this.childFrames.length?new Promise((e,l)=>{Promise.all(this.childFrames.map(n=>n.abort()).concat([this[hI].abort()])).then(()=>e()).catch(l)}):this[hI].abort()}evaluate(e){return vB.evaluate(this,e)}goto(e,l){return db.navigate({windowClass:ig,frame:this,url:e,goToOptions:l})}goBack(e){return db.navigateBack({windowClass:ig,frame:this,goToOptions:e})}goForward(e){return db.navigateForward({windowClass:ig,frame:this,goToOptions:e})}goSteps(e,l){return db.navigateSteps({windowClass:ig,frame:this,steps:e,goToOptions:l})}reload(e){return db.reload({windowClass:ig,frame:this,goToOptions:e})}};c();var J5=class{#e;#t={};#l={};#n=0;#I=[];constructor(e){this.#e=e}assert(e,l,...n){e||this.#e.print({type:Yc.assert,level:Vm.error,message:["Assertion failed:",...l?[l,...n]:n],group:this.#I[this.#I.length-1]||null})}clear(){this.#e.clear()}count(e="default"){this.#t[e]||(this.#t[e]=0),this.#t[e]++,this.#e.print({type:Yc.count,level:Vm.info,message:[`${e}: ${this.#t[e]}`],group:this.#I[this.#I.length-1]||null})}countReset(e="default"){delete this.#t[e],this.#e.print({type:Yc.countReset,level:Vm.warn,message:[`${e}: 0`],group:this.#I[this.#I.length-1]||null})}debug(e,...l){this.#e.print({type:Yc.debug,level:Vm.log,message:e?[e,...l]:l,group:this.#I[this.#I.length-1]||null})}dir(e){this.#e.print({type:Yc.dir,level:Vm.log,message:[e],group:this.#I[this.#I.length-1]||null})}dirxml(e){this.#e.print({type:Yc.dirxml,level:Vm.log,message:[e],group:this.#I[this.#I.length-1]||null})}error(e,...l){this.#e.print({type:Yc.error,level:Vm.error,message:e?[e,...l]:l,group:this.#I[this.#I.length-1]||null})}exception(...e){this.error(...e)}group(e){this.#n++;let l={id:this.#n,label:e||"default",collapsed:!1,parent:this.#I[this.#I.length-1]||null};this.#I.push(l),this.#e.print({type:Yc.group,level:Vm.log,message:[e||"default"],group:l})}groupCollapsed(e){this.#n++;let l={id:this.#n,label:e||"default",collapsed:!0,parent:this.#I[this.#I.length-1]||null};this.#I.push(l),this.#e.print({type:Yc.groupCollapsed,level:Vm.log,message:[e||"default"],group:l})}groupEnd(){this.#I.length!==0&&this.#I.pop()}info(e,...l){this.#e.print({type:Yc.info,level:Vm.info,message:e?[e,...l]:l,group:this.#I[this.#I.length-1]||null})}log(e,...l){this.#e.print({type:Yc.log,level:Vm.log,message:e?[e,...l]:l,group:this.#I[this.#I.length-1]||null})}profile(){throw new Error("Method not implemented.")}profileEnd(){throw new Error("Method not implemented.")}table(e){this.#e.print({type:Yc.table,level:Vm.log,message:[e],group:this.#I[this.#I.length-1]||null})}time(e="default"){this.#l[e]=performance.now()}timeEnd(e="default"){let l=this.#l[e];if(l){let n=performance.now()-l;this.#e.print({type:Yc.timeEnd,level:Vm.info,message:[`${e}: ${n}ms - timer ended`],group:this.#I[this.#I.length-1]||null})}}timeLog(e="default",...l){let n=this.#l[e];if(n){let I=performance.now()-n;this.#e.print({type:Yc.timeLog,level:Vm.info,message:[`${e}: ${I}ms`,...l],group:this.#I[this.#I.length-1]||null})}}timeStamp(){throw new Error("Method not implemented.")}trace(e,...l){this.#e.print({type:Yc.trace,level:Vm.log,message:[...e?[e,...l]:l,new Error("stack").stack.replace("Error: stack","")],group:this.#I[this.#I.length-1]||null})}warn(e,...l){this.#e.print({type:Yc.warn,level:Vm.warn,message:e?[e,...l]:l,group:this.#I[this.#I.length-1]||null})}};c();var ZC=class{static getFrames(e){return this.findFrames(e.mainFrame)}static closePage(e){if(e.closed)return Promise.resolve();e.closed=!0;let l=e.context.pages.indexOf(e);return l!==-1&&e.context.pages.splice(l,1),e.virtualConsolePrinter.close(),LR.destroyFrame(e.mainFrame)}static findFrames(e){let l=[e];for(let n of e.childFrames)l=l.concat(this.findFrames(n));return l}};var _z=class{virtualConsolePrinter=new jX;mainFrame;context;console;viewport;closed=!1;constructor(e){this.context=e,this.console=e.browser.console??new J5(this.virtualConsolePrinter),this.mainFrame=new Mz(this),this.viewport={width:e.browser.settings.viewport.width,height:e.browser.settings.viewport.height,devicePixelRatio:e.browser.settings.viewport.devicePixelRatio}}get frames(){return ZC.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 ZC.closePage(this)}waitUntilComplete(){return this.mainFrame.waitUntilComplete()}waitForNavigation(){return this.mainFrame.waitForNavigation()}abort(){return this.mainFrame.abort()}evaluate(e){return this.mainFrame.evaluate(e)}setViewport(e){let l=Object.assign({},this.viewport);Object.assign(this.viewport,e),(l.width!==this.viewport.width||l.height!==this.viewport.height||l.devicePixelRatio!==this.viewport.devicePixelRatio)&&this.mainFrame.window.dispatchEvent(new At("resize"))}goto(e,l){return this.mainFrame.goto(e,l)}goBack(e){return this.mainFrame.goBack(e)}goForward(e){return this.mainFrame.goForward(e)}goSteps(e,l){return this.mainFrame.goSteps(e,l)}reload(e){return this.mainFrame.reload(e)}};c();var _B=class{#e=new Map;get(e){let l=this.#e.get(e.url);return l?l.expires<Date.now()?(this.#e.delete(e.url),null):l:null}add(e,l){if(this.#e.delete(e.url),e.headers.get("Cache-Control")?.includes("no-cache")||l.status<200||l.status>=300)return null;let n=l.headers.get("Access-Control-Max-Age"),I=l.headers.get("Access-Control-Allow-Origin");if(!n||!I)return null;let r=[];if(l.headers.has("Access-Control-Allow-Methods")&&l.headers.get("Access-Control-Allow-Methods")!=="*")for(let o of l.headers.get("Access-Control-Allow-Methods").split(","))r.push(o.trim().toUpperCase());let a={allowOrigin:I,allowMethods:r,expires:Date.now()+parseInt(n)*1e3};return isNaN(a.expires)||a.expires<Date.now()?null:(this.#e.set(e.url,a),a)}clear(){this.#e.clear()}};var DB=class{pages=[];browser;cookieContainer=new uB;responseCache=new mB;preflightResponseCache=new _B;closed=!1;constructor(e){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(n=>n.close()));let e=this.browser,l=e.contexts.indexOf(this);l!==-1&&e.contexts.splice(l,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,l)=>{if(!this.pages.length){e();return}Promise.all(this.pages.slice().map(n=>n.abort())).then(()=>e()).catch(n=>l(n))})}newPage(){let e=new _z(this);return this.pages.push(e),e}};c();c();c();var j0t={version:"19.0.2"};var tV={disableJavaScriptEvaluation:!1,disableJavaScriptFileLoading:!1,disableCSSFileLoading:!1,disableIframePageLoading:!1,disableComputedStyleRendering:!1,handleDisabledFileLoadingAsSuccess:!1,disableErrorCapturing:!1,errorCapture:ks.tryAndCatch,enableFileSystemHttpRequests:!1,timer:{maxTimeout:-1,maxIntervalTime:-1,maxIntervalIterations:-1,preventTimerLoops:!1},fetch:{disableSameOriginPolicy:!1,disableStrictSSL:!1,interceptor:null,requestHeaders:null,virtualServers:null},navigation:{disableMainFrameNavigation:!1,disableChildFrameNavigation:!1,disableChildPageNavigation:!1,disableFallbackToSetURL:!1,crossOriginPolicy:FD.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/${j0t.version}`,maxTouchPoints:0},device:{prefersColorScheme:"light",prefersReducedMotion:"no-preference",mediaType:"screen",forcedColors:"none"},debug:{traceWaitUntilComplete:-1},viewport:{width:1024,height:768,devicePixelRatio:1}};var zB=class{static createSettings(e){return e&&this.validate(tV,e),{...tV,...e,navigation:{...tV.navigation,...e?.navigation},navigator:{...tV.navigator,...e?.navigator},timer:{...tV.timer,...e?.timer},fetch:{...tV.fetch,...e?.fetch},device:{...tV.device,...e?.device},debug:{...tV.debug,...e?.debug},viewport:{...tV.viewport,...e?.viewport}}}static validate(e,l,n){for(let I of Object.keys(l)){if(e[I]===void 0){let r=n?n+"."+I:I;throw new Error(`Unknown browser setting "${r}"`)}if(typeof e[I]=="object"&&!Array.isArray(e[I])&&e[I]!==null){let r=n?n+"."+I:I;if(typeof l[I]!="object"||Array.isArray(l[I])||l[I]===null)throw new Error(`Browser setting "${r}" cannot be null`);this.validate(e[I],l[I],r)}else if((typeof e[I]=="boolean"||typeof e[I]=="number"||typeof e[I]=="string")&&typeof l[I]!=typeof e[I]&&!(I==="preventTimerLoops"&&typeof l[I]=="object"&&l[I]!==null)){let a=n?n+"."+I:I;throw new Error(`Browser setting "${a}" must be of type "${typeof e[I]}"`)}}}};c();var PB=class{static listenerCount=0;observedWindows=[];uncaughtExceptionListener=null;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=(l,n)=>{if(n==="unhandledRejection")return;let I=null;for(let r of this.observedWindows)if(l instanceof r.Error||l instanceof r.DOMException){I=r;break}I?(I.console.error(l),I.dispatchEvent(new I.ErrorEvent("error",{error:l,message:l.message}))):process.listenerCount("uncaughtException")===this.constructor.listenerCount&&(console.error(l),process.exit(1))},this.uncaughtRejectionListener=l=>{let n=null;for(let I of this.observedWindows)if(l instanceof I.Error||l instanceof I.DOMException){n=I;break}n?(n.console.error(l),n.dispatchEvent(new n.ErrorEvent("error",{error:l,message:l.message}))):process.listenerCount("unhandledRejection")===this.constructor.listenerCount&&(console.error(l),process.exit(1))},this.constructor.listenerCount++,process.on("uncaughtException",this.uncaughtExceptionListener),process.on("unhandledRejection",this.uncaughtRejectionListener))}disconnect(e){let l=this.observedWindows.indexOf(e);l!==-1&&(this.observedWindows.splice(l,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))}};var qge=class{contexts;settings;console;[tG]=null;constructor(e){this.console=e?.console||null,this.settings=zB.createSettings(e?.settings),this.settings.errorCapture===ks.processLevel&&(this[tG]=new PB),this.contexts=[new DB(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(l=>l.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,l)=>{if(!this.contexts.length){e();return}Promise.all(this.contexts.slice().map(n=>n.abort())).then(()=>e()).catch(n=>l(n))})}newIncognitoContext(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");let e=new DB(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()}};c();c();c();var jB=class{virtualConsolePrinter=new jX;mainFrame;context;console;viewport;closed=!1;constructor(e){this.context=e,this.console=e.browser.console??new J5(this.virtualConsolePrinter),this.mainFrame=new R5(this),this.viewport={width:e.browser.settings.viewport.width,height:e.browser.settings.viewport.height,devicePixelRatio:e.browser.settings.viewport.devicePixelRatio}}get frames(){return ZC.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,l)=>{let n=this.context;ZC.closePage(this).then(()=>{n.pages[0]===this?n.browser.close().then(e).catch(l):e()}).catch(l)})}waitUntilComplete(){return this.mainFrame.waitUntilComplete()}waitForNavigation(){return this.mainFrame.waitForNavigation()}abort(){return this.mainFrame.abort()}evaluate(e){return this.mainFrame.evaluate(e)}setViewport(e){let l=Object.assign({},this.viewport);Object.assign(this.viewport,e),(l.width!==this.viewport.width||l.height!==this.viewport.height||l.devicePixelRatio!==this.viewport.devicePixelRatio)&&this.mainFrame.window.dispatchEvent(new At("resize"))}goto(e,l){return this.mainFrame.goto(e,l)}goBack(e){return this.mainFrame.goBack(e)}goForward(e){return this.mainFrame.goForward(e)}goSteps(e,l){return this.mainFrame.goSteps(e,l)}reload(e){return this.mainFrame.reload(e)}};var Dz=class{pages;browser;cookieContainer=new uB;responseCache=new mB;preflightResponseCache=new _B;closed=!1;constructor(e){this.browser=e,this.pages=[],this.pages.push(new jB(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(n=>n.close()));let e=this.browser,l=e.contexts.indexOf(this);l!==-1&&e.contexts.splice(l,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,l)=>{if(!this.pages.length){e();return}Promise.all(this.pages.slice().map(n=>n.abort())).then(()=>e()).catch(n=>l(n))})}newPage(){let e=new jB(this);return this.pages.push(e),e}};var zz=class{contexts;settings;console;windowClass;[tG]=null;constructor(e,l){this.windowClass=e,this.console=l?.console||null,this.settings=zB.createSettings(l?.settings),this.settings.errorCapture===ks.processLevel&&(this[tG]=new PB),this.contexts=[],this.contexts.push(new Dz(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(l=>l.close()))}async waitUntilComplete(){await Promise.all(this.contexts.map(e=>e.waitUntilComplete()))}abort(){return new Promise((e,l)=>{if(!this.contexts.length){e();return}Promise.all(this.contexts.slice().map(n=>n.abort())).then(()=>e()).catch(n=>l(n))})}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()}};c();var Pz=class{#e;constructor(e){this.#e=e}get settings(){return this.#e.page.context.browser.settings}get virtualConsolePrinter(){return this.#e.page.virtualConsolePrinter}waitUntilComplete(){return this.#e.waitUntilComplete()}whenAsyncComplete(){return this.waitUntilComplete()}abort(){return this.#e.abort()}cancelAsync(){return this.abort()}close(){return this.#e.page.close()}setURL(e){this.#e.url=e}setViewport(e){this.#e.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})}};c();c();var B5=class extends ig{happyDOM;constructor(e){let n=new zz(ig,{console:e?.console,settings:e?.settings}).defaultContext.pages[0],I=n.mainFrame;e&&(e.width||e.height||e.innerWidth||e.innerHeight)&&Object.assign(n.viewport,{width:e.width||e.innerWidth||n.viewport.width,height:e.height||e.innerHeight||n.viewport.height}),super(I,{url:e?.url}),I.window=this,I.page.context.browser[tG]&&I.page.context.browser[tG].observe(this),this.happyDOM=new Pz(I)}};import{Buffer as wOl}from"buffer";var $ge=class extends B5{Array=globalThis.Array;ArrayBuffer=globalThis.ArrayBuffer;Boolean=globalThis.Boolean;Buffer=wOl;DataView=globalThis.DataView;Date=globalThis.Date;Error=globalThis.Error;EvalError=globalThis.EvalError;Float32Array=globalThis.Float32Array;Float64Array=globalThis.Float64Array;Function=globalThis.Function;Infinity=globalThis.Infinity;Int16Array=globalThis.Int16Array;Int32Array=globalThis.Int32Array;Int8Array=globalThis.Int8Array;Intl=globalThis.Intl;JSON=globalThis.JSON;Map=globalThis.Map;Math=globalThis.Math;NaN=globalThis.NaN;Number=globalThis.Number;Object=globalThis.Object;Promise=globalThis.Promise;RangeError=globalThis.RangeError;ReferenceError=globalThis.ReferenceError;RegExp=globalThis.RegExp;Set=globalThis.Set;String=globalThis.String;Symbol=globalThis.Symbol;SyntaxError=globalThis.SyntaxError;TypeError=globalThis.TypeError;URIError=globalThis.URIError;Uint16Array=globalThis.Uint16Array;Uint32Array=globalThis.Uint32Array;Uint8Array=globalThis.Uint8Array;Uint8ClampedArray=globalThis.Uint8ClampedArray;WeakMap=globalThis.WeakMap;WeakSet=globalThis.WeakSet;decodeURI=globalThis.decodeURI;decodeURIComponent=globalThis.decodeURIComponent;encodeURI=globalThis.encodeURI;encodeURIComponent=globalThis.encodeURIComponent;eval=globalThis.eval;escape=globalThis.escape;global=globalThis;isFinite=globalThis.isFinite;isNaN=globalThis.isNaN;parseFloat=globalThis.parseFloat;parseInt=globalThis.parseInt;undefined=globalThis.undefined;unescape=globalThis.unescape;[Ete](){}};var K0t=5e3,FOl,COl=["b","blockquote","br","code","em","h1","h2","h3","h4","h5","h6","hr","i","li","ol","p","pre","strong","sub","sup","table","tbody","td","th","thead","tr","ul","img","a","#text"],vOl=["href","src"],q0t={img:["src"],a:["href"]};var fOl=new B5,HOl={ALLOWED_TAGS:COl,ALLOW_DATA_ATTR:!1,ALLOWED_ATTR:vOl,KEEP_CONTENT:!1,RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,WHOLE_DOCUMENT:!1,SANITIZE_DOM:!0,SAFE_FOR_TEMPLATES:!1,SAFE_FOR_XML:!0,RETURN_TRUSTED_TYPE:!1,USE_PROFILES:!1};function XOl(t,e,l){let n=t.tagName.toLowerCase();if(!(n in q0t)){e.forceKeepAttr=!1,e.keepAttr=!1;return}let I=q0t[n],r=e.attrName.toLowerCase();if(!I.includes(r)){e.forceKeepAttr=!1,e.keepAttr=!1;return}if(n==="img"&&r==="src"||n==="a"&&r==="href"){try{let a=URL.parse(e.attrValue);if(a&&(a.protocol==="http:"||a.protocol==="https:"))return}catch{}e.forceKeepAttr=!1,e.keepAttr=!1}}function Yxe(t,e){if(!t)return t;try{return $0t(t,e)}catch(l){throw new Error(`Failed to apply content filter: ${l}`)}}function Vxe(t){switch(t.toLowerCase()){case"none":return"none";case"markdown":return"markdown";case"hidden_characters":return"hidden_characters";default:return"hidden_characters"}}function Qxe(t,e){if(t===null||typeof t!="object")return t;for(let[l,n]of Object.entries(t))if(typeof n=="string"){let I=Yxe(n,e);t[l]=I}else typeof n=="object"&&n!==null&&(t[l]=Qxe(n,e));return t}function $0t(t,e,l=[]){if(!t||e==="none")return t;switch(e||(e="markdown"),e){case"markdown":return gC(t,l);case"hidden_characters":return eRt(t);default:throw new Error(`Unknown filter mode: ${e}`)}}function gC(t,e=[]){if(!t)return t;let l=eRt(t),n=/((?:^|\n)```.*?\n[\s\S\n]+?\n```)|(`[\s\S\n]+?`)/gm,I="",r=0,a=new Map,s=0;for(let o of l.matchAll(n)){let d=o[0],u=o.index,G=u+d.length;I+=l.slice(r,u);let p=`*****__CODE_BLOCK_${s}__*****`;I+=p,a.set(p,d),r=G,s++}I+=l.slice(r),I=I.replace(/!\[(.*?)\]\((\S+?)(?:\s+"[^"]*")?\)/g,'<img src="$2">').replace(/\[(.*?)\]\((\S+?)(?:\s+"[^"]*")?\)/g,'<a href="$2">$1</a>').replace(/<([^!/A-Za-z0-9>])/g,"&lt;$1").replace(/<(https:\/\/.+)>/g,'<a href="$1">$1</a>'),I=kOl(I,e);for(let[o,d]of a)I=I.replaceAll(o,d);return I}function kOl(t,e=[]){let l=r0t(fOl);l.addHook("uponSanitizeAttribute",XOl),l.setConfig({...HOl,ADD_TAGS:e});let n=!1,I="<__filter_complete__></__filter_complete__>",r=setTimeout(()=>{n=!0},K0t),a=l.sanitize(t+I);for(;!n&&a.endsWith(I);)a=l.sanitize(a);return n&&(FOl?.error(`Content filtering timed out after ${K0t}ms. Returning partially filtered content.`),a=a.slice(0,a.length-I.length)),clearTimeout(r),a}function eRt(t){let e=t.normalize("NFD"),l="";do l=e,e=e.replaceAll(/[\u{E0001}\u{E0020}-\u{E007F}\u{2066}-\u{2069}\u{202A}-\u{202E}\u{200B}\u{200C}\u{200E}\u{200F}\u{00AD}\u{FEFF}\u{180E}\u{2060}-\u{2064}]/gu,"");while(e!==l);return e.normalize("NFC")}c();import*as nE from"fs";import{existsSync as S5}from"fs";c();c();c();c();var wxe=(t,e,l)=>{let n=t instanceof RegExp?tRt(t,l):t,I=e instanceof RegExp?tRt(e,l):e,r=n!==null&&I!=null&&LOl(n,I,l);return r&&{start:r[0],end:r[1],pre:l.slice(0,r[0]),body:l.slice(r[0]+n.length,r[1]),post:l.slice(r[1]+I.length)}},tRt=(t,e)=>{let l=e.match(t);return l?l[0]:null},LOl=(t,e,l)=>{let n,I,r,a,s,o=l.indexOf(t),d=l.indexOf(e,o+1),u=o;if(o>=0&&d>0){if(t===e)return[o,d];for(n=[],r=l.length;u>=0&&!s;){if(u===o)n.push(u),o=l.indexOf(t,u+1);else if(n.length===1){let G=n.pop();G!==void 0&&(s=[G,d])}else I=n.pop(),I!==void 0&&I<r&&(r=I,a=d),d=l.indexOf(e,u+1);u=o<d&&o>=0?o:d}n.length&&a!==void 0&&(s=[r,a])}return s};var lRt="\0SLASH"+Math.random()+"\0",nRt="\0OPEN"+Math.random()+"\0",Cxe="\0CLOSE"+Math.random()+"\0",IRt="\0COMMA"+Math.random()+"\0",rRt="\0PERIOD"+Math.random()+"\0",JOl=new RegExp(lRt,"g"),BOl=new RegExp(nRt,"g"),xOl=new RegExp(Cxe,"g"),SOl=new RegExp(IRt,"g"),OOl=new RegExp(rRt,"g"),TOl=/\\\\/g,UOl=/\\{/g,MOl=/\\}/g,_Ol=/\\,/g,DOl=/\\./g;function Fxe(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function zOl(t){return t.replace(TOl,lRt).replace(UOl,nRt).replace(MOl,Cxe).replace(_Ol,IRt).replace(DOl,rRt)}function POl(t){return t.replace(JOl,"\\").replace(BOl,"{").replace(xOl,"}").replace(SOl,",").replace(OOl,".")}function aRt(t){if(!t)return[""];let e=[],l=wxe("{","}",t);if(!l)return t.split(",");let{pre:n,body:I,post:r}=l,a=n.split(",");a[a.length-1]+="{"+I+"}";let s=aRt(r);return r.length&&(a[a.length-1]+=s.shift(),a.push.apply(a,s)),e.push.apply(e,a),e}function sRt(t){return t?(t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),jIe(zOl(t),!0).map(POl)):[]}function jOl(t){return"{"+t+"}"}function KOl(t){return/^-?0\d/.test(t)}function qOl(t,e){return t<=e}function $Ol(t,e){return t>=e}function jIe(t,e){let l=[],n=wxe("{","}",t);if(!n)return[t];let I=n.pre,r=n.post.length?jIe(n.post,!1):[""];if(/\$$/.test(n.pre))for(let a=0;a<r.length;a++){let s=I+"{"+n.body+"}"+r[a];l.push(s)}else{let a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),s=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),o=a||s,d=n.body.indexOf(",")>=0;if(!o&&!d)return n.post.match(/,(?!,).*\}/)?(t=n.pre+"{"+n.body+Cxe+n.post,jIe(t)):[t];let u;if(o)u=n.body.split(/\.\./);else if(u=aRt(n.body),u.length===1&&u[0]!==void 0&&(u=jIe(u[0],!1).map(jOl),u.length===1))return r.map(p=>n.pre+u[0]+p);let G;if(o&&u[0]!==void 0&&u[1]!==void 0){let p=Fxe(u[0]),h=Fxe(u[1]),W=Math.max(u[0].length,u[1].length),y=u.length===3&&u[2]!==void 0?Math.abs(Fxe(u[2])):1,R=qOl;h<p&&(y*=-1,R=$Ol);let C=u.some(KOl);G=[];for(let L=p;R(L,h);L+=y){let x;if(s)x=String.fromCharCode(L),x==="\\"&&(x="");else if(x=String(L),C){let U=W-x.length;if(U>0){let P=new Array(U+1).join("0");L<0?x="-"+P+x.slice(1):x=P+x}}G.push(x)}}else{G=[];for(let p=0;p<u.length;p++)G.push.apply(G,jIe(u[p],!1))}for(let p=0;p<G.length;p++)for(let h=0;h<r.length;h++){let W=I+G[p]+r[h];(!e||o||W)&&l.push(W)}}return l}c();var KIe=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")};c();c();var eTl={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},qIe=t=>t.replace(/[[\]\\-]/g,"\\$&"),tTl=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),oRt=t=>t.join(""),iRt=(t,e)=>{let l=e;if(t.charAt(l)!=="[")throw new Error("not in a brace expression");let n=[],I=[],r=l+1,a=!1,s=!1,o=!1,d=!1,u=l,G="";e:for(;r<t.length;){let y=t.charAt(r);if((y==="!"||y==="^")&&r===l+1){d=!0,r++;continue}if(y==="]"&&a&&!o){u=r+1;break}if(a=!0,y==="\\"&&!o){o=!0,r++;continue}if(y==="["&&!o){for(let[R,[w,C,L]]of Object.entries(eTl))if(t.startsWith(R,r)){if(G)return["$.",!1,t.length-l,!0];r+=R.length,L?I.push(w):n.push(w),s=s||C;continue e}}if(o=!1,G){y>G?n.push(qIe(G)+"-"+qIe(y)):y===G&&n.push(qIe(y)),G="",r++;continue}if(t.startsWith("-]",r+1)){n.push(qIe(y+"-")),r+=2;continue}if(t.startsWith("-",r+1)){G=y,r+=2;continue}n.push(qIe(y)),r++}if(u<r)return["",!1,0,!1];if(!n.length&&!I.length)return["$.",!1,t.length-l,!0];if(I.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!d){let y=n[0].length===2?n[0].slice(-1):n[0];return[tTl(y),!1,u-l,!1]}let p="["+(d?"^":"")+oRt(n)+"]",h="["+(d?"":"^")+oRt(I)+"]";return[n.length&&I.length?"("+p+"|"+h+")":n.length?p:h,s,u-l,!0]};c();var OR=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var lTl=new Set(["!","?","+","*","@"]),cRt=t=>lTl.has(t),nTl="(?!(?:^|/)\\.\\.?(?:$|/))",eNe="(?!\\.)",ITl=new Set(["[","."]),rTl=new Set(["..","."]),aTl=new Set("().*{}+?[]^$\\!"),sTl=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),vxe="[^/]",dRt=vxe+"*?",uRt=vxe+"+?",jz=class t{type;#e;#t;#l=!1;#n=[];#I;#r;#i;#a=!1;#s;#c;#u=!1;constructor(e,l,n={}){this.type=e,e&&(this.#t=!0),this.#I=l,this.#e=this.#I?this.#I.#e:this,this.#s=this.#e===this?n:this.#e.#s,this.#i=this.#e===this?[]:this.#e.#i,e==="!"&&!this.#e.#a&&this.#i.push(this),this.#r=this.#I?this.#I.#n.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#n)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#c!==void 0?this.#c:this.type?this.#c=this.type+"("+this.#n.map(e=>String(e)).join("|")+")":this.#c=this.#n.map(e=>String(e)).join("")}#o(){if(this!==this.#e)throw new Error("should only call on root");if(this.#a)return this;this.toString(),this.#a=!0;let e;for(;e=this.#i.pop();){if(e.type!=="!")continue;let l=e,n=l.#I;for(;n;){for(let I=l.#r+1;!n.type&&I<n.#n.length;I++)for(let r of e.#n){if(typeof r=="string")throw new Error("string part in extglob AST??");r.copyIn(n.#n[I])}l=n,n=l.#I}}return this}push(...e){for(let l of e)if(l!==""){if(typeof l!="string"&&!(l instanceof t&&l.#I===this))throw new Error("invalid part: "+l);this.#n.push(l)}}toJSON(){let e=this.type===null?this.#n.slice().map(l=>typeof l=="string"?l:l.toJSON()):[this.type,...this.#n.map(l=>l.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#a&&this.#I?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#I?.isStart())return!1;if(this.#r===0)return!0;let e=this.#I;for(let l=0;l<this.#r;l++){let n=e.#n[l];if(!(n instanceof t&&n.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#I?.type==="!")return!0;if(!this.#I?.isEnd())return!1;if(!this.type)return this.#I?.isEnd();let e=this.#I?this.#I.#n.length:0;return this.#r===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let l=new t(this.type,e);for(let n of this.#n)l.copyIn(n);return l}static#m(e,l,n,I){let r=!1,a=!1,s=-1,o=!1;if(l.type===null){let h=n,W="";for(;h<e.length;){let y=e.charAt(h++);if(r||y==="\\"){r=!r,W+=y;continue}if(a){h===s+1?(y==="^"||y==="!")&&(o=!0):y==="]"&&!(h===s+2&&o)&&(a=!1),W+=y;continue}else if(y==="["){a=!0,s=h,o=!1,W+=y;continue}if(!I.noext&&cRt(y)&&e.charAt(h)==="("){l.push(W),W="";let R=new t(y,l);h=t.#m(e,R,h,I),l.push(R);continue}W+=y}return l.push(W),h}let d=n+1,u=new t(null,l),G=[],p="";for(;d<e.length;){let h=e.charAt(d++);if(r||h==="\\"){r=!r,p+=h;continue}if(a){d===s+1?(h==="^"||h==="!")&&(o=!0):h==="]"&&!(d===s+2&&o)&&(a=!1),p+=h;continue}else if(h==="["){a=!0,s=d,o=!1,p+=h;continue}if(cRt(h)&&e.charAt(d)==="("){u.push(p),p="";let W=new t(h,u);u.push(W),d=t.#m(e,W,d,I);continue}if(h==="|"){u.push(p),p="",G.push(u),u=new t(null,l);continue}if(h===")")return p===""&&l.#n.length===0&&(l.#u=!0),u.push(p),p="",l.push(...G,u),d;p+=h}return l.type=null,l.#t=void 0,l.#n=[e.substring(n-1)],d}static fromGlob(e,l={}){let n=new t(null,void 0,l);return t.#m(e,n,0,l),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[l,n,I,r]=this.toRegExpSource();if(!(I||this.#t||this.#s.nocase&&!this.#s.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let s=(this.#s.nocase?"i":"")+(r?"u":"");return Object.assign(new RegExp(`^${l}$`,s),{_src:l,_glob:e})}get options(){return this.#s}toRegExpSource(e){let l=e??!!this.#s.dot;if(this.#e===this&&this.#o(),!this.type){let o=this.isStart()&&this.isEnd(),d=this.#n.map(h=>{let[W,y,R,w]=typeof h=="string"?t.#b(h,this.#t,o):h.toRegExpSource(e);return this.#t=this.#t||R,this.#l=this.#l||w,W}).join(""),u="";if(this.isStart()&&typeof this.#n[0]=="string"&&!(this.#n.length===1&&rTl.has(this.#n[0]))){let W=ITl,y=l&&W.has(d.charAt(0))||d.startsWith("\\.")&&W.has(d.charAt(2))||d.startsWith("\\.\\.")&&W.has(d.charAt(4)),R=!l&&!e&&W.has(d.charAt(0));u=y?nTl:R?eNe:""}let G="";return this.isEnd()&&this.#e.#a&&this.#I?.type==="!"&&(G="(?:$|\\/)"),[u+d+G,OR(d),this.#t=!!this.#t,this.#l]}let n=this.type==="*"||this.type==="+",I=this.type==="!"?"(?:(?!(?:":"(?:",r=this.#p(l);if(this.isStart()&&this.isEnd()&&!r&&this.type!=="!"){let o=this.toString();return this.#n=[o],this.type=null,this.#t=void 0,[o,OR(this.toString()),!1,!1]}let a=!n||e||l||!eNe?"":this.#p(!0);a===r&&(a=""),a&&(r=`(?:${r})(?:${a})*?`);let s="";if(this.type==="!"&&this.#u)s=(this.isStart()&&!l?eNe:"")+uRt;else{let o=this.type==="!"?"))"+(this.isStart()&&!l&&!e?eNe:"")+dRt+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;s=I+r+o}return[s,OR(r),this.#t=!!this.#t,this.#l]}#p(e){return this.#n.map(l=>{if(typeof l=="string")throw new Error("string type in extglob ast??");let[n,I,r,a]=l.toRegExpSource(e);return this.#l=this.#l||a,n}).filter(l=>!(this.isStart()&&this.isEnd())||!!l).join("|")}static#b(e,l,n=!1){let I=!1,r="",a=!1;for(let s=0;s<e.length;s++){let o=e.charAt(s);if(I){I=!1,r+=(aTl.has(o)?"\\":"")+o;continue}if(o==="\\"){s===e.length-1?r+="\\\\":I=!0;continue}if(o==="["){let[d,u,G,p]=iRt(e,s);if(G){r+=d,a=a||u,s+=G-1,l=l||p;continue}}if(o==="*"){n&&e==="*"?r+=uRt:r+=dRt,l=!0;continue}if(o==="?"){r+=vxe,l=!0;continue}r+=sTl(o)}return[r,OR(e),!!l,a]}};c();var Kz=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");var fA=(t,e,l={})=>(KIe(e),!l.nocomment&&e.charAt(0)==="#"?!1:new tW(e,l).match(t)),oTl=/^\*+([^+@!?\*\[\(]*)$/,iTl=t=>e=>!e.startsWith(".")&&e.endsWith(t),cTl=t=>e=>e.endsWith(t),dTl=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),uTl=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),mTl=/^\*+\.\*+$/,GTl=t=>!t.startsWith(".")&&t.includes("."),bTl=t=>t!=="."&&t!==".."&&t.includes("."),pTl=/^\.\*+$/,hTl=t=>t!=="."&&t!==".."&&t.startsWith("."),ATl=/^\*+$/,ZTl=t=>t.length!==0&&!t.startsWith("."),gTl=t=>t.length!==0&&t!=="."&&t!=="..",NTl=/^\?+([^+@!?\*\[\(]*)?$/,WTl=([t,e=""])=>{let l=bRt([t]);return e?(e=e.toLowerCase(),n=>l(n)&&n.toLowerCase().endsWith(e)):l},yTl=([t,e=""])=>{let l=pRt([t]);return e?(e=e.toLowerCase(),n=>l(n)&&n.toLowerCase().endsWith(e)):l},ETl=([t,e=""])=>{let l=pRt([t]);return e?n=>l(n)&&n.endsWith(e):l},RTl=([t,e=""])=>{let l=bRt([t]);return e?n=>l(n)&&n.endsWith(e):l},bRt=([t])=>{let e=t.length;return l=>l.length===e&&!l.startsWith(".")},pRt=([t])=>{let e=t.length;return l=>l.length===e&&l!=="."&&l!==".."},hRt=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",mRt={win32:{sep:"\\"},posix:{sep:"/"}},YTl=hRt==="win32"?mRt.win32.sep:mRt.posix.sep;fA.sep=YTl;var Ip=Symbol("globstar **");fA.GLOBSTAR=Ip;var VTl="[^/]",QTl=VTl+"*?",wTl="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",FTl="(?:(?!(?:\\/|^)\\.).)*?",CTl=(t,e={})=>l=>fA(l,t,e);fA.filter=CTl;var eE=(t,e={})=>Object.assign({},t,e),vTl=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return fA;let e=fA;return Object.assign((n,I,r={})=>e(n,I,eE(t,r)),{Minimatch:class extends e.Minimatch{constructor(I,r={}){super(I,eE(t,r))}static defaults(I){return e.defaults(eE(t,I)).Minimatch}},AST:class extends e.AST{constructor(I,r,a={}){super(I,r,eE(t,a))}static fromGlob(I,r={}){return e.AST.fromGlob(I,eE(t,r))}},unescape:(n,I={})=>e.unescape(n,eE(t,I)),escape:(n,I={})=>e.escape(n,eE(t,I)),filter:(n,I={})=>e.filter(n,eE(t,I)),defaults:n=>e.defaults(eE(t,n)),makeRe:(n,I={})=>e.makeRe(n,eE(t,I)),braceExpand:(n,I={})=>e.braceExpand(n,eE(t,I)),match:(n,I,r={})=>e.match(n,I,eE(t,r)),sep:e.sep,GLOBSTAR:Ip})};fA.defaults=vTl;var ARt=(t,e={})=>(KIe(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:sRt(t));fA.braceExpand=ARt;var fTl=(t,e={})=>new tW(t,e).makeRe();fA.makeRe=fTl;var HTl=(t,e,l={})=>{let n=new tW(e,l);return t=t.filter(I=>n.match(I)),n.options.nonull&&!t.length&&t.push(e),t};fA.match=HTl;var GRt=/[?*]|[+@!]\(.*?\)|\[|\]/,XTl=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),tW=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,l={}){KIe(e),l=l||{},this.options=l,this.pattern=e,this.platform=l.platform||hRt,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!l.windowsPathsNoEscape||l.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!l.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!l.nonegate,this.comment=!1,this.empty=!1,this.partial=!!l.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=l.windowsNoMagicRoot!==void 0?l.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let l of e)if(typeof l!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,l=this.options;if(!l.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],l.debug&&(this.debug=(...r)=>console.error(...r)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(r=>this.slashSplit(r));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let I=this.globParts.map((r,a,s)=>{if(this.isWindows&&this.windowsNoMagicRoot){let o=r[0]===""&&r[1]===""&&(r[2]==="?"||!GRt.test(r[2]))&&!GRt.test(r[3]),d=/^[a-z]:/i.test(r[0]);if(o)return[...r.slice(0,4),...r.slice(4).map(u=>this.parse(u))];if(d)return[r[0],...r.slice(1).map(u=>this.parse(u))]}return r.map(o=>this.parse(o))});if(this.debug(this.pattern,I),this.set=I.filter(r=>r.indexOf(!1)===-1),this.isWindows)for(let r=0;r<this.set.length;r++){let a=this.set[r];a[0]===""&&a[1]===""&&this.globParts[r][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let n=0;n<e.length;n++)for(let I=0;I<e[n].length;I++)e[n][I]==="**"&&(e[n][I]="*");let{optimizationLevel:l=1}=this.options;return l>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):l>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(l=>{let n=-1;for(;(n=l.indexOf("**",n+1))!==-1;){let I=n;for(;l[I+1]==="**";)I++;I!==n&&l.splice(n,I-n)}return l})}levelOneOptimize(e){return e.map(l=>(l=l.reduce((n,I)=>{let r=n[n.length-1];return I==="**"&&r==="**"?n:I===".."&&r&&r!==".."&&r!=="."&&r!=="**"?(n.pop(),n):(n.push(I),n)},[]),l.length===0?[""]:l))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let l=!1;do{if(l=!1,!this.preserveMultipleSlashes){for(let I=1;I<e.length-1;I++){let r=e[I];I===1&&r===""&&e[0]===""||(r==="."||r==="")&&(l=!0,e.splice(I,1),I--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(l=!0,e.pop())}let n=0;for(;(n=e.indexOf("..",n+1))!==-1;){let I=e[n-1];I&&I!=="."&&I!==".."&&I!=="**"&&(l=!0,e.splice(n-1,2),n-=2)}}while(l);return e.length===0?[""]:e}firstPhasePreProcess(e){let l=!1;do{l=!1;for(let n of e){let I=-1;for(;(I=n.indexOf("**",I+1))!==-1;){let a=I;for(;n[a+1]==="**";)a++;a>I&&n.splice(I+1,a-I);let s=n[I+1],o=n[I+2],d=n[I+3];if(s!==".."||!o||o==="."||o===".."||!d||d==="."||d==="..")continue;l=!0,n.splice(I,1);let u=n.slice(0);u[I]="**",e.push(u),I--}if(!this.preserveMultipleSlashes){for(let a=1;a<n.length-1;a++){let s=n[a];a===1&&s===""&&n[0]===""||(s==="."||s==="")&&(l=!0,n.splice(a,1),a--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(l=!0,n.pop())}let r=0;for(;(r=n.indexOf("..",r+1))!==-1;){let a=n[r-1];if(a&&a!=="."&&a!==".."&&a!=="**"){l=!0;let o=r===1&&n[r+1]==="**"?["."]:[];n.splice(r-1,2,...o),n.length===0&&n.push(""),r-=2}}}}while(l);return e}secondPhasePreProcess(e){for(let l=0;l<e.length-1;l++)for(let n=l+1;n<e.length;n++){let I=this.partsMatch(e[l],e[n],!this.preserveMultipleSlashes);if(I){e[l]=[],e[n]=I;break}}return e.filter(l=>l.length)}partsMatch(e,l,n=!1){let I=0,r=0,a=[],s="";for(;I<e.length&&r<l.length;)if(e[I]===l[r])a.push(s==="b"?l[r]:e[I]),I++,r++;else if(n&&e[I]==="**"&&l[r]===e[I+1])a.push(e[I]),I++;else if(n&&l[r]==="**"&&e[I]===l[r+1])a.push(l[r]),r++;else if(e[I]==="*"&&l[r]&&(this.options.dot||!l[r].startsWith("."))&&l[r]!=="**"){if(s==="b")return!1;s="a",a.push(e[I]),I++,r++}else if(l[r]==="*"&&e[I]&&(this.options.dot||!e[I].startsWith("."))&&e[I]!=="**"){if(s==="a")return!1;s="b",a.push(l[r]),I++,r++}else return!1;return e.length===l.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,l=!1,n=0;for(let I=0;I<e.length&&e.charAt(I)==="!";I++)l=!l,n++;n&&(this.pattern=e.slice(n)),this.negate=l}matchOne(e,l,n=!1){let I=this.options;if(this.isWindows){let y=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),R=!y&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),w=typeof l[0]=="string"&&/^[a-z]:$/i.test(l[0]),C=!w&&l[0]===""&&l[1]===""&&l[2]==="?"&&typeof l[3]=="string"&&/^[a-z]:$/i.test(l[3]),L=R?3:y?0:void 0,x=C?3:w?0:void 0;if(typeof L=="number"&&typeof x=="number"){let[U,P]=[e[L],l[x]];U.toLowerCase()===P.toLowerCase()&&(l[x]=U,x>L?l=l.slice(x):L>x&&(e=e.slice(L)))}}let{optimizationLevel:r=1}=this.options;r>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:l}),this.debug("matchOne",e.length,l.length);for(var a=0,s=0,o=e.length,d=l.length;a<o&&s<d;a++,s++){this.debug("matchOne loop");var u=l[s],G=e[a];if(this.debug(l,u,G),u===!1)return!1;if(u===Ip){this.debug("GLOBSTAR",[l,u,G]);var p=a,h=s+1;if(h===d){for(this.debug("** at the end");a<o;a++)if(e[a]==="."||e[a]===".."||!I.dot&&e[a].charAt(0)===".")return!1;return!0}for(;p<o;){var W=e[p];if(this.debug(`
1314
1314
  globstar while`,e,p,l,h,W),this.matchOne(e.slice(p),l.slice(h),n))return this.debug("globstar found match!",p,o,W),!0;if(W==="."||W===".."||!I.dot&&W.charAt(0)==="."){this.debug("dot detected!",e,p,l,h);break}this.debug("globstar swallow a segment, and continue"),p++}return!!(n&&(this.debug(`
1315
1315
  >>> no match, partial?`,e,p,l,h),p===o))}let y;if(typeof u=="string"?(y=G===u,this.debug("string match",u,G,y)):(y=u.test(G),this.debug("pattern match",u,G,y)),!y)return!1}if(a===o&&s===d)return!0;if(a===o)return n;if(s===d)return a===o-1&&e[a]==="";throw new Error("wtf?")}braceExpand(){return ARt(this.pattern,this.options)}parse(e){KIe(e);let l=this.options;if(e==="**")return Ip;if(e==="")return"";let n,I=null;(n=e.match(ATl))?I=l.dot?gTl:ZTl:(n=e.match(oTl))?I=(l.nocase?l.dot?uTl:dTl:l.dot?cTl:iTl)(n[1]):(n=e.match(NTl))?I=(l.nocase?l.dot?yTl:WTl:l.dot?ETl:RTl)(n):(n=e.match(mTl))?I=l.dot?bTl:GTl:(n=e.match(pTl))&&(I=hTl);let r=jz.fromGlob(e,this.options).toMMPattern();return I&&typeof r=="object"&&Reflect.defineProperty(r,"test",{value:I}),r}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let l=this.options,n=l.noglobstar?QTl:l.dot?wTl:FTl,I=new Set(l.nocase?["i"]:[]),r=e.map(o=>{let d=o.map(u=>{if(u instanceof RegExp)for(let G of u.flags.split(""))I.add(G);return typeof u=="string"?XTl(u):u===Ip?Ip:u._src});return d.forEach((u,G)=>{let p=d[G+1],h=d[G-1];u!==Ip||h===Ip||(h===void 0?p!==void 0&&p!==Ip?d[G+1]="(?:\\/|"+n+"\\/)?"+p:d[G]=n:p===void 0?d[G-1]=h+"(?:\\/|"+n+")?":p!==Ip&&(d[G-1]=h+"(?:\\/|\\/"+n+"\\/)"+p,d[G+1]=Ip))}),d.filter(u=>u!==Ip).join("/")}).join("|"),[a,s]=e.length>1?["(?:",")"]:["",""];r="^"+a+r+s+"$",this.negate&&(r="^(?!"+r+").+$");try{this.regexp=new RegExp(r,[...I].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,l=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&l)return!0;let n=this.options;this.isWindows&&(e=e.split("\\").join("/"));let I=this.slashSplit(e);this.debug(this.pattern,"split",I);let r=this.set;this.debug(this.pattern,"set",r);let a=I[I.length-1];if(!a)for(let s=I.length-2;!a&&s>=0;s--)a=I[s];for(let s=0;s<r.length;s++){let o=r[s],d=I;if(n.matchBase&&o.length===1&&(d=[a]),this.matchOne(d,o,l))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return fA.defaults(e).Minimatch}};fA.AST=jz;fA.Minimatch=tW;fA.escape=Kz;fA.unescape=OR;c();import{fileURLToPath as nUl}from"node:url";c();c();var qz=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,gRt=new Set,fxe=typeof process=="object"&&process?process:{},NRt=(t,e,l,n)=>{typeof fxe.emitWarning=="function"?fxe.emitWarning(t,e,l,n):console.error(`[${l}] ${e}: ${t}`)},tNe=globalThis.AbortController,ZRt=globalThis.AbortSignal;if(typeof tNe>"u"){ZRt=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,I){this._onabort.push(I)}},tNe=class{constructor(){e()}signal=new ZRt;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let I of this.signal._onabort)I(n);this.signal.onabort?.(n)}}};let t=fxe.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,NRt("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var kTl=t=>!gRt.has(t),Wor=Symbol("type"),x5=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),WRt=t=>x5(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?$z:null:null,$z=class extends Array{constructor(e){super(e),this.fill(0)}},Hxe=class t{heap;length;static#e=!1;static create(e){let l=WRt(e);if(!l)return[];t.#e=!0;let n=new t(e,l);return t.#e=!1,n}constructor(e,l){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new l(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},$Ie=class t{#e;#t;#l;#n;#I;#r;#i;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#s;#c;#u;#o;#m;#p;#b;#A;#V;#Z;#Q;#W;#N;#g;#R;#h;#F;static unsafeExposeInternals(e){return{starts:e.#W,ttls:e.#N,sizes:e.#Q,keyMap:e.#c,keyList:e.#u,valList:e.#o,next:e.#m,prev:e.#p,get head(){return e.#b},get tail(){return e.#A},free:e.#V,isBackgroundFetch:l=>e.#G(l),backgroundFetch:(l,n,I,r)=>e.#X(l,n,I,r),moveToTail:l=>e.#J(l),indexes:l=>e.#Y(l),rindexes:l=>e.#w(l),isStale:l=>e.#E(l)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#s}get size(){return this.#a}get fetchMethod(){return this.#r}get memoMethod(){return this.#i}get dispose(){return this.#l}get onInsert(){return this.#n}get disposeAfter(){return this.#I}constructor(e){let{max:l=0,ttl:n,ttlResolution:I=1,ttlAutopurge:r,updateAgeOnGet:a,updateAgeOnHas:s,allowStale:o,dispose:d,onInsert:u,disposeAfter:G,noDisposeOnSet:p,noUpdateTTL:h,maxSize:W=0,maxEntrySize:y=0,sizeCalculation:R,fetchMethod:w,memoMethod:C,noDeleteOnFetchRejection:L,noDeleteOnStaleGet:x,allowStaleOnFetchRejection:U,allowStaleOnFetchAbort:P,ignoreFetchAbort:_}=e;if(l!==0&&!x5(l))throw new TypeError("max option must be a nonnegative integer");let K=l?WRt(l):Array;if(!K)throw new Error("invalid max value: "+l);if(this.#e=l,this.#t=W,this.maxEntrySize=y||this.#t,this.sizeCalculation=R,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(C!==void 0&&typeof C!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#i=C,w!==void 0&&typeof w!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#r=w,this.#R=!!w,this.#c=new Map,this.#u=new Array(l).fill(void 0),this.#o=new Array(l).fill(void 0),this.#m=new K(l),this.#p=new K(l),this.#b=0,this.#A=0,this.#V=Hxe.create(l),this.#a=0,this.#s=0,typeof d=="function"&&(this.#l=d),typeof u=="function"&&(this.#n=u),typeof G=="function"?(this.#I=G,this.#Z=[]):(this.#I=void 0,this.#Z=void 0),this.#g=!!this.#l,this.#F=!!this.#n,this.#h=!!this.#I,this.noDisposeOnSet=!!p,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!L,this.allowStaleOnFetchRejection=!!U,this.allowStaleOnFetchAbort=!!P,this.ignoreFetchAbort=!!_,this.maxEntrySize!==0){if(this.#t!==0&&!x5(this.#t))throw new TypeError("maxSize must be a positive integer if specified");if(!x5(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#x()}if(this.allowStale=!!o,this.noDeleteOnStaleGet=!!x,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=x5(I)||I===0?I:1,this.ttlAutopurge=!!r,this.ttl=n||0,this.ttl){if(!x5(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#d()}if(this.#e===0&&this.ttl===0&&this.#t===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#t){let O="LRU_CACHE_UNBOUNDED";kTl(O)&&(gRt.add(O),NRt("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",O,t))}}getRemainingTTL(e){return this.#c.has(e)?1/0:0}#d(){let e=new $z(this.#e),l=new $z(this.#e);this.#N=e,this.#W=l,this.#C=(r,a,s=qz.now())=>{if(l[r]=a!==0?s:0,e[r]=a,a!==0&&this.ttlAutopurge){let o=setTimeout(()=>{this.#E(r)&&this.#v(this.#u[r],"expire")},a+1);o.unref&&o.unref()}},this.#f=r=>{l[r]=e[r]!==0?qz.now():0},this.#y=(r,a)=>{if(e[a]){let s=e[a],o=l[a];if(!s||!o)return;r.ttl=s,r.start=o,r.now=n||I();let d=r.now-o;r.remainingTTL=s-d}};let n=0,I=()=>{let r=qz.now();if(this.ttlResolution>0){n=r;let a=setTimeout(()=>n=0,this.ttlResolution);a.unref&&a.unref()}return r};this.getRemainingTTL=r=>{let a=this.#c.get(r);if(a===void 0)return 0;let s=e[a],o=l[a];if(!s||!o)return 1/0;let d=(n||I())-o;return s-d},this.#E=r=>{let a=l[r],s=e[r];return!!s&&!!a&&(n||I())-a>s}}#f=()=>{};#y=()=>{};#C=()=>{};#E=()=>!1;#x(){let e=new $z(this.#e);this.#s=0,this.#Q=e,this.#H=l=>{this.#s-=e[l],e[l]=0},this.#S=(l,n,I,r)=>{if(this.#G(n))return 0;if(!x5(I))if(r){if(typeof r!="function")throw new TypeError("sizeCalculation must be a function");if(I=r(n,l),!x5(I))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return I},this.#k=(l,n,I)=>{if(e[l]=n,this.#t){let r=this.#t-e[l];for(;this.#s>r;)this.#L(!0)}this.#s+=e[l],I&&(I.entrySize=n,I.totalCalculatedSize=this.#s)}}#H=e=>{};#k=(e,l,n)=>{};#S=(e,l,n,I)=>{if(n||I)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#Y({allowStale:e=this.allowStale}={}){if(this.#a)for(let l=this.#A;!(!this.#O(l)||((e||!this.#E(l))&&(yield l),l===this.#b));)l=this.#p[l]}*#w({allowStale:e=this.allowStale}={}){if(this.#a)for(let l=this.#b;!(!this.#O(l)||((e||!this.#E(l))&&(yield l),l===this.#A));)l=this.#m[l]}#O(e){return e!==void 0&&this.#c.get(this.#u[e])===e}*entries(){for(let e of this.#Y())this.#o[e]!==void 0&&this.#u[e]!==void 0&&!this.#G(this.#o[e])&&(yield[this.#u[e],this.#o[e]])}*rentries(){for(let e of this.#w())this.#o[e]!==void 0&&this.#u[e]!==void 0&&!this.#G(this.#o[e])&&(yield[this.#u[e],this.#o[e]])}*keys(){for(let e of this.#Y()){let l=this.#u[e];l!==void 0&&!this.#G(this.#o[e])&&(yield l)}}*rkeys(){for(let e of this.#w()){let l=this.#u[e];l!==void 0&&!this.#G(this.#o[e])&&(yield l)}}*values(){for(let e of this.#Y())this.#o[e]!==void 0&&!this.#G(this.#o[e])&&(yield this.#o[e])}*rvalues(){for(let e of this.#w())this.#o[e]!==void 0&&!this.#G(this.#o[e])&&(yield this.#o[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,l={}){for(let n of this.#Y()){let I=this.#o[n],r=this.#G(I)?I.__staleWhileFetching:I;if(r!==void 0&&e(r,this.#u[n],this))return this.get(this.#u[n],l)}}forEach(e,l=this){for(let n of this.#Y()){let I=this.#o[n],r=this.#G(I)?I.__staleWhileFetching:I;r!==void 0&&e.call(l,r,this.#u[n],this)}}rforEach(e,l=this){for(let n of this.#w()){let I=this.#o[n],r=this.#G(I)?I.__staleWhileFetching:I;r!==void 0&&e.call(l,r,this.#u[n],this)}}purgeStale(){let e=!1;for(let l of this.#w({allowStale:!0}))this.#E(l)&&(this.#v(this.#u[l],"expire"),e=!0);return e}info(e){let l=this.#c.get(e);if(l===void 0)return;let n=this.#o[l],I=this.#G(n)?n.__staleWhileFetching:n;if(I===void 0)return;let r={value:I};if(this.#N&&this.#W){let a=this.#N[l],s=this.#W[l];if(a&&s){let o=a-(qz.now()-s);r.ttl=o,r.start=Date.now()}}return this.#Q&&(r.size=this.#Q[l]),r}dump(){let e=[];for(let l of this.#Y({allowStale:!0})){let n=this.#u[l],I=this.#o[l],r=this.#G(I)?I.__staleWhileFetching:I;if(r===void 0||n===void 0)continue;let a={value:r};if(this.#N&&this.#W){a.ttl=this.#N[l];let s=qz.now()-this.#W[l];a.start=Math.floor(Date.now()-s)}this.#Q&&(a.size=this.#Q[l]),e.unshift([n,a])}return e}load(e){this.clear();for(let[l,n]of e){if(n.start){let I=Date.now()-n.start;n.start=qz.now()-I}this.set(l,n.value,n)}}set(e,l,n={}){if(l===void 0)return this.delete(e),this;let{ttl:I=this.ttl,start:r,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:o}=n,{noUpdateTTL:d=this.noUpdateTTL}=n,u=this.#S(e,l,n.size||0,s);if(this.maxEntrySize&&u>this.maxEntrySize)return o&&(o.set="miss",o.maxEntrySizeExceeded=!0),this.#v(e,"set"),this;let G=this.#a===0?void 0:this.#c.get(e);if(G===void 0)G=this.#a===0?this.#A:this.#V.length!==0?this.#V.pop():this.#a===this.#e?this.#L(!1):this.#a,this.#u[G]=e,this.#o[G]=l,this.#c.set(e,G),this.#m[this.#A]=G,this.#p[G]=this.#A,this.#A=G,this.#a++,this.#k(G,u,o),o&&(o.set="add"),d=!1,this.#F&&this.#n?.(l,e,"add");else{this.#J(G);let p=this.#o[G];if(l!==p){if(this.#R&&this.#G(p)){p.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:h}=p;h!==void 0&&!a&&(this.#g&&this.#l?.(h,e,"set"),this.#h&&this.#Z?.push([h,e,"set"]))}else a||(this.#g&&this.#l?.(p,e,"set"),this.#h&&this.#Z?.push([p,e,"set"]));if(this.#H(G),this.#k(G,u,o),this.#o[G]=l,o){o.set="replace";let h=p&&this.#G(p)?p.__staleWhileFetching:p;h!==void 0&&(o.oldValue=h)}}else o&&(o.set="update");this.#F&&this.onInsert?.(l,e,l===p?"update":"replace")}if(I!==0&&!this.#N&&this.#d(),this.#N&&(d||this.#C(G,I,r),o&&this.#y(o,G)),!a&&this.#h&&this.#Z){let p=this.#Z,h;for(;h=p?.shift();)this.#I?.(...h)}return this}pop(){try{for(;this.#a;){let e=this.#o[this.#b];if(this.#L(!0),this.#G(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#h&&this.#Z){let e=this.#Z,l;for(;l=e?.shift();)this.#I?.(...l)}}}#L(e){let l=this.#b,n=this.#u[l],I=this.#o[l];return this.#R&&this.#G(I)?I.__abortController.abort(new Error("evicted")):(this.#g||this.#h)&&(this.#g&&this.#l?.(I,n,"evict"),this.#h&&this.#Z?.push([I,n,"evict"])),this.#H(l),e&&(this.#u[l]=void 0,this.#o[l]=void 0,this.#V.push(l)),this.#a===1?(this.#b=this.#A=0,this.#V.length=0):this.#b=this.#m[l],this.#c.delete(n),this.#a--,l}has(e,l={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:I}=l,r=this.#c.get(e);if(r!==void 0){let a=this.#o[r];if(this.#G(a)&&a.__staleWhileFetching===void 0)return!1;if(this.#E(r))I&&(I.has="stale",this.#y(I,r));else return n&&this.#f(r),I&&(I.has="hit",this.#y(I,r)),!0}else I&&(I.has="miss");return!1}peek(e,l={}){let{allowStale:n=this.allowStale}=l,I=this.#c.get(e);if(I===void 0||!n&&this.#E(I))return;let r=this.#o[I];return this.#G(r)?r.__staleWhileFetching:r}#X(e,l,n,I){let r=l===void 0?void 0:this.#o[l];if(this.#G(r))return r;let a=new tNe,{signal:s}=n;s?.addEventListener("abort",()=>a.abort(s.reason),{signal:a.signal});let o={signal:a.signal,options:n,context:I},d=(y,R=!1)=>{let{aborted:w}=a.signal,C=n.ignoreFetchAbort&&y!==void 0;if(n.status&&(w&&!R?(n.status.fetchAborted=!0,n.status.fetchError=a.signal.reason,C&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),w&&!C&&!R)return G(a.signal.reason);let L=h;return this.#o[l]===h&&(y===void 0?L.__staleWhileFetching?this.#o[l]=L.__staleWhileFetching:this.#v(e,"fetch"):(n.status&&(n.status.fetchUpdated=!0),this.set(e,y,o.options))),y},u=y=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=y),G(y)),G=y=>{let{aborted:R}=a.signal,w=R&&n.allowStaleOnFetchAbort,C=w||n.allowStaleOnFetchRejection,L=C||n.noDeleteOnFetchRejection,x=h;if(this.#o[l]===h&&(!L||x.__staleWhileFetching===void 0?this.#v(e,"fetch"):w||(this.#o[l]=x.__staleWhileFetching)),C)return n.status&&x.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),x.__staleWhileFetching;if(x.__returned===x)throw y},p=(y,R)=>{let w=this.#r?.(e,r,o);w&&w instanceof Promise&&w.then(C=>y(C===void 0?void 0:C),R),a.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(y(void 0),n.allowStaleOnFetchAbort&&(y=C=>d(C,!0)))})};n.status&&(n.status.fetchDispatched=!0);let h=new Promise(p).then(d,u),W=Object.assign(h,{__abortController:a,__staleWhileFetching:r,__returned:void 0});return l===void 0?(this.set(e,W,{...o.options,status:void 0}),l=this.#c.get(e)):this.#o[l]=W,W}#G(e){if(!this.#R)return!1;let l=e;return!!l&&l instanceof Promise&&l.hasOwnProperty("__staleWhileFetching")&&l.__abortController instanceof tNe}async fetch(e,l={}){let{allowStale:n=this.allowStale,updateAgeOnGet:I=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:o=0,sizeCalculation:d=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:G=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:p=this.allowStaleOnFetchRejection,ignoreFetchAbort:h=this.ignoreFetchAbort,allowStaleOnFetchAbort:W=this.allowStaleOnFetchAbort,context:y,forceRefresh:R=!1,status:w,signal:C}=l;if(!this.#R)return w&&(w.fetch="get"),this.get(e,{allowStale:n,updateAgeOnGet:I,noDeleteOnStaleGet:r,status:w});let L={allowStale:n,updateAgeOnGet:I,noDeleteOnStaleGet:r,ttl:a,noDisposeOnSet:s,size:o,sizeCalculation:d,noUpdateTTL:u,noDeleteOnFetchRejection:G,allowStaleOnFetchRejection:p,allowStaleOnFetchAbort:W,ignoreFetchAbort:h,status:w,signal:C},x=this.#c.get(e);if(x===void 0){w&&(w.fetch="miss");let U=this.#X(e,x,L,y);return U.__returned=U}else{let U=this.#o[x];if(this.#G(U)){let $=n&&U.__staleWhileFetching!==void 0;return w&&(w.fetch="inflight",$&&(w.returnedStale=!0)),$?U.__staleWhileFetching:U.__returned=U}let P=this.#E(x);if(!R&&!P)return w&&(w.fetch="hit"),this.#J(x),I&&this.#f(x),w&&this.#y(w,x),U;let _=this.#X(e,x,L,y),O=_.__staleWhileFetching!==void 0&&n;return w&&(w.fetch=P?"stale":"refresh",O&&P&&(w.returnedStale=!0)),O?_.__staleWhileFetching:_.__returned=_}}async forceFetch(e,l={}){let n=await this.fetch(e,l);if(n===void 0)throw new Error("fetch() returned undefined");return n}memo(e,l={}){let n=this.#i;if(!n)throw new Error("no memoMethod provided to constructor");let{context:I,forceRefresh:r,...a}=l,s=this.get(e,a);if(!r&&s!==void 0)return s;let o=n(e,s,{options:a,context:I});return this.set(e,o,a),o}get(e,l={}){let{allowStale:n=this.allowStale,updateAgeOnGet:I=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:a}=l,s=this.#c.get(e);if(s!==void 0){let o=this.#o[s],d=this.#G(o);return a&&this.#y(a,s),this.#E(s)?(a&&(a.get="stale"),d?(a&&n&&o.__staleWhileFetching!==void 0&&(a.returnedStale=!0),n?o.__staleWhileFetching:void 0):(r||this.#v(e,"expire"),a&&n&&(a.returnedStale=!0),n?o:void 0)):(a&&(a.get="hit"),d?o.__staleWhileFetching:(this.#J(s),I&&this.#f(s),o))}else a&&(a.get="miss")}#T(e,l){this.#p[l]=e,this.#m[e]=l}#J(e){e!==this.#A&&(e===this.#b?this.#b=this.#m[e]:this.#T(this.#p[e],this.#m[e]),this.#T(this.#A,e),this.#A=e)}delete(e){return this.#v(e,"delete")}#v(e,l){let n=!1;if(this.#a!==0){let I=this.#c.get(e);if(I!==void 0)if(n=!0,this.#a===1)this.#B(l);else{this.#H(I);let r=this.#o[I];if(this.#G(r)?r.__abortController.abort(new Error("deleted")):(this.#g||this.#h)&&(this.#g&&this.#l?.(r,e,l),this.#h&&this.#Z?.push([r,e,l])),this.#c.delete(e),this.#u[I]=void 0,this.#o[I]=void 0,I===this.#A)this.#A=this.#p[I];else if(I===this.#b)this.#b=this.#m[I];else{let a=this.#p[I];this.#m[a]=this.#m[I];let s=this.#m[I];this.#p[s]=this.#p[I]}this.#a--,this.#V.push(I)}}if(this.#h&&this.#Z?.length){let I=this.#Z,r;for(;r=I?.shift();)this.#I?.(...r)}return n}clear(){return this.#B("delete")}#B(e){for(let l of this.#w({allowStale:!0})){let n=this.#o[l];if(this.#G(n))n.__abortController.abort(new Error("deleted"));else{let I=this.#u[l];this.#g&&this.#l?.(n,I,e),this.#h&&this.#Z?.push([n,I,e])}}if(this.#c.clear(),this.#o.fill(void 0),this.#u.fill(void 0),this.#N&&this.#W&&(this.#N.fill(0),this.#W.fill(0)),this.#Q&&this.#Q.fill(0),this.#b=0,this.#A=0,this.#V.length=0,this.#s=0,this.#a=0,this.#h&&this.#Z){let l=this.#Z,n;for(;n=l?.shift();)this.#I?.(...n)}}};import{posix as LTl,win32 as Lxe}from"node:path";import{fileURLToPath as JTl}from"node:url";import{lstatSync as BTl,readdir as xTl,readdirSync as STl,readlinkSync as OTl,realpathSync as TTl}from"fs";import*as UTl from"node:fs";import{lstat as _Tl,readdir as DTl,readlink as zTl,realpath as PTl}from"node:fs/promises";var MTl=TTl.native,tre={lstatSync:BTl,readdir:xTl,readdirSync:STl,readlinkSync:OTl,realpathSync:MTl,promises:{lstat:_Tl,readdir:DTl,readlink:zTl,realpath:PTl}},VRt=t=>!t||t===tre||t===UTl?tre:{...tre,...t,promises:{...tre.promises,...t.promises||{}}},QRt=/^\\\\\?\\([a-z]:)\\?$/i,jTl=t=>t.replace(/\//g,"\\").replace(QRt,"$1\\"),KTl=/[\\\/]/,lE=0,wRt=1,FRt=2,lV=4,CRt=6,vRt=8,KB=10,fRt=12,tE=15,ere=~tE,Xxe=16,yRt=32,lre=64,TR=128,lNe=256,INe=512,ERt=lre|TR|INe,qTl=1023,kxe=t=>t.isFile()?vRt:t.isDirectory()?lV:t.isSymbolicLink()?KB:t.isCharacterDevice()?FRt:t.isBlockDevice()?CRt:t.isSocket()?fRt:t.isFIFO()?wRt:lE,RRt=new Map,nre=t=>{let e=RRt.get(t);if(e)return e;let l=t.normalize("NFKD");return RRt.set(t,l),l},YRt=new Map,nNe=t=>{let e=YRt.get(t);if(e)return e;let l=nre(t.toLowerCase());return YRt.set(t,l),l},rNe=class extends $Ie{constructor(){super({max:256})}},Jxe=class extends $Ie{constructor(e=16*1024){super({maxSize:e,sizeCalculation:l=>l.length+1})}},HRt=Symbol("PathScurry setAsCwd"),nh=class{name;root;roots;parent;nocase;isCWD=!1;#e;#t;get dev(){return this.#t}#l;get mode(){return this.#l}#n;get nlink(){return this.#n}#I;get uid(){return this.#I}#r;get gid(){return this.#r}#i;get rdev(){return this.#i}#a;get blksize(){return this.#a}#s;get ino(){return this.#s}#c;get size(){return this.#c}#u;get blocks(){return this.#u}#o;get atimeMs(){return this.#o}#m;get mtimeMs(){return this.#m}#p;get ctimeMs(){return this.#p}#b;get birthtimeMs(){return this.#b}#A;get atime(){return this.#A}#V;get mtime(){return this.#V}#Z;get ctime(){return this.#Z}#Q;get birthtime(){return this.#Q}#W;#N;#g;#R;#h;#F;#d;#f;#y;#C;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,l=lE,n,I,r,a,s){this.name=e,this.#W=r?nNe(e):nre(e),this.#d=l&qTl,this.nocase=r,this.roots=I,this.root=n||this,this.#f=a,this.#g=s.fullpath,this.#h=s.relative,this.#F=s.relativePosix,this.parent=s.parent,this.parent?this.#e=this.parent.#e:this.#e=VRt(s.fs)}depth(){return this.#N!==void 0?this.#N:this.parent?this.#N=this.parent.depth()+1:this.#N=0}childrenCache(){return this.#f}resolve(e){if(!e)return this;let l=this.getRootString(e),I=e.substring(l.length).split(this.splitSep);return l?this.getRoot(l).#E(I):this.#E(I)}#E(e){let l=this;for(let n of e)l=l.child(n);return l}children(){let e=this.#f.get(this);if(e)return e;let l=Object.assign([],{provisional:0});return this.#f.set(this,l),this.#d&=~Xxe,l}child(e,l){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let n=this.children(),I=this.nocase?nNe(e):nre(e);for(let o of n)if(o.#W===I)return o;let r=this.parent?this.sep:"",a=this.#g?this.#g+r+e:void 0,s=this.newChild(e,lE,{...l,parent:this,fullpath:a});return this.canReaddir()||(s.#d|=TR),n.push(s),s}relative(){if(this.isCWD)return"";if(this.#h!==void 0)return this.#h;let e=this.name,l=this.parent;if(!l)return this.#h=this.name;let n=l.relative();return n+(!n||!l.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#F!==void 0)return this.#F;let e=this.name,l=this.parent;if(!l)return this.#F=this.fullpathPosix();let n=l.relativePosix();return n+(!n||!l.parent?"":"/")+e}fullpath(){if(this.#g!==void 0)return this.#g;let e=this.name,l=this.parent;if(!l)return this.#g=this.name;let I=l.fullpath()+(l.parent?this.sep:"")+e;return this.#g=I}fullpathPosix(){if(this.#R!==void 0)return this.#R;if(this.sep==="/")return this.#R=this.fullpath();if(!this.parent){let I=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(I)?this.#R=`//?/${I}`:this.#R=I}let e=this.parent,l=e.fullpathPosix(),n=l+(!l||!e.parent?"":"/")+this.name;return this.#R=n}isUnknown(){return(this.#d&tE)===lE}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#d&tE)===vRt}isDirectory(){return(this.#d&tE)===lV}isCharacterDevice(){return(this.#d&tE)===FRt}isBlockDevice(){return(this.#d&tE)===CRt}isFIFO(){return(this.#d&tE)===wRt}isSocket(){return(this.#d&tE)===fRt}isSymbolicLink(){return(this.#d&KB)===KB}lstatCached(){return this.#d&yRt?this:void 0}readlinkCached(){return this.#y}realpathCached(){return this.#C}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#y)return!0;if(!this.parent)return!1;let e=this.#d&tE;return!(e!==lE&&e!==KB||this.#d&lNe||this.#d&TR)}calledReaddir(){return!!(this.#d&Xxe)}isENOENT(){return!!(this.#d&TR)}isNamed(e){return this.nocase?this.#W===nNe(e):this.#W===nre(e)}async readlink(){let e=this.#y;if(e)return e;if(this.canReadlink()&&this.parent)try{let l=await this.#e.promises.readlink(this.fullpath()),n=(await this.parent.realpath())?.resolve(l);if(n)return this.#y=n}catch(l){this.#L(l.code);return}}readlinkSync(){let e=this.#y;if(e)return e;if(this.canReadlink()&&this.parent)try{let l=this.#e.readlinkSync(this.fullpath()),n=this.parent.realpathSync()?.resolve(l);if(n)return this.#y=n}catch(l){this.#L(l.code);return}}#x(e){this.#d|=Xxe;for(let l=e.provisional;l<e.length;l++){let n=e[l];n&&n.#H()}}#H(){this.#d&TR||(this.#d=(this.#d|TR)&ere,this.#k())}#k(){let e=this.children();e.provisional=0;for(let l of e)l.#H()}#S(){this.#d|=INe,this.#Y()}#Y(){if(this.#d&lre)return;let e=this.#d;(e&tE)===lV&&(e&=ere),this.#d=e|lre,this.#k()}#w(e=""){e==="ENOTDIR"||e==="EPERM"?this.#Y():e==="ENOENT"?this.#H():this.children().provisional=0}#O(e=""){e==="ENOTDIR"?this.parent.#Y():e==="ENOENT"&&this.#H()}#L(e=""){let l=this.#d;l|=lNe,e==="ENOENT"&&(l|=TR),(e==="EINVAL"||e==="UNKNOWN")&&(l&=ere),this.#d=l,e==="ENOTDIR"&&this.parent&&this.parent.#Y()}#X(e,l){return this.#T(e,l)||this.#G(e,l)}#G(e,l){let n=kxe(e),I=this.newChild(e.name,n,{parent:this}),r=I.#d&tE;return r!==lV&&r!==KB&&r!==lE&&(I.#d|=lre),l.unshift(I),l.provisional++,I}#T(e,l){for(let n=l.provisional;n<l.length;n++){let I=l[n];if((this.nocase?nNe(e.name):nre(e.name))===I.#W)return this.#J(e,I,n,l)}}#J(e,l,n,I){let r=l.name;return l.#d=l.#d&ere|kxe(e),r!==e.name&&(l.name=e.name),n!==I.provisional&&(n===I.length-1?I.pop():I.splice(n,1),I.unshift(l)),I.provisional++,l}async lstat(){if((this.#d&TR)===0)try{return this.#v(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#O(e.code)}}lstatSync(){if((this.#d&TR)===0)try{return this.#v(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#O(e.code)}}#v(e){let{atime:l,atimeMs:n,birthtime:I,birthtimeMs:r,blksize:a,blocks:s,ctime:o,ctimeMs:d,dev:u,gid:G,ino:p,mode:h,mtime:W,mtimeMs:y,nlink:R,rdev:w,size:C,uid:L}=e;this.#A=l,this.#o=n,this.#Q=I,this.#b=r,this.#a=a,this.#u=s,this.#Z=o,this.#p=d,this.#t=u,this.#r=G,this.#s=p,this.#l=h,this.#V=W,this.#m=y,this.#n=R,this.#i=w,this.#c=C,this.#I=L;let x=kxe(e);this.#d=this.#d&ere|x|yRt,x!==lE&&x!==lV&&x!==KB&&(this.#d|=lre)}#B=[];#M=!1;#_(e){this.#M=!1;let l=this.#B.slice();this.#B.length=0,l.forEach(n=>n(null,e))}readdirCB(e,l=!1){if(!this.canReaddir()){l?e(null,[]):queueMicrotask(()=>e(null,[]));return}let n=this.children();if(this.calledReaddir()){let r=n.slice(0,n.provisional);l?e(null,r):queueMicrotask(()=>e(null,r));return}if(this.#B.push(e),this.#M)return;this.#M=!0;let I=this.fullpath();this.#e.readdir(I,{withFileTypes:!0},(r,a)=>{if(r)this.#w(r.code),n.provisional=0;else{for(let s of a)this.#X(s,n);this.#x(n)}this.#_(n.slice(0,n.provisional))})}#U;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let l=this.fullpath();if(this.#U)await this.#U;else{let n=()=>{};this.#U=new Promise(I=>n=I);try{for(let I of await this.#e.promises.readdir(l,{withFileTypes:!0}))this.#X(I,e);this.#x(e)}catch(I){this.#w(I.code),e.provisional=0}this.#U=void 0,n()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let l=this.fullpath();try{for(let n of this.#e.readdirSync(l,{withFileTypes:!0}))this.#X(n,e);this.#x(e)}catch(n){this.#w(n.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#d&ERt)return!1;let e=tE&this.#d;return e===lE||e===lV||e===KB}shouldWalk(e,l){return(this.#d&lV)===lV&&!(this.#d&ERt)&&!e.has(this)&&(!l||l(this))}async realpath(){if(this.#C)return this.#C;if(!((INe|lNe|TR)&this.#d))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#C=this.resolve(e)}catch{this.#S()}}realpathSync(){if(this.#C)return this.#C;if(!((INe|lNe|TR)&this.#d))try{let e=this.#e.realpathSync(this.fullpath());return this.#C=this.resolve(e)}catch{this.#S()}}[HRt](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let l=new Set([]),n=[],I=this;for(;I&&I.parent;)l.add(I),I.#h=n.join(this.sep),I.#F=n.join("/"),I=I.parent,n.push("..");for(I=e;I&&I.parent&&!l.has(I);)I.#h=void 0,I.#F=void 0,I=I.parent}},aNe=class t extends nh{sep="\\";splitSep=KTl;constructor(e,l=lE,n,I,r,a,s){super(e,l,n,I,r,a,s)}newChild(e,l=lE,n={}){return new t(e,l,this.root,this.roots,this.nocase,this.childrenCache(),n)}getRootString(e){return Lxe.parse(e).root}getRoot(e){if(e=jTl(e.toUpperCase()),e===this.root.name)return this.root;for(let[l,n]of Object.entries(this.roots))if(this.sameRoot(e,l))return this.roots[e]=n;return this.roots[e]=new eP(e,this).root}sameRoot(e,l=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(QRt,"$1\\"),e===l}},sNe=class t extends nh{splitSep="/";sep="/";constructor(e,l=lE,n,I,r,a,s){super(e,l,n,I,r,a,s)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,l=lE,n={}){return new t(e,l,this.root,this.roots,this.nocase,this.childrenCache(),n)}},oNe=class{root;rootPath;roots;cwd;#e;#t;#l;nocase;#n;constructor(e=process.cwd(),l,n,{nocase:I,childrenCacheSize:r=16*1024,fs:a=tre}={}){this.#n=VRt(a),(e instanceof URL||e.startsWith("file://"))&&(e=JTl(e));let s=l.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(s),this.#e=new rNe,this.#t=new rNe,this.#l=new Jxe(r);let o=s.substring(this.rootPath.length).split(n);if(o.length===1&&!o[0]&&o.pop(),I===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=I,this.root=this.newRoot(this.#n),this.roots[this.rootPath]=this.root;let d=this.root,u=o.length-1,G=l.sep,p=this.rootPath,h=!1;for(let W of o){let y=u--;d=d.child(W,{relative:new Array(y).fill("..").join(G),relativePosix:new Array(y).fill("..").join("/"),fullpath:p+=(h?"":G)+W}),h=!0}this.cwd=d}depth(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#l}resolve(...e){let l="";for(let r=e.length-1;r>=0;r--){let a=e[r];if(!(!a||a===".")&&(l=l?`${a}/${l}`:a,this.isAbsolute(a)))break}let n=this.#e.get(l);if(n!==void 0)return n;let I=this.cwd.resolve(l).fullpath();return this.#e.set(l,I),I}resolvePosix(...e){let l="";for(let r=e.length-1;r>=0;r--){let a=e[r];if(!(!a||a===".")&&(l=l?`${a}/${l}`:a,this.isAbsolute(a)))break}let n=this.#t.get(l);if(n!==void 0)return n;let I=this.cwd.resolve(l).fullpathPosix();return this.#t.set(l,I),I}relative(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,l={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof nh||(l=e,e=this.cwd);let{withFileTypes:n}=l;if(e.canReaddir()){let I=await e.readdir();return n?I:I.map(r=>r.name)}else return[]}readdirSync(e=this.cwd,l={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof nh||(l=e,e=this.cwd);let{withFileTypes:n=!0}=l;return e.canReaddir()?n?e.readdirSync():e.readdirSync().map(I=>I.name):[]}async lstat(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:l}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof nh||(l=e.withFileTypes,e=this.cwd);let n=await e.readlink();return l?n:n?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:l}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof nh||(l=e.withFileTypes,e=this.cwd);let n=e.readlinkSync();return l?n:n?.fullpath()}async realpath(e=this.cwd,{withFileTypes:l}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof nh||(l=e.withFileTypes,e=this.cwd);let n=await e.realpath();return l?n:n?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:l}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof nh||(l=e.withFileTypes,e=this.cwd);let n=e.realpathSync();return l?n:n?.fullpath()}async walk(e=this.cwd,l={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof nh||(l=e,e=this.cwd);let{withFileTypes:n=!0,follow:I=!1,filter:r,walkFilter:a}=l,s=[];(!r||r(e))&&s.push(n?e:e.fullpath());let o=new Set,d=(G,p)=>{o.add(G),G.readdirCB((h,W)=>{if(h)return p(h);let y=W.length;if(!y)return p();let R=()=>{--y===0&&p()};for(let w of W)(!r||r(w))&&s.push(n?w:w.fullpath()),I&&w.isSymbolicLink()?w.realpath().then(C=>C?.isUnknown()?C.lstat():C).then(C=>C?.shouldWalk(o,a)?d(C,R):R()):w.shouldWalk(o,a)?d(w,R):R()},!0)},u=e;return new Promise((G,p)=>{d(u,h=>{if(h)return p(h);G(s)})})}walkSync(e=this.cwd,l={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof nh||(l=e,e=this.cwd);let{withFileTypes:n=!0,follow:I=!1,filter:r,walkFilter:a}=l,s=[];(!r||r(e))&&s.push(n?e:e.fullpath());let o=new Set([e]);for(let d of o){let u=d.readdirSync();for(let G of u){(!r||r(G))&&s.push(n?G:G.fullpath());let p=G;if(G.isSymbolicLink()){if(!(I&&(p=G.realpathSync())))continue;p.isUnknown()&&p.lstatSync()}p.shouldWalk(o,a)&&o.add(p)}}return s}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,l={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof nh||(l=e,e=this.cwd),this.stream(e,l)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,l={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof nh||(l=e,e=this.cwd);let{withFileTypes:n=!0,follow:I=!1,filter:r,walkFilter:a}=l;(!r||r(e))&&(yield n?e:e.fullpath());let s=new Set([e]);for(let o of s){let d=o.readdirSync();for(let u of d){(!r||r(u))&&(yield n?u:u.fullpath());let G=u;if(u.isSymbolicLink()){if(!(I&&(G=u.realpathSync())))continue;G.isUnknown()&&G.lstatSync()}G.shouldWalk(s,a)&&s.add(G)}}}stream(e=this.cwd,l={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof nh||(l=e,e=this.cwd);let{withFileTypes:n=!0,follow:I=!1,filter:r,walkFilter:a}=l,s=new qm({objectMode:!0});(!r||r(e))&&s.write(n?e:e.fullpath());let o=new Set,d=[e],u=0,G=()=>{let p=!1;for(;!p;){let h=d.shift();if(!h){u===0&&s.end();return}u++,o.add(h);let W=(R,w,C=!1)=>{if(R)return s.emit("error",R);if(I&&!C){let L=[];for(let x of w)x.isSymbolicLink()&&L.push(x.realpath().then(U=>U?.isUnknown()?U.lstat():U));if(L.length){Promise.all(L).then(()=>W(null,w,!0));return}}for(let L of w)L&&(!r||r(L))&&(s.write(n?L:L.fullpath())||(p=!0));u--;for(let L of w){let x=L.realpathCached()||L;x.shouldWalk(o,a)&&d.push(x)}p&&!s.flowing?s.once("drain",G):y||G()},y=!0;h.readdirCB(W,!0),y=!1}};return G(),s}streamSync(e=this.cwd,l={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof nh||(l=e,e=this.cwd);let{withFileTypes:n=!0,follow:I=!1,filter:r,walkFilter:a}=l,s=new qm({objectMode:!0}),o=new Set;(!r||r(e))&&s.write(n?e:e.fullpath());let d=[e],u=0,G=()=>{let p=!1;for(;!p;){let h=d.shift();if(!h){u===0&&s.end();return}u++,o.add(h);let W=h.readdirSync();for(let y of W)(!r||r(y))&&(s.write(n?y:y.fullpath())||(p=!0));u--;for(let y of W){let R=y;if(y.isSymbolicLink()){if(!(I&&(R=y.realpathSync())))continue;R.isUnknown()&&R.lstatSync()}R.shouldWalk(o,a)&&d.push(R)}}p&&!s.flowing&&s.once("drain",G)};return G(),s}chdir(e=this.cwd){let l=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[HRt](l)}},eP=class extends oNe{sep="\\";constructor(e=process.cwd(),l={}){let{nocase:n=!0}=l;super(e,Lxe,"\\",{...l,nocase:n}),this.nocase=n;for(let I=this.cwd;I;I=I.parent)I.nocase=this.nocase}parseRootPath(e){return Lxe.parse(e).root.toUpperCase()}newRoot(e){return new aNe(this.rootPath,lV,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}},tP=class extends oNe{sep="/";constructor(e=process.cwd(),l={}){let{nocase:n=!1}=l;super(e,LTl,"/",{...l,nocase:n}),this.nocase=n}parseRootPath(e){return"/"}newRoot(e){return new sNe(this.rootPath,lV,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}},Ire=class extends tP{constructor(e=process.cwd(),l={}){let{nocase:n=!0}=l;super(e,{...l,nocase:n})}},Cor=process.platform==="win32"?aNe:sNe,XRt=process.platform==="win32"?eP:process.platform==="darwin"?Ire:tP;c();var $Tl=t=>t.length>=1,eUl=t=>t.length>=1,lP=class t{#e;#t;#l;length;#n;#I;#r;#i;#a;#s;#c=!0;constructor(e,l,n,I){if(!$Tl(e))throw new TypeError("empty pattern list");if(!eUl(l))throw new TypeError("empty glob list");if(l.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,n<0||n>=this.length)throw new TypeError("index out of range");if(this.#e=e,this.#t=l,this.#l=n,this.#n=I,this.#l===0){if(this.isUNC()){let[r,a,s,o,...d]=this.#e,[u,G,p,h,...W]=this.#t;d[0]===""&&(d.shift(),W.shift());let y=[r,a,s,o,""].join("/"),R=[u,G,p,h,""].join("/");this.#e=[y,...d],this.#t=[R,...W],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[r,...a]=this.#e,[s,...o]=this.#t;a[0]===""&&(a.shift(),o.shift());let d=r+"/",u=s+"/";this.#e=[d,...a],this.#t=[u,...o],this.length=this.#e.length}}}pattern(){return this.#e[this.#l]}isString(){return typeof this.#e[this.#l]=="string"}isGlobstar(){return this.#e[this.#l]===Ip}isRegExp(){return this.#e[this.#l]instanceof RegExp}globString(){return this.#r=this.#r||(this.#l===0?this.isAbsolute()?this.#t[0]+this.#t.slice(1).join("/"):this.#t.join("/"):this.#t.slice(this.#l).join("/"))}hasMore(){return this.length>this.#l+1}rest(){return this.#I!==void 0?this.#I:this.hasMore()?(this.#I=new t(this.#e,this.#t,this.#l+1,this.#n),this.#I.#s=this.#s,this.#I.#a=this.#a,this.#I.#i=this.#i,this.#I):this.#I=null}isUNC(){let e=this.#e;return this.#a!==void 0?this.#a:this.#a=this.#n==="win32"&&this.#l===0&&e[0]===""&&e[1]===""&&typeof e[2]=="string"&&!!e[2]&&typeof e[3]=="string"&&!!e[3]}isDrive(){let e=this.#e;return this.#i!==void 0?this.#i:this.#i=this.#n==="win32"&&this.#l===0&&this.length>1&&typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#e;return this.#s!==void 0?this.#s:this.#s=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#e[0];return typeof e=="string"&&this.isAbsolute()&&this.#l===0?e:""}checkFollowGlobstar(){return!(this.#l===0||!this.isGlobstar()||!this.#c)}markFollowGlobstar(){return this.#l===0||!this.isGlobstar()||!this.#c?!1:(this.#c=!1,!0)}};c();c();var tUl=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",nP=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:l,nocase:n,noext:I,noglobstar:r,platform:a=tUl}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=a,this.mmopts={dot:!0,nobrace:l,nocase:n,noext:I,noglobstar:r,optimizationLevel:2,platform:a,nocomment:!0,nonegate:!0};for(let s of e)this.add(s)}add(e){let l=new tW(e,this.mmopts);for(let n=0;n<l.set.length;n++){let I=l.set[n],r=l.globParts[n];if(!I||!r)throw new Error("invalid pattern object");for(;I[0]==="."&&r[0]===".";)I.shift(),r.shift();let a=new lP(I,r,0,this.platform),s=new tW(a.globString(),this.mmopts),o=r[r.length-1]==="**",d=a.isAbsolute();d?this.absolute.push(s):this.relative.push(s),o&&(d?this.absoluteChildren.push(s):this.relativeChildren.push(s))}}ignored(e){let l=e.fullpath(),n=`${l}/`,I=e.relative()||".",r=`${I}/`;for(let a of this.relative)if(a.match(I)||a.match(r))return!0;for(let a of this.absolute)if(a.match(l)||a.match(n))return!0;return!1}childrenIgnored(e){let l=e.fullpath()+"/",n=(e.relative()||".")+"/";for(let I of this.relativeChildren)if(I.match(n))return!0;for(let I of this.absoluteChildren)if(I.match(l))return!0;return!1}};c();var Bxe=class t{store;constructor(e=new Map){this.store=e}copy(){return new t(new Map(this.store))}hasWalked(e,l){return this.store.get(e.fullpath())?.has(l.globString())}storeWalked(e,l){let n=e.fullpath(),I=this.store.get(n);I?I.add(l.globString()):this.store.set(n,new Set([l.globString()]))}},xxe=class{store=new Map;add(e,l,n){let I=(l?2:0)|(n?1:0),r=this.store.get(e);this.store.set(e,r===void 0?I:I&r)}entries(){return[...this.store.entries()].map(([e,l])=>[e,!!(l&2),!!(l&1)])}},Sxe=class{store=new Map;add(e,l){if(!e.canReaddir())return;let n=this.store.get(e);n?n.find(I=>I.globString()===l.globString())||n.push(l):this.store.set(e,[l])}get(e){let l=this.store.get(e);if(!l)throw new Error("attempting to walk unknown path");return l}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}},rre=class t{hasWalkedCache;matches=new xxe;subwalks=new Sxe;patterns;follow;dot;opts;constructor(e,l){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=l?l.copy():new Bxe}processPatterns(e,l){this.patterns=l;let n=l.map(I=>[e,I]);for(let[I,r]of n){this.hasWalkedCache.storeWalked(I,r);let a=r.root(),s=r.isAbsolute()&&this.opts.absolute!==!1;if(a){I=I.resolve(a==="/"&&this.opts.root!==void 0?this.opts.root:a);let G=r.rest();if(G)r=G;else{this.matches.add(I,!0,!1);continue}}if(I.isENOENT())continue;let o,d,u=!1;for(;typeof(o=r.pattern())=="string"&&(d=r.rest());)I=I.resolve(o),r=d,u=!0;if(o=r.pattern(),d=r.rest(),u){if(this.hasWalkedCache.hasWalked(I,r))continue;this.hasWalkedCache.storeWalked(I,r)}if(typeof o=="string"){let G=o===".."||o===""||o===".";this.matches.add(I.resolve(o),s,G);continue}else if(o===Ip){(!I.isSymbolicLink()||this.follow||r.checkFollowGlobstar())&&this.subwalks.add(I,r);let G=d?.pattern(),p=d?.rest();if(!d||(G===""||G===".")&&!p)this.matches.add(I,s,G===""||G===".");else if(G===".."){let h=I.parent||I;p?this.hasWalkedCache.hasWalked(h,p)||this.subwalks.add(h,p):this.matches.add(h,s,!0)}}else o instanceof RegExp&&this.subwalks.add(I,r)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new t(this.opts,this.hasWalkedCache)}filterEntries(e,l){let n=this.subwalks.get(e),I=this.child();for(let r of l)for(let a of n){let s=a.isAbsolute(),o=a.pattern(),d=a.rest();o===Ip?I.testGlobstar(r,a,d,s):o instanceof RegExp?I.testRegExp(r,o,d,s):I.testString(r,o,d,s)}return I}testGlobstar(e,l,n,I){if((this.dot||!e.name.startsWith("."))&&(l.hasMore()||this.matches.add(e,I,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,l):e.isSymbolicLink()&&(n&&l.checkFollowGlobstar()?this.subwalks.add(e,n):l.markFollowGlobstar()&&this.subwalks.add(e,l)))),n){let r=n.pattern();if(typeof r=="string"&&r!==".."&&r!==""&&r!==".")this.testString(e,r,n.rest(),I);else if(r===".."){let a=e.parent||e;this.subwalks.add(a,n)}else r instanceof RegExp&&this.testRegExp(e,r,n.rest(),I)}}testRegExp(e,l,n,I){l.test(e.name)&&(n?this.subwalks.add(e,n):this.matches.add(e,I,!1))}testString(e,l,n,I){e.isNamed(l)&&(n?this.subwalks.add(e,n):this.matches.add(e,I,!1))}};var lUl=(t,e)=>typeof t=="string"?new nP([t],e):Array.isArray(t)?new nP(t,e):t,iNe=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#t;#l;signal;maxDepth;includeChildMatches;constructor(e,l,n){if(this.patterns=e,this.path=l,this.opts=n,this.#l=!n.posix&&n.platform==="win32"?"\\":"/",this.includeChildMatches=n.includeChildMatches!==!1,(n.ignore||!this.includeChildMatches)&&(this.#t=lUl(n.ignore??[],n),!this.includeChildMatches&&typeof this.#t.add!="function")){let I="cannot ignore child matches, ignore lacks add() method.";throw new Error(I)}this.maxDepth=n.maxDepth||1/0,n.signal&&(this.signal=n.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#n(e){return this.seen.has(e)||!!this.#t?.ignored?.(e)}#I(e){return!!this.#t?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,l){if(l&&this.opts.nodir)return;let n;if(this.opts.realpath){if(n=e.realpathCached()||await e.realpath(),!n)return;e=n}let r=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&r?.isSymbolicLink()){let a=await r.realpath();a&&(a.isUnknown()||this.opts.stat)&&await a.lstat()}return this.matchCheckTest(r,l)}matchCheckTest(e,l){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!l||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#n(e)?e:void 0}matchCheckSync(e,l){if(l&&this.opts.nodir)return;let n;if(this.opts.realpath){if(n=e.realpathCached()||e.realpathSync(),!n)return;e=n}let r=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&r?.isSymbolicLink()){let a=r.realpathSync();a&&(a?.isUnknown()||this.opts.stat)&&a.lstatSync()}return this.matchCheckTest(r,l)}matchFinish(e,l){if(this.#n(e))return;if(!this.includeChildMatches&&this.#t?.add){let r=`${e.relativePosix()}/**`;this.#t.add(r)}let n=this.opts.absolute===void 0?l:this.opts.absolute;this.seen.add(e);let I=this.opts.mark&&e.isDirectory()?this.#l:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(n){let r=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(r+I)}else{let r=this.opts.posix?e.relativePosix():e.relative(),a=this.opts.dotRelative&&!r.startsWith(".."+this.#l)?"."+this.#l:"";this.matchEmit(r?a+r+I:"."+I)}}async match(e,l,n){let I=await this.matchCheck(e,n);I&&this.matchFinish(I,l)}matchSync(e,l,n){let I=this.matchCheckSync(e,n);I&&this.matchFinish(I,l)}walkCB(e,l,n){this.signal?.aborted&&n(),this.walkCB2(e,l,new rre(this.opts),n)}walkCB2(e,l,n,I){if(this.#I(e))return I();if(this.signal?.aborted&&I(),this.paused){this.onResume(()=>this.walkCB2(e,l,n,I));return}n.processPatterns(e,l);let r=1,a=()=>{--r===0&&I()};for(let[s,o,d]of n.matches.entries())this.#n(s)||(r++,this.match(s,o,d).then(()=>a()));for(let s of n.subwalkTargets()){if(this.maxDepth!==1/0&&s.depth()>=this.maxDepth)continue;r++;let o=s.readdirCached();s.calledReaddir()?this.walkCB3(s,o,n,a):s.readdirCB((d,u)=>this.walkCB3(s,u,n,a),!0)}a()}walkCB3(e,l,n,I){n=n.filterEntries(e,l);let r=1,a=()=>{--r===0&&I()};for(let[s,o,d]of n.matches.entries())this.#n(s)||(r++,this.match(s,o,d).then(()=>a()));for(let[s,o]of n.subwalks.entries())r++,this.walkCB2(s,o,n.child(),a);a()}walkCBSync(e,l,n){this.signal?.aborted&&n(),this.walkCB2Sync(e,l,new rre(this.opts),n)}walkCB2Sync(e,l,n,I){if(this.#I(e))return I();if(this.signal?.aborted&&I(),this.paused){this.onResume(()=>this.walkCB2Sync(e,l,n,I));return}n.processPatterns(e,l);let r=1,a=()=>{--r===0&&I()};for(let[s,o,d]of n.matches.entries())this.#n(s)||this.matchSync(s,o,d);for(let s of n.subwalkTargets()){if(this.maxDepth!==1/0&&s.depth()>=this.maxDepth)continue;r++;let o=s.readdirSync();this.walkCB3Sync(s,o,n,a)}a()}walkCB3Sync(e,l,n,I){n=n.filterEntries(e,l);let r=1,a=()=>{--r===0&&I()};for(let[s,o,d]of n.matches.entries())this.#n(s)||this.matchSync(s,o,d);for(let[s,o]of n.subwalks.entries())r++,this.walkCB2Sync(s,o,n.child(),a);a()}},are=class extends iNe{matches=new Set;constructor(e,l,n){super(e,l,n)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,l)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?l(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}},sre=class extends iNe{results;constructor(e,l,n){super(e,l,n),this.results=new qm({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};var IUl=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",UR=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,l){if(!l)throw new TypeError("glob options required");if(this.withFileTypes=!!l.withFileTypes,this.signal=l.signal,this.follow=!!l.follow,this.dot=!!l.dot,this.dotRelative=!!l.dotRelative,this.nodir=!!l.nodir,this.mark=!!l.mark,l.cwd?(l.cwd instanceof URL||l.cwd.startsWith("file://"))&&(l.cwd=nUl(l.cwd)):this.cwd="",this.cwd=l.cwd||"",this.root=l.root,this.magicalBraces=!!l.magicalBraces,this.nobrace=!!l.nobrace,this.noext=!!l.noext,this.realpath=!!l.realpath,this.absolute=l.absolute,this.includeChildMatches=l.includeChildMatches!==!1,this.noglobstar=!!l.noglobstar,this.matchBase=!!l.matchBase,this.maxDepth=typeof l.maxDepth=="number"?l.maxDepth:1/0,this.stat=!!l.stat,this.ignore=l.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!l.windowsPathsNoEscape||l.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(o=>o.replace(/\\/g,"/"))),this.matchBase){if(l.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(o=>o.includes("/")?o:`./**/${o}`)}if(this.pattern=e,this.platform=l.platform||IUl,this.opts={...l,platform:this.platform},l.scurry){if(this.scurry=l.scurry,l.nocase!==void 0&&l.nocase!==l.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let o=l.platform==="win32"?eP:l.platform==="darwin"?Ire:l.platform?tP:XRt;this.scurry=new o(this.cwd,{nocase:l.nocase,fs:l.fs})}this.nocase=this.scurry.nocase;let n=this.platform==="darwin"||this.platform==="win32",I={...l,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:n,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},r=this.pattern.map(o=>new tW(o,I)),[a,s]=r.reduce((o,d)=>(o[0].push(...d.set),o[1].push(...d.globParts),o),[[],[]]);this.patterns=a.map((o,d)=>{let u=s[d];if(!u)throw new Error("invalid pattern object");return new lP(o,u,0,this.platform)})}async walk(){return[...await new are(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new are(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new sre(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new sre(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};c();var Oxe=(t,e={})=>{Array.isArray(t)||(t=[t]);for(let l of t)if(new tW(l,e).hasMagic())return!0;return!1};function dNe(t,e={}){return new UR(t,e).streamSync()}function LRt(t,e={}){return new UR(t,e).stream()}function JRt(t,e={}){return new UR(t,e).walkSync()}async function kRt(t,e={}){return new UR(t,e).walk()}function uNe(t,e={}){return new UR(t,e).iterateSync()}function BRt(t,e={}){return new UR(t,e).iterate()}var rUl=dNe,aUl=Object.assign(LRt,{sync:dNe}),sUl=uNe,oUl=Object.assign(BRt,{sync:uNe}),iUl=Object.assign(JRt,{stream:dNe,iterate:uNe}),cNe=Object.assign(kRt,{glob:kRt,globSync:JRt,sync:iUl,globStream:LRt,stream:aUl,globStreamSync:dNe,streamSync:rUl,globIterate:BRt,iterate:oUl,globIterateSync:uNe,iterateSync:sUl,Glob:UR,hasMagic:Oxe,escape:Kz,unescape:OR});cNe.glob=cNe;var KRt=dt(Pxe(),1);import*as oG from"path";c();import{exec as FUl}from"child_process";import*as hNe from"os";import*as MR from"path";import{promisify as CUl}from"util";var pNe=CUl(FUl);function ire(t){return MR.isAbsolute(t)?t:t.startsWith("~")?MR.normalize(t.replace("~",hNe.homedir())):MR.resolve(t)}async function ANe(t=process.cwd()){try{let l=(await pNe("git rev-parse --show-toplevel",{cwd:t,encoding:"utf8",timeout:5e3,maxBuffer:1048576})).stdout.trim();if(l)return{gitRoot:l,found:!0}}catch{}return{gitRoot:t,found:!1}}function zRt(){let t=process.env.XDG_CONFIG_HOME,e=".copilot";return t?MR.join(t,e):MR.join(hNe.homedir(),e)}function ZNe(t){let e=hNe.homedir();return t===e?"~":t.startsWith(e+MR.sep)?t.replace(e,"~"):t}async function PRt(t){try{let{stdout:e}=await pNe("git rev-parse --abbrev-ref HEAD",{cwd:t,encoding:"utf8",timeout:5e3,maxBuffer:1048576}),l=e.trim();if(l==="HEAD"){let{stdout:n}=await pNe("git rev-parse --short HEAD",{cwd:t,encoding:"utf8",timeout:5e3,maxBuffer:1048576}),I=n.trim();return I?`detached@${I}`:null}return l||null}catch{return null}}async function jRt(t){try{let{stdout:e}=await pNe("git status --porcelain",{cwd:t,encoding:"utf8",timeout:5e3,maxBuffer:1048576});return e.trim().length>0}catch{return!1}}var nV,aP;async function qRt(t,e,l){return aP||(nV||(nV=new Map),aP=(async()=>{let n=await $Rt(t,e,l);nV.set(`${t}:${e}:${l||t}`,n)})(),aP)}async function jxe(t,e,l){let n=`${t}:${e}:${l||t}`;if(nV?.has(n)||aP&&(await aP,nV?.has(n)))return nV.get(n);let I=await $Rt(t,e,l);return nV||(nV=new Map),nV.set(n,I),I}async function $Rt(t,e,l){let n=process.env.COPILOT_CUSTOM_INSTRUCTIONS_DIRS?process.env.COPILOT_CUSTOM_INSTRUCTIONS_DIRS.split(",").map(p=>p.trim()).filter(p=>p.length>0):[],[I,r]=await Promise.all([JUl(t,l,n),BUl(t,l,n)]),a;I?a={content:I.content,source:"vscode",sourcePath:".github/instructions"}:r&&(a={content:r.content,source:"nested-agents",sourcePath:"nested AGENTS.md"});let s=e?kUl():{exists:!1,path:void 0},o=XUl(t);if(s.exists||o.exists){let p="",h="",W=!1;if(s.exists&&s.path){let y=await nE.promises.readFile(s.path,"utf-8");p+=gC(y);let R=process.env.XDG_CONFIG_HOME;R?h=`${R}/.copilot/copilot-instructions.md`:h="~/.copilot/copilot-instructions.md",W=!0}if(o.exists&&o.path){let y=await nE.promises.readFile(o.path,"utf-8");p?(p+=`
1316
1316
 
1317
1317
  # Repository-specific instructions
1318
1318
 
1319
- `,h+=" + .github/copilot-instructions.md"):h=".github/copilot-instructions.md",p+=gC(y)}return{content:p,source:"copilot",sourcePath:h,additionalInstructions:a,mergedFromHome:W}}let d=fUl(t);if(d.exists){let p=await nE.promises.readFile(d.path,"utf-8");return{content:gC(p),source:"claude",sourcePath:"CLAUDE.md",additionalInstructions:a}}let u=vUl(t);if(u.exists){let p=await nE.promises.readFile(u.path,"utf-8");return{content:gC(p),source:"codex",sourcePath:"AGENTS.md",additionalInstructions:a}}let G=HUl(t);if(G.exists){let p=await nE.promises.readFile(G.path,"utf-8");return{content:gC(p),source:"gemini",sourcePath:"GEMINI.md",additionalInstructions:a}}if(a)return I&&!r?I:r&&!I?r:I}function vUl(t){let e=oG.join(t,"AGENTS.md");return S5(e)?{exists:!0,path:e}:{exists:!1,path:void 0}}function fUl(t){let e=oG.join(t,"CLAUDE.md");return S5(e)?{exists:!0,path:e}:{exists:!1,path:void 0}}function HUl(t){let e=oG.join(t,"GEMINI.md");return S5(e)?{exists:!0,path:e}:{exists:!1,path:void 0}}function XUl(t){let e=oG.join(t,".github","copilot-instructions.md");return S5(e)?{exists:!0,path:e}:{exists:!1,path:void 0}}function kUl(){let t=oG.join(zRt(),"copilot-instructions.md");return S5(t)?{exists:!0,path:t}:{exists:!1,path:void 0}}function gNe(t,e){let l=oG.normalize(t),n=oG.normalize(e);return process.platform==="win32"||process.platform==="darwin"?l.toLowerCase()===n.toLowerCase():l===n}async function LUl(t){let e=(0,KRt.default)();e.add(["node_modules",".git","vendor","dist","build",".next",".nuxt","out","coverage"]);let l=oG.join(t,".gitignore");if(S5(l))try{let n=await nE.promises.readFile(l,"utf-8");e.add(n)}catch{}return n=>{let I=oG.relative(t,n);return!e.ignores(I)}}async function JUl(t,e,l=[]){let n=[t];e&&!gNe(e,t)&&n.push(e);for(let a of l)n.some(s=>gNe(s,a))||n.push(a);let I=[];for(let a of n){let s=oG.join(a,".github","instructions");if(S5(s))try{let o=TUl(oG.join(s,"**","*.instructions.md")),d=await cNe(o),u=await LUl(a),G=d.filter(u),p=await Promise.all(G.map(async h=>{try{if(!(await nE.promises.stat(h)).isFile())return null;let y=await nE.promises.readFile(h,"utf-8"),R=xUl(y);return{path:oG.relative(t,h),content:gC(y),metadata:R}}catch{return null}}));I.push(...p.filter(h=>h!==null))}catch{}}return I.length===0?void 0:{content:SUl(I),source:"vscode",sourcePath:".github/instructions"}}async function BUl(t,e,l=[]){let n=[t];e&&!gNe(e,t)&&n.push(e);for(let a of l)n.some(s=>gNe(s,a))||n.push(a);let I=[];for(let a of n){let s=oG.join(a,"AGENTS.md");if(S5(s))try{if(!(await nE.promises.stat(s)).isFile())continue;let d=await nE.promises.readFile(s,"utf-8"),u=oG.relative(t,s);if(u==="AGENTS.md")continue;I.push({path:u,content:gC(d)})}catch{}}return I.length===0?void 0:{content:OUl(I),source:"codex",sourcePath:"AGENTS.md (nested)"}}function xUl(t){let e=t.match(/^---\s*\n([\s\S]*?)\n---\s*\n([\s\S]*)/);if(e){let l=e[1],n=e[2].trim(),I=l.match(/applyTo:\s*(.+)/);return{applyTo:I?I[1].trim().replace(/['"]/g,""):void 0,description:n}}return{description:t.trim()}}function SUl(t){let e=[],l=[];for(let I of t){let{path:r,content:a,metadata:s}=I,o=s.applyTo,d=s.description??"";o&&o!=="**"&&o!=="**/*"&&o!=="*"?e.push(`| ${o} | '${r}' | ${d} |`):l.push(a)}let n="";return l.length>0&&(n+=l.join(`
1319
+ `,h+=" + .github/copilot-instructions.md"):h=".github/copilot-instructions.md",p+=gC(y)}return{content:p,source:"copilot",sourcePath:h,additionalInstructions:a,mergedFromHome:W}}let d=vUl(t);if(d.exists){let p=await nE.promises.readFile(d.path,"utf-8");return{content:gC(p),source:"codex",sourcePath:"AGENTS.md",additionalInstructions:a}}let u=fUl(t);if(u.exists){let p=await nE.promises.readFile(u.path,"utf-8");return{content:gC(p),source:"claude",sourcePath:"CLAUDE.md",additionalInstructions:a}}let G=HUl(t);if(G.exists){let p=await nE.promises.readFile(G.path,"utf-8");return{content:gC(p),source:"gemini",sourcePath:"GEMINI.md",additionalInstructions:a}}if(a)return I&&!r?I:r&&!I?r:I}function vUl(t){let e=oG.join(t,"AGENTS.md");return S5(e)?{exists:!0,path:e}:{exists:!1,path:void 0}}function fUl(t){let e=oG.join(t,"CLAUDE.md");return S5(e)?{exists:!0,path:e}:{exists:!1,path:void 0}}function HUl(t){let e=oG.join(t,"GEMINI.md");return S5(e)?{exists:!0,path:e}:{exists:!1,path:void 0}}function XUl(t){let e=oG.join(t,".github","copilot-instructions.md");return S5(e)?{exists:!0,path:e}:{exists:!1,path:void 0}}function kUl(){let t=oG.join(zRt(),"copilot-instructions.md");return S5(t)?{exists:!0,path:t}:{exists:!1,path:void 0}}function gNe(t,e){let l=oG.normalize(t),n=oG.normalize(e);return process.platform==="win32"||process.platform==="darwin"?l.toLowerCase()===n.toLowerCase():l===n}async function LUl(t){let e=(0,KRt.default)();e.add(["node_modules",".git","vendor","dist","build",".next",".nuxt","out","coverage"]);let l=oG.join(t,".gitignore");if(S5(l))try{let n=await nE.promises.readFile(l,"utf-8");e.add(n)}catch{}return n=>{let I=oG.relative(t,n);return!e.ignores(I)}}async function JUl(t,e,l=[]){let n=[t];e&&!gNe(e,t)&&n.push(e);for(let a of l)n.some(s=>gNe(s,a))||n.push(a);let I=[];for(let a of n){let s=oG.join(a,".github","instructions");if(S5(s))try{let o=TUl(oG.join(s,"**","*.instructions.md")),d=await cNe(o),u=await LUl(a),G=d.filter(u),p=await Promise.all(G.map(async h=>{try{if(!(await nE.promises.stat(h)).isFile())return null;let y=await nE.promises.readFile(h,"utf-8"),R=xUl(y);return{path:oG.relative(t,h),content:gC(y),metadata:R}}catch{return null}}));I.push(...p.filter(h=>h!==null))}catch{}}return I.length===0?void 0:{content:SUl(I),source:"vscode",sourcePath:".github/instructions"}}async function BUl(t,e,l=[]){let n=[t];e&&!gNe(e,t)&&n.push(e);for(let a of l)n.some(s=>gNe(s,a))||n.push(a);let I=[];for(let a of n){let s=oG.join(a,"AGENTS.md");if(S5(s))try{if(!(await nE.promises.stat(s)).isFile())continue;let d=await nE.promises.readFile(s,"utf-8"),u=oG.relative(t,s);if(u==="AGENTS.md")continue;I.push({path:u,content:gC(d)})}catch{}}return I.length===0?void 0:{content:OUl(I),source:"codex",sourcePath:"AGENTS.md (nested)"}}function xUl(t){let e=t.match(/^---\s*\n([\s\S]*?)\n---\s*\n([\s\S]*)/);if(e){let l=e[1],n=e[2].trim(),I=l.match(/applyTo:\s*(.+)/);return{applyTo:I?I[1].trim().replace(/['"]/g,""):void 0,description:n}}return{description:t.trim()}}function SUl(t){let e=[],l=[];for(let I of t){let{path:r,content:a,metadata:s}=I,o=s.applyTo,d=s.description??"";o&&o!=="**"&&o!=="**/*"&&o!=="*"?e.push(`| ${o} | '${r}' | ${d} |`):l.push(a)}let n="";return l.length>0&&(n+=l.join(`
1320
1320
 
1321
1321
  `)+`
1322
1322