streamlit-nightly 1.53.2.dev20260125__py3-none-any.whl → 1.53.2.dev20260127__py3-none-any.whl
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.
- streamlit/commands/logo.py +81 -25
- streamlit/deprecation_util.py +19 -1
- streamlit/elements/arrow.py +2 -1
- streamlit/elements/lib/built_in_chart_utils.py +2 -2
- streamlit/elements/lib/options_selector_utils.py +72 -22
- streamlit/elements/widgets/select_slider.py +123 -37
- streamlit/hello/plotting_demo.py +19 -12
- streamlit/proto/Logo_pb2.py +5 -3
- streamlit/proto/Logo_pb2.pyi +25 -1
- streamlit/proto/Slider_pb2.py +6 -6
- streamlit/proto/Slider_pb2.pyi +9 -1
- streamlit/runtime/scriptrunner/script_runner.py +17 -0
- streamlit/runtime/scriptrunner_utils/script_run_context.py +13 -10
- streamlit/runtime/state/__init__.py +7 -1
- streamlit/runtime/state/common.py +13 -0
- streamlit/runtime/state/query_params.py +494 -6
- streamlit/runtime/state/session_state.py +178 -3
- streamlit/runtime/state/widgets.py +26 -1
- streamlit/static/index.html +1 -1
- streamlit/static/manifest.json +304 -304
- streamlit/static/static/js/{ErrorOutline.esm.CIFYUdwC.js → ErrorOutline.esm.DiaGWPsE.js} +1 -1
- streamlit/static/static/js/{FileDownload.esm.DWVTnTHm.js → FileDownload.esm.D-Qgpk5d.js} +1 -1
- streamlit/static/static/js/{FileHelper.BPYQIPd1.js → FileHelper.DmtDDGp0.js} +1 -1
- streamlit/static/static/js/{FormClearHelper.CypmvhYZ.js → FormClearHelper.BM3uDLnU.js} +1 -1
- streamlit/static/static/js/{InputInstructions.Bi62hDTQ.js → InputInstructions.B2YZ5Lle.js} +1 -1
- streamlit/static/static/js/{Particles.yebG0VuV.js → Particles.BzfZrl-0.js} +1 -1
- streamlit/static/static/js/{ProgressBar.Dy9CI6w4.js → ProgressBar.DWErD3j3.js} +1 -1
- streamlit/static/static/js/{StreamlitSyntaxHighlighter.Btk92CPv.js → StreamlitSyntaxHighlighter.DB31rUPf.js} +1 -1
- streamlit/static/static/js/{TableChart.esm.DBeVaFNt.js → TableChart.esm.D3oUYYYd.js} +1 -1
- streamlit/static/static/js/{Toolbar.DC2Tp-qb.js → Toolbar.CPyjMABY.js} +1 -1
- streamlit/static/static/js/{WidgetLabelHelpIconInline.3DnEd9BK.js → WidgetLabelHelpIconInline.C1NBCx-y.js} +1 -1
- streamlit/static/static/js/{base-input.7Sj6pVk0.js → base-input.C_CrNgNd.js} +1 -1
- streamlit/static/static/js/{checkbox.CcUx3XuQ.js → checkbox.S6O8DPFl.js} +1 -1
- streamlit/static/static/js/{createDownloadLinkElement.DZuwkCqy.js → createDownloadLinkElement.B-5tIJBw.js} +1 -1
- streamlit/static/static/js/{data-grid-overlay-editor.Dw-AewlN.js → data-grid-overlay-editor.BW5aAEJN.js} +1 -1
- streamlit/static/static/js/{downloader.Bsx5M2Du.js → downloader.BswLlj7p.js} +1 -1
- streamlit/static/static/js/embed.QjYZXbaW.js +193 -0
- streamlit/static/static/js/{es6.BpAqZaR_.js → es6.Dm_kl6Cp.js} +2 -2
- streamlit/static/static/js/{formatNumber.DjehVPVS.js → formatNumber.CH39oSMw.js} +1 -1
- streamlit/static/static/js/{iconPosition.D02OPE-d.js → iconPosition.Dp9f2jam.js} +1 -1
- streamlit/static/static/js/{iframeResizer.contentWindow.xtstqPd7.js → iframeResizer.contentWindow.DOprY46-.js} +1 -1
- streamlit/static/static/js/{index.S-mjkUeF.js → index.-7yn3zqE.js} +1 -1
- streamlit/static/static/js/{index.Bri1T2TS.js → index.4QSKV4yi.js} +1 -1
- streamlit/static/static/js/{index.ZIA43eTF.js → index.6OwBTJdz.js} +1 -1
- streamlit/static/static/js/{index.x1B588Xu.js → index.6UQ__fP7.js} +1 -1
- streamlit/static/static/js/{index.CEwnDCn9.js → index.6iOQDEVC.js} +1 -1
- streamlit/static/static/js/index.B0Wcvg8a.js +2 -0
- streamlit/static/static/js/{index.DO2T-QzF.js → index.B6Sk5Jwr.js} +1 -1
- streamlit/static/static/js/{index.D_TIyPF4.js → index.B9XI6y3j.js} +1 -1
- streamlit/static/static/js/{index.B9gbSNsw.js → index.BBVcEzWu.js} +1 -1
- streamlit/static/static/js/{index.CA0RmxJF.js → index.BFxjXeYb.js} +1 -1
- streamlit/static/static/js/{index.B5tD5YeV.js → index.BNsCI-Q1.js} +1 -1
- streamlit/static/static/js/{index.DJjSqPAx.js → index.BQu5Qf_i.js} +1 -1
- streamlit/static/static/js/{index.BvZbnSMC.js → index.BUOjbZl6.js} +1 -1
- streamlit/static/static/js/{index.XFMDBL5n.js → index.BUbgW8RJ.js} +1 -1
- streamlit/static/static/js/{index.BOkpEbJS.js → index.BYjec3-R.js} +1 -1
- streamlit/static/static/js/{index.D6Z9hKJY.js → index.BaKZ4ira.js} +1 -1
- streamlit/static/static/js/{index.BIcJe97b.js → index.BcUwq6kI.js} +1 -1
- streamlit/static/static/js/{index.C9v49R-a.js → index.BlchQrZL.js} +1 -1
- streamlit/static/static/js/{index.D9RL5sRp.js → index.BlgpfTUq.js} +1 -1
- streamlit/static/static/js/{index.BV6XgCij.js → index.Bwaj-9Zv.js} +1 -1
- streamlit/static/static/js/{index.DDu_qTm0.js → index.BxtweGcn.js} +1 -1
- streamlit/static/static/js/{index.CGbvkEtg.js → index.C57ViuAX.js} +1 -1
- streamlit/static/static/js/{index.CdRwiHPm.js → index.CAzk7fUP.js} +1 -1
- streamlit/static/static/js/{index.BK9S5qug.js → index.CDZffl1q.js} +1 -1
- streamlit/static/static/js/{index.JL0uGAeJ.js → index.CYxcFtYt.js} +1 -1
- streamlit/static/static/js/index.Cb7V19H9.js +2 -0
- streamlit/static/static/js/{index.CgARjn28.js → index.CfXTal6g.js} +1 -1
- streamlit/static/static/js/{index.CyDHwK5P.js → index.Ci3x7GcT.js} +1 -1
- streamlit/static/static/js/{index.BVhVdVeE.js → index.CivdhE_9.js} +1 -1
- streamlit/static/static/js/{index.m3dn5Bai.js → index.CkSzTTpO.js} +5 -5
- streamlit/static/static/js/{index.8FPw0_gD.js → index.CuJ82OKQ.js} +1 -1
- streamlit/static/static/js/{index.BDlI2pRp.js → index.Cw5Xlisw.js} +1 -1
- streamlit/static/static/js/{index.DdxofXV8.js → index.D1tkD8Lg.js} +3 -3
- streamlit/static/static/js/{index.iXzAofuY.js → index.DK9Im19R.js} +2 -2
- streamlit/static/static/js/{index.iF5zYERg.js → index.DMwRlpNi.js} +1 -1
- streamlit/static/static/js/index.DTUAvbJ0.js +1 -0
- streamlit/static/static/js/{index.DSSapl3Q.js → index.DoRYpzHm.js} +1 -1
- streamlit/static/static/js/{index.D6J2UPzF.js → index.DsZNm1_D.js} +1 -1
- streamlit/static/static/js/{index.5H98WqjT.js → index.DypwtfIh.js} +1 -1
- streamlit/static/static/js/{index.DgLRJfs3.js → index.JKOtpaMf.js} +1 -1
- streamlit/static/static/js/{index.B8-HOwf1.js → index.OI2eh_me.js} +1 -1
- streamlit/static/static/js/{index.CKUBdVQ9.js → index.TTO_Lb69.js} +1 -1
- streamlit/static/static/js/{index.-faJDV20.js → index.X1r5cenD.js} +1 -1
- streamlit/static/static/js/{index.BqfJJr3c.js → index.gsc49XzN.js} +1 -1
- streamlit/static/static/js/{index.BB_iwaVr.js → index.lMhsw-5K.js} +32 -32
- streamlit/static/static/js/{index.DZv5AoR1.js → index.s9zpEF8P.js} +1 -1
- streamlit/static/static/js/{index.BGTMh3Uu.js → index.tjRGlTlQ.js} +1 -1
- streamlit/static/static/js/{index.Bo1ztye0.js → index.wKGUZfH4.js} +1 -1
- streamlit/static/static/js/{input.VYKyGuhi.js → input.CIKqvWjB.js} +1 -1
- streamlit/static/static/js/{main.u5Bb3MY7.js → main.BkNqoTrd.js} +1 -1
- streamlit/static/static/js/{memory.BOMt4yAV.js → memory.DNcbFok2.js} +1 -1
- streamlit/static/static/js/{number-overlay-editor.CihlAHgl.js → number-overlay-editor.DwjiYKav.js} +1 -1
- streamlit/static/static/js/{pandasStylerUtils.BuqSgXpk.js → pandasStylerUtils.BSc50we3.js} +1 -1
- streamlit/static/static/js/{sandbox.COGR4pqz.js → sandbox.DJL9Gdcf.js} +1 -1
- streamlit/static/static/js/{styled-components.BEf3c4IJ.js → styled-components.D4jE1G9j.js} +1 -1
- streamlit/static/static/js/{throttle.Bl-XsA9N.js → throttle.dHeXiPIK.js} +1 -1
- streamlit/static/static/js/{timepicker.B-HgBYlK.js → timepicker.CIpoSUyW.js} +1 -1
- streamlit/static/static/js/{toConsumableArray.BrQebwtE.js → toConsumableArray.AOXQx2YY.js} +1 -1
- streamlit/static/static/js/uniqueId.DRPc21MO.js +1 -0
- streamlit/static/static/js/{useBasicWidgetState.8WwISl9r.js → useBasicWidgetState.BwQxG7iA.js} +1 -1
- streamlit/static/static/js/{useIntlLocale.D37LWdCR.js → useIntlLocale.JXPZPWaJ.js} +1 -1
- streamlit/static/static/js/{useTextInputAutoExpand.Bb_KqJvq.js → useTextInputAutoExpand.CD_nhoE_.js} +1 -1
- streamlit/static/static/js/{useUpdateUiValue.D1BLS5t7.js → useUpdateUiValue.Cl1Y22Ao.js} +1 -1
- streamlit/static/static/js/{useWaveformController.Ce0-qTws.js → useWaveformController.DJhScSDn.js} +1 -1
- streamlit/static/static/js/{withCalculatedWidth.BX2K3UVv.js → withCalculatedWidth.CrAfFzO9.js} +1 -1
- streamlit/static/static/js/{withFullScreenWrapper.CqfGs8T2.js → withFullScreenWrapper.EdE3zOz5.js} +1 -1
- streamlit/testing/v1/element_tree.py +23 -8
- {streamlit_nightly-1.53.2.dev20260125.dist-info → streamlit_nightly-1.53.2.dev20260127.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.53.2.dev20260125.dist-info → streamlit_nightly-1.53.2.dev20260127.dist-info}/RECORD +114 -114
- streamlit/static/static/js/embed.C7by6AoE.js +0 -195
- streamlit/static/static/js/index.Bhy8EBYI.js +0 -2
- streamlit/static/static/js/index.C5ehUqNt.js +0 -2
- streamlit/static/static/js/index.m4WkwGMu.js +0 -1
- streamlit/static/static/js/uniqueId.8R4hbkYl.js +0 -1
- {streamlit_nightly-1.53.2.dev20260125.data → streamlit_nightly-1.53.2.dev20260127.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.53.2.dev20260125.dist-info → streamlit_nightly-1.53.2.dev20260127.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.53.2.dev20260125.dist-info → streamlit_nightly-1.53.2.dev20260127.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.53.2.dev20260125.dist-info → streamlit_nightly-1.53.2.dev20260127.dist-info}/top_level.txt +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{aH as at,aG as st,aC as tu,
|
|
2
|
-
`,t);return s===-1?a:a===-1||a+1===s?s:a<s?a:s}const it={}.hasOwnProperty,cu=Object.prototype;function ou(e,t){const a=t||{};return ke({file:a.file||void 0,location:!1,schema:a.space==="svg"?at:st,verbose:a.verbose||!1},e)}function ke(e,t){let a;switch(t.nodeName){case"#comment":{const s=t;return a={type:"comment",value:s.data},Te(e,s,a),a}case"#document":case"#document-fragment":{const s=t,c="mode"in s?s.mode==="quirks"||s.mode==="limited-quirks":!1;if(a={type:"root",children:ct(e,t.childNodes),data:{quirksMode:c}},e.file&&e.location){const l=String(e.file),h=iu(l),m=h.toPoint(0),_=h.toPoint(l.length);a.position={start:m,end:_}}return a}case"#documentType":{const s=t;return a={type:"doctype"},Te(e,s,a),a}case"#text":{const s=t;return a={type:"text",value:s.value},Te(e,s,a),a}default:return a=lu(e,t),a}}function ct(e,t){let a=-1;const s=[];for(;++a<t.length;){const c=ke(e,t[a]);s.push(c)}return s}function lu(e,t){const a=e.schema;e.schema=t.namespaceURI===v.svg?at:st;let s=-1;const c={};for(;++s<t.attrs.length;){const m=t.attrs[s],_=(m.prefix?m.prefix+":":"")+m.name;it.call(cu,_)||(c[_]=m.value)}const h=(e.schema.space==="svg"?nu:ru)(t.tagName,c,ct(e,t.childNodes));if(Te(e,t,h),h.tagName==="template"){const m=t,_=m.sourceCodeLocation,C=_&&_.startTag&&X(_.startTag),B=_&&_.endTag&&X(_.endTag),de=ke(e,m.content);C&&B&&e.file&&(de.position={start:C.end,end:B.start}),h.content=de}return e.schema=a,h}function Te(e,t,a){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const s=du(e,a,t.sourceCodeLocation);s&&(e.location=!0,a.position=s)}}function du(e,t,a){const s=X(a);if(t.type==="element"){const c=t.children[t.children.length-1];if(s&&!a.endTag&&c&&c.position&&c.position.end&&(s.end=Object.assign({},c.position.end)),e.verbose){const l={};let h;if(a.attrs)for(h in a.attrs)it.call(a.attrs,h)&&(l[tu(e.schema,h).property]=X(a.attrs[h]));Le(a.startTag);const m=X(a.startTag),_=a.endTag?X(a.endTag):void 0,C={opening:m};_&&(C.closing=_),C.properties=l,t.data={position:C}}}return s}function X(e){const t=We({line:e.startLine,column:e.startCol,offset:e.startOffset}),a=We({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||a?{start:t,end:a}:void 0}function We(e){return e.line&&e.column?e:void 0}class ce{constructor(t,a,s){this.property=t,this.normal=a,s&&(this.space=s)}}ce.prototype.property={};ce.prototype.normal={};ce.prototype.space=null;function ot(e,t){const a={},s={};let c=-1;for(;++c<e.length;)Object.assign(a,e[c].property),Object.assign(s,e[c].normal);return new ce(a,s,t)}function Se(e){return e.toLowerCase()}class M{constructor(t,a){this.property=t,this.attribute=a}}M.prototype.space=null;M.prototype.boolean=!1;M.prototype.booleanish=!1;M.prototype.overloadedBoolean=!1;M.prototype.number=!1;M.prototype.commaSeparated=!1;M.prototype.spaceSeparated=!1;M.prototype.commaOrSpaceSeparated=!1;M.prototype.mustUseProperty=!1;M.prototype.defined=!1;let Eu=0;const b=Q(),g=Q(),lt=Q(),f=Q(),p=Q(),G=Q(),D=Q();function Q(){return 2**++Eu}const Oe=Object.freeze(Object.defineProperty({__proto__:null,boolean:b,booleanish:g,commaOrSpaceSeparated:D,commaSeparated:G,number:f,overloadedBoolean:lt,spaceSeparated:p},Symbol.toStringTag,{value:"Module"})),Ne=Object.keys(Oe);class Be extends M{constructor(t,a,s,c){let l=-1;if(super(t,a),qe(this,"space",c),typeof s=="number")for(;++l<Ne.length;){const h=Ne[l];qe(this,Ne[l],(s&Oe[h])===Oe[h])}}}Be.prototype.defined=!0;function qe(e,t,a){a&&(e[t]=a)}const hu={}.hasOwnProperty;function V(e){const t={},a={};let s;for(s in e.properties)if(hu.call(e.properties,s)){const c=e.properties[s],l=new Be(s,e.transform(e.attributes||{},s),c,e.space);e.mustUseProperty&&e.mustUseProperty.includes(s)&&(l.mustUseProperty=!0),t[s]=l,a[Se(s)]=s,a[Se(l.attribute)]=s}return new ce(t,a,e.space)}const dt=V({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Et=V({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function ht(e,t){return t in e?e[t]:t}function Tt(e,t){return ht(e,t.toLowerCase())}const ft=V({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Tt,properties:{xmlns:null,xmlnsXLink:null}}),mt=V({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:g,ariaAutoComplete:null,ariaBusy:g,ariaChecked:g,ariaColCount:f,ariaColIndex:f,ariaColSpan:f,ariaControls:p,ariaCurrent:null,ariaDescribedBy:p,ariaDetails:null,ariaDisabled:g,ariaDropEffect:p,ariaErrorMessage:null,ariaExpanded:g,ariaFlowTo:p,ariaGrabbed:g,ariaHasPopup:null,ariaHidden:g,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:p,ariaLevel:f,ariaLive:null,ariaModal:g,ariaMultiLine:g,ariaMultiSelectable:g,ariaOrientation:null,ariaOwns:p,ariaPlaceholder:null,ariaPosInSet:f,ariaPressed:g,ariaReadOnly:g,ariaRelevant:null,ariaRequired:g,ariaRoleDescription:p,ariaRowCount:f,ariaRowIndex:f,ariaRowSpan:f,ariaSelected:g,ariaSetSize:f,ariaSort:null,ariaValueMax:f,ariaValueMin:f,ariaValueNow:f,ariaValueText:null,role:null}}),Tu=V({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Tt,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:G,acceptCharset:p,accessKey:p,action:null,allow:null,allowFullScreen:b,allowPaymentRequest:b,allowUserMedia:b,alt:null,as:null,async:b,autoCapitalize:null,autoComplete:p,autoFocus:b,autoPlay:b,blocking:p,capture:null,charSet:null,checked:b,cite:null,className:p,cols:f,colSpan:null,content:null,contentEditable:g,controls:b,controlsList:p,coords:f|G,crossOrigin:null,data:null,dateTime:null,decoding:null,default:b,defer:b,dir:null,dirName:null,disabled:b,download:lt,draggable:g,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:b,formTarget:null,headers:p,height:f,hidden:b,high:f,href:null,hrefLang:null,htmlFor:p,httpEquiv:p,id:null,imageSizes:null,imageSrcSet:null,inert:b,inputMode:null,integrity:null,is:null,isMap:b,itemId:null,itemProp:p,itemRef:p,itemScope:b,itemType:p,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:b,low:f,manifest:null,max:null,maxLength:f,media:null,method:null,min:null,minLength:f,multiple:b,muted:b,name:null,nonce:null,noModule:b,noValidate:b,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:b,optimum:f,pattern:null,ping:p,placeholder:null,playsInline:b,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:b,referrerPolicy:null,rel:p,required:b,reversed:b,rows:f,rowSpan:f,sandbox:p,scope:null,scoped:b,seamless:b,selected:b,shadowRootClonable:b,shadowRootDelegatesFocus:b,shadowRootMode:null,shape:null,size:f,sizes:null,slot:null,span:f,spellCheck:g,src:null,srcDoc:null,srcLang:null,srcSet:null,start:f,step:null,style:null,tabIndex:f,target:null,title:null,translate:null,type:null,typeMustMatch:b,useMap:null,value:g,width:f,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:p,axis:null,background:null,bgColor:null,border:f,borderColor:null,bottomMargin:f,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:b,declare:b,event:null,face:null,frame:null,frameBorder:null,hSpace:f,leftMargin:f,link:null,longDesc:null,lowSrc:null,marginHeight:f,marginWidth:f,noResize:b,noHref:b,noShade:b,noWrap:b,object:null,profile:null,prompt:null,rev:null,rightMargin:f,rules:null,scheme:null,scrolling:g,standby:null,summary:null,text:null,topMargin:f,valueType:null,version:null,vAlign:null,vLink:null,vSpace:f,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:b,disableRemotePlayback:b,prefix:null,property:null,results:f,security:null,unselectable:null}}),fu=V({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:ht,properties:{about:D,accentHeight:f,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:f,amplitude:f,arabicForm:null,ascent:f,attributeName:null,attributeType:null,azimuth:f,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:f,by:null,calcMode:null,capHeight:f,className:p,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:f,diffuseConstant:f,direction:null,display:null,dur:null,divisor:f,dominantBaseline:null,download:b,dx:null,dy:null,edgeMode:null,editable:null,elevation:f,enableBackground:null,end:null,event:null,exponent:f,externalResourcesRequired:null,fill:null,fillOpacity:f,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:G,g2:G,glyphName:G,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:f,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:f,horizOriginX:f,horizOriginY:f,id:null,ideographic:f,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:f,k:f,k1:f,k2:f,k3:f,k4:f,kernelMatrix:D,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:f,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:f,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:f,overlineThickness:f,paintOrder:null,panose1:null,path:null,pathLength:f,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:p,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:f,pointsAtY:f,pointsAtZ:f,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:D,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:D,rev:D,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:D,requiredFeatures:D,requiredFonts:D,requiredFormats:D,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:f,specularExponent:f,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:f,strikethroughThickness:f,string:null,stroke:null,strokeDashArray:D,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:f,strokeOpacity:f,strokeWidth:null,style:null,surfaceScale:f,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:D,tabIndex:f,tableValues:null,target:null,targetX:f,targetY:f,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:D,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:f,underlineThickness:f,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:f,values:null,vAlphabetic:f,vMathematical:f,vectorEffect:null,vHanging:f,vIdeographic:f,version:null,vertAdvY:f,vertOriginX:f,vertOriginY:f,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:f,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),mu=/^data[-\w.:]+$/i,Xe=/-[a-z]/g,_u=/[A-Z]/g;function bu(e,t){const a=Se(t);let s=t,c=M;if(a in e.normal)return e.property[e.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&mu.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(Xe,Cu);s="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!Xe.test(l)){let h=l.replace(_u,Au);h.charAt(0)!=="-"&&(h="-"+h),t="data"+h}}c=Be}return new c(s,t)}function Au(e){return"-"+e.toLowerCase()}function Cu(e){return e.charAt(1).toUpperCase()}const pu=ot([Et,dt,ft,mt,Tu],"html"),_t=ot([Et,dt,ft,mt,fu],"svg"),Nu={},Iu={}.hasOwnProperty,bt=rt("type",{handlers:{root:Ru,element:Pu,text:Ou,comment:Du,doctype:Su}});function gu(e,t){const s=(t||Nu).space;return bt(e,s==="svg"?_t:pu)}function Ru(e,t){const a={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return a.childNodes=He(e.children,a,t),z(e,a),a}function Lu(e,t){const a={nodeName:"#document-fragment",childNodes:[]};return a.childNodes=He(e.children,a,t),z(e,a),a}function Su(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return z(e,t),t}function Ou(e){const t={nodeName:"#text",value:e.value,parentNode:null};return z(e,t),t}function Du(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return z(e,t),t}function Pu(e,t){const a=t;let s=a;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&a.space==="html"&&(s=_t);const c=[];let l;if(e.properties){for(l in e.properties)if(l!=="children"&&Iu.call(e.properties,l)){const _=Mu(s,l,e.properties[l]);_&&c.push(_)}}const h=s.space,m={nodeName:e.tagName,tagName:e.tagName,attrs:c,namespaceURI:v[h],childNodes:[],parentNode:null};return m.childNodes=He(e.children,m,s),z(e,m),e.tagName==="template"&&e.content&&(m.content=Lu(e.content,s)),m}function Mu(e,t,a){const s=bu(e,t);if(a===!1||a===null||a===void 0||typeof a=="number"&&Number.isNaN(a)||!a&&s.boolean)return;Array.isArray(a)&&(a=s.commaSeparated?uu(a):au(a));const c={name:s.attribute,value:a===!0?"":String(a)};if(s.space&&s.space!=="html"&&s.space!=="svg"){const l=c.name.indexOf(":");l<0?c.prefix="":(c.name=c.name.slice(l+1),c.prefix=s.attribute.slice(0,l)),c.namespace=v[s.space]}return c}function He(e,t,a){let s=-1;const c=[];if(e)for(;++s<e.length;){const l=bt(e[s],a);l.parentNode=t,c.push(l)}return c}function z(e,t){const a=e.position;a&&a.start&&a.end&&(Le(typeof a.start.offset=="number"),Le(typeof a.end.offset=="number"),t.sourceCodeLocation={startLine:a.start.line,startCol:a.start.column,startOffset:a.start.offset,endLine:a.end.line,endCol:a.end.column,endOffset:a.end.offset})}const xu=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],ku=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),N="�";var n;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",e[e.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_F=102]="LATIN_SMALL_F",e[e.LATIN_SMALL_X=120]="LATIN_SMALL_X",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",e[e.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"})(n=n||(n={}));const O={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function At(e){return e>=55296&&e<=57343}function Bu(e){return e>=56320&&e<=57343}function Hu(e,t){return(e-55296)*1024+9216+t}function Ct(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function pt(e){return e>=64976&&e<=65007||ku.has(e)}var d;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(d=d||(d={}));const Uu=65536;class yu{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Uu,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t){const{line:a,col:s,offset:c}=this;return{code:t,startLine:a,endLine:a,startCol:s,endCol:s,startOffset:c,endOffset:c}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const a=this.html.charCodeAt(this.pos+1);if(Bu(a))return this.pos++,this._addGap(),Hu(t,a)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,n.EOF;return this._err(d.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,a){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=a}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,a){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(a)return this.html.startsWith(t,this.pos);for(let s=0;s<t.length;s++)if((this.html.charCodeAt(this.pos+s)|32)!==t.charCodeAt(s))return!1;return!0}peek(t){const a=this.pos+t;if(a>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,n.EOF;const s=this.html.charCodeAt(a);return s===n.CARRIAGE_RETURN?n.LINE_FEED:s}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,n.EOF;let t=this.html.charCodeAt(this.pos);return t===n.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,n.LINE_FEED):t===n.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,At(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===n.LINE_FEED||t===n.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Ct(t)?this._err(d.controlCharacterInInputStream):pt(t)&&this._err(d.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var A;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(A=A||(A={}));function Nt(e,t){for(let a=e.attrs.length-1;a>=0;a--)if(e.attrs[a].name===t)return e.attrs[a].value;return null}const U=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Fu=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Ie;const wu=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),vu=(Ie=String.fromCodePoint)!==null&&Ie!==void 0?Ie:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Yu(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=wu.get(e))!==null&&t!==void 0?t:e}var L;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(L||(L={}));const Qu=32;var H;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(H||(H={}));function De(e){return e>=L.ZERO&&e<=L.NINE}function Wu(e){return e>=L.UPPER_A&&e<=L.UPPER_F||e>=L.LOWER_A&&e<=L.LOWER_F}function qu(e){return e>=L.UPPER_A&&e<=L.UPPER_Z||e>=L.LOWER_A&&e<=L.LOWER_Z||De(e)}function Xu(e){return e===L.EQUALS||qu(e)}var R;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(R||(R={}));var w;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(w||(w={}));class Gu{constructor(t,a,s){this.decodeTree=t,this.emitCodePoint=a,this.errors=s,this.state=R.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=w.Strict}startEntity(t){this.decodeMode=t,this.state=R.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,a){switch(this.state){case R.EntityStart:return t.charCodeAt(a)===L.NUM?(this.state=R.NumericStart,this.consumed+=1,this.stateNumericStart(t,a+1)):(this.state=R.NamedEntity,this.stateNamedEntity(t,a));case R.NumericStart:return this.stateNumericStart(t,a);case R.NumericDecimal:return this.stateNumericDecimal(t,a);case R.NumericHex:return this.stateNumericHex(t,a);case R.NamedEntity:return this.stateNamedEntity(t,a)}}stateNumericStart(t,a){return a>=t.length?-1:(t.charCodeAt(a)|Qu)===L.LOWER_X?(this.state=R.NumericHex,this.consumed+=1,this.stateNumericHex(t,a+1)):(this.state=R.NumericDecimal,this.stateNumericDecimal(t,a))}addToNumericResult(t,a,s,c){if(a!==s){const l=s-a;this.result=this.result*Math.pow(c,l)+parseInt(t.substr(a,l),c),this.consumed+=l}}stateNumericHex(t,a){const s=a;for(;a<t.length;){const c=t.charCodeAt(a);if(De(c)||Wu(c))a+=1;else return this.addToNumericResult(t,s,a,16),this.emitNumericEntity(c,3)}return this.addToNumericResult(t,s,a,16),-1}stateNumericDecimal(t,a){const s=a;for(;a<t.length;){const c=t.charCodeAt(a);if(De(c))a+=1;else return this.addToNumericResult(t,s,a,10),this.emitNumericEntity(c,2)}return this.addToNumericResult(t,s,a,10),-1}emitNumericEntity(t,a){var s;if(this.consumed<=a)return(s=this.errors)===null||s===void 0||s.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===L.SEMI)this.consumed+=1;else if(this.decodeMode===w.Strict)return 0;return this.emitCodePoint(Yu(this.result),this.consumed),this.errors&&(t!==L.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,a){const{decodeTree:s}=this;let c=s[this.treeIndex],l=(c&H.VALUE_LENGTH)>>14;for(;a<t.length;a++,this.excess++){const h=t.charCodeAt(a);if(this.treeIndex=gt(s,c,this.treeIndex+Math.max(1,l),h),this.treeIndex<0)return this.result===0||this.decodeMode===w.Attribute&&(l===0||Xu(h))?0:this.emitNotTerminatedNamedEntity();if(c=s[this.treeIndex],l=(c&H.VALUE_LENGTH)>>14,l!==0){if(h===L.SEMI)return this.emitNamedEntityData(this.treeIndex,l,this.consumed+this.excess);this.decodeMode!==w.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:a,decodeTree:s}=this,c=(s[a]&H.VALUE_LENGTH)>>14;return this.emitNamedEntityData(a,c,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,a,s){const{decodeTree:c}=this;return this.emitCodePoint(a===1?c[t]&~H.VALUE_LENGTH:c[t+1],s),a===3&&this.emitCodePoint(c[t+2],s),s}end(){var t;switch(this.state){case R.NamedEntity:return this.result!==0&&(this.decodeMode!==w.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case R.NumericDecimal:return this.emitNumericEntity(0,2);case R.NumericHex:return this.emitNumericEntity(0,3);case R.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case R.EntityStart:return 0}}}function It(e){let t="";const a=new Gu(e,s=>t+=vu(s));return function(c,l){let h=0,m=0;for(;(m=c.indexOf("&",m))>=0;){t+=c.slice(h,m),a.startEntity(l);const C=a.write(c,m+1);if(C<0){h=m+a.end();break}h=m+C,m=C===0?h+1:h}const _=t+c.slice(h);return t="",_}}function gt(e,t,a,s){const c=(t&H.BRANCH_LENGTH)>>7,l=t&H.JUMP_TABLE;if(c===0)return l!==0&&s===l?a:-1;if(l){const _=s-l;return _<0||_>=c?-1:e[a+_]-1}let h=a,m=h+c-1;for(;h<=m;){const _=h+m>>>1,C=e[_];if(C<s)h=_+1;else if(C>s)m=_-1;else return e[_+c]}return-1}It(U);It(Fu);var E;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(E=E||(E={}));var F;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(F=F||(F={}));var P;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(P=P||(P={}));var o;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(o=o||(o={}));var u;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"})(u=u||(u={}));const Ku=new Map([[o.A,u.A],[o.ADDRESS,u.ADDRESS],[o.ANNOTATION_XML,u.ANNOTATION_XML],[o.APPLET,u.APPLET],[o.AREA,u.AREA],[o.ARTICLE,u.ARTICLE],[o.ASIDE,u.ASIDE],[o.B,u.B],[o.BASE,u.BASE],[o.BASEFONT,u.BASEFONT],[o.BGSOUND,u.BGSOUND],[o.BIG,u.BIG],[o.BLOCKQUOTE,u.BLOCKQUOTE],[o.BODY,u.BODY],[o.BR,u.BR],[o.BUTTON,u.BUTTON],[o.CAPTION,u.CAPTION],[o.CENTER,u.CENTER],[o.CODE,u.CODE],[o.COL,u.COL],[o.COLGROUP,u.COLGROUP],[o.DD,u.DD],[o.DESC,u.DESC],[o.DETAILS,u.DETAILS],[o.DIALOG,u.DIALOG],[o.DIR,u.DIR],[o.DIV,u.DIV],[o.DL,u.DL],[o.DT,u.DT],[o.EM,u.EM],[o.EMBED,u.EMBED],[o.FIELDSET,u.FIELDSET],[o.FIGCAPTION,u.FIGCAPTION],[o.FIGURE,u.FIGURE],[o.FONT,u.FONT],[o.FOOTER,u.FOOTER],[o.FOREIGN_OBJECT,u.FOREIGN_OBJECT],[o.FORM,u.FORM],[o.FRAME,u.FRAME],[o.FRAMESET,u.FRAMESET],[o.H1,u.H1],[o.H2,u.H2],[o.H3,u.H3],[o.H4,u.H4],[o.H5,u.H5],[o.H6,u.H6],[o.HEAD,u.HEAD],[o.HEADER,u.HEADER],[o.HGROUP,u.HGROUP],[o.HR,u.HR],[o.HTML,u.HTML],[o.I,u.I],[o.IMG,u.IMG],[o.IMAGE,u.IMAGE],[o.INPUT,u.INPUT],[o.IFRAME,u.IFRAME],[o.KEYGEN,u.KEYGEN],[o.LABEL,u.LABEL],[o.LI,u.LI],[o.LINK,u.LINK],[o.LISTING,u.LISTING],[o.MAIN,u.MAIN],[o.MALIGNMARK,u.MALIGNMARK],[o.MARQUEE,u.MARQUEE],[o.MATH,u.MATH],[o.MENU,u.MENU],[o.META,u.META],[o.MGLYPH,u.MGLYPH],[o.MI,u.MI],[o.MO,u.MO],[o.MN,u.MN],[o.MS,u.MS],[o.MTEXT,u.MTEXT],[o.NAV,u.NAV],[o.NOBR,u.NOBR],[o.NOFRAMES,u.NOFRAMES],[o.NOEMBED,u.NOEMBED],[o.NOSCRIPT,u.NOSCRIPT],[o.OBJECT,u.OBJECT],[o.OL,u.OL],[o.OPTGROUP,u.OPTGROUP],[o.OPTION,u.OPTION],[o.P,u.P],[o.PARAM,u.PARAM],[o.PLAINTEXT,u.PLAINTEXT],[o.PRE,u.PRE],[o.RB,u.RB],[o.RP,u.RP],[o.RT,u.RT],[o.RTC,u.RTC],[o.RUBY,u.RUBY],[o.S,u.S],[o.SCRIPT,u.SCRIPT],[o.SECTION,u.SECTION],[o.SELECT,u.SELECT],[o.SOURCE,u.SOURCE],[o.SMALL,u.SMALL],[o.SPAN,u.SPAN],[o.STRIKE,u.STRIKE],[o.STRONG,u.STRONG],[o.STYLE,u.STYLE],[o.SUB,u.SUB],[o.SUMMARY,u.SUMMARY],[o.SUP,u.SUP],[o.TABLE,u.TABLE],[o.TBODY,u.TBODY],[o.TEMPLATE,u.TEMPLATE],[o.TEXTAREA,u.TEXTAREA],[o.TFOOT,u.TFOOT],[o.TD,u.TD],[o.TH,u.TH],[o.THEAD,u.THEAD],[o.TITLE,u.TITLE],[o.TR,u.TR],[o.TRACK,u.TRACK],[o.TT,u.TT],[o.U,u.U],[o.UL,u.UL],[o.SVG,u.SVG],[o.VAR,u.VAR],[o.WBR,u.WBR],[o.XMP,u.XMP]]);function j(e){var t;return(t=Ku.get(e))!==null&&t!==void 0?t:u.UNKNOWN}const T=u,Vu={[E.HTML]:new Set([T.ADDRESS,T.APPLET,T.AREA,T.ARTICLE,T.ASIDE,T.BASE,T.BASEFONT,T.BGSOUND,T.BLOCKQUOTE,T.BODY,T.BR,T.BUTTON,T.CAPTION,T.CENTER,T.COL,T.COLGROUP,T.DD,T.DETAILS,T.DIR,T.DIV,T.DL,T.DT,T.EMBED,T.FIELDSET,T.FIGCAPTION,T.FIGURE,T.FOOTER,T.FORM,T.FRAME,T.FRAMESET,T.H1,T.H2,T.H3,T.H4,T.H5,T.H6,T.HEAD,T.HEADER,T.HGROUP,T.HR,T.HTML,T.IFRAME,T.IMG,T.INPUT,T.LI,T.LINK,T.LISTING,T.MAIN,T.MARQUEE,T.MENU,T.META,T.NAV,T.NOEMBED,T.NOFRAMES,T.NOSCRIPT,T.OBJECT,T.OL,T.P,T.PARAM,T.PLAINTEXT,T.PRE,T.SCRIPT,T.SECTION,T.SELECT,T.SOURCE,T.STYLE,T.SUMMARY,T.TABLE,T.TBODY,T.TD,T.TEMPLATE,T.TEXTAREA,T.TFOOT,T.TH,T.THEAD,T.TITLE,T.TR,T.TRACK,T.UL,T.WBR,T.XMP]),[E.MATHML]:new Set([T.MI,T.MO,T.MN,T.MS,T.MTEXT,T.ANNOTATION_XML]),[E.SVG]:new Set([T.TITLE,T.FOREIGN_OBJECT,T.DESC]),[E.XLINK]:new Set,[E.XML]:new Set,[E.XMLNS]:new Set};function Rt(e){return e===T.H1||e===T.H2||e===T.H3||e===T.H4||e===T.H5||e===T.H6}o.STYLE,o.SCRIPT,o.XMP,o.IFRAME,o.NOEMBED,o.NOFRAMES,o.PLAINTEXT;const zu=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var r;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(r||(r={}));const I={DATA:r.DATA,RCDATA:r.RCDATA,RAWTEXT:r.RAWTEXT,SCRIPT_DATA:r.SCRIPT_DATA,PLAINTEXT:r.PLAINTEXT,CDATA_SECTION:r.CDATA_SECTION};function te(e){return e>=n.DIGIT_0&&e<=n.DIGIT_9}function ee(e){return e>=n.LATIN_CAPITAL_A&&e<=n.LATIN_CAPITAL_Z}function ju(e){return e>=n.LATIN_SMALL_A&&e<=n.LATIN_SMALL_Z}function y(e){return ju(e)||ee(e)}function Pe(e){return y(e)||te(e)}function Lt(e){return e>=n.LATIN_CAPITAL_A&&e<=n.LATIN_CAPITAL_F}function St(e){return e>=n.LATIN_SMALL_A&&e<=n.LATIN_SMALL_F}function Ju(e){return te(e)||Lt(e)||St(e)}function Ee(e){return e+32}function Ot(e){return e===n.SPACE||e===n.LINE_FEED||e===n.TABULATION||e===n.FORM_FEED}function $u(e){return e===n.EQUALS_SIGN||Pe(e)}function Ge(e){return Ot(e)||e===n.SOLIDUS||e===n.GREATER_THAN_SIGN}class Zu{constructor(t,a){this.options=t,this.handler=a,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=r.DATA,this.returnState=r.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new yu(a),this.currentLocation=this.getCurrentLocation(-1)}_err(t){var a,s;(s=(a=this.handler).onParseError)===null||s===void 0||s.call(a,this.preprocessor.getError(t))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,a,s){this.active=!0,this.preprocessor.write(t,a),this._runParsingLoop(),this.paused||s?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(t){this.consumedAfterSnapshot-=t,this.preprocessor.retreat(t)}_reconsumeInState(t,a){this.state=t,this._callState(a)}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let a=0;a<t;a++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,a){return this.preprocessor.startsWith(t,a)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:A.START_TAG,tagName:"",tagID:u.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:A.END_TAG,tagName:"",tagID:u.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:A.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:A.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,a){this.currentCharacterToken={type:t,chars:a,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,a;const s=this.currentToken;if(Nt(s,this.currentAttr.name)===null){if(s.attrs.push(this.currentAttr),s.location&&this.currentLocation){const c=(t=(a=s.location).attrs)!==null&&t!==void 0?t:a.attrs=Object.create(null);c[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(d.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=j(t.tagName),t.type===A.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(d.endTagWithAttributes),t.selfClosing&&this._err(d.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case A.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case A.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case A.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:A.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,a){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==t)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=a;return}this._createCharacterToken(t,a)}_emitCodePoint(t){const a=Ot(t)?A.WHITESPACE_CHARACTER:t===n.NULL?A.NULL_CHARACTER:A.CHARACTER;this._appendCharToCurrentCharacterToken(a,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(A.CHARACTER,t)}_matchNamedCharacterReference(t){let a=null,s=0,c=!1;for(let l=0,h=U[0];l>=0&&(l=gt(U,h,l+1,t),!(l<0));t=this._consume()){s+=1,h=U[l];const m=h&H.VALUE_LENGTH;if(m){const _=(m>>14)-1;if(t!==n.SEMICOLON&&this._isCharacterReferenceInAttribute()&&$u(this.preprocessor.peek(1))?(a=[n.AMPERSAND],l+=_):(a=_===0?[U[l]&~H.VALUE_LENGTH]:_===1?[U[++l]]:[U[++l],U[++l]],s=0,c=t!==n.SEMICOLON),_===0){this._consume();break}}}return this._unconsume(s),c&&!this.preprocessor.endOfChunkHit&&this._err(d.missingSemicolonAfterCharacterReference),this._unconsume(1),a}_isCharacterReferenceInAttribute(){return this.returnState===r.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===r.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===r.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case r.DATA:{this._stateData(t);break}case r.RCDATA:{this._stateRcdata(t);break}case r.RAWTEXT:{this._stateRawtext(t);break}case r.SCRIPT_DATA:{this._stateScriptData(t);break}case r.PLAINTEXT:{this._statePlaintext(t);break}case r.TAG_OPEN:{this._stateTagOpen(t);break}case r.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case r.TAG_NAME:{this._stateTagName(t);break}case r.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case r.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case r.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case r.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case r.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case r.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case r.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case r.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case r.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case r.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case r.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case r.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case r.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case r.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case r.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case r.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case r.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case r.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case r.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case r.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case r.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case r.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case r.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case r.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case r.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case r.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case r.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case r.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case r.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case r.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case r.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case r.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case r.BOGUS_COMMENT:{this._stateBogusComment(t);break}case r.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case r.COMMENT_START:{this._stateCommentStart(t);break}case r.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case r.COMMENT:{this._stateComment(t);break}case r.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case r.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case r.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case r.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case r.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case r.COMMENT_END:{this._stateCommentEnd(t);break}case r.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case r.DOCTYPE:{this._stateDoctype(t);break}case r.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case r.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case r.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case r.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case r.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case r.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case r.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case r.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case r.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case r.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case r.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case r.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case r.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case r.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case r.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case r.CDATA_SECTION:{this._stateCdataSection(t);break}case r.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case r.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case r.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case r.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case r.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case r.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case r.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case r.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case r.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case r.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case n.LESS_THAN_SIGN:{this.state=r.TAG_OPEN;break}case n.AMPERSAND:{this.returnState=r.DATA,this.state=r.CHARACTER_REFERENCE;break}case n.NULL:{this._err(d.unexpectedNullCharacter),this._emitCodePoint(t);break}case n.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case n.AMPERSAND:{this.returnState=r.RCDATA,this.state=r.CHARACTER_REFERENCE;break}case n.LESS_THAN_SIGN:{this.state=r.RCDATA_LESS_THAN_SIGN;break}case n.NULL:{this._err(d.unexpectedNullCharacter),this._emitChars(N);break}case n.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case n.LESS_THAN_SIGN:{this.state=r.RAWTEXT_LESS_THAN_SIGN;break}case n.NULL:{this._err(d.unexpectedNullCharacter),this._emitChars(N);break}case n.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case n.LESS_THAN_SIGN:{this.state=r.SCRIPT_DATA_LESS_THAN_SIGN;break}case n.NULL:{this._err(d.unexpectedNullCharacter),this._emitChars(N);break}case n.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case n.NULL:{this._err(d.unexpectedNullCharacter),this._emitChars(N);break}case n.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(y(t))this._createStartTagToken(),this.state=r.TAG_NAME,this._stateTagName(t);else switch(t){case n.EXCLAMATION_MARK:{this.state=r.MARKUP_DECLARATION_OPEN;break}case n.SOLIDUS:{this.state=r.END_TAG_OPEN;break}case n.QUESTION_MARK:{this._err(d.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=r.BOGUS_COMMENT,this._stateBogusComment(t);break}case n.EOF:{this._err(d.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(d.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=r.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(y(t))this._createEndTagToken(),this.state=r.TAG_NAME,this._stateTagName(t);else switch(t){case n.GREATER_THAN_SIGN:{this._err(d.missingEndTagName),this.state=r.DATA;break}case n.EOF:{this._err(d.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(d.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=r.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const a=this.currentToken;switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:{this.state=r.BEFORE_ATTRIBUTE_NAME;break}case n.SOLIDUS:{this.state=r.SELF_CLOSING_START_TAG;break}case n.GREATER_THAN_SIGN:{this.state=r.DATA,this.emitCurrentTagToken();break}case n.NULL:{this._err(d.unexpectedNullCharacter),a.tagName+=N;break}case n.EOF:{this._err(d.eofInTag),this._emitEOFToken();break}default:a.tagName+=String.fromCodePoint(ee(t)?Ee(t):t)}}_stateRcdataLessThanSign(t){t===n.SOLIDUS?this.state=r.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=r.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){y(t)?(this.state=r.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=r.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const a=this.currentToken;switch(a.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=r.BEFORE_ATTRIBUTE_NAME,!1;case n.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=r.SELF_CLOSING_START_TAG,!1;case n.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=r.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=r.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===n.SOLIDUS?this.state=r.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=r.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){y(t)?(this.state=r.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=r.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=r.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case n.SOLIDUS:{this.state=r.SCRIPT_DATA_END_TAG_OPEN;break}case n.EXCLAMATION_MARK:{this.state=r.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=r.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){y(t)?(this.state=r.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=r.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=r.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===n.HYPHEN_MINUS?(this.state=r.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=r.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===n.HYPHEN_MINUS?(this.state=r.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=r.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case n.HYPHEN_MINUS:{this.state=r.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case n.LESS_THAN_SIGN:{this.state=r.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case n.NULL:{this._err(d.unexpectedNullCharacter),this._emitChars(N);break}case n.EOF:{this._err(d.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case n.HYPHEN_MINUS:{this.state=r.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case n.LESS_THAN_SIGN:{this.state=r.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case n.NULL:{this._err(d.unexpectedNullCharacter),this.state=r.SCRIPT_DATA_ESCAPED,this._emitChars(N);break}case n.EOF:{this._err(d.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=r.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case n.HYPHEN_MINUS:{this._emitChars("-");break}case n.LESS_THAN_SIGN:{this.state=r.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case n.GREATER_THAN_SIGN:{this.state=r.SCRIPT_DATA,this._emitChars(">");break}case n.NULL:{this._err(d.unexpectedNullCharacter),this.state=r.SCRIPT_DATA_ESCAPED,this._emitChars(N);break}case n.EOF:{this._err(d.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=r.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===n.SOLIDUS?this.state=r.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:y(t)?(this._emitChars("<"),this.state=r.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=r.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){y(t)?(this.state=r.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=r.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=r.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(O.SCRIPT,!1)&&Ge(this.preprocessor.peek(O.SCRIPT.length))){this._emitCodePoint(t);for(let a=0;a<O.SCRIPT.length;a++)this._emitCodePoint(this._consume());this.state=r.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=r.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case n.HYPHEN_MINUS:{this.state=r.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case n.LESS_THAN_SIGN:{this.state=r.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case n.NULL:{this._err(d.unexpectedNullCharacter),this._emitChars(N);break}case n.EOF:{this._err(d.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case n.HYPHEN_MINUS:{this.state=r.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case n.LESS_THAN_SIGN:{this.state=r.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case n.NULL:{this._err(d.unexpectedNullCharacter),this.state=r.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(N);break}case n.EOF:{this._err(d.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=r.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case n.HYPHEN_MINUS:{this._emitChars("-");break}case n.LESS_THAN_SIGN:{this.state=r.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case n.GREATER_THAN_SIGN:{this.state=r.SCRIPT_DATA,this._emitChars(">");break}case n.NULL:{this._err(d.unexpectedNullCharacter),this.state=r.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(N);break}case n.EOF:{this._err(d.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=r.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===n.SOLIDUS?(this.state=r.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=r.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(O.SCRIPT,!1)&&Ge(this.preprocessor.peek(O.SCRIPT.length))){this._emitCodePoint(t);for(let a=0;a<O.SCRIPT.length;a++)this._emitCodePoint(this._consume());this.state=r.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=r.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:break;case n.SOLIDUS:case n.GREATER_THAN_SIGN:case n.EOF:{this.state=r.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case n.EQUALS_SIGN:{this._err(d.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=r.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=r.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:case n.SOLIDUS:case n.GREATER_THAN_SIGN:case n.EOF:{this._leaveAttrName(),this.state=r.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case n.EQUALS_SIGN:{this._leaveAttrName(),this.state=r.BEFORE_ATTRIBUTE_VALUE;break}case n.QUOTATION_MARK:case n.APOSTROPHE:case n.LESS_THAN_SIGN:{this._err(d.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case n.NULL:{this._err(d.unexpectedNullCharacter),this.currentAttr.name+=N;break}default:this.currentAttr.name+=String.fromCodePoint(ee(t)?Ee(t):t)}}_stateAfterAttributeName(t){switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:break;case n.SOLIDUS:{this.state=r.SELF_CLOSING_START_TAG;break}case n.EQUALS_SIGN:{this.state=r.BEFORE_ATTRIBUTE_VALUE;break}case n.GREATER_THAN_SIGN:{this.state=r.DATA,this.emitCurrentTagToken();break}case n.EOF:{this._err(d.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=r.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:break;case n.QUOTATION_MARK:{this.state=r.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case n.APOSTROPHE:{this.state=r.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case n.GREATER_THAN_SIGN:{this._err(d.missingAttributeValue),this.state=r.DATA,this.emitCurrentTagToken();break}default:this.state=r.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case n.QUOTATION_MARK:{this.state=r.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case n.AMPERSAND:{this.returnState=r.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=r.CHARACTER_REFERENCE;break}case n.NULL:{this._err(d.unexpectedNullCharacter),this.currentAttr.value+=N;break}case n.EOF:{this._err(d.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case n.APOSTROPHE:{this.state=r.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case n.AMPERSAND:{this.returnState=r.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=r.CHARACTER_REFERENCE;break}case n.NULL:{this._err(d.unexpectedNullCharacter),this.currentAttr.value+=N;break}case n.EOF:{this._err(d.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:{this._leaveAttrValue(),this.state=r.BEFORE_ATTRIBUTE_NAME;break}case n.AMPERSAND:{this.returnState=r.ATTRIBUTE_VALUE_UNQUOTED,this.state=r.CHARACTER_REFERENCE;break}case n.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=r.DATA,this.emitCurrentTagToken();break}case n.NULL:{this._err(d.unexpectedNullCharacter),this.currentAttr.value+=N;break}case n.QUOTATION_MARK:case n.APOSTROPHE:case n.LESS_THAN_SIGN:case n.EQUALS_SIGN:case n.GRAVE_ACCENT:{this._err(d.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case n.EOF:{this._err(d.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:{this._leaveAttrValue(),this.state=r.BEFORE_ATTRIBUTE_NAME;break}case n.SOLIDUS:{this._leaveAttrValue(),this.state=r.SELF_CLOSING_START_TAG;break}case n.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=r.DATA,this.emitCurrentTagToken();break}case n.EOF:{this._err(d.eofInTag),this._emitEOFToken();break}default:this._err(d.missingWhitespaceBetweenAttributes),this.state=r.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case n.GREATER_THAN_SIGN:{const a=this.currentToken;a.selfClosing=!0,this.state=r.DATA,this.emitCurrentTagToken();break}case n.EOF:{this._err(d.eofInTag),this._emitEOFToken();break}default:this._err(d.unexpectedSolidusInTag),this.state=r.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const a=this.currentToken;switch(t){case n.GREATER_THAN_SIGN:{this.state=r.DATA,this.emitCurrentComment(a);break}case n.EOF:{this.emitCurrentComment(a),this._emitEOFToken();break}case n.NULL:{this._err(d.unexpectedNullCharacter),a.data+=N;break}default:a.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(O.DASH_DASH,!0)?(this._createCommentToken(O.DASH_DASH.length+1),this.state=r.COMMENT_START):this._consumeSequenceIfMatch(O.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(O.DOCTYPE.length+1),this.state=r.DOCTYPE):this._consumeSequenceIfMatch(O.CDATA_START,!0)?this.inForeignNode?this.state=r.CDATA_SECTION:(this._err(d.cdataInHtmlContent),this._createCommentToken(O.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=r.BOGUS_COMMENT):this._ensureHibernation()||(this._err(d.incorrectlyOpenedComment),this._createCommentToken(2),this.state=r.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case n.HYPHEN_MINUS:{this.state=r.COMMENT_START_DASH;break}case n.GREATER_THAN_SIGN:{this._err(d.abruptClosingOfEmptyComment),this.state=r.DATA;const a=this.currentToken;this.emitCurrentComment(a);break}default:this.state=r.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const a=this.currentToken;switch(t){case n.HYPHEN_MINUS:{this.state=r.COMMENT_END;break}case n.GREATER_THAN_SIGN:{this._err(d.abruptClosingOfEmptyComment),this.state=r.DATA,this.emitCurrentComment(a);break}case n.EOF:{this._err(d.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="-",this.state=r.COMMENT,this._stateComment(t)}}_stateComment(t){const a=this.currentToken;switch(t){case n.HYPHEN_MINUS:{this.state=r.COMMENT_END_DASH;break}case n.LESS_THAN_SIGN:{a.data+="<",this.state=r.COMMENT_LESS_THAN_SIGN;break}case n.NULL:{this._err(d.unexpectedNullCharacter),a.data+=N;break}case n.EOF:{this._err(d.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const a=this.currentToken;switch(t){case n.EXCLAMATION_MARK:{a.data+="!",this.state=r.COMMENT_LESS_THAN_SIGN_BANG;break}case n.LESS_THAN_SIGN:{a.data+="<";break}default:this.state=r.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===n.HYPHEN_MINUS?this.state=r.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=r.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===n.HYPHEN_MINUS?this.state=r.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=r.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==n.GREATER_THAN_SIGN&&t!==n.EOF&&this._err(d.nestedComment),this.state=r.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const a=this.currentToken;switch(t){case n.HYPHEN_MINUS:{this.state=r.COMMENT_END;break}case n.EOF:{this._err(d.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="-",this.state=r.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const a=this.currentToken;switch(t){case n.GREATER_THAN_SIGN:{this.state=r.DATA,this.emitCurrentComment(a);break}case n.EXCLAMATION_MARK:{this.state=r.COMMENT_END_BANG;break}case n.HYPHEN_MINUS:{a.data+="-";break}case n.EOF:{this._err(d.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="--",this.state=r.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const a=this.currentToken;switch(t){case n.HYPHEN_MINUS:{a.data+="--!",this.state=r.COMMENT_END_DASH;break}case n.GREATER_THAN_SIGN:{this._err(d.incorrectlyClosedComment),this.state=r.DATA,this.emitCurrentComment(a);break}case n.EOF:{this._err(d.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="--!",this.state=r.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:{this.state=r.BEFORE_DOCTYPE_NAME;break}case n.GREATER_THAN_SIGN:{this.state=r.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case n.EOF:{this._err(d.eofInDoctype),this._createDoctypeToken(null);const a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(d.missingWhitespaceBeforeDoctypeName),this.state=r.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(ee(t))this._createDoctypeToken(String.fromCharCode(Ee(t))),this.state=r.DOCTYPE_NAME;else switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:break;case n.NULL:{this._err(d.unexpectedNullCharacter),this._createDoctypeToken(N),this.state=r.DOCTYPE_NAME;break}case n.GREATER_THAN_SIGN:{this._err(d.missingDoctypeName),this._createDoctypeToken(null);const a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=r.DATA;break}case n.EOF:{this._err(d.eofInDoctype),this._createDoctypeToken(null);const a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=r.DOCTYPE_NAME}}_stateDoctypeName(t){const a=this.currentToken;switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:{this.state=r.AFTER_DOCTYPE_NAME;break}case n.GREATER_THAN_SIGN:{this.state=r.DATA,this.emitCurrentDoctype(a);break}case n.NULL:{this._err(d.unexpectedNullCharacter),a.name+=N;break}case n.EOF:{this._err(d.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.name+=String.fromCodePoint(ee(t)?Ee(t):t)}}_stateAfterDoctypeName(t){const a=this.currentToken;switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:break;case n.GREATER_THAN_SIGN:{this.state=r.DATA,this.emitCurrentDoctype(a);break}case n.EOF:{this._err(d.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(O.PUBLIC,!1)?this.state=r.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(O.SYSTEM,!1)?this.state=r.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(d.invalidCharacterSequenceAfterDoctypeName),a.forceQuirks=!0,this.state=r.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const a=this.currentToken;switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:{this.state=r.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case n.QUOTATION_MARK:{this._err(d.missingWhitespaceAfterDoctypePublicKeyword),a.publicId="",this.state=r.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case n.APOSTROPHE:{this._err(d.missingWhitespaceAfterDoctypePublicKeyword),a.publicId="",this.state=r.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case n.GREATER_THAN_SIGN:{this._err(d.missingDoctypePublicIdentifier),a.forceQuirks=!0,this.state=r.DATA,this.emitCurrentDoctype(a);break}case n.EOF:{this._err(d.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(d.missingQuoteBeforeDoctypePublicIdentifier),a.forceQuirks=!0,this.state=r.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const a=this.currentToken;switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:break;case n.QUOTATION_MARK:{a.publicId="",this.state=r.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case n.APOSTROPHE:{a.publicId="",this.state=r.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case n.GREATER_THAN_SIGN:{this._err(d.missingDoctypePublicIdentifier),a.forceQuirks=!0,this.state=r.DATA,this.emitCurrentDoctype(a);break}case n.EOF:{this._err(d.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(d.missingQuoteBeforeDoctypePublicIdentifier),a.forceQuirks=!0,this.state=r.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const a=this.currentToken;switch(t){case n.QUOTATION_MARK:{this.state=r.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case n.NULL:{this._err(d.unexpectedNullCharacter),a.publicId+=N;break}case n.GREATER_THAN_SIGN:{this._err(d.abruptDoctypePublicIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=r.DATA;break}case n.EOF:{this._err(d.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const a=this.currentToken;switch(t){case n.APOSTROPHE:{this.state=r.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case n.NULL:{this._err(d.unexpectedNullCharacter),a.publicId+=N;break}case n.GREATER_THAN_SIGN:{this._err(d.abruptDoctypePublicIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=r.DATA;break}case n.EOF:{this._err(d.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const a=this.currentToken;switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:{this.state=r.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case n.GREATER_THAN_SIGN:{this.state=r.DATA,this.emitCurrentDoctype(a);break}case n.QUOTATION_MARK:{this._err(d.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),a.systemId="",this.state=r.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case n.APOSTROPHE:{this._err(d.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),a.systemId="",this.state=r.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case n.EOF:{this._err(d.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(d.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=r.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const a=this.currentToken;switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:break;case n.GREATER_THAN_SIGN:{this.emitCurrentDoctype(a),this.state=r.DATA;break}case n.QUOTATION_MARK:{a.systemId="",this.state=r.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case n.APOSTROPHE:{a.systemId="",this.state=r.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case n.EOF:{this._err(d.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(d.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=r.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const a=this.currentToken;switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:{this.state=r.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case n.QUOTATION_MARK:{this._err(d.missingWhitespaceAfterDoctypeSystemKeyword),a.systemId="",this.state=r.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case n.APOSTROPHE:{this._err(d.missingWhitespaceAfterDoctypeSystemKeyword),a.systemId="",this.state=r.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case n.GREATER_THAN_SIGN:{this._err(d.missingDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=r.DATA,this.emitCurrentDoctype(a);break}case n.EOF:{this._err(d.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(d.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=r.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const a=this.currentToken;switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:break;case n.QUOTATION_MARK:{a.systemId="",this.state=r.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case n.APOSTROPHE:{a.systemId="",this.state=r.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case n.GREATER_THAN_SIGN:{this._err(d.missingDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=r.DATA,this.emitCurrentDoctype(a);break}case n.EOF:{this._err(d.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(d.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=r.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const a=this.currentToken;switch(t){case n.QUOTATION_MARK:{this.state=r.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case n.NULL:{this._err(d.unexpectedNullCharacter),a.systemId+=N;break}case n.GREATER_THAN_SIGN:{this._err(d.abruptDoctypeSystemIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=r.DATA;break}case n.EOF:{this._err(d.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const a=this.currentToken;switch(t){case n.APOSTROPHE:{this.state=r.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case n.NULL:{this._err(d.unexpectedNullCharacter),a.systemId+=N;break}case n.GREATER_THAN_SIGN:{this._err(d.abruptDoctypeSystemIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=r.DATA;break}case n.EOF:{this._err(d.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const a=this.currentToken;switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:break;case n.GREATER_THAN_SIGN:{this.emitCurrentDoctype(a),this.state=r.DATA;break}case n.EOF:{this._err(d.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(d.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=r.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const a=this.currentToken;switch(t){case n.GREATER_THAN_SIGN:{this.emitCurrentDoctype(a),this.state=r.DATA;break}case n.NULL:{this._err(d.unexpectedNullCharacter);break}case n.EOF:{this.emitCurrentDoctype(a),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case n.RIGHT_SQUARE_BRACKET:{this.state=r.CDATA_SECTION_BRACKET;break}case n.EOF:{this._err(d.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===n.RIGHT_SQUARE_BRACKET?this.state=r.CDATA_SECTION_END:(this._emitChars("]"),this.state=r.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case n.GREATER_THAN_SIGN:{this.state=r.DATA;break}case n.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=r.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(t){t===n.NUMBER_SIGN?this.state=r.NUMERIC_CHARACTER_REFERENCE:Pe(t)?(this.state=r.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(t)):(this._flushCodePointConsumedAsCharacterReference(n.AMPERSAND),this._reconsumeInState(this.returnState,t))}_stateNamedCharacterReference(t){const a=this._matchNamedCharacterReference(t);if(!this._ensureHibernation())if(a){for(let s=0;s<a.length;s++)this._flushCodePointConsumedAsCharacterReference(a[s]);this.state=this.returnState}else this._flushCodePointConsumedAsCharacterReference(n.AMPERSAND),this.state=r.AMBIGUOUS_AMPERSAND}_stateAmbiguousAmpersand(t){Pe(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===n.SEMICOLON&&this._err(d.unknownNamedCharacterReference),this._reconsumeInState(this.returnState,t))}_stateNumericCharacterReference(t){this.charRefCode=0,t===n.LATIN_SMALL_X||t===n.LATIN_CAPITAL_X?this.state=r.HEXADEMICAL_CHARACTER_REFERENCE_START:te(t)?(this.state=r.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(t)):(this._err(d.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(n.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(n.NUMBER_SIGN),this._reconsumeInState(this.returnState,t))}_stateHexademicalCharacterReferenceStart(t){Ju(t)?(this.state=r.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(t)):(this._err(d.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(n.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(n.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState)}_stateHexademicalCharacterReference(t){Lt(t)?this.charRefCode=this.charRefCode*16+t-55:St(t)?this.charRefCode=this.charRefCode*16+t-87:te(t)?this.charRefCode=this.charRefCode*16+t-48:t===n.SEMICOLON?this.state=r.NUMERIC_CHARACTER_REFERENCE_END:(this._err(d.missingSemicolonAfterCharacterReference),this.state=r.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(t))}_stateDecimalCharacterReference(t){te(t)?this.charRefCode=this.charRefCode*10+t-48:t===n.SEMICOLON?this.state=r.NUMERIC_CHARACTER_REFERENCE_END:(this._err(d.missingSemicolonAfterCharacterReference),this.state=r.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(t))}_stateNumericCharacterReferenceEnd(t){if(this.charRefCode===n.NULL)this._err(d.nullCharacterReference),this.charRefCode=n.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(d.characterReferenceOutsideUnicodeRange),this.charRefCode=n.REPLACEMENT_CHARACTER;else if(At(this.charRefCode))this._err(d.surrogateCharacterReference),this.charRefCode=n.REPLACEMENT_CHARACTER;else if(pt(this.charRefCode))this._err(d.noncharacterCharacterReference);else if(Ct(this.charRefCode)||this.charRefCode===n.CARRIAGE_RETURN){this._err(d.controlCharacterReference);const a=zu.get(this.charRefCode);a!==void 0&&(this.charRefCode=a)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}}const Dt=new Set([u.DD,u.DT,u.LI,u.OPTGROUP,u.OPTION,u.P,u.RB,u.RP,u.RT,u.RTC]),Ke=new Set([...Dt,u.CAPTION,u.COLGROUP,u.TBODY,u.TD,u.TFOOT,u.TH,u.THEAD,u.TR]),he=new Map([[u.APPLET,E.HTML],[u.CAPTION,E.HTML],[u.HTML,E.HTML],[u.MARQUEE,E.HTML],[u.OBJECT,E.HTML],[u.TABLE,E.HTML],[u.TD,E.HTML],[u.TEMPLATE,E.HTML],[u.TH,E.HTML],[u.ANNOTATION_XML,E.MATHML],[u.MI,E.MATHML],[u.MN,E.MATHML],[u.MO,E.MATHML],[u.MS,E.MATHML],[u.MTEXT,E.MATHML],[u.DESC,E.SVG],[u.FOREIGN_OBJECT,E.SVG],[u.TITLE,E.SVG]]),ea=[u.H1,u.H2,u.H3,u.H4,u.H5,u.H6],ta=[u.TR,u.TEMPLATE,u.HTML],ua=[u.TBODY,u.TFOOT,u.THEAD,u.TEMPLATE,u.HTML],aa=[u.TABLE,u.TEMPLATE,u.HTML],sa=[u.TD,u.TH];class na{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,a,s){this.treeAdapter=a,this.handler=s,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=u.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===u.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===E.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,a){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=a,this.currentTagId=a,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,a,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,a){const s=this._indexOf(t);this.items[s]=a,s===this.stackTop&&(this.current=a)}insertAfter(t,a,s){const c=this._indexOf(t)+1;this.items.splice(c,0,a),this.tagIDs.splice(c,0,s),this.stackTop++,c===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,c===this.stackTop)}popUntilTagNamePopped(t){let a=this.stackTop+1;do a=this.tagIDs.lastIndexOf(t,a-1);while(a>0&&this.treeAdapter.getNamespaceURI(this.items[a])!==E.HTML);this.shortenToLength(a<0?0:a)}shortenToLength(t){for(;this.stackTop>=t;){const a=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(a,this.stackTop<t)}}popUntilElementPopped(t){const a=this._indexOf(t);this.shortenToLength(a<0?0:a)}popUntilPopped(t,a){const s=this._indexOfTagNames(t,a);this.shortenToLength(s<0?0:s)}popUntilNumberedHeaderPopped(){this.popUntilPopped(ea,E.HTML)}popUntilTableCellPopped(){this.popUntilPopped(sa,E.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,a){for(let s=this.stackTop;s>=0;s--)if(t.includes(this.tagIDs[s])&&this.treeAdapter.getNamespaceURI(this.items[s])===a)return s;return-1}clearBackTo(t,a){const s=this._indexOfTagNames(t,a);this.shortenToLength(s+1)}clearBackToTableContext(){this.clearBackTo(aa,E.HTML)}clearBackToTableBodyContext(){this.clearBackTo(ua,E.HTML)}clearBackToTableRowContext(){this.clearBackTo(ta,E.HTML)}remove(t){const a=this._indexOf(t);a>=0&&(a===this.stackTop?this.pop():(this.items.splice(a,1),this.tagIDs.splice(a,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===u.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const a=this._indexOf(t)-1;return a>=0?this.items[a]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===u.HTML}hasInScope(t){for(let a=this.stackTop;a>=0;a--){const s=this.tagIDs[a],c=this.treeAdapter.getNamespaceURI(this.items[a]);if(s===t&&c===E.HTML)return!0;if(he.get(s)===c)return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const a=this.tagIDs[t],s=this.treeAdapter.getNamespaceURI(this.items[t]);if(Rt(a)&&s===E.HTML)return!0;if(he.get(a)===s)return!1}return!0}hasInListItemScope(t){for(let a=this.stackTop;a>=0;a--){const s=this.tagIDs[a],c=this.treeAdapter.getNamespaceURI(this.items[a]);if(s===t&&c===E.HTML)return!0;if((s===u.UL||s===u.OL)&&c===E.HTML||he.get(s)===c)return!1}return!0}hasInButtonScope(t){for(let a=this.stackTop;a>=0;a--){const s=this.tagIDs[a],c=this.treeAdapter.getNamespaceURI(this.items[a]);if(s===t&&c===E.HTML)return!0;if(s===u.BUTTON&&c===E.HTML||he.get(s)===c)return!1}return!0}hasInTableScope(t){for(let a=this.stackTop;a>=0;a--){const s=this.tagIDs[a];if(this.treeAdapter.getNamespaceURI(this.items[a])===E.HTML){if(s===t)return!0;if(s===u.TABLE||s===u.TEMPLATE||s===u.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const a=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===E.HTML){if(a===u.TBODY||a===u.THEAD||a===u.TFOOT)return!0;if(a===u.TABLE||a===u.HTML)return!1}}return!0}hasInSelectScope(t){for(let a=this.stackTop;a>=0;a--){const s=this.tagIDs[a];if(this.treeAdapter.getNamespaceURI(this.items[a])===E.HTML){if(s===t)return!0;if(s!==u.OPTION&&s!==u.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Dt.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Ke.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&Ke.has(this.currentTagId);)this.pop()}}const ge=3;var x;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(x=x||(x={}));const Ve={type:x.Marker};class ra{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,a){const s=[],c=a.length,l=this.treeAdapter.getTagName(t),h=this.treeAdapter.getNamespaceURI(t);for(let m=0;m<this.entries.length;m++){const _=this.entries[m];if(_.type===x.Marker)break;const{element:C}=_;if(this.treeAdapter.getTagName(C)===l&&this.treeAdapter.getNamespaceURI(C)===h){const B=this.treeAdapter.getAttrList(C);B.length===c&&s.push({idx:m,attrs:B})}}return s}_ensureNoahArkCondition(t){if(this.entries.length<ge)return;const a=this.treeAdapter.getAttrList(t),s=this._getNoahArkConditionCandidates(t,a);if(s.length<ge)return;const c=new Map(a.map(h=>[h.name,h.value]));let l=0;for(let h=0;h<s.length;h++){const m=s[h];m.attrs.every(_=>c.get(_.name)===_.value)&&(l+=1,l>=ge&&this.entries.splice(m.idx,1))}}insertMarker(){this.entries.unshift(Ve)}pushElement(t,a){this._ensureNoahArkCondition(t),this.entries.unshift({type:x.Element,element:t,token:a})}insertElementAfterBookmark(t,a){const s=this.entries.indexOf(this.bookmark);this.entries.splice(s,0,{type:x.Element,element:t,token:a})}removeEntry(t){const a=this.entries.indexOf(t);a>=0&&this.entries.splice(a,1)}clearToLastMarker(){const t=this.entries.indexOf(Ve);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const a=this.entries.find(s=>s.type===x.Marker||this.treeAdapter.getTagName(s.element)===t);return a&&a.type===x.Element?a:null}getElementEntry(t){return this.entries.find(a=>a.type===x.Element&&a.element===t)}}function ze(e){return{nodeName:"#text",value:e,parentNode:null}}const q={createDocument(){return{nodeName:"#document",mode:P.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,a){return{nodeName:e,tagName:e,attrs:a,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,a){const s=e.childNodes.indexOf(a);e.childNodes.splice(s,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,a,s){const c=e.childNodes.find(l=>l.nodeName==="#documentType");if(c)c.name=t,c.publicId=a,c.systemId=s;else{const l={nodeName:"#documentType",name:t,publicId:a,systemId:s,parentNode:null};q.appendChild(e,l)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const a=e.childNodes[e.childNodes.length-1];if(q.isTextNode(a)){a.value+=t;return}}q.appendChild(e,ze(t))},insertTextBefore(e,t,a){const s=e.childNodes[e.childNodes.indexOf(a)-1];s&&q.isTextNode(s)?s.value+=t:q.insertBefore(e,ze(t),a)},adoptAttributes(e,t){const a=new Set(e.attrs.map(s=>s.name));for(let s=0;s<t.length;s++)a.has(t[s].name)||e.attrs.push(t[s])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Pt="html",ia="about:legacy-compat",ca="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Mt=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],oa=[...Mt,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],la=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),xt=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],da=[...xt,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function je(e,t){return t.some(a=>e.startsWith(a))}function Ea(e){return e.name===Pt&&e.publicId===null&&(e.systemId===null||e.systemId===ia)}function ha(e){if(e.name!==Pt)return P.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===ca)return P.QUIRKS;let{publicId:a}=e;if(a!==null){if(a=a.toLowerCase(),la.has(a))return P.QUIRKS;let s=t===null?oa:Mt;if(je(a,s))return P.QUIRKS;if(s=t===null?xt:da,je(a,s))return P.LIMITED_QUIRKS}return P.NO_QUIRKS}const Je={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Ta="definitionurl",fa="definitionURL",ma=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),_a=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:E.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:E.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:E.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:E.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:E.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:E.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:E.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:E.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:E.XML}],["xml:space",{prefix:"xml",name:"space",namespace:E.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:E.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:E.XMLNS}]]),ba=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Aa=new Set([u.B,u.BIG,u.BLOCKQUOTE,u.BODY,u.BR,u.CENTER,u.CODE,u.DD,u.DIV,u.DL,u.DT,u.EM,u.EMBED,u.H1,u.H2,u.H3,u.H4,u.H5,u.H6,u.HEAD,u.HR,u.I,u.IMG,u.LI,u.LISTING,u.MENU,u.META,u.NOBR,u.OL,u.P,u.PRE,u.RUBY,u.S,u.SMALL,u.SPAN,u.STRONG,u.STRIKE,u.SUB,u.SUP,u.TABLE,u.TT,u.U,u.UL,u.VAR]);function Ca(e){const t=e.tagID;return t===u.FONT&&e.attrs.some(({name:s})=>s===F.COLOR||s===F.SIZE||s===F.FACE)||Aa.has(t)}function kt(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Ta){e.attrs[t].name=fa;break}}function Bt(e){for(let t=0;t<e.attrs.length;t++){const a=ma.get(e.attrs[t].name);a!=null&&(e.attrs[t].name=a)}}function Ue(e){for(let t=0;t<e.attrs.length;t++){const a=_a.get(e.attrs[t].name);a&&(e.attrs[t].prefix=a.prefix,e.attrs[t].name=a.name,e.attrs[t].namespace=a.namespace)}}function pa(e){const t=ba.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=j(e.tagName))}function Na(e,t){return t===E.MATHML&&(e===u.MI||e===u.MO||e===u.MN||e===u.MS||e===u.MTEXT)}function Ia(e,t,a){if(t===E.MATHML&&e===u.ANNOTATION_XML){for(let s=0;s<a.length;s++)if(a[s].name===F.ENCODING){const c=a[s].value.toLowerCase();return c===Je.TEXT_HTML||c===Je.APPLICATION_XML}}return t===E.SVG&&(e===u.FOREIGN_OBJECT||e===u.DESC||e===u.TITLE)}function ga(e,t,a,s){return(!s||s===E.HTML)&&Ia(e,t,a)||(!s||s===E.MATHML)&&Na(e,t)}const Ra="hidden",La=8,Sa=3;var i;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(i||(i={}));const Oa={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Ht=new Set([u.TABLE,u.TBODY,u.TFOOT,u.THEAD,u.TR]),$e={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:q,onParseError:null};class Ze{constructor(t,a,s=null,c=null){this.fragmentContext=s,this.scriptHandler=c,this.currentToken=null,this.stopped=!1,this.insertionMode=i.INITIAL,this.originalInsertionMode=i.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...$e,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=a??this.treeAdapter.createDocument(),this.tokenizer=new Zu(this.options,this),this.activeFormattingElements=new ra(this.treeAdapter),this.fragmentContextID=s?j(this.treeAdapter.getTagName(s)):u.UNKNOWN,this._setContextModes(s??this.document,this.fragmentContextID),this.openElements=new na(this.document,this.treeAdapter,this)}static parse(t,a){const s=new this(a);return s.tokenizer.write(t,!0),s.document}static getFragmentParser(t,a){const s={...$e,...a};t??(t=s.treeAdapter.createElement(o.TEMPLATE,E.HTML,[]));const c=s.treeAdapter.createElement("documentmock",E.HTML,[]),l=new this(s,c,t);return l.fragmentContextID===u.TEMPLATE&&l.tmplInsertionModeStack.unshift(i.IN_TEMPLATE),l._initTokenizerForFragmentParsing(),l._insertFakeRootElement(),l._resetInsertionMode(),l._findFormInFragmentContext(),l}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),a=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,a),a}_err(t,a,s){var c;if(!this.onParseError)return;const l=(c=t.location)!==null&&c!==void 0?c:Oa,h={code:a,startLine:l.startLine,startCol:l.startCol,startOffset:l.startOffset,endLine:s?l.startLine:l.endLine,endCol:s?l.startCol:l.endCol,endOffset:s?l.startOffset:l.endOffset};this.onParseError(h)}onItemPush(t,a,s){var c,l;(l=(c=this.treeAdapter).onItemPush)===null||l===void 0||l.call(c,t),s&&this.openElements.stackTop>0&&this._setContextModes(t,a)}onItemPop(t,a){var s,c;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(c=(s=this.treeAdapter).onItemPop)===null||c===void 0||c.call(s,t,this.openElements.current),a){let l,h;this.openElements.stackTop===0&&this.fragmentContext?(l=this.fragmentContext,h=this.fragmentContextID):{current:l,currentTagId:h}=this.openElements,this._setContextModes(l,h)}}_setContextModes(t,a){const s=t===this.document||this.treeAdapter.getNamespaceURI(t)===E.HTML;this.currentNotInHTML=!s,this.tokenizer.inForeignNode=!s&&!this._isIntegrationPoint(a,t)}_switchToTextParsing(t,a){this._insertElement(t,E.HTML),this.tokenizer.state=a,this.originalInsertionMode=this.insertionMode,this.insertionMode=i.TEXT}switchToPlaintextParsing(){this.insertionMode=i.TEXT,this.originalInsertionMode=i.IN_BODY,this.tokenizer.state=I.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===o.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==E.HTML))switch(this.fragmentContextID){case u.TITLE:case u.TEXTAREA:{this.tokenizer.state=I.RCDATA;break}case u.STYLE:case u.XMP:case u.IFRAME:case u.NOEMBED:case u.NOFRAMES:case u.NOSCRIPT:{this.tokenizer.state=I.RAWTEXT;break}case u.SCRIPT:{this.tokenizer.state=I.SCRIPT_DATA;break}case u.PLAINTEXT:{this.tokenizer.state=I.PLAINTEXT;break}}}_setDocumentType(t){const a=t.name||"",s=t.publicId||"",c=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,a,s,c),t.location){const h=this.treeAdapter.getChildNodes(this.document).find(m=>this.treeAdapter.isDocumentTypeNode(m));h&&this.treeAdapter.setNodeSourceCodeLocation(h,t.location)}}_attachElementToTree(t,a){if(this.options.sourceCodeLocationInfo){const s=a&&{...a,startTag:a};this.treeAdapter.setNodeSourceCodeLocation(t,s)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const s=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(s,t)}}_appendElement(t,a){const s=this.treeAdapter.createElement(t.tagName,a,t.attrs);this._attachElementToTree(s,t.location)}_insertElement(t,a){const s=this.treeAdapter.createElement(t.tagName,a,t.attrs);this._attachElementToTree(s,t.location),this.openElements.push(s,t.tagID)}_insertFakeElement(t,a){const s=this.treeAdapter.createElement(t,E.HTML,[]);this._attachElementToTree(s,null),this.openElements.push(s,a)}_insertTemplate(t){const a=this.treeAdapter.createElement(t.tagName,E.HTML,t.attrs),s=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(a,s),this._attachElementToTree(a,t.location),this.openElements.push(a,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(o.HTML,E.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,u.HTML)}_appendCommentNode(t,a){const s=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(a,s),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_insertCharacters(t){let a,s;if(this._shouldFosterParentOnInsertion()?({parent:a,beforeElement:s}=this._findFosterParentingLocation(),s?this.treeAdapter.insertTextBefore(a,t.chars,s):this.treeAdapter.insertText(a,t.chars)):(a=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(a,t.chars)),!t.location)return;const c=this.treeAdapter.getChildNodes(a),l=s?c.lastIndexOf(s):c.length,h=c[l-1];if(this.treeAdapter.getNodeSourceCodeLocation(h)){const{endLine:_,endCol:C,endOffset:B}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(h,{endLine:_,endCol:C,endOffset:B})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(h,t.location)}_adoptNodes(t,a){for(let s=this.treeAdapter.getFirstChild(t);s;s=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(s),this.treeAdapter.appendChild(a,s)}_setEndLocation(t,a){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&a.location){const s=a.location,c=this.treeAdapter.getTagName(t),l=a.type===A.END_TAG&&c===a.tagName?{endTag:{...s},endLine:s.endLine,endCol:s.endCol,endOffset:s.endOffset}:{endLine:s.startLine,endCol:s.startCol,endOffset:s.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,l)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let a,s;return this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,t.tagID===u.SVG&&this.treeAdapter.getTagName(a)===o.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(a)===E.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===u.MGLYPH||t.tagID===u.MALIGNMARK)&&!this._isIntegrationPoint(s,a,E.HTML)}_processToken(t){switch(t.type){case A.CHARACTER:{this.onCharacter(t);break}case A.NULL_CHARACTER:{this.onNullCharacter(t);break}case A.COMMENT:{this.onComment(t);break}case A.DOCTYPE:{this.onDoctype(t);break}case A.START_TAG:{this._processStartTag(t);break}case A.END_TAG:{this.onEndTag(t);break}case A.EOF:{this.onEof(t);break}case A.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,a,s){const c=this.treeAdapter.getNamespaceURI(a),l=this.treeAdapter.getAttrList(a);return ga(t,c,l,s)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const a=this.activeFormattingElements.entries.findIndex(c=>c.type===x.Marker||this.openElements.contains(c.element)),s=a<0?t-1:a-1;for(let c=s;c>=0;c--){const l=this.activeFormattingElements.entries[c];this._insertElement(l.token,this.treeAdapter.getNamespaceURI(l.element)),l.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=i.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(u.P),this.openElements.popUntilTagNamePopped(u.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case u.TR:{this.insertionMode=i.IN_ROW;return}case u.TBODY:case u.THEAD:case u.TFOOT:{this.insertionMode=i.IN_TABLE_BODY;return}case u.CAPTION:{this.insertionMode=i.IN_CAPTION;return}case u.COLGROUP:{this.insertionMode=i.IN_COLUMN_GROUP;return}case u.TABLE:{this.insertionMode=i.IN_TABLE;return}case u.BODY:{this.insertionMode=i.IN_BODY;return}case u.FRAMESET:{this.insertionMode=i.IN_FRAMESET;return}case u.SELECT:{this._resetInsertionModeForSelect(t);return}case u.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case u.HTML:{this.insertionMode=this.headElement?i.AFTER_HEAD:i.BEFORE_HEAD;return}case u.TD:case u.TH:{if(t>0){this.insertionMode=i.IN_CELL;return}break}case u.HEAD:{if(t>0){this.insertionMode=i.IN_HEAD;return}break}}this.insertionMode=i.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let a=t-1;a>0;a--){const s=this.openElements.tagIDs[a];if(s===u.TEMPLATE)break;if(s===u.TABLE){this.insertionMode=i.IN_SELECT_IN_TABLE;return}}this.insertionMode=i.IN_SELECT}_isElementCausesFosterParenting(t){return Ht.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const a=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case u.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(a)===E.HTML)return{parent:this.treeAdapter.getTemplateContent(a),beforeElement:null};break}case u.TABLE:{const s=this.treeAdapter.getParentNode(a);return s?{parent:s,beforeElement:a}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const a=this._findFosterParentingLocation();a.beforeElement?this.treeAdapter.insertBefore(a.parent,t,a.beforeElement):this.treeAdapter.appendChild(a.parent,t)}_isSpecialElement(t,a){const s=this.treeAdapter.getNamespaceURI(t);return Vu[s].has(a)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){sn(this,t);return}switch(this.insertionMode){case i.INITIAL:{$(this,t);break}case i.BEFORE_HTML:{ue(this,t);break}case i.BEFORE_HEAD:{ae(this,t);break}case i.IN_HEAD:{se(this,t);break}case i.IN_HEAD_NO_SCRIPT:{ne(this,t);break}case i.AFTER_HEAD:{re(this,t);break}case i.IN_BODY:case i.IN_CAPTION:case i.IN_CELL:case i.IN_TEMPLATE:{yt(this,t);break}case i.TEXT:case i.IN_SELECT:case i.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case i.IN_TABLE:case i.IN_TABLE_BODY:case i.IN_ROW:{Re(this,t);break}case i.IN_TABLE_TEXT:{Wt(this,t);break}case i.IN_COLUMN_GROUP:{me(this,t);break}case i.AFTER_BODY:{_e(this,t);break}case i.AFTER_AFTER_BODY:{fe(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){an(this,t);return}switch(this.insertionMode){case i.INITIAL:{$(this,t);break}case i.BEFORE_HTML:{ue(this,t);break}case i.BEFORE_HEAD:{ae(this,t);break}case i.IN_HEAD:{se(this,t);break}case i.IN_HEAD_NO_SCRIPT:{ne(this,t);break}case i.AFTER_HEAD:{re(this,t);break}case i.TEXT:{this._insertCharacters(t);break}case i.IN_TABLE:case i.IN_TABLE_BODY:case i.IN_ROW:{Re(this,t);break}case i.IN_COLUMN_GROUP:{me(this,t);break}case i.AFTER_BODY:{_e(this,t);break}case i.AFTER_AFTER_BODY:{fe(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Me(this,t);return}switch(this.insertionMode){case i.INITIAL:case i.BEFORE_HTML:case i.BEFORE_HEAD:case i.IN_HEAD:case i.IN_HEAD_NO_SCRIPT:case i.AFTER_HEAD:case i.IN_BODY:case i.IN_TABLE:case i.IN_CAPTION:case i.IN_COLUMN_GROUP:case i.IN_TABLE_BODY:case i.IN_ROW:case i.IN_CELL:case i.IN_SELECT:case i.IN_SELECT_IN_TABLE:case i.IN_TEMPLATE:case i.IN_FRAMESET:case i.AFTER_FRAMESET:{Me(this,t);break}case i.IN_TABLE_TEXT:{Z(this,t);break}case i.AFTER_BODY:{Ha(this,t);break}case i.AFTER_AFTER_BODY:case i.AFTER_AFTER_FRAMESET:{Ua(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case i.INITIAL:{ya(this,t);break}case i.BEFORE_HEAD:case i.IN_HEAD:case i.IN_HEAD_NO_SCRIPT:case i.AFTER_HEAD:{this._err(t,d.misplacedDoctype);break}case i.IN_TABLE_TEXT:{Z(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,d.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?nn(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case i.INITIAL:{$(this,t);break}case i.BEFORE_HTML:{Fa(this,t);break}case i.BEFORE_HEAD:{va(this,t);break}case i.IN_HEAD:{k(this,t);break}case i.IN_HEAD_NO_SCRIPT:{Wa(this,t);break}case i.AFTER_HEAD:{Xa(this,t);break}case i.IN_BODY:{S(this,t);break}case i.IN_TABLE:{K(this,t);break}case i.IN_TABLE_TEXT:{Z(this,t);break}case i.IN_CAPTION:{Ys(this,t);break}case i.IN_COLUMN_GROUP:{we(this,t);break}case i.IN_TABLE_BODY:{Ce(this,t);break}case i.IN_ROW:{pe(this,t);break}case i.IN_CELL:{qs(this,t);break}case i.IN_SELECT:{Gt(this,t);break}case i.IN_SELECT_IN_TABLE:{Gs(this,t);break}case i.IN_TEMPLATE:{Vs(this,t);break}case i.AFTER_BODY:{js(this,t);break}case i.IN_FRAMESET:{Js(this,t);break}case i.AFTER_FRAMESET:{Zs(this,t);break}case i.AFTER_AFTER_BODY:{tn(this,t);break}case i.AFTER_AFTER_FRAMESET:{un(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?rn(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case i.INITIAL:{$(this,t);break}case i.BEFORE_HTML:{wa(this,t);break}case i.BEFORE_HEAD:{Ya(this,t);break}case i.IN_HEAD:{Qa(this,t);break}case i.IN_HEAD_NO_SCRIPT:{qa(this,t);break}case i.AFTER_HEAD:{Ga(this,t);break}case i.IN_BODY:{Ae(this,t);break}case i.TEXT:{Ms(this,t);break}case i.IN_TABLE:{ie(this,t);break}case i.IN_TABLE_TEXT:{Z(this,t);break}case i.IN_CAPTION:{Qs(this,t);break}case i.IN_COLUMN_GROUP:{Ws(this,t);break}case i.IN_TABLE_BODY:{xe(this,t);break}case i.IN_ROW:{Xt(this,t);break}case i.IN_CELL:{Xs(this,t);break}case i.IN_SELECT:{Kt(this,t);break}case i.IN_SELECT_IN_TABLE:{Ks(this,t);break}case i.IN_TEMPLATE:{zs(this,t);break}case i.AFTER_BODY:{zt(this,t);break}case i.IN_FRAMESET:{$s(this,t);break}case i.AFTER_FRAMESET:{en(this,t);break}case i.AFTER_AFTER_BODY:{fe(this,t);break}}}onEof(t){switch(this.insertionMode){case i.INITIAL:{$(this,t);break}case i.BEFORE_HTML:{ue(this,t);break}case i.BEFORE_HEAD:{ae(this,t);break}case i.IN_HEAD:{se(this,t);break}case i.IN_HEAD_NO_SCRIPT:{ne(this,t);break}case i.AFTER_HEAD:{re(this,t);break}case i.IN_BODY:case i.IN_TABLE:case i.IN_CAPTION:case i.IN_COLUMN_GROUP:case i.IN_TABLE_BODY:case i.IN_ROW:case i.IN_CELL:case i.IN_SELECT:case i.IN_SELECT_IN_TABLE:{Yt(this,t);break}case i.TEXT:{xs(this,t);break}case i.IN_TABLE_TEXT:{Z(this,t);break}case i.IN_TEMPLATE:{Vt(this,t);break}case i.AFTER_BODY:case i.IN_FRAMESET:case i.AFTER_FRAMESET:case i.AFTER_AFTER_BODY:case i.AFTER_AFTER_FRAMESET:{Fe(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===n.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case i.IN_HEAD:case i.IN_HEAD_NO_SCRIPT:case i.AFTER_HEAD:case i.TEXT:case i.IN_COLUMN_GROUP:case i.IN_SELECT:case i.IN_SELECT_IN_TABLE:case i.IN_FRAMESET:case i.AFTER_FRAMESET:{this._insertCharacters(t);break}case i.IN_BODY:case i.IN_CAPTION:case i.IN_CELL:case i.IN_TEMPLATE:case i.AFTER_BODY:case i.AFTER_AFTER_BODY:case i.AFTER_AFTER_FRAMESET:{Ut(this,t);break}case i.IN_TABLE:case i.IN_TABLE_BODY:case i.IN_ROW:{Re(this,t);break}case i.IN_TABLE_TEXT:{Qt(this,t);break}}}}function Da(e,t){let a=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return a?e.openElements.contains(a.element)?e.openElements.hasInScope(t.tagID)||(a=null):(e.activeFormattingElements.removeEntry(a),a=null):vt(e,t),a}function Pa(e,t){let a=null,s=e.openElements.stackTop;for(;s>=0;s--){const c=e.openElements.items[s];if(c===t.element)break;e._isSpecialElement(c,e.openElements.tagIDs[s])&&(a=c)}return a||(e.openElements.shortenToLength(s<0?0:s),e.activeFormattingElements.removeEntry(t)),a}function Ma(e,t,a){let s=t,c=e.openElements.getCommonAncestor(t);for(let l=0,h=c;h!==a;l++,h=c){c=e.openElements.getCommonAncestor(h);const m=e.activeFormattingElements.getElementEntry(h),_=m&&l>=Sa;!m||_?(_&&e.activeFormattingElements.removeEntry(m),e.openElements.remove(h)):(h=xa(e,m),s===t&&(e.activeFormattingElements.bookmark=m),e.treeAdapter.detachNode(s),e.treeAdapter.appendChild(h,s),s=h)}return s}function xa(e,t){const a=e.treeAdapter.getNamespaceURI(t.element),s=e.treeAdapter.createElement(t.token.tagName,a,t.token.attrs);return e.openElements.replace(t.element,s),t.element=s,s}function ka(e,t,a){const s=e.treeAdapter.getTagName(t),c=j(s);if(e._isElementCausesFosterParenting(c))e._fosterParentElement(a);else{const l=e.treeAdapter.getNamespaceURI(t);c===u.TEMPLATE&&l===E.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,a)}}function Ba(e,t,a){const s=e.treeAdapter.getNamespaceURI(a.element),{token:c}=a,l=e.treeAdapter.createElement(c.tagName,s,c.attrs);e._adoptNodes(t,l),e.treeAdapter.appendChild(t,l),e.activeFormattingElements.insertElementAfterBookmark(l,c),e.activeFormattingElements.removeEntry(a),e.openElements.remove(a.element),e.openElements.insertAfter(t,l,c.tagID)}function ye(e,t){for(let a=0;a<La;a++){const s=Da(e,t);if(!s)break;const c=Pa(e,s);if(!c)break;e.activeFormattingElements.bookmark=s;const l=Ma(e,c,s.element),h=e.openElements.getCommonAncestor(s.element);e.treeAdapter.detachNode(l),h&&ka(e,h,l),Ba(e,c,s)}}function Me(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Ha(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Ua(e,t){e._appendCommentNode(t,e.document)}function Fe(e,t){if(e.stopped=!0,t.location){const a=e.fragmentContext?0:2;for(let s=e.openElements.stackTop;s>=a;s--)e._setEndLocation(e.openElements.items[s],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const s=e.openElements.items[0],c=e.treeAdapter.getNodeSourceCodeLocation(s);if(c&&!c.endTag&&(e._setEndLocation(s,t),e.openElements.stackTop>=1)){const l=e.openElements.items[1],h=e.treeAdapter.getNodeSourceCodeLocation(l);h&&!h.endTag&&e._setEndLocation(l,t)}}}}function ya(e,t){e._setDocumentType(t);const a=t.forceQuirks?P.QUIRKS:ha(t);Ea(t)||e._err(t,d.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,a),e.insertionMode=i.BEFORE_HTML}function $(e,t){e._err(t,d.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,P.QUIRKS),e.insertionMode=i.BEFORE_HTML,e._processToken(t)}function Fa(e,t){t.tagID===u.HTML?(e._insertElement(t,E.HTML),e.insertionMode=i.BEFORE_HEAD):ue(e,t)}function wa(e,t){const a=t.tagID;(a===u.HTML||a===u.HEAD||a===u.BODY||a===u.BR)&&ue(e,t)}function ue(e,t){e._insertFakeRootElement(),e.insertionMode=i.BEFORE_HEAD,e._processToken(t)}function va(e,t){switch(t.tagID){case u.HTML:{S(e,t);break}case u.HEAD:{e._insertElement(t,E.HTML),e.headElement=e.openElements.current,e.insertionMode=i.IN_HEAD;break}default:ae(e,t)}}function Ya(e,t){const a=t.tagID;a===u.HEAD||a===u.BODY||a===u.HTML||a===u.BR?ae(e,t):e._err(t,d.endTagWithoutMatchingOpenElement)}function ae(e,t){e._insertFakeElement(o.HEAD,u.HEAD),e.headElement=e.openElements.current,e.insertionMode=i.IN_HEAD,e._processToken(t)}function k(e,t){switch(t.tagID){case u.HTML:{S(e,t);break}case u.BASE:case u.BASEFONT:case u.BGSOUND:case u.LINK:case u.META:{e._appendElement(t,E.HTML),t.ackSelfClosing=!0;break}case u.TITLE:{e._switchToTextParsing(t,I.RCDATA);break}case u.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,I.RAWTEXT):(e._insertElement(t,E.HTML),e.insertionMode=i.IN_HEAD_NO_SCRIPT);break}case u.NOFRAMES:case u.STYLE:{e._switchToTextParsing(t,I.RAWTEXT);break}case u.SCRIPT:{e._switchToTextParsing(t,I.SCRIPT_DATA);break}case u.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=i.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(i.IN_TEMPLATE);break}case u.HEAD:{e._err(t,d.misplacedStartTagForHeadElement);break}default:se(e,t)}}function Qa(e,t){switch(t.tagID){case u.HEAD:{e.openElements.pop(),e.insertionMode=i.AFTER_HEAD;break}case u.BODY:case u.BR:case u.HTML:{se(e,t);break}case u.TEMPLATE:{W(e,t);break}default:e._err(t,d.endTagWithoutMatchingOpenElement)}}function W(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==u.TEMPLATE&&e._err(t,d.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(u.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,d.endTagWithoutMatchingOpenElement)}function se(e,t){e.openElements.pop(),e.insertionMode=i.AFTER_HEAD,e._processToken(t)}function Wa(e,t){switch(t.tagID){case u.HTML:{S(e,t);break}case u.BASEFONT:case u.BGSOUND:case u.HEAD:case u.LINK:case u.META:case u.NOFRAMES:case u.STYLE:{k(e,t);break}case u.NOSCRIPT:{e._err(t,d.nestedNoscriptInHead);break}default:ne(e,t)}}function qa(e,t){switch(t.tagID){case u.NOSCRIPT:{e.openElements.pop(),e.insertionMode=i.IN_HEAD;break}case u.BR:{ne(e,t);break}default:e._err(t,d.endTagWithoutMatchingOpenElement)}}function ne(e,t){const a=t.type===A.EOF?d.openElementsLeftAfterEof:d.disallowedContentInNoscriptInHead;e._err(t,a),e.openElements.pop(),e.insertionMode=i.IN_HEAD,e._processToken(t)}function Xa(e,t){switch(t.tagID){case u.HTML:{S(e,t);break}case u.BODY:{e._insertElement(t,E.HTML),e.framesetOk=!1,e.insertionMode=i.IN_BODY;break}case u.FRAMESET:{e._insertElement(t,E.HTML),e.insertionMode=i.IN_FRAMESET;break}case u.BASE:case u.BASEFONT:case u.BGSOUND:case u.LINK:case u.META:case u.NOFRAMES:case u.SCRIPT:case u.STYLE:case u.TEMPLATE:case u.TITLE:{e._err(t,d.abandonedHeadElementChild),e.openElements.push(e.headElement,u.HEAD),k(e,t),e.openElements.remove(e.headElement);break}case u.HEAD:{e._err(t,d.misplacedStartTagForHeadElement);break}default:re(e,t)}}function Ga(e,t){switch(t.tagID){case u.BODY:case u.HTML:case u.BR:{re(e,t);break}case u.TEMPLATE:{W(e,t);break}default:e._err(t,d.endTagWithoutMatchingOpenElement)}}function re(e,t){e._insertFakeElement(o.BODY,u.BODY),e.insertionMode=i.IN_BODY,be(e,t)}function be(e,t){switch(t.type){case A.CHARACTER:{yt(e,t);break}case A.WHITESPACE_CHARACTER:{Ut(e,t);break}case A.COMMENT:{Me(e,t);break}case A.START_TAG:{S(e,t);break}case A.END_TAG:{Ae(e,t);break}case A.EOF:{Yt(e,t);break}}}function Ut(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function yt(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Ka(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Va(e,t){const a=e.openElements.tryPeekProperlyNestedBodyElement();a&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(a,t.attrs))}function za(e,t){const a=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&a&&(e.treeAdapter.detachNode(a),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,E.HTML),e.insertionMode=i.IN_FRAMESET)}function ja(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,E.HTML)}function Ja(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),Rt(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,E.HTML)}function $a(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,E.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Za(e,t){const a=e.openElements.tmplCount>0;(!e.formElement||a)&&(e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,E.HTML),a||(e.formElement=e.openElements.current))}function es(e,t){e.framesetOk=!1;const a=t.tagID;for(let s=e.openElements.stackTop;s>=0;s--){const c=e.openElements.tagIDs[s];if(a===u.LI&&c===u.LI||(a===u.DD||a===u.DT)&&(c===u.DD||c===u.DT)){e.openElements.generateImpliedEndTagsWithExclusion(c),e.openElements.popUntilTagNamePopped(c);break}if(c!==u.ADDRESS&&c!==u.DIV&&c!==u.P&&e._isSpecialElement(e.openElements.items[s],c))break}e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,E.HTML)}function ts(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,E.HTML),e.tokenizer.state=I.PLAINTEXT}function us(e,t){e.openElements.hasInScope(u.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,E.HTML),e.framesetOk=!1}function as(e,t){const a=e.activeFormattingElements.getElementEntryInScopeWithTagName(o.A);a&&(ye(e,t),e.openElements.remove(a.element),e.activeFormattingElements.removeEntry(a)),e._reconstructActiveFormattingElements(),e._insertElement(t,E.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ss(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,E.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ns(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(u.NOBR)&&(ye(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,E.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function rs(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,E.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function is(e,t){e.treeAdapter.getDocumentMode(e.document)!==P.QUIRKS&&e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,E.HTML),e.framesetOk=!1,e.insertionMode=i.IN_TABLE}function Ft(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,E.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function wt(e){const t=Nt(e,F.TYPE);return t!=null&&t.toLowerCase()===Ra}function cs(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,E.HTML),wt(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function os(e,t){e._appendElement(t,E.HTML),t.ackSelfClosing=!0}function ls(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._appendElement(t,E.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function ds(e,t){t.tagName=o.IMG,t.tagID=u.IMG,Ft(e,t)}function Es(e,t){e._insertElement(t,E.HTML),e.skipNextNewLine=!0,e.tokenizer.state=I.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=i.TEXT}function hs(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,I.RAWTEXT)}function Ts(e,t){e.framesetOk=!1,e._switchToTextParsing(t,I.RAWTEXT)}function et(e,t){e._switchToTextParsing(t,I.RAWTEXT)}function fs(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,E.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===i.IN_TABLE||e.insertionMode===i.IN_CAPTION||e.insertionMode===i.IN_TABLE_BODY||e.insertionMode===i.IN_ROW||e.insertionMode===i.IN_CELL?i.IN_SELECT_IN_TABLE:i.IN_SELECT}function ms(e,t){e.openElements.currentTagId===u.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,E.HTML)}function _s(e,t){e.openElements.hasInScope(u.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,E.HTML)}function bs(e,t){e.openElements.hasInScope(u.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(u.RTC),e._insertElement(t,E.HTML)}function As(e,t){e._reconstructActiveFormattingElements(),kt(t),Ue(t),t.selfClosing?e._appendElement(t,E.MATHML):e._insertElement(t,E.MATHML),t.ackSelfClosing=!0}function Cs(e,t){e._reconstructActiveFormattingElements(),Bt(t),Ue(t),t.selfClosing?e._appendElement(t,E.SVG):e._insertElement(t,E.SVG),t.ackSelfClosing=!0}function tt(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,E.HTML)}function S(e,t){switch(t.tagID){case u.I:case u.S:case u.B:case u.U:case u.EM:case u.TT:case u.BIG:case u.CODE:case u.FONT:case u.SMALL:case u.STRIKE:case u.STRONG:{ss(e,t);break}case u.A:{as(e,t);break}case u.H1:case u.H2:case u.H3:case u.H4:case u.H5:case u.H6:{Ja(e,t);break}case u.P:case u.DL:case u.OL:case u.UL:case u.DIV:case u.DIR:case u.NAV:case u.MAIN:case u.MENU:case u.ASIDE:case u.CENTER:case u.FIGURE:case u.FOOTER:case u.HEADER:case u.HGROUP:case u.DIALOG:case u.DETAILS:case u.ADDRESS:case u.ARTICLE:case u.SECTION:case u.SUMMARY:case u.FIELDSET:case u.BLOCKQUOTE:case u.FIGCAPTION:{ja(e,t);break}case u.LI:case u.DD:case u.DT:{es(e,t);break}case u.BR:case u.IMG:case u.WBR:case u.AREA:case u.EMBED:case u.KEYGEN:{Ft(e,t);break}case u.HR:{ls(e,t);break}case u.RB:case u.RTC:{_s(e,t);break}case u.RT:case u.RP:{bs(e,t);break}case u.PRE:case u.LISTING:{$a(e,t);break}case u.XMP:{hs(e,t);break}case u.SVG:{Cs(e,t);break}case u.HTML:{Ka(e,t);break}case u.BASE:case u.LINK:case u.META:case u.STYLE:case u.TITLE:case u.SCRIPT:case u.BGSOUND:case u.BASEFONT:case u.TEMPLATE:{k(e,t);break}case u.BODY:{Va(e,t);break}case u.FORM:{Za(e,t);break}case u.NOBR:{ns(e,t);break}case u.MATH:{As(e,t);break}case u.TABLE:{is(e,t);break}case u.INPUT:{cs(e,t);break}case u.PARAM:case u.TRACK:case u.SOURCE:{os(e,t);break}case u.IMAGE:{ds(e,t);break}case u.BUTTON:{us(e,t);break}case u.APPLET:case u.OBJECT:case u.MARQUEE:{rs(e,t);break}case u.IFRAME:{Ts(e,t);break}case u.SELECT:{fs(e,t);break}case u.OPTION:case u.OPTGROUP:{ms(e,t);break}case u.NOEMBED:{et(e,t);break}case u.FRAMESET:{za(e,t);break}case u.TEXTAREA:{Es(e,t);break}case u.NOSCRIPT:{e.options.scriptingEnabled?et(e,t):tt(e,t);break}case u.PLAINTEXT:{ts(e,t);break}case u.COL:case u.TH:case u.TD:case u.TR:case u.HEAD:case u.FRAME:case u.TBODY:case u.TFOOT:case u.THEAD:case u.CAPTION:case u.COLGROUP:break;default:tt(e,t)}}function ps(e,t){if(e.openElements.hasInScope(u.BODY)&&(e.insertionMode=i.AFTER_BODY,e.options.sourceCodeLocationInfo)){const a=e.openElements.tryPeekProperlyNestedBodyElement();a&&e._setEndLocation(a,t)}}function Ns(e,t){e.openElements.hasInScope(u.BODY)&&(e.insertionMode=i.AFTER_BODY,zt(e,t))}function Is(e,t){const a=t.tagID;e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a))}function gs(e){const t=e.openElements.tmplCount>0,{formElement:a}=e;t||(e.formElement=null),(a||t)&&e.openElements.hasInScope(u.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(u.FORM):a&&e.openElements.remove(a))}function Rs(e){e.openElements.hasInButtonScope(u.P)||e._insertFakeElement(o.P,u.P),e._closePElement()}function Ls(e){e.openElements.hasInListItemScope(u.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(u.LI),e.openElements.popUntilTagNamePopped(u.LI))}function Ss(e,t){const a=t.tagID;e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a))}function Os(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Ds(e,t){const a=t.tagID;e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a),e.activeFormattingElements.clearToLastMarker())}function Ps(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(o.BR,u.BR),e.openElements.pop(),e.framesetOk=!1}function vt(e,t){const a=t.tagName,s=t.tagID;for(let c=e.openElements.stackTop;c>0;c--){const l=e.openElements.items[c],h=e.openElements.tagIDs[c];if(s===h&&(s!==u.UNKNOWN||e.treeAdapter.getTagName(l)===a)){e.openElements.generateImpliedEndTagsWithExclusion(s),e.openElements.stackTop>=c&&e.openElements.shortenToLength(c);break}if(e._isSpecialElement(l,h))break}}function Ae(e,t){switch(t.tagID){case u.A:case u.B:case u.I:case u.S:case u.U:case u.EM:case u.TT:case u.BIG:case u.CODE:case u.FONT:case u.NOBR:case u.SMALL:case u.STRIKE:case u.STRONG:{ye(e,t);break}case u.P:{Rs(e);break}case u.DL:case u.UL:case u.OL:case u.DIR:case u.DIV:case u.NAV:case u.PRE:case u.MAIN:case u.MENU:case u.ASIDE:case u.BUTTON:case u.CENTER:case u.FIGURE:case u.FOOTER:case u.HEADER:case u.HGROUP:case u.DIALOG:case u.ADDRESS:case u.ARTICLE:case u.DETAILS:case u.SECTION:case u.SUMMARY:case u.LISTING:case u.FIELDSET:case u.BLOCKQUOTE:case u.FIGCAPTION:{Is(e,t);break}case u.LI:{Ls(e);break}case u.DD:case u.DT:{Ss(e,t);break}case u.H1:case u.H2:case u.H3:case u.H4:case u.H5:case u.H6:{Os(e);break}case u.BR:{Ps(e);break}case u.BODY:{ps(e,t);break}case u.HTML:{Ns(e,t);break}case u.FORM:{gs(e);break}case u.APPLET:case u.OBJECT:case u.MARQUEE:{Ds(e,t);break}case u.TEMPLATE:{W(e,t);break}default:vt(e,t)}}function Yt(e,t){e.tmplInsertionModeStack.length>0?Vt(e,t):Fe(e,t)}function Ms(e,t){var a;t.tagID===u.SCRIPT&&((a=e.scriptHandler)===null||a===void 0||a.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function xs(e,t){e._err(t,d.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Re(e,t){if(Ht.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=i.IN_TABLE_TEXT,t.type){case A.CHARACTER:{Wt(e,t);break}case A.WHITESPACE_CHARACTER:{Qt(e,t);break}}else oe(e,t)}function ks(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,E.HTML),e.insertionMode=i.IN_CAPTION}function Bs(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,E.HTML),e.insertionMode=i.IN_COLUMN_GROUP}function Hs(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(o.COLGROUP,u.COLGROUP),e.insertionMode=i.IN_COLUMN_GROUP,we(e,t)}function Us(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,E.HTML),e.insertionMode=i.IN_TABLE_BODY}function ys(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(o.TBODY,u.TBODY),e.insertionMode=i.IN_TABLE_BODY,Ce(e,t)}function Fs(e,t){e.openElements.hasInTableScope(u.TABLE)&&(e.openElements.popUntilTagNamePopped(u.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function ws(e,t){wt(t)?e._appendElement(t,E.HTML):oe(e,t),t.ackSelfClosing=!0}function vs(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,E.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function K(e,t){switch(t.tagID){case u.TD:case u.TH:case u.TR:{ys(e,t);break}case u.STYLE:case u.SCRIPT:case u.TEMPLATE:{k(e,t);break}case u.COL:{Hs(e,t);break}case u.FORM:{vs(e,t);break}case u.TABLE:{Fs(e,t);break}case u.TBODY:case u.TFOOT:case u.THEAD:{Us(e,t);break}case u.INPUT:{ws(e,t);break}case u.CAPTION:{ks(e,t);break}case u.COLGROUP:{Bs(e,t);break}default:oe(e,t)}}function ie(e,t){switch(t.tagID){case u.TABLE:{e.openElements.hasInTableScope(u.TABLE)&&(e.openElements.popUntilTagNamePopped(u.TABLE),e._resetInsertionMode());break}case u.TEMPLATE:{W(e,t);break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:case u.TBODY:case u.TD:case u.TFOOT:case u.TH:case u.THEAD:case u.TR:break;default:oe(e,t)}}function oe(e,t){const a=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,be(e,t),e.fosterParentingEnabled=a}function Qt(e,t){e.pendingCharacterTokens.push(t)}function Wt(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Z(e,t){let a=0;if(e.hasNonWhitespacePendingCharacterToken)for(;a<e.pendingCharacterTokens.length;a++)oe(e,e.pendingCharacterTokens[a]);else for(;a<e.pendingCharacterTokens.length;a++)e._insertCharacters(e.pendingCharacterTokens[a]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const qt=new Set([u.CAPTION,u.COL,u.COLGROUP,u.TBODY,u.TD,u.TFOOT,u.TH,u.THEAD,u.TR]);function Ys(e,t){const a=t.tagID;qt.has(a)?e.openElements.hasInTableScope(u.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=i.IN_TABLE,K(e,t)):S(e,t)}function Qs(e,t){const a=t.tagID;switch(a){case u.CAPTION:case u.TABLE:{e.openElements.hasInTableScope(u.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=i.IN_TABLE,a===u.TABLE&&ie(e,t));break}case u.BODY:case u.COL:case u.COLGROUP:case u.HTML:case u.TBODY:case u.TD:case u.TFOOT:case u.TH:case u.THEAD:case u.TR:break;default:Ae(e,t)}}function we(e,t){switch(t.tagID){case u.HTML:{S(e,t);break}case u.COL:{e._appendElement(t,E.HTML),t.ackSelfClosing=!0;break}case u.TEMPLATE:{k(e,t);break}default:me(e,t)}}function Ws(e,t){switch(t.tagID){case u.COLGROUP:{e.openElements.currentTagId===u.COLGROUP&&(e.openElements.pop(),e.insertionMode=i.IN_TABLE);break}case u.TEMPLATE:{W(e,t);break}case u.COL:break;default:me(e,t)}}function me(e,t){e.openElements.currentTagId===u.COLGROUP&&(e.openElements.pop(),e.insertionMode=i.IN_TABLE,e._processToken(t))}function Ce(e,t){switch(t.tagID){case u.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,E.HTML),e.insertionMode=i.IN_ROW;break}case u.TH:case u.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(o.TR,u.TR),e.insertionMode=i.IN_ROW,pe(e,t);break}case u.CAPTION:case u.COL:case u.COLGROUP:case u.TBODY:case u.TFOOT:case u.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=i.IN_TABLE,K(e,t));break}default:K(e,t)}}function xe(e,t){const a=t.tagID;switch(t.tagID){case u.TBODY:case u.TFOOT:case u.THEAD:{e.openElements.hasInTableScope(a)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=i.IN_TABLE);break}case u.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=i.IN_TABLE,ie(e,t));break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:case u.TD:case u.TH:case u.TR:break;default:ie(e,t)}}function pe(e,t){switch(t.tagID){case u.TH:case u.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,E.HTML),e.insertionMode=i.IN_CELL,e.activeFormattingElements.insertMarker();break}case u.CAPTION:case u.COL:case u.COLGROUP:case u.TBODY:case u.TFOOT:case u.THEAD:case u.TR:{e.openElements.hasInTableScope(u.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=i.IN_TABLE_BODY,Ce(e,t));break}default:K(e,t)}}function Xt(e,t){switch(t.tagID){case u.TR:{e.openElements.hasInTableScope(u.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=i.IN_TABLE_BODY);break}case u.TABLE:{e.openElements.hasInTableScope(u.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=i.IN_TABLE_BODY,xe(e,t));break}case u.TBODY:case u.TFOOT:case u.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(u.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=i.IN_TABLE_BODY,xe(e,t));break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:case u.TD:case u.TH:break;default:ie(e,t)}}function qs(e,t){const a=t.tagID;qt.has(a)?(e.openElements.hasInTableScope(u.TD)||e.openElements.hasInTableScope(u.TH))&&(e._closeTableCell(),pe(e,t)):S(e,t)}function Xs(e,t){const a=t.tagID;switch(a){case u.TD:case u.TH:{e.openElements.hasInTableScope(a)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=i.IN_ROW);break}case u.TABLE:case u.TBODY:case u.TFOOT:case u.THEAD:case u.TR:{e.openElements.hasInTableScope(a)&&(e._closeTableCell(),Xt(e,t));break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:break;default:Ae(e,t)}}function Gt(e,t){switch(t.tagID){case u.HTML:{S(e,t);break}case u.OPTION:{e.openElements.currentTagId===u.OPTION&&e.openElements.pop(),e._insertElement(t,E.HTML);break}case u.OPTGROUP:{e.openElements.currentTagId===u.OPTION&&e.openElements.pop(),e.openElements.currentTagId===u.OPTGROUP&&e.openElements.pop(),e._insertElement(t,E.HTML);break}case u.INPUT:case u.KEYGEN:case u.TEXTAREA:case u.SELECT:{e.openElements.hasInSelectScope(u.SELECT)&&(e.openElements.popUntilTagNamePopped(u.SELECT),e._resetInsertionMode(),t.tagID!==u.SELECT&&e._processStartTag(t));break}case u.SCRIPT:case u.TEMPLATE:{k(e,t);break}}}function Kt(e,t){switch(t.tagID){case u.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===u.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===u.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===u.OPTGROUP&&e.openElements.pop();break}case u.OPTION:{e.openElements.currentTagId===u.OPTION&&e.openElements.pop();break}case u.SELECT:{e.openElements.hasInSelectScope(u.SELECT)&&(e.openElements.popUntilTagNamePopped(u.SELECT),e._resetInsertionMode());break}case u.TEMPLATE:{W(e,t);break}}}function Gs(e,t){const a=t.tagID;a===u.CAPTION||a===u.TABLE||a===u.TBODY||a===u.TFOOT||a===u.THEAD||a===u.TR||a===u.TD||a===u.TH?(e.openElements.popUntilTagNamePopped(u.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Gt(e,t)}function Ks(e,t){const a=t.tagID;a===u.CAPTION||a===u.TABLE||a===u.TBODY||a===u.TFOOT||a===u.THEAD||a===u.TR||a===u.TD||a===u.TH?e.openElements.hasInTableScope(a)&&(e.openElements.popUntilTagNamePopped(u.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Kt(e,t)}function Vs(e,t){switch(t.tagID){case u.BASE:case u.BASEFONT:case u.BGSOUND:case u.LINK:case u.META:case u.NOFRAMES:case u.SCRIPT:case u.STYLE:case u.TEMPLATE:case u.TITLE:{k(e,t);break}case u.CAPTION:case u.COLGROUP:case u.TBODY:case u.TFOOT:case u.THEAD:{e.tmplInsertionModeStack[0]=i.IN_TABLE,e.insertionMode=i.IN_TABLE,K(e,t);break}case u.COL:{e.tmplInsertionModeStack[0]=i.IN_COLUMN_GROUP,e.insertionMode=i.IN_COLUMN_GROUP,we(e,t);break}case u.TR:{e.tmplInsertionModeStack[0]=i.IN_TABLE_BODY,e.insertionMode=i.IN_TABLE_BODY,Ce(e,t);break}case u.TD:case u.TH:{e.tmplInsertionModeStack[0]=i.IN_ROW,e.insertionMode=i.IN_ROW,pe(e,t);break}default:e.tmplInsertionModeStack[0]=i.IN_BODY,e.insertionMode=i.IN_BODY,S(e,t)}}function zs(e,t){t.tagID===u.TEMPLATE&&W(e,t)}function Vt(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(u.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Fe(e,t)}function js(e,t){t.tagID===u.HTML?S(e,t):_e(e,t)}function zt(e,t){var a;if(t.tagID===u.HTML){if(e.fragmentContext||(e.insertionMode=i.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===u.HTML){e._setEndLocation(e.openElements.items[0],t);const s=e.openElements.items[1];s&&!(!((a=e.treeAdapter.getNodeSourceCodeLocation(s))===null||a===void 0)&&a.endTag)&&e._setEndLocation(s,t)}}else _e(e,t)}function _e(e,t){e.insertionMode=i.IN_BODY,be(e,t)}function Js(e,t){switch(t.tagID){case u.HTML:{S(e,t);break}case u.FRAMESET:{e._insertElement(t,E.HTML);break}case u.FRAME:{e._appendElement(t,E.HTML),t.ackSelfClosing=!0;break}case u.NOFRAMES:{k(e,t);break}}}function $s(e,t){t.tagID===u.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==u.FRAMESET&&(e.insertionMode=i.AFTER_FRAMESET))}function Zs(e,t){switch(t.tagID){case u.HTML:{S(e,t);break}case u.NOFRAMES:{k(e,t);break}}}function en(e,t){t.tagID===u.HTML&&(e.insertionMode=i.AFTER_AFTER_FRAMESET)}function tn(e,t){t.tagID===u.HTML?S(e,t):fe(e,t)}function fe(e,t){e.insertionMode=i.IN_BODY,be(e,t)}function un(e,t){switch(t.tagID){case u.HTML:{S(e,t);break}case u.NOFRAMES:{k(e,t);break}}}function an(e,t){t.chars=N,e._insertCharacters(t)}function sn(e,t){e._insertCharacters(t),e.framesetOk=!1}function jt(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==E.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function nn(e,t){if(Ca(t))jt(e),e._startTagOutsideForeignContent(t);else{const a=e._getAdjustedCurrentElement(),s=e.treeAdapter.getNamespaceURI(a);s===E.MATHML?kt(t):s===E.SVG&&(pa(t),Bt(t)),Ue(t),t.selfClosing?e._appendElement(t,s):e._insertElement(t,s),t.ackSelfClosing=!0}}function rn(e,t){if(t.tagID===u.P||t.tagID===u.BR){jt(e),e._endTagOutsideForeignContent(t);return}for(let a=e.openElements.stackTop;a>0;a--){const s=e.openElements.items[a];if(e.treeAdapter.getNamespaceURI(s)===E.HTML){e._endTagOutsideForeignContent(t);break}const c=e.treeAdapter.getTagName(s);if(c.toLowerCase()===t.tagName){t.tagName=c,e.openElements.shortenToLength(a);break}}}o.AREA,o.BASE,o.BASEFONT,o.BGSOUND,o.BR,o.COL,o.EMBED,o.FRAME,o.HR,o.IMG,o.INPUT,o.KEYGEN,o.LINK,o.META,o.PARAM,o.SOURCE,o.TRACK,o.WBR;const cn=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,on=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),ut={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Jt(e,t){const a=An(e),s=rt("type",{handlers:{root:ln,element:dn,text:En,comment:Zt,doctype:hn,raw:fn},unknown:mn}),c={parser:a?new Ze(ut):Ze.getFragmentParser(void 0,ut),handle(m){s(m,c)},stitches:!1,options:t||{}};s(e,c),J(c,Y());const l=a?c.parser.document:c.parser.getFragment(),h=ou(l,{file:c.options.file});return c.stitches&&su(h,"comment",function(m,_,C){const B=m;if(B.value.stitch&&C&&_!==void 0){const de=C.children;return de[_]=B.value.stitch,_}}),h.type==="root"&&h.children.length===1&&h.children[0].type===e.type?h.children[0]:h}function $t(e,t){let a=-1;if(e)for(;++a<e.length;)t.handle(e[a])}function ln(e,t){$t(e.children,t)}function dn(e,t){_n(e,t),$t(e.children,t),bn(e,t)}function En(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const a={type:A.CHARACTER,chars:e.value,location:le(e)};J(t,Y(e)),t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken)}function hn(e,t){const a={type:A.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:le(e)};J(t,Y(e)),t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken)}function Tn(e,t){t.stitches=!0;const a=Cn(e);if("children"in e&&"children"in a){const s=Jt({type:"root",children:e.children},t.options);a.children=s.children}Zt({type:"comment",value:{stitch:a}},t)}function Zt(e,t){const a=e.value,s={type:A.COMMENT,data:a,location:le(e)};J(t,Y(e)),t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken)}function fn(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,eu(t,Y(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(cn,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const a=t.parser.tokenizer._consume();t.parser.tokenizer._callState(a)}}function mn(e,t){const a=e;if(t.options.passThrough&&t.options.passThrough.includes(a.type))Tn(a,t);else{let s="";throw on.has(a.type)&&(s=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+a.type+"` node"+s)}}function J(e,t){eu(e,t);const a=e.parser.tokenizer.currentCharacterToken;a&&a.location&&(a.location.endLine=e.parser.tokenizer.preprocessor.line,a.location.endCol=e.parser.tokenizer.preprocessor.col+1,a.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=a,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=I.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function eu(e,t){if(t&&t.offset!==void 0){const a={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=a}}function _n(e,t){const a=e.tagName.toLowerCase();if(t.parser.tokenizer.state===I.PLAINTEXT)return;J(t,Y(e));const s=t.parser.openElements.current;let c="namespaceURI"in s?s.namespaceURI:v.html;c===v.html&&a==="svg"&&(c=v.svg);const l=gu({...e,children:[]},{space:c===v.svg?"svg":"html"}),h={type:A.START_TAG,tagName:a,tagID:j(a),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in l?l.attrs:[],location:le(e)};t.parser.currentToken=h,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=a}function bn(e,t){const a=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&xu.includes(a)||t.parser.tokenizer.state===I.PLAINTEXT)return;J(t,nt(e));const s={type:A.END_TAG,tagName:a,tagID:j(a),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:le(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),a===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===I.RCDATA||t.parser.tokenizer.state===I.RAWTEXT||t.parser.tokenizer.state===I.SCRIPT_DATA)&&(t.parser.tokenizer.state=I.DATA)}function An(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function le(e){const t=Y(e)||{line:void 0,column:void 0,offset:void 0},a=nt(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:a.line,endCol:a.column,endOffset:a.offset}}function Cn(e){return"children"in e?ve({...e,children:[]}):ve(e)}function gn(e){return function(t,a){return Jt(t,{...e,file:a})}}export{gn as default};
|
|
1
|
+
import{aH as at,aG as st,aC as tu,cA as Le,cB as uu,cC as au,cD as Y,cE as su,cF as nt,cG as ve}from"./index.lMhsw-5K.js";import{w as v}from"./index.bsVAaBS1.js";import{s as nu,h as ru}from"./index.DypwtfIh.js";const Ye={}.hasOwnProperty;function rt(e,t){const a=t||{};function s(c,...l){let h=s.invalid;const m=s.handlers;if(c&&Ye.call(c,e)){const _=String(c[e]);h=Ye.call(m,_)?m[_]:s.unknown}if(h)return h.call(this,c,...l)}return s.handlers=a.handlers||{},s.invalid=a.invalid,s.unknown=a.unknown,s}function iu(e){const t=String(e),a=[];return{toOffset:c,toPoint:s};function s(l){if(typeof l=="number"&&l>-1&&l<=t.length){let h=0;for(;;){let m=a[h];if(m===void 0){const _=Qe(t,a[h-1]);m=_===-1?t.length+1:_+1,a[h]=m}if(m>l)return{line:h+1,column:l-(h>0?a[h-1]:0)+1,offset:l};h++}}}function c(l){if(l&&typeof l.line=="number"&&typeof l.column=="number"&&!Number.isNaN(l.line)&&!Number.isNaN(l.column)){for(;a.length<l.line;){const m=a[a.length-1],_=Qe(t,m),C=_===-1?t.length+1:_+1;if(m===C)break;a.push(C)}const h=(l.line>1?a[l.line-2]:0)+l.column-1;if(h<a[l.line-1])return h}}}function Qe(e,t){const a=e.indexOf("\r",t),s=e.indexOf(`
|
|
2
|
+
`,t);return s===-1?a:a===-1||a+1===s?s:a<s?a:s}const it={}.hasOwnProperty,cu=Object.prototype;function ou(e,t){const a=t||{};return ke({file:a.file||void 0,location:!1,schema:a.space==="svg"?at:st,verbose:a.verbose||!1},e)}function ke(e,t){let a;switch(t.nodeName){case"#comment":{const s=t;return a={type:"comment",value:s.data},Te(e,s,a),a}case"#document":case"#document-fragment":{const s=t,c="mode"in s?s.mode==="quirks"||s.mode==="limited-quirks":!1;if(a={type:"root",children:ct(e,t.childNodes),data:{quirksMode:c}},e.file&&e.location){const l=String(e.file),h=iu(l),m=h.toPoint(0),_=h.toPoint(l.length);a.position={start:m,end:_}}return a}case"#documentType":{const s=t;return a={type:"doctype"},Te(e,s,a),a}case"#text":{const s=t;return a={type:"text",value:s.value},Te(e,s,a),a}default:return a=lu(e,t),a}}function ct(e,t){let a=-1;const s=[];for(;++a<t.length;){const c=ke(e,t[a]);s.push(c)}return s}function lu(e,t){const a=e.schema;e.schema=t.namespaceURI===v.svg?at:st;let s=-1;const c={};for(;++s<t.attrs.length;){const m=t.attrs[s],_=(m.prefix?m.prefix+":":"")+m.name;it.call(cu,_)||(c[_]=m.value)}const h=(e.schema.space==="svg"?nu:ru)(t.tagName,c,ct(e,t.childNodes));if(Te(e,t,h),h.tagName==="template"){const m=t,_=m.sourceCodeLocation,C=_&&_.startTag&&G(_.startTag),B=_&&_.endTag&&G(_.endTag),de=ke(e,m.content);C&&B&&e.file&&(de.position={start:C.end,end:B.start}),h.content=de}return e.schema=a,h}function Te(e,t,a){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const s=du(e,a,t.sourceCodeLocation);s&&(e.location=!0,a.position=s)}}function du(e,t,a){const s=G(a);if(t.type==="element"){const c=t.children[t.children.length-1];if(s&&!a.endTag&&c&&c.position&&c.position.end&&(s.end=Object.assign({},c.position.end)),e.verbose){const l={};let h;if(a.attrs)for(h in a.attrs)it.call(a.attrs,h)&&(l[tu(e.schema,h).property]=G(a.attrs[h]));Le(a.startTag);const m=G(a.startTag),_=a.endTag?G(a.endTag):void 0,C={opening:m};_&&(C.closing=_),C.properties=l,t.data={position:C}}}return s}function G(e){const t=We({line:e.startLine,column:e.startCol,offset:e.startOffset}),a=We({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||a?{start:t,end:a}:void 0}function We(e){return e.line&&e.column?e:void 0}class ce{constructor(t,a,s){this.property=t,this.normal=a,s&&(this.space=s)}}ce.prototype.property={};ce.prototype.normal={};ce.prototype.space=null;function ot(e,t){const a={},s={};let c=-1;for(;++c<e.length;)Object.assign(a,e[c].property),Object.assign(s,e[c].normal);return new ce(a,s,t)}function Se(e){return e.toLowerCase()}class M{constructor(t,a){this.property=t,this.attribute=a}}M.prototype.space=null;M.prototype.boolean=!1;M.prototype.booleanish=!1;M.prototype.overloadedBoolean=!1;M.prototype.number=!1;M.prototype.commaSeparated=!1;M.prototype.spaceSeparated=!1;M.prototype.commaOrSpaceSeparated=!1;M.prototype.mustUseProperty=!1;M.prototype.defined=!1;let Eu=0;const b=Q(),g=Q(),lt=Q(),f=Q(),p=Q(),X=Q(),D=Q();function Q(){return 2**++Eu}const Oe=Object.freeze(Object.defineProperty({__proto__:null,boolean:b,booleanish:g,commaOrSpaceSeparated:D,commaSeparated:X,number:f,overloadedBoolean:lt,spaceSeparated:p},Symbol.toStringTag,{value:"Module"})),Ne=Object.keys(Oe);class Be extends M{constructor(t,a,s,c){let l=-1;if(super(t,a),qe(this,"space",c),typeof s=="number")for(;++l<Ne.length;){const h=Ne[l];qe(this,Ne[l],(s&Oe[h])===Oe[h])}}}Be.prototype.defined=!0;function qe(e,t,a){a&&(e[t]=a)}const hu={}.hasOwnProperty;function V(e){const t={},a={};let s;for(s in e.properties)if(hu.call(e.properties,s)){const c=e.properties[s],l=new Be(s,e.transform(e.attributes||{},s),c,e.space);e.mustUseProperty&&e.mustUseProperty.includes(s)&&(l.mustUseProperty=!0),t[s]=l,a[Se(s)]=s,a[Se(l.attribute)]=s}return new ce(t,a,e.space)}const dt=V({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Et=V({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function ht(e,t){return t in e?e[t]:t}function Tt(e,t){return ht(e,t.toLowerCase())}const ft=V({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Tt,properties:{xmlns:null,xmlnsXLink:null}}),mt=V({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:g,ariaAutoComplete:null,ariaBusy:g,ariaChecked:g,ariaColCount:f,ariaColIndex:f,ariaColSpan:f,ariaControls:p,ariaCurrent:null,ariaDescribedBy:p,ariaDetails:null,ariaDisabled:g,ariaDropEffect:p,ariaErrorMessage:null,ariaExpanded:g,ariaFlowTo:p,ariaGrabbed:g,ariaHasPopup:null,ariaHidden:g,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:p,ariaLevel:f,ariaLive:null,ariaModal:g,ariaMultiLine:g,ariaMultiSelectable:g,ariaOrientation:null,ariaOwns:p,ariaPlaceholder:null,ariaPosInSet:f,ariaPressed:g,ariaReadOnly:g,ariaRelevant:null,ariaRequired:g,ariaRoleDescription:p,ariaRowCount:f,ariaRowIndex:f,ariaRowSpan:f,ariaSelected:g,ariaSetSize:f,ariaSort:null,ariaValueMax:f,ariaValueMin:f,ariaValueNow:f,ariaValueText:null,role:null}}),Tu=V({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Tt,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:X,acceptCharset:p,accessKey:p,action:null,allow:null,allowFullScreen:b,allowPaymentRequest:b,allowUserMedia:b,alt:null,as:null,async:b,autoCapitalize:null,autoComplete:p,autoFocus:b,autoPlay:b,blocking:p,capture:null,charSet:null,checked:b,cite:null,className:p,cols:f,colSpan:null,content:null,contentEditable:g,controls:b,controlsList:p,coords:f|X,crossOrigin:null,data:null,dateTime:null,decoding:null,default:b,defer:b,dir:null,dirName:null,disabled:b,download:lt,draggable:g,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:b,formTarget:null,headers:p,height:f,hidden:b,high:f,href:null,hrefLang:null,htmlFor:p,httpEquiv:p,id:null,imageSizes:null,imageSrcSet:null,inert:b,inputMode:null,integrity:null,is:null,isMap:b,itemId:null,itemProp:p,itemRef:p,itemScope:b,itemType:p,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:b,low:f,manifest:null,max:null,maxLength:f,media:null,method:null,min:null,minLength:f,multiple:b,muted:b,name:null,nonce:null,noModule:b,noValidate:b,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:b,optimum:f,pattern:null,ping:p,placeholder:null,playsInline:b,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:b,referrerPolicy:null,rel:p,required:b,reversed:b,rows:f,rowSpan:f,sandbox:p,scope:null,scoped:b,seamless:b,selected:b,shadowRootClonable:b,shadowRootDelegatesFocus:b,shadowRootMode:null,shape:null,size:f,sizes:null,slot:null,span:f,spellCheck:g,src:null,srcDoc:null,srcLang:null,srcSet:null,start:f,step:null,style:null,tabIndex:f,target:null,title:null,translate:null,type:null,typeMustMatch:b,useMap:null,value:g,width:f,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:p,axis:null,background:null,bgColor:null,border:f,borderColor:null,bottomMargin:f,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:b,declare:b,event:null,face:null,frame:null,frameBorder:null,hSpace:f,leftMargin:f,link:null,longDesc:null,lowSrc:null,marginHeight:f,marginWidth:f,noResize:b,noHref:b,noShade:b,noWrap:b,object:null,profile:null,prompt:null,rev:null,rightMargin:f,rules:null,scheme:null,scrolling:g,standby:null,summary:null,text:null,topMargin:f,valueType:null,version:null,vAlign:null,vLink:null,vSpace:f,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:b,disableRemotePlayback:b,prefix:null,property:null,results:f,security:null,unselectable:null}}),fu=V({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:ht,properties:{about:D,accentHeight:f,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:f,amplitude:f,arabicForm:null,ascent:f,attributeName:null,attributeType:null,azimuth:f,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:f,by:null,calcMode:null,capHeight:f,className:p,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:f,diffuseConstant:f,direction:null,display:null,dur:null,divisor:f,dominantBaseline:null,download:b,dx:null,dy:null,edgeMode:null,editable:null,elevation:f,enableBackground:null,end:null,event:null,exponent:f,externalResourcesRequired:null,fill:null,fillOpacity:f,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:X,g2:X,glyphName:X,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:f,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:f,horizOriginX:f,horizOriginY:f,id:null,ideographic:f,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:f,k:f,k1:f,k2:f,k3:f,k4:f,kernelMatrix:D,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:f,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:f,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:f,overlineThickness:f,paintOrder:null,panose1:null,path:null,pathLength:f,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:p,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:f,pointsAtY:f,pointsAtZ:f,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:D,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:D,rev:D,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:D,requiredFeatures:D,requiredFonts:D,requiredFormats:D,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:f,specularExponent:f,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:f,strikethroughThickness:f,string:null,stroke:null,strokeDashArray:D,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:f,strokeOpacity:f,strokeWidth:null,style:null,surfaceScale:f,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:D,tabIndex:f,tableValues:null,target:null,targetX:f,targetY:f,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:D,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:f,underlineThickness:f,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:f,values:null,vAlphabetic:f,vMathematical:f,vectorEffect:null,vHanging:f,vIdeographic:f,version:null,vertAdvY:f,vertOriginX:f,vertOriginY:f,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:f,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),mu=/^data[-\w.:]+$/i,Ge=/-[a-z]/g,_u=/[A-Z]/g;function bu(e,t){const a=Se(t);let s=t,c=M;if(a in e.normal)return e.property[e.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&mu.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(Ge,Cu);s="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!Ge.test(l)){let h=l.replace(_u,Au);h.charAt(0)!=="-"&&(h="-"+h),t="data"+h}}c=Be}return new c(s,t)}function Au(e){return"-"+e.toLowerCase()}function Cu(e){return e.charAt(1).toUpperCase()}const pu=ot([Et,dt,ft,mt,Tu],"html"),_t=ot([Et,dt,ft,mt,fu],"svg"),Nu={},Iu={}.hasOwnProperty,bt=rt("type",{handlers:{root:Ru,element:Pu,text:Ou,comment:Du,doctype:Su}});function gu(e,t){const s=(t||Nu).space;return bt(e,s==="svg"?_t:pu)}function Ru(e,t){const a={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return a.childNodes=He(e.children,a,t),z(e,a),a}function Lu(e,t){const a={nodeName:"#document-fragment",childNodes:[]};return a.childNodes=He(e.children,a,t),z(e,a),a}function Su(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return z(e,t),t}function Ou(e){const t={nodeName:"#text",value:e.value,parentNode:null};return z(e,t),t}function Du(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return z(e,t),t}function Pu(e,t){const a=t;let s=a;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&a.space==="html"&&(s=_t);const c=[];let l;if(e.properties){for(l in e.properties)if(l!=="children"&&Iu.call(e.properties,l)){const _=Mu(s,l,e.properties[l]);_&&c.push(_)}}const h=s.space,m={nodeName:e.tagName,tagName:e.tagName,attrs:c,namespaceURI:v[h],childNodes:[],parentNode:null};return m.childNodes=He(e.children,m,s),z(e,m),e.tagName==="template"&&e.content&&(m.content=Lu(e.content,s)),m}function Mu(e,t,a){const s=bu(e,t);if(a===!1||a===null||a===void 0||typeof a=="number"&&Number.isNaN(a)||!a&&s.boolean)return;Array.isArray(a)&&(a=s.commaSeparated?uu(a):au(a));const c={name:s.attribute,value:a===!0?"":String(a)};if(s.space&&s.space!=="html"&&s.space!=="svg"){const l=c.name.indexOf(":");l<0?c.prefix="":(c.name=c.name.slice(l+1),c.prefix=s.attribute.slice(0,l)),c.namespace=v[s.space]}return c}function He(e,t,a){let s=-1;const c=[];if(e)for(;++s<e.length;){const l=bt(e[s],a);l.parentNode=t,c.push(l)}return c}function z(e,t){const a=e.position;a&&a.start&&a.end&&(Le(typeof a.start.offset=="number"),Le(typeof a.end.offset=="number"),t.sourceCodeLocation={startLine:a.start.line,startCol:a.start.column,startOffset:a.start.offset,endLine:a.end.line,endCol:a.end.column,endOffset:a.end.offset})}const xu=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],ku=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),N="�";var n;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",e[e.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_F=102]="LATIN_SMALL_F",e[e.LATIN_SMALL_X=120]="LATIN_SMALL_X",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",e[e.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"})(n=n||(n={}));const O={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function At(e){return e>=55296&&e<=57343}function Bu(e){return e>=56320&&e<=57343}function Hu(e,t){return(e-55296)*1024+9216+t}function Ct(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function pt(e){return e>=64976&&e<=65007||ku.has(e)}var d;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(d=d||(d={}));const Uu=65536;class yu{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Uu,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t){const{line:a,col:s,offset:c}=this;return{code:t,startLine:a,endLine:a,startCol:s,endCol:s,startOffset:c,endOffset:c}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const a=this.html.charCodeAt(this.pos+1);if(Bu(a))return this.pos++,this._addGap(),Hu(t,a)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,n.EOF;return this._err(d.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,a){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=a}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,a){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(a)return this.html.startsWith(t,this.pos);for(let s=0;s<t.length;s++)if((this.html.charCodeAt(this.pos+s)|32)!==t.charCodeAt(s))return!1;return!0}peek(t){const a=this.pos+t;if(a>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,n.EOF;const s=this.html.charCodeAt(a);return s===n.CARRIAGE_RETURN?n.LINE_FEED:s}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,n.EOF;let t=this.html.charCodeAt(this.pos);return t===n.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,n.LINE_FEED):t===n.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,At(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===n.LINE_FEED||t===n.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Ct(t)?this._err(d.controlCharacterInInputStream):pt(t)&&this._err(d.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var A;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(A=A||(A={}));function Nt(e,t){for(let a=e.attrs.length-1;a>=0;a--)if(e.attrs[a].name===t)return e.attrs[a].value;return null}const U=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Fu=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Ie;const wu=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),vu=(Ie=String.fromCodePoint)!==null&&Ie!==void 0?Ie:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Yu(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=wu.get(e))!==null&&t!==void 0?t:e}var L;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(L||(L={}));const Qu=32;var H;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(H||(H={}));function De(e){return e>=L.ZERO&&e<=L.NINE}function Wu(e){return e>=L.UPPER_A&&e<=L.UPPER_F||e>=L.LOWER_A&&e<=L.LOWER_F}function qu(e){return e>=L.UPPER_A&&e<=L.UPPER_Z||e>=L.LOWER_A&&e<=L.LOWER_Z||De(e)}function Gu(e){return e===L.EQUALS||qu(e)}var R;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(R||(R={}));var w;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(w||(w={}));class Xu{constructor(t,a,s){this.decodeTree=t,this.emitCodePoint=a,this.errors=s,this.state=R.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=w.Strict}startEntity(t){this.decodeMode=t,this.state=R.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,a){switch(this.state){case R.EntityStart:return t.charCodeAt(a)===L.NUM?(this.state=R.NumericStart,this.consumed+=1,this.stateNumericStart(t,a+1)):(this.state=R.NamedEntity,this.stateNamedEntity(t,a));case R.NumericStart:return this.stateNumericStart(t,a);case R.NumericDecimal:return this.stateNumericDecimal(t,a);case R.NumericHex:return this.stateNumericHex(t,a);case R.NamedEntity:return this.stateNamedEntity(t,a)}}stateNumericStart(t,a){return a>=t.length?-1:(t.charCodeAt(a)|Qu)===L.LOWER_X?(this.state=R.NumericHex,this.consumed+=1,this.stateNumericHex(t,a+1)):(this.state=R.NumericDecimal,this.stateNumericDecimal(t,a))}addToNumericResult(t,a,s,c){if(a!==s){const l=s-a;this.result=this.result*Math.pow(c,l)+parseInt(t.substr(a,l),c),this.consumed+=l}}stateNumericHex(t,a){const s=a;for(;a<t.length;){const c=t.charCodeAt(a);if(De(c)||Wu(c))a+=1;else return this.addToNumericResult(t,s,a,16),this.emitNumericEntity(c,3)}return this.addToNumericResult(t,s,a,16),-1}stateNumericDecimal(t,a){const s=a;for(;a<t.length;){const c=t.charCodeAt(a);if(De(c))a+=1;else return this.addToNumericResult(t,s,a,10),this.emitNumericEntity(c,2)}return this.addToNumericResult(t,s,a,10),-1}emitNumericEntity(t,a){var s;if(this.consumed<=a)return(s=this.errors)===null||s===void 0||s.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===L.SEMI)this.consumed+=1;else if(this.decodeMode===w.Strict)return 0;return this.emitCodePoint(Yu(this.result),this.consumed),this.errors&&(t!==L.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,a){const{decodeTree:s}=this;let c=s[this.treeIndex],l=(c&H.VALUE_LENGTH)>>14;for(;a<t.length;a++,this.excess++){const h=t.charCodeAt(a);if(this.treeIndex=gt(s,c,this.treeIndex+Math.max(1,l),h),this.treeIndex<0)return this.result===0||this.decodeMode===w.Attribute&&(l===0||Gu(h))?0:this.emitNotTerminatedNamedEntity();if(c=s[this.treeIndex],l=(c&H.VALUE_LENGTH)>>14,l!==0){if(h===L.SEMI)return this.emitNamedEntityData(this.treeIndex,l,this.consumed+this.excess);this.decodeMode!==w.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:a,decodeTree:s}=this,c=(s[a]&H.VALUE_LENGTH)>>14;return this.emitNamedEntityData(a,c,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,a,s){const{decodeTree:c}=this;return this.emitCodePoint(a===1?c[t]&~H.VALUE_LENGTH:c[t+1],s),a===3&&this.emitCodePoint(c[t+2],s),s}end(){var t;switch(this.state){case R.NamedEntity:return this.result!==0&&(this.decodeMode!==w.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case R.NumericDecimal:return this.emitNumericEntity(0,2);case R.NumericHex:return this.emitNumericEntity(0,3);case R.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case R.EntityStart:return 0}}}function It(e){let t="";const a=new Xu(e,s=>t+=vu(s));return function(c,l){let h=0,m=0;for(;(m=c.indexOf("&",m))>=0;){t+=c.slice(h,m),a.startEntity(l);const C=a.write(c,m+1);if(C<0){h=m+a.end();break}h=m+C,m=C===0?h+1:h}const _=t+c.slice(h);return t="",_}}function gt(e,t,a,s){const c=(t&H.BRANCH_LENGTH)>>7,l=t&H.JUMP_TABLE;if(c===0)return l!==0&&s===l?a:-1;if(l){const _=s-l;return _<0||_>=c?-1:e[a+_]-1}let h=a,m=h+c-1;for(;h<=m;){const _=h+m>>>1,C=e[_];if(C<s)h=_+1;else if(C>s)m=_-1;else return e[_+c]}return-1}It(U);It(Fu);var E;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(E=E||(E={}));var F;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(F=F||(F={}));var P;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(P=P||(P={}));var o;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(o=o||(o={}));var u;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"})(u=u||(u={}));const Ku=new Map([[o.A,u.A],[o.ADDRESS,u.ADDRESS],[o.ANNOTATION_XML,u.ANNOTATION_XML],[o.APPLET,u.APPLET],[o.AREA,u.AREA],[o.ARTICLE,u.ARTICLE],[o.ASIDE,u.ASIDE],[o.B,u.B],[o.BASE,u.BASE],[o.BASEFONT,u.BASEFONT],[o.BGSOUND,u.BGSOUND],[o.BIG,u.BIG],[o.BLOCKQUOTE,u.BLOCKQUOTE],[o.BODY,u.BODY],[o.BR,u.BR],[o.BUTTON,u.BUTTON],[o.CAPTION,u.CAPTION],[o.CENTER,u.CENTER],[o.CODE,u.CODE],[o.COL,u.COL],[o.COLGROUP,u.COLGROUP],[o.DD,u.DD],[o.DESC,u.DESC],[o.DETAILS,u.DETAILS],[o.DIALOG,u.DIALOG],[o.DIR,u.DIR],[o.DIV,u.DIV],[o.DL,u.DL],[o.DT,u.DT],[o.EM,u.EM],[o.EMBED,u.EMBED],[o.FIELDSET,u.FIELDSET],[o.FIGCAPTION,u.FIGCAPTION],[o.FIGURE,u.FIGURE],[o.FONT,u.FONT],[o.FOOTER,u.FOOTER],[o.FOREIGN_OBJECT,u.FOREIGN_OBJECT],[o.FORM,u.FORM],[o.FRAME,u.FRAME],[o.FRAMESET,u.FRAMESET],[o.H1,u.H1],[o.H2,u.H2],[o.H3,u.H3],[o.H4,u.H4],[o.H5,u.H5],[o.H6,u.H6],[o.HEAD,u.HEAD],[o.HEADER,u.HEADER],[o.HGROUP,u.HGROUP],[o.HR,u.HR],[o.HTML,u.HTML],[o.I,u.I],[o.IMG,u.IMG],[o.IMAGE,u.IMAGE],[o.INPUT,u.INPUT],[o.IFRAME,u.IFRAME],[o.KEYGEN,u.KEYGEN],[o.LABEL,u.LABEL],[o.LI,u.LI],[o.LINK,u.LINK],[o.LISTING,u.LISTING],[o.MAIN,u.MAIN],[o.MALIGNMARK,u.MALIGNMARK],[o.MARQUEE,u.MARQUEE],[o.MATH,u.MATH],[o.MENU,u.MENU],[o.META,u.META],[o.MGLYPH,u.MGLYPH],[o.MI,u.MI],[o.MO,u.MO],[o.MN,u.MN],[o.MS,u.MS],[o.MTEXT,u.MTEXT],[o.NAV,u.NAV],[o.NOBR,u.NOBR],[o.NOFRAMES,u.NOFRAMES],[o.NOEMBED,u.NOEMBED],[o.NOSCRIPT,u.NOSCRIPT],[o.OBJECT,u.OBJECT],[o.OL,u.OL],[o.OPTGROUP,u.OPTGROUP],[o.OPTION,u.OPTION],[o.P,u.P],[o.PARAM,u.PARAM],[o.PLAINTEXT,u.PLAINTEXT],[o.PRE,u.PRE],[o.RB,u.RB],[o.RP,u.RP],[o.RT,u.RT],[o.RTC,u.RTC],[o.RUBY,u.RUBY],[o.S,u.S],[o.SCRIPT,u.SCRIPT],[o.SECTION,u.SECTION],[o.SELECT,u.SELECT],[o.SOURCE,u.SOURCE],[o.SMALL,u.SMALL],[o.SPAN,u.SPAN],[o.STRIKE,u.STRIKE],[o.STRONG,u.STRONG],[o.STYLE,u.STYLE],[o.SUB,u.SUB],[o.SUMMARY,u.SUMMARY],[o.SUP,u.SUP],[o.TABLE,u.TABLE],[o.TBODY,u.TBODY],[o.TEMPLATE,u.TEMPLATE],[o.TEXTAREA,u.TEXTAREA],[o.TFOOT,u.TFOOT],[o.TD,u.TD],[o.TH,u.TH],[o.THEAD,u.THEAD],[o.TITLE,u.TITLE],[o.TR,u.TR],[o.TRACK,u.TRACK],[o.TT,u.TT],[o.U,u.U],[o.UL,u.UL],[o.SVG,u.SVG],[o.VAR,u.VAR],[o.WBR,u.WBR],[o.XMP,u.XMP]]);function j(e){var t;return(t=Ku.get(e))!==null&&t!==void 0?t:u.UNKNOWN}const T=u,Vu={[E.HTML]:new Set([T.ADDRESS,T.APPLET,T.AREA,T.ARTICLE,T.ASIDE,T.BASE,T.BASEFONT,T.BGSOUND,T.BLOCKQUOTE,T.BODY,T.BR,T.BUTTON,T.CAPTION,T.CENTER,T.COL,T.COLGROUP,T.DD,T.DETAILS,T.DIR,T.DIV,T.DL,T.DT,T.EMBED,T.FIELDSET,T.FIGCAPTION,T.FIGURE,T.FOOTER,T.FORM,T.FRAME,T.FRAMESET,T.H1,T.H2,T.H3,T.H4,T.H5,T.H6,T.HEAD,T.HEADER,T.HGROUP,T.HR,T.HTML,T.IFRAME,T.IMG,T.INPUT,T.LI,T.LINK,T.LISTING,T.MAIN,T.MARQUEE,T.MENU,T.META,T.NAV,T.NOEMBED,T.NOFRAMES,T.NOSCRIPT,T.OBJECT,T.OL,T.P,T.PARAM,T.PLAINTEXT,T.PRE,T.SCRIPT,T.SECTION,T.SELECT,T.SOURCE,T.STYLE,T.SUMMARY,T.TABLE,T.TBODY,T.TD,T.TEMPLATE,T.TEXTAREA,T.TFOOT,T.TH,T.THEAD,T.TITLE,T.TR,T.TRACK,T.UL,T.WBR,T.XMP]),[E.MATHML]:new Set([T.MI,T.MO,T.MN,T.MS,T.MTEXT,T.ANNOTATION_XML]),[E.SVG]:new Set([T.TITLE,T.FOREIGN_OBJECT,T.DESC]),[E.XLINK]:new Set,[E.XML]:new Set,[E.XMLNS]:new Set};function Rt(e){return e===T.H1||e===T.H2||e===T.H3||e===T.H4||e===T.H5||e===T.H6}o.STYLE,o.SCRIPT,o.XMP,o.IFRAME,o.NOEMBED,o.NOFRAMES,o.PLAINTEXT;const zu=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var r;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(r||(r={}));const I={DATA:r.DATA,RCDATA:r.RCDATA,RAWTEXT:r.RAWTEXT,SCRIPT_DATA:r.SCRIPT_DATA,PLAINTEXT:r.PLAINTEXT,CDATA_SECTION:r.CDATA_SECTION};function te(e){return e>=n.DIGIT_0&&e<=n.DIGIT_9}function ee(e){return e>=n.LATIN_CAPITAL_A&&e<=n.LATIN_CAPITAL_Z}function ju(e){return e>=n.LATIN_SMALL_A&&e<=n.LATIN_SMALL_Z}function y(e){return ju(e)||ee(e)}function Pe(e){return y(e)||te(e)}function Lt(e){return e>=n.LATIN_CAPITAL_A&&e<=n.LATIN_CAPITAL_F}function St(e){return e>=n.LATIN_SMALL_A&&e<=n.LATIN_SMALL_F}function Ju(e){return te(e)||Lt(e)||St(e)}function Ee(e){return e+32}function Ot(e){return e===n.SPACE||e===n.LINE_FEED||e===n.TABULATION||e===n.FORM_FEED}function $u(e){return e===n.EQUALS_SIGN||Pe(e)}function Xe(e){return Ot(e)||e===n.SOLIDUS||e===n.GREATER_THAN_SIGN}class Zu{constructor(t,a){this.options=t,this.handler=a,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=r.DATA,this.returnState=r.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new yu(a),this.currentLocation=this.getCurrentLocation(-1)}_err(t){var a,s;(s=(a=this.handler).onParseError)===null||s===void 0||s.call(a,this.preprocessor.getError(t))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,a,s){this.active=!0,this.preprocessor.write(t,a),this._runParsingLoop(),this.paused||s?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(t){this.consumedAfterSnapshot-=t,this.preprocessor.retreat(t)}_reconsumeInState(t,a){this.state=t,this._callState(a)}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let a=0;a<t;a++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,a){return this.preprocessor.startsWith(t,a)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:A.START_TAG,tagName:"",tagID:u.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:A.END_TAG,tagName:"",tagID:u.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:A.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:A.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,a){this.currentCharacterToken={type:t,chars:a,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,a;const s=this.currentToken;if(Nt(s,this.currentAttr.name)===null){if(s.attrs.push(this.currentAttr),s.location&&this.currentLocation){const c=(t=(a=s.location).attrs)!==null&&t!==void 0?t:a.attrs=Object.create(null);c[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(d.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=j(t.tagName),t.type===A.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(d.endTagWithAttributes),t.selfClosing&&this._err(d.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case A.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case A.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case A.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:A.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,a){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==t)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=a;return}this._createCharacterToken(t,a)}_emitCodePoint(t){const a=Ot(t)?A.WHITESPACE_CHARACTER:t===n.NULL?A.NULL_CHARACTER:A.CHARACTER;this._appendCharToCurrentCharacterToken(a,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(A.CHARACTER,t)}_matchNamedCharacterReference(t){let a=null,s=0,c=!1;for(let l=0,h=U[0];l>=0&&(l=gt(U,h,l+1,t),!(l<0));t=this._consume()){s+=1,h=U[l];const m=h&H.VALUE_LENGTH;if(m){const _=(m>>14)-1;if(t!==n.SEMICOLON&&this._isCharacterReferenceInAttribute()&&$u(this.preprocessor.peek(1))?(a=[n.AMPERSAND],l+=_):(a=_===0?[U[l]&~H.VALUE_LENGTH]:_===1?[U[++l]]:[U[++l],U[++l]],s=0,c=t!==n.SEMICOLON),_===0){this._consume();break}}}return this._unconsume(s),c&&!this.preprocessor.endOfChunkHit&&this._err(d.missingSemicolonAfterCharacterReference),this._unconsume(1),a}_isCharacterReferenceInAttribute(){return this.returnState===r.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===r.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===r.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case r.DATA:{this._stateData(t);break}case r.RCDATA:{this._stateRcdata(t);break}case r.RAWTEXT:{this._stateRawtext(t);break}case r.SCRIPT_DATA:{this._stateScriptData(t);break}case r.PLAINTEXT:{this._statePlaintext(t);break}case r.TAG_OPEN:{this._stateTagOpen(t);break}case r.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case r.TAG_NAME:{this._stateTagName(t);break}case r.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case r.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case r.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case r.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case r.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case r.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case r.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case r.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case r.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case r.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case r.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case r.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case r.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case r.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case r.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case r.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case r.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case r.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case r.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case r.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case r.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case r.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case r.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case r.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case r.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case r.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case r.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case r.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case r.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case r.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case r.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case r.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case r.BOGUS_COMMENT:{this._stateBogusComment(t);break}case r.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case r.COMMENT_START:{this._stateCommentStart(t);break}case r.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case r.COMMENT:{this._stateComment(t);break}case r.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case r.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case r.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case r.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case r.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case r.COMMENT_END:{this._stateCommentEnd(t);break}case r.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case r.DOCTYPE:{this._stateDoctype(t);break}case r.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case r.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case r.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case r.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case r.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case r.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case r.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case r.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case r.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case r.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case r.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case r.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case r.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case r.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case r.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case r.CDATA_SECTION:{this._stateCdataSection(t);break}case r.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case r.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case r.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case r.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case r.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case r.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case r.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case r.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case r.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case r.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case n.LESS_THAN_SIGN:{this.state=r.TAG_OPEN;break}case n.AMPERSAND:{this.returnState=r.DATA,this.state=r.CHARACTER_REFERENCE;break}case n.NULL:{this._err(d.unexpectedNullCharacter),this._emitCodePoint(t);break}case n.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case n.AMPERSAND:{this.returnState=r.RCDATA,this.state=r.CHARACTER_REFERENCE;break}case n.LESS_THAN_SIGN:{this.state=r.RCDATA_LESS_THAN_SIGN;break}case n.NULL:{this._err(d.unexpectedNullCharacter),this._emitChars(N);break}case n.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case n.LESS_THAN_SIGN:{this.state=r.RAWTEXT_LESS_THAN_SIGN;break}case n.NULL:{this._err(d.unexpectedNullCharacter),this._emitChars(N);break}case n.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case n.LESS_THAN_SIGN:{this.state=r.SCRIPT_DATA_LESS_THAN_SIGN;break}case n.NULL:{this._err(d.unexpectedNullCharacter),this._emitChars(N);break}case n.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case n.NULL:{this._err(d.unexpectedNullCharacter),this._emitChars(N);break}case n.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(y(t))this._createStartTagToken(),this.state=r.TAG_NAME,this._stateTagName(t);else switch(t){case n.EXCLAMATION_MARK:{this.state=r.MARKUP_DECLARATION_OPEN;break}case n.SOLIDUS:{this.state=r.END_TAG_OPEN;break}case n.QUESTION_MARK:{this._err(d.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=r.BOGUS_COMMENT,this._stateBogusComment(t);break}case n.EOF:{this._err(d.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(d.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=r.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(y(t))this._createEndTagToken(),this.state=r.TAG_NAME,this._stateTagName(t);else switch(t){case n.GREATER_THAN_SIGN:{this._err(d.missingEndTagName),this.state=r.DATA;break}case n.EOF:{this._err(d.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(d.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=r.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const a=this.currentToken;switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:{this.state=r.BEFORE_ATTRIBUTE_NAME;break}case n.SOLIDUS:{this.state=r.SELF_CLOSING_START_TAG;break}case n.GREATER_THAN_SIGN:{this.state=r.DATA,this.emitCurrentTagToken();break}case n.NULL:{this._err(d.unexpectedNullCharacter),a.tagName+=N;break}case n.EOF:{this._err(d.eofInTag),this._emitEOFToken();break}default:a.tagName+=String.fromCodePoint(ee(t)?Ee(t):t)}}_stateRcdataLessThanSign(t){t===n.SOLIDUS?this.state=r.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=r.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){y(t)?(this.state=r.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=r.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const a=this.currentToken;switch(a.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=r.BEFORE_ATTRIBUTE_NAME,!1;case n.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=r.SELF_CLOSING_START_TAG,!1;case n.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=r.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=r.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===n.SOLIDUS?this.state=r.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=r.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){y(t)?(this.state=r.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=r.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=r.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case n.SOLIDUS:{this.state=r.SCRIPT_DATA_END_TAG_OPEN;break}case n.EXCLAMATION_MARK:{this.state=r.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=r.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){y(t)?(this.state=r.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=r.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=r.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===n.HYPHEN_MINUS?(this.state=r.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=r.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===n.HYPHEN_MINUS?(this.state=r.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=r.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case n.HYPHEN_MINUS:{this.state=r.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case n.LESS_THAN_SIGN:{this.state=r.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case n.NULL:{this._err(d.unexpectedNullCharacter),this._emitChars(N);break}case n.EOF:{this._err(d.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case n.HYPHEN_MINUS:{this.state=r.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case n.LESS_THAN_SIGN:{this.state=r.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case n.NULL:{this._err(d.unexpectedNullCharacter),this.state=r.SCRIPT_DATA_ESCAPED,this._emitChars(N);break}case n.EOF:{this._err(d.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=r.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case n.HYPHEN_MINUS:{this._emitChars("-");break}case n.LESS_THAN_SIGN:{this.state=r.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case n.GREATER_THAN_SIGN:{this.state=r.SCRIPT_DATA,this._emitChars(">");break}case n.NULL:{this._err(d.unexpectedNullCharacter),this.state=r.SCRIPT_DATA_ESCAPED,this._emitChars(N);break}case n.EOF:{this._err(d.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=r.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===n.SOLIDUS?this.state=r.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:y(t)?(this._emitChars("<"),this.state=r.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=r.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){y(t)?(this.state=r.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=r.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=r.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(O.SCRIPT,!1)&&Xe(this.preprocessor.peek(O.SCRIPT.length))){this._emitCodePoint(t);for(let a=0;a<O.SCRIPT.length;a++)this._emitCodePoint(this._consume());this.state=r.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=r.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case n.HYPHEN_MINUS:{this.state=r.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case n.LESS_THAN_SIGN:{this.state=r.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case n.NULL:{this._err(d.unexpectedNullCharacter),this._emitChars(N);break}case n.EOF:{this._err(d.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case n.HYPHEN_MINUS:{this.state=r.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case n.LESS_THAN_SIGN:{this.state=r.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case n.NULL:{this._err(d.unexpectedNullCharacter),this.state=r.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(N);break}case n.EOF:{this._err(d.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=r.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case n.HYPHEN_MINUS:{this._emitChars("-");break}case n.LESS_THAN_SIGN:{this.state=r.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case n.GREATER_THAN_SIGN:{this.state=r.SCRIPT_DATA,this._emitChars(">");break}case n.NULL:{this._err(d.unexpectedNullCharacter),this.state=r.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(N);break}case n.EOF:{this._err(d.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=r.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===n.SOLIDUS?(this.state=r.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=r.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(O.SCRIPT,!1)&&Xe(this.preprocessor.peek(O.SCRIPT.length))){this._emitCodePoint(t);for(let a=0;a<O.SCRIPT.length;a++)this._emitCodePoint(this._consume());this.state=r.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=r.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:break;case n.SOLIDUS:case n.GREATER_THAN_SIGN:case n.EOF:{this.state=r.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case n.EQUALS_SIGN:{this._err(d.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=r.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=r.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:case n.SOLIDUS:case n.GREATER_THAN_SIGN:case n.EOF:{this._leaveAttrName(),this.state=r.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case n.EQUALS_SIGN:{this._leaveAttrName(),this.state=r.BEFORE_ATTRIBUTE_VALUE;break}case n.QUOTATION_MARK:case n.APOSTROPHE:case n.LESS_THAN_SIGN:{this._err(d.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case n.NULL:{this._err(d.unexpectedNullCharacter),this.currentAttr.name+=N;break}default:this.currentAttr.name+=String.fromCodePoint(ee(t)?Ee(t):t)}}_stateAfterAttributeName(t){switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:break;case n.SOLIDUS:{this.state=r.SELF_CLOSING_START_TAG;break}case n.EQUALS_SIGN:{this.state=r.BEFORE_ATTRIBUTE_VALUE;break}case n.GREATER_THAN_SIGN:{this.state=r.DATA,this.emitCurrentTagToken();break}case n.EOF:{this._err(d.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=r.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:break;case n.QUOTATION_MARK:{this.state=r.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case n.APOSTROPHE:{this.state=r.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case n.GREATER_THAN_SIGN:{this._err(d.missingAttributeValue),this.state=r.DATA,this.emitCurrentTagToken();break}default:this.state=r.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case n.QUOTATION_MARK:{this.state=r.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case n.AMPERSAND:{this.returnState=r.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=r.CHARACTER_REFERENCE;break}case n.NULL:{this._err(d.unexpectedNullCharacter),this.currentAttr.value+=N;break}case n.EOF:{this._err(d.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case n.APOSTROPHE:{this.state=r.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case n.AMPERSAND:{this.returnState=r.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=r.CHARACTER_REFERENCE;break}case n.NULL:{this._err(d.unexpectedNullCharacter),this.currentAttr.value+=N;break}case n.EOF:{this._err(d.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:{this._leaveAttrValue(),this.state=r.BEFORE_ATTRIBUTE_NAME;break}case n.AMPERSAND:{this.returnState=r.ATTRIBUTE_VALUE_UNQUOTED,this.state=r.CHARACTER_REFERENCE;break}case n.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=r.DATA,this.emitCurrentTagToken();break}case n.NULL:{this._err(d.unexpectedNullCharacter),this.currentAttr.value+=N;break}case n.QUOTATION_MARK:case n.APOSTROPHE:case n.LESS_THAN_SIGN:case n.EQUALS_SIGN:case n.GRAVE_ACCENT:{this._err(d.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case n.EOF:{this._err(d.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:{this._leaveAttrValue(),this.state=r.BEFORE_ATTRIBUTE_NAME;break}case n.SOLIDUS:{this._leaveAttrValue(),this.state=r.SELF_CLOSING_START_TAG;break}case n.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=r.DATA,this.emitCurrentTagToken();break}case n.EOF:{this._err(d.eofInTag),this._emitEOFToken();break}default:this._err(d.missingWhitespaceBetweenAttributes),this.state=r.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case n.GREATER_THAN_SIGN:{const a=this.currentToken;a.selfClosing=!0,this.state=r.DATA,this.emitCurrentTagToken();break}case n.EOF:{this._err(d.eofInTag),this._emitEOFToken();break}default:this._err(d.unexpectedSolidusInTag),this.state=r.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const a=this.currentToken;switch(t){case n.GREATER_THAN_SIGN:{this.state=r.DATA,this.emitCurrentComment(a);break}case n.EOF:{this.emitCurrentComment(a),this._emitEOFToken();break}case n.NULL:{this._err(d.unexpectedNullCharacter),a.data+=N;break}default:a.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(O.DASH_DASH,!0)?(this._createCommentToken(O.DASH_DASH.length+1),this.state=r.COMMENT_START):this._consumeSequenceIfMatch(O.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(O.DOCTYPE.length+1),this.state=r.DOCTYPE):this._consumeSequenceIfMatch(O.CDATA_START,!0)?this.inForeignNode?this.state=r.CDATA_SECTION:(this._err(d.cdataInHtmlContent),this._createCommentToken(O.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=r.BOGUS_COMMENT):this._ensureHibernation()||(this._err(d.incorrectlyOpenedComment),this._createCommentToken(2),this.state=r.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case n.HYPHEN_MINUS:{this.state=r.COMMENT_START_DASH;break}case n.GREATER_THAN_SIGN:{this._err(d.abruptClosingOfEmptyComment),this.state=r.DATA;const a=this.currentToken;this.emitCurrentComment(a);break}default:this.state=r.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const a=this.currentToken;switch(t){case n.HYPHEN_MINUS:{this.state=r.COMMENT_END;break}case n.GREATER_THAN_SIGN:{this._err(d.abruptClosingOfEmptyComment),this.state=r.DATA,this.emitCurrentComment(a);break}case n.EOF:{this._err(d.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="-",this.state=r.COMMENT,this._stateComment(t)}}_stateComment(t){const a=this.currentToken;switch(t){case n.HYPHEN_MINUS:{this.state=r.COMMENT_END_DASH;break}case n.LESS_THAN_SIGN:{a.data+="<",this.state=r.COMMENT_LESS_THAN_SIGN;break}case n.NULL:{this._err(d.unexpectedNullCharacter),a.data+=N;break}case n.EOF:{this._err(d.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const a=this.currentToken;switch(t){case n.EXCLAMATION_MARK:{a.data+="!",this.state=r.COMMENT_LESS_THAN_SIGN_BANG;break}case n.LESS_THAN_SIGN:{a.data+="<";break}default:this.state=r.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===n.HYPHEN_MINUS?this.state=r.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=r.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===n.HYPHEN_MINUS?this.state=r.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=r.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==n.GREATER_THAN_SIGN&&t!==n.EOF&&this._err(d.nestedComment),this.state=r.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const a=this.currentToken;switch(t){case n.HYPHEN_MINUS:{this.state=r.COMMENT_END;break}case n.EOF:{this._err(d.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="-",this.state=r.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const a=this.currentToken;switch(t){case n.GREATER_THAN_SIGN:{this.state=r.DATA,this.emitCurrentComment(a);break}case n.EXCLAMATION_MARK:{this.state=r.COMMENT_END_BANG;break}case n.HYPHEN_MINUS:{a.data+="-";break}case n.EOF:{this._err(d.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="--",this.state=r.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const a=this.currentToken;switch(t){case n.HYPHEN_MINUS:{a.data+="--!",this.state=r.COMMENT_END_DASH;break}case n.GREATER_THAN_SIGN:{this._err(d.incorrectlyClosedComment),this.state=r.DATA,this.emitCurrentComment(a);break}case n.EOF:{this._err(d.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="--!",this.state=r.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:{this.state=r.BEFORE_DOCTYPE_NAME;break}case n.GREATER_THAN_SIGN:{this.state=r.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case n.EOF:{this._err(d.eofInDoctype),this._createDoctypeToken(null);const a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(d.missingWhitespaceBeforeDoctypeName),this.state=r.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(ee(t))this._createDoctypeToken(String.fromCharCode(Ee(t))),this.state=r.DOCTYPE_NAME;else switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:break;case n.NULL:{this._err(d.unexpectedNullCharacter),this._createDoctypeToken(N),this.state=r.DOCTYPE_NAME;break}case n.GREATER_THAN_SIGN:{this._err(d.missingDoctypeName),this._createDoctypeToken(null);const a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=r.DATA;break}case n.EOF:{this._err(d.eofInDoctype),this._createDoctypeToken(null);const a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=r.DOCTYPE_NAME}}_stateDoctypeName(t){const a=this.currentToken;switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:{this.state=r.AFTER_DOCTYPE_NAME;break}case n.GREATER_THAN_SIGN:{this.state=r.DATA,this.emitCurrentDoctype(a);break}case n.NULL:{this._err(d.unexpectedNullCharacter),a.name+=N;break}case n.EOF:{this._err(d.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.name+=String.fromCodePoint(ee(t)?Ee(t):t)}}_stateAfterDoctypeName(t){const a=this.currentToken;switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:break;case n.GREATER_THAN_SIGN:{this.state=r.DATA,this.emitCurrentDoctype(a);break}case n.EOF:{this._err(d.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(O.PUBLIC,!1)?this.state=r.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(O.SYSTEM,!1)?this.state=r.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(d.invalidCharacterSequenceAfterDoctypeName),a.forceQuirks=!0,this.state=r.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const a=this.currentToken;switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:{this.state=r.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case n.QUOTATION_MARK:{this._err(d.missingWhitespaceAfterDoctypePublicKeyword),a.publicId="",this.state=r.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case n.APOSTROPHE:{this._err(d.missingWhitespaceAfterDoctypePublicKeyword),a.publicId="",this.state=r.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case n.GREATER_THAN_SIGN:{this._err(d.missingDoctypePublicIdentifier),a.forceQuirks=!0,this.state=r.DATA,this.emitCurrentDoctype(a);break}case n.EOF:{this._err(d.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(d.missingQuoteBeforeDoctypePublicIdentifier),a.forceQuirks=!0,this.state=r.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const a=this.currentToken;switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:break;case n.QUOTATION_MARK:{a.publicId="",this.state=r.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case n.APOSTROPHE:{a.publicId="",this.state=r.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case n.GREATER_THAN_SIGN:{this._err(d.missingDoctypePublicIdentifier),a.forceQuirks=!0,this.state=r.DATA,this.emitCurrentDoctype(a);break}case n.EOF:{this._err(d.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(d.missingQuoteBeforeDoctypePublicIdentifier),a.forceQuirks=!0,this.state=r.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const a=this.currentToken;switch(t){case n.QUOTATION_MARK:{this.state=r.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case n.NULL:{this._err(d.unexpectedNullCharacter),a.publicId+=N;break}case n.GREATER_THAN_SIGN:{this._err(d.abruptDoctypePublicIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=r.DATA;break}case n.EOF:{this._err(d.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const a=this.currentToken;switch(t){case n.APOSTROPHE:{this.state=r.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case n.NULL:{this._err(d.unexpectedNullCharacter),a.publicId+=N;break}case n.GREATER_THAN_SIGN:{this._err(d.abruptDoctypePublicIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=r.DATA;break}case n.EOF:{this._err(d.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const a=this.currentToken;switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:{this.state=r.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case n.GREATER_THAN_SIGN:{this.state=r.DATA,this.emitCurrentDoctype(a);break}case n.QUOTATION_MARK:{this._err(d.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),a.systemId="",this.state=r.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case n.APOSTROPHE:{this._err(d.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),a.systemId="",this.state=r.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case n.EOF:{this._err(d.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(d.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=r.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const a=this.currentToken;switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:break;case n.GREATER_THAN_SIGN:{this.emitCurrentDoctype(a),this.state=r.DATA;break}case n.QUOTATION_MARK:{a.systemId="",this.state=r.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case n.APOSTROPHE:{a.systemId="",this.state=r.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case n.EOF:{this._err(d.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(d.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=r.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const a=this.currentToken;switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:{this.state=r.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case n.QUOTATION_MARK:{this._err(d.missingWhitespaceAfterDoctypeSystemKeyword),a.systemId="",this.state=r.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case n.APOSTROPHE:{this._err(d.missingWhitespaceAfterDoctypeSystemKeyword),a.systemId="",this.state=r.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case n.GREATER_THAN_SIGN:{this._err(d.missingDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=r.DATA,this.emitCurrentDoctype(a);break}case n.EOF:{this._err(d.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(d.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=r.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const a=this.currentToken;switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:break;case n.QUOTATION_MARK:{a.systemId="",this.state=r.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case n.APOSTROPHE:{a.systemId="",this.state=r.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case n.GREATER_THAN_SIGN:{this._err(d.missingDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=r.DATA,this.emitCurrentDoctype(a);break}case n.EOF:{this._err(d.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(d.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=r.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const a=this.currentToken;switch(t){case n.QUOTATION_MARK:{this.state=r.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case n.NULL:{this._err(d.unexpectedNullCharacter),a.systemId+=N;break}case n.GREATER_THAN_SIGN:{this._err(d.abruptDoctypeSystemIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=r.DATA;break}case n.EOF:{this._err(d.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const a=this.currentToken;switch(t){case n.APOSTROPHE:{this.state=r.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case n.NULL:{this._err(d.unexpectedNullCharacter),a.systemId+=N;break}case n.GREATER_THAN_SIGN:{this._err(d.abruptDoctypeSystemIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=r.DATA;break}case n.EOF:{this._err(d.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const a=this.currentToken;switch(t){case n.SPACE:case n.LINE_FEED:case n.TABULATION:case n.FORM_FEED:break;case n.GREATER_THAN_SIGN:{this.emitCurrentDoctype(a),this.state=r.DATA;break}case n.EOF:{this._err(d.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(d.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=r.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const a=this.currentToken;switch(t){case n.GREATER_THAN_SIGN:{this.emitCurrentDoctype(a),this.state=r.DATA;break}case n.NULL:{this._err(d.unexpectedNullCharacter);break}case n.EOF:{this.emitCurrentDoctype(a),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case n.RIGHT_SQUARE_BRACKET:{this.state=r.CDATA_SECTION_BRACKET;break}case n.EOF:{this._err(d.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===n.RIGHT_SQUARE_BRACKET?this.state=r.CDATA_SECTION_END:(this._emitChars("]"),this.state=r.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case n.GREATER_THAN_SIGN:{this.state=r.DATA;break}case n.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=r.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(t){t===n.NUMBER_SIGN?this.state=r.NUMERIC_CHARACTER_REFERENCE:Pe(t)?(this.state=r.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(t)):(this._flushCodePointConsumedAsCharacterReference(n.AMPERSAND),this._reconsumeInState(this.returnState,t))}_stateNamedCharacterReference(t){const a=this._matchNamedCharacterReference(t);if(!this._ensureHibernation())if(a){for(let s=0;s<a.length;s++)this._flushCodePointConsumedAsCharacterReference(a[s]);this.state=this.returnState}else this._flushCodePointConsumedAsCharacterReference(n.AMPERSAND),this.state=r.AMBIGUOUS_AMPERSAND}_stateAmbiguousAmpersand(t){Pe(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===n.SEMICOLON&&this._err(d.unknownNamedCharacterReference),this._reconsumeInState(this.returnState,t))}_stateNumericCharacterReference(t){this.charRefCode=0,t===n.LATIN_SMALL_X||t===n.LATIN_CAPITAL_X?this.state=r.HEXADEMICAL_CHARACTER_REFERENCE_START:te(t)?(this.state=r.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(t)):(this._err(d.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(n.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(n.NUMBER_SIGN),this._reconsumeInState(this.returnState,t))}_stateHexademicalCharacterReferenceStart(t){Ju(t)?(this.state=r.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(t)):(this._err(d.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(n.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(n.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState)}_stateHexademicalCharacterReference(t){Lt(t)?this.charRefCode=this.charRefCode*16+t-55:St(t)?this.charRefCode=this.charRefCode*16+t-87:te(t)?this.charRefCode=this.charRefCode*16+t-48:t===n.SEMICOLON?this.state=r.NUMERIC_CHARACTER_REFERENCE_END:(this._err(d.missingSemicolonAfterCharacterReference),this.state=r.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(t))}_stateDecimalCharacterReference(t){te(t)?this.charRefCode=this.charRefCode*10+t-48:t===n.SEMICOLON?this.state=r.NUMERIC_CHARACTER_REFERENCE_END:(this._err(d.missingSemicolonAfterCharacterReference),this.state=r.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(t))}_stateNumericCharacterReferenceEnd(t){if(this.charRefCode===n.NULL)this._err(d.nullCharacterReference),this.charRefCode=n.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(d.characterReferenceOutsideUnicodeRange),this.charRefCode=n.REPLACEMENT_CHARACTER;else if(At(this.charRefCode))this._err(d.surrogateCharacterReference),this.charRefCode=n.REPLACEMENT_CHARACTER;else if(pt(this.charRefCode))this._err(d.noncharacterCharacterReference);else if(Ct(this.charRefCode)||this.charRefCode===n.CARRIAGE_RETURN){this._err(d.controlCharacterReference);const a=zu.get(this.charRefCode);a!==void 0&&(this.charRefCode=a)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}}const Dt=new Set([u.DD,u.DT,u.LI,u.OPTGROUP,u.OPTION,u.P,u.RB,u.RP,u.RT,u.RTC]),Ke=new Set([...Dt,u.CAPTION,u.COLGROUP,u.TBODY,u.TD,u.TFOOT,u.TH,u.THEAD,u.TR]),he=new Map([[u.APPLET,E.HTML],[u.CAPTION,E.HTML],[u.HTML,E.HTML],[u.MARQUEE,E.HTML],[u.OBJECT,E.HTML],[u.TABLE,E.HTML],[u.TD,E.HTML],[u.TEMPLATE,E.HTML],[u.TH,E.HTML],[u.ANNOTATION_XML,E.MATHML],[u.MI,E.MATHML],[u.MN,E.MATHML],[u.MO,E.MATHML],[u.MS,E.MATHML],[u.MTEXT,E.MATHML],[u.DESC,E.SVG],[u.FOREIGN_OBJECT,E.SVG],[u.TITLE,E.SVG]]),ea=[u.H1,u.H2,u.H3,u.H4,u.H5,u.H6],ta=[u.TR,u.TEMPLATE,u.HTML],ua=[u.TBODY,u.TFOOT,u.THEAD,u.TEMPLATE,u.HTML],aa=[u.TABLE,u.TEMPLATE,u.HTML],sa=[u.TD,u.TH];class na{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,a,s){this.treeAdapter=a,this.handler=s,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=u.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===u.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===E.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,a){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=a,this.currentTagId=a,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,a,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,a){const s=this._indexOf(t);this.items[s]=a,s===this.stackTop&&(this.current=a)}insertAfter(t,a,s){const c=this._indexOf(t)+1;this.items.splice(c,0,a),this.tagIDs.splice(c,0,s),this.stackTop++,c===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,c===this.stackTop)}popUntilTagNamePopped(t){let a=this.stackTop+1;do a=this.tagIDs.lastIndexOf(t,a-1);while(a>0&&this.treeAdapter.getNamespaceURI(this.items[a])!==E.HTML);this.shortenToLength(a<0?0:a)}shortenToLength(t){for(;this.stackTop>=t;){const a=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(a,this.stackTop<t)}}popUntilElementPopped(t){const a=this._indexOf(t);this.shortenToLength(a<0?0:a)}popUntilPopped(t,a){const s=this._indexOfTagNames(t,a);this.shortenToLength(s<0?0:s)}popUntilNumberedHeaderPopped(){this.popUntilPopped(ea,E.HTML)}popUntilTableCellPopped(){this.popUntilPopped(sa,E.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,a){for(let s=this.stackTop;s>=0;s--)if(t.includes(this.tagIDs[s])&&this.treeAdapter.getNamespaceURI(this.items[s])===a)return s;return-1}clearBackTo(t,a){const s=this._indexOfTagNames(t,a);this.shortenToLength(s+1)}clearBackToTableContext(){this.clearBackTo(aa,E.HTML)}clearBackToTableBodyContext(){this.clearBackTo(ua,E.HTML)}clearBackToTableRowContext(){this.clearBackTo(ta,E.HTML)}remove(t){const a=this._indexOf(t);a>=0&&(a===this.stackTop?this.pop():(this.items.splice(a,1),this.tagIDs.splice(a,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===u.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const a=this._indexOf(t)-1;return a>=0?this.items[a]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===u.HTML}hasInScope(t){for(let a=this.stackTop;a>=0;a--){const s=this.tagIDs[a],c=this.treeAdapter.getNamespaceURI(this.items[a]);if(s===t&&c===E.HTML)return!0;if(he.get(s)===c)return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const a=this.tagIDs[t],s=this.treeAdapter.getNamespaceURI(this.items[t]);if(Rt(a)&&s===E.HTML)return!0;if(he.get(a)===s)return!1}return!0}hasInListItemScope(t){for(let a=this.stackTop;a>=0;a--){const s=this.tagIDs[a],c=this.treeAdapter.getNamespaceURI(this.items[a]);if(s===t&&c===E.HTML)return!0;if((s===u.UL||s===u.OL)&&c===E.HTML||he.get(s)===c)return!1}return!0}hasInButtonScope(t){for(let a=this.stackTop;a>=0;a--){const s=this.tagIDs[a],c=this.treeAdapter.getNamespaceURI(this.items[a]);if(s===t&&c===E.HTML)return!0;if(s===u.BUTTON&&c===E.HTML||he.get(s)===c)return!1}return!0}hasInTableScope(t){for(let a=this.stackTop;a>=0;a--){const s=this.tagIDs[a];if(this.treeAdapter.getNamespaceURI(this.items[a])===E.HTML){if(s===t)return!0;if(s===u.TABLE||s===u.TEMPLATE||s===u.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const a=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===E.HTML){if(a===u.TBODY||a===u.THEAD||a===u.TFOOT)return!0;if(a===u.TABLE||a===u.HTML)return!1}}return!0}hasInSelectScope(t){for(let a=this.stackTop;a>=0;a--){const s=this.tagIDs[a];if(this.treeAdapter.getNamespaceURI(this.items[a])===E.HTML){if(s===t)return!0;if(s!==u.OPTION&&s!==u.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Dt.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Ke.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&Ke.has(this.currentTagId);)this.pop()}}const ge=3;var x;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(x=x||(x={}));const Ve={type:x.Marker};class ra{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,a){const s=[],c=a.length,l=this.treeAdapter.getTagName(t),h=this.treeAdapter.getNamespaceURI(t);for(let m=0;m<this.entries.length;m++){const _=this.entries[m];if(_.type===x.Marker)break;const{element:C}=_;if(this.treeAdapter.getTagName(C)===l&&this.treeAdapter.getNamespaceURI(C)===h){const B=this.treeAdapter.getAttrList(C);B.length===c&&s.push({idx:m,attrs:B})}}return s}_ensureNoahArkCondition(t){if(this.entries.length<ge)return;const a=this.treeAdapter.getAttrList(t),s=this._getNoahArkConditionCandidates(t,a);if(s.length<ge)return;const c=new Map(a.map(h=>[h.name,h.value]));let l=0;for(let h=0;h<s.length;h++){const m=s[h];m.attrs.every(_=>c.get(_.name)===_.value)&&(l+=1,l>=ge&&this.entries.splice(m.idx,1))}}insertMarker(){this.entries.unshift(Ve)}pushElement(t,a){this._ensureNoahArkCondition(t),this.entries.unshift({type:x.Element,element:t,token:a})}insertElementAfterBookmark(t,a){const s=this.entries.indexOf(this.bookmark);this.entries.splice(s,0,{type:x.Element,element:t,token:a})}removeEntry(t){const a=this.entries.indexOf(t);a>=0&&this.entries.splice(a,1)}clearToLastMarker(){const t=this.entries.indexOf(Ve);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const a=this.entries.find(s=>s.type===x.Marker||this.treeAdapter.getTagName(s.element)===t);return a&&a.type===x.Element?a:null}getElementEntry(t){return this.entries.find(a=>a.type===x.Element&&a.element===t)}}function ze(e){return{nodeName:"#text",value:e,parentNode:null}}const q={createDocument(){return{nodeName:"#document",mode:P.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,a){return{nodeName:e,tagName:e,attrs:a,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,a){const s=e.childNodes.indexOf(a);e.childNodes.splice(s,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,a,s){const c=e.childNodes.find(l=>l.nodeName==="#documentType");if(c)c.name=t,c.publicId=a,c.systemId=s;else{const l={nodeName:"#documentType",name:t,publicId:a,systemId:s,parentNode:null};q.appendChild(e,l)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const a=e.childNodes[e.childNodes.length-1];if(q.isTextNode(a)){a.value+=t;return}}q.appendChild(e,ze(t))},insertTextBefore(e,t,a){const s=e.childNodes[e.childNodes.indexOf(a)-1];s&&q.isTextNode(s)?s.value+=t:q.insertBefore(e,ze(t),a)},adoptAttributes(e,t){const a=new Set(e.attrs.map(s=>s.name));for(let s=0;s<t.length;s++)a.has(t[s].name)||e.attrs.push(t[s])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Pt="html",ia="about:legacy-compat",ca="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Mt=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],oa=[...Mt,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],la=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),xt=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],da=[...xt,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function je(e,t){return t.some(a=>e.startsWith(a))}function Ea(e){return e.name===Pt&&e.publicId===null&&(e.systemId===null||e.systemId===ia)}function ha(e){if(e.name!==Pt)return P.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===ca)return P.QUIRKS;let{publicId:a}=e;if(a!==null){if(a=a.toLowerCase(),la.has(a))return P.QUIRKS;let s=t===null?oa:Mt;if(je(a,s))return P.QUIRKS;if(s=t===null?xt:da,je(a,s))return P.LIMITED_QUIRKS}return P.NO_QUIRKS}const Je={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Ta="definitionurl",fa="definitionURL",ma=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),_a=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:E.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:E.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:E.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:E.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:E.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:E.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:E.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:E.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:E.XML}],["xml:space",{prefix:"xml",name:"space",namespace:E.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:E.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:E.XMLNS}]]),ba=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Aa=new Set([u.B,u.BIG,u.BLOCKQUOTE,u.BODY,u.BR,u.CENTER,u.CODE,u.DD,u.DIV,u.DL,u.DT,u.EM,u.EMBED,u.H1,u.H2,u.H3,u.H4,u.H5,u.H6,u.HEAD,u.HR,u.I,u.IMG,u.LI,u.LISTING,u.MENU,u.META,u.NOBR,u.OL,u.P,u.PRE,u.RUBY,u.S,u.SMALL,u.SPAN,u.STRONG,u.STRIKE,u.SUB,u.SUP,u.TABLE,u.TT,u.U,u.UL,u.VAR]);function Ca(e){const t=e.tagID;return t===u.FONT&&e.attrs.some(({name:s})=>s===F.COLOR||s===F.SIZE||s===F.FACE)||Aa.has(t)}function kt(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Ta){e.attrs[t].name=fa;break}}function Bt(e){for(let t=0;t<e.attrs.length;t++){const a=ma.get(e.attrs[t].name);a!=null&&(e.attrs[t].name=a)}}function Ue(e){for(let t=0;t<e.attrs.length;t++){const a=_a.get(e.attrs[t].name);a&&(e.attrs[t].prefix=a.prefix,e.attrs[t].name=a.name,e.attrs[t].namespace=a.namespace)}}function pa(e){const t=ba.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=j(e.tagName))}function Na(e,t){return t===E.MATHML&&(e===u.MI||e===u.MO||e===u.MN||e===u.MS||e===u.MTEXT)}function Ia(e,t,a){if(t===E.MATHML&&e===u.ANNOTATION_XML){for(let s=0;s<a.length;s++)if(a[s].name===F.ENCODING){const c=a[s].value.toLowerCase();return c===Je.TEXT_HTML||c===Je.APPLICATION_XML}}return t===E.SVG&&(e===u.FOREIGN_OBJECT||e===u.DESC||e===u.TITLE)}function ga(e,t,a,s){return(!s||s===E.HTML)&&Ia(e,t,a)||(!s||s===E.MATHML)&&Na(e,t)}const Ra="hidden",La=8,Sa=3;var i;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(i||(i={}));const Oa={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Ht=new Set([u.TABLE,u.TBODY,u.TFOOT,u.THEAD,u.TR]),$e={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:q,onParseError:null};class Ze{constructor(t,a,s=null,c=null){this.fragmentContext=s,this.scriptHandler=c,this.currentToken=null,this.stopped=!1,this.insertionMode=i.INITIAL,this.originalInsertionMode=i.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...$e,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=a??this.treeAdapter.createDocument(),this.tokenizer=new Zu(this.options,this),this.activeFormattingElements=new ra(this.treeAdapter),this.fragmentContextID=s?j(this.treeAdapter.getTagName(s)):u.UNKNOWN,this._setContextModes(s??this.document,this.fragmentContextID),this.openElements=new na(this.document,this.treeAdapter,this)}static parse(t,a){const s=new this(a);return s.tokenizer.write(t,!0),s.document}static getFragmentParser(t,a){const s={...$e,...a};t??(t=s.treeAdapter.createElement(o.TEMPLATE,E.HTML,[]));const c=s.treeAdapter.createElement("documentmock",E.HTML,[]),l=new this(s,c,t);return l.fragmentContextID===u.TEMPLATE&&l.tmplInsertionModeStack.unshift(i.IN_TEMPLATE),l._initTokenizerForFragmentParsing(),l._insertFakeRootElement(),l._resetInsertionMode(),l._findFormInFragmentContext(),l}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),a=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,a),a}_err(t,a,s){var c;if(!this.onParseError)return;const l=(c=t.location)!==null&&c!==void 0?c:Oa,h={code:a,startLine:l.startLine,startCol:l.startCol,startOffset:l.startOffset,endLine:s?l.startLine:l.endLine,endCol:s?l.startCol:l.endCol,endOffset:s?l.startOffset:l.endOffset};this.onParseError(h)}onItemPush(t,a,s){var c,l;(l=(c=this.treeAdapter).onItemPush)===null||l===void 0||l.call(c,t),s&&this.openElements.stackTop>0&&this._setContextModes(t,a)}onItemPop(t,a){var s,c;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(c=(s=this.treeAdapter).onItemPop)===null||c===void 0||c.call(s,t,this.openElements.current),a){let l,h;this.openElements.stackTop===0&&this.fragmentContext?(l=this.fragmentContext,h=this.fragmentContextID):{current:l,currentTagId:h}=this.openElements,this._setContextModes(l,h)}}_setContextModes(t,a){const s=t===this.document||this.treeAdapter.getNamespaceURI(t)===E.HTML;this.currentNotInHTML=!s,this.tokenizer.inForeignNode=!s&&!this._isIntegrationPoint(a,t)}_switchToTextParsing(t,a){this._insertElement(t,E.HTML),this.tokenizer.state=a,this.originalInsertionMode=this.insertionMode,this.insertionMode=i.TEXT}switchToPlaintextParsing(){this.insertionMode=i.TEXT,this.originalInsertionMode=i.IN_BODY,this.tokenizer.state=I.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===o.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==E.HTML))switch(this.fragmentContextID){case u.TITLE:case u.TEXTAREA:{this.tokenizer.state=I.RCDATA;break}case u.STYLE:case u.XMP:case u.IFRAME:case u.NOEMBED:case u.NOFRAMES:case u.NOSCRIPT:{this.tokenizer.state=I.RAWTEXT;break}case u.SCRIPT:{this.tokenizer.state=I.SCRIPT_DATA;break}case u.PLAINTEXT:{this.tokenizer.state=I.PLAINTEXT;break}}}_setDocumentType(t){const a=t.name||"",s=t.publicId||"",c=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,a,s,c),t.location){const h=this.treeAdapter.getChildNodes(this.document).find(m=>this.treeAdapter.isDocumentTypeNode(m));h&&this.treeAdapter.setNodeSourceCodeLocation(h,t.location)}}_attachElementToTree(t,a){if(this.options.sourceCodeLocationInfo){const s=a&&{...a,startTag:a};this.treeAdapter.setNodeSourceCodeLocation(t,s)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const s=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(s,t)}}_appendElement(t,a){const s=this.treeAdapter.createElement(t.tagName,a,t.attrs);this._attachElementToTree(s,t.location)}_insertElement(t,a){const s=this.treeAdapter.createElement(t.tagName,a,t.attrs);this._attachElementToTree(s,t.location),this.openElements.push(s,t.tagID)}_insertFakeElement(t,a){const s=this.treeAdapter.createElement(t,E.HTML,[]);this._attachElementToTree(s,null),this.openElements.push(s,a)}_insertTemplate(t){const a=this.treeAdapter.createElement(t.tagName,E.HTML,t.attrs),s=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(a,s),this._attachElementToTree(a,t.location),this.openElements.push(a,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(o.HTML,E.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,u.HTML)}_appendCommentNode(t,a){const s=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(a,s),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_insertCharacters(t){let a,s;if(this._shouldFosterParentOnInsertion()?({parent:a,beforeElement:s}=this._findFosterParentingLocation(),s?this.treeAdapter.insertTextBefore(a,t.chars,s):this.treeAdapter.insertText(a,t.chars)):(a=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(a,t.chars)),!t.location)return;const c=this.treeAdapter.getChildNodes(a),l=s?c.lastIndexOf(s):c.length,h=c[l-1];if(this.treeAdapter.getNodeSourceCodeLocation(h)){const{endLine:_,endCol:C,endOffset:B}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(h,{endLine:_,endCol:C,endOffset:B})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(h,t.location)}_adoptNodes(t,a){for(let s=this.treeAdapter.getFirstChild(t);s;s=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(s),this.treeAdapter.appendChild(a,s)}_setEndLocation(t,a){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&a.location){const s=a.location,c=this.treeAdapter.getTagName(t),l=a.type===A.END_TAG&&c===a.tagName?{endTag:{...s},endLine:s.endLine,endCol:s.endCol,endOffset:s.endOffset}:{endLine:s.startLine,endCol:s.startCol,endOffset:s.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,l)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let a,s;return this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,t.tagID===u.SVG&&this.treeAdapter.getTagName(a)===o.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(a)===E.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===u.MGLYPH||t.tagID===u.MALIGNMARK)&&!this._isIntegrationPoint(s,a,E.HTML)}_processToken(t){switch(t.type){case A.CHARACTER:{this.onCharacter(t);break}case A.NULL_CHARACTER:{this.onNullCharacter(t);break}case A.COMMENT:{this.onComment(t);break}case A.DOCTYPE:{this.onDoctype(t);break}case A.START_TAG:{this._processStartTag(t);break}case A.END_TAG:{this.onEndTag(t);break}case A.EOF:{this.onEof(t);break}case A.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,a,s){const c=this.treeAdapter.getNamespaceURI(a),l=this.treeAdapter.getAttrList(a);return ga(t,c,l,s)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const a=this.activeFormattingElements.entries.findIndex(c=>c.type===x.Marker||this.openElements.contains(c.element)),s=a<0?t-1:a-1;for(let c=s;c>=0;c--){const l=this.activeFormattingElements.entries[c];this._insertElement(l.token,this.treeAdapter.getNamespaceURI(l.element)),l.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=i.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(u.P),this.openElements.popUntilTagNamePopped(u.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case u.TR:{this.insertionMode=i.IN_ROW;return}case u.TBODY:case u.THEAD:case u.TFOOT:{this.insertionMode=i.IN_TABLE_BODY;return}case u.CAPTION:{this.insertionMode=i.IN_CAPTION;return}case u.COLGROUP:{this.insertionMode=i.IN_COLUMN_GROUP;return}case u.TABLE:{this.insertionMode=i.IN_TABLE;return}case u.BODY:{this.insertionMode=i.IN_BODY;return}case u.FRAMESET:{this.insertionMode=i.IN_FRAMESET;return}case u.SELECT:{this._resetInsertionModeForSelect(t);return}case u.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case u.HTML:{this.insertionMode=this.headElement?i.AFTER_HEAD:i.BEFORE_HEAD;return}case u.TD:case u.TH:{if(t>0){this.insertionMode=i.IN_CELL;return}break}case u.HEAD:{if(t>0){this.insertionMode=i.IN_HEAD;return}break}}this.insertionMode=i.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let a=t-1;a>0;a--){const s=this.openElements.tagIDs[a];if(s===u.TEMPLATE)break;if(s===u.TABLE){this.insertionMode=i.IN_SELECT_IN_TABLE;return}}this.insertionMode=i.IN_SELECT}_isElementCausesFosterParenting(t){return Ht.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const a=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case u.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(a)===E.HTML)return{parent:this.treeAdapter.getTemplateContent(a),beforeElement:null};break}case u.TABLE:{const s=this.treeAdapter.getParentNode(a);return s?{parent:s,beforeElement:a}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const a=this._findFosterParentingLocation();a.beforeElement?this.treeAdapter.insertBefore(a.parent,t,a.beforeElement):this.treeAdapter.appendChild(a.parent,t)}_isSpecialElement(t,a){const s=this.treeAdapter.getNamespaceURI(t);return Vu[s].has(a)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){sn(this,t);return}switch(this.insertionMode){case i.INITIAL:{$(this,t);break}case i.BEFORE_HTML:{ue(this,t);break}case i.BEFORE_HEAD:{ae(this,t);break}case i.IN_HEAD:{se(this,t);break}case i.IN_HEAD_NO_SCRIPT:{ne(this,t);break}case i.AFTER_HEAD:{re(this,t);break}case i.IN_BODY:case i.IN_CAPTION:case i.IN_CELL:case i.IN_TEMPLATE:{yt(this,t);break}case i.TEXT:case i.IN_SELECT:case i.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case i.IN_TABLE:case i.IN_TABLE_BODY:case i.IN_ROW:{Re(this,t);break}case i.IN_TABLE_TEXT:{Wt(this,t);break}case i.IN_COLUMN_GROUP:{me(this,t);break}case i.AFTER_BODY:{_e(this,t);break}case i.AFTER_AFTER_BODY:{fe(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){an(this,t);return}switch(this.insertionMode){case i.INITIAL:{$(this,t);break}case i.BEFORE_HTML:{ue(this,t);break}case i.BEFORE_HEAD:{ae(this,t);break}case i.IN_HEAD:{se(this,t);break}case i.IN_HEAD_NO_SCRIPT:{ne(this,t);break}case i.AFTER_HEAD:{re(this,t);break}case i.TEXT:{this._insertCharacters(t);break}case i.IN_TABLE:case i.IN_TABLE_BODY:case i.IN_ROW:{Re(this,t);break}case i.IN_COLUMN_GROUP:{me(this,t);break}case i.AFTER_BODY:{_e(this,t);break}case i.AFTER_AFTER_BODY:{fe(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Me(this,t);return}switch(this.insertionMode){case i.INITIAL:case i.BEFORE_HTML:case i.BEFORE_HEAD:case i.IN_HEAD:case i.IN_HEAD_NO_SCRIPT:case i.AFTER_HEAD:case i.IN_BODY:case i.IN_TABLE:case i.IN_CAPTION:case i.IN_COLUMN_GROUP:case i.IN_TABLE_BODY:case i.IN_ROW:case i.IN_CELL:case i.IN_SELECT:case i.IN_SELECT_IN_TABLE:case i.IN_TEMPLATE:case i.IN_FRAMESET:case i.AFTER_FRAMESET:{Me(this,t);break}case i.IN_TABLE_TEXT:{Z(this,t);break}case i.AFTER_BODY:{Ha(this,t);break}case i.AFTER_AFTER_BODY:case i.AFTER_AFTER_FRAMESET:{Ua(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case i.INITIAL:{ya(this,t);break}case i.BEFORE_HEAD:case i.IN_HEAD:case i.IN_HEAD_NO_SCRIPT:case i.AFTER_HEAD:{this._err(t,d.misplacedDoctype);break}case i.IN_TABLE_TEXT:{Z(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,d.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?nn(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case i.INITIAL:{$(this,t);break}case i.BEFORE_HTML:{Fa(this,t);break}case i.BEFORE_HEAD:{va(this,t);break}case i.IN_HEAD:{k(this,t);break}case i.IN_HEAD_NO_SCRIPT:{Wa(this,t);break}case i.AFTER_HEAD:{Ga(this,t);break}case i.IN_BODY:{S(this,t);break}case i.IN_TABLE:{K(this,t);break}case i.IN_TABLE_TEXT:{Z(this,t);break}case i.IN_CAPTION:{Ys(this,t);break}case i.IN_COLUMN_GROUP:{we(this,t);break}case i.IN_TABLE_BODY:{Ce(this,t);break}case i.IN_ROW:{pe(this,t);break}case i.IN_CELL:{qs(this,t);break}case i.IN_SELECT:{Xt(this,t);break}case i.IN_SELECT_IN_TABLE:{Xs(this,t);break}case i.IN_TEMPLATE:{Vs(this,t);break}case i.AFTER_BODY:{js(this,t);break}case i.IN_FRAMESET:{Js(this,t);break}case i.AFTER_FRAMESET:{Zs(this,t);break}case i.AFTER_AFTER_BODY:{tn(this,t);break}case i.AFTER_AFTER_FRAMESET:{un(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?rn(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case i.INITIAL:{$(this,t);break}case i.BEFORE_HTML:{wa(this,t);break}case i.BEFORE_HEAD:{Ya(this,t);break}case i.IN_HEAD:{Qa(this,t);break}case i.IN_HEAD_NO_SCRIPT:{qa(this,t);break}case i.AFTER_HEAD:{Xa(this,t);break}case i.IN_BODY:{Ae(this,t);break}case i.TEXT:{Ms(this,t);break}case i.IN_TABLE:{ie(this,t);break}case i.IN_TABLE_TEXT:{Z(this,t);break}case i.IN_CAPTION:{Qs(this,t);break}case i.IN_COLUMN_GROUP:{Ws(this,t);break}case i.IN_TABLE_BODY:{xe(this,t);break}case i.IN_ROW:{Gt(this,t);break}case i.IN_CELL:{Gs(this,t);break}case i.IN_SELECT:{Kt(this,t);break}case i.IN_SELECT_IN_TABLE:{Ks(this,t);break}case i.IN_TEMPLATE:{zs(this,t);break}case i.AFTER_BODY:{zt(this,t);break}case i.IN_FRAMESET:{$s(this,t);break}case i.AFTER_FRAMESET:{en(this,t);break}case i.AFTER_AFTER_BODY:{fe(this,t);break}}}onEof(t){switch(this.insertionMode){case i.INITIAL:{$(this,t);break}case i.BEFORE_HTML:{ue(this,t);break}case i.BEFORE_HEAD:{ae(this,t);break}case i.IN_HEAD:{se(this,t);break}case i.IN_HEAD_NO_SCRIPT:{ne(this,t);break}case i.AFTER_HEAD:{re(this,t);break}case i.IN_BODY:case i.IN_TABLE:case i.IN_CAPTION:case i.IN_COLUMN_GROUP:case i.IN_TABLE_BODY:case i.IN_ROW:case i.IN_CELL:case i.IN_SELECT:case i.IN_SELECT_IN_TABLE:{Yt(this,t);break}case i.TEXT:{xs(this,t);break}case i.IN_TABLE_TEXT:{Z(this,t);break}case i.IN_TEMPLATE:{Vt(this,t);break}case i.AFTER_BODY:case i.IN_FRAMESET:case i.AFTER_FRAMESET:case i.AFTER_AFTER_BODY:case i.AFTER_AFTER_FRAMESET:{Fe(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===n.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case i.IN_HEAD:case i.IN_HEAD_NO_SCRIPT:case i.AFTER_HEAD:case i.TEXT:case i.IN_COLUMN_GROUP:case i.IN_SELECT:case i.IN_SELECT_IN_TABLE:case i.IN_FRAMESET:case i.AFTER_FRAMESET:{this._insertCharacters(t);break}case i.IN_BODY:case i.IN_CAPTION:case i.IN_CELL:case i.IN_TEMPLATE:case i.AFTER_BODY:case i.AFTER_AFTER_BODY:case i.AFTER_AFTER_FRAMESET:{Ut(this,t);break}case i.IN_TABLE:case i.IN_TABLE_BODY:case i.IN_ROW:{Re(this,t);break}case i.IN_TABLE_TEXT:{Qt(this,t);break}}}}function Da(e,t){let a=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return a?e.openElements.contains(a.element)?e.openElements.hasInScope(t.tagID)||(a=null):(e.activeFormattingElements.removeEntry(a),a=null):vt(e,t),a}function Pa(e,t){let a=null,s=e.openElements.stackTop;for(;s>=0;s--){const c=e.openElements.items[s];if(c===t.element)break;e._isSpecialElement(c,e.openElements.tagIDs[s])&&(a=c)}return a||(e.openElements.shortenToLength(s<0?0:s),e.activeFormattingElements.removeEntry(t)),a}function Ma(e,t,a){let s=t,c=e.openElements.getCommonAncestor(t);for(let l=0,h=c;h!==a;l++,h=c){c=e.openElements.getCommonAncestor(h);const m=e.activeFormattingElements.getElementEntry(h),_=m&&l>=Sa;!m||_?(_&&e.activeFormattingElements.removeEntry(m),e.openElements.remove(h)):(h=xa(e,m),s===t&&(e.activeFormattingElements.bookmark=m),e.treeAdapter.detachNode(s),e.treeAdapter.appendChild(h,s),s=h)}return s}function xa(e,t){const a=e.treeAdapter.getNamespaceURI(t.element),s=e.treeAdapter.createElement(t.token.tagName,a,t.token.attrs);return e.openElements.replace(t.element,s),t.element=s,s}function ka(e,t,a){const s=e.treeAdapter.getTagName(t),c=j(s);if(e._isElementCausesFosterParenting(c))e._fosterParentElement(a);else{const l=e.treeAdapter.getNamespaceURI(t);c===u.TEMPLATE&&l===E.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,a)}}function Ba(e,t,a){const s=e.treeAdapter.getNamespaceURI(a.element),{token:c}=a,l=e.treeAdapter.createElement(c.tagName,s,c.attrs);e._adoptNodes(t,l),e.treeAdapter.appendChild(t,l),e.activeFormattingElements.insertElementAfterBookmark(l,c),e.activeFormattingElements.removeEntry(a),e.openElements.remove(a.element),e.openElements.insertAfter(t,l,c.tagID)}function ye(e,t){for(let a=0;a<La;a++){const s=Da(e,t);if(!s)break;const c=Pa(e,s);if(!c)break;e.activeFormattingElements.bookmark=s;const l=Ma(e,c,s.element),h=e.openElements.getCommonAncestor(s.element);e.treeAdapter.detachNode(l),h&&ka(e,h,l),Ba(e,c,s)}}function Me(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Ha(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Ua(e,t){e._appendCommentNode(t,e.document)}function Fe(e,t){if(e.stopped=!0,t.location){const a=e.fragmentContext?0:2;for(let s=e.openElements.stackTop;s>=a;s--)e._setEndLocation(e.openElements.items[s],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const s=e.openElements.items[0],c=e.treeAdapter.getNodeSourceCodeLocation(s);if(c&&!c.endTag&&(e._setEndLocation(s,t),e.openElements.stackTop>=1)){const l=e.openElements.items[1],h=e.treeAdapter.getNodeSourceCodeLocation(l);h&&!h.endTag&&e._setEndLocation(l,t)}}}}function ya(e,t){e._setDocumentType(t);const a=t.forceQuirks?P.QUIRKS:ha(t);Ea(t)||e._err(t,d.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,a),e.insertionMode=i.BEFORE_HTML}function $(e,t){e._err(t,d.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,P.QUIRKS),e.insertionMode=i.BEFORE_HTML,e._processToken(t)}function Fa(e,t){t.tagID===u.HTML?(e._insertElement(t,E.HTML),e.insertionMode=i.BEFORE_HEAD):ue(e,t)}function wa(e,t){const a=t.tagID;(a===u.HTML||a===u.HEAD||a===u.BODY||a===u.BR)&&ue(e,t)}function ue(e,t){e._insertFakeRootElement(),e.insertionMode=i.BEFORE_HEAD,e._processToken(t)}function va(e,t){switch(t.tagID){case u.HTML:{S(e,t);break}case u.HEAD:{e._insertElement(t,E.HTML),e.headElement=e.openElements.current,e.insertionMode=i.IN_HEAD;break}default:ae(e,t)}}function Ya(e,t){const a=t.tagID;a===u.HEAD||a===u.BODY||a===u.HTML||a===u.BR?ae(e,t):e._err(t,d.endTagWithoutMatchingOpenElement)}function ae(e,t){e._insertFakeElement(o.HEAD,u.HEAD),e.headElement=e.openElements.current,e.insertionMode=i.IN_HEAD,e._processToken(t)}function k(e,t){switch(t.tagID){case u.HTML:{S(e,t);break}case u.BASE:case u.BASEFONT:case u.BGSOUND:case u.LINK:case u.META:{e._appendElement(t,E.HTML),t.ackSelfClosing=!0;break}case u.TITLE:{e._switchToTextParsing(t,I.RCDATA);break}case u.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,I.RAWTEXT):(e._insertElement(t,E.HTML),e.insertionMode=i.IN_HEAD_NO_SCRIPT);break}case u.NOFRAMES:case u.STYLE:{e._switchToTextParsing(t,I.RAWTEXT);break}case u.SCRIPT:{e._switchToTextParsing(t,I.SCRIPT_DATA);break}case u.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=i.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(i.IN_TEMPLATE);break}case u.HEAD:{e._err(t,d.misplacedStartTagForHeadElement);break}default:se(e,t)}}function Qa(e,t){switch(t.tagID){case u.HEAD:{e.openElements.pop(),e.insertionMode=i.AFTER_HEAD;break}case u.BODY:case u.BR:case u.HTML:{se(e,t);break}case u.TEMPLATE:{W(e,t);break}default:e._err(t,d.endTagWithoutMatchingOpenElement)}}function W(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==u.TEMPLATE&&e._err(t,d.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(u.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,d.endTagWithoutMatchingOpenElement)}function se(e,t){e.openElements.pop(),e.insertionMode=i.AFTER_HEAD,e._processToken(t)}function Wa(e,t){switch(t.tagID){case u.HTML:{S(e,t);break}case u.BASEFONT:case u.BGSOUND:case u.HEAD:case u.LINK:case u.META:case u.NOFRAMES:case u.STYLE:{k(e,t);break}case u.NOSCRIPT:{e._err(t,d.nestedNoscriptInHead);break}default:ne(e,t)}}function qa(e,t){switch(t.tagID){case u.NOSCRIPT:{e.openElements.pop(),e.insertionMode=i.IN_HEAD;break}case u.BR:{ne(e,t);break}default:e._err(t,d.endTagWithoutMatchingOpenElement)}}function ne(e,t){const a=t.type===A.EOF?d.openElementsLeftAfterEof:d.disallowedContentInNoscriptInHead;e._err(t,a),e.openElements.pop(),e.insertionMode=i.IN_HEAD,e._processToken(t)}function Ga(e,t){switch(t.tagID){case u.HTML:{S(e,t);break}case u.BODY:{e._insertElement(t,E.HTML),e.framesetOk=!1,e.insertionMode=i.IN_BODY;break}case u.FRAMESET:{e._insertElement(t,E.HTML),e.insertionMode=i.IN_FRAMESET;break}case u.BASE:case u.BASEFONT:case u.BGSOUND:case u.LINK:case u.META:case u.NOFRAMES:case u.SCRIPT:case u.STYLE:case u.TEMPLATE:case u.TITLE:{e._err(t,d.abandonedHeadElementChild),e.openElements.push(e.headElement,u.HEAD),k(e,t),e.openElements.remove(e.headElement);break}case u.HEAD:{e._err(t,d.misplacedStartTagForHeadElement);break}default:re(e,t)}}function Xa(e,t){switch(t.tagID){case u.BODY:case u.HTML:case u.BR:{re(e,t);break}case u.TEMPLATE:{W(e,t);break}default:e._err(t,d.endTagWithoutMatchingOpenElement)}}function re(e,t){e._insertFakeElement(o.BODY,u.BODY),e.insertionMode=i.IN_BODY,be(e,t)}function be(e,t){switch(t.type){case A.CHARACTER:{yt(e,t);break}case A.WHITESPACE_CHARACTER:{Ut(e,t);break}case A.COMMENT:{Me(e,t);break}case A.START_TAG:{S(e,t);break}case A.END_TAG:{Ae(e,t);break}case A.EOF:{Yt(e,t);break}}}function Ut(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function yt(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Ka(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Va(e,t){const a=e.openElements.tryPeekProperlyNestedBodyElement();a&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(a,t.attrs))}function za(e,t){const a=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&a&&(e.treeAdapter.detachNode(a),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,E.HTML),e.insertionMode=i.IN_FRAMESET)}function ja(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,E.HTML)}function Ja(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),Rt(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,E.HTML)}function $a(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,E.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Za(e,t){const a=e.openElements.tmplCount>0;(!e.formElement||a)&&(e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,E.HTML),a||(e.formElement=e.openElements.current))}function es(e,t){e.framesetOk=!1;const a=t.tagID;for(let s=e.openElements.stackTop;s>=0;s--){const c=e.openElements.tagIDs[s];if(a===u.LI&&c===u.LI||(a===u.DD||a===u.DT)&&(c===u.DD||c===u.DT)){e.openElements.generateImpliedEndTagsWithExclusion(c),e.openElements.popUntilTagNamePopped(c);break}if(c!==u.ADDRESS&&c!==u.DIV&&c!==u.P&&e._isSpecialElement(e.openElements.items[s],c))break}e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,E.HTML)}function ts(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,E.HTML),e.tokenizer.state=I.PLAINTEXT}function us(e,t){e.openElements.hasInScope(u.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,E.HTML),e.framesetOk=!1}function as(e,t){const a=e.activeFormattingElements.getElementEntryInScopeWithTagName(o.A);a&&(ye(e,t),e.openElements.remove(a.element),e.activeFormattingElements.removeEntry(a)),e._reconstructActiveFormattingElements(),e._insertElement(t,E.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ss(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,E.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ns(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(u.NOBR)&&(ye(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,E.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function rs(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,E.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function is(e,t){e.treeAdapter.getDocumentMode(e.document)!==P.QUIRKS&&e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,E.HTML),e.framesetOk=!1,e.insertionMode=i.IN_TABLE}function Ft(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,E.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function wt(e){const t=Nt(e,F.TYPE);return t!=null&&t.toLowerCase()===Ra}function cs(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,E.HTML),wt(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function os(e,t){e._appendElement(t,E.HTML),t.ackSelfClosing=!0}function ls(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._appendElement(t,E.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function ds(e,t){t.tagName=o.IMG,t.tagID=u.IMG,Ft(e,t)}function Es(e,t){e._insertElement(t,E.HTML),e.skipNextNewLine=!0,e.tokenizer.state=I.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=i.TEXT}function hs(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,I.RAWTEXT)}function Ts(e,t){e.framesetOk=!1,e._switchToTextParsing(t,I.RAWTEXT)}function et(e,t){e._switchToTextParsing(t,I.RAWTEXT)}function fs(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,E.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===i.IN_TABLE||e.insertionMode===i.IN_CAPTION||e.insertionMode===i.IN_TABLE_BODY||e.insertionMode===i.IN_ROW||e.insertionMode===i.IN_CELL?i.IN_SELECT_IN_TABLE:i.IN_SELECT}function ms(e,t){e.openElements.currentTagId===u.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,E.HTML)}function _s(e,t){e.openElements.hasInScope(u.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,E.HTML)}function bs(e,t){e.openElements.hasInScope(u.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(u.RTC),e._insertElement(t,E.HTML)}function As(e,t){e._reconstructActiveFormattingElements(),kt(t),Ue(t),t.selfClosing?e._appendElement(t,E.MATHML):e._insertElement(t,E.MATHML),t.ackSelfClosing=!0}function Cs(e,t){e._reconstructActiveFormattingElements(),Bt(t),Ue(t),t.selfClosing?e._appendElement(t,E.SVG):e._insertElement(t,E.SVG),t.ackSelfClosing=!0}function tt(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,E.HTML)}function S(e,t){switch(t.tagID){case u.I:case u.S:case u.B:case u.U:case u.EM:case u.TT:case u.BIG:case u.CODE:case u.FONT:case u.SMALL:case u.STRIKE:case u.STRONG:{ss(e,t);break}case u.A:{as(e,t);break}case u.H1:case u.H2:case u.H3:case u.H4:case u.H5:case u.H6:{Ja(e,t);break}case u.P:case u.DL:case u.OL:case u.UL:case u.DIV:case u.DIR:case u.NAV:case u.MAIN:case u.MENU:case u.ASIDE:case u.CENTER:case u.FIGURE:case u.FOOTER:case u.HEADER:case u.HGROUP:case u.DIALOG:case u.DETAILS:case u.ADDRESS:case u.ARTICLE:case u.SECTION:case u.SUMMARY:case u.FIELDSET:case u.BLOCKQUOTE:case u.FIGCAPTION:{ja(e,t);break}case u.LI:case u.DD:case u.DT:{es(e,t);break}case u.BR:case u.IMG:case u.WBR:case u.AREA:case u.EMBED:case u.KEYGEN:{Ft(e,t);break}case u.HR:{ls(e,t);break}case u.RB:case u.RTC:{_s(e,t);break}case u.RT:case u.RP:{bs(e,t);break}case u.PRE:case u.LISTING:{$a(e,t);break}case u.XMP:{hs(e,t);break}case u.SVG:{Cs(e,t);break}case u.HTML:{Ka(e,t);break}case u.BASE:case u.LINK:case u.META:case u.STYLE:case u.TITLE:case u.SCRIPT:case u.BGSOUND:case u.BASEFONT:case u.TEMPLATE:{k(e,t);break}case u.BODY:{Va(e,t);break}case u.FORM:{Za(e,t);break}case u.NOBR:{ns(e,t);break}case u.MATH:{As(e,t);break}case u.TABLE:{is(e,t);break}case u.INPUT:{cs(e,t);break}case u.PARAM:case u.TRACK:case u.SOURCE:{os(e,t);break}case u.IMAGE:{ds(e,t);break}case u.BUTTON:{us(e,t);break}case u.APPLET:case u.OBJECT:case u.MARQUEE:{rs(e,t);break}case u.IFRAME:{Ts(e,t);break}case u.SELECT:{fs(e,t);break}case u.OPTION:case u.OPTGROUP:{ms(e,t);break}case u.NOEMBED:{et(e,t);break}case u.FRAMESET:{za(e,t);break}case u.TEXTAREA:{Es(e,t);break}case u.NOSCRIPT:{e.options.scriptingEnabled?et(e,t):tt(e,t);break}case u.PLAINTEXT:{ts(e,t);break}case u.COL:case u.TH:case u.TD:case u.TR:case u.HEAD:case u.FRAME:case u.TBODY:case u.TFOOT:case u.THEAD:case u.CAPTION:case u.COLGROUP:break;default:tt(e,t)}}function ps(e,t){if(e.openElements.hasInScope(u.BODY)&&(e.insertionMode=i.AFTER_BODY,e.options.sourceCodeLocationInfo)){const a=e.openElements.tryPeekProperlyNestedBodyElement();a&&e._setEndLocation(a,t)}}function Ns(e,t){e.openElements.hasInScope(u.BODY)&&(e.insertionMode=i.AFTER_BODY,zt(e,t))}function Is(e,t){const a=t.tagID;e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a))}function gs(e){const t=e.openElements.tmplCount>0,{formElement:a}=e;t||(e.formElement=null),(a||t)&&e.openElements.hasInScope(u.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(u.FORM):a&&e.openElements.remove(a))}function Rs(e){e.openElements.hasInButtonScope(u.P)||e._insertFakeElement(o.P,u.P),e._closePElement()}function Ls(e){e.openElements.hasInListItemScope(u.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(u.LI),e.openElements.popUntilTagNamePopped(u.LI))}function Ss(e,t){const a=t.tagID;e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a))}function Os(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Ds(e,t){const a=t.tagID;e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a),e.activeFormattingElements.clearToLastMarker())}function Ps(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(o.BR,u.BR),e.openElements.pop(),e.framesetOk=!1}function vt(e,t){const a=t.tagName,s=t.tagID;for(let c=e.openElements.stackTop;c>0;c--){const l=e.openElements.items[c],h=e.openElements.tagIDs[c];if(s===h&&(s!==u.UNKNOWN||e.treeAdapter.getTagName(l)===a)){e.openElements.generateImpliedEndTagsWithExclusion(s),e.openElements.stackTop>=c&&e.openElements.shortenToLength(c);break}if(e._isSpecialElement(l,h))break}}function Ae(e,t){switch(t.tagID){case u.A:case u.B:case u.I:case u.S:case u.U:case u.EM:case u.TT:case u.BIG:case u.CODE:case u.FONT:case u.NOBR:case u.SMALL:case u.STRIKE:case u.STRONG:{ye(e,t);break}case u.P:{Rs(e);break}case u.DL:case u.UL:case u.OL:case u.DIR:case u.DIV:case u.NAV:case u.PRE:case u.MAIN:case u.MENU:case u.ASIDE:case u.BUTTON:case u.CENTER:case u.FIGURE:case u.FOOTER:case u.HEADER:case u.HGROUP:case u.DIALOG:case u.ADDRESS:case u.ARTICLE:case u.DETAILS:case u.SECTION:case u.SUMMARY:case u.LISTING:case u.FIELDSET:case u.BLOCKQUOTE:case u.FIGCAPTION:{Is(e,t);break}case u.LI:{Ls(e);break}case u.DD:case u.DT:{Ss(e,t);break}case u.H1:case u.H2:case u.H3:case u.H4:case u.H5:case u.H6:{Os(e);break}case u.BR:{Ps(e);break}case u.BODY:{ps(e,t);break}case u.HTML:{Ns(e,t);break}case u.FORM:{gs(e);break}case u.APPLET:case u.OBJECT:case u.MARQUEE:{Ds(e,t);break}case u.TEMPLATE:{W(e,t);break}default:vt(e,t)}}function Yt(e,t){e.tmplInsertionModeStack.length>0?Vt(e,t):Fe(e,t)}function Ms(e,t){var a;t.tagID===u.SCRIPT&&((a=e.scriptHandler)===null||a===void 0||a.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function xs(e,t){e._err(t,d.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Re(e,t){if(Ht.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=i.IN_TABLE_TEXT,t.type){case A.CHARACTER:{Wt(e,t);break}case A.WHITESPACE_CHARACTER:{Qt(e,t);break}}else oe(e,t)}function ks(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,E.HTML),e.insertionMode=i.IN_CAPTION}function Bs(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,E.HTML),e.insertionMode=i.IN_COLUMN_GROUP}function Hs(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(o.COLGROUP,u.COLGROUP),e.insertionMode=i.IN_COLUMN_GROUP,we(e,t)}function Us(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,E.HTML),e.insertionMode=i.IN_TABLE_BODY}function ys(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(o.TBODY,u.TBODY),e.insertionMode=i.IN_TABLE_BODY,Ce(e,t)}function Fs(e,t){e.openElements.hasInTableScope(u.TABLE)&&(e.openElements.popUntilTagNamePopped(u.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function ws(e,t){wt(t)?e._appendElement(t,E.HTML):oe(e,t),t.ackSelfClosing=!0}function vs(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,E.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function K(e,t){switch(t.tagID){case u.TD:case u.TH:case u.TR:{ys(e,t);break}case u.STYLE:case u.SCRIPT:case u.TEMPLATE:{k(e,t);break}case u.COL:{Hs(e,t);break}case u.FORM:{vs(e,t);break}case u.TABLE:{Fs(e,t);break}case u.TBODY:case u.TFOOT:case u.THEAD:{Us(e,t);break}case u.INPUT:{ws(e,t);break}case u.CAPTION:{ks(e,t);break}case u.COLGROUP:{Bs(e,t);break}default:oe(e,t)}}function ie(e,t){switch(t.tagID){case u.TABLE:{e.openElements.hasInTableScope(u.TABLE)&&(e.openElements.popUntilTagNamePopped(u.TABLE),e._resetInsertionMode());break}case u.TEMPLATE:{W(e,t);break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:case u.TBODY:case u.TD:case u.TFOOT:case u.TH:case u.THEAD:case u.TR:break;default:oe(e,t)}}function oe(e,t){const a=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,be(e,t),e.fosterParentingEnabled=a}function Qt(e,t){e.pendingCharacterTokens.push(t)}function Wt(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Z(e,t){let a=0;if(e.hasNonWhitespacePendingCharacterToken)for(;a<e.pendingCharacterTokens.length;a++)oe(e,e.pendingCharacterTokens[a]);else for(;a<e.pendingCharacterTokens.length;a++)e._insertCharacters(e.pendingCharacterTokens[a]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const qt=new Set([u.CAPTION,u.COL,u.COLGROUP,u.TBODY,u.TD,u.TFOOT,u.TH,u.THEAD,u.TR]);function Ys(e,t){const a=t.tagID;qt.has(a)?e.openElements.hasInTableScope(u.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=i.IN_TABLE,K(e,t)):S(e,t)}function Qs(e,t){const a=t.tagID;switch(a){case u.CAPTION:case u.TABLE:{e.openElements.hasInTableScope(u.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=i.IN_TABLE,a===u.TABLE&&ie(e,t));break}case u.BODY:case u.COL:case u.COLGROUP:case u.HTML:case u.TBODY:case u.TD:case u.TFOOT:case u.TH:case u.THEAD:case u.TR:break;default:Ae(e,t)}}function we(e,t){switch(t.tagID){case u.HTML:{S(e,t);break}case u.COL:{e._appendElement(t,E.HTML),t.ackSelfClosing=!0;break}case u.TEMPLATE:{k(e,t);break}default:me(e,t)}}function Ws(e,t){switch(t.tagID){case u.COLGROUP:{e.openElements.currentTagId===u.COLGROUP&&(e.openElements.pop(),e.insertionMode=i.IN_TABLE);break}case u.TEMPLATE:{W(e,t);break}case u.COL:break;default:me(e,t)}}function me(e,t){e.openElements.currentTagId===u.COLGROUP&&(e.openElements.pop(),e.insertionMode=i.IN_TABLE,e._processToken(t))}function Ce(e,t){switch(t.tagID){case u.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,E.HTML),e.insertionMode=i.IN_ROW;break}case u.TH:case u.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(o.TR,u.TR),e.insertionMode=i.IN_ROW,pe(e,t);break}case u.CAPTION:case u.COL:case u.COLGROUP:case u.TBODY:case u.TFOOT:case u.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=i.IN_TABLE,K(e,t));break}default:K(e,t)}}function xe(e,t){const a=t.tagID;switch(t.tagID){case u.TBODY:case u.TFOOT:case u.THEAD:{e.openElements.hasInTableScope(a)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=i.IN_TABLE);break}case u.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=i.IN_TABLE,ie(e,t));break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:case u.TD:case u.TH:case u.TR:break;default:ie(e,t)}}function pe(e,t){switch(t.tagID){case u.TH:case u.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,E.HTML),e.insertionMode=i.IN_CELL,e.activeFormattingElements.insertMarker();break}case u.CAPTION:case u.COL:case u.COLGROUP:case u.TBODY:case u.TFOOT:case u.THEAD:case u.TR:{e.openElements.hasInTableScope(u.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=i.IN_TABLE_BODY,Ce(e,t));break}default:K(e,t)}}function Gt(e,t){switch(t.tagID){case u.TR:{e.openElements.hasInTableScope(u.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=i.IN_TABLE_BODY);break}case u.TABLE:{e.openElements.hasInTableScope(u.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=i.IN_TABLE_BODY,xe(e,t));break}case u.TBODY:case u.TFOOT:case u.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(u.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=i.IN_TABLE_BODY,xe(e,t));break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:case u.TD:case u.TH:break;default:ie(e,t)}}function qs(e,t){const a=t.tagID;qt.has(a)?(e.openElements.hasInTableScope(u.TD)||e.openElements.hasInTableScope(u.TH))&&(e._closeTableCell(),pe(e,t)):S(e,t)}function Gs(e,t){const a=t.tagID;switch(a){case u.TD:case u.TH:{e.openElements.hasInTableScope(a)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=i.IN_ROW);break}case u.TABLE:case u.TBODY:case u.TFOOT:case u.THEAD:case u.TR:{e.openElements.hasInTableScope(a)&&(e._closeTableCell(),Gt(e,t));break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:break;default:Ae(e,t)}}function Xt(e,t){switch(t.tagID){case u.HTML:{S(e,t);break}case u.OPTION:{e.openElements.currentTagId===u.OPTION&&e.openElements.pop(),e._insertElement(t,E.HTML);break}case u.OPTGROUP:{e.openElements.currentTagId===u.OPTION&&e.openElements.pop(),e.openElements.currentTagId===u.OPTGROUP&&e.openElements.pop(),e._insertElement(t,E.HTML);break}case u.INPUT:case u.KEYGEN:case u.TEXTAREA:case u.SELECT:{e.openElements.hasInSelectScope(u.SELECT)&&(e.openElements.popUntilTagNamePopped(u.SELECT),e._resetInsertionMode(),t.tagID!==u.SELECT&&e._processStartTag(t));break}case u.SCRIPT:case u.TEMPLATE:{k(e,t);break}}}function Kt(e,t){switch(t.tagID){case u.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===u.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===u.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===u.OPTGROUP&&e.openElements.pop();break}case u.OPTION:{e.openElements.currentTagId===u.OPTION&&e.openElements.pop();break}case u.SELECT:{e.openElements.hasInSelectScope(u.SELECT)&&(e.openElements.popUntilTagNamePopped(u.SELECT),e._resetInsertionMode());break}case u.TEMPLATE:{W(e,t);break}}}function Xs(e,t){const a=t.tagID;a===u.CAPTION||a===u.TABLE||a===u.TBODY||a===u.TFOOT||a===u.THEAD||a===u.TR||a===u.TD||a===u.TH?(e.openElements.popUntilTagNamePopped(u.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Xt(e,t)}function Ks(e,t){const a=t.tagID;a===u.CAPTION||a===u.TABLE||a===u.TBODY||a===u.TFOOT||a===u.THEAD||a===u.TR||a===u.TD||a===u.TH?e.openElements.hasInTableScope(a)&&(e.openElements.popUntilTagNamePopped(u.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Kt(e,t)}function Vs(e,t){switch(t.tagID){case u.BASE:case u.BASEFONT:case u.BGSOUND:case u.LINK:case u.META:case u.NOFRAMES:case u.SCRIPT:case u.STYLE:case u.TEMPLATE:case u.TITLE:{k(e,t);break}case u.CAPTION:case u.COLGROUP:case u.TBODY:case u.TFOOT:case u.THEAD:{e.tmplInsertionModeStack[0]=i.IN_TABLE,e.insertionMode=i.IN_TABLE,K(e,t);break}case u.COL:{e.tmplInsertionModeStack[0]=i.IN_COLUMN_GROUP,e.insertionMode=i.IN_COLUMN_GROUP,we(e,t);break}case u.TR:{e.tmplInsertionModeStack[0]=i.IN_TABLE_BODY,e.insertionMode=i.IN_TABLE_BODY,Ce(e,t);break}case u.TD:case u.TH:{e.tmplInsertionModeStack[0]=i.IN_ROW,e.insertionMode=i.IN_ROW,pe(e,t);break}default:e.tmplInsertionModeStack[0]=i.IN_BODY,e.insertionMode=i.IN_BODY,S(e,t)}}function zs(e,t){t.tagID===u.TEMPLATE&&W(e,t)}function Vt(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(u.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Fe(e,t)}function js(e,t){t.tagID===u.HTML?S(e,t):_e(e,t)}function zt(e,t){var a;if(t.tagID===u.HTML){if(e.fragmentContext||(e.insertionMode=i.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===u.HTML){e._setEndLocation(e.openElements.items[0],t);const s=e.openElements.items[1];s&&!(!((a=e.treeAdapter.getNodeSourceCodeLocation(s))===null||a===void 0)&&a.endTag)&&e._setEndLocation(s,t)}}else _e(e,t)}function _e(e,t){e.insertionMode=i.IN_BODY,be(e,t)}function Js(e,t){switch(t.tagID){case u.HTML:{S(e,t);break}case u.FRAMESET:{e._insertElement(t,E.HTML);break}case u.FRAME:{e._appendElement(t,E.HTML),t.ackSelfClosing=!0;break}case u.NOFRAMES:{k(e,t);break}}}function $s(e,t){t.tagID===u.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==u.FRAMESET&&(e.insertionMode=i.AFTER_FRAMESET))}function Zs(e,t){switch(t.tagID){case u.HTML:{S(e,t);break}case u.NOFRAMES:{k(e,t);break}}}function en(e,t){t.tagID===u.HTML&&(e.insertionMode=i.AFTER_AFTER_FRAMESET)}function tn(e,t){t.tagID===u.HTML?S(e,t):fe(e,t)}function fe(e,t){e.insertionMode=i.IN_BODY,be(e,t)}function un(e,t){switch(t.tagID){case u.HTML:{S(e,t);break}case u.NOFRAMES:{k(e,t);break}}}function an(e,t){t.chars=N,e._insertCharacters(t)}function sn(e,t){e._insertCharacters(t),e.framesetOk=!1}function jt(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==E.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function nn(e,t){if(Ca(t))jt(e),e._startTagOutsideForeignContent(t);else{const a=e._getAdjustedCurrentElement(),s=e.treeAdapter.getNamespaceURI(a);s===E.MATHML?kt(t):s===E.SVG&&(pa(t),Bt(t)),Ue(t),t.selfClosing?e._appendElement(t,s):e._insertElement(t,s),t.ackSelfClosing=!0}}function rn(e,t){if(t.tagID===u.P||t.tagID===u.BR){jt(e),e._endTagOutsideForeignContent(t);return}for(let a=e.openElements.stackTop;a>0;a--){const s=e.openElements.items[a];if(e.treeAdapter.getNamespaceURI(s)===E.HTML){e._endTagOutsideForeignContent(t);break}const c=e.treeAdapter.getTagName(s);if(c.toLowerCase()===t.tagName){t.tagName=c,e.openElements.shortenToLength(a);break}}}o.AREA,o.BASE,o.BASEFONT,o.BGSOUND,o.BR,o.COL,o.EMBED,o.FRAME,o.HR,o.IMG,o.INPUT,o.KEYGEN,o.LINK,o.META,o.PARAM,o.SOURCE,o.TRACK,o.WBR;const cn=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,on=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),ut={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Jt(e,t){const a=An(e),s=rt("type",{handlers:{root:ln,element:dn,text:En,comment:Zt,doctype:hn,raw:fn},unknown:mn}),c={parser:a?new Ze(ut):Ze.getFragmentParser(void 0,ut),handle(m){s(m,c)},stitches:!1,options:t||{}};s(e,c),J(c,Y());const l=a?c.parser.document:c.parser.getFragment(),h=ou(l,{file:c.options.file});return c.stitches&&su(h,"comment",function(m,_,C){const B=m;if(B.value.stitch&&C&&_!==void 0){const de=C.children;return de[_]=B.value.stitch,_}}),h.type==="root"&&h.children.length===1&&h.children[0].type===e.type?h.children[0]:h}function $t(e,t){let a=-1;if(e)for(;++a<e.length;)t.handle(e[a])}function ln(e,t){$t(e.children,t)}function dn(e,t){_n(e,t),$t(e.children,t),bn(e,t)}function En(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const a={type:A.CHARACTER,chars:e.value,location:le(e)};J(t,Y(e)),t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken)}function hn(e,t){const a={type:A.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:le(e)};J(t,Y(e)),t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken)}function Tn(e,t){t.stitches=!0;const a=Cn(e);if("children"in e&&"children"in a){const s=Jt({type:"root",children:e.children},t.options);a.children=s.children}Zt({type:"comment",value:{stitch:a}},t)}function Zt(e,t){const a=e.value,s={type:A.COMMENT,data:a,location:le(e)};J(t,Y(e)),t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken)}function fn(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,eu(t,Y(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(cn,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const a=t.parser.tokenizer._consume();t.parser.tokenizer._callState(a)}}function mn(e,t){const a=e;if(t.options.passThrough&&t.options.passThrough.includes(a.type))Tn(a,t);else{let s="";throw on.has(a.type)&&(s=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+a.type+"` node"+s)}}function J(e,t){eu(e,t);const a=e.parser.tokenizer.currentCharacterToken;a&&a.location&&(a.location.endLine=e.parser.tokenizer.preprocessor.line,a.location.endCol=e.parser.tokenizer.preprocessor.col+1,a.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=a,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=I.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function eu(e,t){if(t&&t.offset!==void 0){const a={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=a}}function _n(e,t){const a=e.tagName.toLowerCase();if(t.parser.tokenizer.state===I.PLAINTEXT)return;J(t,Y(e));const s=t.parser.openElements.current;let c="namespaceURI"in s?s.namespaceURI:v.html;c===v.html&&a==="svg"&&(c=v.svg);const l=gu({...e,children:[]},{space:c===v.svg?"svg":"html"}),h={type:A.START_TAG,tagName:a,tagID:j(a),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in l?l.attrs:[],location:le(e)};t.parser.currentToken=h,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=a}function bn(e,t){const a=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&xu.includes(a)||t.parser.tokenizer.state===I.PLAINTEXT)return;J(t,nt(e));const s={type:A.END_TAG,tagName:a,tagID:j(a),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:le(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),a===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===I.RCDATA||t.parser.tokenizer.state===I.RAWTEXT||t.parser.tokenizer.state===I.SCRIPT_DATA)&&(t.parser.tokenizer.state=I.DATA)}function An(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function le(e){const t=Y(e)||{line:void 0,column:void 0,offset:void 0},a=nt(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:a.line,endCol:a.column,endOffset:a.offset}}function Cn(e){return"children"in e?ve({...e,children:[]}):ve(e)}function gn(e){return function(t,a){return Jt(t,{...e,file:a})}}export{gn as default};
|