(q,K)
| 3052 | `)}`)}}}function fAK(q,K,_,z){let Y=q.id??`cell-${K}`,$={cellType:q.cell_type,source:Array.isArray(q.source)?q.source.join(""):q.source,execution_count:q.cell_type==="code"?q.execution_count||void 0:void 0,cell_id:Y};if(q.cell_type==="code")$.language=_;if(q.cell_type==="code"&&q.outputs?.length){let A=q.outputs.map(Gsz);if(!z&&fsz(A))$.outputs=[{output_type:"stream",text:`Outputs are too large to include. Use ${_q} with: cat <notebook_path> | jq '.cells[${K}].outputs'`}];else $.outputs=A}return $}function Tsz(q){let K=[];if(q.cellType!=="code")K.push(`<cell_type>${q.cellType}</cell_type>`);if(q.language!=="python"&&q.cellType==="code")K.push(`<language>${q.language}</language>`);return{text:`<cell id="${q.cell_id}">${K.join("")}${q.source}</cell id="${q.cell_id}">`,type:"text"}}function vsz(q){let K=[];if(q.text)K.push({text:` |
| 3053 | ${q.text}`,type:"text"});if(q.image)K.push({type:"image",source:{data:q.image.image_data,media_type:q.image.media_type,type:"base64"}});return K}function ksz(q){let K=Tsz(q),_=q.outputs?.flatMap(vsz);return[K,..._??[]]}async function ZAK(q,K){let _=lq(q),Y=(await X8().readFileBytes(_)).toString("utf-8"),$=r8(Y),A=$.metadata.language_info?.name??"python";if(K){let O=$.cells.find((w)=>w.id===K);if(!O)throw Error(`Cell with ID "${K}" not found in notebook`);return[fAK(O,$.cells.indexOf(O),A,!0)]}return $.cells.map((O,w)=>fAK(O,w,A,!1))}function GAK(q,K){let _=q.flatMap(ksz);return{tool_use_id:K,type:"tool_result",content:_.reduce((z,Y)=>{if(z.length===0)return[Y];let $=z[z.length-1];if($&&$.type==="text"&&Y.type==="text")return $.text+=` |
| 3054 | `+Y.text,z;return z.push(Y),z},[])}}function Y88(q){let K=q.match(/^cell-(\d+)$/);if(K&&K[1]){let _=parseInt(K[1],10);return isNaN(_)?void 0:_}return}var Dsz=1e4;var ku8=y(()=>{NI8();e7();dz();l8()});var TAK="Replace the contents of a specific cell in a Jupyter notebook.",vAK="Completely replaces the contents of a specific cell in a Jupyter notebook (.ipynb file) with new source. Jupyter notebooks are interactive documents that combine code, text, and visualizations, commonly used for data analysis and scientific computing. The notebook_path parameter must be an absolute path, not a relative path. The cell_number is 0-indexed. Use edit_mode=insert to add a new cell at the index specified by cell_number. Use edit_mode=delete to delete the cell at the index specified by cell_number.";import{relative as Vsz}from"path";function kAK(q){let K=z6(20),{notebook_path:_,cell_id:z,new_source:Y,cell_type:$,edit_mode:A,verbose:O}=q,w=A===void 0?"replace":A,j=w==="delete"?"delete":`${w} cell in`,H;if(K[0]!==j)H=g0.createElement(k,{color:"subtle"},"User rejected ",j," "),K[0]=j,K[1]=H;else H=K[1];let J;if(K[2]!==_||K[3]!==O)J=O?_:Vsz(Z8(),_),K[2]=_,K[3]=O,K[4]=J;else J=K[4];let M;if(K[5]!==J)M=g0.createElement(k,{bold:!0,color:"subtle"},J),K[5]=J,K[6]=M;else M=K[6];let X;if(K[7]!==z)X=g0.createElement(k,{color:"subtle"}," at cell ",z),K[7]=z,K[8]=X;else X=K[8];let P;if(K[9]!==H||K[10]!==M||K[11]!==X)P=g0.createElement(u,{flexDirection:"row"},H,M,X),K[9]=H,K[10]=M,K[11]=X,K[12]=P;else P=K[12];let W;if(K[13]!==$||K[14]!==w||K[15]!==Y)W=w!=="delete"&&g0.createElement(u,{marginTop:1,flexDirection:"column"},g0.createElement(zy,{code:Y,filePath:$==="markdown"?"file.md":"file.py",dim:!0})),K[13]=$,K[14]=w,K[15]=Y,K[16]=W;else W=K[16];let D;if(K[17]!==P||K[18]!==W)D=g0.createElement(s8,null,g0.createElement(u,{flexDirection:"column"},P,W)),K[17]=P,K[18]=W,K[19]=D;else D=K[19];return D}var g0;var VAK=y(()=>{q8();I7();s6();gj6();gK();g0=O6(D6(),1)});function Fs1(q){if(!q?.notebook_path)return null;return _3(q.notebook_path)}function NAK({notebook_path:q,cell_id:K,new_source:_,cell_type:z,edit_mode:Y},{verbose:$}){if(!q||!_||!z)return null;let A=$?q:_3(q);if($)return Hz.createElement(Hz.Fragment,null,Hz.createElement(x0,{filePath:q},A),`@${K}, content: ${_.slice(0,30)}…, cell_type: ${z}, edit_mode: ${Y??"replace"}`);return Hz.createElement(Hz.Fragment,null,Hz.createElement(x0,{filePath:q},A),`@${K}`)}function yAK(q,{verbose:K}){return Hz.createElement(kAK,{notebook_path:q.notebook_path,cell_id:q.cell_id,new_source:q.new_source,cell_type:q.cell_type,edit_mode:q.edit_mode,verbose:K})}function EAK(q,{verbose:K}){if(!K&&typeof q==="string"&&o4(q,"tool_use_error"))return Hz.createElement(s8,null,Hz.createElement(k,{color:"error"},"Error editing notebook"));return Hz.createElement(Y2,{result:q,verbose:K})}function LAK({cell_id:q,new_source:K,error:_}){if(_)return Hz.createElement(s8,null,Hz.createElement(k,{color:"error"},_));return Hz.createElement(s8,null,Hz.createElement(u,{flexDirection:"column"},Hz.createElement(k,null,"Updated cell ",Hz.createElement(k,{bold:!0},q),":"),Hz.createElement(u,{marginLeft:2},Hz.createElement(zy,{code:K,filePath:"notebook.py"}))))}var Hz;var RAK=y(()=>{i1();bN();YK6();gj6();gK();VAK();s6();bK();Hz=O6(D6(),1)});import{extname as Nsz,isAbsolute as hAK,resolve as SAK}from"path";var ysz,Esz,qp;var eL6=y(()=>{oN();x7();Bq();I7();y8();bK();ZE();vO();ku8();Tz();l8();RAK();ysz=B6(()=>L.strictObject({notebook_path:L.string().describe("The absolute path to the Jupyter notebook file to edit (must be absolute, not relative)"),cell_id:L.string().optional().describe("The ID of the cell to edit. When inserting a new cell, the new cell will be inserted after the cell with this ID, or at the beginning if not specified."),new_source:L.string().describe("The new source for the cell"),cell_type:L.enum(["code","markdown"]).optional().describe("The type of the cell (code or markdown). If not specified, it defaults to the current cell type. If using edit_mode=insert, this is required."),edit_mode:L.enum(["replace","insert","delete"]).optional().describe("The type of edit to make (replace, insert, delete). Defaults to replace.")})),Esz=B6(()=>L.object({new_source:L.string().describe("The new source code that was written to the cell"),cell_id:L.string().optional().describe("The ID of the cell that was edited"),cell_type:L.enum(["code","markdown"]).describe("The type of the cell"),language:L.string().describe("The programming language of the notebook"),edit_mode:L.string().describe("The edit mode that was used"),error:L.string().optional().describe("Error message if the operation failed"),notebook_path:L.string().describe("The path to the notebook file"),original_file:L.string().describe("The original notebook content before modification"),updated_file:L.string().describe("The updated notebook content after modification")})),qp=sq({name:nW,searchHint:"edit Jupyter notebook cells (.ipynb)",maxResultSizeChars:1e5,shouldDefer:!0,async description(){return TAK},async prompt(){return vAK},userFacingName(){return"Edit Notebook"},getToolUseSummary:Fs1,getActivityDescription(q){let K=Fs1(q);return K?`Editing notebook ${K}`:"Editing notebook"},get inputSchema(){return ysz()},get outputSchema(){return Esz()},toAutoClassifierInput(q){{let K=q.edit_mode??"replace";return`${q.notebook_path} ${K}: ${q.new_source}`}return""},getPath(q){return q.notebook_path},async checkPermissions(q,K){let _=K.getAppState();return Qj6(qp,q,_.toolPermissionContext)},mapToolResultToToolResultBlockParam({cell_id:q,edit_mode:K,new_source:_,error:z},Y){if(z)return{tool_use_id:Y,type:"tool_result",content:z,is_error:!0};switch(K){case"replace":return{tool_use_id:Y,type:"tool_result",content:`Updated cell ${q} with ${_}`};case"insert":return{tool_use_id:Y,type:"tool_result",content:`Inserted cell ${q} with ${_}`};case"delete":return{tool_use_id:Y,type:"tool_result",content:`Deleted cell ${q}`};default:return{tool_use_id:Y,type:"tool_result",content:"Unknown edit mode"}}},renderToolUseMessage:NAK,renderToolUseRejectedMessage:yAK,renderToolUseErrorMessage:EAK,renderToolResultMessage:LAK,async validateInput({notebook_path:q,cell_type:K,cell_id:_,edit_mode:z="replace"},Y){let $=hAK(q)?q:SAK(Z8(),q);if($.startsWith("\\\\")||$.startsWith("//"))return{result:!0};if(Nsz($)!==".ipynb")return{result:!1,message:"File must be a Jupyter notebook (.ipynb file). For editing other file types, use the FileEdit tool.",errorCode:2};if(z!=="replace"&&z!=="insert"&&z!=="delete")return{result:!1,message:"Edit mode must be replace, insert, or delete.",errorCode:4};if(z==="insert"&&!K)return{result:!1,message:"Cell type is required when using edit_mode=insert.",errorCode:5};let A=Y.readFileState.get($);if(!A)return{result:!1,message:"File has not been read yet. Read it first before writing to it.",errorCode:9};if(ik($)>A.timestamp)return{result:!1,message:"File has been modified since read, either by the user or by a linter. Read it again before attempting to write it.",errorCode:10};let O;try{O=vB($).content}catch(j){if(_7(j))return{result:!1,message:"Notebook file does not exist.",errorCode:1};throw j}let w=m5(O);if(!w)return{result:!1,message:"Notebook is not valid JSON.",errorCode:6};if(!_){if(z!=="insert")return{result:!1,message:"Cell ID must be specified when not inserting a new cell.",errorCode:7}}else if(w.cells.findIndex((H)=>H.id===_)===-1){let H=Y88(_);if(H!==void 0){if(!w.cells[H])return{result:!1,message:`Cell with index ${H} does not exist in notebook.`,errorCode:7}}else return{result:!1,message:`Cell with ID "${_}" not found in notebook.`,errorCode:8}}return{result:!0}},async call({notebook_path:q,new_source:K,cell_id:_,cell_type:z,edit_mode:Y},{readFileState:$,updateFileHistoryState:A},O,w){let j=hAK(q)?q:SAK(Z8(),q);if(e$())await OK6(A,j,w.uuid);try{let{content:H,encoding:J,lineEndings:M}=vB(j),X;try{X=r8(H)}catch{return{data:{new_source:K,cell_type:z??"code",language:"python",edit_mode:"replace",error:"Notebook is not valid JSON.",cell_id:_,notebook_path:j,original_file:"",updated_file:""}}}let P;if(!_)P=0;else{if(P=X.cells.findIndex((v)=>v.id===_),P===-1){let v=Y88(_);if(v!==void 0)P=v}if(Y==="insert")P+=1}let W=Y;if(W==="replace"&&P===X.cells.length){if(W="insert",!z)z="code"}let D=X.metadata.language_info?.name??"python",f=void 0;if(X.nbformat>4||X.nbformat===4&&X.nbformat_minor>=5){if(W==="insert")f=Math.random().toString(36).substring(2,15);else if(_!==null)f=_}if(W==="delete")X.cells.splice(P,1);else if(W==="insert"){let v;if(z==="markdown")v={cell_type:"markdown",id:f,source:K,metadata:{}};else v={cell_type:"code",id:f,source:K,metadata:{},execution_count:null,outputs:[]};X.cells.splice(P,0,v)}else{let v=X.cells[P];if(v.source=K,v.cell_type==="code")v.execution_count=null,v.outputs=[];if(z&&z!==v.cell_type)v.cell_type=z}let Z=g6(X,null,1);return me(j,Z,J,M),$.set(j,{content:Z,timestamp:ik(j),offset:void 0,limit:void 0}),{data:{new_source:K,cell_type:z??"code",language:D,edit_mode:W??"replace",cell_id:f||void 0,error:"",notebook_path:j,original_file:H,updated_file:Z}}}catch(H){if(H instanceof Error)return{data:{new_source:K,cell_type:z??"code",language:"python",edit_mode:"replace",error:H.message,cell_id:_,notebook_path:j,original_file:"",updated_file:""}};return{data:{new_source:K,cell_type:z??"code",language:"python",edit_mode:"replace",error:"Unknown error occurred while editing notebook",cell_id:_,notebook_path:j,original_file:"",updated_file:""}}}}})});function Vu8(q,K){if(Rsz.has(q))return!0;let _=hsz.get(q);if(_){for(let z of _)if(K===z||K.startsWith(z+"/"))return!0}return!1}var Lsz,Rsz,hsz;var Us1=y(()=>{Lsz=new Set(["platform.claude.com","code.claude.com","modelcontextprotocol.io","github.com/anthropics","agentskills.io","docs.python.org","en.cppreference.com","docs.oracle.com","learn.microsoft.com","developer.mozilla.org","go.dev","pkg.go.dev","www.php.net","docs.swift.org","kotlinlang.org","ruby-doc.org","doc.rust-lang.org","www.typescriptlang.org","react.dev","angular.io","vuejs.org","nextjs.org","expressjs.com","nodejs.org","bun.sh","jquery.com","getbootstrap.com","tailwindcss.com","d3js.org","threejs.org","redux.js.org","webpack.js.org","jestjs.io","reactrouter.com","docs.djangoproject.com","flask.palletsprojects.com","fastapi.tiangolo.com","pandas.pydata.org","numpy.org","www.tensorflow.org","pytorch.org","scikit-learn.org","matplotlib.org","requests.readthedocs.io","jupyter.org","laravel.com","symfony.com","wordpress.org","docs.spring.io","hibernate.org","tomcat.apache.org","gradle.org","maven.apache.org","asp.net","dotnet.microsoft.com","nuget.org","blazor.net","reactnative.dev","docs.flutter.dev","developer.apple.com","developer.android.com","keras.io","spark.apache.org","huggingface.co","www.kaggle.com","www.mongodb.com","redis.io","www.postgresql.org","dev.mysql.com","www.sqlite.org","graphql.org","prisma.io","docs.aws.amazon.com","cloud.google.com","learn.microsoft.com","kubernetes.io","www.docker.com","www.terraform.io","www.ansible.com","vercel.com/docs","docs.netlify.com","devcenter.heroku.com","cypress.io","selenium.dev","docs.unity.com","docs.unrealengine.com","git-scm.com","nginx.org","httpd.apache.org"]),{HOSTNAME_ONLY:Rsz,PATH_PREFIXES:hsz}=(()=>{let q=new Set,K=new Map;for(let _ of Lsz){let z=_.indexOf("/");if(z===-1)q.add(_);else{let Y=_.slice(0,z),$=_.slice(z),A=K.get(Y);if(A)A.push($);else K.set(Y,[$])}}return{HOSTNAME_ONLY:q,PATH_PREFIXES:K}})()});function CAK({url:q,prompt:K},{verbose:_}){if(!q)return null;if(_)return`url: "${q}"${_&&K?`, prompt: "${K}"`:""}`;return q}function bAK(){return Vb.default.createElement(s8,{height:1},Vb.default.createElement(k,{dimColor:!0},"Fetching…"))}function xAK({bytes:q,code:K,codeText:_,result:z},Y,{verbose:$}){let A=m4(q);if($)return Vb.default.createElement(u,{flexDirection:"column"},Vb.default.createElement(s8,{height:1},Vb.default.createElement(k,null,"Received ",Vb.default.createElement(k,{bold:!0},A)," (",K," ",_,")")),Vb.default.createElement(u,{flexDirection:"column"},Vb.default.createElement(k,null,z)));return Vb.default.createElement(s8,{height:1},Vb.default.createElement(k,null,"Received ",Vb.default.createElement(k,{bold:!0},A)," (",K," ",_,")"))}function Qs1(q){if(!q?.url)return null;return d5(q.url,PN)}var Vb;var IAK=y(()=>{gK();s6();U7();Vb=O6(D6(),1)});var qR6=m((yjw,uAK)=>{uAK.exports=nj6;nj6.CAPTURING_PHASE=1;nj6.AT_TARGET=2;nj6.BUBBLING_PHASE=3;function nj6(q,K){if(this.type="",this.target=null,this.currentTarget=null,this.eventPhase=nj6.AT_TARGET,this.bubbles=!1,this.cancelable=!1,this.isTrusted=!1,this.defaultPrevented=!1,this.timeStamp=Date.now(),this._propagationStopped=!1,this._immediatePropagationStopped=!1,this._initialized=!0,this._dispatching=!1,q)this.type=q;if(K)for(var _ in K)this[_]=K[_]}nj6.prototype=Object.create(Object.prototype,{constructor:{value:nj6},stopPropagation:{value:function(){this._propagationStopped=!0}},stopImmediatePropagation:{value:function(){this._propagationStopped=!0,this._immediatePropagationStopped=!0}},preventDefault:{value:function(){if(this.cancelable)this.defaultPrevented=!0}},initEvent:{value:function(K,_,z){if(this._initialized=!0,this._dispatching)return;this._propagationStopped=!1,this._immediatePropagationStopped=!1,this.defaultPrevented=!1,this.isTrusted=!1,this.target=null,this.type=K,this.bubbles=_,this.cancelable=z}}})});var cs1=m((Ejw,pAK)=>{var mAK=qR6();pAK.exports=ds1;function ds1(){mAK.call(this),this.view=null,this.detail=0}ds1.prototype=Object.create(mAK.prototype,{constructor:{value:ds1},initUIEvent:{value:function(q,K,_,z,Y){this.initEvent(q,K,_),this.view=z,this.detail=Y}}})});var ns1=m((Ljw,gAK)=>{var BAK=cs1();gAK.exports=ls1;function ls1(){BAK.call(this),this.screenX=this.screenY=this.clientX=this.clientY=0,this.ctrlKey=this.altKey=this.shiftKey=this.metaKey=!1,this.button=0,this.buttons=1,this.relatedTarget=null}ls1.prototype=Object.create(BAK.prototype,{constructor:{value:ls1},initMouseEvent:{value:function(q,K,_,z,Y,$,A,O,w,j,H,J,M,X,P){switch(this.initEvent(q,K,_,z,Y),this.screenX=$,this.screenY=A,this.clientX=O,this.clientY=w,this.ctrlKey=j,this.altKey=H,this.shiftKey=J,this.metaKey=M,this.button=X,X){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2;break;default:this.buttons=0;break}this.relatedTarget=P}},getModifierState:{value:function(q){switch(q){case"Alt":return this.altKey;case"Control":return this.ctrlKey;case"Shift":return this.shiftKey;case"Meta":return this.metaKey;default:return!1}}}})});var Eu8=m((Rjw,UAK)=>{UAK.exports=yu8;var Ssz=1,Csz=3,bsz=4,xsz=5,Isz=7,usz=8,msz=9,psz=11,Bsz=12,gsz=13,Fsz=14,Usz=15,Qsz=17,dsz=18,csz=19,lsz=20,nsz=21,isz=22,rsz=23,osz=24,asz=25,ssz=[null,"INDEX_SIZE_ERR",null,"HIERARCHY_REQUEST_ERR","WRONG_DOCUMENT_ERR","INVALID_CHARACTER_ERR",null,"NO_MODIFICATION_ALLOWED_ERR","NOT_FOUND_ERR","NOT_SUPPORTED_ERR","INUSE_ATTRIBUTE_ERR","INVALID_STATE_ERR","SYNTAX_ERR","INVALID_MODIFICATION_ERR","NAMESPACE_ERR","INVALID_ACCESS_ERR",null,"TYPE_MISMATCH_ERR","SECURITY_ERR","NETWORK_ERR","ABORT_ERR","URL_MISMATCH_ERR","QUOTA_EXCEEDED_ERR","TIMEOUT_ERR","INVALID_NODE_TYPE_ERR","DATA_CLONE_ERR"],tsz=[null,"INDEX_SIZE_ERR (1): the index is not in the allowed range",null,"HIERARCHY_REQUEST_ERR (3): the operation would yield an incorrect nodes model","WRONG_DOCUMENT_ERR (4): the object is in the wrong Document, a call to importNode is required","INVALID_CHARACTER_ERR (5): the string contains invalid characters",null,"NO_MODIFICATION_ALLOWED_ERR (7): the object can not be modified","NOT_FOUND_ERR (8): the object can not be found here","NOT_SUPPORTED_ERR (9): this operation is not supported","INUSE_ATTRIBUTE_ERR (10): setAttributeNode called on owned Attribute","INVALID_STATE_ERR (11): the object is in an invalid state","SYNTAX_ERR (12): the string did not match the expected pattern","INVALID_MODIFICATION_ERR (13): the object can not be modified in this way","NAMESPACE_ERR (14): the operation is not allowed by Namespaces in XML","INVALID_ACCESS_ERR (15): the object does not support the operation or argument",null,"TYPE_MISMATCH_ERR (17): the type of the object does not match the expected type","SECURITY_ERR (18): the operation is insecure","NETWORK_ERR (19): a network error occurred","ABORT_ERR (20): the user aborted an operation","URL_MISMATCH_ERR (21): the given URL does not match another URL","QUOTA_EXCEEDED_ERR (22): the quota has been exceeded","TIMEOUT_ERR (23): a timeout occurred","INVALID_NODE_TYPE_ERR (24): the supplied node is invalid or has an invalid ancestor for this operation","DATA_CLONE_ERR (25): the object can not be cloned."],FAK={INDEX_SIZE_ERR:Ssz,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:Csz,WRONG_DOCUMENT_ERR:bsz,INVALID_CHARACTER_ERR:xsz,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:Isz,NOT_FOUND_ERR:usz,NOT_SUPPORTED_ERR:msz,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:psz,SYNTAX_ERR:Bsz,INVALID_MODIFICATION_ERR:gsz,NAMESPACE_ERR:Fsz,INVALID_ACCESS_ERR:Usz,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:Qsz,SECURITY_ERR:dsz,NETWORK_ERR:csz,ABORT_ERR:lsz,URL_MISMATCH_ERR:nsz,QUOTA_EXCEEDED_ERR:isz,TIMEOUT_ERR:rsz,INVALID_NODE_TYPE_ERR:osz,DATA_CLONE_ERR:asz};function yu8(q){Error.call(this),Error.captureStackTrace(this,this.constructor),this.code=q,this.message=tsz[q],this.name=ssz[q]}yu8.prototype.__proto__=Error.prototype;for($88 in FAK)Nu8={value:FAK[$88]},Object.defineProperty(yu8,$88,Nu8),Object.defineProperty(yu8.prototype,$88,Nu8);var Nu8,$88});var Lu8=m((esz)=>{esz.isApiWritable=!globalThis.__domino_frozen__});var xJ=m((_tz)=>{var bJ=Eu8(),yM=bJ,Ktz=Lu8().isApiWritable;_tz.NAMESPACE={HTML:"http://www.w3.org/1999/xhtml",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink"};_tz.IndexSizeError=function(){throw new bJ(yM.INDEX_SIZE_ERR)};_tz.HierarchyRequestError=function(){throw new bJ(yM.HIERARCHY_REQUEST_ERR)};_tz.WrongDocumentError=function(){throw new bJ(yM.WRONG_DOCUMENT_ERR)};_tz.InvalidCharacterError=function(){throw new bJ(yM.INVALID_CHARACTER_ERR)};_tz.NoModificationAllowedError=function(){throw new bJ(yM.NO_MODIFICATION_ALLOWED_ERR)};_tz.NotFoundError=function(){throw new bJ(yM.NOT_FOUND_ERR)};_tz.NotSupportedError=function(){throw new bJ(yM.NOT_SUPPORTED_ERR)};_tz.InvalidStateError=function(){throw new bJ(yM.INVALID_STATE_ERR)};_tz.SyntaxError=function(){throw new bJ(yM.SYNTAX_ERR)};_tz.InvalidModificationError=function(){throw new bJ(yM.INVALID_MODIFICATION_ERR)};_tz.NamespaceError=function(){throw new bJ(yM.NAMESPACE_ERR)};_tz.InvalidAccessError=function(){throw new bJ(yM.INVALID_ACCESS_ERR)};_tz.TypeMismatchError=function(){throw new bJ(yM.TYPE_MISMATCH_ERR)};_tz.SecurityError=function(){throw new bJ(yM.SECURITY_ERR)};_tz.NetworkError=function(){throw new bJ(yM.NETWORK_ERR)};_tz.AbortError=function(){throw new bJ(yM.ABORT_ERR)};_tz.UrlMismatchError=function(){throw new bJ(yM.URL_MISMATCH_ERR)};_tz.QuotaExceededError=function(){throw new bJ(yM.QUOTA_EXCEEDED_ERR)};_tz.TimeoutError=function(){throw new bJ(yM.TIMEOUT_ERR)};_tz.InvalidNodeTypeError=function(){throw new bJ(yM.INVALID_NODE_TYPE_ERR)};_tz.DataCloneError=function(){throw new bJ(yM.DATA_CLONE_ERR)};_tz.nyi=function(){throw Error("NotYetImplemented")};_tz.shouldOverride=function(){throw Error("Abstract function; should be overriding in subclass.")};_tz.assert=function(q,K){if(!q)throw Error("Assertion failed: "+(K||"")+` |
| 3055 | `+Error().stack)};_tz.expose=function(q,K){for(var _ in q)Object.defineProperty(K.prototype,_,{value:q[_],writable:Ktz})};_tz.merge=function(q,K){for(var _ in K)q[_]=K[_]};_tz.documentOrder=function(q,K){return 3-(q.compareDocumentPosition(K)&6)};_tz.toASCIILowerCase=function(q){return q.replace(/[A-Z]+/g,function(K){return K.toLowerCase()})};_tz.toASCIIUpperCase=function(q){return q.replace(/[a-z]+/g,function(K){return K.toUpperCase()})}});var is1=m((Cjw,dAK)=>{var ij6=qR6(),xtz=ns1(),Itz=xJ();dAK.exports=QAK;function QAK(){}QAK.prototype={addEventListener:function(K,_,z){if(!_)return;if(z===void 0)z=!1;if(!this._listeners)this._listeners=Object.create(null);if(!this._listeners[K])this._listeners[K]=[];var Y=this._listeners[K];for(var $=0,A=Y.length;$<A;$++){var O=Y[$];if(O.listener===_&&O.capture===z)return}var w={listener:_,capture:z};if(typeof _==="function")w.f=_;Y.push(w)},removeEventListener:function(K,_,z){if(z===void 0)z=!1;if(this._listeners){var Y=this._listeners[K];if(Y)for(var $=0,A=Y.length;$<A;$++){var O=Y[$];if(O.listener===_&&O.capture===z){if(Y.length===1)this._listeners[K]=void 0;else Y.splice($,1);return}}}},dispatchEvent:function(K){return this._dispatchEvent(K,!1)},_dispatchEvent:function(K,_){if(typeof _!=="boolean")_=!1;function z(j,H){var{type:J,eventPhase:M}=H;if(H.currentTarget=j,M!==ij6.CAPTURING_PHASE&&j._handlers&&j._handlers[J]){var X=j._handlers[J],P;if(typeof X==="function")P=X.call(H.currentTarget,H);else{var W=X.handleEvent;if(typeof W!=="function")throw TypeError("handleEvent property of event handler object isnot a function.");P=W.call(X,H)}switch(H.type){case"mouseover":if(P===!0)H.preventDefault();break;case"beforeunload":default:if(P===!1)H.preventDefault();break}}var D=j._listeners&&j._listeners[J];if(!D)return;D=D.slice();for(var f=0,G=D.length;f<G;f++){if(H._immediatePropagationStopped)return;var Z=D[f];if(M===ij6.CAPTURING_PHASE&&!Z.capture||M===ij6.BUBBLING_PHASE&&Z.capture)continue;if(Z.f)Z.f.call(H.currentTarget,H);else{var T=Z.listener.handleEvent;if(typeof T!=="function")throw TypeError("handleEvent property of event listener object is not a function.");T.call(Z.listener,H)}}}if(!K._initialized||K._dispatching)Itz.InvalidStateError();K.isTrusted=_,K._dispatching=!0,K.target=this;var Y=[];for(var $=this.parentNode;$;$=$.parentNode)Y.push($);K.eventPhase=ij6.CAPTURING_PHASE;for(var A=Y.length-1;A>=0;A--)if(z(Y[A],K),K._propagationStopped)break;if(!K._propagationStopped)K.eventPhase=ij6.AT_TARGET,z(this,K);if(K.bubbles&&!K._propagationStopped){K.eventPhase=ij6.BUBBLING_PHASE;for(var O=0,w=Y.length;O<w;O++)if(z(Y[O],K),K._propagationStopped)break}if(K._dispatching=!1,K.eventPhase=ij6.AT_TARGET,K.currentTarget=null,_&&!K.defaultPrevented&&K instanceof xtz)switch(K.type){case"mousedown":this._armed={x:K.clientX,y:K.clientY,t:K.timeStamp};break;case"mouseout":case"mouseover":this._armed=null;break;case"mouseup":if(this._isClick(K))this._doClick(K);this._armed=null;break}return!K.defaultPrevented},_isClick:function(q){return this._armed!==null&&q.type==="mouseup"&&q.isTrusted&&q.button===0&&q.timeStamp-this._armed.t<1000&&Math.abs(q.clientX-this._armed.x)<10&&Math.abs(q.clientY-this._armed.Y)<10},_doClick:function(q){if(this._click_in_progress)return;this._click_in_progress=!0;var K=this;while(K&&!K._post_click_activation_steps)K=K.parentNode;if(K&&K._pre_click_activation_steps)K._pre_click_activation_steps();var _=this.ownerDocument.createEvent("MouseEvent");_.initMouseEvent("click",!0,!0,this.ownerDocument.defaultView,1,q.screenX,q.screenY,q.clientX,q.clientY,q.ctrlKey,q.altKey,q.shiftKey,q.metaKey,q.button,null);var z=this._dispatchEvent(_,!0);if(K){if(z){if(K._post_click_activation_steps)K._post_click_activation_steps(_)}else if(K._cancelled_activation_steps)K._cancelled_activation_steps()}},_setEventHandler:function(K,_){if(!this._handlers)this._handlers=Object.create(null);this._handlers[K]=_},_getEventHandler:function(K){return this._handlers&&this._handlers[K]||null}}});var rs1=m((bjw,cAK)=>{var Va=xJ(),Nb=cAK.exports={valid:function(q){return Va.assert(q,"list falsy"),Va.assert(q._previousSibling,"previous falsy"),Va.assert(q._nextSibling,"next falsy"),!0},insertBefore:function(q,K){Va.assert(Nb.valid(q)&&Nb.valid(K));var _=q,z=q._previousSibling,Y=K,$=K._previousSibling;_._previousSibling=$,z._nextSibling=Y,$._nextSibling=_,Y._previousSibling=z,Va.assert(Nb.valid(q)&&Nb.valid(K))},replace:function(q,K){if(Va.assert(Nb.valid(q)&&(K===null||Nb.valid(K))),K!==null)Nb.insertBefore(K,q);Nb.remove(q),Va.assert(Nb.valid(q)&&(K===null||Nb.valid(K)))},remove:function(q){Va.assert(Nb.valid(q));var K=q._previousSibling;if(K===q)return;var _=q._nextSibling;K._nextSibling=_,_._previousSibling=K,q._previousSibling=q._nextSibling=q,Va.assert(Nb.valid(q))}}});var os1=m((xjw,tAK)=>{tAK.exports={serializeOne:Utz,ɵescapeMatchingClosingTag:oAK,ɵescapeClosingCommentTag:aAK,ɵescapeProcessingInstructionContent:sAK};var rAK=xJ(),rj6=rAK.NAMESPACE,lAK={STYLE:!0,SCRIPT:!0,XMP:!0,IFRAME:!0,NOEMBED:!0,NOFRAMES:!0,PLAINTEXT:!0},utz={area:!0,base:!0,basefont:!0,bgsound:!0,br:!0,col:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},mtz={},nAK=/[&<>\u00A0]/g,iAK=/[&"<>\u00A0]/g;function ptz(q){if(!nAK.test(q))return q;return q.replace(nAK,(K)=>{switch(K){case"&":return"&";case"<":return"<";case">":return">";case" ":return" "}})}function Btz(q){if(!iAK.test(q))return q;return q.replace(iAK,(K)=>{switch(K){case"<":return"<";case">":return">";case"&":return"&";case'"':return""";case" ":return" "}})}function gtz(q){var K=q.namespaceURI;if(!K)return q.localName;if(K===rj6.XML)return"xml:"+q.localName;if(K===rj6.XLINK)return"xlink:"+q.localName;if(K===rj6.XMLNS)if(q.localName==="xmlns")return"xmlns";else return"xmlns:"+q.localName;return q.name}function oAK(q,K){let _="</"+K;if(!q.toLowerCase().includes(_))return q;let z=[...q],Y=q.matchAll(new RegExp(_,"ig"));for(let $ of Y)z[$.index]="<";return z.join("")}var Ftz=/--!?>/;function aAK(q){if(!Ftz.test(q))return q;return q.replace(/(--\!?)>/g,"$1>")}function sAK(q){return q.includes(">")?q.replaceAll(">",">"):q}function Utz(q,K){var _="";switch(q.nodeType){case 1:var z=q.namespaceURI,Y=z===rj6.HTML,$=Y||z===rj6.SVG||z===rj6.MATHML?q.localName:q.tagName;_+="<"+$;for(var A=0,O=q._numattrs;A<O;A++){var w=q._attr(A);if(_+=" "+gtz(w),w.value!==void 0)_+='="'+Btz(w.value)+'"'}if(_+=">",!(Y&&utz[$])){var j=q.serialize();if(lAK[$.toUpperCase()])j=oAK(j,$);if(Y&&mtz[$]&&j.charAt(0)===` |
| 3056 | `)_+=` |
| 3057 | `;_+=j,_+="</"+$+">"}break;case 3:case 4:var H;if(K.nodeType===1&&K.namespaceURI===rj6.HTML)H=K.tagName;else H="";if(lAK[H]||H==="NOSCRIPT"&&K.ownerDocument._scripting_enabled)_+=q.data;else _+=ptz(q.data);break;case 8:_+="<!--"+aAK(q.data)+"-->";break;case 7:let J=sAK(q.data);_+="<?"+q.target+" "+J+"?>";break;case 10:_+="<!DOCTYPE "+q.name,_+=">";break;default:rAK.InvalidStateError()}return _}});var F0=m((Ijw,YOK)=>{YOK.exports=Qj;var zOK=is1(),Ru8=rs1(),eAK=os1(),KA=xJ();function Qj(){zOK.call(this),this.parentNode=null,this._nextSibling=this._previousSibling=this,this._index=void 0}var Yy=Qj.ELEMENT_NODE=1,as1=Qj.ATTRIBUTE_NODE=2,hu8=Qj.TEXT_NODE=3,Qtz=Qj.CDATA_SECTION_NODE=4,dtz=Qj.ENTITY_REFERENCE_NODE=5,ss1=Qj.ENTITY_NODE=6,qOK=Qj.PROCESSING_INSTRUCTION_NODE=7,KOK=Qj.COMMENT_NODE=8,A88=Qj.DOCUMENT_NODE=9,yb=Qj.DOCUMENT_TYPE_NODE=10,hK6=Qj.DOCUMENT_FRAGMENT_NODE=11,ts1=Qj.NOTATION_NODE=12,es1=Qj.DOCUMENT_POSITION_DISCONNECTED=1,qt1=Qj.DOCUMENT_POSITION_PRECEDING=2,Kt1=Qj.DOCUMENT_POSITION_FOLLOWING=4,_OK=Qj.DOCUMENT_POSITION_CONTAINS=8,_t1=Qj.DOCUMENT_POSITION_CONTAINED_BY=16,zt1=Qj.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32;Qj.prototype=Object.create(zOK.prototype,{baseURI:{get:KA.nyi},parentElement:{get:function(){return this.parentNode&&this.parentNode.nodeType===Yy?this.parentNode:null}},hasChildNodes:{value:KA.shouldOverride},firstChild:{get:KA.shouldOverride},lastChild:{get:KA.shouldOverride},isConnected:{get:function(){let q=this;while(q!=null){if(q.nodeType===Qj.DOCUMENT_NODE)return!0;if(q=q.parentNode,q!=null&&q.nodeType===Qj.DOCUMENT_FRAGMENT_NODE)q=q.host}return!1}},previousSibling:{get:function(){var q=this.parentNode;if(!q)return null;if(this===q.firstChild)return null;return this._previousSibling}},nextSibling:{get:function(){var q=this.parentNode,K=this._nextSibling;if(!q)return null;if(K===q.firstChild)return null;return K}},textContent:{get:function(){return null},set:function(q){}},innerText:{get:function(){return null},set:function(q){}},_countChildrenOfType:{value:function(q){var K=0;for(var _=this.firstChild;_!==null;_=_.nextSibling)if(_.nodeType===q)K++;return K}},_ensureInsertValid:{value:function(K,_,z){var Y=this,$,A;if(!K.nodeType)throw TypeError("not a node");switch(Y.nodeType){case A88:case hK6:case Yy:break;default:KA.HierarchyRequestError()}if(K.isAncestor(Y))KA.HierarchyRequestError();if(_!==null||!z){if(_.parentNode!==Y)KA.NotFoundError()}switch(K.nodeType){case hK6:case yb:case Yy:case hu8:case qOK:case KOK:break;default:KA.HierarchyRequestError()}if(Y.nodeType===A88)switch(K.nodeType){case hu8:KA.HierarchyRequestError();break;case hK6:if(K._countChildrenOfType(hu8)>0)KA.HierarchyRequestError();switch(K._countChildrenOfType(Yy)){case 0:break;case 1:if(_!==null){if(z&&_.nodeType===yb)KA.HierarchyRequestError();for(A=_.nextSibling;A!==null;A=A.nextSibling)if(A.nodeType===yb)KA.HierarchyRequestError()}if($=Y._countChildrenOfType(Yy),z){if($>0)KA.HierarchyRequestError()}else if($>1||$===1&&_.nodeType!==Yy)KA.HierarchyRequestError();break;default:KA.HierarchyRequestError()}break;case Yy:if(_!==null){if(z&&_.nodeType===yb)KA.HierarchyRequestError();for(A=_.nextSibling;A!==null;A=A.nextSibling)if(A.nodeType===yb)KA.HierarchyRequestError()}if($=Y._countChildrenOfType(Yy),z){if($>0)KA.HierarchyRequestError()}else if($>1||$===1&&_.nodeType!==Yy)KA.HierarchyRequestError();break;case yb:if(_===null){if(Y._countChildrenOfType(Yy))KA.HierarchyRequestError()}else for(A=Y.firstChild;A!==null;A=A.nextSibling){if(A===_)break;if(A.nodeType===Yy)KA.HierarchyRequestError()}if($=Y._countChildrenOfType(yb),z){if($>0)KA.HierarchyRequestError()}else if($>1||$===1&&_.nodeType!==yb)KA.HierarchyRequestError();break}else if(K.nodeType===yb)KA.HierarchyRequestError()}},insertBefore:{value:function(K,_){var z=this;z._ensureInsertValid(K,_,!0);var Y=_;if(Y===K)Y=K.nextSibling;return z.doc.adoptNode(K),K._insertOrReplace(z,Y,!1),K}},appendChild:{value:function(q){return this.insertBefore(q,null)}},_appendChild:{value:function(q){q._insertOrReplace(this,null,!1)}},removeChild:{value:function(K){var _=this;if(!K.nodeType)throw TypeError("not a node");if(K.parentNode!==_)KA.NotFoundError();return K.remove(),K}},replaceChild:{value:function(K,_){var z=this;if(z._ensureInsertValid(K,_,!1),K.doc!==z.doc)z.doc.adoptNode(K);return K._insertOrReplace(z,_,!0),_}},contains:{value:function(K){if(K===null)return!1;if(this===K)return!0;return(this.compareDocumentPosition(K)&_t1)!==0}},compareDocumentPosition:{value:function(K){if(this===K)return 0;if(this.doc!==K.doc||this.rooted!==K.rooted)return es1+zt1;var _=[],z=[];for(var Y=this;Y!==null;Y=Y.parentNode)_.push(Y);for(Y=K;Y!==null;Y=Y.parentNode)z.push(Y);if(_.reverse(),z.reverse(),_[0]!==z[0])return es1+zt1;Y=Math.min(_.length,z.length);for(var $=1;$<Y;$++)if(_[$]!==z[$])if(_[$].index<z[$].index)return Kt1;else return qt1;if(_.length<z.length)return Kt1+_t1;else return qt1+_OK}},isSameNode:{value:function(K){return this===K}},isEqualNode:{value:function(K){if(!K)return!1;if(K.nodeType!==this.nodeType)return!1;if(!this.isEqual(K))return!1;for(var _=this.firstChild,z=K.firstChild;_&&z;_=_.nextSibling,z=z.nextSibling)if(!_.isEqualNode(z))return!1;return _===null&&z===null}},cloneNode:{value:function(q){var K=this.clone();if(q)for(var _=this.firstChild;_!==null;_=_.nextSibling)K._appendChild(_.cloneNode(!0));return K}},lookupPrefix:{value:function(K){var _;if(K===""||K===null||K===void 0)return null;switch(this.nodeType){case Yy:return this._lookupNamespacePrefix(K,this);case A88:return _=this.documentElement,_?_.lookupPrefix(K):null;case ss1:case ts1:case hK6:case yb:return null;case as1:return _=this.ownerElement,_?_.lookupPrefix(K):null;default:return _=this.parentElement,_?_.lookupPrefix(K):null}}},lookupNamespaceURI:{value:function(K){if(K===""||K===void 0)K=null;var _;switch(this.nodeType){case Yy:return KA.shouldOverride();case A88:return _=this.documentElement,_?_.lookupNamespaceURI(K):null;case ss1:case ts1:case yb:case hK6:return null;case as1:return _=this.ownerElement,_?_.lookupNamespaceURI(K):null;default:return _=this.parentElement,_?_.lookupNamespaceURI(K):null}}},isDefaultNamespace:{value:function(K){if(K===""||K===void 0)K=null;var _=this.lookupNamespaceURI(null);return _===K}},index:{get:function(){var q=this.parentNode;if(this===q.firstChild)return 0;var K=q.childNodes;if(this._index===void 0||K[this._index]!==this){for(var _=0;_<K.length;_++)K[_]._index=_;KA.assert(K[this._index]===this)}return this._index}},isAncestor:{value:function(q){if(this.doc!==q.doc)return!1;if(this.rooted!==q.rooted)return!1;for(var K=q;K;K=K.parentNode)if(K===this)return!0;return!1}},ensureSameDoc:{value:function(q){if(q.ownerDocument===null)q.ownerDocument=this.doc;else if(q.ownerDocument!==this.doc)KA.WrongDocumentError()}},removeChildren:{value:KA.shouldOverride},_insertOrReplace:{value:function(K,_,z){var Y=this,$,A;if(Y.nodeType===hK6&&Y.rooted)KA.HierarchyRequestError();if(K._childNodes){if($=_===null?K._childNodes.length:_.index,Y.parentNode===K){var O=Y.index;if(O<$)$--}}if(z){if(_.rooted)_.doc.mutateRemove(_);_.parentNode=null}var w=_;if(w===null)w=K.firstChild;var j=Y.rooted&&K.rooted;if(Y.nodeType===hK6){var H=[0,z?1:0],J;for(var M=Y.firstChild;M!==null;M=J)J=M.nextSibling,H.push(M),M.parentNode=K;var X=H.length;if(z)Ru8.replace(w,X>2?H[2]:null);else if(X>2&&w!==null)Ru8.insertBefore(H[2],w);if(K._childNodes){H[0]=_===null?K._childNodes.length:_._index,K._childNodes.splice.apply(K._childNodes,H);for(A=2;A<X;A++)H[A]._index=H[0]+(A-2)}else if(K._firstChild===_){if(X>2)K._firstChild=H[2];else if(z)K._firstChild=null}if(Y._childNodes)Y._childNodes.length=0;else Y._firstChild=null;if(K.rooted){K.modify();for(A=2;A<X;A++)K.doc.mutateInsert(H[A])}}else{if(_===Y)return;if(j)Y._remove();else if(Y.parentNode)Y.remove();if(Y.parentNode=K,z){if(Ru8.replace(w,Y),K._childNodes)Y._index=$,K._childNodes[$]=Y;else if(K._firstChild===_)K._firstChild=Y}else{if(w!==null)Ru8.insertBefore(Y,w);if(K._childNodes)Y._index=$,K._childNodes.splice($,0,Y);else if(K._firstChild===_)K._firstChild=Y}if(j)K.modify(),K.doc.mutateMove(Y);else if(K.rooted)K.modify(),K.doc.mutateInsert(Y)}}},lastModTime:{get:function(){if(!this._lastModTime)this._lastModTime=this.doc.modclock;return this._lastModTime}},modify:{value:function(){if(this.doc.modclock){var q=++this.doc.modclock;for(var K=this;K;K=K.parentElement)if(K._lastModTime)K._lastModTime=q}}},doc:{get:function(){return this.ownerDocument||this}},rooted:{get:function(){return!!this._nid}},normalize:{value:function(){var q;for(var K=this.firstChild;K!==null;K=q){if(q=K.nextSibling,K.normalize)K.normalize();if(K.nodeType!==Qj.TEXT_NODE)continue;if(K.nodeValue===""){this.removeChild(K);continue}var _=K.previousSibling;if(_===null)continue;else if(_.nodeType===Qj.TEXT_NODE)_.appendData(K.nodeValue),this.removeChild(K)}}},serialize:{value:function(){if(this._innerHTML)return this._innerHTML;var q="";for(var K=this.firstChild;K!==null;K=K.nextSibling)q+=eAK.serializeOne(K,this);return q}},outerHTML:{get:function(){return eAK.serializeOne(this,{nodeType:0})},set:KA.nyi},ELEMENT_NODE:{value:Yy},ATTRIBUTE_NODE:{value:as1},TEXT_NODE:{value:hu8},CDATA_SECTION_NODE:{value:Qtz},ENTITY_REFERENCE_NODE:{value:dtz},ENTITY_NODE:{value:ss1},PROCESSING_INSTRUCTION_NODE:{value:qOK},COMMENT_NODE:{value:KOK},DOCUMENT_NODE:{value:A88},DOCUMENT_TYPE_NODE:{value:yb},DOCUMENT_FRAGMENT_NODE:{value:hK6},NOTATION_NODE:{value:ts1},DOCUMENT_POSITION_DISCONNECTED:{value:es1},DOCUMENT_POSITION_PRECEDING:{value:qt1},DOCUMENT_POSITION_FOLLOWING:{value:Kt1},DOCUMENT_POSITION_CONTAINS:{value:_OK},DOCUMENT_POSITION_CONTAINED_BY:{value:_t1},DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:{value:zt1}})});var AOK=m((ujw,$OK)=>{$OK.exports=class extends Array{constructor(K){super(K&&K.length||0);if(K)for(var _ in K)this[_]=K[_]}item(K){return this[K]||null}}});var wOK=m((mjw,OOK)=>{function ctz(q){return this[q]||null}function ltz(q){if(!q)q=[];return q.item=ctz,q}OOK.exports=ltz});var oj6=m((pjw,jOK)=>{var Yt1;try{Yt1=AOK()}catch(q){Yt1=wOK()}jOK.exports=Yt1});var Su8=m((Bjw,MOK)=>{MOK.exports=JOK;var HOK=F0(),ntz=oj6();function JOK(){HOK.call(this),this._firstChild=this._childNodes=null}JOK.prototype=Object.create(HOK.prototype,{hasChildNodes:{value:function(){if(this._childNodes)return this._childNodes.length>0;return this._firstChild!==null}},childNodes:{get:function(){return this._ensureChildNodes(),this._childNodes}},firstChild:{get:function(){if(this._childNodes)return this._childNodes.length===0?null:this._childNodes[0];return this._firstChild}},lastChild:{get:function(){var q=this._childNodes,K;if(q)return q.length===0?null:q[q.length-1];if(K=this._firstChild,K===null)return null;return K._previousSibling}},_ensureChildNodes:{value:function(){if(this._childNodes)return;var q=this._firstChild,K=q,_=this._childNodes=new ntz;if(q)do _.push(K),K=K._nextSibling;while(K!==q);this._firstChild=null}},removeChildren:{value:function(){var K=this.rooted?this.ownerDocument:null,_=this.firstChild,z;while(_!==null){if(z=_,_=z.nextSibling,K)K.mutateRemove(z);z.parentNode=null}if(this._childNodes)this._childNodes.length=0;else this._firstChild=null;this.modify()}}})});var Cu8=m((Kez)=>{Kez.isValidName=etz;Kez.isValidQName=qez;var itz=/^[_:A-Za-z][-.:\w]+$/,rtz=/^([_A-Za-z][-.\w]+|[_A-Za-z][-.\w]+:[_A-Za-z][-.\w]+)$/,O88="_A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�",w88="-._A-Za-z0-9·À-ÖØ-öø-˿̀-ͽͿ-‿⁀⁰-Ⰰ-、-豈-﷏ﷰ-�",aj6="["+O88+"]["+w88+"]*",$t1=O88+":",At1=w88+":",otz=new RegExp("^["+$t1+"]["+At1+"]*$"),atz=new RegExp("^("+aj6+"|"+aj6+":"+aj6+")$"),XOK=/[\uD800-\uDB7F\uDC00-\uDFFF]/,POK=/[\uD800-\uDB7F\uDC00-\uDFFF]/g,WOK=/[\uD800-\uDB7F][\uDC00-\uDFFF]/g;O88+="\uD800-\uDB7F\uDC00-\uDFFF";w88+="\uD800-\uDB7F\uDC00-\uDFFF";aj6="["+O88+"]["+w88+"]*";$t1=O88+":";At1=w88+":";var stz=new RegExp("^["+$t1+"]["+At1+"]*$"),ttz=new RegExp("^("+aj6+"|"+aj6+":"+aj6+")$");function etz(q){if(itz.test(q))return!0;if(otz.test(q))return!0;if(!XOK.test(q))return!1;if(!stz.test(q))return!1;var K=q.match(POK),_=q.match(WOK);return _!==null&&2*_.length===K.length}function qez(q){if(rtz.test(q))return!0;if(atz.test(q))return!0;if(!XOK.test(q))return!1;if(!ttz.test(q))return!1;var K=q.match(POK),_=q.match(WOK);return _!==null&&2*_.length===K.length}});var Ot1=m(($ez)=>{var DOK=xJ();$ez.property=function(q){if(Array.isArray(q.type)){var K=Object.create(null);q.type.forEach(function(Y){K[Y.value||Y]=Y.alias||Y});var _=q.missing;if(_===void 0)_=null;var z=q.invalid;if(z===void 0)z=_;return{get:function(){var Y=this._getattr(q.name);if(Y===null)return _;if(Y=K[Y.toLowerCase()],Y!==void 0)return Y;if(z!==null)return z;return Y},set:function(Y){this._setattr(q.name,Y)}}}else if(q.type===Boolean)return{get:function(){return this.hasAttribute(q.name)},set:function(Y){if(Y)this._setattr(q.name,"");else this.removeAttribute(q.name)}};else if(q.type===Number||q.type==="long"||q.type==="unsigned long"||q.type==="limited unsigned long with fallback")return Yez(q);else if(!q.type||q.type===String)return{get:function(){return this._getattr(q.name)||""},set:function(Y){if(q.treatNullAsEmptyString&&Y===null)Y="";this._setattr(q.name,Y)}};else if(typeof q.type==="function")return q.type(q.name,q);throw Error("Invalid attribute definition")};function Yez(q){var K;if(typeof q.default==="function")K=q.default;else if(typeof q.default==="number")K=function(){return q.default};else K=function(){DOK.assert(!1,typeof q.default)};var _=q.type==="unsigned long",z=q.type==="long",Y=q.type==="limited unsigned long with fallback",$=q.min,A=q.max,O=q.setmin;if($===void 0){if(_)$=0;if(z)$=-2147483648;if(Y)$=1}if(A===void 0){if(_||z||Y)A=2147483647}return{get:function(){var w=this._getattr(q.name),j=q.float?parseFloat(w):parseInt(w,10);if(w===null||!isFinite(j)||$!==void 0&&j<$||A!==void 0&&j>A)return K.call(this);if(_||z||Y){if(!/^[ \t\n\f\r]*[-+]?[0-9]/.test(w))return K.call(this);j=j|0}return j},set:function(w){if(!q.float)w=Math.floor(w);if(O!==void 0&&w<O)DOK.IndexSizeError(q.name+" set to "+w);if(_)w=w<0||w>2147483647?K.call(this):w|0;else if(Y)w=w<1||w>2147483647?K.call(this):w|0;else if(z)w=w<-2147483648||w>2147483647?K.call(this):w|0;this._setattr(q.name,String(w))}}}$ez.registerChangeHandler=function(q,K,_){var z=q.prototype;if(!Object.prototype.hasOwnProperty.call(z,"_attributeChangeHandlers"))z._attributeChangeHandlers=Object.create(z._attributeChangeHandlers||null);z._attributeChangeHandlers[K]=_}});var GOK=m((Ujw,ZOK)=>{ZOK.exports=fOK;var wez=F0();function fOK(q,K){this.root=q,this.filter=K,this.lastModTime=q.lastModTime,this.done=!1,this.cache=[],this.traverse()}fOK.prototype=Object.create(Object.prototype,{length:{get:function(){if(this.checkcache(),!this.done)this.traverse();return this.cache.length}},item:{value:function(q){if(this.checkcache(),!this.done&&q>=this.cache.length)this.traverse();return this.cache[q]}},checkcache:{value:function(){if(this.lastModTime!==this.root.lastModTime){for(var q=this.cache.length-1;q>=0;q--)this[q]=void 0;this.cache.length=0,this.done=!1,this.lastModTime=this.root.lastModTime}}},traverse:{value:function(q){if(q!==void 0)q++;var K;while((K=this.next())!==null)if(this[this.cache.length]=K,this.cache.push(K),q&&this.cache.length===q)return;this.done=!0}},next:{value:function(){var q=this.cache.length===0?this.root:this.cache[this.cache.length-1],K;if(q.nodeType===wez.DOCUMENT_NODE)K=q.documentElement;else K=q.nextElement(this.root);while(K){if(this.filter(K))return K;K=K.nextElement(this.root)}return null}}})});var jt1=m((Qjw,kOK)=>{var wt1=xJ();kOK.exports=vOK;function vOK(q,K){this._getString=q,this._setString=K,this._length=0,this._lastStringValue="",this._update()}Object.defineProperties(vOK.prototype,{length:{get:function(){return this._length}},item:{value:function(q){var K=KR6(this);if(q<0||q>=K.length)return null;return K[q]}},contains:{value:function(q){q=String(q);var K=KR6(this);return K.indexOf(q)>-1}},add:{value:function(){var q=KR6(this);for(var K=0,_=arguments.length;K<_;K++){var z=j88(arguments[K]);if(q.indexOf(z)<0)q.push(z)}this._update(q)}},remove:{value:function(){var q=KR6(this);for(var K=0,_=arguments.length;K<_;K++){var z=j88(arguments[K]),Y=q.indexOf(z);if(Y>-1)q.splice(Y,1)}this._update(q)}},toggle:{value:function(K,_){if(K=j88(K),this.contains(K)){if(_===void 0||_===!1)return this.remove(K),!1;return!0}else{if(_===void 0||_===!0)return this.add(K),!0;return!1}}},replace:{value:function(K,_){if(String(_)==="")wt1.SyntaxError();K=j88(K),_=j88(_);var z=KR6(this),Y=z.indexOf(K);if(Y<0)return!1;var $=z.indexOf(_);if($<0)z[Y]=_;else if(Y<$)z[Y]=_,z.splice($,1);else z.splice(Y,1);return this._update(z),!0}},toString:{value:function(){return this._getString()}},value:{get:function(){return this._getString()},set:function(q){this._setString(q),this._update()}},_update:{value:function(q){if(q)TOK(this,q),this._setString(q.join(" ").trim());else TOK(this,KR6(this));this._lastStringValue=this._getString()}}});function TOK(q,K){var _=q._length,z;q._length=K.length;for(z=0;z<K.length;z++)q[z]=K[z];for(;z<_;z++)q[z]=void 0}function j88(q){if(q=String(q),q==="")wt1.SyntaxError();if(/[ \t\r\n\f]/.test(q))wt1.InvalidCharacterError();return q}function jez(q){var K=q._length,_=Array(K);for(var z=0;z<K;z++)_[z]=q[z];return _}function KR6(q){var K=q._getString();if(K===q._lastStringValue)return jez(q);var _=K.replace(/(^[ \t\r\n\f]+)|([ \t\r\n\f]+$)/g,"");if(_==="")return[];else{var z=Object.create(null);return _.split(/[ \t\r\n\f]+/g).filter(function(Y){var $="$"+Y;if(z[$])return!1;return z[$]=!0,!0})}}});var uu8=m((YR6,ROK)=>{var bu8=Object.create(null,{location:{get:function(){throw Error("window.location is not supported.")}}}),Hez=function(q,K){return q.compareDocumentPosition(K)},Jez=function(q,K){return Hez(q,K)&2?1:-1},Iu8=function(q){while((q=q.nextSibling)&&q.nodeType!==1);return q},zR6=function(q){while((q=q.previousSibling)&&q.nodeType!==1);return q},Mez=function(q){if(q=q.firstChild)while(q.nodeType!==1&&(q=q.nextSibling));return q},Xez=function(q){if(q=q.lastChild)while(q.nodeType!==1&&(q=q.previousSibling));return q},_R6=function(q){if(!q.parentNode)return!1;var K=q.parentNode.nodeType;return K===1||K===9},VOK=function(q){if(!q)return q;var K=q[0];if(K==='"'||K==="'"){if(q[q.length-1]===K)q=q.slice(1,-1);else q=q.slice(1);return q.replace(f3.str_escape,function(_){var z=/^\\(?:([0-9A-Fa-f]+)|([\r\n\f]+))/.exec(_);if(!z)return _.slice(1);if(z[2])return"";var Y=parseInt(z[1],16);return String.fromCodePoint?String.fromCodePoint(Y):String.fromCharCode(Y)})}else if(f3.ident.test(q))return SK6(q);else return q},SK6=function(q){return q.replace(f3.escape,function(K){var _=/^\\([0-9A-Fa-f]+)/.exec(K);if(!_)return K[1];var z=parseInt(_[1],16);return String.fromCodePoint?String.fromCodePoint(z):String.fromCharCode(z)})},Pez=function(){if(Array.prototype.indexOf)return Array.prototype.indexOf;return function(q,K){var _=this.length;while(_--)if(this[_]===K)return _;return-1}}(),yOK=function(q,K){var _=f3.inside.source.replace(/</g,q).replace(/>/g,K);return new RegExp(_)},$y=function(q,K,_){return q=q.source,q=q.replace(K,_.source||_),new RegExp(q)},NOK=function(q,K){return q.replace(/^(?:\w+:\/\/|\/+)/,"").replace(/(?:\/+|\/*#.*?)$/,"").split("/",K).join("/")},Wez=function(q,K){var _=q.replace(/\s+/g,""),z;if(_==="even")_="2n+0";else if(_==="odd")_="2n+1";else if(_.indexOf("n")===-1)_="0n"+_;return z=/^([+-])?(\d+)?n([+-])?(\d+)?$/.exec(_),{group:z[1]==="-"?-(z[2]||1):+(z[2]||1),offset:z[4]?z[3]==="-"?-z[4]:+z[4]:0}},Ht1=function(q,K,_){var z=Wez(q),Y=z.group,$=z.offset,A=!_?Mez:Xez,O=!_?Iu8:zR6;return function(w){if(!_R6(w))return;var j=A(w.parentNode),H=0;while(j){if(K(j,w))H++;if(j===w)return H-=$,Y&&H?H%Y===0&&H<0===Y<0:!H;j=O(j)}}},ID={"*":function(){return function(){return!0}}(),type:function(q){return q=q.toLowerCase(),function(K){return K.nodeName.toLowerCase()===q}},attr:function(q,K,_,z){return K=EOK[K],function(Y){var $;switch(q){case"for":$=Y.htmlFor;break;case"class":if($=Y.className,$===""&&Y.getAttribute("class")==null)$=null;break;case"href":case"src":$=Y.getAttribute(q,2);break;case"title":$=Y.getAttribute("title")||null;break;case"id":case"lang":case"dir":case"accessKey":case"hidden":case"tabIndex":case"style":if(Y.getAttribute){$=Y.getAttribute(q);break}default:if(Y.hasAttribute&&!Y.hasAttribute(q))break;$=Y[q]!=null?Y[q]:Y.getAttribute&&Y.getAttribute(q);break}if($==null)return;if($=$+"",z)$=$.toLowerCase(),_=_.toLowerCase();return K($,_)}},":first-child":function(q){return!zR6(q)&&_R6(q)},":last-child":function(q){return!Iu8(q)&&_R6(q)},":only-child":function(q){return!zR6(q)&&!Iu8(q)&&_R6(q)},":nth-child":function(q,K){return Ht1(q,function(){return!0},K)},":nth-last-child":function(q){return ID[":nth-child"](q,!0)},":root":function(q){return q.ownerDocument.documentElement===q},":empty":function(q){return!q.firstChild},":not":function(q){var K=Mt1(q);return function(_){return!K(_)}},":first-of-type":function(q){if(!_R6(q))return;var K=q.nodeName;while(q=zR6(q))if(q.nodeName===K)return;return!0},":last-of-type":function(q){if(!_R6(q))return;var K=q.nodeName;while(q=Iu8(q))if(q.nodeName===K)return;return!0},":only-of-type":function(q){return ID[":first-of-type"](q)&&ID[":last-of-type"](q)},":nth-of-type":function(q,K){return Ht1(q,function(_,z){return _.nodeName===z.nodeName},K)},":nth-last-of-type":function(q){return ID[":nth-of-type"](q,!0)},":checked":function(q){return!!(q.checked||q.selected)},":indeterminate":function(q){return!ID[":checked"](q)},":enabled":function(q){return!q.disabled&&q.type!=="hidden"},":disabled":function(q){return!!q.disabled},":target":function(q){return q.id===bu8.location.hash.substring(1)},":focus":function(q){return q===q.ownerDocument.activeElement},":is":function(q){return Mt1(q)},":matches":function(q){return ID[":is"](q)},":nth-match":function(q,K){var _=q.split(/\s*,\s*/),z=_.shift(),Y=Mt1(_.join(","));return Ht1(z,Y,K)},":nth-last-match":function(q){return ID[":nth-match"](q,!0)},":links-here":function(q){return q+""===bu8.location+""},":lang":function(q){return function(K){while(K){if(K.lang)return K.lang.indexOf(q)===0;K=K.parentNode}}},":dir":function(q){return function(K){while(K){if(K.dir)return K.dir===q;K=K.parentNode}}},":scope":function(q,K){var _=K||q.ownerDocument;if(_.nodeType===9)return q===_.documentElement;return q===_},":any-link":function(q){return typeof q.href==="string"},":local-link":function(q){if(q.nodeName)return q.href&&q.host===bu8.location.host;var K=+q+1;return function(_){if(!_.href)return;var z=bu8.location+"",Y=_+"";return NOK(z,K)===NOK(Y,K)}},":default":function(q){return!!q.defaultSelected},":valid":function(q){return q.willValidate||q.validity&&q.validity.valid},":invalid":function(q){return!ID[":valid"](q)},":in-range":function(q){return q.value>q.min&&q.value<=q.max},":out-of-range":function(q){return!ID[":in-range"](q)},":required":function(q){return!!q.required},":optional":function(q){return!q.required},":read-only":function(q){if(q.readOnly)return!0;var K=q.getAttribute("contenteditable"),_=q.contentEditable,z=q.nodeName.toLowerCase();return z=z!=="input"&&z!=="textarea",(z||q.disabled)&&K==null&&_!=="true"},":read-write":function(q){return!ID[":read-only"](q)},":hover":function(){throw Error(":hover is not supported.")},":active":function(){throw Error(":active is not supported.")},":link":function(){throw Error(":link is not supported.")},":visited":function(){throw Error(":visited is not supported.")},":column":function(){throw Error(":column is not supported.")},":nth-column":function(){throw Error(":nth-column is not supported.")},":nth-last-column":function(){throw Error(":nth-last-column is not supported.")},":current":function(){throw Error(":current is not supported.")},":past":function(){throw Error(":past is not supported.")},":future":function(){throw Error(":future is not supported.")},":contains":function(q){return function(K){var _=K.innerText||K.textContent||K.value||"";return _.indexOf(q)!==-1}},":has":function(q){return function(K){return LOK(q,K).length>0}}},EOK={"-":function(){return!0},"=":function(q,K){return q===K},"*=":function(q,K){return q.indexOf(K)!==-1},"~=":function(q,K){var _,z,Y,$;for(z=0;;z=_+1){if(_=q.indexOf(K,z),_===-1)return!1;if(Y=q[_-1],$=q[_+K.length],(!Y||Y===" ")&&(!$||$===" "))return!0}},"|=":function(q,K){var _=q.indexOf(K),z;if(_!==0)return;return z=q[_+K.length],z==="-"||!z},"^=":function(q,K){return q.indexOf(K)===0},"$=":function(q,K){var _=q.lastIndexOf(K);return _!==-1&&_+K.length===q.length},"!=":function(q,K){return q!==K}},H88={" ":function(q){return function(K){while(K=K.parentNode)if(q(K))return K}},">":function(q){return function(K){if(K=K.parentNode)return q(K)&&K}},"+":function(q){return function(K){if(K=zR6(K))return q(K)&&K}},"~":function(q){return function(K){while(K=zR6(K))if(q(K))return K}},noop:function(q){return function(K){return q(K)&&K}},ref:function(q,K){var _;function z(Y){var $=Y.ownerDocument,A=$.getElementsByTagName("*"),O=A.length;while(O--)if(_=A[O],z.test(Y))return _=null,!0;_=null}return z.combinator=function(Y){if(!_||!_.getAttribute)return;var $=_.getAttribute(K)||"";if($[0]==="#")$=$.substring(1);if($===Y.id&&q(_))return _},z}},f3={escape:/\\(?:[^0-9A-Fa-f\r\n]|[0-9A-Fa-f]{1,6}[\r\n\t ]?)/g,str_escape:/(escape)|\\(\n|\r\n?|\f)/g,nonascii:/[\u00A0-\uFFFF]/,cssid:/(?:(?!-?[0-9])(?:escape|nonascii|[-_a-zA-Z0-9])+)/,qname:/^ *(cssid|\*)/,simple:/^(?:([.#]cssid)|pseudo|attr)/,ref:/^ *\/(cssid)\/ */,combinator:/^(?: +([^ \w*.#\\]) +|( )+|([^ \w*.#\\]))(?! *$)/,attr:/^\[(cssid)(?:([^\w]?=)(inside))?\]/,pseudo:/^(:cssid)(?:\((inside)\))?/,inside:/(?:"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|<[^"'>]*>|\\["'>]|[^"'>])*/,ident:/^(cssid)$/};f3.cssid=$y(f3.cssid,"nonascii",f3.nonascii);f3.cssid=$y(f3.cssid,"escape",f3.escape);f3.qname=$y(f3.qname,"cssid",f3.cssid);f3.simple=$y(f3.simple,"cssid",f3.cssid);f3.ref=$y(f3.ref,"cssid",f3.cssid);f3.attr=$y(f3.attr,"cssid",f3.cssid);f3.pseudo=$y(f3.pseudo,"cssid",f3.cssid);f3.inside=$y(f3.inside,`[^"'>]*`,f3.inside);f3.attr=$y(f3.attr,"inside",yOK("\\[","\\]"));f3.pseudo=$y(f3.pseudo,"inside",yOK("\\(","\\)"));f3.simple=$y(f3.simple,"pseudo",f3.pseudo);f3.simple=$y(f3.simple,"attr",f3.attr);f3.ident=$y(f3.ident,"cssid",f3.cssid);f3.str_escape=$y(f3.str_escape,"escape",f3.escape);var J88=function(q){var K=q.replace(/^\s+|\s+$/g,""),_,z=[],Y=[],$,A,O,w,j;while(K){if(O=f3.qname.exec(K))K=K.substring(O[0].length),A=SK6(O[1]),Y.push(xu8(A,!0));else if(O=f3.simple.exec(K))K=K.substring(O[0].length),A="*",Y.push(xu8(A,!0)),Y.push(xu8(O));else throw SyntaxError("Invalid selector.");while(O=f3.simple.exec(K))K=K.substring(O[0].length),Y.push(xu8(O));if(K[0]==="!")K=K.substring(1),$=fez(),$.qname=A,Y.push($.simple);if(O=f3.ref.exec(K)){K=K.substring(O[0].length),j=H88.ref(Jt1(Y),SK6(O[1])),z.push(j.combinator),Y=[];continue}if(O=f3.combinator.exec(K)){if(K=K.substring(O[0].length),w=O[1]||O[2]||O[3],w===","){z.push(H88.noop(Jt1(Y)));break}}else w="noop";if(!H88[w])throw SyntaxError("Bad combinator.");z.push(H88[w](Jt1(Y))),Y=[]}if(_=Dez(z),_.qname=A,_.sel=K,$)$.lname=_.qname,$.test=_,$.qname=$.qname,$.sel=_.sel,_=$;if(j)j.test=_,j.qname=_.qname,j.sel=_.sel,_=j;return _},xu8=function(q,K){if(K)return q==="*"?ID["*"]:ID.type(q);if(q[1])return q[1][0]==="."?ID.attr("class","~=",SK6(q[1].substring(1)),!1):ID.attr("id","=",SK6(q[1].substring(1)),!1);if(q[2])return q[3]?ID[SK6(q[2])](VOK(q[3])):ID[SK6(q[2])];if(q[4]){var _=q[6],z=/["'\s]\s*I$/i.test(_);if(z)_=_.replace(/\s*I$/i,"");return ID.attr(SK6(q[4]),q[5]||"-",VOK(_),z)}throw SyntaxError("Unknown Selector.")},Jt1=function(q){var K=q.length,_;if(K<2)return q[0];return function(z){if(!z)return;for(_=0;_<K;_++)if(!q[_](z))return;return!0}},Dez=function(q){if(q.length<2)return function(K){return!!q[0](K)};return function(K){var _=q.length;while(_--)if(!(K=q[_](K)))return;return!0}},fez=function(){var q;function K(_){var z=_.ownerDocument,Y=z.getElementsByTagName(K.lname),$=Y.length;while($--)if(K.test(Y[$])&&q===_)return q=null,!0;q=null}return K.simple=function(_){return q=_,!0},K},Mt1=function(q){var K=J88(q),_=[K];while(K.sel)K=J88(K.sel),_.push(K);if(_.length<2)return K;return function(z){var Y=_.length,$=0;for(;$<Y;$++)if(_[$](z))return!0}},LOK=function(q,K){var _=[],z=J88(q),Y=K.getElementsByTagName(z.qname),$=0,A;while(A=Y[$++])if(z(A))_.push(A);if(z.sel){while(z.sel){z=J88(z.sel),Y=K.getElementsByTagName(z.qname),$=0;while(A=Y[$++])if(z(A)&&Pez.call(_,A)===-1)_.push(A)}_.sort(Jez)}return _};ROK.exports=YR6=function(q,K){var _,z;if(K.nodeType!==11&&q.indexOf(" ")===-1){if(q[0]==="#"&&K.rooted&&/^#[A-Z_][-A-Z0-9_]*$/i.test(q)){if(K.doc._hasMultipleElementsWithId){if(_=q.substring(1),!K.doc._hasMultipleElementsWithId(_))return z=K.doc.getElementById(_),z?[z]:[]}}if(q[0]==="."&&/^\.\w+$/.test(q))return K.getElementsByClassName(q.substring(1));if(/^\w+$/.test(q))return K.getElementsByTagName(q)}return LOK(q,K)};YR6.selectors=ID;YR6.operators=EOK;YR6.combinators=H88;YR6.matches=function(q,K){var _={sel:K};do if(_=J88(_.sel),_(q))return!0;while(_.sel);return!1}});var mu8=m((djw,hOK)=>{var Zez=F0(),Gez=rs1(),Xt1=function(q,K){var _=q.createDocumentFragment();for(var z=0;z<K.length;z++){var Y=K[z],$=Y instanceof Zez;_.appendChild($?Y:q.createTextNode(String(Y)))}return _},Tez={after:{value:function(){var K=Array.prototype.slice.call(arguments),_=this.parentNode,z=this.nextSibling;if(_===null)return;while(z&&K.some(function($){return $===z}))z=z.nextSibling;var Y=Xt1(this.doc,K);_.insertBefore(Y,z)}},before:{value:function(){var K=Array.prototype.slice.call(arguments),_=this.parentNode,z=this.previousSibling;if(_===null)return;while(z&&K.some(function(A){return A===z}))z=z.previousSibling;var Y=Xt1(this.doc,K),$=z?z.nextSibling:_.firstChild;_.insertBefore(Y,$)}},remove:{value:function(){if(this.parentNode===null)return;if(this.doc){if(this.doc._preremoveNodeIterators(this),this.rooted)this.doc.mutateRemove(this)}this._remove(),this.parentNode=null}},_remove:{value:function(){var K=this.parentNode;if(K===null)return;if(K._childNodes)K._childNodes.splice(this.index,1);else if(K._firstChild===this)if(this._nextSibling===this)K._firstChild=null;else K._firstChild=this._nextSibling;Gez.remove(this),K.modify()}},replaceWith:{value:function(){var K=Array.prototype.slice.call(arguments),_=this.parentNode,z=this.nextSibling;if(_===null)return;while(z&&K.some(function($){return $===z}))z=z.nextSibling;var Y=Xt1(this.doc,K);if(this.parentNode===_)_.replaceChild(Y,this);else _.insertBefore(Y,z)}}};hOK.exports=Tez});var Pt1=m((cjw,COK)=>{var SOK=F0(),vez={nextElementSibling:{get:function(){if(this.parentNode){for(var q=this.nextSibling;q!==null;q=q.nextSibling)if(q.nodeType===SOK.ELEMENT_NODE)return q}return null}},previousElementSibling:{get:function(){if(this.parentNode){for(var q=this.previousSibling;q!==null;q=q.previousSibling)if(q.nodeType===SOK.ELEMENT_NODE)return q}return null}}};COK.exports=vez});var Wt1=m((ljw,xOK)=>{xOK.exports=bOK;var $R6=xJ();function bOK(q){this.element=q}Object.defineProperties(bOK.prototype,{length:{get:$R6.shouldOverride},item:{value:$R6.shouldOverride},getNamedItem:{value:function(K){return this.element.getAttributeNode(K)}},getNamedItemNS:{value:function(K,_){return this.element.getAttributeNodeNS(K,_)}},setNamedItem:{value:$R6.nyi},setNamedItemNS:{value:$R6.nyi},removeNamedItem:{value:function(K){var _=this.element.getAttributeNode(K);if(_)return this.element.removeAttribute(K),_;$R6.NotFoundError()}},removeNamedItemNS:{value:function(K,_){var z=this.element.getAttributeNodeNS(K,_);if(z)return this.element.removeAttributeNS(K,_),z;$R6.NotFoundError()}}})});var OR6=m((njw,BOK)=>{BOK.exports=CK6;var Dt1=Cu8(),UH=xJ(),FQ=UH.NAMESPACE,Bu8=Ot1(),Kp=F0(),ft1=oj6(),kez=os1(),pu8=GOK(),AR6=Eu8(),Vez=jt1(),Zt1=uu8(),uOK=Su8(),Nez=mu8(),yez=Pt1(),mOK=Wt1(),IOK=Object.create(null);function CK6(q,K,_,z){uOK.call(this),this.nodeType=Kp.ELEMENT_NODE,this.ownerDocument=q,this.localName=K,this.namespaceURI=_,this.prefix=z,this._tagName=void 0,this._attrsByQName=Object.create(null),this._attrsByLName=Object.create(null),this._attrKeys=[]}function Gt1(q,K){if(q.nodeType===Kp.TEXT_NODE)K.push(q._data);else for(var _=0,z=q.childNodes.length;_<z;_++)Gt1(q.childNodes[_],K)}CK6.prototype=Object.create(uOK.prototype,{isHTML:{get:function(){return this.namespaceURI===FQ.HTML&&this.ownerDocument.isHTML}},tagName:{get:function(){if(this._tagName===void 0){var K;if(this.prefix===null)K=this.localName;else K=this.prefix+":"+this.localName;if(this.isHTML){var _=IOK[K];if(!_)IOK[K]=_=UH.toASCIIUpperCase(K);K=_}this._tagName=K}return this._tagName}},nodeName:{get:function(){return this.tagName}},nodeValue:{get:function(){return null},set:function(){}},textContent:{get:function(){var q=[];return Gt1(this,q),q.join("")},set:function(q){if(this.removeChildren(),q!==null&&q!==void 0&&q!=="")this._appendChild(this.ownerDocument.createTextNode(q))}},innerText:{get:function(){var q=[];return Gt1(this,q),q.join("").replace(/[ \t\n\f\r]+/g," ").trim()},set:function(q){if(this.removeChildren(),q!==null&&q!==void 0&&q!=="")this._appendChild(this.ownerDocument.createTextNode(q))}},innerHTML:{get:function(){return this.serialize()},set:UH.nyi},outerHTML:{get:function(){return kez.serializeOne(this,{nodeType:0})},set:function(q){var K=this.ownerDocument,_=this.parentNode;if(_===null)return;if(_.nodeType===Kp.DOCUMENT_NODE)UH.NoModificationAllowedError();if(_.nodeType===Kp.DOCUMENT_FRAGMENT_NODE)_=_.ownerDocument.createElement("body");var z=K.implementation.mozHTMLParser(K._address,_);z.parse(q===null?"":String(q),!0),this.replaceWith(z._asDocumentFragment())}},_insertAdjacent:{value:function(K,_){var z=!1;switch(K){case"beforebegin":z=!0;case"afterend":var Y=this.parentNode;if(Y===null)return null;return Y.insertBefore(_,z?this:this.nextSibling);case"afterbegin":z=!0;case"beforeend":return this.insertBefore(_,z?this.firstChild:null);default:return UH.SyntaxError()}}},insertAdjacentElement:{value:function(K,_){if(_.nodeType!==Kp.ELEMENT_NODE)throw TypeError("not an element");return K=UH.toASCIILowerCase(String(K)),this._insertAdjacent(K,_)}},insertAdjacentText:{value:function(K,_){var z=this.ownerDocument.createTextNode(_);K=UH.toASCIILowerCase(String(K)),this._insertAdjacent(K,z)}},insertAdjacentHTML:{value:function(K,_){K=UH.toASCIILowerCase(String(K)),_=String(_);var z;switch(K){case"beforebegin":case"afterend":if(z=this.parentNode,z===null||z.nodeType===Kp.DOCUMENT_NODE)UH.NoModificationAllowedError();break;case"afterbegin":case"beforeend":z=this;break;default:UH.SyntaxError()}if(!(z instanceof CK6)||z.ownerDocument.isHTML&&z.localName==="html"&&z.namespaceURI===FQ.HTML)z=z.ownerDocument.createElementNS(FQ.HTML,"body");var Y=this.ownerDocument.implementation.mozHTMLParser(this.ownerDocument._address,z);Y.parse(_,!0),this._insertAdjacent(K,Y._asDocumentFragment())}},children:{get:function(){if(!this._children)this._children=new pOK(this);return this._children}},attributes:{get:function(){if(!this._attributes)this._attributes=new vt1(this);return this._attributes}},firstElementChild:{get:function(){for(var q=this.firstChild;q!==null;q=q.nextSibling)if(q.nodeType===Kp.ELEMENT_NODE)return q;return null}},lastElementChild:{get:function(){for(var q=this.lastChild;q!==null;q=q.previousSibling)if(q.nodeType===Kp.ELEMENT_NODE)return q;return null}},childElementCount:{get:function(){return this.children.length}},nextElement:{value:function(q){if(!q)q=this.ownerDocument.documentElement;var K=this.firstElementChild;if(!K){if(this===q)return null;K=this.nextElementSibling}if(K)return K;for(var _=this.parentElement;_&&_!==q;_=_.parentElement)if(K=_.nextElementSibling,K)return K;return null}},getElementsByTagName:{value:function(K){var _;if(!K)return new ft1;if(K==="*")_=function(){return!0};else if(this.isHTML)_=Eez(K);else _=Tt1(K);return new pu8(this,_)}},getElementsByTagNameNS:{value:function(K,_){var z;if(K==="*"&&_==="*")z=function(){return!0};else if(K==="*")z=Tt1(_);else if(_==="*")z=Lez(K);else z=Rez(K,_);return new pu8(this,z)}},getElementsByClassName:{value:function(K){if(K=String(K).trim(),K===""){var _=new ft1;return _}return K=K.split(/[ \t\r\n\f]+/),new pu8(this,hez(K))}},getElementsByName:{value:function(K){return new pu8(this,Sez(String(K)))}},clone:{value:function(){var K;if(this.namespaceURI!==FQ.HTML||this.prefix||!this.ownerDocument.isHTML)K=this.ownerDocument.createElementNS(this.namespaceURI,this.prefix!==null?this.prefix+":"+this.localName:this.localName);else K=this.ownerDocument.createElement(this.localName);for(var _=0,z=this._attrKeys.length;_<z;_++){var Y=this._attrKeys[_],$=this._attrsByLName[Y],A=$.cloneNode();A._setOwnerElement(K),K._attrsByLName[Y]=A,K._addQName(A)}return K._attrKeys=this._attrKeys.concat(),K}},isEqual:{value:function(K){if(this.localName!==K.localName||this.namespaceURI!==K.namespaceURI||this.prefix!==K.prefix||this._numattrs!==K._numattrs)return!1;for(var _=0,z=this._numattrs;_<z;_++){var Y=this._attr(_);if(!K.hasAttributeNS(Y.namespaceURI,Y.localName))return!1;if(K.getAttributeNS(Y.namespaceURI,Y.localName)!==Y.value)return!1}return!0}},_lookupNamespacePrefix:{value:function(K,_){if(this.namespaceURI&&this.namespaceURI===K&&this.prefix!==null&&_.lookupNamespaceURI(this.prefix)===K)return this.prefix;for(var z=0,Y=this._numattrs;z<Y;z++){var $=this._attr(z);if($.prefix==="xmlns"&&$.value===K&&_.lookupNamespaceURI($.localName)===K)return $.localName}var A=this.parentElement;return A?A._lookupNamespacePrefix(K,_):null}},lookupNamespaceURI:{value:function(K){if(K===""||K===void 0)K=null;if(this.namespaceURI!==null&&this.prefix===K)return this.namespaceURI;for(var _=0,z=this._numattrs;_<z;_++){var Y=this._attr(_);if(Y.namespaceURI===FQ.XMLNS){if(Y.prefix==="xmlns"&&Y.localName===K||K===null&&Y.prefix===null&&Y.localName==="xmlns")return Y.value||null}}var $=this.parentElement;return $?$.lookupNamespaceURI(K):null}},getAttribute:{value:function(K){var _=this.getAttributeNode(K);return _?_.value:null}},getAttributeNS:{value:function(K,_){var z=this.getAttributeNodeNS(K,_);return z?z.value:null}},getAttributeNode:{value:function(K){if(K=String(K),/[A-Z]/.test(K)&&this.isHTML)K=UH.toASCIILowerCase(K);var _=this._attrsByQName[K];if(!_)return null;if(Array.isArray(_))_=_[0];return _}},getAttributeNodeNS:{value:function(K,_){K=K===void 0||K===null?"":String(K),_=String(_);var z=this._attrsByLName[K+"|"+_];return z?z:null}},hasAttribute:{value:function(K){if(K=String(K),/[A-Z]/.test(K)&&this.isHTML)K=UH.toASCIILowerCase(K);return this._attrsByQName[K]!==void 0}},hasAttributeNS:{value:function(K,_){K=K===void 0||K===null?"":String(K),_=String(_);var z=K+"|"+_;return this._attrsByLName[z]!==void 0}},hasAttributes:{value:function(){return this._numattrs>0}},toggleAttribute:{value:function(K,_){if(K=String(K),!Dt1.isValidName(K))UH.InvalidCharacterError();if(/[A-Z]/.test(K)&&this.isHTML)K=UH.toASCIILowerCase(K);var z=this._attrsByQName[K];if(z===void 0){if(_===void 0||_===!0)return this._setAttribute(K,""),!0;return!1}else{if(_===void 0||_===!1)return this.removeAttribute(K),!1;return!0}}},_setAttribute:{value:function(K,_){var z=this._attrsByQName[K],Y;if(!z)z=this._newattr(K),Y=!0;else if(Array.isArray(z))z=z[0];if(z.value=_,this._attributes)this._attributes[K]=z;if(Y&&this._newattrhook)this._newattrhook(K,_)}},setAttribute:{value:function(K,_){if(K=String(K),!Dt1.isValidName(K))UH.InvalidCharacterError();if(/[A-Z]/.test(K)&&this.isHTML)K=UH.toASCIILowerCase(K);this._setAttribute(K,String(_))}},_setAttributeNS:{value:function(K,_,z){var Y=_.indexOf(":"),$,A;if(Y<0)$=null,A=_;else $=_.substring(0,Y),A=_.substring(Y+1);if(K===""||K===void 0)K=null;var O=(K===null?"":K)+"|"+A,w=this._attrsByLName[O],j;if(!w){if(w=new M88(this,A,$,K),j=!0,this._attrsByLName[O]=w,this._attributes)this._attributes[this._attrKeys.length]=w;this._attrKeys.push(O),this._addQName(w)}if(w.value=z,j&&this._newattrhook)this._newattrhook(_,z)}},setAttributeNS:{value:function(K,_,z){if(K=K===null||K===void 0||K===""?null:String(K),_=String(_),!Dt1.isValidQName(_))UH.InvalidCharacterError();var Y=_.indexOf(":"),$=Y<0?null:_.substring(0,Y);if($!==null&&K===null||$==="xml"&&K!==FQ.XML||(_==="xmlns"||$==="xmlns")&&K!==FQ.XMLNS||K===FQ.XMLNS&&!(_==="xmlns"||$==="xmlns"))UH.NamespaceError();this._setAttributeNS(K,_,String(z))}},setAttributeNode:{value:function(K){if(K.ownerElement!==null&&K.ownerElement!==this)throw new AR6(AR6.INUSE_ATTRIBUTE_ERR);var _=null,z=this._attrsByQName[K.name];if(z){if(!Array.isArray(z))z=[z];if(z.some(function(Y){return Y===K}))return K;else if(K.ownerElement!==null)throw new AR6(AR6.INUSE_ATTRIBUTE_ERR);z.forEach(function(Y){this.removeAttributeNode(Y)},this),_=z[0]}return this.setAttributeNodeNS(K),_}},setAttributeNodeNS:{value:function(K){if(K.ownerElement!==null)throw new AR6(AR6.INUSE_ATTRIBUTE_ERR);var _=K.namespaceURI,z=(_===null?"":_)+"|"+K.localName,Y=this._attrsByLName[z];if(Y)this.removeAttributeNode(Y);if(K._setOwnerElement(this),this._attrsByLName[z]=K,this._attributes)this._attributes[this._attrKeys.length]=K;if(this._attrKeys.push(z),this._addQName(K),this._newattrhook)this._newattrhook(K.name,K.value);return Y||null}},removeAttribute:{value:function(K){if(K=String(K),/[A-Z]/.test(K)&&this.isHTML)K=UH.toASCIILowerCase(K);var _=this._attrsByQName[K];if(!_)return;if(Array.isArray(_))if(_.length>2)_=_.shift();else this._attrsByQName[K]=_[1],_=_[0];else this._attrsByQName[K]=void 0;var z=_.namespaceURI,Y=(z===null?"":z)+"|"+_.localName;this._attrsByLName[Y]=void 0;var $=this._attrKeys.indexOf(Y);if(this._attributes)Array.prototype.splice.call(this._attributes,$,1),this._attributes[K]=void 0;this._attrKeys.splice($,1);var A=_.onchange;if(_._setOwnerElement(null),A)A.call(_,this,_.localName,_.value,null);if(this.rooted)this.ownerDocument.mutateRemoveAttr(_)}},removeAttributeNS:{value:function(K,_){K=K===void 0||K===null?"":String(K),_=String(_);var z=K+"|"+_,Y=this._attrsByLName[z];if(!Y)return;this._attrsByLName[z]=void 0;var $=this._attrKeys.indexOf(z);if(this._attributes)Array.prototype.splice.call(this._attributes,$,1);this._attrKeys.splice($,1),this._removeQName(Y);var A=Y.onchange;if(Y._setOwnerElement(null),A)A.call(Y,this,Y.localName,Y.value,null);if(this.rooted)this.ownerDocument.mutateRemoveAttr(Y)}},removeAttributeNode:{value:function(K){var _=K.namespaceURI,z=(_===null?"":_)+"|"+K.localName;if(this._attrsByLName[z]!==K)UH.NotFoundError();return this.removeAttributeNS(_,K.localName),K}},getAttributeNames:{value:function(){var K=this;return this._attrKeys.map(function(_){return K._attrsByLName[_].name})}},_getattr:{value:function(K){var _=this._attrsByQName[K];return _?_.value:null}},_setattr:{value:function(K,_){var z=this._attrsByQName[K],Y;if(!z)z=this._newattr(K),Y=!0;if(z.value=String(_),this._attributes)this._attributes[K]=z;if(Y&&this._newattrhook)this._newattrhook(K,_)}},_newattr:{value:function(K){var _=new M88(this,K,null,null),z="|"+K;if(this._attrsByQName[K]=_,this._attrsByLName[z]=_,this._attributes)this._attributes[this._attrKeys.length]=_;return this._attrKeys.push(z),_}},_addQName:{value:function(q){var K=q.name,_=this._attrsByQName[K];if(!_)this._attrsByQName[K]=q;else if(Array.isArray(_))_.push(q);else this._attrsByQName[K]=[_,q];if(this._attributes)this._attributes[K]=q}},_removeQName:{value:function(q){var K=q.name,_=this._attrsByQName[K];if(Array.isArray(_)){var z=_.indexOf(q);if(UH.assert(z!==-1),_.length===2){if(this._attrsByQName[K]=_[1-z],this._attributes)this._attributes[K]=this._attrsByQName[K]}else if(_.splice(z,1),this._attributes&&this._attributes[K]===q)this._attributes[K]=_[0]}else if(UH.assert(_===q),this._attrsByQName[K]=void 0,this._attributes)this._attributes[K]=void 0}},_numattrs:{get:function(){return this._attrKeys.length}},_attr:{value:function(q){return this._attrsByLName[this._attrKeys[q]]}},id:Bu8.property({name:"id"}),className:Bu8.property({name:"class"}),classList:{get:function(){var q=this;if(this._classList)return this._classList;var K=new Vez(function(){return q.className||""},function(_){q.className=_});return this._classList=K,K},set:function(q){this.className=q}},matches:{value:function(q){return Zt1.matches(this,q)}},closest:{value:function(q){var K=this;do{if(K.matches&&K.matches(q))return K;K=K.parentElement||K.parentNode}while(K!==null&&K.nodeType===Kp.ELEMENT_NODE);return null}},querySelector:{value:function(q){return Zt1(q,this)[0]}},querySelectorAll:{value:function(q){var K=Zt1(q,this);return K.item?K:new ft1(K)}}});Object.defineProperties(CK6.prototype,Nez);Object.defineProperties(CK6.prototype,yez);Bu8.registerChangeHandler(CK6,"id",function(q,K,_,z){if(q.rooted){if(_)q.ownerDocument.delId(_,q);if(z)q.ownerDocument.addId(z,q)}});Bu8.registerChangeHandler(CK6,"class",function(q,K,_,z){if(q._classList)q._classList._update()});function M88(q,K,_,z,Y){this.localName=K,this.prefix=_===null||_===""?null:""+_,this.namespaceURI=z===null||z===""?null:""+z,this.data=Y,this._setOwnerElement(q)}M88.prototype=Object.create(Object.prototype,{ownerElement:{get:function(){return this._ownerElement}},_setOwnerElement:{value:function(K){if(this._ownerElement=K,this.prefix===null&&this.namespaceURI===null&&K)this.onchange=K._attributeChangeHandlers[this.localName];else this.onchange=null}},name:{get:function(){return this.prefix?this.prefix+":"+this.localName:this.localName}},specified:{get:function(){return!0}},value:{get:function(){return this.data},set:function(q){var K=this.data;if(q=q===void 0?"":q+"",q===K)return;if(this.data=q,this.ownerElement){if(this.onchange)this.onchange(this.ownerElement,this.localName,K,q);if(this.ownerElement.rooted)this.ownerElement.ownerDocument.mutateAttr(this,K)}}},cloneNode:{value:function(K){return new M88(null,this.localName,this.prefix,this.namespaceURI,this.data)}},nodeType:{get:function(){return Kp.ATTRIBUTE_NODE}},nodeName:{get:function(){return this.name}},nodeValue:{get:function(){return this.value},set:function(q){this.value=q}},textContent:{get:function(){return this.value},set:function(q){if(q===null||q===void 0)q="";this.value=q}},innerText:{get:function(){return this.value},set:function(q){if(q===null||q===void 0)q="";this.value=q}}});CK6._Attr=M88;function vt1(q){mOK.call(this,q);for(var K in q._attrsByQName)this[K]=q._attrsByQName[K];for(var _=0;_<q._attrKeys.length;_++)this[_]=q._attrsByLName[q._attrKeys[_]]}vt1.prototype=Object.create(mOK.prototype,{length:{get:function(){return this.element._attrKeys.length},set:function(){}},item:{value:function(q){if(q=q>>>0,q>=this.length)return null;return this.element._attrsByLName[this.element._attrKeys[q]]}}});if(globalThis.Symbol?.iterator)vt1.prototype[globalThis.Symbol.iterator]=function(){var q=0,K=this.length,_=this;return{next:function(){if(q<K)return{value:_.item(q++)};return{done:!0}}}};function pOK(q){this.element=q,this.updateCache()}pOK.prototype=Object.create(Object.prototype,{length:{get:function(){return this.updateCache(),this.childrenByNumber.length}},item:{value:function(K){return this.updateCache(),this.childrenByNumber[K]||null}},namedItem:{value:function(K){return this.updateCache(),this.childrenByName[K]||null}},namedItems:{get:function(){return this.updateCache(),this.childrenByName}},updateCache:{value:function(){var K=/^(a|applet|area|embed|form|frame|frameset|iframe|img|object)$/;if(this.lastModTime!==this.element.lastModTime){this.lastModTime=this.element.lastModTime;var _=this.childrenByNumber&&this.childrenByNumber.length||0;for(var z=0;z<_;z++)this[z]=void 0;this.childrenByNumber=[],this.childrenByName=Object.create(null);for(var Y=this.element.firstChild;Y!==null;Y=Y.nextSibling)if(Y.nodeType===Kp.ELEMENT_NODE){this[this.childrenByNumber.length]=Y,this.childrenByNumber.push(Y);var $=Y.getAttribute("id");if($&&!this.childrenByName[$])this.childrenByName[$]=Y;var A=Y.getAttribute("name");if(A&&this.element.namespaceURI===FQ.HTML&&K.test(this.element.localName)&&!this.childrenByName[A])this.childrenByName[$]=Y}}}}});function Tt1(q){return function(K){return K.localName===q}}function Eez(q){var K=UH.toASCIILowerCase(q);if(K===q)return Tt1(q);return function(_){return _.isHTML?_.localName===K:_.localName===q}}function Lez(q){return function(K){return K.namespaceURI===q}}function Rez(q,K){return function(_){return _.namespaceURI===q&&_.localName===K}}function hez(q){return function(K){return q.every(function(_){return K.classList.contains(_)})}}function Sez(q){return function(K){if(K.namespaceURI!==FQ.HTML)return!1;return K.getAttribute("name")===q}}});var kt1=m((ijw,dOK)=>{dOK.exports=QOK;var FOK=F0(),Cez=oj6(),UOK=xJ(),gOK=UOK.HierarchyRequestError,bez=UOK.NotFoundError;function QOK(){FOK.call(this)}QOK.prototype=Object.create(FOK.prototype,{hasChildNodes:{value:function(){return!1}},firstChild:{value:null},lastChild:{value:null},insertBefore:{value:function(q,K){if(!q.nodeType)throw TypeError("not a node");gOK()}},replaceChild:{value:function(q,K){if(!q.nodeType)throw TypeError("not a node");gOK()}},removeChild:{value:function(q){if(!q.nodeType)throw TypeError("not a node");bez()}},removeChildren:{value:function(){}},childNodes:{get:function(){if(!this._childNodes)this._childNodes=new Cez;return this._childNodes}}})});var X88=m((rjw,nOK)=>{nOK.exports=gu8;var lOK=kt1(),cOK=xJ(),xez=mu8(),Iez=Pt1();function gu8(){lOK.call(this)}gu8.prototype=Object.create(lOK.prototype,{substringData:{value:function(K,_){if(arguments.length<2)throw TypeError("Not enough arguments");if(K=K>>>0,_=_>>>0,K>this.data.length||K<0||_<0)cOK.IndexSizeError();return this.data.substring(K,K+_)}},appendData:{value:function(K){if(arguments.length<1)throw TypeError("Not enough arguments");this.data+=String(K)}},insertData:{value:function(K,_){return this.replaceData(K,0,_)}},deleteData:{value:function(K,_){return this.replaceData(K,_,"")}},replaceData:{value:function(K,_,z){var Y=this.data,$=Y.length;if(K=K>>>0,_=_>>>0,z=String(z),K>$||K<0)cOK.IndexSizeError();if(K+_>$)_=$-K;var A=Y.substring(0,K),O=Y.substring(K+_);this.data=A+z+O}},isEqual:{value:function(K){return this._data===K._data}},length:{get:function(){return this.data.length}}});Object.defineProperties(gu8.prototype,xez);Object.defineProperties(gu8.prototype,Iez)});var Nt1=m((ojw,aOK)=>{aOK.exports=Vt1;var iOK=xJ(),rOK=F0(),oOK=X88();function Vt1(q,K){oOK.call(this),this.nodeType=rOK.TEXT_NODE,this.ownerDocument=q,this._data=K,this._index=void 0}var P88={get:function(){return this._data},set:function(q){if(q===null||q===void 0)q="";else q=String(q);if(q===this._data)return;if(this._data=q,this.rooted)this.ownerDocument.mutateValue(this);if(this.parentNode&&this.parentNode._textchangehook)this.parentNode._textchangehook(this)}};Vt1.prototype=Object.create(oOK.prototype,{nodeName:{value:"#text"},nodeValue:P88,textContent:P88,innerText:P88,data:{get:P88.get,set:function(q){P88.set.call(this,q===null?"":String(q))}},splitText:{value:function(K){if(K>this._data.length||K<0)iOK.IndexSizeError();var _=this._data.substring(K),z=this.ownerDocument.createTextNode(_);this.data=this.data.substring(0,K);var Y=this.parentNode;if(Y!==null)Y.insertBefore(z,this.nextSibling);return z}},wholeText:{get:function(){var K=this.textContent;for(var _=this.nextSibling;_;_=_.nextSibling){if(_.nodeType!==rOK.TEXT_NODE)break;K+=_.textContent}return K}},replaceWholeText:{value:iOK.nyi},clone:{value:function(){return new Vt1(this.ownerDocument,this._data)}}})});var Et1=m((ajw,tOK)=>{tOK.exports=yt1;var uez=F0(),sOK=X88();function yt1(q,K){sOK.call(this),this.nodeType=uez.COMMENT_NODE,this.ownerDocument=q,this._data=K}var W88={get:function(){return this._data},set:function(q){if(q===null||q===void 0)q="";else q=String(q);if(this._data=q,this.rooted)this.ownerDocument.mutateValue(this)}};yt1.prototype=Object.create(sOK.prototype,{nodeName:{value:"#comment"},nodeValue:W88,textContent:W88,innerText:W88,data:{get:W88.get,set:function(q){W88.set.call(this,q===null?"":String(q))}},clone:{value:function(){return new yt1(this.ownerDocument,this._data)}}})});var Rt1=m((sjw,KwK)=>{KwK.exports=Lt1;var mez=F0(),pez=oj6(),qwK=Su8(),Fu8=OR6(),Bez=uu8(),eOK=xJ();function Lt1(q){qwK.call(this),this.nodeType=mez.DOCUMENT_FRAGMENT_NODE,this.ownerDocument=q}Lt1.prototype=Object.create(qwK.prototype,{nodeName:{value:"#document-fragment"},nodeValue:{get:function(){return null},set:function(){}},textContent:Object.getOwnPropertyDescriptor(Fu8.prototype,"textContent"),innerText:Object.getOwnPropertyDescriptor(Fu8.prototype,"innerText"),querySelector:{value:function(q){var K=this.querySelectorAll(q);return K.length?K[0]:null}},querySelectorAll:{value:function(q){var K=Object.create(this);K.isHTML=!0,K.getElementsByTagName=Fu8.prototype.getElementsByTagName,K.nextElement=Object.getOwnPropertyDescriptor(Fu8.prototype,"firstElementChild").get;var _=Bez(q,K);return _.item?_:new pez(_)}},clone:{value:function(){return new Lt1(this.ownerDocument)}},isEqual:{value:function(K){return!0}},innerHTML:{get:function(){return this.serialize()},set:eOK.nyi},outerHTML:{get:function(){return this.serialize()},set:eOK.nyi}})});var St1=m((tjw,zwK)=>{zwK.exports=ht1;var gez=F0(),_wK=X88();function ht1(q,K,_){_wK.call(this),this.nodeType=gez.PROCESSING_INSTRUCTION_NODE,this.ownerDocument=q,this.target=K,this._data=_}var D88={get:function(){return this._data},set:function(q){if(q===null||q===void 0)q="";else q=String(q);if(this._data=q,this.rooted)this.ownerDocument.mutateValue(this)}};ht1.prototype=Object.create(_wK.prototype,{nodeName:{get:function(){return this.target}},nodeValue:D88,textContent:D88,innerText:D88,data:{get:D88.get,set:function(q){D88.set.call(this,q===null?"":String(q))}},clone:{value:function(){return new ht1(this.ownerDocument,this.target,this._data)}},isEqual:{value:function(K){return this.target===K.target&&this._data===K._data}}})});var f88=m((ejw,YwK)=>{var Ct1={FILTER_ACCEPT:1,FILTER_REJECT:2,FILTER_SKIP:3,SHOW_ALL:4294967295,SHOW_ELEMENT:1,SHOW_ATTRIBUTE:2,SHOW_TEXT:4,SHOW_CDATA_SECTION:8,SHOW_ENTITY_REFERENCE:16,SHOW_ENTITY:32,SHOW_PROCESSING_INSTRUCTION:64,SHOW_COMMENT:128,SHOW_DOCUMENT:256,SHOW_DOCUMENT_TYPE:512,SHOW_DOCUMENT_FRAGMENT:1024,SHOW_NOTATION:2048};YwK.exports=Ct1.constructor=Ct1.prototype=Ct1});var xt1=m((KHw,AwK)=>{var qHw=AwK.exports={nextSkippingChildren:Fez,nextAncestorSibling:bt1,next:Uez,previous:Qez,deepLastChild:$wK};function Fez(q,K){if(q===K)return null;if(q.nextSibling!==null)return q.nextSibling;return bt1(q,K)}function bt1(q,K){for(q=q.parentNode;q!==null;q=q.parentNode){if(q===K)return null;if(q.nextSibling!==null)return q.nextSibling}return null}function Uez(q,K){var _=q.firstChild;if(_!==null)return _;if(q===K)return null;if(_=q.nextSibling,_!==null)return _;return bt1(q,K)}function $wK(q){while(q.lastChild)q=q.lastChild;return q}function Qez(q,K){var _=q.previousSibling;if(_!==null)return $wK(_);if(_=q.parentNode,_===K)return null;return _}});var XwK=m((_Hw,MwK)=>{MwK.exports=JwK;var dez=F0(),U0=f88(),OwK=xt1(),HwK=xJ(),It1={first:"firstChild",last:"lastChild",next:"firstChild",previous:"lastChild"},ut1={first:"nextSibling",last:"previousSibling",next:"nextSibling",previous:"previousSibling"};function wwK(q,K){var _,z,Y,$,A;z=q._currentNode[It1[K]];while(z!==null){if($=q._internalFilter(z),$===U0.FILTER_ACCEPT)return q._currentNode=z,z;if($===U0.FILTER_SKIP){if(_=z[It1[K]],_!==null){z=_;continue}}while(z!==null){if(A=z[ut1[K]],A!==null){z=A;break}if(Y=z.parentNode,Y===null||Y===q.root||Y===q._currentNode)return null;else z=Y}}return null}function jwK(q,K){var _,z,Y;if(_=q._currentNode,_===q.root)return null;while(!0){Y=_[ut1[K]];while(Y!==null){if(_=Y,z=q._internalFilter(_),z===U0.FILTER_ACCEPT)return q._currentNode=_,_;if(Y=_[It1[K]],z===U0.FILTER_REJECT||Y===null)Y=_[ut1[K]]}if(_=_.parentNode,_===null||_===q.root)return null;if(q._internalFilter(_)===U0.FILTER_ACCEPT)return null}}function JwK(q,K,_){if(!q||!q.nodeType)HwK.NotSupportedError();this._root=q,this._whatToShow=Number(K)||0,this._filter=_||null,this._active=!1,this._currentNode=q}Object.defineProperties(JwK.prototype,{root:{get:function(){return this._root}},whatToShow:{get:function(){return this._whatToShow}},filter:{get:function(){return this._filter}},currentNode:{get:function(){return this._currentNode},set:function(K){if(!(K instanceof dez))throw TypeError("Not a Node");this._currentNode=K}},_internalFilter:{value:function(K){var _,z;if(this._active)HwK.InvalidStateError();if(!(1<<K.nodeType-1&this._whatToShow))return U0.FILTER_SKIP;if(z=this._filter,z===null)_=U0.FILTER_ACCEPT;else{this._active=!0;try{if(typeof z==="function")_=z(K);else _=z.acceptNode(K)}finally{this._active=!1}}return+_}},parentNode:{value:function(){var K=this._currentNode;while(K!==this.root){if(K=K.parentNode,K===null)return null;if(this._internalFilter(K)===U0.FILTER_ACCEPT)return this._currentNode=K,K}return null}},firstChild:{value:function(){return wwK(this,"first")}},lastChild:{value:function(){return wwK(this,"last")}},previousSibling:{value:function(){return jwK(this,"previous")}},nextSibling:{value:function(){return jwK(this,"next")}},previousNode:{value:function(){var K,_,z,Y;K=this._currentNode;while(K!==this._root){for(z=K.previousSibling;z;z=K.previousSibling){if(K=z,_=this._internalFilter(K),_===U0.FILTER_REJECT)continue;for(Y=K.lastChild;Y;Y=K.lastChild)if(K=Y,_=this._internalFilter(K),_===U0.FILTER_REJECT)break;if(_===U0.FILTER_ACCEPT)return this._currentNode=K,K}if(K===this.root||K.parentNode===null)return null;if(K=K.parentNode,this._internalFilter(K)===U0.FILTER_ACCEPT)return this._currentNode=K,K}return null}},nextNode:{value:function(){var K,_,z,Y;K=this._currentNode,_=U0.FILTER_ACCEPT;q:while(!0){for(z=K.firstChild;z;z=K.firstChild)if(K=z,_=this._internalFilter(K),_===U0.FILTER_ACCEPT)return this._currentNode=K,K;else if(_===U0.FILTER_REJECT)break;for(Y=OwK.nextSkippingChildren(K,this.root);Y;Y=OwK.nextSkippingChildren(K,this.root))if(K=Y,_=this._internalFilter(K),_===U0.FILTER_ACCEPT)return this._currentNode=K,K;else if(_===U0.FILTER_SKIP)continue q;return null}}},toString:{value:function(){return"[object TreeWalker]"}}})});var GwK=m((zHw,ZwK)=>{ZwK.exports=fwK;var mt1=f88(),pt1=xt1(),DwK=xJ();function cez(q,K,_){if(_)return pt1.next(q,K);else{if(q===K)return null;return pt1.previous(q,null)}}function PwK(q,K){for(;K;K=K.parentNode)if(q===K)return!0;return!1}function WwK(q,K){var _,z;_=q._referenceNode,z=q._pointerBeforeReferenceNode;while(!0){if(z===K)z=!z;else if(_=cez(_,q._root,K),_===null)return null;var Y=q._internalFilter(_);if(Y===mt1.FILTER_ACCEPT)break}return q._referenceNode=_,q._pointerBeforeReferenceNode=z,_}function fwK(q,K,_){if(!q||!q.nodeType)DwK.NotSupportedError();this._root=q,this._referenceNode=q,this._pointerBeforeReferenceNode=!0,this._whatToShow=Number(K)||0,this._filter=_||null,this._active=!1,q.doc._attachNodeIterator(this)}Object.defineProperties(fwK.prototype,{root:{get:function(){return this._root}},referenceNode:{get:function(){return this._referenceNode}},pointerBeforeReferenceNode:{get:function(){return this._pointerBeforeReferenceNode}},whatToShow:{get:function(){return this._whatToShow}},filter:{get:function(){return this._filter}},_internalFilter:{value:function(K){var _,z;if(this._active)DwK.InvalidStateError();if(!(1<<K.nodeType-1&this._whatToShow))return mt1.FILTER_SKIP;if(z=this._filter,z===null)_=mt1.FILTER_ACCEPT;else{this._active=!0;try{if(typeof z==="function")_=z(K);else _=z.acceptNode(K)}finally{this._active=!1}}return+_}},_preremove:{value:function(K){if(PwK(K,this._root))return;if(!PwK(K,this._referenceNode))return;if(this._pointerBeforeReferenceNode){var _=K;while(_.lastChild)_=_.lastChild;if(_=pt1.next(_,this.root),_){this._referenceNode=_;return}this._pointerBeforeReferenceNode=!1}if(K.previousSibling===null)this._referenceNode=K.parentNode;else{this._referenceNode=K.previousSibling;var z;for(z=this._referenceNode.lastChild;z;z=this._referenceNode.lastChild)this._referenceNode=z}}},nextNode:{value:function(){return WwK(this,!0)}},previousNode:{value:function(){return WwK(this,!1)}},detach:{value:function(){}},toString:{value:function(){return"[object NodeIterator]"}}})});var Uu8=m((YHw,TwK)=>{TwK.exports=Q0;function Q0(q){if(!q)return Object.create(Q0.prototype);this.url=q.replace(/^[ \t\n\r\f]+|[ \t\n\r\f]+$/g,"");var K=Q0.pattern.exec(this.url);if(K){if(K[2])this.scheme=K[2];if(K[4]){var _=K[4].match(Q0.userinfoPattern);if(_)this.username=_[1],this.password=_[3],K[4]=K[4].substring(_[0].length);if(K[4].match(Q0.portPattern)){var z=K[4].lastIndexOf(":");this.host=K[4].substring(0,z),this.port=K[4].substring(z+1)}else this.host=K[4]}if(K[5])this.path=K[5];if(K[6])this.query=K[7];if(K[8])this.fragment=K[9]}}Q0.pattern=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/;Q0.userinfoPattern=/^([^@:]*)(:([^@]*))?@/;Q0.portPattern=/:\d+$/;Q0.authorityPattern=/^[^:\/?#]+:\/\//;Q0.hierarchyPattern=/^[^:\/?#]+:\//;Q0.percentEncode=function(K){var _=K.charCodeAt(0);if(_<256)return"%"+_.toString(16);else throw Error("can't percent-encode codepoints > 255 yet")};Q0.prototype={constructor:Q0,isAbsolute:function(){return!!this.scheme},isAuthorityBased:function(){return Q0.authorityPattern.test(this.url)},isHierarchical:function(){return Q0.hierarchyPattern.test(this.url)},toString:function(){var q="";if(this.scheme!==void 0)q+=this.scheme+":";if(this.isAbsolute()){if(q+="//",this.username||this.password){if(q+=this.username||"",this.password)q+=":"+this.password;q+="@"}if(this.host)q+=this.host}if(this.port!==void 0)q+=":"+this.port;if(this.path!==void 0)q+=this.path;if(this.query!==void 0)q+="?"+this.query;if(this.fragment!==void 0)q+="#"+this.fragment;return q},resolve:function(q){var K=this,_=new Q0(q),z=new Q0;if(_.scheme!==void 0)z.scheme=_.scheme,z.username=_.username,z.password=_.password,z.host=_.host,z.port=_.port,z.path=$(_.path),z.query=_.query;else if(z.scheme=K.scheme,_.host!==void 0)z.username=_.username,z.password=_.password,z.host=_.host,z.port=_.port,z.path=$(_.path),z.query=_.query;else if(z.username=K.username,z.password=K.password,z.host=K.host,z.port=K.port,!_.path)if(z.path=K.path,_.query!==void 0)z.query=_.query;else z.query=K.query;else{if(_.path.charAt(0)==="/")z.path=$(_.path);else z.path=Y(K.path,_.path),z.path=$(z.path);z.query=_.query}return z.fragment=_.fragment,z.toString();function Y(A,O){if(K.host!==void 0&&!K.path)return"/"+O;var w=A.lastIndexOf("/");if(w===-1)return O;else return A.substring(0,w+1)+O}function $(A){if(!A)return A;var O="";while(A.length>0){if(A==="."||A===".."){A="";break}var w=A.substring(0,2),j=A.substring(0,3),H=A.substring(0,4);if(j==="../")A=A.substring(3);else if(w==="./")A=A.substring(2);else if(j==="/./")A="/"+A.substring(3);else if(w==="/."&&A.length===2)A="/";else if(H==="/../"||j==="/.."&&A.length===3)A="/"+A.substring(4),O=O.replace(/\/?[^\/]*$/,"");else{var J=A.match(/(\/?([^\/]*))/)[0];O+=J,A=A.substring(J.length)}}return O}}}});var VwK=m(($Hw,kwK)=>{kwK.exports=Bt1;var vwK=qR6();function Bt1(q,K){vwK.call(this,q,K)}Bt1.prototype=Object.create(vwK.prototype,{constructor:{value:Bt1}})});var gt1=m((AHw,NwK)=>{NwK.exports={Event:qR6(),UIEvent:cs1(),MouseEvent:ns1(),CustomEvent:VwK()}});var RwK=m((EwK)=>{Object.defineProperty(EwK,"__esModule",{value:!0});EwK.hyphenate=EwK.parse=void 0;function lez(q){let K=[],_=0,z=0,Y=0,$=0,A=0,O=null;while(_<q.length)switch(q.charCodeAt(_++)){case 40:z++;break;case 41:z--;break;case 39:if(Y===0)Y=39;else if(Y===39&&q.charCodeAt(_-1)!==92)Y=0;break;case 34:if(Y===0)Y=34;else if(Y===34&&q.charCodeAt(_-1)!==92)Y=0;break;case 58:if(!O&&z===0&&Y===0)O=ywK(q.substring(A,_-1).trim()),$=_;break;case 59:if(O&&$>0&&z===0&&Y===0){let j=q.substring($,_-1).trim();K.push(O,j),A=_,$=0,O=null}break}if(O&&$){let w=q.slice($).trim();K.push(O,w)}return K}EwK.parse=lez;function ywK(q){return q.replace(/[a-z][A-Z]/g,(K)=>{return K.charAt(0)+"-"+K.charAt(1)}).toLowerCase()}EwK.hyphenate=ywK});var Qu8=m((wHw,xwK)=>{var{parse:iez}=RwK();xwK.exports=function(q){let K=new bwK(q);return new Proxy(K,{get:function(z,Y){return Y in z?z[Y]:z.getPropertyValue(hwK(Y))},has:function(z,Y){return!0},set:function(z,Y,$){if(Y in z)z[Y]=$;else z.setProperty(hwK(Y),$??void 0);return!0}})};function hwK(q){return q.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function bwK(q){this._element=q}var SwK="!important";function CwK(q){let K={property:{},priority:{}};if(!q)return K;let _=iez(q);if(_.length<2)return K;for(let z=0;z<_.length;z+=2){let Y=_[z],$=_[z+1];if($.endsWith(SwK))K.priority[Y]="important",$=$.slice(0,-SwK.length).trim();K.property[Y]=$}return K}var wR6={};bwK.prototype=Object.create(Object.prototype,{_parsed:{get:function(){if(!this._parsedStyles||this.cssText!==this._lastParsedText){var q=this.cssText;this._parsedStyles=CwK(q),this._lastParsedText=q,delete this._names}return this._parsedStyles}},_serialize:{value:function(){var q=this._parsed,K="";for(var _ in q.property){if(K)K+=" ";if(K+=_+": "+q.property[_],q.priority[_])K+=" !"+q.priority[_];K+=";"}this.cssText=K,this._lastParsedText=K,delete this._names}},cssText:{get:function(){return this._element.getAttribute("style")},set:function(q){this._element.setAttribute("style",q)}},length:{get:function(){if(!this._names)this._names=Object.getOwnPropertyNames(this._parsed.property);return this._names.length}},item:{value:function(q){if(!this._names)this._names=Object.getOwnPropertyNames(this._parsed.property);return this._names[q]}},getPropertyValue:{value:function(q){return q=q.toLowerCase(),this._parsed.property[q]||""}},getPropertyPriority:{value:function(q){return q=q.toLowerCase(),this._parsed.priority[q]||""}},setProperty:{value:function(q,K,_){if(q=q.toLowerCase(),K===null||K===void 0)K="";if(_===null||_===void 0)_="";if(K!==wR6)K=""+K;if(K=K.trim(),K===""){this.removeProperty(q);return}if(_!==""&&_!==wR6&&!/^important$/i.test(_))return;var z=this._parsed;if(K===wR6){if(!z.property[q])return;if(_!=="")z.priority[q]="important";else delete z.priority[q]}else{if(K.indexOf(";")!==-1)return;var Y=CwK(q+":"+K);if(Object.getOwnPropertyNames(Y.property).length===0)return;if(Object.getOwnPropertyNames(Y.priority).length!==0)return;for(var $ in Y.property)if(z.property[$]=Y.property[$],_===wR6)continue;else if(_!=="")z.priority[$]="important";else if(z.priority[$])delete z.priority[$]}this._serialize()}},setPropertyValue:{value:function(q,K){return this.setProperty(q,K,wR6)}},setPropertyPriority:{value:function(q,K){return this.setProperty(q,wR6,K)}},removeProperty:{value:function(q){q=q.toLowerCase();var K=this._parsed;if(q in K.property)delete K.property[q],delete K.priority[q],this._serialize()}}})});var Ft1=m((jHw,IwK)=>{var uD=Uu8();IwK.exports=Z88;function Z88(){}Z88.prototype=Object.create(Object.prototype,{_url:{get:function(){return new uD(this.href)}},protocol:{get:function(){var q=this._url;if(q&&q.scheme)return q.scheme+":";else return":"},set:function(q){var K=this.href,_=new uD(K);if(_.isAbsolute()){if(q=q.replace(/:+$/,""),q=q.replace(/[^-+\.a-zA-Z0-9]/g,uD.percentEncode),q.length>0)_.scheme=q,K=_.toString()}this.href=K}},host:{get:function(){var q=this._url;if(q.isAbsolute()&&q.isAuthorityBased())return q.host+(q.port?":"+q.port:"");else return""},set:function(q){var K=this.href,_=new uD(K);if(_.isAbsolute()&&_.isAuthorityBased()){if(q=q.replace(/[^-+\._~!$&'()*,;:=a-zA-Z0-9]/g,uD.percentEncode),q.length>0)_.host=q,delete _.port,K=_.toString()}this.href=K}},hostname:{get:function(){var q=this._url;if(q.isAbsolute()&&q.isAuthorityBased())return q.host;else return""},set:function(q){var K=this.href,_=new uD(K);if(_.isAbsolute()&&_.isAuthorityBased()){if(q=q.replace(/^\/+/,""),q=q.replace(/[^-+\._~!$&'()*,;:=a-zA-Z0-9]/g,uD.percentEncode),q.length>0)_.host=q,K=_.toString()}this.href=K}},port:{get:function(){var q=this._url;if(q.isAbsolute()&&q.isAuthorityBased()&&q.port!==void 0)return q.port;else return""},set:function(q){var K=this.href,_=new uD(K);if(_.isAbsolute()&&_.isAuthorityBased()){if(q=""+q,q=q.replace(/[^0-9].*$/,""),q=q.replace(/^0+/,""),q.length===0)q="0";if(parseInt(q,10)<=65535)_.port=q,K=_.toString()}this.href=K}},pathname:{get:function(){var q=this._url;if(q.isAbsolute()&&q.isHierarchical())return q.path;else return""},set:function(q){var K=this.href,_=new uD(K);if(_.isAbsolute()&&_.isHierarchical()){if(q.charAt(0)!=="/")q="/"+q;q=q.replace(/[^-+\._~!$&'()*,;:=@\/a-zA-Z0-9]/g,uD.percentEncode),_.path=q,K=_.toString()}this.href=K}},search:{get:function(){var q=this._url;if(q.isAbsolute()&&q.isHierarchical()&&q.query!==void 0)return"?"+q.query;else return""},set:function(q){var K=this.href,_=new uD(K);if(_.isAbsolute()&&_.isHierarchical()){if(q.charAt(0)==="?")q=q.substring(1);q=q.replace(/[^-+\._~!$&'()*,;:=@\/?a-zA-Z0-9]/g,uD.percentEncode),_.query=q,K=_.toString()}this.href=K}},hash:{get:function(){var q=this._url;if(q==null||q.fragment==null||q.fragment==="")return"";else return"#"+q.fragment},set:function(q){var K=this.href,_=new uD(K);if(q.charAt(0)==="#")q=q.substring(1);q=q.replace(/[^-+\._~!$&'()*,;:=@\/?a-zA-Z0-9]/g,uD.percentEncode),_.fragment=q,K=_.toString(),this.href=K}},username:{get:function(){var q=this._url;return q.username||""},set:function(q){var K=this.href,_=new uD(K);if(_.isAbsolute())q=q.replace(/[\x00-\x1F\x7F-\uFFFF "#<>?`\/@\\:]/g,uD.percentEncode),_.username=q,K=_.toString();this.href=K}},password:{get:function(){var q=this._url;return q.password||""},set:function(q){var K=this.href,_=new uD(K);if(_.isAbsolute()){if(q==="")_.password=null;else q=q.replace(/[\x00-\x1F\x7F-\uFFFF "#<>?`\/@\\]/g,uD.percentEncode),_.password=q;K=_.toString()}this.href=K}},origin:{get:function(){var q=this._url;if(q==null)return"";var K=function(_){var z=[q.scheme,q.host,+q.port||_];return z[0]+"://"+z[1]+(z[2]===_?"":":"+z[2])};switch(q.scheme){case"ftp":return K(21);case"gopher":return K(70);case"http":case"ws":return K(80);case"https":case"wss":return K(443);default:return q.scheme+"://"}}}});Z88._inherit=function(q){Object.getOwnPropertyNames(Z88.prototype).forEach(function(K){if(K==="constructor"||K==="href")return;var _=Object.getOwnPropertyDescriptor(Z88.prototype,K);Object.defineProperty(q,K,_)})}});var Ut1=m((HHw,pwK)=>{var uwK=Ot1(),rez=Lu8().isApiWritable;pwK.exports=function(q,K,_,z){var Y=q.ctor;if(Y){var $=q.props||{};if(q.attributes)for(var A in q.attributes){var O=q.attributes[A];if(typeof O!=="object"||Array.isArray(O))O={type:O};if(!O.name)O.name=A.toLowerCase();$[A]=uwK.property(O)}if($.constructor={value:Y,writable:rez},Y.prototype=Object.create((q.superclass||K).prototype,$),q.events)aez(Y,q.events);_[q.name]=Y}else Y=K;return(q.tags||q.tag&&[q.tag]||[]).forEach(function(w){z[w]=Y}),Y};function mwK(q,K,_,z){this.body=q,this.document=K,this.form=_,this.element=z}mwK.prototype.build=function(){return()=>{}};function oez(q,K,_,z){var Y=q.ownerDocument||Object.create(null),$=q.form||Object.create(null);q[K]=new mwK(z,Y,$,q).build()}function aez(q,K){var _=q.prototype;K.forEach(function(z){Object.defineProperty(_,"on"+z,{get:function(){return this._getEventHandler(z)},set:function(Y){this._setEventHandler(z,Y)}}),uwK.registerChangeHandler(q,"on"+z,oez)})}});var cu8=m((K6Y)=>{var Qt1=F0(),BwK=OR6(),sez=Qu8(),AR=xJ(),gwK=Ft1(),tez=Ut1(),Na=K6Y.elements={},G88=Object.create(null);K6Y.createElement=function(q,K,_){var z=G88[K]||q6Y;return new z(q,K,_)};function h4(q){return tez(q,dK,Na,G88)}function IJ(q){return{get:function(){var K=this._getattr(q);if(K===null)return"";var _=this.doc._resolve(K);return _===null?K:_},set:function(K){this._setattr(q,K)}}}function du8(q){return{get:function(){var K=this._getattr(q);if(K===null)return null;if(K.toLowerCase()==="use-credentials")return"use-credentials";return"anonymous"},set:function(K){if(K===null||K===void 0)this.removeAttribute(q);else this._setattr(q,K)}}}var jR6={type:["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],missing:""},eez={A:!0,LINK:!0,BUTTON:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0,COMMAND:!0},_p=function(q,K,_){dK.call(this,q,K,_),this._form=null},dK=K6Y.HTMLElement=h4({superclass:BwK,name:"HTMLElement",ctor:function(K,_,z){BwK.call(this,K,_,AR.NAMESPACE.HTML,z)},props:{dangerouslySetInnerHTML:{set:function(q){this._innerHTML=q}},innerHTML:{get:function(){return this.serialize()},set:function(q){var K=this.ownerDocument.implementation.mozHTMLParser(this.ownerDocument._address,this);K.parse(q===null?"":String(q),!0);var _=this instanceof G88.template?this.content:this;while(_.hasChildNodes())_.removeChild(_.firstChild);_.appendChild(K._asDocumentFragment())}},style:{get:function(){if(!this._style)this._style=new sez(this);return this._style},set:function(q){if(q===null||q===void 0)q="";this._setattr("style",String(q))}},blur:{value:function(){}},focus:{value:function(){}},forceSpellCheck:{value:function(){}},click:{value:function(){if(this._click_in_progress)return;this._click_in_progress=!0;try{if(this._pre_click_activation_steps)this._pre_click_activation_steps();var q=this.ownerDocument.createEvent("MouseEvent");q.initMouseEvent("click",!0,!0,this.ownerDocument.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);var K=this.dispatchEvent(q);if(K){if(this._post_click_activation_steps)this._post_click_activation_steps(q)}else if(this._cancelled_activation_steps)this._cancelled_activation_steps()}finally{this._click_in_progress=!1}}},submit:{value:AR.nyi}},attributes:{title:String,lang:String,dir:{type:["ltr","rtl","auto"],missing:""},draggable:{type:["true","false"],treatNullAsEmptyString:!0},spellcheck:{type:["true","false"],missing:""},enterKeyHint:{type:["enter","done","go","next","previous","search","send"],missing:""},autoCapitalize:{type:["off","on","none","sentences","words","characters"],missing:""},autoFocus:Boolean,accessKey:String,nonce:String,hidden:Boolean,translate:{type:["no","yes"],missing:""},tabIndex:{type:"long",default:function(){if(this.tagName in eez||this.contentEditable)return 0;else return-1}}},events:["abort","canplay","canplaythrough","change","click","contextmenu","cuechange","dblclick","drag","dragend","dragenter","dragleave","dragover","dragstart","drop","durationchange","emptied","ended","input","invalid","keydown","keypress","keyup","loadeddata","loadedmetadata","loadstart","mousedown","mousemove","mouseout","mouseover","mouseup","mousewheel","pause","play","playing","progress","ratechange","readystatechange","reset","seeked","seeking","select","show","stalled","submit","suspend","timeupdate","volumechange","waiting","blur","error","focus","load","scroll"]}),q6Y=h4({name:"HTMLUnknownElement",ctor:function(K,_,z){dK.call(this,K,_,z)}}),zp={form:{get:function(){return this._form}}};h4({tag:"a",name:"HTMLAnchorElement",ctor:function(K,_,z){dK.call(this,K,_,z)},props:{_post_click_activation_steps:{value:function(q){if(this.href)this.ownerDocument.defaultView.location=this.href}}},attributes:{href:IJ,ping:String,download:String,target:String,rel:String,media:String,hreflang:String,type:String,referrerPolicy:jR6,coords:String,charset:String,name:String,rev:String,shape:String}});gwK._inherit(G88.a.prototype);h4({tag:"area",name:"HTMLAreaElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{alt:String,target:String,download:String,rel:String,media:String,href:IJ,hreflang:String,type:String,shape:String,coords:String,ping:String,referrerPolicy:jR6,noHref:Boolean}});gwK._inherit(G88.area.prototype);h4({tag:"br",name:"HTMLBRElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{clear:String}});h4({tag:"base",name:"HTMLBaseElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{target:String}});h4({tag:"body",name:"HTMLBodyElement",ctor:function(K,_,z){dK.call(this,K,_,z)},events:["afterprint","beforeprint","beforeunload","blur","error","focus","hashchange","load","message","offline","online","pagehide","pageshow","popstate","resize","scroll","storage","unload"],attributes:{text:{type:String,treatNullAsEmptyString:!0},link:{type:String,treatNullAsEmptyString:!0},vLink:{type:String,treatNullAsEmptyString:!0},aLink:{type:String,treatNullAsEmptyString:!0},bgColor:{type:String,treatNullAsEmptyString:!0},background:String}});h4({tag:"button",name:"HTMLButtonElement",ctor:function(K,_,z){_p.call(this,K,_,z)},props:zp,attributes:{name:String,value:String,disabled:Boolean,autofocus:Boolean,type:{type:["submit","reset","button","menu"],missing:"submit"},formTarget:String,formAction:IJ,formNoValidate:Boolean,formMethod:{type:["get","post","dialog"],invalid:"get",missing:""},formEnctype:{type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:""}}});h4({tag:"dl",name:"HTMLDListElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{compact:Boolean}});h4({tag:"data",name:"HTMLDataElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{value:String}});h4({tag:"datalist",name:"HTMLDataListElement",ctor:function(K,_,z){dK.call(this,K,_,z)}});h4({tag:"details",name:"HTMLDetailsElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{open:Boolean}});h4({tag:"div",name:"HTMLDivElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{align:String}});h4({tag:"embed",name:"HTMLEmbedElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{src:IJ,type:String,width:String,height:String,align:String,name:String}});h4({tag:"fieldset",name:"HTMLFieldSetElement",ctor:function(K,_,z){_p.call(this,K,_,z)},props:zp,attributes:{disabled:Boolean,name:String}});h4({tag:"form",name:"HTMLFormElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{action:String,autocomplete:{type:["on","off"],missing:"on"},name:String,acceptCharset:{name:"accept-charset"},target:String,noValidate:Boolean,method:{type:["get","post","dialog"],invalid:"get",missing:"get"},enctype:{type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:"application/x-www-form-urlencoded"},encoding:{name:"enctype",type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:"application/x-www-form-urlencoded"}}});h4({tag:"hr",name:"HTMLHRElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{align:String,color:String,noShade:Boolean,size:String,width:String}});h4({tag:"head",name:"HTMLHeadElement",ctor:function(K,_,z){dK.call(this,K,_,z)}});h4({tags:["h1","h2","h3","h4","h5","h6"],name:"HTMLHeadingElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{align:String}});h4({tag:"html",name:"HTMLHtmlElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{xmlns:IJ,version:String}});h4({tag:"iframe",name:"HTMLIFrameElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{src:IJ,srcdoc:String,name:String,width:String,height:String,seamless:Boolean,allow:Boolean,allowFullscreen:Boolean,allowUserMedia:Boolean,allowPaymentRequest:Boolean,referrerPolicy:jR6,loading:{type:["eager","lazy"],treatNullAsEmptyString:!0},align:String,scrolling:String,frameBorder:String,longDesc:IJ,marginHeight:{type:String,treatNullAsEmptyString:!0},marginWidth:{type:String,treatNullAsEmptyString:!0}}});h4({tag:"img",name:"HTMLImageElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{alt:String,src:IJ,srcset:String,crossOrigin:du8,useMap:String,isMap:Boolean,sizes:String,height:{type:"unsigned long",default:0},width:{type:"unsigned long",default:0},referrerPolicy:jR6,loading:{type:["eager","lazy"],missing:""},name:String,lowsrc:IJ,align:String,hspace:{type:"unsigned long",default:0},vspace:{type:"unsigned long",default:0},longDesc:IJ,border:{type:String,treatNullAsEmptyString:!0}}});h4({tag:"input",name:"HTMLInputElement",ctor:function(K,_,z){_p.call(this,K,_,z)},props:{form:zp.form,_post_click_activation_steps:{value:function(q){if(this.type==="checkbox")this.checked=!this.checked;else if(this.type==="radio"){var K=this.form.getElementsByName(this.name);for(var _=K.length-1;_>=0;_--){var z=K[_];z.checked=z===this}}}}},attributes:{name:String,disabled:Boolean,autofocus:Boolean,accept:String,alt:String,max:String,min:String,pattern:String,placeholder:String,step:String,dirName:String,defaultValue:{name:"value"},multiple:Boolean,required:Boolean,readOnly:Boolean,checked:Boolean,value:String,src:IJ,defaultChecked:{name:"checked",type:Boolean},size:{type:"unsigned long",default:20,min:1,setmin:1},width:{type:"unsigned long",min:0,setmin:0,default:0},height:{type:"unsigned long",min:0,setmin:0,default:0},minLength:{type:"unsigned long",min:0,setmin:0,default:-1},maxLength:{type:"unsigned long",min:0,setmin:0,default:-1},autocomplete:String,type:{type:["text","hidden","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"],missing:"text"},formTarget:String,formNoValidate:Boolean,formMethod:{type:["get","post"],invalid:"get",missing:""},formEnctype:{type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:""},inputMode:{type:["verbatim","latin","latin-name","latin-prose","full-width-latin","kana","kana-name","katakana","numeric","tel","email","url"],missing:""},align:String,useMap:String}});h4({tag:"keygen",name:"HTMLKeygenElement",ctor:function(K,_,z){_p.call(this,K,_,z)},props:zp,attributes:{name:String,disabled:Boolean,autofocus:Boolean,challenge:String,keytype:{type:["rsa"],missing:""}}});h4({tag:"li",name:"HTMLLIElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{value:{type:"long",default:0},type:String}});h4({tag:"label",name:"HTMLLabelElement",ctor:function(K,_,z){_p.call(this,K,_,z)},props:zp,attributes:{htmlFor:{name:"for",type:String}}});h4({tag:"legend",name:"HTMLLegendElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{align:String}});h4({tag:"link",name:"HTMLLinkElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{href:IJ,rel:String,media:String,hreflang:String,type:String,crossOrigin:du8,nonce:String,integrity:String,referrerPolicy:jR6,imageSizes:String,imageSrcset:String,charset:String,rev:String,target:String}});h4({tag:"map",name:"HTMLMapElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{name:String}});h4({tag:"menu",name:"HTMLMenuElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{type:{type:["context","popup","toolbar"],missing:"toolbar"},label:String,compact:Boolean}});h4({tag:"meta",name:"HTMLMetaElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{name:String,content:String,httpEquiv:{name:"http-equiv",type:String},scheme:String}});h4({tag:"meter",name:"HTMLMeterElement",ctor:function(K,_,z){_p.call(this,K,_,z)},props:zp});h4({tags:["ins","del"],name:"HTMLModElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{cite:IJ,dateTime:String}});h4({tag:"ol",name:"HTMLOListElement",ctor:function(K,_,z){dK.call(this,K,_,z)},props:{_numitems:{get:function(){var q=0;return this.childNodes.forEach(function(K){if(K.nodeType===Qt1.ELEMENT_NODE&&K.tagName==="LI")q++}),q}}},attributes:{type:String,reversed:Boolean,start:{type:"long",default:function(){if(this.reversed)return this._numitems;else return 1}},compact:Boolean}});h4({tag:"object",name:"HTMLObjectElement",ctor:function(K,_,z){_p.call(this,K,_,z)},props:zp,attributes:{data:IJ,type:String,name:String,useMap:String,typeMustMatch:Boolean,width:String,height:String,align:String,archive:String,code:String,declare:Boolean,hspace:{type:"unsigned long",default:0},standby:String,vspace:{type:"unsigned long",default:0},codeBase:IJ,codeType:String,border:{type:String,treatNullAsEmptyString:!0}}});h4({tag:"optgroup",name:"HTMLOptGroupElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{disabled:Boolean,label:String}});h4({tag:"option",name:"HTMLOptionElement",ctor:function(K,_,z){dK.call(this,K,_,z)},props:{form:{get:function(){var q=this.parentNode;while(q&&q.nodeType===Qt1.ELEMENT_NODE){if(q.localName==="select")return q.form;q=q.parentNode}}},value:{get:function(){return this._getattr("value")||this.text},set:function(q){this._setattr("value",q)}},text:{get:function(){return this.textContent.replace(/[ \t\n\f\r]+/g," ").trim()},set:function(q){this.textContent=q}}},attributes:{disabled:Boolean,defaultSelected:{name:"selected",type:Boolean},label:String}});h4({tag:"output",name:"HTMLOutputElement",ctor:function(K,_,z){_p.call(this,K,_,z)},props:zp,attributes:{name:String}});h4({tag:"p",name:"HTMLParagraphElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{align:String}});h4({tag:"param",name:"HTMLParamElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{name:String,value:String,type:String,valueType:String}});h4({tags:["pre","listing","xmp"],name:"HTMLPreElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{width:{type:"long",default:0}}});h4({tag:"progress",name:"HTMLProgressElement",ctor:function(K,_,z){_p.call(this,K,_,z)},props:zp,attributes:{max:{type:Number,float:!0,default:1,min:0}}});h4({tags:["q","blockquote"],name:"HTMLQuoteElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{cite:IJ}});h4({tag:"script",name:"HTMLScriptElement",ctor:function(K,_,z){dK.call(this,K,_,z)},props:{text:{get:function(){var q="";for(var K=0,_=this.childNodes.length;K<_;K++){var z=this.childNodes[K];if(z.nodeType===Qt1.TEXT_NODE)q+=z._data}return q},set:function(q){if(this.removeChildren(),q!==null&&q!=="")this.appendChild(this.ownerDocument.createTextNode(q))}}},attributes:{src:IJ,type:String,charset:String,referrerPolicy:jR6,defer:Boolean,async:Boolean,nomodule:Boolean,crossOrigin:du8,nonce:String,integrity:String}});h4({tag:"select",name:"HTMLSelectElement",ctor:function(K,_,z){_p.call(this,K,_,z)},props:{form:zp.form,options:{get:function(){return this.getElementsByTagName("option")}}},attributes:{autocomplete:String,name:String,disabled:Boolean,autofocus:Boolean,multiple:Boolean,required:Boolean,size:{type:"unsigned long",default:0}}});h4({tag:"span",name:"HTMLSpanElement",ctor:function(K,_,z){dK.call(this,K,_,z)}});h4({tag:"style",name:"HTMLStyleElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{media:String,type:String,scoped:Boolean}});h4({tag:"caption",name:"HTMLTableCaptionElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{align:String}});h4({name:"HTMLTableCellElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{colSpan:{type:"unsigned long",default:1},rowSpan:{type:"unsigned long",default:1},scope:{type:["row","col","rowgroup","colgroup"],missing:""},abbr:String,align:String,axis:String,height:String,width:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},noWrap:Boolean,vAlign:String,bgColor:{type:String,treatNullAsEmptyString:!0}}});h4({tags:["col","colgroup"],name:"HTMLTableColElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{span:{type:"limited unsigned long with fallback",default:1,min:1},align:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},vAlign:String,width:String}});h4({tag:"table",name:"HTMLTableElement",ctor:function(K,_,z){dK.call(this,K,_,z)},props:{rows:{get:function(){return this.getElementsByTagName("tr")}}},attributes:{align:String,border:String,frame:String,rules:String,summary:String,width:String,bgColor:{type:String,treatNullAsEmptyString:!0},cellPadding:{type:String,treatNullAsEmptyString:!0},cellSpacing:{type:String,treatNullAsEmptyString:!0}}});h4({tag:"template",name:"HTMLTemplateElement",ctor:function(K,_,z){dK.call(this,K,_,z),this._contentFragment=K._templateDoc.createDocumentFragment()},props:{content:{get:function(){return this._contentFragment}},serialize:{value:function(){return this.content.serialize()}}}});h4({tag:"tr",name:"HTMLTableRowElement",ctor:function(K,_,z){dK.call(this,K,_,z)},props:{cells:{get:function(){return this.querySelectorAll("td,th")}}},attributes:{align:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},vAlign:String,bgColor:{type:String,treatNullAsEmptyString:!0}}});h4({tags:["thead","tfoot","tbody"],name:"HTMLTableSectionElement",ctor:function(K,_,z){dK.call(this,K,_,z)},props:{rows:{get:function(){return this.getElementsByTagName("tr")}}},attributes:{align:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},vAlign:String}});h4({tag:"textarea",name:"HTMLTextAreaElement",ctor:function(K,_,z){_p.call(this,K,_,z)},props:{form:zp.form,type:{get:function(){return"textarea"}},defaultValue:{get:function(){return this.textContent},set:function(q){this.textContent=q}},value:{get:function(){return this.defaultValue},set:function(q){this.defaultValue=q}},textLength:{get:function(){return this.value.length}}},attributes:{autocomplete:String,name:String,disabled:Boolean,autofocus:Boolean,placeholder:String,wrap:String,dirName:String,required:Boolean,readOnly:Boolean,rows:{type:"limited unsigned long with fallback",default:2},cols:{type:"limited unsigned long with fallback",default:20},maxLength:{type:"unsigned long",min:0,setmin:0,default:-1},minLength:{type:"unsigned long",min:0,setmin:0,default:-1},inputMode:{type:["verbatim","latin","latin-name","latin-prose","full-width-latin","kana","kana-name","katakana","numeric","tel","email","url"],missing:""}}});h4({tag:"time",name:"HTMLTimeElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{dateTime:String,pubDate:Boolean}});h4({tag:"title",name:"HTMLTitleElement",ctor:function(K,_,z){dK.call(this,K,_,z)},props:{text:{get:function(){return this.textContent}}}});h4({tag:"ul",name:"HTMLUListElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{type:String,compact:Boolean}});h4({name:"HTMLMediaElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{src:IJ,crossOrigin:du8,preload:{type:["metadata","none","auto",{value:"",alias:"auto"}],missing:"auto"},loop:Boolean,autoplay:Boolean,mediaGroup:String,controls:Boolean,defaultMuted:{name:"muted",type:Boolean}}});h4({name:"HTMLAudioElement",tag:"audio",superclass:Na.HTMLMediaElement,ctor:function(K,_,z){Na.HTMLMediaElement.call(this,K,_,z)}});h4({name:"HTMLVideoElement",tag:"video",superclass:Na.HTMLMediaElement,ctor:function(K,_,z){Na.HTMLMediaElement.call(this,K,_,z)},attributes:{poster:IJ,width:{type:"unsigned long",min:0,default:0},height:{type:"unsigned long",min:0,default:0}}});h4({tag:"td",name:"HTMLTableDataCellElement",superclass:Na.HTMLTableCellElement,ctor:function(K,_,z){Na.HTMLTableCellElement.call(this,K,_,z)}});h4({tag:"th",name:"HTMLTableHeaderCellElement",superclass:Na.HTMLTableCellElement,ctor:function(K,_,z){Na.HTMLTableCellElement.call(this,K,_,z)}});h4({tag:"frameset",name:"HTMLFrameSetElement",ctor:function(K,_,z){dK.call(this,K,_,z)}});h4({tag:"frame",name:"HTMLFrameElement",ctor:function(K,_,z){dK.call(this,K,_,z)}});h4({tag:"canvas",name:"HTMLCanvasElement",ctor:function(K,_,z){dK.call(this,K,_,z)},props:{getContext:{value:AR.nyi},probablySupportsContext:{value:AR.nyi},setContext:{value:AR.nyi},transferControlToProxy:{value:AR.nyi},toDataURL:{value:AR.nyi},toBlob:{value:AR.nyi}},attributes:{width:{type:"unsigned long",default:300},height:{type:"unsigned long",default:150}}});h4({tag:"dialog",name:"HTMLDialogElement",ctor:function(K,_,z){dK.call(this,K,_,z)},props:{show:{value:AR.nyi},showModal:{value:AR.nyi},close:{value:AR.nyi}},attributes:{open:Boolean,returnValue:String}});h4({tag:"menuitem",name:"HTMLMenuItemElement",ctor:function(K,_,z){dK.call(this,K,_,z)},props:{_label:{get:function(){var q=this._getattr("label");if(q!==null&&q!=="")return q;return q=this.textContent,q.replace(/[ \t\n\f\r]+/g," ").trim()}},label:{get:function(){var q=this._getattr("label");if(q!==null)return q;return this._label},set:function(q){this._setattr("label",q)}}},attributes:{type:{type:["command","checkbox","radio"],missing:"command"},icon:IJ,disabled:Boolean,checked:Boolean,radiogroup:String,default:Boolean}});h4({tag:"source",name:"HTMLSourceElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{srcset:String,sizes:String,media:String,src:IJ,type:String,width:String,height:String}});h4({tag:"track",name:"HTMLTrackElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{src:IJ,srclang:String,label:String,default:Boolean,kind:{type:["subtitles","captions","descriptions","chapters","metadata"],missing:"subtitles",invalid:"metadata"}},props:{NONE:{get:function(){return 0}},LOADING:{get:function(){return 1}},LOADED:{get:function(){return 2}},ERROR:{get:function(){return 3}},readyState:{get:AR.nyi},track:{get:AR.nyi}}});h4({tag:"font",name:"HTMLFontElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{color:{type:String,treatNullAsEmptyString:!0},face:{type:String},size:{type:String}}});h4({tag:"dir",name:"HTMLDirectoryElement",ctor:function(K,_,z){dK.call(this,K,_,z)},attributes:{compact:Boolean}});h4({tags:["abbr","address","article","aside","b","bdi","bdo","cite","content","code","dd","dfn","dt","em","figcaption","figure","footer","header","hgroup","i","kbd","main","mark","nav","noscript","rb","rp","rt","rtc","ruby","s","samp","section","small","strong","sub","summary","sup","u","var","wbr","acronym","basefont","big","center","nobr","noembed","noframes","plaintext","strike","tt"]})});var lt1=m((O6Y)=>{var FwK=OR6(),z6Y=Ut1(),Y6Y=xJ(),$6Y=Qu8(),A6Y=O6Y.elements={},UwK=Object.create(null);O6Y.createElement=function(q,K,_){var z=UwK[K]||ct1;return new z(q,K,_)};function dt1(q){return z6Y(q,ct1,A6Y,UwK)}var ct1=dt1({superclass:FwK,name:"SVGElement",ctor:function(K,_,z){FwK.call(this,K,_,Y6Y.NAMESPACE.SVG,z)},props:{style:{get:function(){if(!this._style)this._style=new $6Y(this);return this._style}}}});dt1({name:"SVGSVGElement",ctor:function(K,_,z){ct1.call(this,K,_,z)},tag:"svg",props:{createSVGRect:{value:function(){return O6Y.createElement(this.ownerDocument,"rect",null)}}}});dt1({tags:["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"]})});var cwK=m((DHw,dwK)=>{dwK.exports={VALUE:1,ATTR:2,REMOVE_ATTR:3,REMOVE:4,MOVE:5,INSERT:6}});var nu8=m((fHw,q2K)=>{q2K.exports=v88;var sG=F0(),w6Y=oj6(),awK=Su8(),bK6=OR6(),j6Y=Nt1(),H6Y=Et1(),T88=qR6(),J6Y=Rt1(),M6Y=St1(),X6Y=k88(),P6Y=XwK(),W6Y=GwK(),lwK=f88(),nwK=Uu8(),iwK=uu8(),D6Y=gt1(),lu8=Cu8(),nt1=cu8(),f6Y=lt1(),S$=xJ(),HR6=cwK(),MR6=S$.NAMESPACE,it1=Lu8().isApiWritable;function v88(q,K){awK.call(this),this.nodeType=sG.DOCUMENT_NODE,this.isHTML=q,this._address=K||"about:blank",this.readyState="loading",this.implementation=new X6Y(this),this.ownerDocument=null,this._contentType=q?"text/html":"application/xml",this.doctype=null,this.documentElement=null,this._templateDocCache=null,this._nodeIterators=null,this._nid=1,this._nextnid=2,this._nodes=[null,this],this.byId=Object.create(null),this.modclock=0}var Z6Y={event:"Event",customevent:"CustomEvent",uievent:"UIEvent",mouseevent:"MouseEvent"},G6Y={events:"event",htmlevents:"event",mouseevents:"mouseevent",mutationevents:"mutationevent",uievents:"uievent"},JR6=function(q,K,_){return{get:function(){var z=q.call(this);if(z)return z[K];return _},set:function(z){var Y=q.call(this);if(Y)Y[K]=z}}};function rwK(q,K){var _,z,Y;if(q==="")q=null;if(!lu8.isValidQName(K))S$.InvalidCharacterError();if(_=null,z=K,Y=K.indexOf(":"),Y>=0)_=K.substring(0,Y),z=K.substring(Y+1);if(_!==null&&q===null)S$.NamespaceError();if(_==="xml"&&q!==MR6.XML)S$.NamespaceError();if((_==="xmlns"||K==="xmlns")&&q!==MR6.XMLNS)S$.NamespaceError();if(q===MR6.XMLNS&&!(_==="xmlns"||K==="xmlns"))S$.NamespaceError();return{namespace:q,prefix:_,localName:z}}v88.prototype=Object.create(awK.prototype,{_setMutationHandler:{value:function(q){this.mutationHandler=q}},_dispatchRendererEvent:{value:function(q,K,_){var z=this._nodes[q];if(!z)return;z._dispatchEvent(new T88(K,_),!0)}},nodeName:{value:"#document"},nodeValue:{get:function(){return null},set:function(){}},documentURI:{get:function(){return this._address},set:S$.nyi},compatMode:{get:function(){return this._quirks?"BackCompat":"CSS1Compat"}},createTextNode:{value:function(q){return new j6Y(this,String(q))}},createComment:{value:function(q){return new H6Y(this,q)}},createDocumentFragment:{value:function(){return new J6Y(this)}},createProcessingInstruction:{value:function(q,K){if(!lu8.isValidName(q)||K.indexOf("?>")!==-1)S$.InvalidCharacterError();return new M6Y(this,q,K)}},createAttribute:{value:function(q){if(q=String(q),!lu8.isValidName(q))S$.InvalidCharacterError();if(this.isHTML)q=S$.toASCIILowerCase(q);return new bK6._Attr(null,q,null,null,"")}},createAttributeNS:{value:function(q,K){q=q===null||q===void 0||q===""?null:String(q),K=String(K);var _=rwK(q,K);return new bK6._Attr(null,_.localName,_.prefix,_.namespace,"")}},createElement:{value:function(q){if(q=String(q),!lu8.isValidName(q))S$.InvalidCharacterError();if(this.isHTML){if(/[A-Z]/.test(q))q=S$.toASCIILowerCase(q);return nt1.createElement(this,q,null)}else if(this.contentType==="application/xhtml+xml")return nt1.createElement(this,q,null);else return new bK6(this,q,null,null)},writable:it1},createElementNS:{value:function(q,K){q=q===null||q===void 0||q===""?null:String(q),K=String(K);var _=rwK(q,K);return this._createElementNS(_.localName,_.namespace,_.prefix)},writable:it1},_createElementNS:{value:function(q,K,_){if(K===MR6.HTML)return nt1.createElement(this,q,_);else if(K===MR6.SVG)return f6Y.createElement(this,q,_);return new bK6(this,q,K,_)}},createEvent:{value:function(K){K=K.toLowerCase();var _=G6Y[K]||K,z=D6Y[Z6Y[_]];if(z){var Y=new z;return Y._initialized=!1,Y}else S$.NotSupportedError()}},createTreeWalker:{value:function(q,K,_){if(!q)throw TypeError("root argument is required");if(!(q instanceof sG))throw TypeError("root not a node");return K=K===void 0?lwK.SHOW_ALL:+K,_=_===void 0?null:_,new P6Y(q,K,_)}},createNodeIterator:{value:function(q,K,_){if(!q)throw TypeError("root argument is required");if(!(q instanceof sG))throw TypeError("root not a node");return K=K===void 0?lwK.SHOW_ALL:+K,_=_===void 0?null:_,new W6Y(q,K,_)}},_attachNodeIterator:{value:function(q){if(!this._nodeIterators)this._nodeIterators=[];this._nodeIterators.push(q)}},_detachNodeIterator:{value:function(q){var K=this._nodeIterators.indexOf(q);this._nodeIterators.splice(K,1)}},_preremoveNodeIterators:{value:function(q){if(this._nodeIterators)this._nodeIterators.forEach(function(K){K._preremove(q)})}},_updateDocTypeElement:{value:function(){this.doctype=this.documentElement=null;for(var K=this.firstChild;K!==null;K=K.nextSibling)if(K.nodeType===sG.DOCUMENT_TYPE_NODE)this.doctype=K;else if(K.nodeType===sG.ELEMENT_NODE)this.documentElement=K}},insertBefore:{value:function(K,_){return sG.prototype.insertBefore.call(this,K,_),this._updateDocTypeElement(),K}},replaceChild:{value:function(K,_){return sG.prototype.replaceChild.call(this,K,_),this._updateDocTypeElement(),_}},removeChild:{value:function(K){return sG.prototype.removeChild.call(this,K),this._updateDocTypeElement(),K}},getElementById:{value:function(q){var K=this.byId[q];if(!K)return null;if(K instanceof ya)return K.getFirst();return K}},_hasMultipleElementsWithId:{value:function(q){return this.byId[q]instanceof ya}},getElementsByName:{value:bK6.prototype.getElementsByName},getElementsByTagName:{value:bK6.prototype.getElementsByTagName},getElementsByTagNameNS:{value:bK6.prototype.getElementsByTagNameNS},getElementsByClassName:{value:bK6.prototype.getElementsByClassName},adoptNode:{value:function(K){if(K.nodeType===sG.DOCUMENT_NODE)S$.NotSupportedError();if(K.nodeType===sG.ATTRIBUTE_NODE)return K;if(K.parentNode)K.parentNode.removeChild(K);if(K.ownerDocument!==this)ewK(K,this);return K}},importNode:{value:function(K,_){return this.adoptNode(K.cloneNode(_))},writable:it1},origin:{get:function(){return null}},characterSet:{get:function(){return"UTF-8"}},contentType:{get:function(){return this._contentType}},URL:{get:function(){return this._address}},domain:{get:S$.nyi,set:S$.nyi},referrer:{get:S$.nyi},cookie:{get:S$.nyi,set:S$.nyi},lastModified:{get:S$.nyi},location:{get:function(){return this.defaultView?this.defaultView.location:null},set:S$.nyi},_titleElement:{get:function(){return this.getElementsByTagName("title").item(0)||null}},title:{get:function(){var q=this._titleElement,K=q?q.textContent:"";return K.replace(/[ \t\n\r\f]+/g," ").replace(/(^ )|( $)/g,"")},set:function(q){var K=this._titleElement,_=this.head;if(!K&&!_)return;if(!K)K=this.createElement("title"),_.appendChild(K);K.textContent=q}},dir:JR6(function(){var q=this.documentElement;if(q&&q.tagName==="HTML")return q},"dir",""),fgColor:JR6(function(){return this.body},"text",""),linkColor:JR6(function(){return this.body},"link",""),vlinkColor:JR6(function(){return this.body},"vLink",""),alinkColor:JR6(function(){return this.body},"aLink",""),bgColor:JR6(function(){return this.body},"bgColor",""),charset:{get:function(){return this.characterSet}},inputEncoding:{get:function(){return this.characterSet}},scrollingElement:{get:function(){return this._quirks?this.body:this.documentElement}},body:{get:function(){return owK(this.documentElement,"body")},set:S$.nyi},head:{get:function(){return owK(this.documentElement,"head")}},images:{get:S$.nyi},embeds:{get:S$.nyi},plugins:{get:S$.nyi},links:{get:S$.nyi},forms:{get:S$.nyi},scripts:{get:S$.nyi},applets:{get:function(){return[]}},activeElement:{get:function(){return null}},innerHTML:{get:function(){return this.serialize()},set:S$.nyi},outerHTML:{get:function(){return this.serialize()},set:S$.nyi},write:{value:function(q){if(!this.isHTML)S$.InvalidStateError();if(!this._parser)return;if(!this._parser);var K=arguments.join("");this._parser.parse(K)}},writeln:{value:function(K){this.write(Array.prototype.join.call(arguments,"")+` |
no test coverage detected