@dotgui/embed 0.2.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,120 +1 @@
1
- var v8=(J,$)=>()=>($||J(($={exports:{}}).exports,$),$.exports);var c8=v8((w7)=>{function M7(J,$,Q){if(Q===void 0)Q=Array.prototype;if(J&&typeof Q.find==="function")return Q.find.call(J,$);for(var K=0;K<J.length;K++)if(p8(J,K)){var Z=J[K];if($.call(void 0,Z,K,J))return Z}}function X$(J,$){if($===void 0)$=Object;if($&&typeof $.getOwnPropertyDescriptors==="function")J=$.create(null,$.getOwnPropertyDescriptors(J));return $&&typeof $.freeze==="function"?$.freeze(J):J}function p8(J,$){return Object.prototype.hasOwnProperty.call(J,$)}function P7(J,$){if(J===null||typeof J!=="object")throw TypeError("target is not an object");for(var Q in $)if(p8($,Q))J[Q]=$[Q];return J}var K1=X$({allowfullscreen:!0,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,default:!0,defer:!0,disabled:!0,formnovalidate:!0,hidden:!0,ismap:!0,itemscope:!0,loop:!0,multiple:!0,muted:!0,nomodule:!0,novalidate:!0,open:!0,playsinline:!0,readonly:!0,required:!0,reversed:!0,selected:!0});function H7(J){return p8(K1,J.toLowerCase())}var Z1=X$({area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function R7(J){return p8(Z1,J.toLowerCase())}var r$=X$({script:!1,style:!1,textarea:!0,title:!0});function I7(J){var $=J.toLowerCase();return p8(r$,$)&&!r$[$]}function z7(J){var $=J.toLowerCase();return p8(r$,$)&&r$[$]}function X1(J){return J===d$.HTML}function C7(J){return X1(J)||J===d$.XML_XHTML_APPLICATION}var d$=X$({HTML:"text/html",XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),A7=Object.keys(d$).map(function(J){return d$[J]});function T7(J){return A7.indexOf(J)>-1}var _7=X$({HTML:"http://www.w3.org/1999/xhtml",SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});w7.assign=P7;w7.find=M7;w7.freeze=X$;w7.HTML_BOOLEAN_ATTRIBUTES=K1;w7.HTML_RAW_TEXT_ELEMENTS=r$;w7.HTML_VOID_ELEMENTS=Z1;w7.hasDefaultHTMLNamespace=C7;w7.hasOwn=p8;w7.isHTMLBooleanAttribute=H7;w7.isHTMLRawTextElement=I7;w7.isHTMLEscapableRawTextElement=z7;w7.isHTMLMimeType=X1;w7.isHTMLVoidElement=R7;w7.isValidMimeType=T7;w7.MIME_TYPE=d$;w7.NAMESPACE=_7});var s$=v8((o7)=>{var r7=c8();function Y1(J,$){J.prototype=Object.create(Error.prototype,{constructor:{value:J},name:{value:J.name,enumerable:!0,writable:$}})}var o$=r7.freeze({Error:"Error",IndexSizeError:"IndexSizeError",DomstringSizeError:"DomstringSizeError",HierarchyRequestError:"HierarchyRequestError",WrongDocumentError:"WrongDocumentError",InvalidCharacterError:"InvalidCharacterError",NoDataAllowedError:"NoDataAllowedError",NoModificationAllowedError:"NoModificationAllowedError",NotFoundError:"NotFoundError",NotSupportedError:"NotSupportedError",InUseAttributeError:"InUseAttributeError",InvalidStateError:"InvalidStateError",SyntaxError:"SyntaxError",InvalidModificationError:"InvalidModificationError",NamespaceError:"NamespaceError",InvalidAccessError:"InvalidAccessError",ValidationError:"ValidationError",TypeMismatchError:"TypeMismatchError",SecurityError:"SecurityError",NetworkError:"NetworkError",AbortError:"AbortError",URLMismatchError:"URLMismatchError",QuotaExceededError:"QuotaExceededError",TimeoutError:"TimeoutError",InvalidNodeTypeError:"InvalidNodeTypeError",DataCloneError:"DataCloneError",EncodingError:"EncodingError",NotReadableError:"NotReadableError",UnknownError:"UnknownError",ConstraintError:"ConstraintError",DataError:"DataError",TransactionInactiveError:"TransactionInactiveError",ReadOnlyError:"ReadOnlyError",VersionError:"VersionError",OperationError:"OperationError",NotAllowedError:"NotAllowedError",OptOutError:"OptOutError"}),j1=Object.keys(o$);function G1(J){return typeof J==="number"&&J>=1&&J<=25}function d7(J){return typeof J==="string"&&J.substring(J.length-o$.Error.length)===o$.Error}function i$(J,$){if(G1(J))this.name=j1[J],this.message=$||"";else this.message=J,this.name=d7($)?$:o$.Error;if(Error.captureStackTrace)Error.captureStackTrace(this,i$)}Y1(i$,!0);Object.defineProperties(i$.prototype,{code:{enumerable:!0,get:function(){var J=j1.indexOf(this.name);if(G1(J))return J;return 0}}});var B1={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25},b0=Object.entries(B1);for(Y$=0;Y$<b0.length;Y$++)v0=b0[Y$][0],i$[v0]=b0[Y$][1];var v0,Y$;function u0(J,$){if(this.message=J,this.locator=$,Error.captureStackTrace)Error.captureStackTrace(this,u0)}Y1(u0);o7.DOMException=i$;o7.DOMExceptionName=o$;o7.ExceptionCode=B1;o7.ParseError=u0});var r0=v8((i5)=>{function V1(J){try{if(typeof J!=="function")J=RegExp;var $=new J("\uD834\uDF06","u").exec("\uD834\uDF06");return!!$&&$[0].length===2}catch(Q){}return!1}var B$=V1();function z8(J){if(J.source[0]!=="[")throw Error(J+" can not be used with chars");return J.source.slice(1,J.source.lastIndexOf("]"))}function j$(J,$){if(J.source[0]!=="[")throw Error("/"+J.source+"/ can not be used with chars_without");if(!$||typeof $!=="string")throw Error(JSON.stringify($)+" is not a valid search");if(J.source.indexOf($)===-1)throw Error('"'+$+'" is not is /'+J.source+"/");if($==="-"&&J.source.indexOf($)!==1)throw Error('"'+$+'" is not at the first postion of /'+J.source+"/");return new RegExp(J.source.replace($,""),B$?"u":"")}function ZJ(J){var $=this;return new RegExp(Array.prototype.slice.call(arguments).map(function(Q){var K=typeof Q==="string";if(K&&$===void 0&&Q==="|")throw Error("use regg instead of reg to wrap expressions with `|`!");return K?Q:Q.source}).join(""),B$?"mu":"m")}function QJ(J){if(arguments.length===0)throw Error("no parameters provided");return ZJ.apply(QJ,["(?:"].concat(Array.prototype.slice.call(arguments),[")"]))}var t7="�",C8=/[-\x09\x0A\x0D\x20-\x2C\x2E-\uD7FF\uE000-\uFFFD]/;if(B$)C8=ZJ("[",z8(C8),"\\u{10000}-\\u{10FFFF}","]");var e7=new RegExp("[^"+z8(C8)+"]",B$?"u":""),f0=/[\x20\x09\x0D\x0A]/,J5=z8(f0),LJ=ZJ(f0,"+"),IJ=ZJ(f0,"*"),a$=/[:_a-zA-Z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;if(B$)a$=ZJ("[",z8(a$),"\\u{10000}-\\u{10FFFF}","]");var $5=z8(a$),m0=ZJ("[",$5,z8(/[-.0-9\xB7]/),z8(/[\u0300-\u036F\u203F-\u2040]/),"]"),iJ=ZJ(a$,m0,"*"),W1=ZJ(m0,"+"),Q5=ZJ("&",iJ,";"),K5=QJ(/&#[0-9]+;|&#x[0-9a-fA-F]+;/),l$=QJ(Q5,"|",K5),t$=ZJ("%",iJ,";"),p0=QJ(ZJ('"',QJ(/[^%&"]/,"|",t$,"|",l$),"*",'"'),"|",ZJ("'",QJ(/[^%&']/,"|",t$,"|",l$),"*","'")),Z5=QJ('"',QJ(/[^<&"]/,"|",l$),"*",'"',"|","'",QJ(/[^<&']/,"|",l$),"*","'"),X5=j$(a$,":"),Y5=j$(m0,":"),F1=ZJ(X5,Y5,"*"),e$=ZJ(F1,QJ(":",F1),"?"),j5=ZJ("^",e$,"$"),G5=ZJ("(",e$,")"),G$=QJ(/"[^"]*"|'[^']*'/),B5=ZJ(/^<\?/,"(",iJ,")",QJ(LJ,"(",C8,"*?)"),"?",/\?>/),q1=/[\x20\x0D\x0Aa-zA-Z0-9-'()+,./:=?;!*#@$_%]/,J6=QJ('"',q1,'*"',"|","'",j$(q1,"'"),"*'"),O1="<!--",M1="-->",W5=ZJ(O1,QJ(j$(C8,"-"),"|",ZJ("-",j$(C8,"-"))),"*",M1),U1="#PCDATA",F5=QJ(ZJ(/\(/,IJ,U1,QJ(IJ,/\|/,IJ,e$),"*",IJ,/\)\*/),"|",ZJ(/\(/,IJ,U1,IJ,/\)/)),q5=/[?*+]?/,U5=ZJ(/\([^>]+\)/,q5),D5=QJ("EMPTY","|","ANY","|",F5,"|",U5),L5="<!ELEMENT",V5=ZJ(L5,LJ,QJ(e$,"|",t$),LJ,QJ(D5,"|",t$),IJ,">"),O5=ZJ("NOTATION",LJ,/\(/,IJ,iJ,QJ(IJ,/\|/,IJ,iJ),"*",IJ,/\)/),M5=ZJ(/\(/,IJ,W1,QJ(IJ,/\|/,IJ,W1),"*",IJ,/\)/),P5=QJ(O5,"|",M5),H5=QJ(/CDATA|ID|IDREF|IDREFS|ENTITY|ENTITIES|NMTOKEN|NMTOKENS/,"|",P5),R5=QJ(/#REQUIRED|#IMPLIED/,"|",QJ(QJ("#FIXED",LJ),"?",Z5)),I5=QJ(LJ,iJ,LJ,H5,LJ,R5),z5="<!ATTLIST",C5=ZJ(z5,LJ,iJ,I5,"*",IJ,">"),h0="about:legacy-compat",A5=QJ('"'+h0+'"',"|","'"+h0+"'"),c0="SYSTEM",x6="PUBLIC",y6=QJ(QJ(c0,LJ,G$),"|",QJ(x6,LJ,J6,LJ,G$)),T5=ZJ("^",QJ(QJ(c0,LJ,"(?<SystemLiteralOnly>",G$,")"),"|",QJ(x6,LJ,"(?<PubidLiteral>",J6,")",LJ,"(?<SystemLiteral>",G$,")"))),_5=ZJ("^",J6,"$"),w5=ZJ("^",G$,"$"),N5=QJ(LJ,"NDATA",LJ,iJ),E5=QJ(p0,"|",QJ(y6,N5,"?")),P1="<!ENTITY",S5=ZJ(P1,LJ,iJ,LJ,E5,IJ,">"),k5=QJ(p0,"|",y6),x5=ZJ(P1,LJ,"%",LJ,iJ,LJ,k5,IJ,">"),y5=QJ(S5,"|",x5),g5=ZJ(x6,LJ,J6),b5=ZJ("<!NOTATION",LJ,iJ,LJ,QJ(y6,"|",g5),IJ,">"),n0=ZJ(IJ,"=",IJ),D1=/1[.]\d+/,v5=ZJ(LJ,"version",n0,QJ("'",D1,"'","|",'"',D1,'"')),L1=/[A-Za-z][-A-Za-z0-9._]*/,u5=QJ(LJ,"encoding",n0,QJ('"',L1,'"',"|","'",L1,"'")),h5=QJ(LJ,"standalone",n0,QJ("'",QJ("yes","|","no"),"'","|",'"',QJ("yes","|","no"),'"')),f5=ZJ(/^<\?xml/,v5,u5,"?",h5,"?",IJ,/\?>/),m5="<!DOCTYPE",p5="<![CDATA[",c5="]]>",n5=/<!\[CDATA\[/,r5=/\]\]>/,d5=ZJ(C8,"*?",r5),o5=ZJ(n5,d5);i5.chars=z8;i5.chars_without=j$;i5.detectUnicodeSupport=V1;i5.reg=ZJ;i5.regg=QJ;i5.ABOUT_LEGACY_COMPAT=h0;i5.ABOUT_LEGACY_COMPAT_SystemLiteral=A5;i5.AttlistDecl=C5;i5.CDATA_START=p5;i5.CDATA_END=c5;i5.CDSect=o5;i5.Char=C8;i5.Comment=W5;i5.COMMENT_START=O1;i5.COMMENT_END=M1;i5.DOCTYPE_DECL_START=m5;i5.elementdecl=V5;i5.EntityDecl=y5;i5.EntityValue=p0;i5.ExternalID=y6;i5.ExternalID_match=T5;i5.Name=iJ;i5.NotationDecl=b5;i5.Reference=l$;i5.PEReference=t$;i5.PI=B5;i5.PUBLIC=x6;i5.PubidLiteral=J6;i5.PubidLiteral_match=_5;i5.QName=e$;i5.QName_exact=j5;i5.QName_group=G5;i5.S=LJ;i5.SChar_s=J5;i5.S_OPT=IJ;i5.SYSTEM=c0;i5.SystemLiteral=G$;i5.SystemLiteral_match=w5;i5.InvalidChar=e7;i5.UNICODE_REPLACEMENT_CHARACTER=t7;i5.UNICODE_SUPPORT=B$;i5.XMLDecl=f5});var e0=v8((J9)=>{var lJ=c8(),W8=lJ.find,vZ=lJ.hasDefaultHTMLNamespace,F$=lJ.hasOwn,uZ=lJ.isHTMLMimeType,hZ=lJ.isHTMLRawTextElement,fZ=lJ.isHTMLVoidElement,$6=lJ.MIME_TYPE,F8=lJ.NAMESPACE,fJ=Symbol(),T1=s$(),t=T1.DOMException,sJ=T1.DOMExceptionName,yJ=r0();function pJ(J){if(J!==fJ)throw TypeError("Illegal constructor")}function mZ(J){return J!==""}function pZ(J){return J?J.split(/[\t\n\f\r ]+/).filter(mZ):[]}function cZ(J,$){if(!F$(J,$))J[$]=!0;return J}function H1(J){if(!J)return[];var $=pZ(J);return Object.keys($.reduce(cZ,{}))}function nZ(J){return function($){return J&&J.indexOf($)!==-1}}function _1(J){if(!yJ.QName_exact.test(J))throw new t(t.INVALID_CHARACTER_ERR,'invalid character in qualified name "'+J+'"')}function o0(J,$){_1($),J=J||null;var Q=null,K=$;if($.indexOf(":")>=0){var Z=$.split(":");Q=Z[0],K=Z[1]}if(Q!==null&&J===null)throw new t(t.NAMESPACE_ERR,"prefix is non-null and namespace is null");if(Q==="xml"&&J!==lJ.NAMESPACE.XML)throw new t(t.NAMESPACE_ERR,'prefix is "xml" and namespace is not the XML namespace');if((Q==="xmlns"||$==="xmlns")&&J!==lJ.NAMESPACE.XMLNS)throw new t(t.NAMESPACE_ERR,'either qualifiedName or prefix is "xmlns" and namespace is not the XMLNS namespace');if(J===lJ.NAMESPACE.XMLNS&&Q!=="xmlns"&&$!=="xmlns")throw new t(t.NAMESPACE_ERR,'namespace is the XMLNS namespace and neither qualifiedName nor prefix is "xmlns"');return[J,Q,K]}function D$(J,$){for(var Q in J)if(F$(J,Q))$[Q]=J[Q]}function cJ(J,$){var Q=J.prototype;if(!(Q instanceof $)){let K=function(){};K.prototype=$.prototype,K=new K,D$(Q,K),J.prototype=Q=K}if(Q.constructor!=J){if(typeof J!="function")console.error("unknown Class:"+J);Q.constructor=J}}var nJ={},aJ=nJ.ELEMENT_NODE=1,q$=nJ.ATTRIBUTE_NODE=2,v6=nJ.TEXT_NODE=3,w1=nJ.CDATA_SECTION_NODE=4,N1=nJ.ENTITY_REFERENCE_NODE=5,rZ=nJ.ENTITY_NODE=6,i0=nJ.PROCESSING_INSTRUCTION_NODE=7,s0=nJ.COMMENT_NODE=8,W$=nJ.DOCUMENT_NODE=9,E1=nJ.DOCUMENT_TYPE_NODE=10,A8=nJ.DOCUMENT_FRAGMENT_NODE=11,dZ=nJ.NOTATION_NODE=12,CJ=lJ.freeze({DOCUMENT_POSITION_DISCONNECTED:1,DOCUMENT_POSITION_PRECEDING:2,DOCUMENT_POSITION_FOLLOWING:4,DOCUMENT_POSITION_CONTAINS:8,DOCUMENT_POSITION_CONTAINED_BY:16,DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:32});function S1(J,$){if($.length<J.length)return S1($,J);var Q=null;for(var K in J){if(J[K]!==$[K])return Q;Q=J[K]}return Q}function R1(J){if(!J.guid)J.guid=Math.random();return J.guid}function _J(){}_J.prototype={length:0,item:function(J){return J>=0&&J<this.length?this[J]:null},toString:function(J){var $;if(typeof J==="function")$={requireWellFormed:!1,splitCDATASections:!0,nodeFilter:J};else if(J)$={requireWellFormed:!!J.requireWellFormed,splitCDATASections:J.splitCDATASections!==!1,nodeFilter:J.nodeFilter||null};else $={requireWellFormed:!1,splitCDATASections:!0,nodeFilter:null};for(var Q=[],K=0;K<this.length;K++)t0(this[K],Q,null,$);return Q.join("")},filter:function(J){return Array.prototype.filter.call(this,J)},indexOf:function(J){return Array.prototype.indexOf.call(this,J)}};_J.prototype[Symbol.iterator]=function(){var J=this,$=0;return{next:function(){if($<J.length)return{value:J[$++],done:!1};else return{done:!0}},return:function(){return{done:!0}}}};function B8(J,$){this._node=J,this._refresh=$,h6(this)}function h6(J){var $=J._node._inc||J._node.ownerDocument._inc;if(J._inc!==$){var Q=J._refresh(J._node);if(c1(J,"length",Q.length),!J.$$length||Q.length<J.$$length){for(var K=Q.length;K in J;K++)if(F$(J,K))delete J[K]}D$(Q,J),J._inc=$}}B8.prototype.item=function(J){return h6(this),this[J]||null};cJ(B8,_J);function U$(){}function k1(J,$){var Q=0;while(Q<J.length){if(J[Q]===$)return Q;Q++}}function oZ(J,$,Q,K){if(K)$[k1($,K)]=Q;else $[$.length]=Q,$.length++;if(J){Q.ownerElement=J;var Z=J.ownerDocument;if(Z)K&&g1(Z,J,K),iZ(Z,J,Q)}}function I1(J,$,Q){var K=k1($,Q);if(K>=0){var Z=$.length-1;while(K<=Z)$[K]=$[++K];if($.length=Z,J){var X=J.ownerDocument;if(X)g1(X,J,Q);Q.ownerElement=null}}}U$.prototype={length:0,item:_J.prototype.item,getNamedItem:function(J){if(this._ownerElement&&this._ownerElement._isInHTMLDocumentAndNamespace())J=J.toLowerCase();var $=0;while($<this.length){var Q=this[$];if(Q.nodeName===J)return Q;$++}return null},setNamedItem:function(J){var $=J.ownerElement;if($&&$!==this._ownerElement)throw new t(t.INUSE_ATTRIBUTE_ERR);var Q=this.getNamedItemNS(J.namespaceURI,J.localName);if(Q===J)return J;return oZ(this._ownerElement,this,J,Q),Q},setNamedItemNS:function(J){return this.setNamedItem(J)},removeNamedItem:function(J){var $=this.getNamedItem(J);if(!$)throw new t(t.NOT_FOUND_ERR,J);return I1(this._ownerElement,this,$),$},removeNamedItemNS:function(J,$){var Q=this.getNamedItemNS(J,$);if(!Q)throw new t(t.NOT_FOUND_ERR,J?J+" : "+$:$);return I1(this._ownerElement,this,Q),Q},getNamedItemNS:function(J,$){if(!J)J=null;var Q=0;while(Q<this.length){var K=this[Q];if(K.localName===$&&K.namespaceURI===J)return K;Q++}return null}};U$.prototype[Symbol.iterator]=function(){var J=this,$=0;return{next:function(){if($<J.length)return{value:J[$++],done:!1};else return{done:!0}},return:function(){return{done:!0}}}};function x1(){}x1.prototype={hasFeature:function(J,$){return!0},createDocument:function(J,$,Q){var K=$6.XML_APPLICATION;if(J===F8.HTML)K=$6.XML_XHTML_APPLICATION;else if(J===F8.SVG)K=$6.XML_SVG_IMAGE;var Z=new O8(fJ,{contentType:K});if(Z.implementation=this,Z.childNodes=new _J,Z.doctype=Q||null,Q)Z.appendChild(Q);if($){var X=Z.createElementNS(J,$);Z.appendChild(X)}return Z},createDocumentType:function(J,$,Q,K){_1(J);var Z=new p6(fJ);return Z.name=J,Z.nodeName=J,Z.publicId=$||"",Z.systemId=Q||"",Z.internalSubset=K||"",Z.childNodes=new _J,Z},createHTMLDocument:function(J){var $=new O8(fJ,{contentType:$6.HTML});if($.implementation=this,$.childNodes=new _J,J!==!1){$.doctype=this.createDocumentType("html"),$.doctype.ownerDocument=$,$.appendChild($.doctype);var Q=$.createElement("html");$.appendChild(Q);var K=$.createElement("head");if(Q.appendChild(K),typeof J==="string"){var Z=$.createElement("title");Z.appendChild($.createTextNode(J)),K.appendChild(Z)}Q.appendChild($.createElement("body"))}return $}};function BJ(J){pJ(J)}BJ.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,parentNode:null,get parentElement(){return this.parentNode&&this.parentNode.nodeType===this.ELEMENT_NODE?this.parentNode:null},childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,baseURI:"about:blank",get isConnected(){var J=this.getRootNode();return J&&J.nodeType===J.DOCUMENT_NODE},contains:function(J){if(!J)return!1;var $=J;do{if(this===$)return!0;$=$.parentNode}while($);return!1},getRootNode:function(J){var $=this;do{if(!$.parentNode)return $;$=$.parentNode}while($)},isEqualNode:function(J){if(!J)return!1;var $=[{node:this,other:J}];while($.length>0){var Q=$.pop(),K=Q.node,Z=Q.other;if(K.nodeType!==Z.nodeType)return!1;switch(K.nodeType){case K.DOCUMENT_TYPE_NODE:if(K.name!==Z.name)return!1;if(K.publicId!==Z.publicId)return!1;if(K.systemId!==Z.systemId)return!1;break;case K.ELEMENT_NODE:if(K.namespaceURI!==Z.namespaceURI)return!1;if(K.prefix!==Z.prefix)return!1;if(K.localName!==Z.localName)return!1;if(K.attributes.length!==Z.attributes.length)return!1;for(var X=0;X<K.attributes.length;X++){var Y=K.attributes.item(X),W=Z.getAttributeNodeNS(Y.namespaceURI,Y.localName);if(!W)return!1;$.push({node:Y,other:W})}break;case K.ATTRIBUTE_NODE:if(K.namespaceURI!==Z.namespaceURI)return!1;if(K.localName!==Z.localName)return!1;if(K.value!==Z.value)return!1;break;case K.PROCESSING_INSTRUCTION_NODE:if(K.target!==Z.target||K.data!==Z.data)return!1;break;case K.TEXT_NODE:case K.CDATA_SECTION_NODE:case K.COMMENT_NODE:if(K.data!==Z.data)return!1;break}if(K.childNodes.length!==Z.childNodes.length)return!1;for(var X=K.childNodes.length-1;X>=0;X--)$.push({node:K.childNodes[X],other:Z.childNodes[X]})}return!0},isSameNode:function(J){return this===J},insertBefore:function(J,$){return u6(this,J,$)},replaceChild:function(J,$){if(u6(this,J,$,h1),$)this.removeChild($)},removeChild:function(J){return v1(this,J)},appendChild:function(J){return this.insertBefore(J,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(J){return p1(this.ownerDocument||this,this,J)},normalize:function(){gJ(this,null,{enter:function(J){var $=J.firstChild;while($){var Q=$.nextSibling;if(Q!==null&&Q.nodeType===v6&&$.nodeType===v6)J.removeChild(Q),$.appendData(Q.data);else $=Q}return!0}})},isSupported:function(J,$){return this.ownerDocument.implementation.hasFeature(J,$)},lookupPrefix:function(J){var $=this;while($){var Q=$._nsMap;if(Q){for(var K in Q)if(F$(Q,K)&&Q[K]===J)return K}$=$.nodeType==q$?$.ownerDocument:$.parentNode}return null},lookupNamespaceURI:function(J){var $=this;while($){var Q=$._nsMap;if(Q){if(F$(Q,J))return Q[J]}$=$.nodeType==q$?$.ownerDocument:$.parentNode}return null},isDefaultNamespace:function(J){var $=this.lookupPrefix(J);return $==null},compareDocumentPosition:function(J){if(this===J)return 0;var $=J,Q=this,K=null,Z=null;if($ instanceof n8)K=$,$=K.ownerElement;if(Q instanceof n8){if(Z=Q,Q=Z.ownerElement,K&&$&&Q===$)for(var X=0,Y;Y=Q.attributes[X];X++){if(Y===K)return CJ.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+CJ.DOCUMENT_POSITION_PRECEDING;if(Y===Z)return CJ.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+CJ.DOCUMENT_POSITION_FOLLOWING}}if(!$||!Q||Q.ownerDocument!==$.ownerDocument)return CJ.DOCUMENT_POSITION_DISCONNECTED+CJ.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+(R1(Q.ownerDocument)>R1($.ownerDocument)?CJ.DOCUMENT_POSITION_FOLLOWING:CJ.DOCUMENT_POSITION_PRECEDING);if(Z&&$===Q)return CJ.DOCUMENT_POSITION_CONTAINS+CJ.DOCUMENT_POSITION_PRECEDING;if(K&&$===Q)return CJ.DOCUMENT_POSITION_CONTAINED_BY+CJ.DOCUMENT_POSITION_FOLLOWING;var W=[],B=$.parentNode;while(B){if(!Z&&B===Q)return CJ.DOCUMENT_POSITION_CONTAINED_BY+CJ.DOCUMENT_POSITION_FOLLOWING;W.push(B),B=B.parentNode}W.reverse();var G=[],U=Q.parentNode;while(U){if(!K&&U===$)return CJ.DOCUMENT_POSITION_CONTAINS+CJ.DOCUMENT_POSITION_PRECEDING;G.push(U),U=U.parentNode}G.reverse();var D=S1(W,G);for(var F in D.childNodes){var L=D.childNodes[F];if(L===Q)return CJ.DOCUMENT_POSITION_FOLLOWING;if(L===$)return CJ.DOCUMENT_POSITION_PRECEDING;if(G.indexOf(L)>=0)return CJ.DOCUMENT_POSITION_FOLLOWING;if(W.indexOf(L)>=0)return CJ.DOCUMENT_POSITION_PRECEDING}return 0}};function y1(J){return J=="<"&&"&lt;"||J==">"&&"&gt;"||J=="&"&&"&amp;"||J=='"'&&"&quot;"||"&#"+J.charCodeAt()+";"}D$(nJ,BJ);D$(nJ,BJ.prototype);D$(CJ,BJ);D$(CJ,BJ.prototype);function b6(J,$){gJ(J,null,{enter:function(Q){return $(Q)?gJ.STOP:!0}})}function gJ(J,$,Q){var K=[{node:J,context:$,phase:gJ.ENTER}];while(K.length>0){var Z=K.pop();if(Z.phase===gJ.ENTER){var X=Q.enter(Z.node,Z.context);if(X===gJ.STOP)return gJ.STOP;if(K.push({node:Z.node,context:X,phase:gJ.EXIT}),X===null||X===void 0)continue;var Y=Z.node.lastChild;while(Y)K.push({node:Y,context:X,phase:gJ.ENTER}),Y=Y.previousSibling}else if(Q.exit)Q.exit(Z.node,Z.context)}}gJ.STOP=Symbol("walkDOM.STOP");gJ.ENTER=0;gJ.EXIT=1;function O8(J,$){pJ(J);var Q=$||{};this.ownerDocument=this,this.contentType=Q.contentType||$6.XML_APPLICATION,this.type=uZ(this.contentType)?"html":"xml"}function iZ(J,$,Q){J&&J._inc++;var K=Q.namespaceURI;if(K===F8.XMLNS)$._nsMap[Q.prefix?Q.localName:""]=Q.value}function g1(J,$,Q,K){J&&J._inc++;var Z=Q.namespaceURI;if(Z===F8.XMLNS)delete $._nsMap[Q.prefix?Q.localName:""]}function b1(J,$,Q){if(J&&J._inc){J._inc++;var K=$.childNodes;if(Q&&!Q.nextSibling)K[K.length++]=Q;else{var Z=$.firstChild,X=0;while(Z)K[X++]=Z,Z=Z.nextSibling;K.length=X,delete K[K.length]}}}function v1(J,$){if(J!==$.parentNode)throw new t(t.NOT_FOUND_ERR,"child's parent is not parent");var{previousSibling:Q,nextSibling:K}=$;if(Q)Q.nextSibling=K;else J.firstChild=K;if(K)K.previousSibling=Q;else J.lastChild=Q;return b1(J.ownerDocument,J),$.parentNode=null,$.previousSibling=null,$.nextSibling=null,$}function sZ(J){return J&&(J.nodeType===BJ.DOCUMENT_NODE||J.nodeType===BJ.DOCUMENT_FRAGMENT_NODE||J.nodeType===BJ.ELEMENT_NODE)}function aZ(J){return J&&(J.nodeType===BJ.CDATA_SECTION_NODE||J.nodeType===BJ.COMMENT_NODE||J.nodeType===BJ.DOCUMENT_FRAGMENT_NODE||J.nodeType===BJ.DOCUMENT_TYPE_NODE||J.nodeType===BJ.ELEMENT_NODE||J.nodeType===BJ.PROCESSING_INSTRUCTION_NODE||J.nodeType===BJ.TEXT_NODE)}function T8(J){return J&&J.nodeType===BJ.DOCUMENT_TYPE_NODE}function V8(J){return J&&J.nodeType===BJ.ELEMENT_NODE}function u1(J){return J&&J.nodeType===BJ.TEXT_NODE}function z1(J,$){var Q=J.childNodes||[];if(W8(Q,V8)||T8($))return!1;var K=W8(Q,T8);return!($&&K&&Q.indexOf(K)>Q.indexOf($))}function C1(J,$){var Q=J.childNodes||[];function K(X){return V8(X)&&X!==$}if(W8(Q,K))return!1;var Z=W8(Q,T8);return!($&&Z&&Q.indexOf(Z)>Q.indexOf($))}function lZ(J,$,Q){if(!sZ(J))throw new t(t.HIERARCHY_REQUEST_ERR,"Unexpected parent node type "+J.nodeType);if(Q&&Q.parentNode!==J)throw new t(t.NOT_FOUND_ERR,"child not in parent");if(!aZ($)||T8($)&&J.nodeType!==BJ.DOCUMENT_NODE)throw new t(t.HIERARCHY_REQUEST_ERR,"Unexpected node type "+$.nodeType+" for parent node type "+J.nodeType)}function tZ(J,$,Q){var K=J.childNodes||[],Z=$.childNodes||[];if($.nodeType===BJ.DOCUMENT_FRAGMENT_NODE){var X=Z.filter(V8);if(X.length>1||W8(Z,u1))throw new t(t.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(X.length===1&&!z1(J,Q))throw new t(t.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(V8($)){if(!z1(J,Q))throw new t(t.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype")}if(T8($)){if(W8(K,T8))throw new t(t.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var Y=W8(K,V8);if(Q&&K.indexOf(Y)<K.indexOf(Q))throw new t(t.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element");if(!Q&&Y)throw new t(t.HIERARCHY_REQUEST_ERR,"Doctype can not be appended since element is present")}}function h1(J,$,Q){var K=J.childNodes||[],Z=$.childNodes||[];if($.nodeType===BJ.DOCUMENT_FRAGMENT_NODE){var X=Z.filter(V8);if(X.length>1||W8(Z,u1))throw new t(t.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(X.length===1&&!C1(J,Q))throw new t(t.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(V8($)){if(!C1(J,Q))throw new t(t.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype")}if(T8($)){if(W8(K,function(B){return T8(B)&&B!==Q}))throw new t(t.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var Y=W8(K,V8);if(Q&&K.indexOf(Y)<K.indexOf(Q))throw new t(t.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element")}}function u6(J,$,Q,K){if(lZ(J,$,Q),J.nodeType===BJ.DOCUMENT_NODE)(K||tZ)(J,$,Q);var Z=$.parentNode;if(Z)Z.removeChild($);if($.nodeType===A8){var X=$.firstChild;if(X==null)return $;var Y=$.lastChild}else X=Y=$;var W=Q?Q.previousSibling:J.lastChild;if(X.previousSibling=W,Y.nextSibling=Q,W)W.nextSibling=X;else J.firstChild=X;if(Q==null)J.lastChild=Y;else Q.previousSibling=Y;do X.parentNode=J;while(X!==Y&&(X=X.nextSibling));if(b1(J.ownerDocument||J,J,$),$.nodeType==A8)$.firstChild=$.lastChild=null;return $}O8.prototype={implementation:null,nodeName:"#document",nodeType:W$,doctype:null,documentElement:null,_inc:1,insertBefore:function(J,$){if(J.nodeType===A8){var Q=J.firstChild;while(Q){var K=Q.nextSibling;this.insertBefore(Q,$),Q=K}return J}if(u6(this,J,$),J.ownerDocument=this,this.documentElement===null&&J.nodeType===aJ)this.documentElement=J;return J},removeChild:function(J){var $=v1(this,J);if($===this.documentElement)this.documentElement=null;return $},replaceChild:function(J,$){if(u6(this,J,$,h1),J.ownerDocument=this,$)this.removeChild($);if(V8(J))this.documentElement=J},importNode:function(J,$){return eZ(this,J,$)},getElementById:function(J){var $=null;return b6(this.documentElement,function(Q){if(Q.nodeType==aJ){if(Q.getAttribute("id")==J)return $=Q,!0}}),$},createElement:function(J){var $=new M8(fJ);if($.ownerDocument=this,this.type==="html")J=J.toLowerCase();if(vZ(this.contentType))$.namespaceURI=F8.HTML;$.nodeName=J,$.tagName=J,$.localName=J,$.childNodes=new _J;var Q=$.attributes=new U$;return Q._ownerElement=$,$},createDocumentFragment:function(){var J=new V$(fJ);return J.ownerDocument=this,J.childNodes=new _J,J},createTextNode:function(J){var $=new Q6(fJ);return $.ownerDocument=this,$.childNodes=new _J,$.appendData(J),$},createComment:function(J){var $=new f6(fJ);return $.ownerDocument=this,$.childNodes=new _J,$.appendData(J),$},createCDATASection:function(J){if(J.indexOf("]]>")!==-1)throw new t(t.INVALID_CHARACTER_ERR,'data contains "]]>"');var $=new m6(fJ);return $.ownerDocument=this,$.childNodes=new _J,$.appendData(J),$},createProcessingInstruction:function(J,$){var Q=new n6(fJ);return Q.ownerDocument=this,Q.childNodes=new _J,Q.nodeName=Q.target=J,Q.nodeValue=Q.data=$,Q},createAttribute:function(J){if(!yJ.QName_exact.test(J))throw new t(t.INVALID_CHARACTER_ERR,'invalid character in name "'+J+'"');if(this.type==="html")J=J.toLowerCase();return this._createAttribute(J)},_createAttribute:function(J){var $=new n8(fJ);return $.ownerDocument=this,$.childNodes=new _J,$.name=J,$.nodeName=J,$.localName=J,$.specified=!0,$},createEntityReference:function(J){if(!yJ.Name.test(J))throw new t(t.INVALID_CHARACTER_ERR,'not a valid xml name "'+J+'"');if(this.type==="html")throw new t("document is an html document",sJ.NotSupportedError);var $=new c6(fJ);return $.ownerDocument=this,$.childNodes=new _J,$.nodeName=J,$},createElementNS:function(J,$){var Q=o0(J,$),K=new M8(fJ),Z=K.attributes=new U$;return K.childNodes=new _J,K.ownerDocument=this,K.nodeName=$,K.tagName=$,K.namespaceURI=Q[0],K.prefix=Q[1],K.localName=Q[2],Z._ownerElement=K,K},createAttributeNS:function(J,$){var Q=o0(J,$),K=new n8(fJ);return K.ownerDocument=this,K.childNodes=new _J,K.nodeName=$,K.name=$,K.specified=!0,K.namespaceURI=Q[0],K.prefix=Q[1],K.localName=Q[2],K}};cJ(O8,BJ);function M8(J){pJ(J),this._nsMap=Object.create(null)}M8.prototype={nodeType:aJ,attributes:null,getQualifiedName:function(){return this.prefix?this.prefix+":"+this.localName:this.localName},_isInHTMLDocumentAndNamespace:function(){return this.ownerDocument.type==="html"&&this.namespaceURI===F8.HTML},hasAttributes:function(){return!!(this.attributes&&this.attributes.length)},hasAttribute:function(J){return!!this.getAttributeNode(J)},getAttribute:function(J){var $=this.getAttributeNode(J);return $?$.value:null},getAttributeNode:function(J){if(this._isInHTMLDocumentAndNamespace())J=J.toLowerCase();return this.attributes.getNamedItem(J)},setAttribute:function(J,$){if(this._isInHTMLDocumentAndNamespace())J=J.toLowerCase();var Q=this.getAttributeNode(J);if(Q)Q.value=Q.nodeValue=""+$;else Q=this.ownerDocument._createAttribute(J),Q.value=Q.nodeValue=""+$,this.setAttributeNode(Q)},removeAttribute:function(J){var $=this.getAttributeNode(J);$&&this.removeAttributeNode($)},setAttributeNode:function(J){return this.attributes.setNamedItem(J)},setAttributeNodeNS:function(J){return this.attributes.setNamedItemNS(J)},removeAttributeNode:function(J){return this.attributes.removeNamedItem(J.nodeName)},removeAttributeNS:function(J,$){var Q=this.getAttributeNodeNS(J,$);Q&&this.removeAttributeNode(Q)},hasAttributeNS:function(J,$){return this.getAttributeNodeNS(J,$)!=null},getAttributeNS:function(J,$){var Q=this.getAttributeNodeNS(J,$);return Q?Q.value:null},setAttributeNS:function(J,$,Q){var K=o0(J,$),Z=K[2],X=this.getAttributeNodeNS(J,Z);if(X)X.value=X.nodeValue=""+Q;else X=this.ownerDocument.createAttributeNS(J,$),X.value=X.nodeValue=""+Q,this.setAttributeNode(X)},getAttributeNodeNS:function(J,$){return this.attributes.getNamedItemNS(J,$)},getElementsByClassName:function(J){var $=H1(J);return new B8(this,function(Q){var K=[];if($.length>0)b6(Q,function(Z){if(Z!==Q&&Z.nodeType===aJ){var X=Z.getAttribute("class");if(X){var Y=J===X;if(!Y){var W=H1(X);Y=$.every(nZ(W))}if(Y)K.push(Z)}}});return K})},getElementsByTagName:function(J){var $=(this.nodeType===W$?this:this.ownerDocument).type==="html",Q=J.toLowerCase();return new B8(this,function(K){var Z=[];return b6(K,function(X){if(X===K||X.nodeType!==aJ)return;if(J==="*")Z.push(X);else{var Y=X.getQualifiedName(),W=$&&X.namespaceURI===F8.HTML?Q:J;if(Y===W)Z.push(X)}}),Z})},getElementsByTagNameNS:function(J,$){return new B8(this,function(Q){var K=[];return b6(Q,function(Z){if(Z!==Q&&Z.nodeType===aJ&&(J==="*"||Z.namespaceURI===J)&&($==="*"||Z.localName==$))K.push(Z)}),K})}};O8.prototype.getElementsByClassName=M8.prototype.getElementsByClassName;O8.prototype.getElementsByTagName=M8.prototype.getElementsByTagName;O8.prototype.getElementsByTagNameNS=M8.prototype.getElementsByTagNameNS;cJ(M8,BJ);function n8(J){pJ(J),this.namespaceURI=null,this.prefix=null,this.ownerElement=null}n8.prototype.nodeType=q$;cJ(n8,BJ);function L$(J){pJ(J)}L$.prototype={data:"",substringData:function(J,$){return this.data.substring(J,J+$)},appendData:function(J){J=this.data+J,this.nodeValue=this.data=J,this.length=J.length},insertData:function(J,$){this.replaceData(J,0,$)},deleteData:function(J,$){this.replaceData(J,$,"")},replaceData:function(J,$,Q){var K=this.data.substring(0,J),Z=this.data.substring(J+$);Q=K+Q+Z,this.nodeValue=this.data=Q,this.length=Q.length}};cJ(L$,BJ);function Q6(J){pJ(J)}Q6.prototype={nodeName:"#text",nodeType:v6,splitText:function(J){var $=this.data,Q=$.substring(J);$=$.substring(0,J),this.data=this.nodeValue=$,this.length=$.length;var K=this.ownerDocument.createTextNode(Q);if(this.parentNode)this.parentNode.insertBefore(K,this.nextSibling);return K}};cJ(Q6,L$);function f6(J){pJ(J)}f6.prototype={nodeName:"#comment",nodeType:s0};cJ(f6,L$);function m6(J){pJ(J)}m6.prototype={nodeName:"#cdata-section",nodeType:w1};cJ(m6,Q6);function p6(J){pJ(J)}p6.prototype.nodeType=E1;cJ(p6,BJ);function a0(J){pJ(J)}a0.prototype.nodeType=dZ;cJ(a0,BJ);function l0(J){pJ(J)}l0.prototype.nodeType=rZ;cJ(l0,BJ);function c6(J){pJ(J)}c6.prototype.nodeType=N1;cJ(c6,BJ);function V$(J){pJ(J)}V$.prototype.nodeName="#document-fragment";V$.prototype.nodeType=A8;cJ(V$,BJ);function n6(J){pJ(J)}n6.prototype.nodeType=i0;cJ(n6,L$);function f1(){}f1.prototype.serializeToString=function(J,$){return m1.call(J,$)};BJ.prototype.toString=m1;function m1(J){var $;if(typeof J==="function")$={requireWellFormed:!1,splitCDATASections:!0,nodeFilter:J};else if(J!=null)$={requireWellFormed:!!J.requireWellFormed,splitCDATASections:J.splitCDATASections!==!1,nodeFilter:J.nodeFilter||null};else $={requireWellFormed:!1,splitCDATASections:!0,nodeFilter:null};var Q=[],K=this.nodeType===W$&&this.documentElement||this,Z=K.prefix,X=K.namespaceURI;if(X&&Z==null){var Z=K.lookupPrefix(X);if(Z==null)var Y=[{namespace:X,prefix:null}]}return t0(this,Q,Y,$),Q.join("")}function A1(J,$,Q){var K=J.prefix||"",Z=J.namespaceURI;if(!Z)return!1;if(K==="xml"&&Z===F8.XML||Z===F8.XMLNS)return!1;var X=Q.length;while(X--){var Y=Q[X];if(Y.prefix===K)return Y.namespace!==Z}return!0}function g6(J,$,Q){J.push(" ",$,'="',Q.replace(/[<>&"\t\n\r]/g,y1),'"')}function t0(J,$,Q,K){if(!Q)Q=[];var{nodeFilter:Z,requireWellFormed:X,splitCDATASections:Y}=K,W=J.nodeType===W$?J:J.ownerDocument,B=W.type==="html";gJ(J,{ns:Q},{enter:function(G,U){var D=U.ns;if(Z)if(G=Z(G),G){if(typeof G=="string")return $.push(G),null}else return null;switch(G.nodeType){case aJ:var F=G.attributes,L=F.length,V=G.tagName,H=V;if(!B&&!G.prefix&&G.namespaceURI){var I;for(var z=0;z<F.length;z++)if(F.item(z).name==="xmlns"){I=F.item(z).value;break}if(!I)for(var T=D.length-1;T>=0;T--){var _=D[T];if(_.prefix===""&&_.namespace===G.namespaceURI){I=_.namespace;break}}if(I!==G.namespaceURI)for(var T=D.length-1;T>=0;T--){var _=D[T];if(_.namespace===G.namespaceURI){if(_.prefix)H=_.prefix+":"+V;break}}}$.push("<",H);var b=D.slice();for(var n=0;n<L;n++){var r=F.item(n);if(r.prefix=="xmlns")b.push({prefix:r.localName,namespace:r.value});else if(r.nodeName=="xmlns")b.push({prefix:"",namespace:r.value})}for(var n=0;n<L;n++){var r=F.item(n);if(A1(r,B,b)){var C=r.prefix||"",w=r.namespaceURI;g6($,C?"xmlns:"+C:"xmlns",w),b.push({prefix:C,namespace:w})}var S=Z?Z(r):r;if(S)if(typeof S==="string")$.push(S);else g6($,S.name,S.value)}if(V===H&&A1(G,B,b)){var h=G.prefix||"",w=G.namespaceURI;g6($,h?"xmlns:"+h:"xmlns",w),b.push({prefix:h,namespace:w})}var a=!G.firstChild;if(a&&(B||G.namespaceURI===F8.HTML))a=fZ(V);if(a)return $.push("/>"),null;if($.push(">"),B&&hZ(V)){var f=G.firstChild;while(f){if(f.data)$.push(f.data);else t0(f,$,b.slice(),K);f=f.nextSibling}return $.push("</",H,">"),null}return{ns:b,tag:H};case W$:case A8:if(X&&G.nodeType===W$&&G.documentElement==null)throw new t("The Document has no documentElement",sJ.InvalidStateError);return{ns:D};case q$:return g6($,G.name,G.value),null;case v6:if(X&&yJ.InvalidChar.test(G.data))throw new t("The Text node data contains characters outside the XML Char production",sJ.InvalidStateError);return $.push(G.data.replace(/[<&>]/g,y1)),null;case w1:if(X&&G.data.indexOf("]]>")!==-1)throw new t('The CDATASection data contains "]]>"',sJ.InvalidStateError);if(Y)$.push(yJ.CDATA_START,G.data.replace(/]]>/g,"]]]]><![CDATA[>"),yJ.CDATA_END);else $.push(yJ.CDATA_START,G.data,yJ.CDATA_END);return null;case s0:if(X){if(yJ.InvalidChar.test(G.data))throw new t("The comment node data contains characters outside the XML Char production",sJ.InvalidStateError);if(G.data.indexOf("--")!==-1||G.data[G.data.length-1]==="-")throw new t('The comment node data contains "--" or ends with "-"',sJ.InvalidStateError)}return $.push(yJ.COMMENT_START,G.data,yJ.COMMENT_END),null;case E1:var{publicId:s,systemId:m}=G;if(X){if(s&&!yJ.PubidLiteral_match.test(s))throw new t("DocumentType publicId is not a valid PubidLiteral",sJ.InvalidStateError);if(m&&m!=="."&&!yJ.SystemLiteral_match.test(m))throw new t("DocumentType systemId is not a valid SystemLiteral",sJ.InvalidStateError);if(G.internalSubset&&G.internalSubset.indexOf("]>")!==-1)throw new t('DocumentType internalSubset contains "]>"',sJ.InvalidStateError)}if($.push(yJ.DOCTYPE_DECL_START," ",G.name),s){if($.push(" ",yJ.PUBLIC," ",s),m&&m!==".")$.push(" ",m)}else if(m&&m!==".")$.push(" ",yJ.SYSTEM," ",m);if(G.internalSubset)$.push(" [",G.internalSubset,"]");return $.push(">"),null;case i0:if(X){if(G.target.indexOf(":")!==-1||G.target.toLowerCase()==="xml")throw new t("The ProcessingInstruction target is not well-formed",sJ.InvalidStateError);if(yJ.InvalidChar.test(G.data))throw new t("The ProcessingInstruction data contains characters outside the XML Char production",sJ.InvalidStateError);if(G.data.indexOf("?>")!==-1)throw new t('The ProcessingInstruction data contains "?>"',sJ.InvalidStateError)}return $.push("<?",G.target," ",G.data,"?>"),null;case N1:return $.push("&",G.nodeName,";"),null;default:return $.push("??",G.nodeName),null}},exit:function(G,U){if(U&&U.tag)$.push("</",U.tag,">")}})}function eZ(J,$,Q){var K;return gJ($,null,{enter:function(Z,X){var Y=Z.cloneNode(!1);if(Y.ownerDocument=J,Y.parentNode=null,X===null)K=Y;else X.appendChild(Y);var W=Z.nodeType===q$||Q;return W?Y:null}}),K}function p1(J,$,Q){var K;return gJ($,null,{enter:function(Z,X){var Y=new Z.constructor(fJ);for(var W in Z)if(F$(Z,W)){var B=Z[W];if(typeof B!="object"){if(B!=Y[W])Y[W]=B}}if(Z.childNodes)Y.childNodes=new _J;Y.ownerDocument=J;var G=Q;switch(Y.nodeType){case aJ:var U=Z.attributes,D=Y.attributes=new U$,F=U.length;D._ownerElement=Y;for(var L=0;L<F;L++)Y.setAttributeNode(p1(J,U.item(L),!0));break;case q$:G=!0}if(X!==null)X.appendChild(Y);else K=Y;return G?Y:null}}),K}function c1(J,$,Q){J[$]=Q}function d0(J){var $=[],Q=J.firstChild;while(Q){if(Q.nodeType===aJ)$.push(Q);Q=Q.nextSibling}return $}try{if(Object.defineProperty)Object.defineProperty(B8.prototype,"length",{get:function(){return h6(this),this.$$length}}),Object.defineProperty(BJ.prototype,"textContent",{get:function(){if(this.nodeType===aJ||this.nodeType===A8){var J=[];return gJ(this,null,{enter:function($){if($.nodeType===aJ||$.nodeType===A8)return!0;if($.nodeType===i0||$.nodeType===s0)return null;J.push($.nodeValue)}}),J.join("")}return this.nodeValue},set:function(J){switch(this.nodeType){case aJ:case A8:while(this.firstChild)this.removeChild(this.firstChild);if(J||String(J))this.appendChild(this.ownerDocument.createTextNode(J));break;default:this.data=J,this.value=J,this.nodeValue=J}}}),Object.defineProperty(M8.prototype,"children",{get:function(){return new B8(this,d0)}}),Object.defineProperty(O8.prototype,"children",{get:function(){return new B8(this,d0)}}),Object.defineProperty(V$.prototype,"children",{get:function(){return new B8(this,d0)}}),c1=function(J,$,Q){J["$$"+$]=Q}}catch(J){}J9._updateLiveList=h6;J9.Attr=n8;J9.CDATASection=m6;J9.CharacterData=L$;J9.Comment=f6;J9.Document=O8;J9.DocumentFragment=V$;J9.DocumentType=p6;J9.DOMImplementation=x1;J9.Element=M8;J9.Entity=l0;J9.EntityReference=c6;J9.LiveNodeList=B8;J9.NamedNodeMap=U$;J9.Node=BJ;J9.NodeList=_J;J9.Notation=a0;J9.Text=Q6;J9.ProcessingInstruction=n6;J9.walkDOM=gJ;J9.XMLSerializer=f1});var d1=v8((I9)=>{var n1=c8().freeze;I9.XML_ENTITIES=n1({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'});I9.HTML_ENTITIES=n1({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"\uD835\uDD04",afr:"\uD835\uDD1E",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"\uD835\uDD38",aopf:"\uD835\uDD52",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"\uD835\uDC9C",ascr:"\uD835\uDCB6",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"\uD835\uDD05",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"\uD835\uDD39",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"\uD835\uDCB7",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"\uD835\uDD20",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"\uD835\uDD54",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"\uD835\uDC9E",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"\uD835\uDD07",dfr:"\uD835\uDD21",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"\uD835\uDD3B",dopf:"\uD835\uDD55",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"\uD835\uDC9F",dscr:"\uD835\uDCB9",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"\uD835\uDD08",efr:"\uD835\uDD22",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"\uD835\uDD3C",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"\uD835\uDD09",ffr:"\uD835\uDD23",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"\uD835\uDD3D",fopf:"\uD835\uDD57",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"\uD835\uDCBB",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"\uD835\uDD0A",gfr:"\uD835\uDD24",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"\uD835\uDD3E",gopf:"\uD835\uDD58",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"\uD835\uDD25",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"\uD835\uDD59",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"\uD835\uDCBD",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"\uD835\uDD26",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"\uD835\uDD40",iopf:"\uD835\uDD5A",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"\uD835\uDCBE",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"\uD835\uDD0D",jfr:"\uD835\uDD27",jmath:"ȷ",Jopf:"\uD835\uDD41",jopf:"\uD835\uDD5B",Jscr:"\uD835\uDCA5",jscr:"\uD835\uDCBF",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"\uD835\uDD0E",kfr:"\uD835\uDD28",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"\uD835\uDD42",kopf:"\uD835\uDD5C",Kscr:"\uD835\uDCA6",kscr:"\uD835\uDCC0",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"\uD835\uDD0F",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"\uD835\uDD43",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"\uD835\uDCC1",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\uD835\uDD10",mfr:"\uD835\uDD2A",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"\uD835\uDD44",mopf:"\uD835\uDD5E",mp:"∓",Mscr:"ℳ",mscr:"\uD835\uDCC2",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
2
- `,nexist:"∄",nexists:"∄",Nfr:"\uD835\uDD11",nfr:"\uD835\uDD2B",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"\uD835\uDD5F",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"\uD835\uDCA9",nscr:"\uD835\uDCC3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"\uD835\uDD12",ofr:"\uD835\uDD2C",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"\uD835\uDD46",oopf:"\uD835\uDD60",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"\uD835\uDCAA",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"\uD835\uDD13",pfr:"\uD835\uDD2D",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"\uD835\uDD61",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"\uD835\uDCAB",pscr:"\uD835\uDCC5",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"\uD835\uDD14",qfr:"\uD835\uDD2E",qint:"⨌",Qopf:"ℚ",qopf:"\uD835\uDD62",qprime:"⁗",Qscr:"\uD835\uDCAC",qscr:"\uD835\uDCC6",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"\uD835\uDD2F",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"\uD835\uDCC7",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"\uD835\uDD16",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"\uD835\uDD4A",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"\uD835\uDCAE",sscr:"\uD835\uDCC8",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"\uD835\uDD17",tfr:"\uD835\uDD31",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"\uD835\uDD4B",topf:"\uD835\uDD65",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"\uD835\uDCAF",tscr:"\uD835\uDCC9",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"\uD835\uDD18",ufr:"\uD835\uDD32",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"\uD835\uDD4C",uopf:"\uD835\uDD66",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"\uD835\uDCB0",uscr:"\uD835\uDCCA",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"\uD835\uDD19",vfr:"\uD835\uDD33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"\uD835\uDD4D",vopf:"\uD835\uDD67",vprop:"∝",vrtri:"⊳",Vscr:"\uD835\uDCB1",vscr:"\uD835\uDCCB",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"\uD835\uDD1A",wfr:"\uD835\uDD34",Wopf:"\uD835\uDD4E",wopf:"\uD835\uDD68",wp:"℘",wr:"≀",wreath:"≀",Wscr:"\uD835\uDCB2",wscr:"\uD835\uDCCC",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"\uD835\uDD1B",xfr:"\uD835\uDD35",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"\uD835\uDD4F",xopf:"\uD835\uDD69",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"\uD835\uDCB3",xscr:"\uD835\uDCCD",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"\uD835\uDD1C",yfr:"\uD835\uDD36",YIcy:"Ї",yicy:"ї",Yopf:"\uD835\uDD50",yopf:"\uD835\uDD6A",Yscr:"\uD835\uDCB4",yscr:"\uD835\uDCCE",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"\uD835\uDD37",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"\uD835\uDD6B",Zscr:"\uD835\uDCB5",zscr:"\uD835\uDCCF",zwj:"‍",zwnj:"‌"});I9.entityMap=I9.HTML_ENTITIES});var KK=v8((y9)=>{var H$=c8(),KJ=r0(),l1=s$(),A9=H$.isHTMLEscapableRawTextElement,T9=H$.isHTMLMimeType,_9=H$.isHTMLRawTextElement,Y6=H$.hasOwn,o1=H$.NAMESPACE,i1=l1.ParseError,w9=l1.DOMException,K6=0,_8=1,O$=2,Z6=3,M$=4,P$=5,X6=6,r6=7;function t1(){}t1.prototype={parse:function(J,$,Q){var K=this.domBuilder;K.startDocument(),e1($,$=Object.create(null)),N9(J,$,Q,K,this.errorHandler),K.endDocument()}};var JQ=/&#?\w+;?/g;function N9(J,$,Q,K,Z){var X=T9(K.mimeType);if(J.indexOf(KJ.UNICODE_REPLACEMENT_CHARACTER)>=0)Z.warning("Unicode replacement character detected, source encoding issues?");function Y(M){if(M>65535){M-=65536;var E=55296+(M>>10),N=56320+(M&1023);return String.fromCharCode(E,N)}else return String.fromCharCode(M)}function W(M){var E=M[M.length-1]===";"?M:M+";";if(!X&&E!==M)return Z.error("EntityRef: expecting ;"),M;var N=KJ.Reference.exec(E);if(!N||N[0].length!==E.length)return Z.error("entity not matching Reference production: "+M),M;var y=E.slice(1,-1);if(Y6(Q,y))return Q[y];else if(y.charAt(0)==="#")return Y(parseInt(y.substring(1).replace("x","0x")));else return Z.error("entity not found:"+M),M}function B(M){if(M>I){var E=J.substring(I,M).replace(JQ,W);F&&L(I),K.characters(E,0,M-I),I=M}}var G=0,U=0,D=/\r\n?|\n|$/g,F=K.locator;function L(M,E){while(M>=U&&(E=D.exec(J)))G=U,U=E.index+E[0].length,F.lineNumber++;F.columnNumber=M-G+1}var V=[{currentNSMap:$}],H=[],I=0;while(!0){try{var z=J.indexOf("<",I);if(z<0){if(!X&&H.length>0)return Z.fatalError("unclosed xml tag(s): "+H.join(", "));if(!J.substring(I).match(/^\s*$/)){var T=K.doc,_=T.createTextNode(J.substring(I));if(T.documentElement)return Z.error("Extra content at the end of the document");T.appendChild(_),K.currentElement=_}return}if(z>I){var b=J.substring(I,z);if(!X&&H.length===0)b=b.replace(new RegExp(KJ.S_OPT.source,"g"),""),b&&Z.error("Unexpected content outside root element: '"+b+"'");B(z)}switch(J.charAt(z+1)){case"/":var m=J.indexOf(">",z+2),n=J.substring(z+2,m>0?m:void 0);if(!n)return Z.fatalError("end tag name missing");var r=m>0&&KJ.reg("^",KJ.QName_group,KJ.S_OPT,"$").exec(n);if(!r)return Z.fatalError('end tag name contains invalid characters: "'+n+'"');if(!K.currentElement&&!K.doc.documentElement)return;var C=H[H.length-1]||K.currentElement.tagName||K.doc.documentElement.tagName||"";if(C!==r[1]){var w=r[1].toLowerCase();if(!X||C.toLowerCase()!==w)return Z.fatalError('Opening and ending tag mismatch: "'+C+'" != "'+n+'"')}var S=V.pop();H.pop();var h=S.localNSMap;if(K.endElement(S.uri,S.localName,C),h){for(var a in h)if(Y6(h,a))K.endPrefixMapping(a)}m++;break;case"?":F&&L(z),m=x9(J,z,K,Z);break;case"!":F&&L(z),m=$K(J,z,K,Z,X);break;default:F&&L(z);var f=new QK,s=V[V.length-1].currentNSMap,m=E9(J,z,f,s,W,Z,X),o=f.length;if(!f.closed)if(X&&H$.isHTMLVoidElement(f.tagName))f.closed=!0;else H.push(f.tagName);if(F&&o){var A=s1(F,{});for(var v=0;v<o;v++){var c=f[v];L(c.offset),c.locator=s1(F,{})}if(K.locator=A,a1(f,K,s))V.push(f);K.locator=F}else if(a1(f,K,s))V.push(f);if(X&&!f.closed)m=S9(J,m,f.tagName,W,K);else m++}}catch(M){if(M instanceof i1)throw M;else if(M instanceof w9)throw new i1(M.name+": "+M.message,K.locator,M);Z.error("element parse error: "+M),m=-1}if(m>I)I=m;else B(Math.max(z,I)+1)}}function s1(J,$){return $.lineNumber=J.lineNumber,$.columnNumber=J.columnNumber,$}function E9(J,$,Q,K,Z,X,Y){function W(L,V,H){if(Y6(Q.attributeNames,L))return X.fatalError("Attribute "+L+" redefined");if(!Y&&V.indexOf("<")>=0)return X.fatalError("Unescaped '<' not allowed in attributes values");Q.addValue(L,V.replace(/[\t\n\r]/g," ").replace(JQ,Z),H)}var B,G,U=++$,D=K6;while(!0){var F=J.charAt(U);switch(F){case"=":if(D===_8)B=J.slice($,U),D=Z6;else if(D===O$)D=Z6;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(D===Z6||D===_8){if(D===_8)X.warning('attribute value must after "="'),B=J.slice($,U);if($=U+1,U=J.indexOf(F,$),U>0)G=J.slice($,U),W(B,G,$-1),D=P$;else throw Error("attribute value no end '"+F+"' match")}else if(D==M$)G=J.slice($,U),W(B,G,$),X.warning('attribute "'+B+'" missed start quot('+F+")!!"),$=U+1,D=P$;else throw Error('attribute value must after "="');break;case"/":switch(D){case K6:Q.setTagName(J.slice($,U));case P$:case X6:case r6:D=r6,Q.closed=!0;case M$:case _8:break;case O$:Q.closed=!0;break;default:throw Error("attribute invalid close char('/')")}break;case"":if(X.error("unexpected end of input"),D==K6)Q.setTagName(J.slice($,U));return U;case">":switch(D){case K6:Q.setTagName(J.slice($,U));case P$:case X6:case r6:break;case M$:case _8:if(G=J.slice($,U),G.slice(-1)==="/")Q.closed=!0,G=G.slice(0,-1);case O$:if(D===O$)G=B;if(D==M$)X.warning('attribute "'+G+'" missed quot(")!'),W(B,G,$);else{if(!Y)X.warning('attribute "'+G+'" missed value!! "'+G+'" instead!!');W(G,G,$)}break;case Z6:if(!Y)return X.fatalError(`AttValue: ' or " expected`)}return U;case"€":F=" ";default:if(F<=" ")switch(D){case K6:Q.setTagName(J.slice($,U)),D=X6;break;case _8:B=J.slice($,U),D=O$;break;case M$:var G=J.slice($,U);X.warning('attribute "'+G+'" missed quot(")!!'),W(B,G,$);case P$:D=X6;break}else switch(D){case O$:if(!Y)X.warning('attribute "'+B+'" missed value!! "'+B+'" instead2!!');W(B,B,$),$=U,D=_8;break;case P$:X.warning('attribute space is required"'+B+'"!!');case X6:D=_8,$=U;break;case Z6:D=M$,$=U;break;case r6:throw Error("elements closed character '/' and '>' must be connected to")}}U++}}function a1(J,$,Q){var K=J.tagName,Z=null,D=J.length;while(D--){var X=J[D],Y=X.qName,W=X.value,F=Y.indexOf(":");if(F>0)var B=X.prefix=Y.slice(0,F),G=Y.slice(F+1),U=B==="xmlns"&&G;else G=Y,B=null,U=Y==="xmlns"&&"";if(X.localName=G,U!==!1){if(Z==null)Z=Object.create(null),e1(Q,Q=Object.create(null));Q[U]=Z[U]=W,X.uri=o1.XMLNS,$.startPrefixMapping(U,W)}}var D=J.length;while(D--)if(X=J[D],X.prefix){if(X.prefix==="xml")X.uri=o1.XML;if(X.prefix!=="xmlns")X.uri=Q[X.prefix]}var F=K.indexOf(":");if(F>0)B=J.prefix=K.slice(0,F),G=J.localName=K.slice(F+1);else B=null,G=J.localName=K;var L=J.uri=Q[B||""];if($.startElement(L,G,K,J),J.closed){if($.endElement(L,G,K),Z){for(B in Z)if(Y6(Z,B))$.endPrefixMapping(B)}}else return J.currentNSMap=Q,J.localNSMap=Z,!0}function S9(J,$,Q,K,Z){var X=A9(Q);if(X||_9(Q)){var Y=J.indexOf("</"+Q+">",$),W=J.substring($+1,Y);if(X)W=W.replace(JQ,K);return Z.characters(W,0,W.length),Y}return $+1}function e1(J,$){for(var Q in J)if(Y6(J,Q))$[Q]=J[Q]}function JK(J,$){var Q=$;function K(U){return U=U||0,J.charAt(Q+U)}function Z(U){U=U||1,Q+=U}function X(){var U=0;while(Q<J.length){var D=K();if(D!==" "&&D!==`
3
- `&&D!=="\t"&&D!=="\r")return U;U++,Z()}return-1}function Y(){return J.substring(Q)}function W(U){return J.substring(Q,Q+U.length)===U}function B(U){return J.substring(Q,Q+U.length).toUpperCase()===U.toUpperCase()}function G(U){var D=KJ.reg("^",U),F=D.exec(Y());if(F)return Z(F[0].length),F[0];return null}return{char:K,getIndex:function(){return Q},getMatch:G,getSource:function(){return J},skip:Z,skipBlanks:X,substringFromIndex:Y,substringStartsWith:W,substringStartsWithCaseInsensitive:B}}function k9(J,$){function Q(W,B){var G=KJ.PI.exec(W.substringFromIndex());if(!G)return B.fatalError("processing instruction is not well-formed at position "+W.getIndex());if(G[1].toLowerCase()==="xml")return B.fatalError("xml declaration is only allowed at the start of the document, but found at position "+W.getIndex());return W.skip(G[0].length),G[0]}var K=J.getSource();if(J.char()==="["){J.skip(1);var Z=J.getIndex();while(J.getIndex()<K.length){if(J.skipBlanks(),J.char()==="]"){var X=K.substring(Z,J.getIndex());return J.skip(1),X}var Y=null;if(J.char()==="<"&&J.char(1)==="!")switch(J.char(2)){case"E":if(J.char(3)==="L")Y=J.getMatch(KJ.elementdecl);else if(J.char(3)==="N")Y=J.getMatch(KJ.EntityDecl);break;case"A":Y=J.getMatch(KJ.AttlistDecl);break;case"N":Y=J.getMatch(KJ.NotationDecl);break;case"-":Y=J.getMatch(KJ.Comment);break}else if(J.char()==="<"&&J.char(1)==="?")Y=Q(J,$);else if(J.char()==="%")Y=J.getMatch(KJ.PEReference);else return $.fatalError("Error detected in Markup declaration");if(!Y)return $.fatalError("Error in internal subset at position "+J.getIndex())}return $.fatalError("doctype internal subset is not well-formed, missing ]")}}function $K(J,$,Q,K,Z){var X=JK(J,$);switch(Z?X.char(2).toUpperCase():X.char(2)){case"-":var Y=X.getMatch(KJ.Comment);if(Y)return Q.comment(Y,KJ.COMMENT_START.length,Y.length-KJ.COMMENT_START.length-KJ.COMMENT_END.length),X.getIndex();else return K.fatalError("comment is not well-formed at position "+X.getIndex());case"[":var W=X.getMatch(KJ.CDSect);if(W){if(!Z&&!Q.currentElement)return K.fatalError("CDATA outside of element");return Q.startCDATA(),Q.characters(W,KJ.CDATA_START.length,W.length-KJ.CDATA_START.length-KJ.CDATA_END.length),Q.endCDATA(),X.getIndex()}else return K.fatalError("Invalid CDATA starting at position "+$);case"D":{if(Q.doc&&Q.doc.documentElement)return K.fatalError("Doctype not allowed inside or after documentElement at position "+X.getIndex());if(Z?!X.substringStartsWithCaseInsensitive(KJ.DOCTYPE_DECL_START):!X.substringStartsWith(KJ.DOCTYPE_DECL_START))return K.fatalError("Expected "+KJ.DOCTYPE_DECL_START+" at position "+X.getIndex());if(X.skip(KJ.DOCTYPE_DECL_START.length),X.skipBlanks()<1)return K.fatalError("Expected whitespace after "+KJ.DOCTYPE_DECL_START+" at position "+X.getIndex());var B={name:void 0,publicId:void 0,systemId:void 0,internalSubset:void 0};if(B.name=X.getMatch(KJ.Name),!B.name)return K.fatalError("doctype name missing or contains unexpected characters at position "+X.getIndex());if(Z&&B.name.toLowerCase()!=="html")K.warning("Unexpected DOCTYPE in HTML document at position "+X.getIndex());if(X.skipBlanks(),X.substringStartsWith(KJ.PUBLIC)||X.substringStartsWith(KJ.SYSTEM)){var G=KJ.ExternalID_match.exec(X.substringFromIndex());if(!G)return K.fatalError("doctype external id is not well-formed at position "+X.getIndex());if(G.groups.SystemLiteralOnly!==void 0)B.systemId=G.groups.SystemLiteralOnly;else B.systemId=G.groups.SystemLiteral,B.publicId=G.groups.PubidLiteral;X.skip(G[0].length)}else if(Z&&X.substringStartsWithCaseInsensitive(KJ.SYSTEM)){if(X.skip(KJ.SYSTEM.length),X.skipBlanks()<1)return K.fatalError("Expected whitespace after "+KJ.SYSTEM+" at position "+X.getIndex());if(B.systemId=X.getMatch(KJ.ABOUT_LEGACY_COMPAT_SystemLiteral),!B.systemId)return K.fatalError("Expected "+KJ.ABOUT_LEGACY_COMPAT+" in single or double quotes after "+KJ.SYSTEM+" at position "+X.getIndex())}if(Z&&B.systemId&&!KJ.ABOUT_LEGACY_COMPAT_SystemLiteral.test(B.systemId))K.warning("Unexpected doctype.systemId in HTML document at position "+X.getIndex());if(!Z)X.skipBlanks(),B.internalSubset=k9(X,K);if(X.skipBlanks(),X.char()!==">")return K.fatalError("doctype not terminated with > at position "+X.getIndex());return X.skip(1),Q.startDTD(B.name,B.publicId,B.systemId,B.internalSubset),Q.endDTD(),X.getIndex()}default:return K.fatalError('Not well-formed XML starting with "<!" at position '+$)}}function x9(J,$,Q,K){var Z=J.substring($).match(KJ.PI);if(!Z)return K.fatalError("Invalid processing instruction starting at position "+$);if(Z[1].toLowerCase()==="xml"){if($>0)return K.fatalError("processing instruction at position "+$+" is an xml declaration which is only at the start of the document");if(!KJ.XMLDecl.test(J.substring($)))return K.fatalError("xml declaration is not well-formed")}return Q.processingInstruction(Z[1],Z[2]),$+Z[0].length}function QK(){this.attributeNames=Object.create(null)}QK.prototype={setTagName:function(J){if(!KJ.QName_exact.test(J))throw Error("invalid tagName:"+J);this.tagName=J},addValue:function(J,$,Q){if(!KJ.QName_exact.test(J))throw Error("invalid attribute:"+J);this.attributeNames[J]=this.length,this[this.length++]={qName:J,value:$,offset:Q}},length:0,getLocalName:function(J){return this[J].localName},getLocator:function(J){return this[J].locator},getQName:function(J){return this[J].qName},getURI:function(J){return this[J].uri},getValue:function(J){return this[J].value}};y9.XMLReader=t1;y9.parseUtils=JK;y9.parseDoctypeCommentOrCData=$K});var WK=v8((s9)=>{var r8=c8(),u9=e0(),h9=s$(),ZK=d1(),f9=KK(),m9=u9.DOMImplementation,p9=r8.hasDefaultHTMLNamespace,c9=r8.isHTMLMimeType,n9=r8.isValidMimeType,jK=r8.MIME_TYPE,$Q=r8.NAMESPACE,XK=h9.ParseError,r9=f9.XMLReader;function GK(J){return J.replace(/\r[\n\u0085]/g,`
4
- `).replace(/[\r\u0085\u2028\u2029]/g,`
5
- `)}function BK(J){if(J=J||{},J.locator===void 0)J.locator=!0;if(this.assign=J.assign||r8.assign,this.domHandler=J.domHandler||o6,this.onError=J.onError||J.errorHandler,J.errorHandler&&typeof J.errorHandler!=="function")throw TypeError("errorHandler object is no longer supported, switch to onError!");else if(J.errorHandler)J.errorHandler("warning","The `errorHandler` option has been deprecated, use `onError` instead!",this);this.normalizeLineEndings=J.normalizeLineEndings||GK,this.locator=!!J.locator,this.xmlns=this.assign(Object.create(null),J.xmlns)}BK.prototype.parseFromString=function(J,$){if(!n9($))throw TypeError('DOMParser.parseFromString: the provided mimeType "'+$+'" is not valid.');var Q=this.assign(Object.create(null),this.xmlns),K=ZK.XML_ENTITIES,Z=Q[""]||null;if(p9($))K=ZK.HTML_ENTITIES,Z=$Q.HTML;else if($===jK.XML_SVG_IMAGE)Z=$Q.SVG;Q[""]=Z,Q.xml=Q.xml||$Q.XML;var X=new this.domHandler({mimeType:$,defaultNamespace:Z,onError:this.onError}),Y=this.locator?{}:void 0;if(this.locator)X.setDocumentLocator(Y);var W=new r9;W.errorHandler=X,W.domBuilder=X;var B=!r8.isHTMLMimeType($);if(B&&typeof J!=="string")W.errorHandler.fatalError("source is not a string");if(W.parse(this.normalizeLineEndings(String(J)),Q,K),!X.doc.documentElement)W.errorHandler.fatalError("missing root element");return X.doc};function o6(J){var $=J||{};this.mimeType=$.mimeType||jK.XML_APPLICATION,this.defaultNamespace=$.defaultNamespace||null,this.cdata=!1,this.currentElement=void 0,this.doc=void 0,this.locator=void 0,this.onError=$.onError}function R$(J,$){$.lineNumber=J.lineNumber,$.columnNumber=J.columnNumber}o6.prototype={startDocument:function(){var J=new m9;this.doc=c9(this.mimeType)?J.createHTMLDocument(!1):J.createDocument(this.defaultNamespace,"")},startElement:function(J,$,Q,K){var Z=this.doc,X=Z.createElementNS(J,Q||$),Y=K.length;d6(this,X),this.currentElement=X,this.locator&&R$(this.locator,X);for(var W=0;W<Y;W++){var J=K.getURI(W),B=K.getValue(W),Q=K.getQName(W),G=Z.createAttributeNS(J,Q);this.locator&&R$(K.getLocator(W),G),G.value=G.nodeValue=B,X.setAttributeNode(G)}},endElement:function(J,$,Q){this.currentElement=this.currentElement.parentNode},startPrefixMapping:function(J,$){},endPrefixMapping:function(J){},processingInstruction:function(J,$){var Q=this.doc.createProcessingInstruction(J,$);this.locator&&R$(this.locator,Q),d6(this,Q)},ignorableWhitespace:function(J,$,Q){},characters:function(J,$,Q){if(J=YK.apply(this,arguments),J){if(this.cdata)var K=this.doc.createCDATASection(J);else var K=this.doc.createTextNode(J);if(this.currentElement)this.currentElement.appendChild(K);else if(/^\s*$/.test(J))this.doc.appendChild(K);this.locator&&R$(this.locator,K)}},skippedEntity:function(J){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(J){if(J)J.lineNumber=0;this.locator=J},comment:function(J,$,Q){J=YK.apply(this,arguments);var K=this.doc.createComment(J);this.locator&&R$(this.locator,K),d6(this,K)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(J,$,Q,K){var Z=this.doc.implementation;if(Z&&Z.createDocumentType){var X=Z.createDocumentType(J,$,Q,K);this.locator&&R$(this.locator,X),d6(this,X),this.doc.doctype=X}},reportError:function(J,$){if(typeof this.onError==="function")try{this.onError(J,$,this)}catch(Q){throw new XK("Reporting "+J+' "'+$+'" caused '+Q,this.locator)}else console.error("[xmldom "+J+"]\t"+$,d9(this.locator))},warning:function(J){this.reportError("warning",J)},error:function(J){this.reportError("error",J)},fatalError:function(J){throw this.reportError("fatalError",J),new XK(J,this.locator)}};function d9(J){if(J)return`
6
- @#[line:`+J.lineNumber+",col:"+J.columnNumber+"]"}function YK(J,$,Q){if(typeof J=="string")return J.substr($,Q);else{if(J.length>=$+Q||$)return new java.lang.String(J,$,Q)+"";return J}}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(J){o6.prototype[J]=function(){return null}});function d6(J,$){if(!J.currentElement)J.doc.appendChild($);else J.currentElement.appendChild($)}function o9(J){if(J==="error")throw"onErrorStopParsing"}function i9(){throw"onWarningStopParsing"}s9.__DOMHandler=o6;s9.DOMParser=BK;s9.normalizeLineEndings=GK;s9.onErrorStopParsing=o9;s9.onWarningStopParsing=i9});var h8=(J,$)=>()=>($||J(($={exports:{}}).exports,$),$.exports),K$=h8((J)=>{function $(T,_,b){if(b===void 0)b=Array.prototype;if(T&&typeof b.find==="function")return b.find.call(T,_);for(var n=0;n<T.length;n++)if(K(T,n)){var r=T[n];if(_.call(void 0,r,n,T))return r}}function Q(T,_){if(_===void 0)_=Object;if(_&&typeof _.getOwnPropertyDescriptors==="function")T=_.create(null,_.getOwnPropertyDescriptors(T));return _&&typeof _.freeze==="function"?_.freeze(T):T}function K(T,_){return Object.prototype.hasOwnProperty.call(T,_)}function Z(T,_){if(T===null||typeof T!=="object")throw TypeError("target is not an object");for(var b in _)if(K(_,b))T[b]=_[b];return T}var X=Q({allowfullscreen:!0,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,default:!0,defer:!0,disabled:!0,formnovalidate:!0,hidden:!0,ismap:!0,itemscope:!0,loop:!0,multiple:!0,muted:!0,nomodule:!0,novalidate:!0,open:!0,playsinline:!0,readonly:!0,required:!0,reversed:!0,selected:!0});function Y(T){return K(X,T.toLowerCase())}var W=Q({area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function B(T){return K(W,T.toLowerCase())}var G=Q({script:!1,style:!1,textarea:!0,title:!0});function U(T){var _=T.toLowerCase();return K(G,_)&&!G[_]}function D(T){var _=T.toLowerCase();return K(G,_)&&G[_]}function F(T){return T===V.HTML}function L(T){return F(T)||T===V.XML_XHTML_APPLICATION}var V=Q({HTML:"text/html",XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),H=Object.keys(V).map(function(T){return V[T]});function I(T){return H.indexOf(T)>-1}var z=Q({HTML:"http://www.w3.org/1999/xhtml",SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});J.assign=Z,J.find=$,J.freeze=Q,J.HTML_BOOLEAN_ATTRIBUTES=X,J.HTML_RAW_TEXT_ELEMENTS=G,J.HTML_VOID_ELEMENTS=W,J.hasDefaultHTMLNamespace=L,J.hasOwn=K,J.isHTMLBooleanAttribute=Y,J.isHTMLRawTextElement=U,J.isHTMLEscapableRawTextElement=D,J.isHTMLMimeType=F,J.isHTMLVoidElement=B,J.isValidMimeType=I,J.MIME_TYPE=V,J.NAMESPACE=z}),R6=h8((J)=>{var $=K$();function Q(L,V){L.prototype=Object.create(Error.prototype,{constructor:{value:L},name:{value:L.name,enumerable:!0,writable:V}})}var K=$.freeze({Error:"Error",IndexSizeError:"IndexSizeError",DomstringSizeError:"DomstringSizeError",HierarchyRequestError:"HierarchyRequestError",WrongDocumentError:"WrongDocumentError",InvalidCharacterError:"InvalidCharacterError",NoDataAllowedError:"NoDataAllowedError",NoModificationAllowedError:"NoModificationAllowedError",NotFoundError:"NotFoundError",NotSupportedError:"NotSupportedError",InUseAttributeError:"InUseAttributeError",InvalidStateError:"InvalidStateError",SyntaxError:"SyntaxError",InvalidModificationError:"InvalidModificationError",NamespaceError:"NamespaceError",InvalidAccessError:"InvalidAccessError",ValidationError:"ValidationError",TypeMismatchError:"TypeMismatchError",SecurityError:"SecurityError",NetworkError:"NetworkError",AbortError:"AbortError",URLMismatchError:"URLMismatchError",QuotaExceededError:"QuotaExceededError",TimeoutError:"TimeoutError",InvalidNodeTypeError:"InvalidNodeTypeError",DataCloneError:"DataCloneError",EncodingError:"EncodingError",NotReadableError:"NotReadableError",UnknownError:"UnknownError",ConstraintError:"ConstraintError",DataError:"DataError",TransactionInactiveError:"TransactionInactiveError",ReadOnlyError:"ReadOnlyError",VersionError:"VersionError",OperationError:"OperationError",NotAllowedError:"NotAllowedError",OptOutError:"OptOutError"}),Z=Object.keys(K);function X(L){return typeof L==="number"&&L>=1&&L<=25}function Y(L){return typeof L==="string"&&L.substring(L.length-K.Error.length)===K.Error}function W(L,V){if(X(L))this.name=Z[L],this.message=V||"";else this.message=L,this.name=Y(V)?V:K.Error;if(Error.captureStackTrace)Error.captureStackTrace(this,W)}Q(W,!0),Object.defineProperties(W.prototype,{code:{enumerable:!0,get:function(){var L=Z.indexOf(this.name);if(X(L))return L;return 0}}});var B={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25},G=Object.entries(B);for(D=0;D<G.length;D++)U=G[D][0],W[U]=G[D][1];var U,D;function F(L,V){if(this.message=L,this.locator=V,Error.captureStackTrace)Error.captureStackTrace(this,F)}Q(F),J.DOMException=W,J.DOMExceptionName=K,J.ExceptionCode=B,J.ParseError=F}),MQ=h8((J)=>{function $(RJ){try{if(typeof RJ!=="function")RJ=RegExp;var SJ=new RJ("\uD834\uDF06","u").exec("\uD834\uDF06");return!!SJ&&SJ[0].length===2}catch(x8){}return!1}var Q=$();function K(RJ){if(RJ.source[0]!=="[")throw Error(RJ+" can not be used with chars");return RJ.source.slice(1,RJ.source.lastIndexOf("]"))}function Z(RJ,SJ){if(RJ.source[0]!=="[")throw Error("/"+RJ.source+"/ can not be used with chars_without");if(!SJ||typeof SJ!=="string")throw Error(JSON.stringify(SJ)+" is not a valid search");if(RJ.source.indexOf(SJ)===-1)throw Error('"'+SJ+'" is not is /'+RJ.source+"/");if(SJ==="-"&&RJ.source.indexOf(SJ)!==1)throw Error('"'+SJ+'" is not at the first postion of /'+RJ.source+"/");return new RegExp(RJ.source.replace(SJ,""),Q?"u":"")}function X(RJ){var SJ=this;return new RegExp(Array.prototype.slice.call(arguments).map(function(x8){var T$=typeof x8==="string";if(T$&&SJ===void 0&&x8==="|")throw Error("use regg instead of reg to wrap expressions with `|`!");return T$?x8:x8.source}).join(""),Q?"mu":"m")}function Y(RJ){if(arguments.length===0)throw Error("no parameters provided");return X.apply(Y,["(?:"].concat(Array.prototype.slice.call(arguments),[")"]))}var W="�",B=/[-\x09\x0A\x0D\x20-\x2C\x2E-\uD7FF\uE000-\uFFFD]/;if(Q)B=X("[",K(B),"\\u{10000}-\\u{10FFFF}","]");var G=new RegExp("[^"+K(B)+"]",Q?"u":""),U=/[\x20\x09\x0D\x0A]/,D=K(U),F=X(U,"+"),L=X(U,"*"),V=/[:_a-zA-Z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;if(Q)V=X("[",K(V),"\\u{10000}-\\u{10FFFF}","]");var H=K(V),I=X("[",H,K(/[-.0-9\xB7]/),K(/[\u0300-\u036F\u203F-\u2040]/),"]"),z=X(V,I,"*"),T=X(I,"+"),_=X("&",z,";"),b=Y(/&#[0-9]+;|&#x[0-9a-fA-F]+;/),n=Y(_,"|",b),r=X("%",z,";"),C=Y(X('"',Y(/[^%&"]/,"|",r,"|",n),"*",'"'),"|",X("'",Y(/[^%&']/,"|",r,"|",n),"*","'")),w=Y('"',Y(/[^<&"]/,"|",n),"*",'"',"|","'",Y(/[^<&']/,"|",n),"*","'"),S=Z(V,":"),h=Z(I,":"),a=X(S,h,"*"),f=X(a,Y(":",a),"?"),s=X("^",f,"$"),m=X("(",f,")"),o=Y(/"[^"]*"|'[^']*'/),A=X(/^<\?/,"(",z,")",Y(F,"(",B,"*?)"),"?",/\?>/),v=/[\x20\x0D\x0Aa-zA-Z0-9-'()+,./:=?;!*#@$_%]/,c=Y('"',v,'*"',"|","'",Z(v,"'"),"*'"),M="<!--",E="-->",N=X(M,Y(Z(B,"-"),"|",X("-",Z(B,"-"))),"*",E),y="#PCDATA",u=Y(X(/\(/,L,y,Y(L,/\|/,L,f),"*",L,/\)\*/),"|",X(/\(/,L,y,L,/\)/)),x=/[?*+]?/,k=X(/\([^>]+\)/,x),p=Y("EMPTY","|","ANY","|",u,"|",k),l="<!ELEMENT",e=X(l,F,Y(f,"|",r),F,Y(p,"|",r),L,">"),WJ=X("NOTATION",F,/\(/,L,z,Y(L,/\|/,L,z),"*",L,/\)/),FJ=X(/\(/,L,T,Y(L,/\|/,L,T),"*",L,/\)/),jJ=Y(WJ,"|",FJ),GJ=Y(/CDATA|ID|IDREF|IDREFS|ENTITY|ENTITIES|NMTOKEN|NMTOKENS/,"|",jJ),i=Y(/#REQUIRED|#IMPLIED/,"|",Y(Y("#FIXED",F),"?",w)),OJ=Y(F,z,F,GJ,F,i),PJ="<!ATTLIST",VJ=X(PJ,F,z,OJ,"*",L,">"),NJ="about:legacy-compat",w8=Y('"'+NJ+'"',"|","'"+NJ+"'"),tJ="SYSTEM",q8="PUBLIC",eJ=Y(Y(tJ,F,o),"|",Y(q8,F,c,F,o)),N8=X("^",Y(Y(tJ,F,"(?<SystemLiteralOnly>",o,")"),"|",Y(q8,F,"(?<PubidLiteral>",c,")",F,"(?<SystemLiteral>",o,")"))),d8=X("^",c,"$"),HJ=X("^",o,"$"),hJ=Y(F,"NDATA",F,z),EJ=Y(C,"|",Y(eJ,hJ,"?")),P8="<!ENTITY",o8=X(P8,F,z,F,EJ,L,">"),E8=Y(C,"|",eJ),i8=X(P8,F,"%",F,z,F,E8,L,">"),XJ=Y(o8,"|",i8),AJ=X(q8,F,c),bJ=X("<!NOTATION",F,z,F,Y(eJ,"|",AJ),L,">"),vJ=X(L,"=",L),U8=/1[.]\d+/,S8=X(F,"version",vJ,Y("'",U8,"'","|",'"',U8,'"')),k8=/[A-Za-z][-A-Za-z0-9._]*/,s8=Y(F,"encoding",vJ,Y('"',k8,'"',"|","'",k8,"'")),a8=Y(F,"standalone",vJ,Y("'",Y("yes","|","no"),"'","|",'"',Y("yes","|","no"),'"')),C$=X(/^<\?xml/,S8,s8,"?",a8,"?",L,/\?>/),A$="<!DOCTYPE",l8="<![CDATA[",H8="]]>",t8=/<!\[CDATA\[/,B6=/\]\]>/,W6=X(B,"*?",B6),F6=X(t8,W6);J.chars=K,J.chars_without=Z,J.detectUnicodeSupport=$,J.reg=X,J.regg=Y,J.ABOUT_LEGACY_COMPAT=NJ,J.ABOUT_LEGACY_COMPAT_SystemLiteral=w8,J.AttlistDecl=VJ,J.CDATA_START=l8,J.CDATA_END=H8,J.CDSect=F6,J.Char=B,J.Comment=N,J.COMMENT_START=M,J.COMMENT_END=E,J.DOCTYPE_DECL_START=A$,J.elementdecl=e,J.EntityDecl=XJ,J.EntityValue=C,J.ExternalID=eJ,J.ExternalID_match=N8,J.Name=z,J.NotationDecl=bJ,J.Reference=n,J.PEReference=r,J.PI=A,J.PUBLIC=q8,J.PubidLiteral=c,J.PubidLiteral_match=d8,J.QName=f,J.QName_exact=s,J.QName_group=m,J.S=F,J.SChar_s=D,J.S_OPT=L,J.SYSTEM=tJ,J.SystemLiteral=o,J.SystemLiteral_match=HJ,J.InvalidChar=G,J.UNICODE_REPLACEMENT_CHARACTER=W,J.UNICODE_SUPPORT=Q,J.XMLDecl=C$}),PQ=h8((J)=>{var $=K$(),Q=$.find,K=$.hasDefaultHTMLNamespace,Z=$.hasOwn,X=$.isHTMLMimeType,Y=$.isHTMLRawTextElement,W=$.isHTMLVoidElement,B=$.MIME_TYPE,G=$.NAMESPACE,U=Symbol(),D=R6(),F=D.DOMException,L=D.DOMExceptionName,V=MQ();function H(j){if(j!==U)throw TypeError("Illegal constructor")}function I(j){return j!==""}function z(j){return j?j.split(/[\t\n\f\r ]+/).filter(I):[]}function T(j,q){if(!Z(j,q))j[q]=!0;return j}function _(j){if(!j)return[];var q=z(j);return Object.keys(q.reduce(T,{}))}function b(j){return function(q){return j&&j.indexOf(q)!==-1}}function n(j){if(!V.QName_exact.test(j))throw new F(F.INVALID_CHARACTER_ERR,'invalid character in qualified name "'+j+'"')}function r(j,q){n(q),j=j||null;var O=null,R=q;if(q.indexOf(":")>=0){var g=q.split(":");O=g[0],R=g[1]}if(O!==null&&j===null)throw new F(F.NAMESPACE_ERR,"prefix is non-null and namespace is null");if(O==="xml"&&j!==$.NAMESPACE.XML)throw new F(F.NAMESPACE_ERR,'prefix is "xml" and namespace is not the XML namespace');if((O==="xmlns"||q==="xmlns")&&j!==$.NAMESPACE.XMLNS)throw new F(F.NAMESPACE_ERR,'either qualifiedName or prefix is "xmlns" and namespace is not the XMLNS namespace');if(j===$.NAMESPACE.XMLNS&&O!=="xmlns"&&q!=="xmlns")throw new F(F.NAMESPACE_ERR,'namespace is the XMLNS namespace and neither qualifiedName nor prefix is "xmlns"');return[j,O,R]}function C(j,q){for(var O in j)if(Z(j,O))q[O]=j[O]}function w(j,q){var O=j.prototype;if(!(O instanceof q)){let R=function(){};R.prototype=q.prototype,R=new R,C(O,R),j.prototype=O=R}if(O.constructor!=j){if(typeof j!="function")console.error("unknown Class:"+j);O.constructor=j}}var S={},h=S.ELEMENT_NODE=1,a=S.ATTRIBUTE_NODE=2,f=S.TEXT_NODE=3,s=S.CDATA_SECTION_NODE=4,m=S.ENTITY_REFERENCE_NODE=5,o=S.ENTITY_NODE=6,A=S.PROCESSING_INSTRUCTION_NODE=7,v=S.COMMENT_NODE=8,c=S.DOCUMENT_NODE=9,M=S.DOCUMENT_TYPE_NODE=10,E=S.DOCUMENT_FRAGMENT_NODE=11,N=S.NOTATION_NODE=12,y=$.freeze({DOCUMENT_POSITION_DISCONNECTED:1,DOCUMENT_POSITION_PRECEDING:2,DOCUMENT_POSITION_FOLLOWING:4,DOCUMENT_POSITION_CONTAINS:8,DOCUMENT_POSITION_CONTAINED_BY:16,DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:32});function u(j,q){if(q.length<j.length)return u(q,j);var O=null;for(var R in j){if(j[R]!==q[R])return O;O=j[R]}return O}function x(j){if(!j.guid)j.guid=Math.random();return j.guid}function k(){}k.prototype={length:0,item:function(j){return j>=0&&j<this.length?this[j]:null},toString:function(j){var q;if(typeof j==="function")q={requireWellFormed:!1,splitCDATASections:!0,nodeFilter:j};else if(j)q={requireWellFormed:!!j.requireWellFormed,splitCDATASections:j.splitCDATASections!==!1,nodeFilter:j.nodeFilter||null};else q={requireWellFormed:!1,splitCDATASections:!0,nodeFilter:null};for(var O=[],R=0;R<this.length;R++)SJ(this[R],O,null,q);return O.join("")},filter:function(j){return Array.prototype.filter.call(this,j)},indexOf:function(j){return Array.prototype.indexOf.call(this,j)}},k.prototype[Symbol.iterator]=function(){var j=this,q=0;return{next:function(){if(q<j.length)return{value:j[q++],done:!1};else return{done:!0}},return:function(){return{done:!0}}}};function p(j,q){this._node=j,this._refresh=q,l(this)}function l(j){var q=j._node._inc||j._node.ownerDocument._inc;if(j._inc!==q){var O=j._refresh(j._node);if(jQ(j,"length",O.length),!j.$$length||O.length<j.$$length){for(var R=O.length;R in j;R++)if(Z(j,R))delete j[R]}C(O,j),j._inc=q}}p.prototype.item=function(j){return l(this),this[j]||null},w(p,k);function e(){}function WJ(j,q){var O=0;while(O<j.length){if(j[O]===q)return O;O++}}function FJ(j,q,O,R){if(R)q[WJ(q,R)]=O;else q[q.length]=O,q.length++;if(j){O.ownerElement=j;var g=j.ownerDocument;if(g)R&&tJ(g,j,R),w8(g,j,O)}}function jJ(j,q,O){var R=WJ(q,O);if(R>=0){var g=q.length-1;while(R<=g)q[R]=q[++R];if(q.length=g,j){var d=j.ownerDocument;if(d)tJ(d,j,O);O.ownerElement=null}}}e.prototype={length:0,item:k.prototype.item,getNamedItem:function(j){if(this._ownerElement&&this._ownerElement._isInHTMLDocumentAndNamespace())j=j.toLowerCase();var q=0;while(q<this.length){var O=this[q];if(O.nodeName===j)return O;q++}return null},setNamedItem:function(j){var q=j.ownerElement;if(q&&q!==this._ownerElement)throw new F(F.INUSE_ATTRIBUTE_ERR);var O=this.getNamedItemNS(j.namespaceURI,j.localName);if(O===j)return j;return FJ(this._ownerElement,this,j,O),O},setNamedItemNS:function(j){return this.setNamedItem(j)},removeNamedItem:function(j){var q=this.getNamedItem(j);if(!q)throw new F(F.NOT_FOUND_ERR,j);return jJ(this._ownerElement,this,q),q},removeNamedItemNS:function(j,q){var O=this.getNamedItemNS(j,q);if(!O)throw new F(F.NOT_FOUND_ERR,j?j+" : "+q:q);return jJ(this._ownerElement,this,O),O},getNamedItemNS:function(j,q){if(!j)j=null;var O=0;while(O<this.length){var R=this[O];if(R.localName===q&&R.namespaceURI===j)return R;O++}return null}},e.prototype[Symbol.iterator]=function(){var j=this,q=0;return{next:function(){if(q<j.length)return{value:j[q++],done:!1};else return{done:!0}},return:function(){return{done:!0}}}};function GJ(){}GJ.prototype={hasFeature:function(j,q){return!0},createDocument:function(j,q,O){var R=B.XML_APPLICATION;if(j===G.HTML)R=B.XML_XHTML_APPLICATION;else if(j===G.SVG)R=B.XML_SVG_IMAGE;var g=new NJ(U,{contentType:R});if(g.implementation=this,g.childNodes=new k,g.doctype=O||null,O)g.appendChild(O);if(q){var d=g.createElementNS(j,q);g.appendChild(d)}return g},createDocumentType:function(j,q,O,R){n(j);var g=new a8(U);return g.name=j,g.nodeName=j,g.publicId=q||"",g.systemId=O||"",g.internalSubset=R||"",g.childNodes=new k,g},createHTMLDocument:function(j){var q=new NJ(U,{contentType:B.HTML});if(q.implementation=this,q.childNodes=new k,j!==!1){q.doctype=this.createDocumentType("html"),q.doctype.ownerDocument=q,q.appendChild(q.doctype);var O=q.createElement("html");q.appendChild(O);var R=q.createElement("head");if(O.appendChild(R),typeof j==="string"){var g=q.createElement("title");g.appendChild(q.createTextNode(j)),R.appendChild(g)}O.appendChild(q.createElement("body"))}return q}};function i(j){H(j)}i.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,parentNode:null,get parentElement(){return this.parentNode&&this.parentNode.nodeType===this.ELEMENT_NODE?this.parentNode:null},childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,baseURI:"about:blank",get isConnected(){var j=this.getRootNode();return j&&j.nodeType===j.DOCUMENT_NODE},contains:function(j){if(!j)return!1;var q=j;do{if(this===q)return!0;q=q.parentNode}while(q);return!1},getRootNode:function(j){var q=this;do{if(!q.parentNode)return q;q=q.parentNode}while(q)},isEqualNode:function(j){if(!j)return!1;var q=[{node:this,other:j}];while(q.length>0){var O=q.pop(),R=O.node,g=O.other;if(R.nodeType!==g.nodeType)return!1;switch(R.nodeType){case R.DOCUMENT_TYPE_NODE:if(R.name!==g.name)return!1;if(R.publicId!==g.publicId)return!1;if(R.systemId!==g.systemId)return!1;break;case R.ELEMENT_NODE:if(R.namespaceURI!==g.namespaceURI)return!1;if(R.prefix!==g.prefix)return!1;if(R.localName!==g.localName)return!1;if(R.attributes.length!==g.attributes.length)return!1;for(var d=0;d<R.attributes.length;d++){var $J=R.attributes.item(d),MJ=g.getAttributeNodeNS($J.namespaceURI,$J.localName);if(!MJ)return!1;q.push({node:$J,other:MJ})}break;case R.ATTRIBUTE_NODE:if(R.namespaceURI!==g.namespaceURI)return!1;if(R.localName!==g.localName)return!1;if(R.value!==g.value)return!1;break;case R.PROCESSING_INSTRUCTION_NODE:if(R.target!==g.target||R.data!==g.data)return!1;break;case R.TEXT_NODE:case R.CDATA_SECTION_NODE:case R.COMMENT_NODE:if(R.data!==g.data)return!1;break}if(R.childNodes.length!==g.childNodes.length)return!1;for(var d=R.childNodes.length-1;d>=0;d--)q.push({node:R.childNodes[d],other:g.childNodes[d]})}return!0},isSameNode:function(j){return this===j},insertBefore:function(j,q){return AJ(this,j,q)},replaceChild:function(j,q){if(AJ(this,j,q,XJ),q)this.removeChild(q)},removeChild:function(j){return eJ(this,j)},appendChild:function(j){return this.insertBefore(j,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(j){return T$(this.ownerDocument||this,this,j)},normalize:function(){VJ(this,null,{enter:function(j){var q=j.firstChild;while(q){var O=q.nextSibling;if(O!==null&&O.nodeType===f&&q.nodeType===f)j.removeChild(O),q.appendData(O.data);else q=O}return!0}})},isSupported:function(j,q){return this.ownerDocument.implementation.hasFeature(j,q)},lookupPrefix:function(j){var q=this;while(q){var O=q._nsMap;if(O){for(var R in O)if(Z(O,R)&&O[R]===j)return R}q=q.nodeType==a?q.ownerDocument:q.parentNode}return null},lookupNamespaceURI:function(j){var q=this;while(q){var O=q._nsMap;if(O){if(Z(O,j))return O[j]}q=q.nodeType==a?q.ownerDocument:q.parentNode}return null},isDefaultNamespace:function(j){var q=this.lookupPrefix(j);return q==null},compareDocumentPosition:function(j){if(this===j)return 0;var q=j,O=this,R=null,g=null;if(q instanceof vJ)R=q,q=R.ownerElement;if(O instanceof vJ){if(g=O,O=g.ownerElement,R&&q&&O===q)for(var d=0,$J;$J=O.attributes[d];d++){if($J===R)return y.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+y.DOCUMENT_POSITION_PRECEDING;if($J===g)return y.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+y.DOCUMENT_POSITION_FOLLOWING}}if(!q||!O||O.ownerDocument!==q.ownerDocument)return y.DOCUMENT_POSITION_DISCONNECTED+y.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+(x(O.ownerDocument)>x(q.ownerDocument)?y.DOCUMENT_POSITION_FOLLOWING:y.DOCUMENT_POSITION_PRECEDING);if(g&&q===O)return y.DOCUMENT_POSITION_CONTAINS+y.DOCUMENT_POSITION_PRECEDING;if(R&&q===O)return y.DOCUMENT_POSITION_CONTAINED_BY+y.DOCUMENT_POSITION_FOLLOWING;var MJ=[],kJ=q.parentNode;while(kJ){if(!g&&kJ===O)return y.DOCUMENT_POSITION_CONTAINED_BY+y.DOCUMENT_POSITION_FOLLOWING;MJ.push(kJ),kJ=kJ.parentNode}MJ.reverse();var JJ=[],mJ=O.parentNode;while(mJ){if(!R&&mJ===q)return y.DOCUMENT_POSITION_CONTAINS+y.DOCUMENT_POSITION_PRECEDING;JJ.push(mJ),mJ=mJ.parentNode}JJ.reverse();var J8=u(MJ,JJ);for(var X8 in J8.childNodes){var $8=J8.childNodes[X8];if($8===O)return y.DOCUMENT_POSITION_FOLLOWING;if($8===q)return y.DOCUMENT_POSITION_PRECEDING;if(JJ.indexOf($8)>=0)return y.DOCUMENT_POSITION_FOLLOWING;if(MJ.indexOf($8)>=0)return y.DOCUMENT_POSITION_PRECEDING}return 0}};function OJ(j){return j=="<"&&"&lt;"||j==">"&&"&gt;"||j=="&"&&"&amp;"||j=='"'&&"&quot;"||"&#"+j.charCodeAt()+";"}C(S,i),C(S,i.prototype),C(y,i),C(y,i.prototype);function PJ(j,q){VJ(j,null,{enter:function(O){return q(O)?VJ.STOP:!0}})}function VJ(j,q,O){var R=[{node:j,context:q,phase:VJ.ENTER}];while(R.length>0){var g=R.pop();if(g.phase===VJ.ENTER){var d=O.enter(g.node,g.context);if(d===VJ.STOP)return VJ.STOP;if(R.push({node:g.node,context:d,phase:VJ.EXIT}),d===null||d===void 0)continue;var $J=g.node.lastChild;while($J)R.push({node:$J,context:d,phase:VJ.ENTER}),$J=$J.previousSibling}else if(O.exit)O.exit(g.node,g.context)}}VJ.STOP=Symbol("walkDOM.STOP"),VJ.ENTER=0,VJ.EXIT=1;function NJ(j,q){H(j);var O=q||{};this.ownerDocument=this,this.contentType=O.contentType||B.XML_APPLICATION,this.type=X(this.contentType)?"html":"xml"}function w8(j,q,O){j&&j._inc++;var R=O.namespaceURI;if(R===G.XMLNS)q._nsMap[O.prefix?O.localName:""]=O.value}function tJ(j,q,O,R){j&&j._inc++;var g=O.namespaceURI;if(g===G.XMLNS)delete q._nsMap[O.prefix?O.localName:""]}function q8(j,q,O){if(j&&j._inc){j._inc++;var R=q.childNodes;if(O&&!O.nextSibling)R[R.length++]=O;else{var g=q.firstChild,d=0;while(g)R[d++]=g,g=g.nextSibling;R.length=d,delete R[R.length]}}}function eJ(j,q){if(j!==q.parentNode)throw new F(F.NOT_FOUND_ERR,"child's parent is not parent");var{previousSibling:O,nextSibling:R}=q;if(O)O.nextSibling=R;else j.firstChild=R;if(R)R.previousSibling=O;else j.lastChild=O;return q8(j.ownerDocument,j),q.parentNode=null,q.previousSibling=null,q.nextSibling=null,q}function N8(j){return j&&(j.nodeType===i.DOCUMENT_NODE||j.nodeType===i.DOCUMENT_FRAGMENT_NODE||j.nodeType===i.ELEMENT_NODE)}function d8(j){return j&&(j.nodeType===i.CDATA_SECTION_NODE||j.nodeType===i.COMMENT_NODE||j.nodeType===i.DOCUMENT_FRAGMENT_NODE||j.nodeType===i.DOCUMENT_TYPE_NODE||j.nodeType===i.ELEMENT_NODE||j.nodeType===i.PROCESSING_INSTRUCTION_NODE||j.nodeType===i.TEXT_NODE)}function HJ(j){return j&&j.nodeType===i.DOCUMENT_TYPE_NODE}function hJ(j){return j&&j.nodeType===i.ELEMENT_NODE}function EJ(j){return j&&j.nodeType===i.TEXT_NODE}function P8(j,q){var O=j.childNodes||[];if(Q(O,hJ)||HJ(q))return!1;var R=Q(O,HJ);return!(q&&R&&O.indexOf(R)>O.indexOf(q))}function o8(j,q){var O=j.childNodes||[];function R(d){return hJ(d)&&d!==q}if(Q(O,R))return!1;var g=Q(O,HJ);return!(q&&g&&O.indexOf(g)>O.indexOf(q))}function E8(j,q,O){if(!N8(j))throw new F(F.HIERARCHY_REQUEST_ERR,"Unexpected parent node type "+j.nodeType);if(O&&O.parentNode!==j)throw new F(F.NOT_FOUND_ERR,"child not in parent");if(!d8(q)||HJ(q)&&j.nodeType!==i.DOCUMENT_NODE)throw new F(F.HIERARCHY_REQUEST_ERR,"Unexpected node type "+q.nodeType+" for parent node type "+j.nodeType)}function i8(j,q,O){var R=j.childNodes||[],g=q.childNodes||[];if(q.nodeType===i.DOCUMENT_FRAGMENT_NODE){var d=g.filter(hJ);if(d.length>1||Q(g,EJ))throw new F(F.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(d.length===1&&!P8(j,O))throw new F(F.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(hJ(q)){if(!P8(j,O))throw new F(F.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype")}if(HJ(q)){if(Q(R,HJ))throw new F(F.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var $J=Q(R,hJ);if(O&&R.indexOf($J)<R.indexOf(O))throw new F(F.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element");if(!O&&$J)throw new F(F.HIERARCHY_REQUEST_ERR,"Doctype can not be appended since element is present")}}function XJ(j,q,O){var R=j.childNodes||[],g=q.childNodes||[];if(q.nodeType===i.DOCUMENT_FRAGMENT_NODE){var d=g.filter(hJ);if(d.length>1||Q(g,EJ))throw new F(F.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(d.length===1&&!o8(j,O))throw new F(F.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(hJ(q)){if(!o8(j,O))throw new F(F.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype")}if(HJ(q)){if(Q(R,function(kJ){return HJ(kJ)&&kJ!==O}))throw new F(F.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var $J=Q(R,hJ);if(O&&R.indexOf($J)<R.indexOf(O))throw new F(F.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element")}}function AJ(j,q,O,R){if(E8(j,q,O),j.nodeType===i.DOCUMENT_NODE)(R||i8)(j,q,O);var g=q.parentNode;if(g)g.removeChild(q);if(q.nodeType===E){var d=q.firstChild;if(d==null)return q;var $J=q.lastChild}else d=$J=q;var MJ=O?O.previousSibling:j.lastChild;if(d.previousSibling=MJ,$J.nextSibling=O,MJ)MJ.nextSibling=d;else j.firstChild=d;if(O==null)j.lastChild=$J;else O.previousSibling=$J;do d.parentNode=j;while(d!==$J&&(d=d.nextSibling));if(q8(j.ownerDocument||j,j,q),q.nodeType==E)q.firstChild=q.lastChild=null;return q}NJ.prototype={implementation:null,nodeName:"#document",nodeType:c,doctype:null,documentElement:null,_inc:1,insertBefore:function(j,q){if(j.nodeType===E){var O=j.firstChild;while(O){var R=O.nextSibling;this.insertBefore(O,q),O=R}return j}if(AJ(this,j,q),j.ownerDocument=this,this.documentElement===null&&j.nodeType===h)this.documentElement=j;return j},removeChild:function(j){var q=eJ(this,j);if(q===this.documentElement)this.documentElement=null;return q},replaceChild:function(j,q){if(AJ(this,j,q,XJ),j.ownerDocument=this,q)this.removeChild(q);if(hJ(j))this.documentElement=j},importNode:function(j,q){return x8(this,j,q)},getElementById:function(j){var q=null;return PJ(this.documentElement,function(O){if(O.nodeType==h){if(O.getAttribute("id")==j)return q=O,!0}}),q},createElement:function(j){var q=new bJ(U);if(q.ownerDocument=this,this.type==="html")j=j.toLowerCase();if(K(this.contentType))q.namespaceURI=G.HTML;q.nodeName=j,q.tagName=j,q.localName=j,q.childNodes=new k;var O=q.attributes=new e;return O._ownerElement=q,q},createDocumentFragment:function(){var j=new H8(U);return j.ownerDocument=this,j.childNodes=new k,j},createTextNode:function(j){var q=new S8(U);return q.ownerDocument=this,q.childNodes=new k,q.appendData(j),q},createComment:function(j){var q=new k8(U);return q.ownerDocument=this,q.childNodes=new k,q.appendData(j),q},createCDATASection:function(j){if(j.indexOf("]]>")!==-1)throw new F(F.INVALID_CHARACTER_ERR,'data contains "]]>"');var q=new s8(U);return q.ownerDocument=this,q.childNodes=new k,q.appendData(j),q},createProcessingInstruction:function(j,q){var O=new t8(U);return O.ownerDocument=this,O.childNodes=new k,O.nodeName=O.target=j,O.nodeValue=O.data=q,O},createAttribute:function(j){if(!V.QName_exact.test(j))throw new F(F.INVALID_CHARACTER_ERR,'invalid character in name "'+j+'"');if(this.type==="html")j=j.toLowerCase();return this._createAttribute(j)},_createAttribute:function(j){var q=new vJ(U);return q.ownerDocument=this,q.childNodes=new k,q.name=j,q.nodeName=j,q.localName=j,q.specified=!0,q},createEntityReference:function(j){if(!V.Name.test(j))throw new F(F.INVALID_CHARACTER_ERR,'not a valid xml name "'+j+'"');if(this.type==="html")throw new F("document is an html document",L.NotSupportedError);var q=new l8(U);return q.ownerDocument=this,q.childNodes=new k,q.nodeName=j,q},createElementNS:function(j,q){var O=r(j,q),R=new bJ(U),g=R.attributes=new e;return R.childNodes=new k,R.ownerDocument=this,R.nodeName=q,R.tagName=q,R.namespaceURI=O[0],R.prefix=O[1],R.localName=O[2],g._ownerElement=R,R},createAttributeNS:function(j,q){var O=r(j,q),R=new vJ(U);return R.ownerDocument=this,R.childNodes=new k,R.nodeName=q,R.name=q,R.specified=!0,R.namespaceURI=O[0],R.prefix=O[1],R.localName=O[2],R}},w(NJ,i);function bJ(j){H(j),this._nsMap=Object.create(null)}bJ.prototype={nodeType:h,attributes:null,getQualifiedName:function(){return this.prefix?this.prefix+":"+this.localName:this.localName},_isInHTMLDocumentAndNamespace:function(){return this.ownerDocument.type==="html"&&this.namespaceURI===G.HTML},hasAttributes:function(){return!!(this.attributes&&this.attributes.length)},hasAttribute:function(j){return!!this.getAttributeNode(j)},getAttribute:function(j){var q=this.getAttributeNode(j);return q?q.value:null},getAttributeNode:function(j){if(this._isInHTMLDocumentAndNamespace())j=j.toLowerCase();return this.attributes.getNamedItem(j)},setAttribute:function(j,q){if(this._isInHTMLDocumentAndNamespace())j=j.toLowerCase();var O=this.getAttributeNode(j);if(O)O.value=O.nodeValue=""+q;else O=this.ownerDocument._createAttribute(j),O.value=O.nodeValue=""+q,this.setAttributeNode(O)},removeAttribute:function(j){var q=this.getAttributeNode(j);q&&this.removeAttributeNode(q)},setAttributeNode:function(j){return this.attributes.setNamedItem(j)},setAttributeNodeNS:function(j){return this.attributes.setNamedItemNS(j)},removeAttributeNode:function(j){return this.attributes.removeNamedItem(j.nodeName)},removeAttributeNS:function(j,q){var O=this.getAttributeNodeNS(j,q);O&&this.removeAttributeNode(O)},hasAttributeNS:function(j,q){return this.getAttributeNodeNS(j,q)!=null},getAttributeNS:function(j,q){var O=this.getAttributeNodeNS(j,q);return O?O.value:null},setAttributeNS:function(j,q,O){var R=r(j,q),g=R[2],d=this.getAttributeNodeNS(j,g);if(d)d.value=d.nodeValue=""+O;else d=this.ownerDocument.createAttributeNS(j,q),d.value=d.nodeValue=""+O,this.setAttributeNode(d)},getAttributeNodeNS:function(j,q){return this.attributes.getNamedItemNS(j,q)},getElementsByClassName:function(j){var q=_(j);return new p(this,function(O){var R=[];if(q.length>0)PJ(O,function(g){if(g!==O&&g.nodeType===h){var d=g.getAttribute("class");if(d){var $J=j===d;if(!$J){var MJ=_(d);$J=q.every(b(MJ))}if($J)R.push(g)}}});return R})},getElementsByTagName:function(j){var q=(this.nodeType===c?this:this.ownerDocument).type==="html",O=j.toLowerCase();return new p(this,function(R){var g=[];return PJ(R,function(d){if(d===R||d.nodeType!==h)return;if(j==="*")g.push(d);else{var $J=d.getQualifiedName(),MJ=q&&d.namespaceURI===G.HTML?O:j;if($J===MJ)g.push(d)}}),g})},getElementsByTagNameNS:function(j,q){return new p(this,function(O){var R=[];return PJ(O,function(g){if(g!==O&&g.nodeType===h&&(j==="*"||g.namespaceURI===j)&&(q==="*"||g.localName==q))R.push(g)}),R})}},NJ.prototype.getElementsByClassName=bJ.prototype.getElementsByClassName,NJ.prototype.getElementsByTagName=bJ.prototype.getElementsByTagName,NJ.prototype.getElementsByTagNameNS=bJ.prototype.getElementsByTagNameNS,w(bJ,i);function vJ(j){H(j),this.namespaceURI=null,this.prefix=null,this.ownerElement=null}vJ.prototype.nodeType=a,w(vJ,i);function U8(j){H(j)}U8.prototype={data:"",substringData:function(j,q){return this.data.substring(j,j+q)},appendData:function(j){j=this.data+j,this.nodeValue=this.data=j,this.length=j.length},insertData:function(j,q){this.replaceData(j,0,q)},deleteData:function(j,q){this.replaceData(j,q,"")},replaceData:function(j,q,O){var R=this.data.substring(0,j),g=this.data.substring(j+q);O=R+O+g,this.nodeValue=this.data=O,this.length=O.length}},w(U8,i);function S8(j){H(j)}S8.prototype={nodeName:"#text",nodeType:f,splitText:function(j){var q=this.data,O=q.substring(j);q=q.substring(0,j),this.data=this.nodeValue=q,this.length=q.length;var R=this.ownerDocument.createTextNode(O);if(this.parentNode)this.parentNode.insertBefore(R,this.nextSibling);return R}},w(S8,U8);function k8(j){H(j)}k8.prototype={nodeName:"#comment",nodeType:v},w(k8,U8);function s8(j){H(j)}s8.prototype={nodeName:"#cdata-section",nodeType:s},w(s8,S8);function a8(j){H(j)}a8.prototype.nodeType=M,w(a8,i);function C$(j){H(j)}C$.prototype.nodeType=N,w(C$,i);function A$(j){H(j)}A$.prototype.nodeType=o,w(A$,i);function l8(j){H(j)}l8.prototype.nodeType=m,w(l8,i);function H8(j){H(j)}H8.prototype.nodeName="#document-fragment",H8.prototype.nodeType=E,w(H8,i);function t8(j){H(j)}t8.prototype.nodeType=A,w(t8,U8);function B6(){}B6.prototype.serializeToString=function(j,q){return W6.call(j,q)},i.prototype.toString=W6;function W6(j){var q;if(typeof j==="function")q={requireWellFormed:!1,splitCDATASections:!0,nodeFilter:j};else if(j!=null)q={requireWellFormed:!!j.requireWellFormed,splitCDATASections:j.splitCDATASections!==!1,nodeFilter:j.nodeFilter||null};else q={requireWellFormed:!1,splitCDATASections:!0,nodeFilter:null};var O=[],R=this.nodeType===c&&this.documentElement||this,g=R.prefix,d=R.namespaceURI;if(d&&g==null){var g=R.lookupPrefix(d);if(g==null)var $J=[{namespace:d,prefix:null}]}return SJ(this,O,$J,q),O.join("")}function F6(j,q,O){var R=j.prefix||"",g=j.namespaceURI;if(!g)return!1;if(R==="xml"&&g===G.XML||g===G.XMLNS)return!1;var d=O.length;while(d--){var $J=O[d];if($J.prefix===R)return $J.namespace!==g}return!0}function RJ(j,q,O){j.push(" ",q,'="',O.replace(/[<>&"\t\n\r]/g,OJ),'"')}function SJ(j,q,O,R){if(!O)O=[];var{nodeFilter:g,requireWellFormed:d,splitCDATASections:$J}=R,MJ=j.nodeType===c?j:j.ownerDocument,kJ=MJ.type==="html";VJ(j,{ns:O},{enter:function(JJ,mJ){var J8=mJ.ns;if(g)if(JJ=g(JJ),JJ){if(typeof JJ=="string")return q.push(JJ),null}else return null;switch(JJ.nodeType){case h:var X8=JJ.attributes,$8=X8.length,_$=JJ.tagName,w$=_$;if(!kJ&&!JJ.prefix&&JJ.namespaceURI){var q6;for(var U6=0;U6<X8.length;U6++)if(X8.item(U6).name==="xmlns"){q6=X8.item(U6).value;break}if(!q6)for(var y8=J8.length-1;y8>=0;y8--){var g8=J8[y8];if(g8.prefix===""&&g8.namespace===JJ.namespaceURI){q6=g8.namespace;break}}if(q6!==JJ.namespaceURI)for(var y8=J8.length-1;y8>=0;y8--){var g8=J8[y8];if(g8.namespace===JJ.namespaceURI){if(g8.prefix)w$=g8.prefix+":"+_$;break}}}q.push("<",w$);var R8=J8.slice();for(var b8=0;b8<$8;b8++){var Q8=X8.item(b8);if(Q8.prefix=="xmlns")R8.push({prefix:Q8.localName,namespace:Q8.value});else if(Q8.nodeName=="xmlns")R8.push({prefix:"",namespace:Q8.value})}for(var b8=0;b8<$8;b8++){var Q8=X8.item(b8);if(F6(Q8,kJ,R8)){var t6=Q8.prefix||"",N$=Q8.namespaceURI;RJ(q,t6?"xmlns:"+t6:"xmlns",N$),R8.push({prefix:t6,namespace:N$})}var E$=g?g(Q8):Q8;if(E$)if(typeof E$==="string")q.push(E$);else RJ(q,E$.name,E$.value)}if(_$===w$&&F6(JJ,kJ,R8)){var e6=JJ.prefix||"",N$=JJ.namespaceURI;RJ(q,e6?"xmlns:"+e6:"xmlns",N$),R8.push({prefix:e6,namespace:N$})}var J0=!JJ.firstChild;if(J0&&(kJ||JJ.namespaceURI===G.HTML))J0=W(_$);if(J0)return q.push("/>"),null;if(q.push(">"),kJ&&Y(_$)){var e8=JJ.firstChild;while(e8){if(e8.data)q.push(e8.data);else SJ(e8,q,R8.slice(),R);e8=e8.nextSibling}return q.push("</",w$,">"),null}return{ns:R8,tag:w$};case c:case E:if(d&&JJ.nodeType===c&&JJ.documentElement==null)throw new F("The Document has no documentElement",L.InvalidStateError);return{ns:J8};case a:return RJ(q,JJ.name,JJ.value),null;case f:if(d&&V.InvalidChar.test(JJ.data))throw new F("The Text node data contains characters outside the XML Char production",L.InvalidStateError);return q.push(JJ.data.replace(/[<&>]/g,OJ)),null;case s:if(d&&JJ.data.indexOf("]]>")!==-1)throw new F('The CDATASection data contains "]]>"',L.InvalidStateError);if($J)q.push(V.CDATA_START,JJ.data.replace(/]]>/g,"]]]]><![CDATA[>"),V.CDATA_END);else q.push(V.CDATA_START,JJ.data,V.CDATA_END);return null;case v:if(d){if(V.InvalidChar.test(JJ.data))throw new F("The comment node data contains characters outside the XML Char production",L.InvalidStateError);if(JJ.data.indexOf("--")!==-1||JJ.data[JJ.data.length-1]==="-")throw new F('The comment node data contains "--" or ends with "-"',L.InvalidStateError)}return q.push(V.COMMENT_START,JJ.data,V.COMMENT_END),null;case M:var{publicId:D6,systemId:D8}=JJ;if(d){if(D6&&!V.PubidLiteral_match.test(D6))throw new F("DocumentType publicId is not a valid PubidLiteral",L.InvalidStateError);if(D8&&D8!=="."&&!V.SystemLiteral_match.test(D8))throw new F("DocumentType systemId is not a valid SystemLiteral",L.InvalidStateError);if(JJ.internalSubset&&JJ.internalSubset.indexOf("]>")!==-1)throw new F('DocumentType internalSubset contains "]>"',L.InvalidStateError)}if(q.push(V.DOCTYPE_DECL_START," ",JJ.name),D6){if(q.push(" ",V.PUBLIC," ",D6),D8&&D8!==".")q.push(" ",D8)}else if(D8&&D8!==".")q.push(" ",V.SYSTEM," ",D8);if(JJ.internalSubset)q.push(" [",JJ.internalSubset,"]");return q.push(">"),null;case A:if(d){if(JJ.target.indexOf(":")!==-1||JJ.target.toLowerCase()==="xml")throw new F("The ProcessingInstruction target is not well-formed",L.InvalidStateError);if(V.InvalidChar.test(JJ.data))throw new F("The ProcessingInstruction data contains characters outside the XML Char production",L.InvalidStateError);if(JJ.data.indexOf("?>")!==-1)throw new F('The ProcessingInstruction data contains "?>"',L.InvalidStateError)}return q.push("<?",JJ.target," ",JJ.data,"?>"),null;case m:return q.push("&",JJ.nodeName,";"),null;default:return q.push("??",JJ.nodeName),null}},exit:function(JJ,mJ){if(mJ&&mJ.tag)q.push("</",mJ.tag,">")}})}function x8(j,q,O){var R;return VJ(q,null,{enter:function(g,d){var $J=g.cloneNode(!1);if($J.ownerDocument=j,$J.parentNode=null,d===null)R=$J;else d.appendChild($J);var MJ=g.nodeType===a||O;return MJ?$J:null}}),R}function T$(j,q,O){var R;return VJ(q,null,{enter:function(g,d){var $J=new g.constructor(U);for(var MJ in g)if(Z(g,MJ)){var kJ=g[MJ];if(typeof kJ!="object"){if(kJ!=$J[MJ])$J[MJ]=kJ}}if(g.childNodes)$J.childNodes=new k;$J.ownerDocument=j;var JJ=O;switch($J.nodeType){case h:var mJ=g.attributes,J8=$J.attributes=new e,X8=mJ.length;J8._ownerElement=$J;for(var $8=0;$8<X8;$8++)$J.setAttributeNode(T$(j,mJ.item($8),!0));break;case a:JJ=!0}if(d!==null)d.appendChild($J);else R=$J;return JJ?$J:null}}),R}function jQ(j,q,O){j[q]=O}function l6(j){var q=[],O=j.firstChild;while(O){if(O.nodeType===h)q.push(O);O=O.nextSibling}return q}try{if(Object.defineProperty)Object.defineProperty(p.prototype,"length",{get:function(){return l(this),this.$$length}}),Object.defineProperty(i.prototype,"textContent",{get:function(){if(this.nodeType===h||this.nodeType===E){var j=[];return VJ(this,null,{enter:function(q){if(q.nodeType===h||q.nodeType===E)return!0;if(q.nodeType===A||q.nodeType===v)return null;j.push(q.nodeValue)}}),j.join("")}return this.nodeValue},set:function(j){switch(this.nodeType){case h:case E:while(this.firstChild)this.removeChild(this.firstChild);if(j||String(j))this.appendChild(this.ownerDocument.createTextNode(j));break;default:this.data=j,this.value=j,this.nodeValue=j}}}),Object.defineProperty(bJ.prototype,"children",{get:function(){return new p(this,l6)}}),Object.defineProperty(NJ.prototype,"children",{get:function(){return new p(this,l6)}}),Object.defineProperty(H8.prototype,"children",{get:function(){return new p(this,l6)}}),jQ=function(j,q,O){j["$$"+q]=O}}catch(j){}J._updateLiveList=l,J.Attr=vJ,J.CDATASection=s8,J.CharacterData=U8,J.Comment=k8,J.Document=NJ,J.DocumentFragment=H8,J.DocumentType=a8,J.DOMImplementation=GJ,J.Element=bJ,J.Entity=A$,J.EntityReference=l8,J.LiveNodeList=p,J.NamedNodeMap=e,J.Node=i,J.NodeList=k,J.Notation=C$,J.Text=S8,J.ProcessingInstruction=t8,J.walkDOM=VJ,J.XMLSerializer=B6}),OK=h8((J)=>{var $=K$().freeze;J.XML_ENTITIES=$({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),J.HTML_ENTITIES=$({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"\uD835\uDD04",afr:"\uD835\uDD1E",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"\uD835\uDD38",aopf:"\uD835\uDD52",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"\uD835\uDC9C",ascr:"\uD835\uDCB6",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"\uD835\uDD05",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"\uD835\uDD39",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"\uD835\uDCB7",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"\uD835\uDD20",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"\uD835\uDD54",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"\uD835\uDC9E",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"\uD835\uDD07",dfr:"\uD835\uDD21",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"\uD835\uDD3B",dopf:"\uD835\uDD55",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"\uD835\uDC9F",dscr:"\uD835\uDCB9",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"\uD835\uDD08",efr:"\uD835\uDD22",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"\uD835\uDD3C",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"\uD835\uDD09",ffr:"\uD835\uDD23",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"\uD835\uDD3D",fopf:"\uD835\uDD57",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"\uD835\uDCBB",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"\uD835\uDD0A",gfr:"\uD835\uDD24",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"\uD835\uDD3E",gopf:"\uD835\uDD58",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"\uD835\uDD25",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"\uD835\uDD59",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"\uD835\uDCBD",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"\uD835\uDD26",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"\uD835\uDD40",iopf:"\uD835\uDD5A",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"\uD835\uDCBE",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"\uD835\uDD0D",jfr:"\uD835\uDD27",jmath:"ȷ",Jopf:"\uD835\uDD41",jopf:"\uD835\uDD5B",Jscr:"\uD835\uDCA5",jscr:"\uD835\uDCBF",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"\uD835\uDD0E",kfr:"\uD835\uDD28",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"\uD835\uDD42",kopf:"\uD835\uDD5C",Kscr:"\uD835\uDCA6",kscr:"\uD835\uDCC0",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"\uD835\uDD0F",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"\uD835\uDD43",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"\uD835\uDCC1",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\uD835\uDD10",mfr:"\uD835\uDD2A",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"\uD835\uDD44",mopf:"\uD835\uDD5E",mp:"∓",Mscr:"ℳ",mscr:"\uD835\uDCC2",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
7
- `,nexist:"∄",nexists:"∄",Nfr:"\uD835\uDD11",nfr:"\uD835\uDD2B",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"\uD835\uDD5F",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"\uD835\uDCA9",nscr:"\uD835\uDCC3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"\uD835\uDD12",ofr:"\uD835\uDD2C",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"\uD835\uDD46",oopf:"\uD835\uDD60",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"\uD835\uDCAA",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"\uD835\uDD13",pfr:"\uD835\uDD2D",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"\uD835\uDD61",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"\uD835\uDCAB",pscr:"\uD835\uDCC5",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"\uD835\uDD14",qfr:"\uD835\uDD2E",qint:"⨌",Qopf:"ℚ",qopf:"\uD835\uDD62",qprime:"⁗",Qscr:"\uD835\uDCAC",qscr:"\uD835\uDCC6",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"\uD835\uDD2F",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"\uD835\uDCC7",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"\uD835\uDD16",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"\uD835\uDD4A",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"\uD835\uDCAE",sscr:"\uD835\uDCC8",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"\uD835\uDD17",tfr:"\uD835\uDD31",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"\uD835\uDD4B",topf:"\uD835\uDD65",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"\uD835\uDCAF",tscr:"\uD835\uDCC9",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"\uD835\uDD18",ufr:"\uD835\uDD32",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"\uD835\uDD4C",uopf:"\uD835\uDD66",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"\uD835\uDCB0",uscr:"\uD835\uDCCA",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"\uD835\uDD19",vfr:"\uD835\uDD33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"\uD835\uDD4D",vopf:"\uD835\uDD67",vprop:"∝",vrtri:"⊳",Vscr:"\uD835\uDCB1",vscr:"\uD835\uDCCB",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"\uD835\uDD1A",wfr:"\uD835\uDD34",Wopf:"\uD835\uDD4E",wopf:"\uD835\uDD68",wp:"℘",wr:"≀",wreath:"≀",Wscr:"\uD835\uDCB2",wscr:"\uD835\uDCCC",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"\uD835\uDD1B",xfr:"\uD835\uDD35",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"\uD835\uDD4F",xopf:"\uD835\uDD69",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"\uD835\uDCB3",xscr:"\uD835\uDCCD",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"\uD835\uDD1C",yfr:"\uD835\uDD36",YIcy:"Ї",yicy:"ї",Yopf:"\uD835\uDD50",yopf:"\uD835\uDD6A",Yscr:"\uD835\uDCB4",yscr:"\uD835\uDCCE",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"\uD835\uDD37",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"\uD835\uDD6B",Zscr:"\uD835\uDCB5",zscr:"\uD835\uDCCF",zwj:"‍",zwnj:"‌"}),J.entityMap=J.HTML_ENTITIES}),MK=h8((J)=>{var $=K$(),Q=MQ(),K=R6(),Z=$.isHTMLEscapableRawTextElement,X=$.isHTMLMimeType,Y=$.isHTMLRawTextElement,W=$.hasOwn,B=$.NAMESPACE,G=K.ParseError,U=K.DOMException,D=0,F=1,L=2,V=3,H=4,I=5,z=6,T=7;function _(){}_.prototype={parse:function(A,v,c){var M=this.domBuilder;M.startDocument(),h(v,v=Object.create(null)),n(A,v,c,M,this.errorHandler),M.endDocument()}};var b=/&#?\w+;?/g;function n(A,v,c,M,E){var N=X(M.mimeType);if(A.indexOf(Q.UNICODE_REPLACEMENT_CHARACTER)>=0)E.warning("Unicode replacement character detected, source encoding issues?");function y(XJ){if(XJ>65535){XJ-=65536;var AJ=55296+(XJ>>10),bJ=56320+(XJ&1023);return String.fromCharCode(AJ,bJ)}else return String.fromCharCode(XJ)}function u(XJ){var AJ=XJ[XJ.length-1]===";"?XJ:XJ+";";if(!N&&AJ!==XJ)return E.error("EntityRef: expecting ;"),XJ;var bJ=Q.Reference.exec(AJ);if(!bJ||bJ[0].length!==AJ.length)return E.error("entity not matching Reference production: "+XJ),XJ;var vJ=AJ.slice(1,-1);if(W(c,vJ))return c[vJ];else if(vJ.charAt(0)==="#")return y(parseInt(vJ.substring(1).replace("x","0x")));else return E.error("entity not found:"+XJ),XJ}function x(XJ){if(XJ>GJ){var AJ=A.substring(GJ,XJ).replace(b,u);e&&WJ(GJ),M.characters(AJ,0,XJ-GJ),GJ=XJ}}var k=0,p=0,l=/\r\n?|\n|$/g,e=M.locator;function WJ(XJ,AJ){while(XJ>=p&&(AJ=l.exec(A)))k=p,p=AJ.index+AJ[0].length,e.lineNumber++;e.columnNumber=XJ-k+1}var FJ=[{currentNSMap:v}],jJ=[],GJ=0;while(!0){try{var i=A.indexOf("<",GJ);if(i<0){if(!N&&jJ.length>0)return E.fatalError("unclosed xml tag(s): "+jJ.join(", "));if(!A.substring(GJ).match(/^\s*$/)){var OJ=M.doc,PJ=OJ.createTextNode(A.substring(GJ));if(OJ.documentElement)return E.error("Extra content at the end of the document");OJ.appendChild(PJ),M.currentElement=PJ}return}if(i>GJ){var VJ=A.substring(GJ,i);if(!N&&jJ.length===0)VJ=VJ.replace(new RegExp(Q.S_OPT.source,"g"),""),VJ&&E.error("Unexpected content outside root element: '"+VJ+"'");x(i)}switch(A.charAt(i+1)){case"/":var EJ=A.indexOf(">",i+2),NJ=A.substring(i+2,EJ>0?EJ:void 0);if(!NJ)return E.fatalError("end tag name missing");var w8=EJ>0&&Q.reg("^",Q.QName_group,Q.S_OPT,"$").exec(NJ);if(!w8)return E.fatalError('end tag name contains invalid characters: "'+NJ+'"');if(!M.currentElement&&!M.doc.documentElement)return;var tJ=jJ[jJ.length-1]||M.currentElement.tagName||M.doc.documentElement.tagName||"";if(tJ!==w8[1]){var q8=w8[1].toLowerCase();if(!N||tJ.toLowerCase()!==q8)return E.fatalError('Opening and ending tag mismatch: "'+tJ+'" != "'+NJ+'"')}var eJ=FJ.pop();jJ.pop();var N8=eJ.localNSMap;if(M.endElement(eJ.uri,eJ.localName,tJ),N8){for(var d8 in N8)if(W(N8,d8))M.endPrefixMapping(d8)}EJ++;break;case"?":e&&WJ(i),EJ=m(A,i,M,E);break;case"!":e&&WJ(i),EJ=s(A,i,M,E,N);break;default:e&&WJ(i);var HJ=new o,hJ=FJ[FJ.length-1].currentNSMap,EJ=C(A,i,HJ,hJ,u,E,N),P8=HJ.length;if(!HJ.closed)if(N&&$.isHTMLVoidElement(HJ.tagName))HJ.closed=!0;else jJ.push(HJ.tagName);if(e&&P8){var o8=r(e,{});for(var E8=0;E8<P8;E8++){var i8=HJ[E8];WJ(i8.offset),i8.locator=r(e,{})}if(M.locator=o8,w(HJ,M,hJ))FJ.push(HJ);M.locator=e}else if(w(HJ,M,hJ))FJ.push(HJ);if(N&&!HJ.closed)EJ=S(A,EJ,HJ.tagName,u,M);else EJ++}}catch(XJ){if(XJ instanceof G)throw XJ;else if(XJ instanceof U)throw new G(XJ.name+": "+XJ.message,M.locator,XJ);E.error("element parse error: "+XJ),EJ=-1}if(EJ>GJ)GJ=EJ;else x(Math.max(i,GJ)+1)}}function r(A,v){return v.lineNumber=A.lineNumber,v.columnNumber=A.columnNumber,v}function C(A,v,c,M,E,N,y){function u(WJ,FJ,jJ){if(W(c.attributeNames,WJ))return N.fatalError("Attribute "+WJ+" redefined");if(!y&&FJ.indexOf("<")>=0)return N.fatalError("Unescaped '<' not allowed in attributes values");c.addValue(WJ,FJ.replace(/[\t\n\r]/g," ").replace(b,E),jJ)}var x,k,p=++v,l=D;while(!0){var e=A.charAt(p);switch(e){case"=":if(l===F)x=A.slice(v,p),l=V;else if(l===L)l=V;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(l===V||l===F){if(l===F)N.warning('attribute value must after "="'),x=A.slice(v,p);if(v=p+1,p=A.indexOf(e,v),p>0)k=A.slice(v,p),u(x,k,v-1),l=I;else throw Error("attribute value no end '"+e+"' match")}else if(l==H)k=A.slice(v,p),u(x,k,v),N.warning('attribute "'+x+'" missed start quot('+e+")!!"),v=p+1,l=I;else throw Error('attribute value must after "="');break;case"/":switch(l){case D:c.setTagName(A.slice(v,p));case I:case z:case T:l=T,c.closed=!0;case H:case F:break;case L:c.closed=!0;break;default:throw Error("attribute invalid close char('/')")}break;case"":if(N.error("unexpected end of input"),l==D)c.setTagName(A.slice(v,p));return p;case">":switch(l){case D:c.setTagName(A.slice(v,p));case I:case z:case T:break;case H:case F:if(k=A.slice(v,p),k.slice(-1)==="/")c.closed=!0,k=k.slice(0,-1);case L:if(l===L)k=x;if(l==H)N.warning('attribute "'+k+'" missed quot(")!'),u(x,k,v);else{if(!y)N.warning('attribute "'+k+'" missed value!! "'+k+'" instead!!');u(k,k,v)}break;case V:if(!y)return N.fatalError(`AttValue: ' or " expected`)}return p;case"€":e=" ";default:if(e<=" ")switch(l){case D:c.setTagName(A.slice(v,p)),l=z;break;case F:x=A.slice(v,p),l=L;break;case H:var k=A.slice(v,p);N.warning('attribute "'+k+'" missed quot(")!!'),u(x,k,v);case I:l=z;break}else switch(l){case L:if(!y)N.warning('attribute "'+x+'" missed value!! "'+x+'" instead2!!');u(x,x,v),v=p,l=F;break;case I:N.warning('attribute space is required"'+x+'"!!');case z:l=F,v=p;break;case V:l=H,v=p;break;case T:throw Error("elements closed character '/' and '>' must be connected to")}}p++}}function w(A,v,c){var M=A.tagName,E=null,l=A.length;while(l--){var N=A[l],y=N.qName,u=N.value,e=y.indexOf(":");if(e>0)var x=N.prefix=y.slice(0,e),k=y.slice(e+1),p=x==="xmlns"&&k;else k=y,x=null,p=y==="xmlns"&&"";if(N.localName=k,p!==!1){if(E==null)E=Object.create(null),h(c,c=Object.create(null));c[p]=E[p]=u,N.uri=B.XMLNS,v.startPrefixMapping(p,u)}}var l=A.length;while(l--)if(N=A[l],N.prefix){if(N.prefix==="xml")N.uri=B.XML;if(N.prefix!=="xmlns")N.uri=c[N.prefix]}var e=M.indexOf(":");if(e>0)x=A.prefix=M.slice(0,e),k=A.localName=M.slice(e+1);else x=null,k=A.localName=M;var WJ=A.uri=c[x||""];if(v.startElement(WJ,k,M,A),A.closed){if(v.endElement(WJ,k,M),E){for(x in E)if(W(E,x))v.endPrefixMapping(x)}}else return A.currentNSMap=c,A.localNSMap=E,!0}function S(A,v,c,M,E){var N=Z(c);if(N||Y(c)){var y=A.indexOf("</"+c+">",v),u=A.substring(v+1,y);if(N)u=u.replace(b,M);return E.characters(u,0,u.length),y}return v+1}function h(A,v){for(var c in A)if(W(A,c))v[c]=A[c]}function a(A,v){var c=v;function M(p){return p=p||0,A.charAt(c+p)}function E(p){p=p||1,c+=p}function N(){var p=0;while(c<A.length){var l=M();if(l!==" "&&l!==`
8
- `&&l!=="\t"&&l!=="\r")return p;p++,E()}return-1}function y(){return A.substring(c)}function u(p){return A.substring(c,c+p.length)===p}function x(p){return A.substring(c,c+p.length).toUpperCase()===p.toUpperCase()}function k(p){var l=Q.reg("^",p),e=l.exec(y());if(e)return E(e[0].length),e[0];return null}return{char:M,getIndex:function(){return c},getMatch:k,getSource:function(){return A},skip:E,skipBlanks:N,substringFromIndex:y,substringStartsWith:u,substringStartsWithCaseInsensitive:x}}function f(A,v){function c(u,x){var k=Q.PI.exec(u.substringFromIndex());if(!k)return x.fatalError("processing instruction is not well-formed at position "+u.getIndex());if(k[1].toLowerCase()==="xml")return x.fatalError("xml declaration is only allowed at the start of the document, but found at position "+u.getIndex());return u.skip(k[0].length),k[0]}var M=A.getSource();if(A.char()==="["){A.skip(1);var E=A.getIndex();while(A.getIndex()<M.length){if(A.skipBlanks(),A.char()==="]"){var N=M.substring(E,A.getIndex());return A.skip(1),N}var y=null;if(A.char()==="<"&&A.char(1)==="!")switch(A.char(2)){case"E":if(A.char(3)==="L")y=A.getMatch(Q.elementdecl);else if(A.char(3)==="N")y=A.getMatch(Q.EntityDecl);break;case"A":y=A.getMatch(Q.AttlistDecl);break;case"N":y=A.getMatch(Q.NotationDecl);break;case"-":y=A.getMatch(Q.Comment);break}else if(A.char()==="<"&&A.char(1)==="?")y=c(A,v);else if(A.char()==="%")y=A.getMatch(Q.PEReference);else return v.fatalError("Error detected in Markup declaration");if(!y)return v.fatalError("Error in internal subset at position "+A.getIndex())}return v.fatalError("doctype internal subset is not well-formed, missing ]")}}function s(A,v,c,M,E){var N=a(A,v);switch(E?N.char(2).toUpperCase():N.char(2)){case"-":var y=N.getMatch(Q.Comment);if(y)return c.comment(y,Q.COMMENT_START.length,y.length-Q.COMMENT_START.length-Q.COMMENT_END.length),N.getIndex();else return M.fatalError("comment is not well-formed at position "+N.getIndex());case"[":var u=N.getMatch(Q.CDSect);if(u){if(!E&&!c.currentElement)return M.fatalError("CDATA outside of element");return c.startCDATA(),c.characters(u,Q.CDATA_START.length,u.length-Q.CDATA_START.length-Q.CDATA_END.length),c.endCDATA(),N.getIndex()}else return M.fatalError("Invalid CDATA starting at position "+v);case"D":{if(c.doc&&c.doc.documentElement)return M.fatalError("Doctype not allowed inside or after documentElement at position "+N.getIndex());if(E?!N.substringStartsWithCaseInsensitive(Q.DOCTYPE_DECL_START):!N.substringStartsWith(Q.DOCTYPE_DECL_START))return M.fatalError("Expected "+Q.DOCTYPE_DECL_START+" at position "+N.getIndex());if(N.skip(Q.DOCTYPE_DECL_START.length),N.skipBlanks()<1)return M.fatalError("Expected whitespace after "+Q.DOCTYPE_DECL_START+" at position "+N.getIndex());var x={name:void 0,publicId:void 0,systemId:void 0,internalSubset:void 0};if(x.name=N.getMatch(Q.Name),!x.name)return M.fatalError("doctype name missing or contains unexpected characters at position "+N.getIndex());if(E&&x.name.toLowerCase()!=="html")M.warning("Unexpected DOCTYPE in HTML document at position "+N.getIndex());if(N.skipBlanks(),N.substringStartsWith(Q.PUBLIC)||N.substringStartsWith(Q.SYSTEM)){var k=Q.ExternalID_match.exec(N.substringFromIndex());if(!k)return M.fatalError("doctype external id is not well-formed at position "+N.getIndex());if(k.groups.SystemLiteralOnly!==void 0)x.systemId=k.groups.SystemLiteralOnly;else x.systemId=k.groups.SystemLiteral,x.publicId=k.groups.PubidLiteral;N.skip(k[0].length)}else if(E&&N.substringStartsWithCaseInsensitive(Q.SYSTEM)){if(N.skip(Q.SYSTEM.length),N.skipBlanks()<1)return M.fatalError("Expected whitespace after "+Q.SYSTEM+" at position "+N.getIndex());if(x.systemId=N.getMatch(Q.ABOUT_LEGACY_COMPAT_SystemLiteral),!x.systemId)return M.fatalError("Expected "+Q.ABOUT_LEGACY_COMPAT+" in single or double quotes after "+Q.SYSTEM+" at position "+N.getIndex())}if(E&&x.systemId&&!Q.ABOUT_LEGACY_COMPAT_SystemLiteral.test(x.systemId))M.warning("Unexpected doctype.systemId in HTML document at position "+N.getIndex());if(!E)N.skipBlanks(),x.internalSubset=f(N,M);if(N.skipBlanks(),N.char()!==">")return M.fatalError("doctype not terminated with > at position "+N.getIndex());return N.skip(1),c.startDTD(x.name,x.publicId,x.systemId,x.internalSubset),c.endDTD(),N.getIndex()}default:return M.fatalError('Not well-formed XML starting with "<!" at position '+v)}}function m(A,v,c,M){var E=A.substring(v).match(Q.PI);if(!E)return M.fatalError("Invalid processing instruction starting at position "+v);if(E[1].toLowerCase()==="xml"){if(v>0)return M.fatalError("processing instruction at position "+v+" is an xml declaration which is only at the start of the document");if(!Q.XMLDecl.test(A.substring(v)))return M.fatalError("xml declaration is not well-formed")}return c.processingInstruction(E[1],E[2]),v+E[0].length}function o(){this.attributeNames=Object.create(null)}o.prototype={setTagName:function(A){if(!Q.QName_exact.test(A))throw Error("invalid tagName:"+A);this.tagName=A},addValue:function(A,v,c){if(!Q.QName_exact.test(A))throw Error("invalid attribute:"+A);this.attributeNames[A]=this.length,this[this.length++]={qName:A,value:v,offset:c}},length:0,getLocalName:function(A){return this[A].localName},getLocator:function(A){return this[A].locator},getQName:function(A){return this[A].qName},getURI:function(A){return this[A].uri},getValue:function(A){return this[A].value}},J.XMLReader=_,J.parseUtils=a,J.parseDoctypeCommentOrCData=s}),PK=h8((J)=>{var $=K$(),Q=PQ(),K=R6(),Z=OK(),X=MK(),Y=Q.DOMImplementation,W=$.hasDefaultHTMLNamespace,B=$.isHTMLMimeType,G=$.isValidMimeType,U=$.MIME_TYPE,D=$.NAMESPACE,F=K.ParseError,L=X.XMLReader;function V(C){return C.replace(/\r[\n\u0085]/g,`
9
- `).replace(/[\r\u0085\u2028\u2029]/g,`
10
- `)}function H(C){if(C=C||{},C.locator===void 0)C.locator=!0;if(this.assign=C.assign||$.assign,this.domHandler=C.domHandler||I,this.onError=C.onError||C.errorHandler,C.errorHandler&&typeof C.errorHandler!=="function")throw TypeError("errorHandler object is no longer supported, switch to onError!");else if(C.errorHandler)C.errorHandler("warning","The `errorHandler` option has been deprecated, use `onError` instead!",this);this.normalizeLineEndings=C.normalizeLineEndings||V,this.locator=!!C.locator,this.xmlns=this.assign(Object.create(null),C.xmlns)}H.prototype.parseFromString=function(C,w){if(!G(w))throw TypeError('DOMParser.parseFromString: the provided mimeType "'+w+'" is not valid.');var S=this.assign(Object.create(null),this.xmlns),h=Z.XML_ENTITIES,a=S[""]||null;if(W(w))h=Z.HTML_ENTITIES,a=D.HTML;else if(w===U.XML_SVG_IMAGE)a=D.SVG;S[""]=a,S.xml=S.xml||D.XML;var f=new this.domHandler({mimeType:w,defaultNamespace:a,onError:this.onError}),s=this.locator?{}:void 0;if(this.locator)f.setDocumentLocator(s);var m=new L;m.errorHandler=f,m.domBuilder=f;var o=!$.isHTMLMimeType(w);if(o&&typeof C!=="string")m.errorHandler.fatalError("source is not a string");if(m.parse(this.normalizeLineEndings(String(C)),S,h),!f.doc.documentElement)m.errorHandler.fatalError("missing root element");return f.doc};function I(C){var w=C||{};this.mimeType=w.mimeType||U.XML_APPLICATION,this.defaultNamespace=w.defaultNamespace||null,this.cdata=!1,this.currentElement=void 0,this.doc=void 0,this.locator=void 0,this.onError=w.onError}function z(C,w){w.lineNumber=C.lineNumber,w.columnNumber=C.columnNumber}I.prototype={startDocument:function(){var C=new Y;this.doc=B(this.mimeType)?C.createHTMLDocument(!1):C.createDocument(this.defaultNamespace,"")},startElement:function(C,w,S,h){var a=this.doc,f=a.createElementNS(C,S||w),s=h.length;b(this,f),this.currentElement=f,this.locator&&z(this.locator,f);for(var m=0;m<s;m++){var C=h.getURI(m),o=h.getValue(m),S=h.getQName(m),A=a.createAttributeNS(C,S);this.locator&&z(h.getLocator(m),A),A.value=A.nodeValue=o,f.setAttributeNode(A)}},endElement:function(C,w,S){this.currentElement=this.currentElement.parentNode},startPrefixMapping:function(C,w){},endPrefixMapping:function(C){},processingInstruction:function(C,w){var S=this.doc.createProcessingInstruction(C,w);this.locator&&z(this.locator,S),b(this,S)},ignorableWhitespace:function(C,w,S){},characters:function(C,w,S){if(C=_.apply(this,arguments),C){if(this.cdata)var h=this.doc.createCDATASection(C);else var h=this.doc.createTextNode(C);if(this.currentElement)this.currentElement.appendChild(h);else if(/^\s*$/.test(C))this.doc.appendChild(h);this.locator&&z(this.locator,h)}},skippedEntity:function(C){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(C){if(C)C.lineNumber=0;this.locator=C},comment:function(C,w,S){C=_.apply(this,arguments);var h=this.doc.createComment(C);this.locator&&z(this.locator,h),b(this,h)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(C,w,S,h){var a=this.doc.implementation;if(a&&a.createDocumentType){var f=a.createDocumentType(C,w,S,h);this.locator&&z(this.locator,f),b(this,f),this.doc.doctype=f}},reportError:function(C,w){if(typeof this.onError==="function")try{this.onError(C,w,this)}catch(S){throw new F("Reporting "+C+' "'+w+'" caused '+S,this.locator)}else console.error("[xmldom "+C+"]\t"+w,T(this.locator))},warning:function(C){this.reportError("warning",C)},error:function(C){this.reportError("error",C)},fatalError:function(C){throw this.reportError("fatalError",C),new F(C,this.locator)}};function T(C){if(C)return`
11
- @#[line:`+C.lineNumber+",col:"+C.columnNumber+"]"}function _(C,w,S){if(typeof C=="string")return C.substr(w,S);else{if(C.length>=w+S||w)return new java.lang.String(C,w,S)+"";return C}}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(C){I.prototype[C]=function(){return null}});function b(C,w){if(!C.currentElement)C.doc.appendChild(w);else C.currentElement.appendChild(w)}function n(C){if(C==="error")throw"onErrorStopParsing"}function r(){throw"onWarningStopParsing"}J.__DOMHandler=I,J.DOMParser=H,J.normalizeLineEndings=V,J.onErrorStopParsing=n,J.onWarningStopParsing=r});if(typeof window<"u"){if(window.NodeList&&!NodeList.prototype.forEach)NodeList.prototype.forEach=Array.prototype.forEach;if(typeof window.CustomEvent!=="function")window.CustomEvent=function($,Q){Q=Q||{bubbles:!1,cancelable:!1,detail:null};var K=document.createEvent("CustomEvent");return K.initCustomEvent($,Q.bubbles,Q.cancelable,Q.detail),K}}var HK=typeof document<"u"&&!!document.documentMode,$0;function RK(){if($0)return $0;return $0=document.createElement("div").style}var GQ=["webkit","moz","ms"],L6={};function F0(J){if(L6[J])return L6[J];let $=RK();if(J in $)return L6[J]=J;let Q=J[0].toUpperCase()+J.slice(1),K=GQ.length;while(K--){let Z=`${GQ[K]}${Q}`;if(Z in $)return L6[J]=Z}}function V6(J,$){return parseFloat($[F0(J)])||0}function O6(J,$,Q=window.getComputedStyle(J)){let K=$==="border"?"Width":"";return{left:V6(`${$}Left${K}`,Q),right:V6(`${$}Right${K}`,Q),top:V6(`${$}Top${K}`,Q),bottom:V6(`${$}Bottom${K}`,Q)}}function J$(J,$,Q){J.style[F0($)]=Q}function IK(J,$){let Q=F0("transform");J$(J,"transition",`${Q} ${$.duration}ms ${$.easing}`)}function zK(J,{x:$,y:Q,scale:K,isSVG:Z},X){if(J$(J,"transform",`scale(${K}) translate(${$}px, ${Q}px)`),Z&&HK){let Y=window.getComputedStyle(J).getPropertyValue("transform");J.setAttribute("transform",Y)}}function Q0(J){let $=J.parentNode;if(!$||$.nodeType!==1)$=document.documentElement;let Q=window.getComputedStyle(J),K=window.getComputedStyle($),Z=J.getBoundingClientRect(),X=$.getBoundingClientRect();return{elem:{style:Q,width:Z.width,height:Z.height,top:Z.top,bottom:Z.bottom,left:Z.left,right:Z.right,margin:O6(J,"margin",Q),border:O6(J,"border",Q)},parent:{style:K,width:X.width,height:X.height,top:X.top,bottom:X.bottom,left:X.left,right:X.right,padding:O6($,"padding",K),border:O6($,"border",K)}}}var g$={down:"mousedown",move:"mousemove",up:"mouseup mouseleave"};if(typeof window<"u"){if(typeof window.PointerEvent==="function")g$={down:"pointerdown",move:"pointermove",up:"pointerup pointerleave pointercancel"};else if(typeof window.TouchEvent==="function")g$={down:"touchstart",move:"touchmove",up:"touchend touchcancel"}}function K0(J,$,Q,K){g$[J].split(" ").forEach((Z)=>{$.addEventListener(Z,Q,K)})}function Z0(J,$,Q){g$[J].split(" ").forEach((K)=>{$.removeEventListener(K,Q)})}function HQ(J,$){let Q=J.length;while(Q--)if(J[Q].pointerId===$.pointerId)return Q;return-1}function j0(J,$){let Q;if($.touches){Q=0;for(let K of $.touches)K.pointerId=Q++,j0(J,K);return}if(Q=HQ(J,$),Q>-1)J.splice(Q,1);J.push($)}function CK(J,$){if($.touches){while(J.length)J.pop();return}let Q=HQ(J,$);if(Q>-1)J.splice(Q,1)}function BQ(J){J=J.slice(0);let $=J.pop(),Q;while(Q=J.pop())$={clientX:(Q.clientX-$.clientX)/2+$.clientX,clientY:(Q.clientY-$.clientY)/2+$.clientY};return $}function X0(J){if(J.length<2)return 0;let $=J[0],Q=J[1];return Math.sqrt(Math.pow(Math.abs(Q.clientX-$.clientX),2)+Math.pow(Math.abs(Q.clientY-$.clientY),2))}function AK(J){let $=J;while($&&$.parentNode){if($.parentNode===document)return!0;$=$.parentNode instanceof ShadowRoot?$.parentNode.host:$.parentNode}return!1}function TK(J){return(J.getAttribute("class")||"").trim()}function _K(J,$){return J.nodeType===1&&` ${TK(J)} `.indexOf(` ${$} `)>-1}function wK(J,$){for(let Q=J;Q!=null;Q=Q.parentNode)if(_K(Q,$.excludeClass)||$.exclude.indexOf(Q)>-1)return!0;return!1}var NK=/^http:[\w\.\/]+svg$/;function EK(J){return NK.test(J.namespaceURI)&&J.nodeName.toLowerCase()!=="svg"}function SK(J){let $={};for(let Q in J)if(J.hasOwnProperty(Q))$[Q]=J[Q];return $}var RQ={animate:!1,canvas:!1,cursor:"move",disablePan:!1,disableZoom:!1,disableXAxis:!1,disableYAxis:!1,duration:200,easing:"ease-in-out",exclude:[],excludeClass:"panzoom-exclude",handleStartEvent:(J)=>{J.preventDefault(),J.stopPropagation()},maxScale:4,minScale:0.125,overflow:"hidden",panOnlyWhenZoomed:!1,pinchAndPan:!1,relative:!1,setTransform:zK,startX:0,startY:0,startScale:1,step:0.3,touchAction:"none"};function IQ(J,$){if(!J)throw Error("Panzoom requires an element as an argument");if(J.nodeType!==1)throw Error("Panzoom requires an element with a nodeType of 1");if(!AK(J))throw Error("Panzoom should be called on elements that have been attached to the DOM");$={...RQ,...$};let Q=EK(J),K=J.parentNode;K.style.overflow=$.overflow,K.style.userSelect="none",K.style.touchAction=$.touchAction,($.canvas?K:J).style.cursor=$.cursor,J.style.userSelect="none",J.style.touchAction=$.touchAction,J$(J,"transformOrigin",typeof $.origin==="string"?$.origin:Q?"0 0":"50% 50%");function Z(){K.style.overflow="",K.style.userSelect="",K.style.touchAction="",K.style.cursor="",J.style.cursor="",J.style.userSelect="",J.style.touchAction="",J$(J,"transformOrigin","")}function X(M={}){for(let E in M)if(M.hasOwnProperty(E))$[E]=M[E];if(M.hasOwnProperty("cursor")||M.hasOwnProperty("canvas"))K.style.cursor=J.style.cursor="",($.canvas?K:J).style.cursor=$.cursor;if(M.hasOwnProperty("overflow"))K.style.overflow=M.overflow;if(M.hasOwnProperty("touchAction"))K.style.touchAction=M.touchAction,J.style.touchAction=M.touchAction}let Y=0,W=0,B=1,G=!1;H($.startScale,{animate:!1,force:!0}),setTimeout(()=>{V($.startX,$.startY,{animate:!1,force:!0})});function U(M,E,N){if(N.silent)return;let y=new CustomEvent(M,{detail:E});J.dispatchEvent(y)}function D(M,E,N){let y={x:Y,y:W,scale:B,isSVG:Q,originalEvent:N};return requestAnimationFrame(()=>{if(typeof E.animate==="boolean")if(E.animate)IK(J,E);else J$(J,"transition","none");E.setTransform(J,y,E),U(M,y,E),U("panzoomchange",y,E)}),y}function F(M,E,N,y){let u={...$,...y},x={x:Y,y:W,opts:u};if(!y?.force&&(u.disablePan||u.panOnlyWhenZoomed&&B===u.startScale))return x;if(M=parseFloat(M),E=parseFloat(E),!u.disableXAxis)x.x=(u.relative?Y:0)+M;if(!u.disableYAxis)x.y=(u.relative?W:0)+E;if(u.contain){let k=Q0(J),p=k.elem.width/B,l=k.elem.height/B,e=p*N,WJ=l*N,FJ=(e-p)/2,jJ=(WJ-l)/2;if(u.contain==="inside"){let GJ=(-k.elem.margin.left-k.parent.padding.left+FJ)/N,i=(k.parent.width-e-k.parent.padding.left-k.elem.margin.left-k.parent.border.left-k.parent.border.right+FJ)/N;x.x=Math.max(Math.min(x.x,i),GJ);let OJ=(-k.elem.margin.top-k.parent.padding.top+jJ)/N,PJ=(k.parent.height-WJ-k.parent.padding.top-k.elem.margin.top-k.parent.border.top-k.parent.border.bottom+jJ)/N;x.y=Math.max(Math.min(x.y,PJ),OJ)}else if(u.contain==="outside"){let GJ=(-(e-k.parent.width)-k.parent.padding.left-k.parent.border.left-k.parent.border.right+FJ)/N,i=(FJ-k.parent.padding.left)/N;x.x=Math.max(Math.min(x.x,i),GJ);let OJ=(-(WJ-k.parent.height)-k.parent.padding.top-k.parent.border.top-k.parent.border.bottom+jJ)/N,PJ=(jJ-k.parent.padding.top)/N;x.y=Math.max(Math.min(x.y,PJ),OJ)}}if(u.roundPixels)x.x=Math.round(x.x),x.y=Math.round(x.y);return x}function L(M,E){let N={...$,...E},y={scale:B,opts:N};if(!E?.force&&N.disableZoom)return y;let{minScale:u,maxScale:x}=$;if(N.contain){let k=Q0(J),p=k.elem.width/B,l=k.elem.height/B;if(p>1&&l>1){let e=k.parent.width-k.parent.border.left-k.parent.border.right,WJ=k.parent.height-k.parent.border.top-k.parent.border.bottom,FJ=e/p,jJ=WJ/l;if($.contain==="inside")x=Math.min(x,FJ,jJ);else if($.contain==="outside")u=Math.max(u,FJ,jJ)}}return y.scale=Math.min(Math.max(M,u),x),y}function V(M,E,N,y){let u=F(M,E,B,N);if(Y!==u.x||W!==u.y)return Y=u.x,W=u.y,D("panzoompan",u.opts,y);return{x:Y,y:W,scale:B,isSVG:Q,originalEvent:y}}function H(M,E,N){let y=L(M,E),u=y.opts;if(!E?.force&&u.disableZoom)return;M=y.scale;let x=Y,k=W;if(u.focal){let l=u.focal;x=(l.x/M-l.x/B+Y*M)/M,k=(l.y/M-l.y/B+W*M)/M}let p=F(x,k,M,{relative:!1,force:!0});return Y=p.x,W=p.y,B=M,D("panzoomzoom",u,N)}function I(M,E){let N={...$,animate:!0,...E};return H(B*Math.exp((M?1:-1)*N.step),N)}function z(M){return I(!0,M)}function T(M){return I(!1,M)}function _(M,E,N,y){let u=Q0(J),x={width:u.parent.width-u.parent.padding.left-u.parent.padding.right-u.parent.border.left-u.parent.border.right,height:u.parent.height-u.parent.padding.top-u.parent.padding.bottom-u.parent.border.top-u.parent.border.bottom},k=E.clientX-u.parent.left-u.parent.padding.left-u.parent.border.left-u.elem.margin.left,p=E.clientY-u.parent.top-u.parent.padding.top-u.parent.border.top-u.elem.margin.top;if(!Q)k-=u.elem.width/B/2,p-=u.elem.height/B/2;let l={x:k/x.width*(x.width*M),y:p/x.height*(x.height*M)};return H(M,{...N,animate:!1,focal:l},y)}function b(M,E){M.preventDefault();let N={...$,...E,animate:!1},u=(M.deltaY===0&&M.deltaX?M.deltaX:M.deltaY)<0?1:-1,x=L(B*Math.exp(u*N.step/3),N).scale;return _(x,M,N,M)}function n(M){let E={...$,animate:!0,force:!0,...M};B=L(E.startScale,E).scale;let N=F(E.startX,E.startY,B,E);return Y=N.x,W=N.y,D("panzoomreset",E)}let r,C,w,S,h,a,f=[];function s(M){if(wK(M.target,$))return;j0(f,M),G=!0,$.handleStartEvent(M),r=Y,C=W,U("panzoomstart",{x:Y,y:W,scale:B,isSVG:Q,originalEvent:M},$);let E=BQ(f);w=E.clientX,S=E.clientY,h=B,a=X0(f)}function m(M){if(!G||r===void 0||C===void 0||w===void 0||S===void 0)return;j0(f,M);let E=BQ(f),N=f.length>1,y=B;if(N){if(a===0)a=X0(f);let u=X0(f)-a;y=L(u*$.step/80+h).scale,_(y,E,{animate:!1},M)}if(!N||$.pinchAndPan)V(r+(E.clientX-w)/y,C+(E.clientY-S)/y,{animate:!1},M)}function o(M){if(f.length===1)U("panzoomend",{x:Y,y:W,scale:B,isSVG:Q,originalEvent:M},$);if(CK(f,M),!G)return;G=!1,r=C=w=S=void 0}let A=!1;function v(){if(A)return;A=!0,K0("down",$.canvas?K:J,s),K0("move",document,m,{passive:!0}),K0("up",document,o,{passive:!0})}function c(){A=!1,Z0("down",$.canvas?K:J,s),Z0("move",document,m),Z0("up",document,o)}if(!$.noBind)v();return{bind:v,destroy:c,eventNames:g$,getPan:()=>({x:Y,y:W}),getScale:()=>B,getOptions:()=>SK($),handleDown:s,handleMove:m,handleUp:o,pan:V,reset:n,resetStyle:Z,setOptions:X,setStyle:(M,E)=>J$(J,M,E),zoom:H,zoomIn:z,zoomOut:T,zoomToPoint:_,zoomWithWheel:b}}IQ.defaultOptions=RQ;var Z$=K$(),$Y=Z$.assign,QY=Z$.hasDefaultHTMLNamespace,KY=Z$.isHTMLMimeType,ZY=Z$.isValidMimeType,XY=Z$.MIME_TYPE,YY=Z$.NAMESPACE,I6=R6(),jY=I6.DOMException,GY=I6.DOMExceptionName,BY=I6.ExceptionCode,WY=I6.ParseError,TJ=PQ(),FY=TJ.Attr,qY=TJ.CDATASection,UY=TJ.CharacterData,DY=TJ.Comment,LY=TJ.Document,VY=TJ.DocumentFragment,OY=TJ.DocumentType,MY=TJ.DOMImplementation,PY=TJ.Element,HY=TJ.Entity,RY=TJ.EntityReference,IY=TJ.LiveNodeList,zY=TJ.NamedNodeMap,CY=TJ.Node,AY=TJ.NodeList,TY=TJ.Notation,_Y=TJ.ProcessingInstruction,wY=TJ.Text,NY=TJ.XMLSerializer,z6=PK(),kK=z6.DOMParser,EY=z6.normalizeLineEndings,SY=z6.onErrorStopParsing,kY=z6.onWarningStopParsing,xK=new Set(["x","y","w","h","opacity","rotation","radius","spread","font-size","font-weight","line-height","letter-spacing","arc-start","arc-end","arc-inner","border-width","min-width","max-width","min-height","max-height","columns","corner-smoothing","paragraph-spacing","paragraph-indent","pt","pr","pb","pl","max-lines","mask-x","mask-y","mask-width","mask-height","miter-limit","unit","col-span","row-span"]),yK=new Set(["wrap","clip","mask","abs","truncate","reverse-z"]);function b$(J,$){if($==="true")return!0;if($==="false")return!1;if(yK.has(J)&&$==="")return!0;if(xK.has(J)){if((J==="w"||J==="h")&&($==="fill"||$==="hug"))return $;let Q=Number($);return Number.isFinite(Q)?Q:$}return $}function WQ(J,$,Q,K){let Z={},X={};for(let B=0;B<J.attributes.length;B++){let{name:G,value:U}=J.attributes[B],D=$$(U,$);Z[G]=b$(G,D);let F=P6(U,$);if(F)X[G]=F}let Y=J.getAttribute("fill-style");if(Y&&Q[Y]!==void 0)Z.fill=$$(Q[Y],$),delete Z["fill-style"],delete X["fill-style"],Z.fillStyle=Y;let W=J.getAttribute("text-style");if(W&&K[W]){let B=K[W];for(let G of Object.keys(B))if(J.getAttribute(G)===null)Z[G]=b$(G,$$(B[G],$));delete Z["text-style"],delete X["text-style"],Z.textStyle=W}if(Object.keys(X).length)Z.tokens=X;return Z}function $$(J,$){if(!J||J.indexOf("$")===-1)return J;return J.replace(/\$([A-Za-z0-9_.-]+)/g,(Q,K)=>$[K]??Q)}function P6(J,$){if(!J||J.indexOf("$")===-1)return;let Q=J.match(/\$([A-Za-z0-9_.-]+)/g);if(!Q)return;for(let K of Q){let Z=K.slice(1);if($[Z]!==void 0)return Z}return}function zQ(J,$,Q){if(J.axis&&J.byValue){let K=$[J.axis]?$[J.axis].default:void 0,Z=Q[J.axis]!==void 0?Q[J.axis]:K;if(Z!==void 0&&J.byValue[Z]!==void 0)return J.byValue[Z];if(K!==void 0&&J.byValue[K]!==void 0)return J.byValue[K]}return J.value}function gK(J,$,Q){let K={};for(let Z of Object.keys(J)){let X=zQ(J[Z],$,Q);if(X!==void 0)K[Z]=X}return K}var bK={abs:"true",clip:"true",gap:"auto",mask:"true","reverse-z":"true",truncate:"true",wrap:"true"};function vK(J){let $="",Q=0;while(Q<J.length){let K=J[Q];if(K==='"'||K==="'"){let U=K,D=Q;Q++;while(Q<J.length&&J[Q]!==U)Q++;if(Q<J.length)Q++;$+=J.slice(D,Q);continue}if(!/\s/.test(K)){$+=K,Q++;continue}let X=Q;while(Q<J.length&&/\s/.test(J[Q]))Q++;let Y=Q;if(!/[A-Za-z]/.test(J[Q]||"")){$+=J.slice(X,Q+1),Q++;continue}while(Q<J.length&&/[\w-]/.test(J[Q]))Q++;let W=J.slice(Y,Q),B=J[Q],G=bK[W];if(G&&(/\s/.test(B||"")||B==="/"||B===">"))$+=`${J.slice(X,Y)}${W}="${G}"`;else $+=J.slice(X,Q)}return $}function uK(J){let $="",Q=0;while(Q<J.length){let K=J.indexOf("<",Q);if(K===-1){$+=J.slice(Q);break}if($+=J.slice(Q,K),J.startsWith("<!--",K)){let B=J.indexOf("-->",K+4),G=B===-1?J.length:B+3;$+=J.slice(K,G),Q=G;continue}let Z=K+1,X=null;while(Z<J.length){let B=J[Z];if(X){if(B===X)X=null}else if(B==='"'||B==="'")X=B;else if(B===">")break;Z++}let Y=Z<J.length?Z+1:J.length,W=J.slice(K,Y);if(/^<\/|^<\?|^<!/.test(W))$+=W;else $+=vK(W);Q=Y}return $}function hK(J){let $={},Q=(K)=>{let Z=K.getAttribute("name"),X=K.getAttribute("values");if(!Z||!X)return;let Y=X.trim().split(/\s+/).filter(Boolean);if(!Y.length)return;let W=K.getAttribute("default"),B=W&&Y.indexOf(W)!==-1?W:Y[0];$[Z]={values:Y,default:B}};for(let K of Array.from(J.children))if(K.tagName==="mode")Q(K);else if(K.tagName==="modes"){for(let Z of Array.from(K.children))if(Z.tagName==="mode")Q(Z)}return $}var fK={color:"color",number:"number",string:"string"};function mK(J,$){let Q={};for(let K of Array.from(J.children)){if(K.tagName!=="tokens")continue;for(let Z of Array.from(K.children)){let X=fK[Z.tagName];if(!X)continue;let Y=Z.getAttribute("name");if(!Y)continue;let W={type:X},B=Z.getAttribute("value");if(B!==null)W.value=B;let G,U={};for(let D=0;D<Z.attributes.length;D++){let F=Z.attributes[D],L,V;for(let H of Object.keys($)){let I=H+"-";if(F.name.indexOf(I)!==0)continue;let z=F.name.slice(I.length);if($[H].values.indexOf(z)===-1)continue;if(L===void 0||H.length>L.length)L=H,V=z}if(L===void 0||V===void 0)continue;if(G===void 0)G=L;if(L!==G)continue;U[V]=F.value}if(G!==void 0&&Object.keys(U).length>0)W.axis=G,W.byValue=U;Q[Y]=W}}return Q}function pK(J){let $={};for(let Q of Array.from(J.children)){if(Q.tagName!=="fonts")continue;for(let K of Array.from(Q.children)){if(K.tagName!=="font")continue;let Z=K.getAttribute("family"),X=K.getAttribute("source");if(!Z||!X)continue;$[Z]={source:X,category:K.getAttribute("category")||void 0,weights:K.getAttribute("weights")||void 0,styles:K.getAttribute("styles")||void 0,variants:K.getAttribute("variants")||void 0}}}return $}var cK=["font-family","font-size","font-weight","font-style","font-variation","font-feature","line-height","letter-spacing","decoration","decoration-color","decoration-style","decoration-thickness","text-case"];function nK(J){let $={};for(let Q of Array.from(J.children)){if(Q.tagName!=="styles")continue;for(let K of Array.from(Q.children)){if(K.tagName!=="text-style")continue;let Z=K.getAttribute("name");if(!Z)continue;let X={};for(let Y of cK){let W=K.getAttribute(Y);if(W!==null)X[Y]=W}$[Z]=X}}return $}function rK(J){let $={};for(let Q of Array.from(J.children)){if(Q.tagName!=="styles")continue;for(let K of Array.from(Q.children)){if(K.tagName!=="fill-style")continue;let Z=K.getAttribute("name"),X=K.getAttribute("value");if(Z&&X!==null)$[Z]=X}}return $}function dK(J,$){let Q={};for(let K of Array.from(J.children)){if(K.tagName!=="styles")continue;for(let Z of Array.from(K.children)){if(Z.tagName!=="effect-style")continue;let X=Z.getAttribute("name");if(!X)continue;Q[X]=Array.from(Z.children).filter((Y)=>Y.tagName==="effect").map((Y)=>CQ(Y,$))}}return Q}function oK(J,$){if(Object.keys($).length>0)return $;let Q={};for(let K of Array.from(J.children)){if(K.tagName!=="assets")continue;for(let Z of Array.from(K.children)){if(Z.tagName!=="image")continue;let X=Z.getAttribute("id"),Y=Z.getAttribute("format")||"png",W=Z.getAttribute("src")||"";if(!X)continue;let B=Y==="svg"?"svg+xml":Y;if(W.startsWith("base64:"))Q[`assets/${X}.${Y}`]=`data:image/${B};base64,${W.slice(7)}`;else if(W)Q[`assets/${X}.${Y}`]=W}}return Q}var iK=new Set(["frame","stack","row","col","grid","group"]),sK=new Set(["text","img","rect","ellipse","line","svg","shape","instance"]),aK=new Set([...iK,...sK]);function CQ(J,$){let Q={};for(let K=0;K<J.attributes.length;K++){let{name:Z,value:X}=J.attributes[K];if(Q[Z]=b$(Z,$$(X,$)),Z==="color"){let Y=P6(X,$);if(Y)Q.token=Y}}return Q}function lK(J,$,Q,K,Z){let X=[],Y=[],W=[];for(let B of Array.from(J.children))if(B.tagName==="fill"){let G={};for(let U=0;U<B.attributes.length;U++){let{name:D,value:F}=B.attributes[U],L=$$(F,$);if(D==="value"){let V=P6(F,$);if(V)G.token=V}if(D==="src")L=Z[L]||L;G[D]=b$(D,L)}X.push(G)}else if(B.tagName==="effect")Y.push(CQ(B,$));else if(B.tagName==="border"){let G={};for(let U=0;U<B.attributes.length;U++){let{name:D,value:F}=B.attributes[U];if(G[D]=b$(D,$$(F,$)),D==="color"){let L=P6(F,$);if(L)G.token=L}}W.push(G)}return{fills:X,effects:Y,borders:W}}function x$(J,$,Q,K,Z,X){let Y=WQ(J,$,Q,K),W=J.getAttribute("src");if(W&&X[W])Y.src=X[W];let B=J.getAttribute("effect-style"),G={type:J.tagName,...Y};if(B)delete G["effect-style"],G.effectStyle=B;if(J.tagName==="svg"&&!J.getAttribute("src")){let V=new XMLSerializer,H=Array.from(J.children);if(H.length>0){let I="";for(let z=0;z<H.length;z++)I+=V.serializeToString(H[z]);G.svgContent=I.replace(/\s+xmlns=""/g,"")}return G}let U=[],D=[],F=[],L;for(let V of Array.from(J.children))if(V.tagName==="appearance")L=lK(V,$,Q,Z,X);else if(V.tagName==="segment"){let H=WQ(V,$,Q,K);D.push({type:"segment",...H})}else if(V.tagName==="path"){let H=V.getAttribute("d");if(H)F.push(H)}else if(aK.has(V.tagName))U.push(x$(V,$,Q,K,Z,X));if(B&&Z[B]){let V=Z[B];if(!L)L={fills:[],effects:[],borders:[]};L.effects=[...V,...L.effects]}if(L)G.appearance=L;if(D.length)G.segments=D;if(F.length)G.paths=F;if(U.length)G.children=U;return G}function tK(J,$,Q,K,Z,X){let Y={};for(let W of Array.from(J.children)){if(W.tagName!=="components")continue;for(let B of Array.from(W.children))if(B.tagName==="component"){let G=B.getAttribute("id");if(!G)continue;let U=Array.from(B.children).find((F)=>F.tagName==="props"),D=Array.from(B.children).find((F)=>F.tagName!=="props");Y[G]={id:G,name:B.getAttribute("name")||void 0,props:U?FQ(U):[],body:D?x$(D,$,Q,K,Z,X):null}}else if(B.tagName==="component-set"){let G=B.getAttribute("id");if(!G)continue;let U=[];for(let D of Array.from(B.children)){if(D.tagName!=="variant")continue;let F=D.getAttribute("id");if(!F)continue;let L={};for(let I=0;I<D.attributes.length;I++){let{name:z,value:T}=D.attributes[I];if(z!=="id")L[z]=T}let V=Array.from(D.children).find((I)=>I.tagName!=="props");U.push({id:F,attrs:L,body:V?x$(V,$,Q,K,Z,X):null});let H=Array.from(D.children).find((I)=>I.tagName==="props");Y[F]={id:F,props:H?FQ(H):[],body:V?x$(V,$,Q,K,Z,X):null}}Y[G]={id:G,name:B.getAttribute("name")||void 0,props:[],body:null,variants:U}}}return Y}function FQ(J){let $=[];for(let Q of Array.from(J.children)){if(Q.tagName!=="prop")continue;let K=Q.getAttribute("name"),Z=Q.getAttribute("type"),X=Q.getAttribute("target"),Y=Q.getAttribute("bind");if(!K||!Z||!X)continue;let W={name:K,type:Z,target:X};if(Y)W.bind=Y;$.push(W)}return $}function eK(J,$){let Q;try{let I=uK(J).replace(/&(?!amp;|lt;|gt;|quot;|apos;|#)/g,"&amp;"),z=globalThis.DOMParser;if(z){if(Q=new z().parseFromString(I,"text/xml"),Q.querySelector?.("parsererror"))return null}else Q=new kK({onError:(T,_)=>{if(T==="fatalError")throw Error(_)}}).parseFromString(I,"text/xml")}catch{return null}let K=Q.documentElement;if(!K||K.tagName!=="gui")return null;let Z=hK(K),X=mK(K,Z),Y=gK(X,Z,{}),W=pK(K),B=nK(K),G=rK(K),U=dK(K,Y),D=oK(K,$||{}),F=tK(K,Y,G,B,U,D),L=new Set(["stack","row","col","grid"]),V=null;for(let I of Array.from(K.children))if(I.tagName==="frame"||L.has(I.tagName)){V=I;break}let H=V?x$(V,Y,G,B,U,D):null;return{version:K.getAttribute("version"),name:K.getAttribute("name"),platform:K.getAttribute("platform"),fonts:W,modes:Z,tokenDefs:X,tokens:Y,textStyles:B,styles:B,fillStyles:G,effectStyles:U,assets:D,components:F,root:H}}var G0={},q0={},AQ={},y$={},TQ={},U0={},f8={},_Q={},wQ=new Map,J4={abs:"true",clip:"true",gap:"auto",mask:"true","reverse-z":"true",truncate:"true",wrap:"true"};function $4(J){let $="",Q=0;while(Q<J.length){let K=J[Q];if(K==='"'||K==="'"){let U=K,D=Q;Q++;while(Q<J.length&&J[Q]!==U)Q++;if(Q<J.length)Q++;$+=J.slice(D,Q);continue}if(!/\s/.test(K)){$+=K,Q++;continue}let X=Q;while(Q<J.length&&/\s/.test(J[Q]))Q++;let Y=Q;if(!/[A-Za-z]/.test(J[Q]||"")){$+=J.slice(X,Q+1),Q++;continue}while(Q<J.length&&/[\w-]/.test(J[Q]))Q++;let W=J.slice(Y,Q),B=J[Q],G=J4[W];if(G&&(/\s/.test(B||"")||B==="/"||B===">"))$+=`${J.slice(X,Y)}${W}="${G}"`;else $+=J.slice(X,Q)}return $}function Q4(J){let $="",Q=0;while(Q<J.length){let K=J.indexOf("<",Q);if(K===-1){$+=J.slice(Q);break}if($+=J.slice(Q,K),J.startsWith("<!--",K)){let B=J.indexOf("-->",K+4),G=B===-1?J.length:B+3;$+=J.slice(K,G),Q=G;continue}let Z=K+1,X=null;while(Z<J.length){let B=J[Z];if(X){if(B===X)X=null}else if(B==='"'||B==="'")X=B;else if(B===">")break;Z++}let Y=Z<J.length?Z+1:J.length,W=J.slice(K,Y);if(/^<\/|^<\?|^<!/.test(W))$+=W;else $+=$4(W);Q=Y}return $}function D0(J){if(!J||J.indexOf("$")===-1)return J;return J.replace(/\$([A-Za-z0-9_.-]+)/g,($,Q)=>{let K=AQ[Q];if(K){let Z=zQ(K,q0,y$);if(Z!==void 0)return Z}return G0[Q]!==void 0?G0[Q]:$})}function NQ(J,$){let Q=null;for(let K=0;K<J.attributes.length;K++){let Z=J.attributes[K].name;if(Z.indexOf("mode-")!==0)continue;let X=Z.slice(5);if(!q0[X])continue;if(!Q)Q={...$};Q[X]=J.attributes[K].value}return Q||$}function L0(J,$){if(!J)return null;if($[J])return $[J];if(J.startsWith("https://")||J.startsWith("http://")||J.startsWith("data:"))return J;return null}function P(J,$){return D0(J.getAttribute($))}function DJ(J,$){return J.getAttribute($)}function K8(J){return/^-?\d+(\.\d+)?$/.test(J)?`${J}px`:J}function k$(J){if(!J)return"auto";if(J==="fill")return"100%";if(J==="hug")return"fit-content";return K8(J)}function qQ(J){let $=parseInt(J.slice(0,2),16),Q=parseInt(J.slice(2,4),16),K=parseInt(J.slice(4,6),16),Z=(parseInt(J.slice(6,8),16)/255).toFixed(3);return`rgba(${$},${Q},${K},${Z})`}function qJ(J){if(!J)return"transparent";if(J.startsWith("rgba(")||J.startsWith("oklch("))return J;if(J.startsWith("linear-gradient")||J.startsWith("radial-gradient")||J.startsWith("conic-gradient"))return J.replace(/#([0-9a-fA-F]{8})\b/g,($,Q)=>qQ(Q));if(J.length===9&&J[0]==="#")return qQ(J.slice(1));return J}function Q$(J){if(!J)return"none";if(J.startsWith("linear-gradient")||J.startsWith("radial-gradient")||J.startsWith("conic-gradient")){let $=J.match(/rgba?\([^)]+\)|#[0-9a-fA-F]{6,8}/);return $?qJ($[0]):"none"}return qJ(J)}function C6(J){if(!J)return"0";return J.split(" ").map(K8).join(" ")}function K4(J){if(!J)return"0";return J.split(" ").map(K8).join(" ")}function A6(J){if(!J)return null;let $=J.split(" ");if($.length>=5)return`${$[0]}px ${$[1]}px ${$[2]}px ${$[3]}px ${qJ($[4])}`;return null}function Z4(J){if(!/^-?\d+(\.\d+)?$/.test(J))return J;let $=parseFloat(J);if(Number.isFinite($)&&$>0&&$<=4)return String($);return`${J}px`}function X4(J){return`"${J.replace(/\\/g,"\\\\").replace(/"/g,"\\\"")}"`}function Y4(J,$){if(J?.source==="system")return'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif';if(J?.category==="serif")return"serif";if(J?.category==="monospace"||/mono|code|console/i.test($))return"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";if(J?.category==="handwriting")return"cursive";return"sans-serif"}function j4(J){return`${X4(J)}, ${Y4(TQ[J],J)}`}function G4(J,$,Q){if(Q===null)return null;let K=(Q===""?"auto":Q).trim().split(/\s+/),Z=K[0],X=K[1]||null,Y=null;if(Z==="auto")J.style.justifyContent="space-between";else if(/^-\d+(\.\d+)?$/.test(Z))Y=parseFloat(Z);else{let W=K8(Z);if($==="horizontal")J.style.columnGap=W;else J.style.rowGap=W}if(X!==null)if(X==="auto")J.style.alignContent="space-between";else{let W=K8(X);if($==="horizontal")J.style.rowGap=W;else J.style.columnGap=W}return Y}var B4=`
12
- /* ── Base reset ──────────────────────────────────────────────────────────── */
13
- gui-frame, gui-stack, gui-row, gui-col, gui-grid,
14
- gui-text, gui-img, gui-svg, gui-shape, gui-group {
15
- box-sizing: border-box;
16
- min-width: 0;
17
- min-height: 0;
18
- }
19
-
20
- /* ── Frame ───────────────────────────────────────────────────────────────── */
21
- gui-frame { position: relative; display: block; }
22
-
23
- /* ── Group ───────────────────────────────────────────────────────────────── */
24
- gui-group { position: relative; display: block; }
25
-
26
- /* ── Stack / row / col ───────────────────────────────────────────────────── */
27
- gui-stack, gui-row, gui-col { display: flex; position: relative; }
28
- gui-stack[direction="horizontal"], gui-row { flex-direction: row; }
29
- gui-stack[direction="vertical"], gui-col,
30
- gui-stack:not([direction]) { flex-direction: column; }
31
-
32
- /* ── Grid ────────────────────────────────────────────────────────────────── */
33
- gui-grid { display: grid; position: relative; }
34
-
35
- /* ── Wrap ────────────────────────────────────────────────────────────────── */
36
- [wrap="true"] { flex-wrap: wrap; }
37
-
38
- /* ── Overflow ────────────────────────────────────────────────────────────── */
39
- [clip="true"] { overflow: hidden; }
40
-
41
- /* ── Text ────────────────────────────────────────────────────────────────── */
42
- /* Default to grayscale antialiasing to match Figma's text rendering. Browsers
43
- (esp. macOS) default to subpixel-antialiased, which renders text heavier and
44
- slightly wider — enough to shift line wrapping. An explicit font-smoothing
45
- attribute still overrides this via inline style. */
46
- gui-text { display: block; white-space: pre-wrap; line-height: normal; font-size: initial; font-family: initial; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
47
- gui-text[data-h-mode="hug"] { height: auto; min-height: max-content; }
48
-
49
- /* ── Image ───────────────────────────────────────────────────────────────── */
50
- gui-img { display: block; position: relative; }
51
- gui-img > img { display: block; width: 100%; height: 100%; }
52
- gui-img[fit="cover"] > img { object-fit: cover; }
53
- gui-img[fit="contain"] > img { object-fit: contain; }
54
- gui-img[fit="fill"] > img { object-fit: fill; }
55
- gui-img[fit="none"] > img { object-fit: none; }
56
-
57
- /* ── Sizing ──────────────────────────────────────────────────────────────── */
58
- [data-w-mode="fixed"] { width: var(--gui-w); flex-shrink: 0; }
59
- [data-w-mode="hug"] { width: fit-content; flex-shrink: 0; }
60
- [data-w-mode="fill"] { width: 100%; }
61
- [data-h-mode="fixed"] { height: var(--gui-h); flex-shrink: 0; }
62
- [data-h-mode="hug"] { height: fit-content; }
63
- [data-h-mode="fill"] { height: 100%; }
64
-
65
- /* Fill / hug adjusted for flex parent direction */
66
- [data-parent-dir="horizontal"][data-w-mode="fill"] { flex: 1 1 0; width: auto; min-width: 0; flex-shrink: 1; }
67
- [data-parent-dir="horizontal"][data-w-mode="hug"] { width: auto; }
68
- [data-parent-dir="vertical"][data-h-mode="fill"] { flex: 1 1 0; height: auto; min-height: 0; flex-shrink: 1; }
69
- [data-parent-dir="vertical"][data-h-mode="hug"] { height: auto; }
70
-
71
- /* ── Position ────────────────────────────────────────────────────────────── */
72
- [data-pos="absolute"] { position: absolute; left: var(--gui-x, 0px); top: var(--gui-y, 0px); }
73
-
74
- /* ── 9-point align — horizontal stacks ──────────────────────────────────── */
75
- gui-stack[direction="horizontal"][align="top-left"], gui-row[align="top-left"] { align-items: flex-start; justify-content: flex-start; }
76
- gui-stack[direction="horizontal"][align="top-center"], gui-row[align="top-center"] { align-items: flex-start; justify-content: center; }
77
- gui-stack[direction="horizontal"][align="top-right"], gui-row[align="top-right"] { align-items: flex-start; justify-content: flex-end; }
78
- gui-stack[direction="horizontal"][align="middle-left"], gui-row[align="middle-left"] { align-items: center; justify-content: flex-start; }
79
- gui-stack[direction="horizontal"][align="middle-center"], gui-row[align="middle-center"] { align-items: center; justify-content: center; }
80
- gui-stack[direction="horizontal"][align="middle-right"], gui-row[align="middle-right"] { align-items: center; justify-content: flex-end; }
81
- gui-stack[direction="horizontal"][align="bottom-left"], gui-row[align="bottom-left"] { align-items: flex-end; justify-content: flex-start; }
82
- gui-stack[direction="horizontal"][align="bottom-center"], gui-row[align="bottom-center"] { align-items: flex-end; justify-content: center; }
83
- gui-stack[direction="horizontal"][align="bottom-right"], gui-row[align="bottom-right"] { align-items: flex-end; justify-content: flex-end; }
84
- gui-stack[direction="horizontal"][align="stretch"], gui-row[align="stretch"] { align-items: stretch; }
85
- gui-stack[direction="horizontal"][align="baseline"], gui-row[align="baseline"] { align-items: baseline; }
86
-
87
- /* ── 9-point align — vertical stacks ────────────────────────────────────── */
88
- gui-stack[direction="vertical"][align="top-left"], gui-col[align="top-left"] { justify-content: flex-start; align-items: flex-start; }
89
- gui-stack[direction="vertical"][align="top-center"], gui-col[align="top-center"] { justify-content: flex-start; align-items: center; }
90
- gui-stack[direction="vertical"][align="top-right"], gui-col[align="top-right"] { justify-content: flex-start; align-items: flex-end; }
91
- gui-stack[direction="vertical"][align="middle-left"], gui-col[align="middle-left"] { justify-content: center; align-items: flex-start; }
92
- gui-stack[direction="vertical"][align="middle-center"], gui-col[align="middle-center"] { justify-content: center; align-items: center; }
93
- gui-stack[direction="vertical"][align="middle-right"], gui-col[align="middle-right"] { justify-content: center; align-items: flex-end; }
94
- gui-stack[direction="vertical"][align="bottom-left"], gui-col[align="bottom-left"] { justify-content: flex-end; align-items: flex-start; }
95
- gui-stack[direction="vertical"][align="bottom-center"], gui-col[align="bottom-center"] { justify-content: flex-end; align-items: center; }
96
- gui-stack[direction="vertical"][align="bottom-right"], gui-col[align="bottom-right"] { justify-content: flex-end; align-items: flex-end; }
97
- gui-stack[direction="vertical"][align="stretch"], gui-col[align="stretch"] { align-items: stretch; }
98
-
99
- /* Default alignment (top-left) when no align attr — prevents CSS stretch default */
100
- gui-stack[direction="horizontal"]:not([align]), gui-row:not([align]) { align-items: flex-start; justify-content: flex-start; }
101
- gui-stack[direction="vertical"]:not([align]), gui-col:not([align]) { justify-content: flex-start; align-items: flex-start; }
102
-
103
- /* gap="auto" → space-between (inline style overrides this when combined with numeric align) */
104
- gui-stack[gap="auto"], gui-row[gap="auto"], gui-col[gap="auto"] { justify-content: space-between; }
105
-
106
- /* ── Internal overlay utilities (used by renderer for fill/stroke layers) ── */
107
- .gui-layer { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
108
- .gui-pointer-events-none { pointer-events: none; }
109
- .gui-block { display: block; }
110
- .gui-w-full { width: 100%; }
111
- .gui-h-full { height: 100%; }
112
- .gui-overflow-hidden { overflow: hidden; }
113
- .gui-overflow-visible { overflow: visible; }
114
- .gui-pre-wrap { white-space: pre-wrap; }
115
- .gui-fit-fill { object-fit: fill; }
116
- .gui-fit-cover { object-fit: cover; }
117
- .gui-fit-contain { object-fit: contain; }
118
- .gui-fit-none { object-fit: none; }
119
- .gui-relative { position: relative; }
120
- `;function W4(){if(typeof document>"u")return;if(document.querySelector("style[data-gui-render-utilities]"))return;let J=document.createElement("style");J.setAttribute("data-gui-render-utilities","true"),J.textContent=B4,document.head.appendChild(J)}function UJ(J,$){J.classList.add($)}var V0=0,H6=0;function O0(J,$,Q,K){let Z=(h)=>Math.round(h*1e4)/1e4,X=(h)=>h*Math.PI/180,Y=Math.min(J,$)/2,W=Math.min(Math.max(Q,0),Y);if(W<=0)return`M 0 0 L ${Z(J)} 0 L ${Z(J)} ${Z($)} L 0 ${Z($)} Z`;let B=Math.min(1,Math.max(0,K)),G=(1+B)*W,U=Y/W-1;B=Math.max(0,Math.min(B,U)),G=Math.min(G,Y);let D=90*(1-B),F=Math.sin(X(D/2))*W*Math.SQRT2,L=(90-D)/2,V=W*Math.tan(X(L/2)),H=45*B,I=V*Math.cos(X(H)),z=I*Math.tan(X(H)),T=(G-F-I-z)/3,_=2*T,b=W,n=F,r=`c ${Z(_)} 0 ${Z(_+T)} 0 ${Z(_+T+I)} ${Z(z)} a ${Z(b)} ${Z(b)} 0 0 1 ${Z(n)} ${Z(n)} c ${Z(z)} ${Z(I)} ${Z(z)} ${Z(T+I)} ${Z(z)} ${Z(_+T+I)}`,C=`c 0 ${Z(_)} 0 ${Z(_+T)} ${Z(-z)} ${Z(_+T+I)} a ${Z(b)} ${Z(b)} 0 0 1 ${Z(-n)} ${Z(n)} c ${Z(-I)} ${Z(z)} ${Z(-(T+I))} ${Z(z)} ${Z(-(_+T+I))} ${Z(z)}`,w=`c ${Z(-_)} 0 ${Z(-(_+T))} 0 ${Z(-(_+T+I))} ${Z(-z)} a ${Z(b)} ${Z(b)} 0 0 1 ${Z(-n)} ${Z(-n)} c ${Z(-z)} ${Z(-I)} ${Z(-z)} ${Z(-(T+I))} ${Z(-z)} ${Z(-(_+T+I))}`,S=`c 0 ${Z(-_)} 0 ${Z(-(_+T))} ${Z(z)} ${Z(-(_+T+I))} a ${Z(b)} ${Z(b)} 0 0 1 ${Z(n)} ${Z(-n)} c ${Z(I)} ${Z(-z)} ${Z(T+I)} ${Z(-z)} ${Z(_+T+I)} ${Z(-z)}`;return`M ${Z(J-G)} 0 ${r} L ${Z(J)} ${Z($-G)} ${C} L ${Z(G)} ${Z($)} ${w} L 0 ${Z(G)} ${S} Z`}function F4(J,$,Q,K){let Z=`gui-squircle-${++H6}`,X="http://www.w3.org/2000/svg",Y=O0(J,$,Q,K),W=document.createElementNS("http://www.w3.org/2000/svg","svg");W.setAttribute("width","0"),W.setAttribute("height","0"),W.style.position="absolute",W.style.pointerEvents="none";let B=document.createElementNS("http://www.w3.org/2000/svg","defs"),G=document.createElementNS("http://www.w3.org/2000/svg","clipPath");G.setAttribute("id",Z),G.setAttribute("clipPathUnits","userSpaceOnUse");let U=document.createElementNS("http://www.w3.org/2000/svg","path");return U.setAttribute("d",Y),G.appendChild(U),B.appendChild(G),W.appendChild(B),[W,Z]}function q4(J,$,Q,K,Z,X,Y,W,B,G){let D=O0($,Q,K,Z),F=document.createElementNS("http://www.w3.org/2000/svg","svg");if(F.setAttribute("width",String($)),F.setAttribute("height",String(Q)),F.style.position="absolute",F.style.left="0",F.style.top="0",F.style.overflow="visible",F.style.pointerEvents="none",F.style.zIndex="2",B)F.style.opacity=B;if(G)F.style.mixBlendMode=G;let L=`gui-ssclip-${++H6}`,V=document.createElementNS("http://www.w3.org/2000/svg","defs"),H=document.createElementNS("http://www.w3.org/2000/svg","clipPath");H.setAttribute("id",L),H.setAttribute("clipPathUnits","userSpaceOnUse");let I=document.createElementNS("http://www.w3.org/2000/svg","path");I.setAttribute("d",D),H.appendChild(I),V.appendChild(H),F.appendChild(V);let z=document.createElementNS("http://www.w3.org/2000/svg","path");if(z.setAttribute("d",D),z.setAttribute("fill","none"),z.setAttribute("stroke",qJ(Y)),W==="inside")z.setAttribute("stroke-width",String(X*2)),z.setAttribute("clip-path",`url(#${L})`);else z.setAttribute("stroke-width",String(X)),z.setAttribute("clip-path",`url(#${L})`);F.appendChild(z),J.appendChild(F)}function EQ(J,$){let Q=P($,"corner-smoothing");if(!Q)return;let K=parseFloat(Q);if(!Number.isFinite(K)||K<=0)return;let Z=P($,"radius");if(!Z)return;let X=parseFloat(Z);if(!Number.isFinite(X)||X<=0)return;let Y=P($,"w"),W=P($,"h"),B=Y?parseFloat(Y):NaN,G=W?parseFloat(W):NaN;if(!Number.isFinite(B)||!Number.isFinite(G)||B<=0||G<=0)return;J.style.borderRadius="";let[U,D]=F4(B,G,X,K);J.insertBefore(U,J.firstChild),J.style.clipPath=`url(#${D})`}function dJ(J,$,Q){let K=P($,"w"),Z=P($,"h"),X=K===null||K==="hug"?"hug":K==="fill"?"fill":"fixed",Y=Z===null||Z==="hug"?"hug":Z==="fill"?"fill":"fixed";J.setAttribute("data-w-mode",X),J.setAttribute("data-h-mode",Y);let W=DJ($,"data-uid");if(W!==null)J.setAttribute("data-uid",W);if(X==="fixed")J.style.setProperty("--gui-w",K8(K));if(Y==="fixed")J.style.setProperty("--gui-h",K8(Z));if(Q.parentDirection)J.setAttribute("data-parent-dir",Q.parentDirection);let B=P($,"min-width"),G=P($,"max-width"),U=P($,"min-height"),D=P($,"max-height");if(B)J.style.minWidth=K8(B);if(G)J.style.maxWidth=K8(G);if(U)J.style.minHeight=K8(U);if(D)J.style.maxHeight=K8(D);let F=P($,"opacity");if(F)J.style.opacity=F;let L=P($,"blend");if(L)J.style.mixBlendMode=L;let V=DJ($,"mask");if(V!==null&&V!=="false")J.setAttribute("data-mask","true");L4(J,$);let H=P($,"filter");if(H)J.style.filter=H;let I=P($,"isolation");if(I&&I!=="false")J.style.isolation="isolate";let z=P($,"aspect-ratio");if(z)J.style.aspectRatio=z;let T=P($,"z-index");if(T)J.style.zIndex=T;if(P($,"visible")==="false")J.style.display="none";if(Q.absolute){let b=parseFloat(P($,"x")||"0")-(Q.offsetX||0),n=parseFloat(P($,"y")||"0")-(Q.offsetY||0);J.setAttribute("data-pos","absolute"),J.style.setProperty("--gui-x",`${b}px`),J.style.setProperty("--gui-y",`${n}px`)}}var U4={"top-left":"0% 0%","top-center":"50% 0%","top-right":"100% 0%","middle-left":"0% 50%",center:"50% 50%","middle-center":"50% 50%","middle-right":"100% 50%","bottom-left":"0% 100%","bottom-center":"50% 100%","bottom-right":"100% 100%"};function D4(J,$){let Q=P($,"rotation"),K=P($,"flip"),Z=P($,"scale-x"),X=P($,"scale-y"),Y=P($,"skew-x"),W=P($,"skew-y"),B=[],G=Q?parseFloat(Q):0;if(Number.isFinite(G)&&G!==0)B.push(`rotate(${G}deg)`);if(K==="h")B.push("scaleX(-1)");else if(K==="v")B.push("scaleY(-1)");else if(K==="both")B.push("scaleX(-1) scaleY(-1)");if(Z!==null){let D=parseFloat(Z);if(Number.isFinite(D))B.push(`scaleX(${D})`)}if(X!==null){let D=parseFloat(X);if(Number.isFinite(D))B.push(`scaleY(${D})`)}if(Y!==null){let D=parseFloat(Y);if(Number.isFinite(D))B.push(`skewX(${D}deg)`)}if(W!==null){let D=parseFloat(W);if(Number.isFinite(D))B.push(`skewY(${D}deg)`)}if(B.length>0)J.style.transform=B.join(" "),J.style.transformBox="fill-box";let U=P($,"transform-origin");if(U)J.style.transformOrigin=U4[U]||U;else if(B.length>0)J.style.transformOrigin="center"}function L4(J,$){D4(J,$)}function V4(J){let $=P(J,"rotation"),Q=$?parseFloat($):0;if(!Number.isFinite(Q))return null;let K=(Q%360+360)%360,Z=Math.round(K/90)*90;if(Math.abs(K-Z)>0.001)return null;return Z%360}function M0(J){let $=new Set(["inside","outside","center"]),Q=new Set(["solid","dashed","dotted"]),K="",Z=1,X="solid",Y="center";for(let W of J.trim().split(/\s+/))if(W.startsWith("#")||W.startsWith("$")||/^rgba?/.test(W))K=W;else if($.has(W))Y=W;else if(Q.has(W))X=W;else if(/^\d/.test(W))Z=parseFloat(W);return K?{color:K,width:Z,style:X,align:Y}:null}function O4(J){let $=document.createElement("div");$.style.position="relative";for(let K of["data-w-mode","data-h-mode","data-parent-dir"]){let Z=J.getAttribute(K);if(Z!==null)$.setAttribute(K,Z),J.removeAttribute(K)}let Q=["--gui-w","--gui-h","width","height","flexShrink","flexGrow","alignSelf","justifySelf","marginLeft","marginTop","marginRight","marginBottom","gridColumn","gridRow","zIndex","position","left","top","right","bottom","transform","transformOrigin"];for(let K of Q)if(K.startsWith("--")){let Z=J.style.getPropertyValue(K);if(Z)$.style.setProperty(K,Z),J.style.removeProperty(K)}else{let Z=K,X=J.style[Z];if(X)$.style[K]=X,J.style[K]=""}for(let K of["gui-absolute","gui-relative","gui-fill-w","gui-fill-h"])if(J.classList.contains(K))$.classList.add(K),J.classList.remove(K);return J.style.position="absolute",J.style.inset="0",$.appendChild(J),$}function v$(J,$,Q){if(P4($))return null;let K=P($,"border"),Z,X,Y,W;if(K){let _=M0(K);if(!_)return null;Z=_.color,X=_.width,Y=_.align,W=_.style}else{let _=P($,"stroke"),b=P($,"stroke-width");if(!_||!b)return null;Z=_,X=parseFloat(b),Y=P($,"stroke-position")||"center",W="solid"}if(!Number.isFinite(X)||X<=0)return null;let B=P($,"corner-smoothing"),G=P($,"radius"),U=P($,"w"),D=P($,"h"),F=B?parseFloat(B):NaN,L=G?parseFloat(G):NaN,V=U?parseFloat(U):NaN,H=D?parseFloat(D):NaN;if(Number.isFinite(F)&&F>0&&Number.isFinite(L)&&L>0&&Number.isFinite(V)&&V>0&&Number.isFinite(H)&&H>0&&W==="solid")if(Y==="outside"||Y==="center"){let _=O4(J),b=Y==="outside"?X:X/2,n="http://www.w3.org/2000/svg",r=V+b*2,C=H+b*2,w=document.createElementNS("http://www.w3.org/2000/svg","svg");w.setAttribute("width",String(r)),w.setAttribute("height",String(C)),w.style.position="absolute",w.style.left=`${-b}px`,w.style.top=`${-b}px`,w.style.overflow="visible",w.style.pointerEvents="none",w.style.zIndex="2",UJ(w,"gui-pointer-events-none");let S=O0(V,H,L,F);if(Y==="outside"){let h=`gui-ssclip-${++H6}`,a=document.createElementNS("http://www.w3.org/2000/svg","defs"),f=document.createElementNS("http://www.w3.org/2000/svg","clipPath");f.setAttribute("id",h),f.setAttribute("clipPathUnits","userSpaceOnUse");let s=document.createElementNS("http://www.w3.org/2000/svg","path");s.setAttribute("d",`M -9999 -9999 H 99999 V 99999 H -9999 Z ${S}`),s.setAttribute("fill-rule","evenodd"),f.appendChild(s),a.appendChild(f),w.appendChild(a);let m=document.createElementNS("http://www.w3.org/2000/svg","g");m.setAttribute("transform",`translate(${b},${b})`);let o=document.createElementNS("http://www.w3.org/2000/svg","path");o.setAttribute("d",S),o.setAttribute("fill","none"),o.setAttribute("stroke",qJ(Z)),o.setAttribute("stroke-width",String(X*2)),o.setAttribute("clip-path",`url(#${h})`),m.appendChild(o),w.appendChild(m)}else{let h=`gui-ssclip-${++H6}`,a=document.createElementNS("http://www.w3.org/2000/svg","defs"),f=document.createElementNS("http://www.w3.org/2000/svg","clipPath");f.setAttribute("id",h),f.setAttribute("clipPathUnits","userSpaceOnUse");let s=document.createElementNS("http://www.w3.org/2000/svg","path");s.setAttribute("d",S),f.appendChild(s),a.appendChild(f),w.appendChild(a);let m=document.createElementNS("http://www.w3.org/2000/svg","g");m.setAttribute("transform",`translate(${b},${b})`);let o=document.createElementNS("http://www.w3.org/2000/svg","path");o.setAttribute("d",S),o.setAttribute("fill","none"),o.setAttribute("stroke",qJ(Z)),o.setAttribute("stroke-width",String(X)),m.appendChild(o),w.appendChild(m)}return _.appendChild(w),_}else return q4(J,V,H,L,F,X,Z,"inside"),null;if(W==="solid"){let _;if(Y==="inside")_=`inset 0 0 0 ${X}px ${qJ(Z)}`;else if(Y==="outside")_=`0 0 0 ${X}px ${qJ(Z)}`;else _=`inset 0 0 0 ${X/2}px ${qJ(Z)}, 0 0 0 ${X/2}px ${qJ(Z)}`;return m8(J,_),null}let z=Y==="outside"?X:Y==="center"?X/2:0,T=document.createElement("div");if(T.style.position="absolute",UJ(T,"gui-pointer-events-none"),T.style.left=`${-z}px`,T.style.top=`${-z}px`,T.style.right=`${-z}px`,T.style.bottom=`${-z}px`,T.style.border=`${X}px ${W} ${qJ(Z)}`,T.style.boxSizing="border-box",T.style.zIndex="2",Q)T.style.borderRadius=Q;return J.appendChild(T),null}var M4=[{attr:"border-top",prop:"borderTop"},{attr:"border-right",prop:"borderRight"},{attr:"border-bottom",prop:"borderBottom"},{attr:"border-left",prop:"borderLeft"}];function u$(J,$,Q){let K=M4.filter((X)=>P($,X.attr)!==null);if(!K.length)return;let Z=document.createElement("div");if(Z.style.position="absolute",Z.style.left="0",Z.style.top="0",Z.style.right="0",Z.style.bottom="0",Z.style.boxSizing="border-box",UJ(Z,"gui-pointer-events-none"),Z.style.zIndex="2",Q)Z.style.borderRadius=Q;for(let{attr:X,prop:Y}of K){let W=P($,X);if(!W)continue;let B=M0(W);if(!B)continue;Z.style[Y]=`${B.width}px ${B.style} ${qJ(B.color)}`}J.appendChild(Z)}function m8(J,$){J.style.boxShadow=J.style.boxShadow?`${J.style.boxShadow}, ${$}`:$}function UQ(J,$,Q){if(J.style[$]=J.style[$]?`${J.style[$]} ${Q}`:Q,$==="backdropFilter")J.style.webkitBackdropFilter=J.style[$]}function h$(J){return Array.from(J.children).find(($)=>$.tagName==="appearance")||null}function SQ(J){return!!h$(J)}function T6(J){let $=h$(J);if(!$)return!1;return Array.from($.children).some((Q)=>Q.tagName==="fill")}function P4(J){let $=h$(J);if(!$)return!1;return Array.from($.children).some((Q)=>Q.tagName==="border")}function kQ(J,$){if(!J)return!1;return J==="linear-gradient"||J==="radial-gradient"||J==="angular-gradient"||J.startsWith("gradient")||J==="color"&&!!$&&($.startsWith("linear-gradient")||$.startsWith("radial-gradient")||$.startsWith("conic-gradient"))}function H4(J){let $=h$(J);if(!$)return null;for(let Q of Array.from($.children)){if(Q.tagName!=="fill")continue;if(P(Q,"visible")==="false")continue;let K=P(Q,"type"),Z=P(Q,"value"),X=P(Q,"gradient");if(kQ(K,Z))return X||Z}return null}function R4(J,$,Q){if(P($,"visible")==="false")return;let K=P($,"color"),Z=P($,"paint"),X=P($,"w")||"1",Y=parseFloat(X);if(!Number.isFinite(Y)||Y<=0)return;let W=K?qJ(K):Z?Q$(Z):null;if(!W)return;let B=P($,"align")||"center",G=P($,"style")||"solid",U=B==="outside"?Y:B==="center"?Y/2:0,D=document.createElement("div");if(D.style.position="absolute",UJ(D,"gui-pointer-events-none"),D.style.left=`${-U}px`,D.style.top=`${-U}px`,D.style.right=`${-U}px`,D.style.bottom=`${-U}px`,D.style.border=`${Y}px ${G} ${W}`,D.style.boxSizing="border-box",D.style.zIndex="2",Q)D.style.borderRadius=Q;let F=P($,"opacity");if(F)D.style.opacity=F;let L=P($,"blend");if(L)D.style.mixBlendMode=L;J.appendChild(D)}function I4(J,$){let Q=J.match(/rgba?\((\d+),(\d+),(\d+)(?:,([0-9.]+))?\)/);if(Q){let K=Q[4]!==void 0?parseFloat(Q[4]):1;return"rgba("+Q[1]+","+Q[2]+","+Q[3]+","+(K*$).toFixed(3)+")"}return J}function xQ(J,$){if($.visible===!1)return;let Q=$.type,K=String($.radius??0),Z=typeof $.opacity==="number"?$.opacity:1;if(Q==="drop-shadow"||Q==="inner-shadow"){let X=String($.x??0),Y=String($.y??0),W=String($.spread??0),B=qJ($.color??null);if(Z!==1&&Number.isFinite(Z))B=I4(B,Z);m8(J,(Q==="inner-shadow"?"inset ":"")+X+"px "+Y+"px "+K+"px "+W+"px "+B)}else if(Q==="layer-blur")UQ(J,"filter","blur("+K+"px)");else if(Q==="background-blur"||Q==="glass"){let X=String($.saturation??180);UQ(J,"backdropFilter","blur("+K+"px) saturate("+X+"%)")}}function z4(J,$){if(P($,"visible")==="false")return;xQ(J,{type:P($,"type")||"",visible:!0,radius:parseFloat(P($,"radius")||"0"),x:parseFloat(P($,"x")||"0"),y:parseFloat(P($,"y")||"0"),spread:parseFloat(P($,"spread")||"0"),color:P($,"color")||void 0,opacity:P($,"opacity")!==null?parseFloat(P($,"opacity")):void 0,blend:P($,"blend")||void 0,...P($,"saturation")!==null?{saturation:parseFloat(P($,"saturation"))}:{}})}function _6(J,$){let Q=_Q[$];if(!Q)return;for(let K=0;K<Q.length;K++)xQ(J,Q[K])}function C4(J,$,Q){if(P($,"visible")==="false")return;let K=P($,"color");if(!K)return;let Z=P($,"width")||"1",X=parseFloat(Z);if(!Number.isFinite(X)||X<=0)return;let Y=P($,"dash-array"),W=P($,"dash-offset"),B=P($,"align")||"center",G=P($,"style")||"solid",U=P($,"opacity"),D=P($,"blend");if(Y){let L=document.createElementNS("http://www.w3.org/2000/svg","svg");if(L.setAttribute("width","100%"),L.setAttribute("height","100%"),L.style.position="absolute",L.style.left="0",L.style.top="0",L.style.overflow="visible",L.style.zIndex="2",L.style.pointerEvents="none",U)L.style.opacity=U;if(D)L.style.mixBlendMode=D;let V=document.createElementNS("http://www.w3.org/2000/svg","rect");if(V.setAttribute("x","0"),V.setAttribute("y","0"),V.setAttribute("width","100%"),V.setAttribute("height","100%"),V.setAttribute("fill","none"),V.setAttribute("stroke",qJ(K)),V.setAttribute("stroke-width",String(X)),V.setAttribute("stroke-dasharray",Y),W)V.setAttribute("stroke-dashoffset",W);if(V.setAttribute("vector-effect","non-scaling-stroke"),Q){let H=Q.match(/^([0-9.]+)/);if(H){let I=H[1];V.setAttribute("rx",I),V.setAttribute("ry",I)}}if(B==="inside"){V.setAttribute("stroke-width",String(X*2));let H="gui-sclip-"+ ++V0,I=document.createElementNS("http://www.w3.org/2000/svg","defs"),z=document.createElementNS("http://www.w3.org/2000/svg","clipPath");z.setAttribute("id",H);let T=document.createElementNS("http://www.w3.org/2000/svg","rect");if(T.setAttribute("x","0"),T.setAttribute("y","0"),T.setAttribute("width","100%"),T.setAttribute("height","100%"),Q){let _=Q.match(/^([0-9.]+)/);if(_)T.setAttribute("rx",_[1]),T.setAttribute("ry",_[1])}z.appendChild(T),I.appendChild(z),L.appendChild(I),V.setAttribute("clip-path","url(#"+H+")")}L.appendChild(V),J.appendChild(L)}else if(G==="solid"&&!U&&!D){let F;if(B==="inside")F=`inset 0 0 0 ${X}px ${qJ(K)}`;else if(B==="outside")F=`0 0 0 ${X}px ${qJ(K)}`;else F=`inset 0 0 0 ${X/2}px ${qJ(K)}, 0 0 0 ${X/2}px ${qJ(K)}`;m8(J,F)}else{let F=B==="outside"?X:B==="center"?X/2:0,L=document.createElement("div");if(L.style.position="absolute",UJ(L,"gui-pointer-events-none"),L.style.left=-F+"px",L.style.top=-F+"px",L.style.right=-F+"px",L.style.bottom=-F+"px",L.style.border=X+"px "+G+" "+qJ(K),L.style.boxSizing="border-box",L.style.zIndex="2",Q)L.style.borderRadius=Q;if(U)L.style.opacity=U;if(D)L.style.mixBlendMode=D;J.appendChild(L)}}function f$(J,$,Q,K,Z){let X=h$(J);if(!X)return;for(let Y of Array.from(X.children)){if(Y.tagName==="effect"){z4($,Y);continue}if(Y.tagName==="border"){R4($,Y,K);continue}if(Y.tagName==="stroke"){C4($,Y,K);continue}if(Y.tagName!=="fill")continue;if(P(Y,"visible")==="false")continue;let W=P(Y,"type"),B=P(Y,"value");if(Z&&kQ(W,B))continue;let G=document.createElement("div");if(UJ(G,"gui-layer"),K)G.style.borderRadius=K;let U=P(Y,"opacity");if(U)G.style.opacity=U;let D=P(Y,"blend");if(D)G.style.mixBlendMode=D;if(W==="image"){let F=P(Y,"src"),L=L0(F,Q);if(!L)continue;if(P(Y,"fit")==="tile"){G.style.backgroundImage=`url("${L}")`,G.style.backgroundRepeat="repeat",G.style.backgroundSize="auto",$.appendChild(G);continue}let V=document.createElement("img");V.src=L,UJ(V,"gui-block");let H=P(Y,"x")!==null&&P(Y,"y")!==null&&P(Y,"w")!==null&&P(Y,"h")!==null;if(P(Y,"fit")==="crop"&&H)UJ(G,"gui-overflow-hidden"),V.style.position="absolute",V.style.left=k$(P(Y,"x")||"0"),V.style.top=k$(P(Y,"y")||"0"),V.style.width=k$(P(Y,"w")||"fill"),V.style.height=k$(P(Y,"h")||"fill"),UJ(V,"gui-fit-fill");else UJ(V,"gui-w-full"),UJ(V,"gui-h-full"),UJ(V,`gui-fit-${P(Y,"fit")||"cover"}`);if(K)V.style.borderRadius=K;let I=[],z=P(Y,"filter-exposure"),T=P(Y,"filter-contrast"),_=P(Y,"filter-saturation");if(z!==null){let b=parseFloat(z);if(Number.isFinite(b))I.push(`brightness(${1+b})`)}if(T!==null){let b=parseFloat(T);if(Number.isFinite(b))I.push(`contrast(${1+b})`)}if(_!==null){let b=parseFloat(_);if(Number.isFinite(b))I.push(`saturate(${1+b})`)}if(I.length>0)G.style.filter=I.join(" ");G.appendChild(V)}else{if(!B)continue;G.style.background=qJ(B)}$.appendChild(G)}}function DQ(J){let $=J.trim();if(/^\d+$/.test($))return`repeat(${$}, 1fr)`;if($.startsWith("fill ")){let Q=$.slice(5).trim();return`repeat(auto-fill, minmax(${/^\d+$/.test(Q)?`${Q}px`:Q}, 1fr))`}return $.split(/\s+/).map((Q)=>/^\d+$/.test(Q)?`${Q}px`:Q).join(" ")}function LQ(J){let $=J.indexOf("/");if($===-1)return J;let Q=J.slice(0,$).trim(),K=J.slice($+1).trim(),Z=parseInt(K,10);if(isNaN(Z)||Z<0)return`${Q} / ${K}`;return`${Q} / ${Z+1}`}function A4(J,$){let Q=$.getAttribute("gc"),K=$.getAttribute("gr"),Z=$.getAttribute("col-span"),X=$.getAttribute("row-span"),Y=$.getAttribute("w"),W=$.getAttribute("h");if(Q!==null)if(Q.includes("/")){if(J.style.gridColumn=LQ(Q),Y===null)J.style.width="100%",J.setAttribute("data-w-mode","fill")}else if(Z!==null){let B=Z==="all"?"-1":Z;J.style.gridColumn=`${Q} / span ${B}`}else J.style.gridColumn=Q;else if(Z!==null)J.style.gridColumn=Z==="all"?"1 / -1":`span ${Z}`;if(K!==null)if(K.includes("/")){if(J.style.gridRow=LQ(K),W===null)J.style.height="100%",J.setAttribute("data-h-mode","fill")}else if(X!==null)J.style.gridRow=`${K} / span ${X}`;else J.style.gridRow=K;else if(X!==null)J.style.gridRow=`span ${X}`}function B0(J,$,Q,K){let Z=J.tagName,X;if(K)if(Z==="row")X="gui-row";else if(Z==="col")X="gui-col";else if(Z==="grid")X="gui-grid";else X="gui-stack";else X="gui-frame";let Y=document.createElement(X);dJ(Y,J,Q);let W=SQ(J),B=T6(J),G=DJ(J,"fill-style"),U=G?f8[G]||null:P(J,"fill");if(U&&!B)Y.style.background=qJ(U);let D=P(J,"radius"),F=D?C6(D):null;if(F)Y.style.borderRadius=F;EQ(Y,J);let L=DJ(J,"clip");if(L!==null&&L!=="false")Y.setAttribute("clip","true");let V=A6(P(J,"shadow"));if(V)m8(Y,V);let H=P(J,"clip-path");if(H)Y.style.clipPath=H;let I=P(J,"overflow-x");if(I)Y.style.overflowX=I;let z=P(J,"overflow-y");if(z)Y.style.overflowY=z;let T=P(J,"border-image");if(T)Y.style.borderImage=T;let _=P(J,"outline");if(_)if(_.includes("px"))Y.style.outline=_;else{let M=M0(_);if(M)Y.style.outline=`${M.width}px ${M.style} ${qJ(M.color)}`}let b=P(J,"outline-offset");if(b)Y.style.outlineOffset=`${b}px`;f$(J,Y,$,F);let n=DJ(J,"effect-style");if(n)_6(Y,n);let r,C=null,w=!1;if(K){let M=Z==="row"?"horizontal":Z==="col"?"vertical":Z==="grid"?"grid":P(J,"direction")||"vertical",E=P(J,"p")||P(J,"padding");if(E)Y.style.padding=K4(E);let N=P(J,"pt");if(N)Y.style.paddingTop=`${N}px`;let y=P(J,"pr");if(y)Y.style.paddingRight=`${y}px`;let u=P(J,"pb");if(u)Y.style.paddingBottom=`${u}px`;let x=P(J,"pl");if(x)Y.style.paddingLeft=`${x}px`;if(X==="gui-stack"&&M!=="grid")Y.setAttribute("direction",M);let k=DJ(J,"align");if(k)Y.setAttribute("align",k);let p=DJ(J,"gap");if(p!==null)Y.setAttribute("gap",p);let l=DJ(J,"wrap");if(l!==null&&l!=="false")Y.setAttribute("wrap","true");if(M==="grid"){r="grid";let e=Z==="grid",WJ=e?DJ(J,"gap"):null;if(e){let FJ=DJ(J,"unit"),jJ=DJ(J,"cols")||DJ(J,"columns"),GJ=DJ(J,"rows");if(FJ!==null){let i=parseFloat(FJ),OJ=parseFloat(P(J,"w")||"0"),PJ=parseFloat(P(J,"h")||"0");if(i>0){if(OJ>0)Y.style.gridTemplateColumns=`repeat(${Math.round(OJ/i)}, ${i}px)`;if(PJ>0)Y.style.gridTemplateRows=`repeat(${Math.round(PJ/i)}, ${i}px)`}}else if(jJ!==null||GJ!==null){if(jJ)Y.style.gridTemplateColumns=DQ(jJ);if(GJ)Y.style.gridTemplateRows=DQ(GJ);if(WJ!==null){let i=(WJ||"0").trim().split(/\s+/),OJ=i[0],PJ=i[1]||i[0];if(OJ&&OJ!=="auto")Y.style.columnGap=`${OJ}px`;if(PJ&&PJ!=="auto")Y.style.rowGap=`${PJ}px`}}else{let i=P(J,"columns")||P(J,"cols");if(i)Y.style.gridTemplateColumns=`repeat(${i}, 1fr)`;if(WJ){let OJ=WJ.trim().split(/\s+/),PJ=OJ[0],VJ=OJ[1]||OJ[0];if(PJ==="auto")Y.style.columnGap="0px";else if(PJ)Y.style.columnGap=`${PJ}px`;if(VJ==="auto")Y.style.rowGap="0px";else if(VJ)Y.style.rowGap=`${VJ}px`}}}else{let FJ=P(J,"grid-columns"),jJ=P(J,"grid-rows"),GJ=P(J,"grid-col-gap"),i=P(J,"grid-row-gap");if(FJ)Y.style.gridTemplateColumns=`repeat(${FJ}, 1fr)`;if(jJ)Y.style.gridTemplateRows=`repeat(${jJ}, 1fr)`;if(GJ)Y.style.columnGap=`${GJ}px`;if(i)Y.style.rowGap=`${i}px`}}else{r=M==="horizontal"?"horizontal":"vertical";let e=DJ(J,"reverse-z");w=e!==null&&e!=="false",C=G4(Y,r,p)}}yQ(Y,J,$);let S=gQ(Y,J),h=Array.from(J.children);function a(M){let E=DJ(M,"abs");if(E!==null&&E!=="false")return!0;return DJ(M,"layout-position")==="absolute"}let f=h.filter((M)=>M.tagName!=="appearance"&&!(K&&a(M))).length,m=K&&f>0&&f<h.filter((M)=>M.tagName!=="appearance").length&&C===null&&!w&&!W,o=0,A=0,v=null;for(let M of h){if(M.tagName==="appearance")continue;let E=!K||a(M),y=P0(M,$,{absolute:E,parentDirection:E?void 0:r});if(y){if(M===S)y.style.display="none";if(r==="grid"&&!E)A4(y,M);if(!E&&C!==null){if(!y.classList.contains("gui-absolute"))UJ(y,"gui-relative");if(y.style.zIndex=String(o),o>0){let u=v?parseFloat(r==="horizontal"?P(v,"w")||"":P(v,"h")||""):NaN,x=!isNaN(u)?Math.max(C,-u):C;if(r==="horizontal")y.style.marginLeft=`${x}px`;else if(r==="vertical")y.style.marginTop=`${x}px`}}if(!E&&w){if(!y.classList.contains("gui-absolute"))UJ(y,"gui-relative");y.style.zIndex=String(f-o-1)}if(W){if(!E&&!y.classList.contains("gui-absolute"))UJ(y,"gui-relative");if(!w||E)y.style.zIndex="1"}if(m){if(!E)UJ(y,"gui-relative");y.style.zIndex=String(A)}if(Y.appendChild(y),A++,!E)o++,v=M}}let c=v$(Y,J,F);return u$(Y,J,F),c||Y}function yQ(J,$,Q){let K=P($,"mask-src");if(K&&Q[K]){let Z=P($,"mask-x")||"0",X=P($,"mask-y")||"0",Y=P($,"mask-width")||String(P($,"w")||"100%"),W=P($,"mask-height")||String(P($,"h")||"100%"),G=`url("${Q[K]}")`;J.style.webkitMaskImage=G,J.style.maskImage=G,J.style.webkitMaskSize=`${Y}px ${W}px`,J.style.maskSize=`${Y}px ${W}px`,J.style.webkitMaskPosition=`${Z}px ${X}px`,J.style.maskPosition=`${Z}px ${X}px`,J.style.webkitMaskRepeat="no-repeat",J.style.maskRepeat="no-repeat";let U=P($,"mask-mode");if(U)J.style.maskMode=U,J.style.webkitMaskMode=U;let D=P($,"mask-composite");if(D)J.style.maskComposite=D}}function gQ(J,$){let Q=Array.from($.children);for(let K=0;K<Q.length;K++){let Z=Q[K];if(DJ(Z,"mask")!=="true"&&DJ(Z,"mask")!=="")continue;let X=parseFloat(P(Z,"x")||"0"),Y=parseFloat(P(Z,"y")||"0"),W=parseFloat(P(Z,"w")||"0"),B=parseFloat(P(Z,"h")||"0");if(!W||!B)continue;let G="";if(Z.tagName==="ellipse"){let L=W/2,V=B/2;G=`<ellipse cx="${L}" cy="${V}" rx="${L}" ry="${V}" fill="white"/>`}else{let L=P(Z,"radius"),V=L?parseFloat(L.split(" ")[0]):0;G=`<rect width="${W}" height="${B}" rx="${V}" ry="${V}" fill="white"/>`}let U=`<svg xmlns="http://www.w3.org/2000/svg" width="${W}" height="${B}" viewBox="0 0 ${W} ${B}">${G}</svg>`,F=`url("${"data:image/svg+xml;base64,"+btoa(U)}")`;return J.style.webkitMaskImage=F,J.style.maskImage=F,J.style.webkitMaskSize=`${W}px ${B}px`,J.style.maskSize=`${W}px ${B}px`,J.style.webkitMaskPosition=`${X}px ${Y}px`,J.style.maskPosition=`${X}px ${Y}px`,J.style.webkitMaskRepeat="no-repeat",J.style.maskRepeat="no-repeat",Z}return null}function T4(J,$,Q){let K=document.createElement("gui-group");dJ(K,J,Q),yQ(K,J,$);let Z=gQ(K,J),X={absolute:!0};for(let Y of Array.from(J.children)){let W=P0(Y,$,X);if(W){if(Y===Z)W.style.display="none";K.appendChild(W)}}return K}function Y0(J,$){let Q=DJ($,"text-style"),K=Q?U0[Q]:null;function Z(n){let r=P($,n);if(r!==null)return r;if(K&&K[n]!==void 0)return D0(K[n]);return null}let X=Z("font-family"),Y=Z("font-size"),W=Z("font-weight"),B=Z("font-style"),G=Z("font-variation"),U=Z("font-feature"),D=Z("line-height"),F=Z("letter-spacing"),L=P($,"baseline-shift"),V=DJ($,"fill-style"),H=V?f8[V]||null:P($,"fill")||P($,"color"),I=Z("decoration"),z=Z("decoration-color"),T=Z("decoration-style"),_=Z("decoration-thickness"),b=Z("text-case");if(X)J.style.fontFamily=j4(X);if(Y)J.style.fontSize=`${Y}px`;if(W)J.style.fontWeight=W;if(B)J.style.fontStyle=B;if(G)J.style.fontVariationSettings=G;if(U)J.style.fontFeatureSettings=U;if(D)J.style.lineHeight=Z4(D);if(F)J.style.letterSpacing=F.includes("%")?F:`${F}px`;if(L)J.style.verticalAlign=`${L}px`;if(H)J.style.color=qJ(H);if(I==="underline"||I==="strikethrough"){if(J.style.textDecoration=I==="underline"?"underline":"line-through",z)J.style.textDecorationColor=qJ(z);if(T)J.style.textDecorationStyle=T;if(_)J.style.textDecorationThickness=`${_}px`}if(b==="small-caps"||b==="small-caps-forced")J.style.fontVariant="small-caps";else if(b)J.style.textTransform=b}function S$(J,$){if(!$)return J;let Q=document.createElement("a");return Q.href=$,Q.style.color="inherit",Q.style.textDecoration="inherit",Q.appendChild(J),Q}var _4=0.01;function VQ(J,$){let Q=P(J,$);if(Q!==null)return Q;let K=DJ(J,"text-style"),Z=K?U0[K]:null;if(Z&&Z[$]!==void 0)return D0(Z[$]);return null}function w4(J,$){let Q=J.trim();if(/^-?\d+(\.\d+)?$/.test(Q)){let K=parseFloat(Q);return K>0&&K<=4?K*$:K}if(Q.endsWith("%"))return parseFloat(Q)/100*$;if(Q.endsWith("px"))return parseFloat(Q);return NaN}function N4(J,$,Q){let K=document.createElement("gui-text");dJ(K,J,Q);let Z=P(J,"align"),X=P(J,"vertical-align"),Y=DJ(J,"truncate"),W=Y!==null&&Y!=="false",B=P(J,"max-lines"),G=P(J,"overflow"),U=P(J,"leading-trim"),D=P(J,"list"),F=P(J,"list-level"),L=P(J,"list-marker"),V=P(J,"h")!==null,H=P(J,"w"),I=H===null?NaN:parseFloat(H);if(!Number.isNaN(I)&&H!=="hug"&&H!=="fill"&&!(G==="ellipsis"&&!W&&!B))K.style.setProperty("--gui-w",`${I*(1+_4)}px`);let _=!1;if(V&&!W&&!B){let x=parseFloat(P(J,"h")||""),k=VQ(J,"font-size"),p=VQ(J,"line-height");if(Number.isFinite(x)&&k&&p){let l=w4(p,parseFloat(k));if(Number.isFinite(l)&&l>0)_=Math.round(x/l)<=1}}if(Z)K.style.textAlign=Z;if(G==="ellipsis"&&!W&&!B)K.style.overflow="hidden",K.style.textOverflow="ellipsis",K.style.whiteSpace="nowrap";else if(G==="clip")K.style.overflow="hidden";if(D&&D!=="none"){let x=F?parseInt(F,10)*16:0;if(K.style.display="list-item",K.style.listStyleType=D==="decimal"?"decimal":"disc",K.style.listStylePosition="inside",x)K.style.paddingLeft=`${x}px`;if(L)K.setAttribute("data-list-marker",L),K.style.listStyleType="none"}if(U&&U!=="none")K.style.textBoxTrim="both",K.style.textBoxEdge="cap alphabetic";let b=P(J,"font-stretch");if(b)K.style.fontStretch=b;let n=P(J,"direction");if(n)K.style.direction=n;let r=P(J,"writing-mode");if(r)K.style.writingMode=r;let C=P(J,"white-space");if(C)K.style.whiteSpace=C;let w=P(J,"word-break");if(w)K.style.wordBreak=w;let S=P(J,"word-spacing");if(S)K.style.wordSpacing=`${S}px`;let h=P(J,"text-underline-offset");if(h)K.style.textUnderlineOffset=`${h}px`;let a=P(J,"text-decoration-skip-ink");if(a!==null)K.style.textDecorationSkipInk=a==="false"?"none":"auto";let f=P(J,"text-wrap");if(f)K.style.textWrap=f;let s=P(J,"font-optical-sizing");if(s)K.style.fontOpticalSizing=s;let m=P(J,"font-smoothing");if(m){if(m==="antialiased")K.style.webkitFontSmoothing="antialiased",K.style.mozOsxFontSmoothing="grayscale";else if(m==="subpixel-antialiased")K.style.webkitFontSmoothing="subpixel-antialiased";else if(m==="none")K.style.webkitFontSmoothing="none"}let o=P(J,"text-rendering");if(o)K.style.textRendering=o;let A=P(J,"paragraph-spacing");if(A)K.style.marginBottom=`${A}px`;let v=P(J,"paragraph-indent");if(v)K.style.textIndent=`${v}px`;let c=H4(J),M=!!c;if(f$(J,K,$,void 0,M),M)K.style.backgroundImage=qJ(c),K.style.webkitBackgroundClip="text",K.style.backgroundClip="text",K.style.webkitTextFillColor="transparent",K.style.color="transparent";let E=Array.from(J.children).filter((x)=>x.tagName==="segment");if(E.length>0){if(Y0(K,J),X&&X!=="top")K.style.display="flex",K.style.alignItems=X==="center"?"center":"flex-end";let x=document.createElement("span");if(!(G==="ellipsis"&&!W&&!B))UJ(x,"gui-pre-wrap");for(let k of E){let p=document.createElement("span");p.textContent=P(k,"value")||"",Y0(p,k),x.appendChild(S$(p,P(k,"href")))}return K.appendChild(x),K}Y0(K,J);let N=P(J,"value")||"",y=P(J,"href"),u=B||(W?"1":null);if(_&&!u)K.style.whiteSpace="nowrap";else if(V||u)UJ(K,"gui-overflow-hidden");if(X&&X!=="top")if(K.style.display="flex",K.style.alignItems=X==="center"?"center":"flex-end",u){let x=document.createElement("span");x.textContent=N,x.style.display="-webkit-box",x.style.webkitLineClamp=u,x.style.WebkitBoxOrient="vertical",UJ(x,"gui-overflow-hidden"),x.style.width="100%",K.appendChild(S$(x,y))}else{let x=document.createElement("span");x.textContent=N,K.appendChild(S$(x,y))}else if(u){if(K.textContent=N,K.style.display="-webkit-box",K.style.webkitLineClamp=u,K.style.WebkitBoxOrient="vertical",UJ(K,"gui-overflow-hidden"),y){UJ(K,"gui-block"),K.textContent="";let x=document.createElement("span");x.textContent=N,x.style.display="-webkit-box",x.style.webkitLineClamp=u,x.style.WebkitBoxOrient="vertical",UJ(x,"gui-overflow-hidden"),K.appendChild(S$(x,y))}}else if(y){let x=document.createElement("span");x.textContent=N,K.appendChild(S$(x,y))}else K.textContent=N;return K}function E4(J,$,Q){let K=document.createElement("gui-img");dJ(K,J,Q);let Z=P(J,"fit");if(Z)K.setAttribute("fit",Z);let X=document.createElement("img");UJ(X,"gui-block");let Y=P(J,"src"),W=L0(Y,$);if(W)X.src=W;let B=P(J,"radius"),G=B?C6(B):null;if(G)K.style.borderRadius=G,X.style.borderRadius=G;let U=P(J,"object-position");if(U)X.style.objectPosition=U;let D=P(J,"image-rendering");if(D)X.style.imageRendering=D;K.appendChild(X);let F=v$(K,J,G);return u$(K,J,G),F||K}function S4(J,$,Q){let K=P(J,"src"),Z=document.createElement("gui-svg");dJ(Z,J,Q);let X=document.createElement("img");UJ(X,"gui-block"),UJ(X,"gui-fit-fill"),X.style.width="100%",X.style.height="100%";let Y=L0(K,$);if(Y)X.src=Y;return Z.appendChild(X),Z}function k4(J,$,Q,K,Z){let X=parseFloat(P(J,"w")||"24"),Y=parseFloat(P(J,"h")||"24"),W=parseFloat(P(J,"arc-start")||"0"),B=parseFloat(P(J,"arc-end")||"360"),G=parseFloat(P(J,"arc-inner")||"0"),U=parseFloat(Z||"0"),D="http://www.w3.org/2000/svg",F=document.createElementNS("http://www.w3.org/2000/svg","svg");F.setAttribute("viewBox",`0 0 ${X} ${Y}`),dJ(F,J,$),UJ(F,"gui-block"),UJ(F,"gui-overflow-visible");let L=X/2,V=Y/2,H=X/2,I=Y/2,z=W*Math.PI/180,T=B*Math.PI/180,b=((B-W+360)%360||360)>180?1:0,n=(S,h)=>L+h*Math.cos(S),r=(S,h)=>V+h*Math.sin(S),C;if(G>0){let S=H*G,h=I*G;C=[`M ${n(z,H)} ${r(z,I)}`,`A ${H} ${I} 0 ${b} 1 ${n(T,H)} ${r(T,I)}`,`L ${n(T,S)} ${r(T,h)}`,`A ${S} ${h} 0 ${b} 0 ${n(z,S)} ${r(z,h)}`,"Z"].join(" ")}else C=[`M ${L} ${V}`,`L ${n(z,H)} ${r(z,I)}`,`A ${H} ${I} 0 ${b} 1 ${n(T,H)} ${r(T,I)}`,"Z"].join(" ");let w=document.createElementNS("http://www.w3.org/2000/svg","path");if(w.setAttribute("d",C),w.setAttribute("fill",Q?Q$(Q):"none"),K&&U>0)w.setAttribute("stroke",Q$(K)),w.setAttribute("stroke-width",String(U));return F.appendChild(w),F}function x4(J,$,Q){let K=document.createElement("gui-shape");K.setAttribute("type","rect"),dJ(K,J,Q);let Z=T6(J),X=DJ(J,"fill-style"),Y=X?f8[X]||null:P(J,"fill");if(Y&&!Z)K.style.background=qJ(Y);let W=P(J,"radius");if(W)K.style.borderRadius=C6(W);let B=A6(P(J,"shadow"));if(B)m8(K,B);f$(J,K,$,K.style.borderRadius||null);let G=DJ(J,"effect-style");if(G)_6(K,G);let U=v$(K,J,K.style.borderRadius||null);return u$(K,J,K.style.borderRadius||null),U||K}function y4(J,$,Q){let K=document.createElement("gui-shape");K.setAttribute("type","ellipse"),dJ(K,J,Q);let Z=T6(J),X=DJ(J,"fill-style"),Y=X?f8[X]||null:P(J,"fill");if(Y&&!Z)K.style.background=qJ(Y);K.style.borderRadius="50%";let W=A6(P(J,"shadow"));if(W)m8(K,W);f$(J,K,$,"50%");let B=DJ(J,"effect-style");if(B)_6(K,B);let G=v$(K,J,"50%");return u$(K,J,"50%"),G||K}function g4(J,$){let Q=document.createElement("gui-shape");Q.setAttribute("type","line"),dJ(Q,J,$);let K=P(J,"direction")||"horizontal",Z=P(J,"thickness")||"1",X=DJ(J,"fill-style"),Y=X?f8[X]||null:P(J,"fill");if(K==="vertical")Q.style.width=`${Z}px`,Q.style.alignSelf="stretch";else Q.style.height=`${Z}px`,Q.style.alignSelf="stretch";if(Y)Q.style.background=qJ(Y);return Q}function b4(J,$,Q){let K=P(J,"type");if(K==="path")return v4(J,Q);if(K==="ellipse"){let F=P(J,"arc-start"),L=P(J,"arc-end"),V=P(J,"arc-inner");if(F!==null||L!==null||V!==null)return k4(J,Q,P(J,"fill"),P(J,"stroke"),P(J,"stroke-width"))}let Z=document.createElement("gui-shape");if(K)Z.setAttribute("type",K);if(dJ(Z,J,Q),K==="line"){let F=P(J,"stroke-width")||"1",L=P(J,"stroke-cap"),V=P(J,"dash-array"),H=P(J,"dash-offset");if(L||V){let _=parseFloat(P(J,"w")||"0"),b=parseFloat(F),n=L==="arrow-lines"||L==="arrow-equilateral"||L==="triangle"||L==="triangle-filled",r=b*3,C=n?r:b,w=document.createElementNS("http://www.w3.org/2000/svg","svg");w.setAttribute("viewBox",-C+" "+-C/2+" "+(_+C*2)+" "+(b+C)),dJ(w,J,Q),UJ(w,"gui-block"),w.style.width=_+"px",w.style.height=b+"px",w.style.overflow="visible";let S=Q$(P(J,"stroke"));if(n){let h=document.createElementNS("http://www.w3.org/2000/svg","defs"),a="gui-arrow-"+ ++V0,f=document.createElementNS("http://www.w3.org/2000/svg","marker");f.setAttribute("id",a),f.setAttribute("markerWidth","6"),f.setAttribute("markerHeight","6"),f.setAttribute("refX","6"),f.setAttribute("refY","3"),f.setAttribute("orient","auto");let s=L==="triangle-filled";if(L==="arrow-lines"){let o=document.createElementNS("http://www.w3.org/2000/svg","path");o.setAttribute("d","M 0 0 L 6 3 L 0 6"),o.setAttribute("fill","none"),o.setAttribute("stroke",S),o.setAttribute("stroke-width","1"),f.appendChild(o)}else{let o=document.createElementNS("http://www.w3.org/2000/svg","polygon");o.setAttribute("points","0 0, 6 3, 0 6"),o.setAttribute("fill",s?S:"none"),o.setAttribute("stroke",S),o.setAttribute("stroke-width","0.5"),f.appendChild(o)}h.appendChild(f),w.appendChild(h);let m=document.createElementNS("http://www.w3.org/2000/svg","line");m.setAttribute("x1","0"),m.setAttribute("y1","0"),m.setAttribute("x2",String(_-b)),m.setAttribute("y2","0"),m.setAttribute("stroke",S),m.setAttribute("stroke-width",F),m.setAttribute("stroke-linecap","butt"),m.setAttribute("marker-end","url(#"+a+")"),w.appendChild(m)}else{let h=document.createElementNS("http://www.w3.org/2000/svg","line");if(h.setAttribute("x1","0"),h.setAttribute("y1","0"),h.setAttribute("x2",String(_)),h.setAttribute("y2","0"),h.setAttribute("stroke",S),h.setAttribute("stroke-width",F),L==="round")h.setAttribute("stroke-linecap","round");else if(L==="square")h.setAttribute("stroke-linecap","square");else h.setAttribute("stroke-linecap","butt");if(V)h.setAttribute("stroke-dasharray",V);if(H)h.setAttribute("stroke-dashoffset",H);w.appendChild(h)}return w}let I=V4(J),z=P(J,"w")||"0";if(I!==null)if(Z.style.transform="",Z.style.transformOrigin="",I===90||I===270)Z.style.width=`${F}px`,Z.style.height=`${z}px`;else Z.style.width=`${z}px`,Z.style.height=`${F}px`;else Z.style.width=k$(P(J,"w")),Z.style.height=`${F}px`;if(Z.style.background=qJ(P(J,"stroke")),L==="round")Z.style.borderRadius="9999px";return Z}let X=SQ(J),Y=T6(J),W=DJ(J,"fill-style"),B=W?f8[W]||null:P(J,"fill");if(B&&!Y)Z.style.background=qJ(B);let G=A6(P(J,"shadow"));if(G)m8(Z,G);if(K==="ellipse")Z.style.borderRadius="50%";else if(K==="rect"){let F=P(J,"radius");if(F)Z.style.borderRadius=C6(F);EQ(Z,J)}f$(J,Z,$,Z.style.borderRadius||null);let U=DJ(J,"effect-style");if(U)_6(Z,U);let D=v$(Z,J,Z.style.borderRadius||null);return u$(Z,J,Z.style.borderRadius||null),D||Z}function v4(J,$){let Q=P(J,"w")||"24",K=P(J,"h")||"24",Z=P(J,"fill"),X=P(J,"stroke"),Y=P(J,"stroke-width"),W=P(J,"stroke-position")||"center",B=P(J,"fill-rule"),G=P(J,"dash-array"),U=P(J,"dash-offset"),D="http://www.w3.org/2000/svg",F=document.createElementNS("http://www.w3.org/2000/svg","svg");F.setAttribute("viewBox",`0 0 ${Q} ${K}`),dJ(F,J,$),UJ(F,"gui-block");let L=Array.from(J.querySelectorAll("path"));for(let V of L){let H=V.getAttribute("d");if(!H)continue;let I=Z?Q$(Z):"none",z=X?Q$(X):null;if(!z||!Y||W==="center"){let _=u8("http://www.w3.org/2000/svg",H,I,z,Y);if(B)_.setAttribute("fill-rule",B);if(G)_.setAttribute("stroke-dasharray",G);if(U)_.setAttribute("stroke-dashoffset",U);F.appendChild(_);continue}let T=parseFloat(Y);if(!Number.isFinite(T)||T<=0){let _=u8("http://www.w3.org/2000/svg",H,I,null,null);if(B)_.setAttribute("fill-rule",B);F.appendChild(_);continue}if(W==="inside"){let _=`gui-clip-${++V0}`,b=document.createElementNS("http://www.w3.org/2000/svg","defs"),n=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),r=u8("http://www.w3.org/2000/svg",H,"black",null,null);n.setAttribute("id",_),n.appendChild(r),b.appendChild(n),F.appendChild(b);let C=u8("http://www.w3.org/2000/svg",H,I,null,null);if(B)C.setAttribute("fill-rule",B);let w=u8("http://www.w3.org/2000/svg",H,"none",z,String(T*2));if(w.setAttribute("clip-path",`url(#${_})`),G)w.setAttribute("stroke-dasharray",G);if(U)w.setAttribute("stroke-dashoffset",U);F.appendChild(C),F.appendChild(w)}else{let _=u8("http://www.w3.org/2000/svg",H,"none",z,String(T*2));if(G)_.setAttribute("stroke-dasharray",G);if(U)_.setAttribute("stroke-dashoffset",U);let b=u8("http://www.w3.org/2000/svg",H,I,null,null);if(B)b.setAttribute("fill-rule",B);F.appendChild(_),F.appendChild(b)}}return F}function u8(J,$,Q,K,Z){let X=document.createElementNS(J,"path");if(X.setAttribute("d",$),X.setAttribute("fill",Q),K&&Z)X.setAttribute("stroke",K),X.setAttribute("stroke-width",Z);return X}function u4(J){let $=new Map;for(let Q of Array.from(J.children)){if(Q.tagName!=="components")continue;for(let K of Array.from(Q.children))if(K.tagName==="component"){let Z=K.getAttribute("id");if(Z)$.set(Z,K)}else if(K.tagName==="component-set"){for(let Z of Array.from(K.children))if(Z.tagName==="variant"){let X=Z.getAttribute("id");if(X)$.set(X,Z)}}}return $}function M6(J,$){if(J.getAttribute("id")===$)return J;for(let Q of Array.from(J.children)){let K=M6(Q,$);if(K)return K}return null}function W0(J){for(let $ of Array.from(J.children)){if($.tagName==="text")return $;let Q=W0($);if(Q)return Q}return null}var h4=new Set(["component","name","x","y","w","h","constraint-h","constraint-v","abs","rotation","opacity","blend","min-width","max-width","min-height","max-height"]);function f4(J,$,Q){let K={},Z=Array.from(Q.children).find((Y)=>Y.tagName==="props");if(Z)for(let Y of Array.from(Z.children)){if(Y.tagName!=="prop")continue;let W=Y.getAttribute("name"),B=Y.getAttribute("type"),G=Y.getAttribute("target"),U=Y.getAttribute("bind");if(!W||!B||!G)continue;let D=G.trim().split(/\s+/).filter(Boolean);K[W]={type:B,targets:D,bind:U};let F=$.getAttribute(W);if(F===null)continue;for(let L of D){let V=M6(J,L);if(!V)continue;let I=(B==="string"||B==="text")&&V.tagName!=="text"?W0(V)||V:V;OQ(I,B,F,U)}}let X=[{suffix:"-stroke-style",type:"style",bind:"stroke-style"},{suffix:"-text",type:"style",bind:"text-style"},{suffix:"-fill",type:"style",bind:"fill-style"},{suffix:"-effect",type:"style",bind:"effect-style"},{suffix:"-stroke",type:"color",bind:"stroke"},{suffix:"-radius",type:"number",bind:"radius"},{suffix:"-opacity",type:"number",bind:"opacity"}];for(let Y of Array.from($.attributes)){if(h4.has(Y.name))continue;if(K[Y.name]!==void 0)continue;let W=M6(J,Y.name),B="",G=null;if(W)B=W.tagName==="text"?"string":Y.value==="false"||Y.value==="true"?"boolean":W.tagName==="instance"?"component":W.getAttribute("src")!==null?"image":"string";else{for(let D of X){if(!Y.name.endsWith(D.suffix))continue;let F=Y.name.slice(0,Y.name.length-D.suffix.length),L=M6(J,F);if(!L)continue;W=L,B=D.type,G=D.bind;break}if(!W)continue}let U=B==="string"&&W.tagName!=="text"?W0(W)||W:W;OQ(U,B,Y.value,G)}}function OQ(J,$,Q,K){if($==="string"||$==="text")J.setAttribute(K||"value",Q);else if(($==="boolean"||$==="visible")&&Q==="false")J.parentNode&&J.parentNode.removeChild(J);else if($==="color"||$==="fill")J.setAttribute(K||"fill",Q);else if($==="image"||$==="src")J.setAttribute("src",Q);else if($==="component")J.setAttribute("component",Q);else if($==="number"&&K)J.setAttribute(K,Q);else if($==="style"&&K){if(J.setAttribute(K,Q),K==="text-style"){let Z=["font-size","font-weight","font-style","line-height","letter-spacing","font-family","font-postscript","font-style-name","font-stretch","font-variation","font-feature","text-case","decoration"];for(let X=0;X<Z.length;X++)J.removeAttribute(Z[X])}}}function bQ(J,$,Q){for(let K=0;K<J.children.length;K++){let Z=J.children[K],X=Z.getAttribute("constraint-h"),Y=Z.getAttribute("constraint-v"),W=X==="scale"||X==="left-right",B=Y==="scale"||Y==="top-bottom";if(W||B){if(W){let G=parseFloat(Z.getAttribute("x")||"0"),U=parseFloat(Z.getAttribute("w")||"0");if(U>0)Z.setAttribute("w",String(Math.round(U*$)));if(G!==0)Z.setAttribute("x",String(Math.round(G*$)))}if(B){let G=parseFloat(Z.getAttribute("y")||"0"),U=parseFloat(Z.getAttribute("h")||"0");if(U>0)Z.setAttribute("h",String(Math.round(U*Q)));if(G!==0)Z.setAttribute("y",String(Math.round(G*Q)))}}if(Z.children.length>0)bQ(Z,$,Q)}}function m4(J,$,Q){let K=P(J,"component");if(!K)return null;let Z=wQ.get(K);if(!Z)return null;let X=Array.from(Z.children).find((V)=>V.tagName!=="props");if(!X)return null;let Y=X.cloneNode(!0);f4(Y,J,Z);let W=parseFloat(X.getAttribute("w")||"0"),B=parseFloat(X.getAttribute("h")||"0"),G=parseFloat(J.getAttribute("w")||"0"),U=parseFloat(J.getAttribute("h")||"0"),D=W>0&&G>0?G/W:1,F=B>0&&U>0?U/B:1;for(let V of["x","y","w","h","constraint-h","constraint-v","abs","rotation","opacity","blend","visible","min-width","max-width","min-height","max-height","radius","fill","fill-style","shadow","clip","overflow-x","overflow-y"]){let H=J.getAttribute(V);if(H!==null)Y.setAttribute(V,H)}let L=J.getAttribute("radius");if(L!==null){if(Y.getAttribute("clip")===null)Y.setAttribute("clip","true");for(let V=0;V<Y.children.length;V++){let H=Y.children[V];if(H.getAttribute("constraint-h")==="scale"&&H.getAttribute("constraint-v")==="scale")H.setAttribute("radius",L)}}if(D!==1||F!==1)bQ(Y,D,F);return P0(Y,$,Q)}function P0(J,$,Q){let K=y$;y$=NQ(J,K);try{switch(J.tagName){case"frame":return B0(J,$,Q,!1);case"stack":case"row":case"col":case"grid":return B0(J,$,Q,!0);case"group":return T4(J,$,Q);case"text":return N4(J,$,Q);case"img":return E4(J,$,Q);case"rect":return x4(J,$,Q);case"ellipse":return y4(J,$,Q);case"line":return g4(J,Q);case"svg":return S4(J,$,Q);case"shape":return b4(J,$,Q);case"instance":return m4(J,$,Q);default:return null}}finally{y$=K}}function p4(J){let $=J.getAttribute("family");if(!$)return null;let Q=(J.getAttribute("weights")||"400").split(/[\s,]+/).filter(Boolean).sort((B,G)=>parseInt(B)-parseInt(G)),K=(J.getAttribute("styles")||"normal").split(/[\s,]+/).filter(Boolean),Z=(J.getAttribute("variants")||"").split(/[\s,]+/).filter(Boolean),X=Z.reduce((B,G)=>{return B[G]=!0,B},{}),Y=encodeURIComponent($).replace(/%20/g,"+");if(!Q.length)return Y;if(K.indexOf("italic")!==-1){let B=[];for(let G of Q)if(!Z.length||X[G==="400"?"regular":G])B.push(`0,${G}`);for(let G of Q)if(!Z.length||X[G==="400"?"italic":`${G}italic`])B.push(`1,${G}`);if(!B.length)return Y;return`${Y}:ital,wght@${B.join(";")}`}let W=Z.length?Q.filter((B)=>X[B==="400"?"regular":B]):Q;if(!W.length)return Y;return`${Y}:wght@${W.join(";")}`}function c4(J){let $=[];for(let[K,Z]of Object.entries(J)){if(Z.source!=="google")continue;let X=document.createElement("span");if(X.setAttribute("family",K),Z.weights)X.setAttribute("weights",Z.weights);if(Z.styles)X.setAttribute("styles",Z.styles);if(Z.variants)X.setAttribute("variants",Z.variants);let Y=p4(X);if(Y&&$.indexOf(Y)===-1)$.push(Y)}if(!$.length||typeof document>"u")return;if(!document.querySelector('link[data-gui-fonts-preconnect="google-fonts"]')){let K=document.createElement("link");K.rel="preconnect",K.href="https://fonts.gstatic.com",K.crossOrigin="anonymous",K.setAttribute("data-gui-fonts-preconnect","google-fonts"),document.head.appendChild(K)}let Q=Array.from(document.querySelectorAll("link[data-gui-fonts]"));for(let K of $){let Z=`https://fonts.googleapis.com/css2?family=${K}&display=swap`;if(Q.some((Y)=>Y.href===Z||Y.getAttribute("href")===Z))continue;let X=document.createElement("link");X.rel="stylesheet",X.href=Z,X.setAttribute("data-gui-fonts",Z),document.head.appendChild(X)}}function w6(J,$,Q,K){W4(),$.innerHTML="";let Z=eK(J,Q);if(!Z)return $.innerHTML='<div style="color:#888;padding:24px;font-size:12px">Invalid .gui</div>',null;G0=Z.tokens,q0=Z.modes,AQ=Z.tokenDefs,TQ=Z.fonts,U0=Z.textStyles,f8=Z.fillStyles,_Q=Z.effectStyles,c4(Z.fonts);let X=Z.assets,Y;try{let s=Q4(J).replace(/&(?!amp;|lt;|gt;|quot;|apos;|#)/g,"&amp;");if(Y=new DOMParser().parseFromString(s,"text/xml"),Y.querySelector("parsererror"))throw Error()}catch{return $.innerHTML='<div style="color:#888;padding:24px;font-size:12px">Invalid .gui</div>',null}let W=Y.documentElement;wQ=u4(W);let B=new Set(["stack","row","col","grid"]),G=null;for(let s of Array.from(W.children))if(s.tagName==="frame"||B.has(s.tagName)){G=s;break}if(!G)return null;y$=NQ(G,K&&K.mode?{...K.mode}:{});let U=G.getAttribute("w"),D=G.getAttribute("h"),F=U&&U!=="fill"?parseInt(U)||390:390,L=D&&D!=="fill"?parseInt(D):null,V=B0(G,X,{absolute:!1},B.has(G.tagName));if(V.style.width=`${F}px`,L!==null)V.style.height=`${L}px`;if(UJ(V,"gui-relative"),V.style.flexShrink="0",V.style.outline="1px solid #0d99ff",!K?.zoom)return $.appendChild(V),null;let H=document.createElement("div"),I=L!==null?`height:${L}px;`:"";H.style.cssText=`position:absolute;left:0;top:0;width:${F}px;${I}transform-origin:0 0;will-change:transform;`,H.appendChild(V);let z=document.createElement("div");z.style.cssText="position:relative;width:100%;height:100%;overflow:hidden;cursor:default;touch-action:none;user-select:none;",z.appendChild(H),$.appendChild(z);let T=K?.view;function _(){return L!==null?L:V.offsetHeight||V.scrollHeight||844}function b(){let s=_();return Math.min((z.clientWidth-48)/F,(z.clientHeight-48)/s,1)}function n(s){let m=_();return{x:(z.clientWidth-F)/(2*s),y:(z.clientHeight-m)/(2*s)}}function r(s){let m=_();return{x:(z.clientWidth-F*s)/2,y:(z.clientHeight-m*s)/2}}let C=b(),w=1,S=null;if(T?.transform)H.style.transform=T.transform;else if(C>0){let{x:s,y:m}=r(C);H.style.transform=`matrix(${C}, 0, 0, ${C}, ${s}, ${m})`}function h(s){let m=C*s;if(!S){let{x:A,y:v}=r(m);H.style.transform=`matrix(${m}, 0, 0, ${m}, ${A}, ${v})`;return}let o=n(m);S.zoom(m,{animate:!1,force:!0}),S.pan(o.x,o.y,{animate:!1,force:!0})}function a(s,m,o){let A=Math.max(0.1,Math.min(s,16)),v=C*A;if(!v)return;if(m===void 0||o===void 0){w=A,h(A);return}if(w=A,!S){h(A);return}let c=z.getBoundingClientRect();S.zoomToPoint(v,{clientX:c.left+m,clientY:c.top+o},{animate:!1,force:!0})}requestAnimationFrame(()=>{if(!H.isConnected)return;C=b();let s=n(C);S=IQ(H,{canvas:!0,cursor:"default",disablePan:!0,maxScale:C*16,minScale:C*0.1,overflow:"hidden",startScale:T?T.scale:C,startX:T?T.x:s.x,startY:T?T.y:s.y,step:0.18,touchAction:"none"})}),z.addEventListener("wheel",(s)=>{if(!S)return;if(s.preventDefault(),s.ctrlKey||s.metaKey){let m=S.getScale(),o=Math.min(Math.max(m*Math.exp(-s.deltaY*0.0125),C*0.1),C*16);S.zoomToPoint(o,s,{animate:!1,force:!0}),w=o/C}else{let m=S.getScale(),o=S.getPan();S.pan(o.x-s.deltaX/m,o.y-s.deltaY/m,{animate:!1,force:!0})}},{passive:!1});let f=a;return f.getView=()=>S?{scale:S.getScale(),x:S.getPan().x,y:S.getPan().y,transform:H.style.transform}:null,f}var zJ=Uint8Array,rJ=Uint16Array,E0=Int32Array,E6=new zJ([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),S6=new zJ([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),C0=new zJ([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),pQ=function(J,$){var Q=new rJ(31);for(var K=0;K<31;++K)Q[K]=$+=1<<J[K-1];var Z=new E0(Q[30]);for(var K=1;K<30;++K)for(var X=Q[K];X<Q[K+1];++X)Z[X]=X-Q[K]<<5|K;return{b:Q,r:Z}},cQ=pQ(E6,2),nQ=cQ.b,A0=cQ.r;nQ[28]=258,A0[258]=28;var rQ=pQ(S6,0),n4=rQ.b,vQ=rQ.r,T0=new rJ(32768);for(YJ=0;YJ<32768;++YJ)Y8=(YJ&43690)>>1|(YJ&21845)<<1,Y8=(Y8&52428)>>2|(Y8&13107)<<2,Y8=(Y8&61680)>>4|(Y8&3855)<<4,T0[YJ]=((Y8&65280)>>8|(Y8&255)<<8)>>1;var Y8,YJ,G8=function(J,$,Q){var K=J.length,Z=0,X=new rJ($);for(;Z<K;++Z)if(J[Z])++X[J[Z]-1];var Y=new rJ($);for(Z=1;Z<$;++Z)Y[Z]=Y[Z-1]+X[Z-1]<<1;var W;if(Q){W=new rJ(1<<$);var B=15-$;for(Z=0;Z<K;++Z)if(J[Z]){var G=Z<<4|J[Z],U=$-J[Z],D=Y[J[Z]-1]++<<U;for(var F=D|(1<<U)-1;D<=F;++D)W[T0[D]>>B]=G}}else{W=new rJ(K);for(Z=0;Z<K;++Z)if(J[Z])W[Z]=T0[Y[J[Z]-1]++]>>15-J[Z]}return W},I8=new zJ(288);for(YJ=0;YJ<144;++YJ)I8[YJ]=8;var YJ;for(YJ=144;YJ<256;++YJ)I8[YJ]=9;var YJ;for(YJ=256;YJ<280;++YJ)I8[YJ]=7;var YJ;for(YJ=280;YJ<288;++YJ)I8[YJ]=8;var YJ,c$=new zJ(32);for(YJ=0;YJ<32;++YJ)c$[YJ]=5;var YJ,r4=G8(I8,9,0),d4=G8(I8,9,1),o4=G8(c$,5,0),i4=G8(c$,5,1),H0=function(J){var $=J[0];for(var Q=1;Q<J.length;++Q)if(J[Q]>$)$=J[Q];return $},Z8=function(J,$,Q){var K=$/8|0;return(J[K]|J[K+1]<<8)>>($&7)&Q},R0=function(J,$){var Q=$/8|0;return(J[Q]|J[Q+1]<<8|J[Q+2]<<16)>>($&7)},S0=function(J){return(J+7)/8|0},n$=function(J,$,Q){if($==null||$<0)$=0;if(Q==null||Q>J.length)Q=J.length;return new zJ(J.subarray($,Q))};var s4=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],uJ=function(J,$,Q){var K=Error($||s4[J]);if(K.code=J,Error.captureStackTrace)Error.captureStackTrace(K,uJ);if(!Q)throw K;return K},a4=function(J,$,Q,K){var Z=J.length,X=K?K.length:0;if(!Z||$.f&&!$.l)return Q||new zJ(0);var Y=!Q,W=Y||$.i!=2,B=$.i;if(Y)Q=new zJ(Z*3);var G=function(jJ){var GJ=Q.length;if(jJ>GJ){var i=new zJ(Math.max(GJ*2,jJ));i.set(Q),Q=i}},U=$.f||0,D=$.p||0,F=$.b||0,L=$.l,V=$.d,H=$.m,I=$.n,z=Z*8;do{if(!L){U=Z8(J,D,1);var T=Z8(J,D+1,3);if(D+=3,!T){var _=S0(D)+4,b=J[_-4]|J[_-3]<<8,n=_+b;if(n>Z){if(B)uJ(0);break}if(W)G(F+b);Q.set(J.subarray(_,n),F),$.b=F+=b,$.p=D=n*8,$.f=U;continue}else if(T==1)L=d4,V=i4,H=9,I=5;else if(T==2){var r=Z8(J,D,31)+257,C=Z8(J,D+10,15)+4,w=r+Z8(J,D+5,31)+1;D+=14;var S=new zJ(w),h=new zJ(19);for(var a=0;a<C;++a)h[C0[a]]=Z8(J,D+a*3,7);D+=C*3;var f=H0(h),s=(1<<f)-1,m=G8(h,f,1);for(var a=0;a<w;){var o=m[Z8(J,D,s)];D+=o&15;var _=o>>4;if(_<16)S[a++]=_;else{var A=0,v=0;if(_==16)v=3+Z8(J,D,3),D+=2,A=S[a-1];else if(_==17)v=3+Z8(J,D,7),D+=3;else if(_==18)v=11+Z8(J,D,127),D+=7;while(v--)S[a++]=A}}var c=S.subarray(0,r),M=S.subarray(r);H=H0(c),I=H0(M),L=G8(c,H,1),V=G8(M,I,1)}else uJ(1);if(D>z){if(B)uJ(0);break}}if(W)G(F+131072);var E=(1<<H)-1,N=(1<<I)-1,y=D;for(;;y=D){var A=L[R0(J,D)&E],u=A>>4;if(D+=A&15,D>z){if(B)uJ(0);break}if(!A)uJ(2);if(u<256)Q[F++]=u;else if(u==256){y=D,L=null;break}else{var x=u-254;if(u>264){var a=u-257,k=E6[a];x=Z8(J,D,(1<<k)-1)+nQ[a],D+=k}var p=V[R0(J,D)&N],l=p>>4;if(!p)uJ(3);D+=p&15;var M=n4[l];if(l>3){var k=S6[l];M+=R0(J,D)&(1<<k)-1,D+=k}if(D>z){if(B)uJ(0);break}if(W)G(F+131072);var e=F+x;if(F<M){var WJ=X-M,FJ=Math.min(M,e);if(WJ+F<0)uJ(3);for(;F<FJ;++F)Q[F]=K[WJ+F]}for(;F<e;++F)Q[F]=Q[F-M]}}if($.l=L,$.p=y,$.b=F,$.f=U,L)U=1,$.m=H,$.d=V,$.n=I}while(!U);return F!=Q.length&&Y?n$(Q,0,F):Q.subarray(0,F)},L8=function(J,$,Q){Q<<=$&7;var K=$/8|0;J[K]|=Q,J[K+1]|=Q>>8},m$=function(J,$,Q){Q<<=$&7;var K=$/8|0;J[K]|=Q,J[K+1]|=Q>>8,J[K+2]|=Q>>16},I0=function(J,$){var Q=[];for(var K=0;K<J.length;++K)if(J[K])Q.push({s:K,f:J[K]});var Z=Q.length,X=Q.slice();if(!Z)return{t:oQ,l:0};if(Z==1){var Y=new zJ(Q[0].s+1);return Y[Q[0].s]=1,{t:Y,l:1}}Q.sort(function(n,r){return n.f-r.f}),Q.push({s:-1,f:25001});var W=Q[0],B=Q[1],G=0,U=1,D=2;Q[0]={s:-1,f:W.f+B.f,l:W,r:B};while(U!=Z-1)W=Q[Q[G].f<Q[D].f?G++:D++],B=Q[G!=U&&Q[G].f<Q[D].f?G++:D++],Q[U++]={s:-1,f:W.f+B.f,l:W,r:B};var F=X[0].s;for(var K=1;K<Z;++K)if(X[K].s>F)F=X[K].s;var L=new rJ(F+1),V=_0(Q[U-1],L,0);if(V>$){var K=0,H=0,I=V-$,z=1<<I;X.sort(function(r,C){return L[C.s]-L[r.s]||r.f-C.f});for(;K<Z;++K){var T=X[K].s;if(L[T]>$)H+=z-(1<<V-L[T]),L[T]=$;else break}H>>=I;while(H>0){var _=X[K].s;if(L[_]<$)H-=1<<$-L[_]++-1;else++K}for(;K>=0&&H;--K){var b=X[K].s;if(L[b]==$)--L[b],++H}V=$}return{t:new zJ(L),l:V}},_0=function(J,$,Q){return J.s==-1?Math.max(_0(J.l,$,Q+1),_0(J.r,$,Q+1)):$[J.s]=Q},uQ=function(J){var $=J.length;while($&&!J[--$]);var Q=new rJ(++$),K=0,Z=J[0],X=1,Y=function(B){Q[K++]=B};for(var W=1;W<=$;++W)if(J[W]==Z&&W!=$)++X;else{if(!Z&&X>2){for(;X>138;X-=138)Y(32754);if(X>2)Y(X>10?X-11<<5|28690:X-3<<5|12305),X=0}else if(X>3){Y(Z),--X;for(;X>6;X-=6)Y(8304);if(X>2)Y(X-3<<5|8208),X=0}while(X--)Y(Z);X=1,Z=J[W]}return{c:Q.subarray(0,K),n:$}},p$=function(J,$){var Q=0;for(var K=0;K<$.length;++K)Q+=J[K]*$[K];return Q},dQ=function(J,$,Q){var K=Q.length,Z=S0($+2);J[Z]=K&255,J[Z+1]=K>>8,J[Z+2]=J[Z]^255,J[Z+3]=J[Z+1]^255;for(var X=0;X<K;++X)J[Z+X+4]=Q[X];return(Z+4+K)*8},hQ=function(J,$,Q,K,Z,X,Y,W,B,G,U){L8($,U++,Q),++Z[256];var D=I0(Z,15),F=D.t,L=D.l,V=I0(X,15),H=V.t,I=V.l,z=uQ(F),T=z.c,_=z.n,b=uQ(H),n=b.c,r=b.n,C=new rJ(19);for(var w=0;w<T.length;++w)++C[T[w]&31];for(var w=0;w<n.length;++w)++C[n[w]&31];var S=I0(C,7),h=S.t,a=S.l,f=19;for(;f>4&&!h[C0[f-1]];--f);var s=G+5<<3,m=p$(Z,I8)+p$(X,c$)+Y,o=p$(Z,F)+p$(X,H)+Y+14+3*f+p$(C,h)+2*C[16]+3*C[17]+7*C[18];if(B>=0&&s<=m&&s<=o)return dQ($,U,J.subarray(B,B+G));var A,v,c,M;if(L8($,U,1+(o<m)),U+=2,o<m){A=G8(F,L,0),v=F,c=G8(H,I,0),M=H;var E=G8(h,a,0);L8($,U,_-257),L8($,U+5,r-1),L8($,U+10,f-4),U+=14;for(var w=0;w<f;++w)L8($,U+3*w,h[C0[w]]);U+=3*f;var N=[T,n];for(var y=0;y<2;++y){var u=N[y];for(var w=0;w<u.length;++w){var x=u[w]&31;if(L8($,U,E[x]),U+=h[x],x>15)L8($,U,u[w]>>5&127),U+=u[w]>>12}}}else A=r4,v=I8,c=o4,M=c$;for(var w=0;w<W;++w){var k=K[w];if(k>255){var x=k>>18&31;if(m$($,U,A[x+257]),U+=v[x+257],x>7)L8($,U,k>>23&31),U+=E6[x];var p=k&31;if(m$($,U,c[p]),U+=M[p],p>3)m$($,U,k>>5&8191),U+=S6[p]}else m$($,U,A[k]),U+=v[k]}return m$($,U,A[256]),U+v[256]},l4=new E0([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),oQ=new zJ(0),t4=function(J,$,Q,K,Z,X){var Y=X.z||J.length,W=new zJ(K+Y+5*(1+Math.ceil(Y/7000))+Z),B=W.subarray(K,W.length-Z),G=X.l,U=(X.r||0)&7;if($){if(U)B[0]=X.r>>3;var D=l4[$-1],F=D>>13,L=D&8191,V=(1<<Q)-1,H=X.p||new rJ(32768),I=X.h||new rJ(V+1),z=Math.ceil(Q/3),T=2*z,_=function(OJ){return(J[OJ]^J[OJ+1]<<z^J[OJ+2]<<T)&V},b=new E0(25000),n=new rJ(288),r=new rJ(32),C=0,w=0,S=X.i||0,h=0,a=X.w||0,f=0;for(;S+2<Y;++S){var s=_(S),m=S&32767,o=I[s];if(H[m]=o,I[s]=m,a<=S){var A=Y-S;if((C>7000||h>24576)&&(A>423||!G)){U=hQ(J,B,0,b,n,r,w,h,f,S-f,U),h=C=w=0,f=S;for(var v=0;v<286;++v)n[v]=0;for(var v=0;v<30;++v)r[v]=0}var c=2,M=0,E=L,N=m-o&32767;if(A>2&&s==_(S-N)){var y=Math.min(F,A)-1,u=Math.min(32767,S),x=Math.min(258,A);while(N<=u&&--E&&m!=o){if(J[S+c]==J[S+c-N]){var k=0;for(;k<x&&J[S+k]==J[S+k-N];++k);if(k>c){if(c=k,M=N,k>y)break;var p=Math.min(N,k-2),l=0;for(var v=0;v<p;++v){var e=S-N+v&32767,WJ=H[e],FJ=e-WJ&32767;if(FJ>l)l=FJ,o=e}}}m=o,o=H[m],N+=m-o&32767}}if(M){b[h++]=268435456|A0[c]<<18|vQ[M];var jJ=A0[c]&31,GJ=vQ[M]&31;w+=E6[jJ]+S6[GJ],++n[257+jJ],++r[GJ],a=S+c,++C}else b[h++]=J[S],++n[J[S]]}}for(S=Math.max(S,a);S<Y;++S)b[h++]=J[S],++n[J[S]];if(U=hQ(J,B,G,b,n,r,w,h,f,S-f,U),!G)X.r=U&7|B[U/8|0]<<3,U-=7,X.h=I,X.p=H,X.i=S,X.w=a}else{for(var S=X.w||0;S<Y+G;S+=65535){var i=S+65535;if(i>=Y)B[U/8|0]=G,i=Y;U=dQ(B,U+1,J.subarray(S,i))}X.i=Y}return n$(W,0,K+S0(U)+Z)},e4=function(){var J=new Int32Array(256);for(var $=0;$<256;++$){var Q=$,K=9;while(--K)Q=(Q&1&&-306674912)^Q>>>1;J[$]=Q}return J}(),J7=function(){var J=-1;return{p:function($){var Q=J;for(var K=0;K<$.length;++K)Q=e4[Q&255^$[K]]^Q>>>8;J=Q},d:function(){return~J}}};var $7=function(J,$,Q,K,Z){if(!Z){if(Z={l:1},$.dictionary){var X=$.dictionary.subarray(-32768),Y=new zJ(X.length+J.length);Y.set(X),Y.set(J,X.length),J=Y,Z.w=X.length}}return t4(J,$.level==null?6:$.level,$.mem==null?Z.l?Math.ceil(Math.max(8,Math.min(13,Math.log(J.length)))*1.5):20:12+$.mem,Q,K,Z)},iQ=function(J,$){var Q={};for(var K in J)Q[K]=J[K];for(var K in $)Q[K]=$[K];return Q};var j8=function(J,$){return J[$]|J[$+1]<<8},oJ=function(J,$){return(J[$]|J[$+1]<<8|J[$+2]<<16|J[$+3]<<24)>>>0},z0=function(J,$){return oJ(J,$)+oJ(J,$+4)*4294967296},xJ=function(J,$,Q){for(;Q;++$)J[$]=Q,Q>>>=8};function Q7(J,$){return $7(J,$||{},0,0)}function K7(J,$){return a4(J,{i:2},$&&$.out,$&&$.dictionary)}var sQ=function(J,$,Q,K){for(var Z in J){var X=J[Z],Y=$+Z,W=K;if(Array.isArray(X))W=iQ(K,X[1]),X=X[0];if(ArrayBuffer.isView(X))Q[Y]=[X,W];else Q[Y+="/"]=[new zJ(0),W],sQ(X,Y,Q,K)}},fQ=typeof TextEncoder<"u"&&new TextEncoder,w0=typeof TextDecoder<"u"&&new TextDecoder,Z7=0;try{w0.decode(oQ,{stream:!0}),Z7=1}catch(J){}var X7=function(J){for(var $="",Q=0;;){var K=J[Q++],Z=(K>127)+(K>223)+(K>239);if(Q+Z>J.length)return{s:$,r:n$(J,Q-1)};if(!Z)$+=String.fromCharCode(K);else if(Z==3)K=((K&15)<<18|(J[Q++]&63)<<12|(J[Q++]&63)<<6|J[Q++]&63)-65536,$+=String.fromCharCode(55296|K>>10,56320|K&1023);else if(Z&1)$+=String.fromCharCode((K&31)<<6|J[Q++]&63);else $+=String.fromCharCode((K&15)<<12|(J[Q++]&63)<<6|J[Q++]&63)}};function N6(J,$){if($){var Q=new zJ(J.length);for(var K=0;K<J.length;++K)Q[K]=J.charCodeAt(K);return Q}if(fQ)return fQ.encode(J);var Z=J.length,X=new zJ(J.length+(J.length>>1)),Y=0,W=function(U){X[Y++]=U};for(var K=0;K<Z;++K){if(Y+5>X.length){var B=new zJ(Y+8+(Z-K<<1));B.set(X),X=B}var G=J.charCodeAt(K);if(G<128||$)W(G);else if(G<2048)W(192|G>>6),W(128|G&63);else if(G>55295&&G<57344)G=65536+(G&1047552)|J.charCodeAt(++K)&1023,W(240|G>>18),W(128|G>>12&63),W(128|G>>6&63),W(128|G&63);else W(224|G>>12),W(128|G>>6&63),W(128|G&63)}return n$(X,0,Y)}function k6(J,$){if($){var Q="";for(var K=0;K<J.length;K+=16384)Q+=String.fromCharCode.apply(null,J.subarray(K,K+16384));return Q}else if(w0)return w0.decode(J);else{var Z=X7(J),X=Z.s,Q=Z.r;if(Q.length)uJ(8);return X}}var Y7=function(J,$){return $+30+j8(J,$+26)+j8(J,$+28)},j7=function(J,$,Q){var K=j8(J,$+28),Z=j8(J,$+30),X=k6(J.subarray($+46,$+46+K),!(j8(J,$+8)&2048)),Y=$+46+K,W=G7(J,Y,Z,Q,oJ(J,$+20),oJ(J,$+24),oJ(J,$+42)),B=W[0],G=W[1],U=W[2];return[j8(J,$+10),B,G,X,Y+Z+j8(J,$+32),U]},G7=function(J,$,Q,K,Z,X,Y){var W=Z==4294967295,B=X==4294967295,G=Y==4294967295,U=$+Q,D=W+B+G;if(K&&D){for(;$+4<U;$+=4+j8(J,$+2))if(j8(J,$)==1)return[W?z0(J,$+4+8*B):Z,B?z0(J,$+4):X,G?z0(J,$+4+8*(B+W)):Y,1];if(K<2)uJ(13)}return[Z,X,Y,0]},N0=function(J){var $=0;if(J)for(var Q in J){var K=J[Q].length;if(K>65535)uJ(9);$+=K+4}return $},mQ=function(J,$,Q,K,Z,X,Y,W){var B=K.length,G=Q.extra,U=W&&W.length,D=N0(G);if(xJ(J,$,Y!=null?33639248:67324752),$+=4,Y!=null)J[$++]=20,J[$++]=Q.os;J[$]=20,$+=2,J[$++]=Q.flag<<1|(X<0&&8),J[$++]=Z&&8,J[$++]=Q.compression&255,J[$++]=Q.compression>>8;var F=new Date(Q.mtime==null?Date.now():Q.mtime),L=F.getFullYear()-1980;if(L<0||L>119)uJ(10);if(xJ(J,$,L<<25|F.getMonth()+1<<21|F.getDate()<<16|F.getHours()<<11|F.getMinutes()<<5|F.getSeconds()>>1),$+=4,X!=-1)xJ(J,$,Q.crc),xJ(J,$+4,X<0?-X-2:X),xJ(J,$+8,Q.size);if(xJ(J,$+12,B),xJ(J,$+14,D),$+=16,Y!=null)xJ(J,$,U),xJ(J,$+6,Q.attrs),xJ(J,$+10,Y),$+=14;if(J.set(K,$),$+=B,D)for(var V in G){var H=G[V],I=H.length;xJ(J,$,+V),xJ(J,$+2,I),J.set(H,$+4),$+=4+I}if(U)J.set(W,$),$+=U;return $},B7=function(J,$,Q,K,Z){xJ(J,$,101010256),xJ(J,$+8,Q),xJ(J,$+10,Q),xJ(J,$+12,K),xJ(J,$+16,Z)};function aQ(J,$){if(!$)$={};var Q={},K=[];sQ(J,"",Q,$);var Z=0,X=0;for(var Y in Q){var W=Q[Y],B=W[0],G=W[1],U=G.level==0?0:8,D=N6(Y),F=D.length,L=G.comment,V=L&&N6(L),H=V&&V.length,I=N0(G.extra);if(F>65535)uJ(11);var z=U?Q7(B,G):B,T=z.length,_=J7();_.p(B),K.push(iQ(G,{size:B.length,crc:_.d(),c:z,f:D,m:V,u:F!=Y.length||V&&L.length!=H,o:Z,compression:U})),Z+=30+F+I+T,X+=76+2*(F+I)+(H||0)+T}var b=new zJ(X+22),n=Z,r=X-Z;for(var C=0;C<K.length;++C){var D=K[C];mQ(b,D.o,D,D.f,D.u,D.c.length);var w=30+D.f.length+N0(D.extra);b.set(D.c,D.o+w),mQ(b,Z,D,D.f,D.u,D.c.length,D.o,D.m),Z+=16+w+(D.m?D.m.length:0)}return B7(b,Z,K.length,r,n),b}function lQ(J,$){var Q={},K=J.length-22;for(;oJ(J,K)!=101010256;--K)if(!K||J.length-K>65558)uJ(13);var Z=j8(J,K+8);if(!Z)return{};var X=oJ(J,K+16),Y=oJ(J,K-20)==117853008;if(Y){var W=oJ(J,K-12);if(Y=oJ(J,W)==101075792,Y)Z=oJ(J,W+32),X=oJ(J,W+48)}var B=$&&$.filter;for(var G=0;G<Z;++G){var U=j7(J,X,Y),D=U[0],F=U[1],L=U[2],V=U[3],H=U[4],I=U[5],z=Y7(J,I);if(X=H,!B||B({name:V,size:F,originalSize:L,compression:D}))if(!D)Q[V]=n$(J,z,z+F);else if(D==8)Q[V]=K7(J.subarray(z,z+F),{out:new zJ(L)});else uJ(14,"unknown compression type "+D)}return Q}var W7=new Set(["frame","stack","row","col","grid","group"]);var F7=new Set(["text","img","svg","shape","instance"]),q7=new Set([...W7,...F7]),U7=new Set(["preview","tokens","styles","fonts","assets","meta","components"]),gY=new Set([...q7,...U7,"gui","color","number","string","text-style","fill-style","effect-style","font","image","appearance","fill","effect","segment","path","component","component-set","variant","props","prop"]);var D7="design.guix",tQ="preview.webp",k0="assets/";function L7(J){return J[0]===80&&J[1]===75}function V7(J){return J.startsWith(k0)?J:k0+J}function eQ(J){if(!L7(J))return{xml:k6(J),assets:{}};let $=lQ(J),Q=Object.keys($).find((Z)=>Z.endsWith(".guix"));if(!Q)throw Error("no .guix entry inside the .gui package");let K={xml:k6($[Q]),assets:{}};for(let[Z,X]of Object.entries($)){if(Z===Q)continue;if(Z===tQ){K.preview=X;continue}if(Z.startsWith(k0))K.assets[Z]=X}return K}function J1(J){let $={[D7]:N6(J.xml)};if(J.preview)$[tQ]=J.preview;for(let[Q,K]of Object.entries(J.assets))$[V7(Q)]=K;return aQ($)}function O7(J){if(J==="svg")return"image/svg+xml";if(J==="jpg"||J==="jpeg")return"image/jpeg";return`image/${J}`}function $1(J){let $=eQ(J),Q={};for(let[K,Z]of Object.entries($.assets)){let X=K.split(".").pop()||"png",Y=new Blob([Z],{type:O7(X)});Q[K]=URL.createObjectURL(Y)}return{xml:$.xml,assetMap:Q,pkg:$}}function x0(J){return{xml:J,assetMap:{},pkg:{xml:J,assets:{}}}}async function y0(J){let $=await fetch(J);if(!$.ok)throw Error(`gui-embed: failed to fetch "${J}" (${$.status})`);let Q=new Uint8Array(await $.arrayBuffer());return $1(Q)}function Q1(J){return J1(J)}function g0(J){for(let $ of Object.values(J))if($.startsWith("blob:"))URL.revokeObjectURL($)}var I$=c8();var{assign:$X,hasDefaultHTMLNamespace:QX,isHTMLMimeType:KX,isValidMimeType:ZX,MIME_TYPE:XX,NAMESPACE:YX}=I$;var i6=s$();var{DOMException:jX,DOMExceptionName:GX,ExceptionCode:BX,ParseError:WX}=i6;var wJ=e0();var{Attr:FX,CDATASection:qX,CharacterData:UX,Comment:DX,Document:LX,DocumentFragment:VX,DocumentType:OX,DOMImplementation:MX,Element:PX,Entity:HX,EntityReference:RX,LiveNodeList:IX,NamedNodeMap:zX,Node:CX,NodeList:AX,Notation:TX,ProcessingInstruction:_X,Text:wX,XMLSerializer:NX}=wJ;var s6=WK();var{DOMParser:QQ,normalizeLineEndings:EX,onErrorStopParsing:SX,onWarningStopParsing:kX}=s6;var xX=new Set(["x","y","w","h","opacity","rotation","radius","spread","font-size","font-weight","line-height","letter-spacing","arc-start","arc-end","arc-inner","border-width","min-width","max-width","min-height","max-height","columns","corner-smoothing","paragraph-spacing","paragraph-indent","pt","pr","pb","pl","max-lines","mask-x","mask-y","mask-width","mask-height","miter-limit","unit","col-span","row-span"]),yX=new Set(["wrap","clip","mask","abs","truncate","reverse-z"]);function G6(J,$){if($==="true")return!0;if($==="false")return!1;if(yX.has(J)&&$==="")return!0;if(xX.has(J)){if((J==="w"||J==="h")&&($==="fill"||$==="hug"))return $;let Q=Number($);return Number.isFinite(Q)?Q:$}return $}function FK(J,$,Q,K){let Z={},X={};for(let B=0;B<J.attributes.length;B++){let{name:G,value:U}=J.attributes[B],D=z$(U,$);Z[G]=G6(G,D);let F=a6(U,$);if(F)X[G]=F}let Y=J.getAttribute("fill-style");if(Y&&Q[Y]!==void 0)Z.fill=z$(Q[Y],$),delete Z["fill-style"],delete X["fill-style"],Z.fillStyle=Y;let W=J.getAttribute("text-style");if(W&&K[W]){let B=K[W];for(let G of Object.keys(B))if(J.getAttribute(G)===null)Z[G]=G6(G,z$(B[G],$));delete Z["text-style"],delete X["text-style"],Z.textStyle=W}if(Object.keys(X).length)Z.tokens=X;return Z}function z$(J,$){if(!J||J.indexOf("$")===-1)return J;return J.replace(/\$([A-Za-z0-9_.-]+)/g,(Q,K)=>$[K]??Q)}function a6(J,$){if(!J||J.indexOf("$")===-1)return;let Q=J.match(/\$([A-Za-z0-9_.-]+)/g);if(!Q)return;for(let K of Q){let Z=K.slice(1);if($[Z]!==void 0)return Z}return}function gX(J,$,Q){if(J.axis&&J.byValue){let K=$[J.axis]?$[J.axis].default:void 0,Z=Q[J.axis]!==void 0?Q[J.axis]:K;if(Z!==void 0&&J.byValue[Z]!==void 0)return J.byValue[Z];if(K!==void 0&&J.byValue[K]!==void 0)return J.byValue[K]}return J.value}function bX(J,$,Q){let K={};for(let Z of Object.keys(J)){let X=gX(J[Z],$,Q);if(X!==void 0)K[Z]=X}return K}var vX={abs:"true",clip:"true",gap:"auto",mask:"true","reverse-z":"true",truncate:"true",wrap:"true"};function uX(J){let $="",Q=0;while(Q<J.length){let K=J[Q];if(K==='"'||K==="'"){let U=K,D=Q;Q++;while(Q<J.length&&J[Q]!==U)Q++;if(Q<J.length)Q++;$+=J.slice(D,Q);continue}if(!/\s/.test(K)){$+=K,Q++;continue}let X=Q;while(Q<J.length&&/\s/.test(J[Q]))Q++;let Y=Q;if(!/[A-Za-z]/.test(J[Q]||"")){$+=J.slice(X,Q+1),Q++;continue}while(Q<J.length&&/[\w-]/.test(J[Q]))Q++;let W=J.slice(Y,Q),B=J[Q],G=vX[W];if(G&&(/\s/.test(B||"")||B==="/"||B===">"))$+=`${J.slice(X,Y)}${W}="${G}"`;else $+=J.slice(X,Q)}return $}function hX(J){let $="",Q=0;while(Q<J.length){let K=J.indexOf("<",Q);if(K===-1){$+=J.slice(Q);break}if($+=J.slice(Q,K),J.startsWith("<!--",K)){let B=J.indexOf("-->",K+4),G=B===-1?J.length:B+3;$+=J.slice(K,G),Q=G;continue}let Z=K+1,X=null;while(Z<J.length){let B=J[Z];if(X){if(B===X)X=null}else if(B==='"'||B==="'")X=B;else if(B===">")break;Z++}let Y=Z<J.length?Z+1:J.length,W=J.slice(K,Y);if(/^<\/|^<\?|^<!/.test(W))$+=W;else $+=uX(W);Q=Y}return $}function fX(J){let $={},Q=(K)=>{let Z=K.getAttribute("name"),X=K.getAttribute("values");if(!Z||!X)return;let Y=X.trim().split(/\s+/).filter(Boolean);if(!Y.length)return;let W=K.getAttribute("default"),B=W&&Y.indexOf(W)!==-1?W:Y[0];$[Z]={values:Y,default:B}};for(let K of Array.from(J.children))if(K.tagName==="mode")Q(K);else if(K.tagName==="modes"){for(let Z of Array.from(K.children))if(Z.tagName==="mode")Q(Z)}return $}var mX={color:"color",number:"number",string:"string"};function pX(J,$){let Q={};for(let K of Array.from(J.children)){if(K.tagName!=="tokens")continue;for(let Z of Array.from(K.children)){let X=mX[Z.tagName];if(!X)continue;let Y=Z.getAttribute("name");if(!Y)continue;let W={type:X},B=Z.getAttribute("value");if(B!==null)W.value=B;let G,U={};for(let D=0;D<Z.attributes.length;D++){let F=Z.attributes[D],L,V;for(let H of Object.keys($)){let I=H+"-";if(F.name.indexOf(I)!==0)continue;let z=F.name.slice(I.length);if($[H].values.indexOf(z)===-1)continue;if(L===void 0||H.length>L.length)L=H,V=z}if(L===void 0||V===void 0)continue;if(G===void 0)G=L;if(L!==G)continue;U[V]=F.value}if(G!==void 0&&Object.keys(U).length>0)W.axis=G,W.byValue=U;Q[Y]=W}}return Q}function cX(J){let $={};for(let Q of Array.from(J.children)){if(Q.tagName!=="fonts")continue;for(let K of Array.from(Q.children)){if(K.tagName!=="font")continue;let Z=K.getAttribute("family"),X=K.getAttribute("source");if(!Z||!X)continue;$[Z]={source:X,category:K.getAttribute("category")||void 0,weights:K.getAttribute("weights")||void 0,styles:K.getAttribute("styles")||void 0,variants:K.getAttribute("variants")||void 0}}}return $}var nX=["font-family","font-size","font-weight","font-style","font-variation","font-feature","line-height","letter-spacing","decoration","decoration-color","decoration-style","decoration-thickness","text-case"];function rX(J){let $={};for(let Q of Array.from(J.children)){if(Q.tagName!=="styles")continue;for(let K of Array.from(Q.children)){if(K.tagName!=="text-style")continue;let Z=K.getAttribute("name");if(!Z)continue;let X={};for(let Y of nX){let W=K.getAttribute(Y);if(W!==null)X[Y]=W}$[Z]=X}}return $}function dX(J){let $={};for(let Q of Array.from(J.children)){if(Q.tagName!=="styles")continue;for(let K of Array.from(Q.children)){if(K.tagName!=="fill-style")continue;let Z=K.getAttribute("name"),X=K.getAttribute("value");if(Z&&X!==null)$[Z]=X}}return $}function oX(J,$){let Q={};for(let K of Array.from(J.children)){if(K.tagName!=="styles")continue;for(let Z of Array.from(K.children)){if(Z.tagName!=="effect-style")continue;let X=Z.getAttribute("name");if(!X)continue;Q[X]=Array.from(Z.children).filter((Y)=>Y.tagName==="effect").map((Y)=>UK(Y,$))}}return Q}function iX(J,$){if(Object.keys($).length>0)return $;let Q={};for(let K of Array.from(J.children)){if(K.tagName!=="assets")continue;for(let Z of Array.from(K.children)){if(Z.tagName!=="image")continue;let X=Z.getAttribute("id"),Y=Z.getAttribute("format")||"png",W=Z.getAttribute("src")||"";if(!X)continue;let B=Y==="svg"?"svg+xml":Y;if(W.startsWith("base64:"))Q[`assets/${X}.${Y}`]=`data:image/${B};base64,${W.slice(7)}`;else if(W)Q[`assets/${X}.${Y}`]=W}}return Q}var sX=new Set(["frame","stack","row","col","grid","group"]),aX=new Set(["text","img","rect","ellipse","line","svg","shape","instance"]),lX=new Set([...sX,...aX]);function UK(J,$){let Q={};for(let K=0;K<J.attributes.length;K++){let{name:Z,value:X}=J.attributes[K];if(Q[Z]=G6(Z,z$(X,$)),Z==="color"){let Y=a6(X,$);if(Y)Q.token=Y}}return Q}function tX(J,$,Q,K,Z){let X=[],Y=[],W=[];for(let B of Array.from(J.children))if(B.tagName==="fill"){let G={};for(let U=0;U<B.attributes.length;U++){let{name:D,value:F}=B.attributes[U],L=z$(F,$);if(D==="value"){let V=a6(F,$);if(V)G.token=V}if(D==="src")L=Z[L]||L;G[D]=G6(D,L)}X.push(G)}else if(B.tagName==="effect")Y.push(UK(B,$));else if(B.tagName==="border"){let G={};for(let U=0;U<B.attributes.length;U++){let{name:D,value:F}=B.attributes[U];if(G[D]=G6(D,z$(F,$)),D==="color"){let L=a6(F,$);if(L)G.token=L}}W.push(G)}return{fills:X,effects:Y,borders:W}}function j6(J,$,Q,K,Z,X){let Y=FK(J,$,Q,K),W=J.getAttribute("src");if(W&&X[W])Y.src=X[W];let B=J.getAttribute("effect-style"),G={type:J.tagName,...Y};if(B)delete G["effect-style"],G.effectStyle=B;if(J.tagName==="svg"&&!J.getAttribute("src")){let V=new XMLSerializer,H=Array.from(J.children);if(H.length>0){let I="";for(let z=0;z<H.length;z++)I+=V.serializeToString(H[z]);G.svgContent=I.replace(/\s+xmlns=""/g,"")}return G}let U=[],D=[],F=[],L;for(let V of Array.from(J.children))if(V.tagName==="appearance")L=tX(V,$,Q,Z,X);else if(V.tagName==="segment"){let H=FK(V,$,Q,K);D.push({type:"segment",...H})}else if(V.tagName==="path"){let H=V.getAttribute("d");if(H)F.push(H)}else if(lX.has(V.tagName))U.push(j6(V,$,Q,K,Z,X));if(B&&Z[B]){let V=Z[B];if(!L)L={fills:[],effects:[],borders:[]};L.effects=[...V,...L.effects]}if(L)G.appearance=L;if(D.length)G.segments=D;if(F.length)G.paths=F;if(U.length)G.children=U;return G}function eX(J,$,Q,K,Z,X){let Y={};for(let W of Array.from(J.children)){if(W.tagName!=="components")continue;for(let B of Array.from(W.children))if(B.tagName==="component"){let G=B.getAttribute("id");if(!G)continue;let U=Array.from(B.children).find((F)=>F.tagName==="props"),D=Array.from(B.children).find((F)=>F.tagName!=="props");Y[G]={id:G,name:B.getAttribute("name")||void 0,props:U?qK(U):[],body:D?j6(D,$,Q,K,Z,X):null}}else if(B.tagName==="component-set"){let G=B.getAttribute("id");if(!G)continue;let U=[];for(let D of Array.from(B.children)){if(D.tagName!=="variant")continue;let F=D.getAttribute("id");if(!F)continue;let L={};for(let I=0;I<D.attributes.length;I++){let{name:z,value:T}=D.attributes[I];if(z!=="id")L[z]=T}let V=Array.from(D.children).find((I)=>I.tagName!=="props");U.push({id:F,attrs:L,body:V?j6(V,$,Q,K,Z,X):null});let H=Array.from(D.children).find((I)=>I.tagName==="props");Y[F]={id:F,props:H?qK(H):[],body:V?j6(V,$,Q,K,Z,X):null}}Y[G]={id:G,name:B.getAttribute("name")||void 0,props:[],body:null,variants:U}}}return Y}function qK(J){let $=[];for(let Q of Array.from(J.children)){if(Q.tagName!=="prop")continue;let K=Q.getAttribute("name"),Z=Q.getAttribute("type"),X=Q.getAttribute("target"),Y=Q.getAttribute("bind");if(!K||!Z||!X)continue;let W={name:K,type:Z,target:X};if(Y)W.bind=Y;$.push(W)}return $}function DK(J,$){let Q;try{let I=hX(J).replace(/&(?!amp;|lt;|gt;|quot;|apos;|#)/g,"&amp;"),z=globalThis.DOMParser;if(z){if(Q=new z().parseFromString(I,"text/xml"),Q.querySelector?.("parsererror"))return null}else Q=new QQ({onError:(T,_)=>{if(T==="fatalError")throw Error(_)}}).parseFromString(I,"text/xml")}catch{return null}let K=Q.documentElement;if(!K||K.tagName!=="gui")return null;let Z=fX(K),X=pX(K,Z),Y=bX(X,Z,{}),W=cX(K),B=rX(K),G=dX(K),U=oX(K,Y),D=iX(K,$||{}),F=eX(K,Y,G,B,U,D),L=new Set(["stack","row","col","grid"]),V=null;for(let I of Array.from(K.children))if(I.tagName==="frame"||L.has(I.tagName)){V=I;break}let H=V?j6(V,Y,G,B,U,D):null;return{version:K.getAttribute("version"),name:K.getAttribute("name"),platform:K.getAttribute("platform"),fonts:W,modes:Z,tokenDefs:X,tokens:Y,textStyles:B,styles:B,fillStyles:G,effectStyles:U,assets:D,components:F,root:H}}function KQ(J){try{return DK(J)?.modes??{}}catch{return{}}}function ZQ(J){return Object.keys(J).filter(($)=>J[$].values.length>1)}var LK="gui-embed";class XQ extends HTMLElement{_canvas;_bar;_zoomCtl=null;_decoded=null;_modes={};_mode={};_ro=null;_userZoomed=!1;static get observedAttributes(){return["src"]}connectedCallback(){if(!this._canvas)this._build();this._load()}disconnectedCallback(){if(this._ro?.disconnect(),this._ro=null,this._decoded)g0(this._decoded.assetMap);this._decoded=null}attributeChangedCallback(J){if(J==="src"&&this._canvas)this._load()}_build(){let J=getComputedStyle(this);if(J.position==="static")this.style.position="relative";if(J.display==="inline")this.style.display="block";this.style.overflow="hidden";let $=document.createElement("div");$.className="gui-embed-canvas";let Q=this.getAttribute("grid")!=="false";$.style.cssText=["position:absolute;inset:0","background-color:var(--gui-embed-bg, #fafaf8)",Q?"background-image:radial-gradient(var(--gui-embed-dot, rgba(0,0,0,.14)) 1px, transparent 1.4px);background-size:var(--gui-embed-dot-gap, 18px) var(--gui-embed-dot-gap, 18px);background-position:center":""].filter(Boolean).join(";"),this.appendChild($),this._canvas=$;let K=()=>this._userZoomed=!0;$.addEventListener("wheel",K,{passive:!0}),$.addEventListener("pointerdown",K),this._ro=new ResizeObserver(()=>{if(!this._userZoomed)this._zoomCtl?.(1)}),this._ro.observe(this);let Z=document.createElement("div");Z.className="gui-embed-controls",Z.style.cssText=["position:absolute;top:8px;right:8px;z-index:2","display:flex;gap:4px;padding:4px","border-radius:8px;background:rgba(20,20,20,.55)","backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)","opacity:0;transition:opacity .15s ease"].join(";"),this.appendChild(Z),this._bar=Z,this.addEventListener("pointerenter",()=>Z.style.opacity="1"),this.addEventListener("pointerleave",()=>Z.style.opacity="0")}async _load(){try{let J,$=this.getAttribute("src");if($)J=await y0($);else{let Q=this.querySelector(':scope > script[type="application/gui"]');if(!Q)return;J=x0(Q.textContent??"")}if(this._decoded)g0(this._decoded.assetMap);this._decoded=J,this._userZoomed=!1,this._modes=KQ(J.xml),this._mode={};for(let[Q,K]of Object.entries(this._modes))this._mode[Q]=K.default;this._render(),this._buildControls()}catch(J){this._canvas.textContent=String(J?.message??J),this._canvas.style.cssText+=";display:flex;align-items:center;justify-content:center;font:13px system-ui;color:#c00;padding:12px;text-align:center"}}_render(){if(!this._decoded)return;let{xml:J,assetMap:$}=this._decoded,Q=this.getAttribute("zoom")!=="false";if(!this._hasHeight()){w6(J,this._canvas,$,{mode:this._mode});let K=this._canvas.querySelector(".gui-relative"),Z=K?.offsetWidth??0,X=K?.offsetHeight??0;if(Z>0&&X>0)if(this.style.width)this.style.aspectRatio=`${Z} / ${X}`;else this.style.width=`${Z}px`,this.style.height=`${X}px`;requestAnimationFrame(()=>{this._zoomCtl=w6(J,this._canvas,$,{zoom:Q,mode:this._mode})});return}this._zoomCtl=w6(J,this._canvas,$,{zoom:Q,mode:this._mode})}_hasHeight(){if(this.style.height||this.style.aspectRatio)return!0;let J=getComputedStyle(this).height;return!!J&&J!=="auto"&&parseFloat(J)>1}_buildControls(){let J=this._bar;if(J.innerHTML="",this.getAttribute("zoom")!=="false")J.appendChild(this._btn("Fit","Reset zoom",()=>this._zoomCtl?.(1)));let $=ZQ(this._modes);if(this.hasAttribute("mode-switch")&&$.length)for(let Q of $)J.appendChild(this._modeSelect(Q));if(this.hasAttribute("copy"))J.appendChild(this._btn("Copy","Copy .gui markup",async()=>{if(this._decoded)await navigator.clipboard.writeText(this._decoded.xml)}));if(this.hasAttribute("download"))J.appendChild(this._btn("Download","Download .gui file",()=>this._download()));J.style.display=J.children.length?"flex":"none"}_btn(J,$,Q){let K=document.createElement("button");return K.type="button",K.textContent=J,K.title=$,K.style.cssText=["all:unset;cursor:pointer;font:600 12px/1 system-ui","color:#fff;padding:6px 9px;border-radius:5px"].join(";"),K.addEventListener("pointerenter",()=>K.style.background="rgba(255,255,255,.18)"),K.addEventListener("pointerleave",()=>K.style.background="transparent"),K.addEventListener("click",Q),K}_modeSelect(J){let $=document.createElement("select");$.title=`Mode: ${J}`,$.style.cssText=["all:unset;cursor:pointer;font:600 12px/1 system-ui","color:#fff;padding:6px 9px;border-radius:5px"].join(";");for(let Q of this._modes[J].values){let K=document.createElement("option");if(K.value=Q,K.textContent=Q,K.style.color="#000",Q===this._mode[J])K.selected=!0;$.appendChild(K)}return $.addEventListener("change",()=>{this._mode[J]=$.value,this._render()}),$}_download(){if(!this._decoded)return;let J=Q1(this._decoded.pkg),$=(this.getAttribute("src")?.split("/").pop()||"design.gui").replace(/\.guix$/,".gui"),Q=URL.createObjectURL(new Blob([J],{type:"application/octet-stream"})),K=document.createElement("a");K.href=Q,K.download=$.endsWith(".gui")?$:$+".gui",K.click(),setTimeout(()=>URL.revokeObjectURL(Q),1000)}}function YQ(){if(typeof customElements<"u"&&!customElements.get(LK))customElements.define(LK,XQ)}var VK=!1;function Yj(){if(VK||typeof window>"u")return;VK=!0,YQ()}export{ZQ as switchableAxes,Yj as install,y0 as fetchGui,KQ as detectModes,YQ as defineGuiEmbed,x0 as decodeMarkup,$1 as decodeBytes,XQ as GuiEmbedElement};
1
+ import"@dotgui/render/canvas";import{pack as D}from"@dotgui/kit/package";var Y=/uses token '(\$?[^']+)', which is not declared/,C=/uses text style '([^']+)', which is not declared/;function Z(j,q=8){let J=new Set,B=[],F=[],P=[];for(let $ of j.split("; ")){let W=$.trim();if(!W||J.has(W))continue;J.add(W);let z=Y.exec(W);if(z){let I=z[1].startsWith("$")?z[1]:`$${z[1]}`;if(!B.includes(I))B.push(I);continue}let H=C.exec(W);if(H){if(!F.includes(H[1]))F.push(H[1]);continue}P.push(W)}let Q=[];if(B.length)Q.push(U(B.length===1?"Undeclared token":`${B.length} undeclared tokens`,B));if(F.length)Q.push(U(F.length===1?"Undeclared text style":`${F.length} undeclared text styles`,F));Q.push(...P);let V=Math.max(1,q);if(Q.length<=V)return{lines:Q,more:0};return{lines:Q.slice(0,V),more:Q.length-V}}function U(j,q){let J=q.slice(0,12).join(", "),B=q.length-12;return`${j}: ${J}${B>0?`, and ${B} more`:""}`}var R="gui-embed",M=0.25,N=8;class K extends HTMLElement{_stage;_view;_canvas;_bar;_ro=null;_bytes=null;_markup="";_size=null;_scale=1;_x=0;_y=0;_userZoomed=!1;_settle=null;_controlsPage=null;static get observedAttributes(){return["src","page"]}connectedCallback(){if(!this._stage)this._build();this._load()}disconnectedCallback(){this._ro?.disconnect(),this._ro=null}attributeChangedCallback(j){if(!this._stage)return;if(j==="src")this._load();else if(j==="page")this._showPage(this.getAttribute("page"))}get canvas(){return this._canvas}get pages(){return this._canvas?.pages??[]}get page(){return this._canvas?.page??null}set page(j){if(j==null)this.removeAttribute("page");else this.setAttribute("page",j)}_showPage(j){if(!j||j===this._canvas.page)return;if(!this._canvas.pages.some((q)=>q.name===j))return;this._userZoomed=!1,this._canvas.page=j}_build(){let j=getComputedStyle(this);if(j.position==="static")this.style.position="relative";if(j.display==="inline")this.style.display="block";this.style.overflow="hidden";let q=document.createElement("div");q.className="gui-embed-canvas";let J=this.getAttribute("grid")!=="false";q.style.cssText=["position:absolute;inset:0;touch-action:none","background-color:var(--gui-embed-bg, #fafaf8)",J?"background-image:radial-gradient(var(--gui-embed-dot, rgba(0,0,0,.14)) 1px, transparent 1.4px);background-size:var(--gui-embed-dot-gap, 18px) var(--gui-embed-dot-gap, 18px);background-position:center":""].filter(Boolean).join(";"),this.appendChild(q),this._stage=q;let B=document.createElement("div");B.style.cssText="position:absolute;left:0;top:0;width:max-content;transform-origin:0 0",q.appendChild(B),this._view=B;let F=document.createElement("gui-canvas");F.addEventListener("render",(Q)=>this._rendered(Q.detail)),F.addEventListener("error",(Q)=>this._fail(Q.detail.message)),B.appendChild(F),this._canvas=F,this._bindZoom(),this._ro=new ResizeObserver(()=>{if(!this._userZoomed)this.fit()}),this._ro.observe(this);let P=document.createElement("div");P.className="gui-embed-controls",P.style.cssText=["position:absolute;top:8px;right:8px;z-index:2","display:flex;gap:4px;padding:4px","border-radius:8px;background:rgba(20,20,20,.55)","backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)","opacity:0;transition:opacity .15s ease"].join(";"),this.appendChild(P),this._bar=P,this.addEventListener("pointerenter",()=>P.style.opacity="1"),this.addEventListener("pointerleave",()=>P.style.opacity="0")}async _load(){this._size=null,this._userZoomed=!1,this._canvas.mode={};try{let j=this.getAttribute("src");if(j){let q=await fetch(j);if(!q.ok)throw Error(`gui-embed: failed to fetch "${j}" (${q.status})`);this._bytes=new Uint8Array(await q.arrayBuffer()),this._markup="",await this._canvas.loadBytes(this._bytes),this._showPage(this.getAttribute("page"))}else{let q=this.querySelector(':scope > script[type="application/gui"]');if(!q){if(document.readyState==="loading")document.addEventListener("DOMContentLoaded",()=>void this._load(),{once:!0});return}this._bytes=null,this._markup=q.textContent??"",await this._canvas.loadMarkup(this._markup)}this._buildControls()}catch(j){this._fail(String(j?.message??j))}}_fail(j){let q=this.querySelector(":scope > .gui-embed-error");if(!q)q=document.createElement("div"),q.className="gui-embed-error",q.setAttribute("role","alert"),q.style.cssText=["position:absolute;inset:0;z-index:1;overflow:auto;box-sizing:border-box","display:flex;padding:16px","background:var(--gui-embed-bg, #fafaf8)","font:13px/1.45 system-ui,sans-serif;color:#333"].join(";"),this.appendChild(q);let{lines:J,more:B}=Z(j),F=document.createElement("div");F.className="gui-embed-error-body",F.style.cssText="margin:auto;max-width:56ch;text-align:left";let P=document.createElement("div");P.className="gui-embed-error-title",P.style.cssText="font-weight:600;color:#c00;margin-bottom:6px",P.textContent="This design can't be drawn",F.appendChild(P);let Q=document.createElement("ul");Q.className="gui-embed-error-list",Q.style.cssText="margin:0;padding-left:18px;overflow-wrap:anywhere";for(let V of J){let $=document.createElement("li");$.textContent=V,Q.appendChild($)}if(B){let V=document.createElement("li");V.className="gui-embed-error-more",V.style.cssText="list-style:none;margin-left:-18px;color:#777",V.textContent=`and ${B} more`,Q.appendChild(V)}F.appendChild(Q),q.replaceChildren(F)}_rendered(j){if(this.querySelector(":scope > .gui-embed-error")?.remove(),this._canvas.page!==this._controlsPage)this._buildControls();let q=!this._size||this._size.width!==j.width||this._size.height!==j.height;if(this._size={width:j.width,height:j.height},!q)return;if(!this._hasHeight())if(this.style.width)this.style.aspectRatio=`${j.width} / ${j.height}`;else this.style.width=`${j.width}px`,this.style.height=`${j.height}px`;if(!this._userZoomed)this.fit()}_hasHeight(){if(this.style.height||this.style.aspectRatio)return!0;let j=getComputedStyle(this);if(j.aspectRatio&&j.aspectRatio!=="auto")return!0;return this.clientHeight>1}fit(){if(!this._size)return;let{width:j,height:q}=this._size,J=this._stage.getBoundingClientRect();if(J.width<1||J.height<1)return;this._scale=Math.min(J.width/j,J.height/q),this._x=(J.width-j*this._scale)/2,this._y=(J.height-q*this._scale)/2,this._userZoomed=!1,this._apply()}zoomBy(j,q,J){if(!this._size)return;let B=this._stage.getBoundingClientRect(),F=Math.min(B.width/this._size.width,B.height/this._size.height),P=Math.min(Math.max(this._scale*j,F*M),F*N),Q=q??B.width/2,V=J??B.height/2;this._x=Q-(Q-this._x)*P/this._scale,this._y=V-(V-this._y)*P/this._scale,this._scale=P,this._userZoomed=!0,this._apply()}_apply(){if(this._view.style.transform=`translate(${this._x}px, ${this._y}px) scale(${this._scale})`,this._settle)clearTimeout(this._settle);this._settle=setTimeout(()=>{let j=Math.min(Math.max(2,Math.ceil((window.devicePixelRatio||1)*this._scale)),4);if(Number(this._canvas.getAttribute("density"))!==j)this._canvas.setAttribute("density",String(j))},150)}_bindZoom(){let j=this._stage,q=()=>this.getAttribute("zoom")!=="false";j.addEventListener("wheel",(F)=>{if(!q()||!(F.ctrlKey||F.metaKey))return;F.preventDefault();let P=j.getBoundingClientRect();this.zoomBy(Math.exp(-F.deltaY*0.01),F.clientX-P.left,F.clientY-P.top)},{passive:!1});let J=null;j.addEventListener("pointerdown",(F)=>{if(!q()||F.button!==0)return;J={id:F.pointerId,x:F.clientX,y:F.clientY},j.setPointerCapture(F.pointerId)}),j.addEventListener("pointermove",(F)=>{if(!J||J.id!==F.pointerId)return;this._x+=F.clientX-J.x,this._y+=F.clientY-J.y,J.x=F.clientX,J.y=F.clientY,this._userZoomed=!0,this._view.style.transform=`translate(${this._x}px, ${this._y}px) scale(${this._scale})`});let B=()=>J=null;j.addEventListener("pointerup",B),j.addEventListener("pointercancel",B),j.addEventListener("dblclick",()=>q()&&this.fit())}_buildControls(){let j=this._bar;if(j.innerHTML="",this._controlsPage=this._canvas.page,this.getAttribute("zoom")!=="false")j.appendChild(this._btn("Fit","Reset zoom",()=>this.fit()));let q=this._canvas.pages;if(this.hasAttribute("page-switch")&&q.length>1)j.appendChild(this._pageSelect(q));let J=this._canvas.modes,B=Object.keys(J).filter((F)=>J[F].values.length>1);if(this.hasAttribute("mode-switch")&&B.length)for(let F of B)j.appendChild(this._modeSelect(F,J[F]));if(this.hasAttribute("copy"))j.appendChild(this._btn("Copy","Copy .gui markup",async()=>{await navigator.clipboard.writeText(this._canvas.source)}));if(this.hasAttribute("download"))j.appendChild(this._btn("Download","Download .gui file",()=>this._download()));j.style.display=j.children.length?"flex":"none"}_btn(j,q,J){let B=document.createElement("button");return B.type="button",B.textContent=j,B.title=q,B.style.cssText=["all:unset;cursor:pointer;font:600 12px/1 system-ui","color:#fff;padding:6px 9px;border-radius:5px"].join(";"),B.addEventListener("pointerenter",()=>B.style.background="rgba(255,255,255,.18)"),B.addEventListener("pointerleave",()=>B.style.background="transparent"),B.addEventListener("click",J),B}_select(j){let q=document.createElement("select");return q.title=j,q.style.cssText=["all:unset;cursor:pointer;font:600 12px/1 system-ui","color:#fff;padding:6px 9px;border-radius:5px"].join(";"),q}_option(j,q,J){let B=document.createElement("option");if(B.value=j,B.textContent=q,B.style.color="#000",J)B.selected=!0;return B}_pageSelect(j){let q=this._select("Page");q.className="gui-embed-pages";let J=this._canvas.page;for(let B of j){let F=B.library?"Library":B.name.replace(/\.guix$/,"");q.appendChild(this._option(B.name,F,B.name===J))}return q.addEventListener("change",()=>this.setAttribute("page",q.value)),q}_modeSelect(j,q){let J=this._select(`Mode: ${j}`),B=this._canvas.mode[j]??q.default;for(let F of q.values)J.appendChild(this._option(F,F,F===B));return J.addEventListener("change",()=>this._canvas.setMode(j,J.value)),J}_download(){let j=this._bytes??D({xml:this._markup,assets:{}}),q=(this.getAttribute("src")?.split("/").pop()||"design.gui").replace(/\.guix$/,".gui"),J=URL.createObjectURL(new Blob([j],{type:"application/octet-stream"})),B=document.createElement("a");B.href=J,B.download=q.endsWith(".gui")?q:q+".gui",B.click(),setTimeout(()=>URL.revokeObjectURL(J),1000)}}function S(){if(typeof customElements<"u"&&!customElements.get(R))customElements.define(R,K)}import{GuiCanvas as k,config as y}from"@dotgui/render/canvas";var X=!1;function f(){if(X||typeof window>"u")return;X=!0,S()}export{f as install,S as defineGuiEmbed,y as config,K as GuiEmbedElement,k as GuiCanvas};