@jxsuite/studio 5.7.0 → 6.0.0

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.
Files changed (74) hide show
  1. package/dist/chunks/{cf-account-picker-882a7ecm.js → cf-account-picker-bb2yq946.js} +2 -2
  2. package/dist/chunks/content-source-t0q184js.js +4 -0
  3. package/dist/chunks/{convert-to-repeater-grfep2w8.js → convert-to-repeater-vqkt7s3s.js} +2 -2
  4. package/dist/chunks/entry-commands-fxzgcc4k.js +4 -0
  5. package/dist/chunks/{extension-sections-dp8endhx.js → extension-sections-8beq9ac3.js} +2 -2
  6. package/dist/chunks/file-ops-2n77759h.js +4 -0
  7. package/dist/chunks/files-fjy7zpxt.js +4 -0
  8. package/dist/chunks/{format-host-e2pjvd25.js → format-host-wj3mf3n8.js} +2 -2
  9. package/dist/chunks/fs-events-7kcgn4e9.js +4 -0
  10. package/dist/chunks/git-panel-7z2mpt2d.js +4 -0
  11. package/dist/chunks/{grid-view-5amhg604.js → grid-view-ca10def6.js} +2 -2
  12. package/dist/chunks/{iframe-host-t819mcg5.js → iframe-host-a0zjd6xp.js} +2 -2
  13. package/dist/chunks/{layers-4bsr82wz.js → layers-p677nrh5.js} +2 -2
  14. package/dist/chunks/layers-panel-y4w1dq90.js +4 -0
  15. package/dist/chunks/media-picker-xg7yjpz9.js +4 -0
  16. package/dist/chunks/menu-fpekzj6w.js +4 -0
  17. package/dist/chunks/publish-panel-xtbfgg2r.js +4 -0
  18. package/dist/chunks/quick-search-d3a6m7j3.js +4 -0
  19. package/dist/chunks/right-panel-31vbk5xp.js +4 -0
  20. package/dist/chunks/studio-1q6amtph.js +5 -0
  21. package/dist/chunks/{studio-56z7evx4.js → studio-3ck2a5c4.js} +2 -2
  22. package/dist/chunks/{studio-gh97gngt.js → studio-4fde4a0x.js} +2 -2
  23. package/dist/chunks/{studio-gfn1kpxj.js → studio-4jj9gme2.js} +3 -3
  24. package/dist/chunks/{studio-zpnk016a.js → studio-4m50vh74.js} +3 -3
  25. package/dist/chunks/{studio-dkn3x3hz.js → studio-4r0sjtx8.js} +2 -2
  26. package/dist/chunks/{studio-a7xqhc3n.js → studio-5d7wfmnp.js} +2 -2
  27. package/dist/chunks/{studio-ceb34dxj.js → studio-5gs9th4b.js} +2 -2
  28. package/dist/chunks/{studio-j6gnhvaa.js → studio-5vy2wfm5.js} +2 -2
  29. package/dist/chunks/{studio-spf2skgc.js → studio-7qvs7v0m.js} +2 -2
  30. package/dist/chunks/{studio-e6re3rk1.js → studio-84rtc120.js} +2 -2
  31. package/dist/chunks/{studio-nt06yybj.js → studio-8xcwewjq.js} +2 -2
  32. package/dist/chunks/{studio-cxt150pj.js → studio-aekhcdzw.js} +2 -2
  33. package/dist/chunks/{studio-222rqyyc.js → studio-bftp4n4b.js} +2 -2
  34. package/dist/chunks/{studio-xta2vxp6.js → studio-capk0583.js} +2 -2
  35. package/dist/chunks/{studio-wma2c6g8.js → studio-cbr9czkn.js} +2 -2
  36. package/dist/chunks/{studio-c9d3pxf7.js → studio-chdmwwzw.js} +2 -2
  37. package/dist/chunks/{studio-0k9mvpgj.js → studio-cp1gbff9.js} +2 -2
  38. package/dist/chunks/{studio-1x8x26k3.js → studio-cqmtbg2p.js} +2 -2
  39. package/dist/chunks/{studio-c6w3tq7t.js → studio-e47215hh.js} +2 -2
  40. package/dist/chunks/{studio-frb0qbf7.js → studio-fbx6twps.js} +2 -2
  41. package/dist/chunks/{studio-xk0z6msk.js → studio-fthwn4kf.js} +2 -2
  42. package/dist/chunks/{studio-0scebvb9.js → studio-g8dsj3d2.js} +2 -2
  43. package/dist/chunks/{studio-54g077x3.js → studio-ge5fqjth.js} +2 -2
  44. package/dist/chunks/{studio-p7c1agz0.js → studio-gjknvzam.js} +3 -3
  45. package/dist/chunks/{studio-mwxgyn9h.js → studio-hnvnfbdv.js} +3 -3
  46. package/dist/chunks/{studio-9mqfamps.js → studio-mk00zd5d.js} +2 -2
  47. package/dist/chunks/{studio-skzanb0k.js → studio-qa73881a.js} +2 -2
  48. package/dist/chunks/{studio-xry7tk3z.js → studio-rmn2dz59.js} +2 -2
  49. package/dist/chunks/{studio-eh0rac07.js → studio-rr4xkv81.js} +2 -2
  50. package/dist/chunks/{studio-f195h2hq.js → studio-tmeq6mjb.js} +2 -2
  51. package/dist/chunks/{studio-cvbkkfqb.js → studio-x5g1xk77.js} +2 -2
  52. package/dist/chunks/{studio-65fhspdd.js → studio-xg1942as.js} +2 -2
  53. package/dist/chunks/{studio-888knnkc.js → studio-xkfs0dp2.js} +2 -2
  54. package/dist/chunks/{studio-xy3tv3az.js → studio-zev8ssp1.js} +3 -3
  55. package/dist/chunks/{studio-tw7rre6s.js → studio-ztvcxm3w.js} +2 -2
  56. package/dist/chunks/{workspace-b69mgm0e.js → workspace-5vmgsagj.js} +2 -2
  57. package/dist/iframe-entry.js +3 -3
  58. package/dist/manifest.json +36 -36
  59. package/dist/studio.js +10 -10
  60. package/package.json +11 -11
  61. package/src/ui/schema-form.ts +6 -2
  62. package/dist/chunks/content-source-37x3vsap.js +0 -4
  63. package/dist/chunks/entry-commands-c5h3nqck.js +0 -4
  64. package/dist/chunks/file-ops-937cvqk6.js +0 -4
  65. package/dist/chunks/files-tznwe1p1.js +0 -4
  66. package/dist/chunks/fs-events-fv64ak3s.js +0 -4
  67. package/dist/chunks/git-panel-gb713ttc.js +0 -4
  68. package/dist/chunks/layers-panel-b6shnaax.js +0 -4
  69. package/dist/chunks/media-picker-ej0kdh1j.js +0 -4
  70. package/dist/chunks/menu-rtxf9chb.js +0 -4
  71. package/dist/chunks/publish-panel-bq36xcmj.js +0 -4
  72. package/dist/chunks/quick-search-zm00h9dh.js +0 -4
  73. package/dist/chunks/right-panel-pq2f71q3.js +0 -4
  74. package/dist/chunks/studio-693nhyky.js +0 -5
@@ -1,6 +1,6 @@
1
- import{tt}from"./studio-sxc0zvpt.js";import{Q,sh,ah,v,k}from"./studio-fqq890ap.js";import{Je,jl}from"./studio-7pgy3xaf.js";import{ha,$d,sv,Ex,Le,LL,dv,uv,IL,Nl,hv,q,Hs,Ji,Vu,VC,gp,mv,ML,pa,Ue,HL,GL,Ao,m,u}from"./studio-cvbkkfqb.js";import{p}from"./studio-y7jehjrp.js";import{pr,y,fs}from"./studio-zpnk016a.js";import{fT,gT,qn}from"./studio-xry7tk3z.js";import{st,Dl,xc}from"./studio-pwqfmt4p.js";import{Ap,ne}from"./studio-0k9mvpgj.js";import{qg,wu,tw,Jh}from"./studio-p7c1agz0.js";import{te}from"./studio-ery42sqr.js";import{Uo,wd,TT,ix,Nb,G1,K1,wc,lm,wC,xC,Wa,Cd,gx}from"./studio-ceb34dxj.js";import{gs}from"./studio-st75kn99.js";import{cc,Nf,G_,Fa}from"./studio-0scebvb9.js";import{rt,zt,T,R,on,Am,Nn,vs,Nm}from"./studio-spf2skgc.js";import{Nt}from"./studio-nt06yybj.js";import{Rb}from"./studio-yr04mv2j.js";import{eb,tb,dE,nb}from"./studio-zd4kayn2.js";import{wb}from"./studio-n78gjfy8.js";import{K,_o,ht,_n,ok,Yo,Nd,Zo,D,Sp,Lc}from"./studio-tp642n5g.js";import{Oe}from"./studio-vavmwshr.js";import{Ot,Hd,$k,qe}from"./studio-nbxqcgvf.js";import{$i,me}from"./studio-0bbxhhce.js";var Aa={$schema:"https://jxsuite.com/schema/v1",$id:"StudioPanelStylebookLayers",$description:"The Outline panel while the pane is showing Project Styles: the element catalogue as a list of selectable tags, and the document's own custom properties under the other tab. The adapter hands in one flat projection per row — its badge, its name, how deep it sits, whether the open file has already styled it and whether it is the selected one — so nothing here walks the catalogue tree, reads the component registry or knows what a `& tag` style key is. A row asks the host to select the compound path it was given, by that path.",tagName:"div",attributes:{part:"stylebook-layers"},style:{$description:"What `.layer-row`, `.layer-tag`, `.layer-label` and `.component-tag` said in `styles/panels.css`, keyed on `part` and carried here rather than moved: three of those four are SHARED with the Outline's own rows (`panels/layers-panel.ts`), so the stylesheet rule can only go when that surface moves too. `.component-tag` is the exception — nothing else emits it once this lands. Three Spectrum names could not come with the declarations and are the kit's instead, at the same values: `--spectrum-corner-radius-75` (2px) is `--jx-radius-xs`, `--spectrum-font-size-50` (11px) is `--jx-text-sm` and `--spectrum-font-size-75` (12px) is `--jx-text-md`. Two things changed on purpose. A ROW IS A BUTTON: it was a `<div>` with a click handler and no role, so the catalogue could not be reached from the keyboard at all, and `cursor: grab` promised a drag that has never existed here. AND THE INDENT IS A VARIABLE, for the reason `panel-data.json` gives: a per-row `padding-left` declaration interns one rule per row, while `--row-indent` is written inline under its own name and read by one shared rule.",display:"block",fontFamily:"var(--jx-font-sans)",color:"var(--fg)",'& [part="list"]':{display:"flex",flexDirection:"column",margin:"0",padding:"0",listStyle:"none"},'& [part="row"]':{$description:"The 24px row the Outline declares, so the two lists line up when the pane switches between them. `block-size` rather than a height, and `box-sizing: border-box`, because the indent is padding.",display:"flex",alignItems:"center",gap:"var(--jx-space-2)",width:"100%",blockSize:"24px",boxSizing:"border-box",margin:"0",padding:"3px var(--jx-space-3)",paddingLeft:"var(--row-indent, var(--jx-space-3))",border:"none",borderLeft:"2px solid transparent",background:"none",color:"inherit",font:"inherit",textAlign:"left",whiteSpace:"nowrap",userSelect:"none"},'& button[part="row"]':{cursor:"pointer",":hover":{background:"var(--hover-bg)"},":focus-visible":{outline:"var(--jx-focus-ring)",outlineOffset:"-2px"}},'& [part="row"][aria-current="true"]':{background:"var(--accent-20)",borderLeftColor:"var(--accent)"},'& [part="badge"]':{$description:"A long custom-element tag is a badge, not a paragraph: it truncates rather than pushing the label out of a 240px column.",flex:"none",maxWidth:"12ch",overflow:"hidden",padding:"0 var(--jx-space-2)",borderRadius:"var(--jx-radius-xs)",background:"var(--tag)",color:"var(--accent-fg)",fontSize:"var(--jx-text-xs)",textOverflow:"ellipsis"},'& [part="badge"][data-kind="component"]':{$description:"A component has no tag to show that a reader would recognise from the page, so the badge is the glyph and the tag name is the label. Fixed width, so a column of them has one left edge.",width:"18px",padding:"0",background:"var(--accent)",fontSize:"9px",textAlign:"center"},'& [part="badge"][data-kind="variable"]':{fontFamily:"var(--font-mono)"},'& [part="label"]':{flex:"1",minWidth:"24px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},'& [part="dot"]':{$description:"The file has already styled this tag. The kit's neutral disc in the accent, which is the one thing about it that was ever this surface's own.",background:"var(--accent)"},'& [part="value"]':{maxWidth:"80px",overflow:"hidden",color:"var(--fg-dim)",fontSize:"var(--jx-text-sm)",textOverflow:"ellipsis",whiteSpace:"nowrap"},'& [part="empty"]':{$description:"Drawn here rather than borrowed from `panels/empty-state.ts`, which is a lit template a document cannot call. What is kept is the pattern's rules (studio-ui-guidelines.md §11): one sentence saying what the region is for, then where its content comes from.",display:"flex",flexDirection:"column",alignItems:"center",gap:"var(--jx-space-3)",padding:"var(--jx-space-5)",textAlign:"center",color:"var(--fg-dim)",fontSize:"var(--jx-text-md)"},'& [part="empty-message"], & [part="empty-detail"]':{margin:"0",maxWidth:"28ch",lineHeight:"1.5"},'& [part="empty-detail"]':{fontSize:"var(--jx-text-sm)",opacity:"0.8"},"@(forced-colors: active)":{'& [part="row"][aria-current="true"]':{$description:"The selected row, redrawn. Every author colour is replaced by one from the user's palette in forced colours, so the accent wash behind the row collapses into the page and the left edge is the only marker left.",borderLeftColor:"Highlight"}}},children:[{tagName:"div",attributes:{part:"tab-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"#/state/tab"},cases:{elements:{tagName:"div",attributes:{part:"list","data-tab":"elements"},children:[{$prototype:"Array",items:{$ref:"#/state/rows"},key:{$ref:"$map/item/key"},map:{tagName:"button",attributes:{part:"row",type:"button","data-path":"${$map.item.key}","data-kind":"${$map.item.kind}","aria-current":"${$map.item.selected ? 'true' : null}"},style:{"--row-indent":{$ref:"$map/item/indent"}},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/selectRow"},value:[{$ref:"$map/item/key"}]}]},children:[{tagName:"span",attributes:{part:"badge","data-kind":"${$map.item.kind}"},textContent:"${$map.item.tag}"},{tagName:"span",attributes:{part:"label"},textContent:"${$map.item.label}"},{tagName:"span",attributes:{part:"dot-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"$map/item/customized"},cases:{true:{tagName:"jx-dot",attributes:{part:"dot",role:"img","aria-label":"Styled in this file"}}}}]}}]},variables:{tagName:"div",attributes:{part:"variables-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"#/state/hasVariables"},cases:{true:{tagName:"ul",attributes:{part:"list","data-tab":"variables"},children:[{$prototype:"Array",items:{$ref:"#/state/variables"},key:{$ref:"$map/item/key"},map:{tagName:"li",attributes:{part:"row","data-kind":"variable","data-path":"${$map.item.name}"},children:[{tagName:"span",attributes:{part:"badge","data-kind":"variable"},textContent:"var"},{tagName:"span",attributes:{part:"label"},textContent:"${$map.item.name}"},{tagName:"span",attributes:{part:"value"},textContent:"${$map.item.value}"}]}}]},false:{tagName:"div",attributes:{part:"empty"},children:[{tagName:"p",attributes:{part:"empty-message"},textContent:"No variables defined."},{tagName:"p",attributes:{part:"empty-detail"},textContent:"A custom property declared on this file's own style block is listed here."}]}}}}}]};T("panel-stylebook-layers",Aa);function _a(e,t){e.tab=t.tab,e.rows=t.rows,e.variables=t.variables,e.hasVariables=t.hasVariables}function ya(e,t,n){let r=v({hasVariables:!1,rows:[],selectRow:n.selectRow,tab:"elements",variables:[]});_a(r,t);let o=null,s=!1;return R("panel-stylebook-layers",r,e).then((c)=>{if(s){c.dispose();return}o=c}),{connected:()=>!s&&(o===null||o.root.parentNode===e),dispose(){s=!0,o?.dispose(),o=null},update:(c)=>{_a(r,c)}}}var Ca=8,ns=16;function as(e,t){let n=e[`& ${t}`];return Boolean(n)&&typeof n==="object"&&Object.keys(n).length>0}function rs(e){if(!e)return null;return e.includes(" ")?e.split(" ").pop()??null:e}function xa(e,t,n,r,o,s){let{tag:c}=e,f=o?`${o} ${c}`:c;s.push({customized:as(t,c),indent:`${Ca+r*ns}px`,key:f,kind:"element",label:e.text||`<${c}>`,selected:c===n,tag:c});let h=e.children?[...new Map(e.children.map((A)=>[A.tag,A])).values()]:[];for(let A of h)xa(A,t,n,r+1,f,s)}function os(e){return Object.entries(e).filter(([t])=>t.startsWith("--")).map(([t,n])=>({key:t,name:t,value:String(n)}))}function ss(e){let n=u.value?.doc.document?.style||{},{selection:r}=y.stylebook,o=rs(r),s=[];for(let f of e.stylebookMeta.$sections)for(let h of f.elements)xa(h,n,o,0,"",s);for(let f of st)s.push({customized:!1,indent:`${Ca}px`,key:f.tagName,kind:"component",label:f.tagName,selected:f.tagName===r,tag:"⬡"});let c=os(n);return{hasVariables:c.length>0,rows:s,tab:y.stylebook.tab,variables:c}}var he=null;function is(e){queueMicrotask(()=>{e.querySelector('[part="row"][aria-current="true"]')?.scrollIntoView?.({behavior:"smooth",block:"nearest"})})}function Sa(e,t){let n=t.querySelector(".panel-content")??t;if(he&&(he.host!==n||!he.handle.connected()))he.handle.dispose(),he=null;let r=ss(e);if(he)he.handle.update(r);else he={handle:ya(n,r,{selectRow:(o)=>{e.selectStylebookTag(o,void 0,{panCanvas:!0})}}),host:n};is(n)}function Na(){he?.handle.dispose(),he=null}function gi(){}class Ie{constructor(e,t,n){if(this.normal=t,this.property=e,n)this.space=n}}Ie.prototype.normal={};Ie.prototype.property={};Ie.prototype.space=void 0;function cn(e,t){let n={},r={};for(let o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new Ie(n,r,t)}function Ae(e){return e.toLowerCase()}class G{constructor(e,t){this.attribute=t,this.property=e}}G.prototype.attribute="";G.prototype.booleanish=!1;G.prototype.boolean=!1;G.prototype.commaOrSpaceSeparated=!1;G.prototype.commaSeparated=!1;G.prototype.defined=!1;G.prototype.mustUseProperty=!1;G.prototype.number=!1;G.prototype.overloadedBoolean=!1;G.prototype.property="";G.prototype.spaceSeparated=!1;G.prototype.space=void 0;var nt={};$i(nt,{boolean:()=>I,booleanish:()=>U,commaOrSpaceSeparated:()=>re,commaSeparated:()=>_e,number:()=>x,overloadedBoolean:()=>Rt,spaceSeparated:()=>M});var us=0,I=Pe(),U=Pe(),Rt=Pe(),x=Pe(),M=Pe(),_e=Pe(),re=Pe();function Pe(){return 2**++us}var ln=Object.keys(nt);class Ke extends G{constructor(e,t,n,r){let o=-1;super(e,t);if(Ia(this,"space",r),typeof n==="number")while(++o<ln.length){let s=ln[o];Ia(this,ln[o],(n&nt[s])===nt[s])}}}Ke.prototype.defined=!0;function Ia(e,t,n){if(n)e[t]=n}function oe(e){let t={},n={};for(let[r,o]of Object.entries(e.properties)){let s=new Ke(r,e.transform(e.attributes||{},r),o,e.space);if(e.mustUseProperty&&e.mustUseProperty.includes(r))s.mustUseProperty=!0;t[r]=s,n[Ae(r)]=r,n[Ae(s.attribute)]=r}return new Ie(t,n,e.space)}var dn=oe({properties:{ariaActiveDescendant:null,ariaAtomic:U,ariaAutoComplete:null,ariaBusy:U,ariaChecked:U,ariaColCount:x,ariaColIndex:x,ariaColSpan:x,ariaControls:M,ariaCurrent:null,ariaDescribedBy:M,ariaDetails:null,ariaDisabled:U,ariaDropEffect:M,ariaErrorMessage:null,ariaExpanded:U,ariaFlowTo:M,ariaGrabbed:U,ariaHasPopup:null,ariaHidden:U,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:M,ariaLevel:x,ariaLive:null,ariaModal:U,ariaMultiLine:U,ariaMultiSelectable:U,ariaOrientation:null,ariaOwns:M,ariaPlaceholder:null,ariaPosInSet:x,ariaPressed:U,ariaReadOnly:U,ariaRelevant:null,ariaRequired:U,ariaRoleDescription:M,ariaRowCount:x,ariaRowIndex:x,ariaRowSpan:x,ariaSelected:U,ariaSetSize:x,ariaSort:null,ariaValueMax:x,ariaValueMin:x,ariaValueNow:x,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Dt(e,t){return t in e?e[t]:t}function vt(e,t){return Dt(e,t.toLowerCase())}var La=oe({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:_e,acceptCharset:M,accessKey:M,action:null,allow:null,allowFullScreen:I,allowPaymentRequest:I,allowUserMedia:I,alpha:I,alt:null,as:null,async:I,autoCapitalize:null,autoComplete:M,autoFocus:I,autoPlay:I,blocking:M,capture:null,charSet:null,checked:I,cite:null,className:M,closedBy:null,colorSpace:null,cols:x,colSpan:x,command:null,commandFor:null,content:null,contentEditable:U,controls:I,controlsList:M,coords:x|_e,crossOrigin:null,data:null,dateTime:null,decoding:null,default:I,defer:I,dir:null,dirName:null,disabled:I,download:Rt,draggable:U,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:I,formTarget:null,headers:M,height:x,hidden:Rt,high:x,href:null,hrefLang:null,htmlFor:M,httpEquiv:M,id:null,imageSizes:null,imageSrcSet:null,inert:I,inputMode:null,integrity:null,is:null,isMap:I,itemId:null,itemProp:M,itemRef:M,itemScope:I,itemType:M,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:I,low:x,manifest:null,max:null,maxLength:x,media:null,method:null,min:null,minLength:x,multiple:I,muted:I,name:null,nonce:null,noModule:I,noValidate:I,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:I,optimum:x,pattern:null,ping:M,placeholder:null,playsInline:I,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:I,referrerPolicy:null,rel:M,required:I,reversed:I,rows:x,rowSpan:x,sandbox:M,scope:null,scoped:I,seamless:I,selected:I,shadowRootClonable:I,shadowRootCustomElementRegistry:I,shadowRootDelegatesFocus:I,shadowRootMode:null,shadowRootSerializable:I,shape:null,size:x,sizes:null,slot:null,span:x,spellCheck:U,src:null,srcDoc:null,srcLang:null,srcSet:null,start:x,step:null,style:null,tabIndex:x,target:null,title:null,translate:null,type:null,typeMustMatch:I,useMap:null,value:U,width:x,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:M,axis:null,background:null,bgColor:null,border:x,borderColor:null,bottomMargin:x,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:I,declare:I,event:null,face:null,frame:null,frameBorder:null,hSpace:x,leftMargin:x,link:null,longDesc:null,lowSrc:null,marginHeight:x,marginWidth:x,noResize:I,noHref:I,noShade:I,noWrap:I,object:null,profile:null,prompt:null,rev:null,rightMargin:x,rules:null,scheme:null,scrolling:U,standby:null,summary:null,text:null,topMargin:x,valueType:null,version:null,vAlign:null,vLink:null,vSpace:x,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:I,disablePictureInPicture:I,disableRemotePlayback:I,exportParts:_e,part:M,prefix:null,property:null,results:x,security:null,unselectable:null},space:"html",transform:vt});var Ra=oe({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",maskType:"mask-type",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"},properties:{about:re,accentHeight:x,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:x,amplitude:x,arabicForm:null,ascent:x,attributeName:null,attributeType:null,azimuth:x,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:x,by:null,calcMode:null,capHeight:x,className:M,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:x,diffuseConstant:x,direction:null,display:null,dur:null,divisor:x,dominantBaseline:null,download:I,dx:null,dy:null,edgeMode:null,editable:null,elevation:x,enableBackground:null,end:null,event:null,exponent:x,externalResourcesRequired:null,fill:null,fillOpacity:x,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:_e,g2:_e,glyphName:_e,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:x,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:x,horizOriginX:x,horizOriginY:x,id:null,ideographic:x,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:x,k:x,k1:x,k2:x,k3:x,k4:x,kernelMatrix:re,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:x,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:x,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:x,overlineThickness:x,paintOrder:null,panose1:null,path:null,pathLength:x,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:M,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:x,pointsAtY:x,pointsAtZ:x,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:re,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:re,rev:re,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:re,requiredFeatures:re,requiredFonts:re,requiredFormats:re,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:x,specularExponent:x,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:x,strikethroughThickness:x,string:null,stroke:null,strokeDashArray:re,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:x,strokeOpacity:x,strokeWidth:null,style:null,surfaceScale:x,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:re,tabIndex:x,tableValues:null,target:null,targetX:x,targetY:x,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:re,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:x,underlineThickness:x,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:x,values:null,vAlphabetic:x,vMathematical:x,vectorEffect:null,vHanging:x,vIdeographic:x,version:null,vertAdvY:x,vertOriginX:x,vertOriginY:x,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:x,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Dt});var fn=oe({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}});var mn=oe({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:vt});var hn=oe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}});var cs=/[A-Z]/g,Oa=/-[a-z]/g,ls=/^data[-\w.:]+$/i;function nd(e,t){let n=Ae(t),r=t,o=G;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&ls.test(t)){if(t.charAt(4)==="-"){let s=t.slice(5).replace(Oa,ms);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{let s=t.slice(4);if(!Oa.test(s)){let c=s.replace(cs,ds);if(c.charAt(0)!=="-")c="-"+c;t="data"+c}}o=Ke}return new o(r,t)}function ds(e){return"-"+e.toLowerCase()}function ms(e){return e.charAt(1).toUpperCase()}var id=cn([dn,La,fn,mn,hn],"html"),od=cn([dn,Ra,fn,mn,hn],"svg");function pn(e){let t=[],n=String(e||""),r=n.indexOf(","),o=0,s=!1;while(!s){if(r===-1)r=n.length,s=!0;let c=n.slice(o,r).trim();if(c||!s)t.push(c);o=r+1,r=n.indexOf(",",o)}return t}function LS(e,t){let n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var Da=/[#.]/g;function En(e,t){let n=e||"",r={},o=0,s,c;while(o<n.length){Da.lastIndex=o;let f=Da.exec(n),h=n.slice(o,f?f.index:n.length);if(h){if(!s)c=h;else if(s==="#")r.id=h;else if(Array.isArray(r.className))r.className.push(h);else r.className=[h];o+=h.length}if(f)s=f[0],o++}return{type:"element",tagName:c||t||"div",properties:r,children:[]}}function bn(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function IS(e){return e.join(" ").trim()}function Tn(e,t,n){let r=n?bs(n):void 0;function o(s,c,...f){let h;if(s===null||s===void 0){h={type:"root",children:[]};let A=c;f.unshift(A)}else{h=En(s,t);let A=h.tagName.toLowerCase(),S=r?r.get(A):void 0;if(h.tagName=S||A,hs(c))f.unshift(c);else for(let[g,N]of Object.entries(c))ps(e,h.properties,g,N)}for(let A of f)gn(h.children,A);if(h.type==="element"&&h.tagName==="template")h.content={type:"root",children:h.children},h.children=[];return h}return o}function hs(e){if(e===null||typeof e!=="object"||Array.isArray(e))return!0;if(typeof e.type!=="string")return!1;let t=e,n=Object.keys(e);for(let r of n){let o=t[r];if(o&&typeof o==="object"){if(!Array.isArray(o))return!0;let s=o;for(let c of s)if(typeof c!=="number"&&typeof c!=="string")return!0}}if("children"in e&&Array.isArray(e.children))return!0;return!1}function ps(e,t,n,r){let o=nd(e,n),s;if(r===null||r===void 0)return;if(typeof r==="number"){if(Number.isNaN(r))return;s=r}else if(typeof r==="boolean")s=r;else if(typeof r==="string")if(o.spaceSeparated)s=bn(r);else if(o.commaSeparated)s=pn(r);else if(o.commaOrSpaceSeparated)s=bn(pn(r).join(" "));else s=va(o,o.property,r);else if(Array.isArray(r))s=[...r];else s=o.property==="style"?Es(r):String(r);if(Array.isArray(s)){let c=[];for(let f of s)c.push(va(o,o.property,f));s=c}if(o.property==="className"&&Array.isArray(t.className))s=t.className.concat(s);t[o.property]=s}function gn(e,t){if(t===null||t===void 0);else if(typeof t==="number"||typeof t==="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(let n of t)gn(e,n);else if(typeof t==="object"&&"type"in t)if(t.type==="root")gn(e,t.children);else e.push(t);else throw Error("Expected node, nodes, or string, got `"+t+"`")}function va(e,t,n){if(typeof n==="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Ae(n)===Ae(t)))return!0}return n}function Es(e){let t=[];for(let[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function bs(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}var wa=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"];var An=Tn(id,"div"),yn=Tn(od,"g",wa);function Cn(e){let t=String(e),n=[];return{toOffset:o,toPoint:r};function r(s){if(typeof s==="number"&&s>-1&&s<=t.length){let c=0;while(!0){let f=n[c];if(f===void 0){let h=ka(t,n[c-1]);f=h===-1?t.length+1:h+1,n[c]=f}if(f>s)return{line:c+1,column:s-(c>0?n[c-1]:0)+1,offset:s};c++}}}function o(s){if(s&&typeof s.line==="number"&&typeof s.column==="number"&&!Number.isNaN(s.line)&&!Number.isNaN(s.column)){while(n.length<s.line){let f=n[n.length-1],h=ka(t,f),A=h===-1?t.length+1:h+1;if(f===A)break;n.push(A)}let c=(s.line>1?n[s.line-2]:0)+s.column-1;if(c<n[s.line-1])return c}}}function ka(e,t){let n=e.indexOf("\r",t),r=e.indexOf(`
2
- `,t);if(r===-1)return n;if(n===-1||n+1===r)return r;return n<r?n:r}var Pa={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};var Ba={}.hasOwnProperty,Ts=Object.prototype;function xn(e,t){let n=t||{};return Sn({file:n.file||void 0,location:!1,schema:n.space==="svg"?od:id,verbose:n.verbose||!1},e)}function Sn(e,t){let n;switch(t.nodeName){case"#comment":{let r=t;return n={type:"comment",value:r.data},wt(e,r,n),n}case"#document":case"#document-fragment":{let r=t,o="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Ha(e,t.childNodes),data:{quirksMode:o}},e.file&&e.location){let s=String(e.file),c=Cn(s),f=c.toPoint(0),h=c.toPoint(s.length);gi(f,"expected `start`"),gi(h,"expected `end`"),n.position={start:f,end:h}}return n}case"#documentType":{let r=t;return n={type:"doctype"},wt(e,r,n),n}case"#text":{let r=t;return n={type:"text",value:r.value},wt(e,r,n),n}default:return n=As(e,t),n}}function Ha(e,t){let n=-1,r=[];while(++n<t.length){let o=Sn(e,t[n]);r.push(o)}return r}function As(e,t){let n=e.schema;e.schema=t.namespaceURI===Pa.svg?od:id;let r=-1,o={};while(++r<t.attrs.length){let f=t.attrs[r],h=(f.prefix?f.prefix+":":"")+f.name;if(!Ba.call(Ts,h))o[h]=f.value}let c=(e.schema.space==="svg"?yn:An)(t.tagName,o,Ha(e,t.childNodes));if(wt(e,t,c),c.tagName==="template"){let f=t,h=f.sourceCodeLocation,A=h&&h.startTag&&Ve(h.startTag),S=h&&h.endTag&&Ve(h.endTag),g=Sn(e,f.content);if(A&&S&&e.file)g.position={start:A.end,end:S.start};c.content=g}return e.schema=n,c}function wt(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){let r=_s(e,n,t.sourceCodeLocation);if(r)e.location=!0,n.position=r}}function _s(e,t,n){let r=Ve(n);if(t.type==="element"){let o=t.children[t.children.length-1];if(r&&!n.endTag&&o&&o.position&&o.position.end)r.end=Object.assign({},o.position.end);if(e.verbose){let s={},c;if(n.attrs){for(c in n.attrs)if(Ba.call(n.attrs,c))s[nd(e.schema,c).property]=Ve(n.attrs[c])}gi(n.startTag,"a start tag should exist");let f=Ve(n.startTag),h=n.endTag?Ve(n.endTag):void 0,A={opening:f};if(h)A.closing=h;A.properties=s,t.data={position:A}}}return r}function Ve(e){let t=Ma({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Ma({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Ma(e){return e.line&&e.column?e:void 0}var ys=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]),H="�",i;(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.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_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_Z=122]="LATIN_SMALL_Z"})(i||(i={}));var Z={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function kt(e){return e>=55296&&e<=57343}function Ua(e){return e>=56320&&e<=57343}function $a(e,t){return(e-55296)*1024+9216+t}function Pt(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Mt(e){return e>=64976&&e<=65007||ys.has(e)}var b;(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"})(b||(b={}));var xs=65536;class In{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=xs,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){let{line:n,col:r,offset:o}=this,s=r+t,c=o+t;return{code:e,startLine:n,endLine:n,startCol:s,endCol:s,startOffset:c,endOffset:c}}_err(e){if(this.handler.onParseError&&this.lastErrOffset!==this.offset)this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if(Ua(t))return this.pos++,this._addGap(),$a(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,i.EOF;return this._err(b.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){if(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(e,t){if(this.html.length>0)this.html+=e;else this.html=e;this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let n=0;n<e.length;n++)if((this.html.charCodeAt(this.pos+n)|32)!==e.charCodeAt(n))return!1;return!0}peek(e){let t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,i.EOF;let n=this.html.charCodeAt(t);return n===i.CARRIAGE_RETURN?i.LINE_FEED:n}advance(){if(this.pos++,this.isEol)this.isEol=!1,this.line++,this.lineStartPos=this.pos;if(this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,i.EOF;let e=this.html.charCodeAt(this.pos);if(e===i.CARRIAGE_RETURN)return this.isEol=!0,this.skipNextNewLine=!0,i.LINE_FEED;if(e===i.LINE_FEED){if(this.isEol=!0,this.skipNextNewLine)return this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()}if(this.skipNextNewLine=!1,kt(e))e=this._processSurrogate(e);if(!(this.handler.onParseError===null||e>31&&e<127||e===i.LINE_FEED||e===i.CARRIAGE_RETURN||e>159&&e<64976))this._checkForProblematicCharacters(e);return e}_checkForProblematicCharacters(e){if(Pt(e))this._err(b.controlCharacterInInputStream);else if(Mt(e))this._err(b.noncharacterInInputStream)}retreat(e){this.pos-=e;while(this.pos<this.lastGapPos)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var w;(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"})(w||(w={}));function Bt(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}var Ln=new Uint16Array("ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\x00\x00\x00\x00\x00\x00ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀\uD835\uDD04rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀\uD835\uDD38plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀\uD835\uDC9Cign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀\uD835\uDD05pf;쀀\uD835\uDD39eve;䋘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;쀀\uD835\uDC9EpĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀\uD835\uDD07Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\x00\x00\x00͔͂\x00Ѕf;쀀\uD835\uDD3Bƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\x00\x00ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\x00\x00ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\x00ц\x00ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\x00ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀\uD835\uDC9Frok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀\uD835\uDD08rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\x00\x00ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀\uD835\uDD3Csilon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀\uD835\uDD09lledɓ֗\x00\x00֣mallSquare;旼erySmallSquare;斪Ͱֺ\x00ֿ\x00\x00ׄf;쀀\uD835\uDD3DAll;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀\uD835\uDD0A;拙pf;쀀\uD835\uDD3Eeater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀\uD835\uDCA2;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\x00ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\x00ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀\uD835\uDD40a;䎙cr;愐ilde;䄨ǫޚ\x00ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀\uD835\uDD0Dpf;쀀\uD835\uDD41ǣ߇\x00ߌr;쀀\uD835\uDCA5rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀\uD835\uDD0Epf;쀀\uD835\uDD42cr;쀀\uD835\uDCA6րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\x00ࣃbleBracket;柦nǔࣈ\x00࣒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;쀀\uD835\uDD0FĀ;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀\uD835\uDD43erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀\uD835\uDD10nusPlus;戓pf;쀀\uD835\uDD44cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀\uD835\uDD11ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢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;쀀\uD835\uDCA9ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀\uD835\uDD12rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀\uD835\uDD46enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀\uD835\uDCAAash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀\uD835\uDD13i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀\uD835\uDCAB;䎨ȀUfos༑༖༛༟OT耻\"䀢r;쀀\uD835\uDD14pf;愚cr;쀀\uD835\uDCAC؀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ǵ࿹\x00စbleBracket;柧nǔည\x00န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;쀀\uD835\uDD16ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀\uD835\uDD4Aɲᅭ\x00\x00ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀\uD835\uDCAEar;拆Ȁ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;쀀\uD835\uDD17Āeiቻ኉Dzኀ\x00ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀\uD835\uDD4BipleDot;惛Āctዖዛr;쀀\uD835\uDCAFrok;䅦ૡዷጎጚጦ\x00ጬጱ\x00\x00\x00\x00\x00ጸጽ፷ᎅ\x00᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\x00጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀\uD835\uDD18rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀\uD835\uDD4CЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀\uD835\uDCB0ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀\uD835\uDD19pf;쀀\uD835\uDD4Dcr;쀀\uD835\uDCB1dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀\uD835\uDD1Apf;쀀\uD835\uDD4Ecr;쀀\uD835\uDCB2Ȁfiosᓋᓐᓒᓘr;쀀\uD835\uDD1B;䎞pf;쀀\uD835\uDD4Fcr;쀀\uD835\uDCB3ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀\uD835\uDD1Cpf;쀀\uD835\uDD50cr;쀀\uD835\uDCB4ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\x00ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀\uD835\uDCB5௡ᖃᖊᖐ\x00ᖰᖶᖿ\x00\x00\x00\x00ᗆᗛᗫᙟ᙭\x00ᚕ᚛ᚲᚹ\x00ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀\uD835\uDD1Erave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\x00\x00ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀\uD835\uDD52΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀\uD835\uDCB6;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀\uD835\uDD1Fg΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\x00\x00ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\x00ᠳƲᠯ\x00ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀\uD835\uDD53Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀\uD835\uDCB7mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\x00᧨ᨑᨕᨲ\x00ᨷᩐ\x00\x00᪴\x00\x00᫁\x00\x00ᬡᬮ᭍᭒\x00᯽\x00ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\x00᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀\uD835\uDD20ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\x00\x00᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\x00ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\x00\x00᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\x00ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀\uD835\uDD54oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀\uD835\uDCB8Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\x00\x00᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\x00\x00ᯒ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;楿;쀀\uD835\uDD21arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\x00\x00ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀\uD835\uDD55ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\x00\x00ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀\uD835\uDCB9;䑕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;扒;쀀\uD835\uDD22ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀\uD835\uDD56ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\x00\x00ỻíՈ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åչৡᾒ\x00ᾞ\x00ᾡᾧ\x00\x00ῆῌ\x00ΐ\x00ῦῪ \x00 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\x00\x00᾽g;耀ffig;耀ffl;쀀\uD835\uDD23lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\x00ῳf;쀀\uD835\uDD57ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\x00⁐β•‥‧‪‬\x00‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\x00‶;慔;慖ʴ‾⁁\x00\x00⁃耻¾䂾;慗;慜5;慘ƶ⁌\x00⁎;慚;慝8;慞l;恄wn;挢cr;쀀\uD835\uDCBBࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀\uD835\uDD24Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀\uD835\uDD58Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\x00↎proø₞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;쀀\uD835\uDD25sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀\uD835\uDD59bar;怕ƀclt≯≴≸r;쀀\uD835\uDCBDasè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\x00⊪\x00⊸⋅⋎\x00⋕⋳\x00\x00⋸⌢⍧⍢⍿\x00⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀\uD835\uDD26rave耻ì䃬Ȁ;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;쀀\uD835\uDD5Aa;䎹uest耻¿䂿Āci⎊⎏r;쀀\uD835\uDCBEnʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\x00⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀\uD835\uDD27ath;䈷pf;쀀\uD835\uDD5Bǣ⏬\x00⏱r;쀀\uD835\uDCBFrcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀\uD835\uDD28reen;䄸cy;䑅cy;䑜pf;쀀\uD835\uDD5Ccr;쀀\uD835\uDCC0஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\x00⒪\x00⒱\x00\x00\x00\x00\x00⒵Ⓔ\x00ⓆⓈⓍ\x00⓹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;楼;쀀\uD835\uDD29Ā;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;榅;쀀\uD835\uDD5Dus;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀\uD835\uDCC1mƀ;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;쀀\uD835\uDD2Ao;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀\uD835\uDD5EĀct⣸⣽r;쀀\uD835\uDCC2pos»ᖝƀ;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⧟\x00⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\x00⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀\uD835\uDD2BȀ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;쀀\uD835\uDD5F膀¬;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å൅;쀀\uD835\uDCC3ortɭ⬅\x00\x00⯖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;椧ቓ᪕\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00ⴭ\x00ⴸⵈⵠⵥ⵲ⶄᬇ\x00\x00ⶍⶫ\x00ⷈⷎ\x00ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀\uD835\uDD2Cͯ⵹\x00\x00⵼\x00ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀\uD835\uDD60ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\x00⹽\x00⺀⺝\x00⺢⺹\x00\x00⻋ຜ\x00⼓\x00\x00⼫⾼\x00⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\x00\x00⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀\uD835\uDD2Dƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀\uD835\uDD61nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀\uD835\uDCC5;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀\uD835\uDD2Epf;쀀\uD835\uDD62rime;恗cr;쀀\uD835\uDCC6ƀ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;楽;쀀\uD835\uDD2FĀ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;榆;쀀\uD835\uDD63us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀\uD835\uDCC7Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\x00㍺㎤\x00\x00㏬㏰\x00㐨㑈㑚㒭㒱㓊㓱\x00㘖\x00\x00㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\x00㋼;檸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㍶⁕쀀\uD835\uDD30Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\x00\x00㎜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;쀀\uD835\uDD64aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀\uD835\uDCC8tmîñ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耻ß䃟௡㙑㙝㙠ዎ㙳㙹\x00㙾㛂\x00\x00\x00\x00\x00㛛㜃\x00㜉㝬\x00\x00\x00㞇ɲ㙖\x00\x00㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀\uD835\uDD31Ȁeiko㚆㚝㚵㚼Dz㚋\x00㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀\uD835\uDD65rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀\uD835\uDCC9;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\x00㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀\uD835\uDD32rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\x00\x00㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀\uD835\uDD66̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\x00\x00㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀\uD835\uDCCAƀ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;쀀\uD835\uDD33tré㦮suĀbp㧯㧱»ജ»൙pf;쀀\uD835\uDD67roð໻tré㦴Ācu㨆㨋r;쀀\uD835\uDCCBĀbp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀\uD835\uDD34pf;쀀\uD835\uDD68Ā;eᑹ㩦atèᑹcr;쀀\uD835\uDCCCૣណ㪇\x00㪋\x00㪐㪛\x00\x00㪝㪨㪫㪯\x00\x00㫃㫎\x00㫘ៜ៟tré៑r;쀀\uD835\uDD35ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀\uD835\uDD69imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀\uD835\uDCCDĀpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀\uD835\uDD36cy;䑗pf;쀀\uD835\uDD6Acr;쀀\uD835\uDCCEĀcm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀\uD835\uDD37cy;䐶grarr;懝pf;쀀\uD835\uDD6Bcr;쀀\uD835\uDCCFĀjn㮅㮇;怍j;怌".split("").map((e)=>e.charCodeAt(0)));var Rn,Ns=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]]),Is=(Rn=String.fromCodePoint)!==null&&Rn!==void 0?Rn:function(e){let t="";if(e>65535)e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023;return t+=String.fromCharCode(e),t};function Ya(e){var t;if(e>=55296&&e<=57343||e>1114111)return 65533;return(t=Ns.get(e))!==null&&t!==void 0?t:e}var W;(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"})(W||(W={}));var Ls=32,Re;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Re||(Re={}));function On(e){return e>=W.ZERO&&e<=W.NINE}function Rs(e){return e>=W.UPPER_A&&e<=W.UPPER_F||e>=W.LOWER_A&&e<=W.LOWER_F}function Os(e){return e>=W.UPPER_A&&e<=W.UPPER_Z||e>=W.LOWER_A&&e<=W.LOWER_Z||On(e)}function Ds(e){return e===W.EQUALS||Os(e)}var V;(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"})(V||(V={}));var pe;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(pe||(pe={}));class Dn{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=V.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=pe.Strict}startEntity(e){this.decodeMode=e,this.state=V.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case V.EntityStart:{if(e.charCodeAt(t)===W.NUM)return this.state=V.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=V.NamedEntity,this.stateNamedEntity(e,t)}case V.NumericStart:return this.stateNumericStart(e,t);case V.NumericDecimal:return this.stateNumericDecimal(e,t);case V.NumericHex:return this.stateNumericHex(e,t);case V.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){if(t>=e.length)return-1;if((e.charCodeAt(t)|Ls)===W.LOWER_X)return this.state=V.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1);return this.state=V.NumericDecimal,this.stateNumericDecimal(e,t)}addToNumericResult(e,t,n,r){if(t!==n){let o=n-t;this.result=this.result*Math.pow(r,o)+Number.parseInt(e.substr(t,o),r),this.consumed+=o}}stateNumericHex(e,t){let n=t;while(t<e.length){let r=e.charCodeAt(t);if(On(r)||Rs(r))t+=1;else return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){let n=t;while(t<e.length){let r=e.charCodeAt(t);if(On(r))t+=1;else return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===W.SEMI)this.consumed+=1;else if(this.decodeMode===pe.Strict)return 0;if(this.emitCodePoint(Ya(this.result),this.consumed),this.errors){if(e!==W.SEMI)this.errors.missingSemicolonAfterCharacterReference();this.errors.validateNumericCharacterReference(this.result)}return this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],o=(r&Re.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let s=e.charCodeAt(t);if(this.treeIndex=ws(n,r,this.treeIndex+Math.max(1,o),s),this.treeIndex<0)return this.result===0||this.decodeMode===pe.Attribute&&(o===0||Ds(s))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],o=(r&Re.VALUE_LENGTH)>>14,o!==0){if(s===W.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);if(this.decodeMode!==pe.Strict)this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0}}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&Re.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;if(this.emitCodePoint(t===1?r[e]&~Re.VALUE_LENGTH:r[e+1],n),t===3)this.emitCodePoint(r[e+2],n);return n}end(){var e;switch(this.state){case V.NamedEntity:return this.result!==0&&(this.decodeMode!==pe.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case V.NumericDecimal:return this.emitNumericEntity(0,2);case V.NumericHex:return this.emitNumericEntity(0,3);case V.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case V.EntityStart:return 0}}}function ws(e,t,n,r){let o=(t&Re.BRANCH_LENGTH)>>7,s=t&Re.JUMP_TABLE;if(o===0)return s!==0&&r===s?n:-1;if(s){let h=r-s;return h<0||h>=o?-1:e[n+h]-1}let c=n,f=c+o-1;while(c<=f){let h=c+f>>>1,A=e[h];if(A<r)c=h+1;else if(A>r)f=h-1;else return e[h+o]}return-1}var _;(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/"})(_||(_={}));var ye;(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"})(ye||(ye={}));var ee;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(ee||(ee={}));var E;(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.SEARCH="search",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"})(E||(E={}));var a;(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.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(a||(a={}));var ks=new Map([[E.A,a.A],[E.ADDRESS,a.ADDRESS],[E.ANNOTATION_XML,a.ANNOTATION_XML],[E.APPLET,a.APPLET],[E.AREA,a.AREA],[E.ARTICLE,a.ARTICLE],[E.ASIDE,a.ASIDE],[E.B,a.B],[E.BASE,a.BASE],[E.BASEFONT,a.BASEFONT],[E.BGSOUND,a.BGSOUND],[E.BIG,a.BIG],[E.BLOCKQUOTE,a.BLOCKQUOTE],[E.BODY,a.BODY],[E.BR,a.BR],[E.BUTTON,a.BUTTON],[E.CAPTION,a.CAPTION],[E.CENTER,a.CENTER],[E.CODE,a.CODE],[E.COL,a.COL],[E.COLGROUP,a.COLGROUP],[E.DD,a.DD],[E.DESC,a.DESC],[E.DETAILS,a.DETAILS],[E.DIALOG,a.DIALOG],[E.DIR,a.DIR],[E.DIV,a.DIV],[E.DL,a.DL],[E.DT,a.DT],[E.EM,a.EM],[E.EMBED,a.EMBED],[E.FIELDSET,a.FIELDSET],[E.FIGCAPTION,a.FIGCAPTION],[E.FIGURE,a.FIGURE],[E.FONT,a.FONT],[E.FOOTER,a.FOOTER],[E.FOREIGN_OBJECT,a.FOREIGN_OBJECT],[E.FORM,a.FORM],[E.FRAME,a.FRAME],[E.FRAMESET,a.FRAMESET],[E.H1,a.H1],[E.H2,a.H2],[E.H3,a.H3],[E.H4,a.H4],[E.H5,a.H5],[E.H6,a.H6],[E.HEAD,a.HEAD],[E.HEADER,a.HEADER],[E.HGROUP,a.HGROUP],[E.HR,a.HR],[E.HTML,a.HTML],[E.I,a.I],[E.IMG,a.IMG],[E.IMAGE,a.IMAGE],[E.INPUT,a.INPUT],[E.IFRAME,a.IFRAME],[E.KEYGEN,a.KEYGEN],[E.LABEL,a.LABEL],[E.LI,a.LI],[E.LINK,a.LINK],[E.LISTING,a.LISTING],[E.MAIN,a.MAIN],[E.MALIGNMARK,a.MALIGNMARK],[E.MARQUEE,a.MARQUEE],[E.MATH,a.MATH],[E.MENU,a.MENU],[E.META,a.META],[E.MGLYPH,a.MGLYPH],[E.MI,a.MI],[E.MO,a.MO],[E.MN,a.MN],[E.MS,a.MS],[E.MTEXT,a.MTEXT],[E.NAV,a.NAV],[E.NOBR,a.NOBR],[E.NOFRAMES,a.NOFRAMES],[E.NOEMBED,a.NOEMBED],[E.NOSCRIPT,a.NOSCRIPT],[E.OBJECT,a.OBJECT],[E.OL,a.OL],[E.OPTGROUP,a.OPTGROUP],[E.OPTION,a.OPTION],[E.P,a.P],[E.PARAM,a.PARAM],[E.PLAINTEXT,a.PLAINTEXT],[E.PRE,a.PRE],[E.RB,a.RB],[E.RP,a.RP],[E.RT,a.RT],[E.RTC,a.RTC],[E.RUBY,a.RUBY],[E.S,a.S],[E.SCRIPT,a.SCRIPT],[E.SEARCH,a.SEARCH],[E.SECTION,a.SECTION],[E.SELECT,a.SELECT],[E.SOURCE,a.SOURCE],[E.SMALL,a.SMALL],[E.SPAN,a.SPAN],[E.STRIKE,a.STRIKE],[E.STRONG,a.STRONG],[E.STYLE,a.STYLE],[E.SUB,a.SUB],[E.SUMMARY,a.SUMMARY],[E.SUP,a.SUP],[E.TABLE,a.TABLE],[E.TBODY,a.TBODY],[E.TEMPLATE,a.TEMPLATE],[E.TEXTAREA,a.TEXTAREA],[E.TFOOT,a.TFOOT],[E.TD,a.TD],[E.TH,a.TH],[E.THEAD,a.THEAD],[E.TITLE,a.TITLE],[E.TR,a.TR],[E.TRACK,a.TRACK],[E.TT,a.TT],[E.U,a.U],[E.UL,a.UL],[E.SVG,a.SVG],[E.VAR,a.VAR],[E.WBR,a.WBR],[E.XMP,a.XMP]]);function Me(e){var t;return(t=ks.get(e))!==null&&t!==void 0?t:a.UNKNOWN}var C=a,ja={[_.HTML]:new Set([C.ADDRESS,C.APPLET,C.AREA,C.ARTICLE,C.ASIDE,C.BASE,C.BASEFONT,C.BGSOUND,C.BLOCKQUOTE,C.BODY,C.BR,C.BUTTON,C.CAPTION,C.CENTER,C.COL,C.COLGROUP,C.DD,C.DETAILS,C.DIR,C.DIV,C.DL,C.DT,C.EMBED,C.FIELDSET,C.FIGCAPTION,C.FIGURE,C.FOOTER,C.FORM,C.FRAME,C.FRAMESET,C.H1,C.H2,C.H3,C.H4,C.H5,C.H6,C.HEAD,C.HEADER,C.HGROUP,C.HR,C.HTML,C.IFRAME,C.IMG,C.INPUT,C.LI,C.LINK,C.LISTING,C.MAIN,C.MARQUEE,C.MENU,C.META,C.NAV,C.NOEMBED,C.NOFRAMES,C.NOSCRIPT,C.OBJECT,C.OL,C.P,C.PARAM,C.PLAINTEXT,C.PRE,C.SCRIPT,C.SECTION,C.SELECT,C.SOURCE,C.STYLE,C.SUMMARY,C.TABLE,C.TBODY,C.TD,C.TEMPLATE,C.TEXTAREA,C.TFOOT,C.TH,C.THEAD,C.TITLE,C.TR,C.TRACK,C.UL,C.WBR,C.XMP]),[_.MATHML]:new Set([C.MI,C.MO,C.MN,C.MS,C.MTEXT,C.ANNOTATION_XML]),[_.SVG]:new Set([C.TITLE,C.FOREIGN_OBJECT,C.DESC]),[_.XLINK]:new Set,[_.XML]:new Set,[_.XMLNS]:new Set},at=new Set([C.H1,C.H2,C.H3,C.H4,C.H5,C.H6]),lf=new Set([E.STYLE,E.SCRIPT,E.XMP,E.IFRAME,E.NOEMBED,E.NOFRAMES,E.PLAINTEXT]);var l;(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.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(l||(l={}));var J={DATA:l.DATA,RCDATA:l.RCDATA,RAWTEXT:l.RAWTEXT,SCRIPT_DATA:l.SCRIPT_DATA,PLAINTEXT:l.PLAINTEXT,CDATA_SECTION:l.CDATA_SECTION};function Ms(e){return e>=i.DIGIT_0&&e<=i.DIGIT_9}function ot(e){return e>=i.LATIN_CAPITAL_A&&e<=i.LATIN_CAPITAL_Z}function Bs(e){return e>=i.LATIN_SMALL_A&&e<=i.LATIN_SMALL_Z}function De(e){return Bs(e)||ot(e)}function Ka(e){return De(e)||Ms(e)}function Ht(e){return e+32}function qa(e){return e===i.SPACE||e===i.LINE_FEED||e===i.TABULATION||e===i.FORM_FEED}function Va(e){return qa(e)||e===i.SOLIDUS||e===i.GREATER_THAN_SIGN}function Us(e){if(e===i.NULL)return b.nullCharacterReference;else if(e>1114111)return b.characterReferenceOutsideUnicodeRange;else if(kt(e))return b.surrogateCharacterReference;else if(Mt(e))return b.noncharacterCharacterReference;else if(Pt(e)||e===i.CARRIAGE_RETURN)return b.controlCharacterReference;return null}class Ut{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=l.DATA,this.returnState=l.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new In(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Dn(Ln,(n,r)=>{this.preprocessor.pos=this.entityStartPos+r-1,this._flushCodePointConsumedAsCharacterReference(n)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(b.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:(n)=>{this._err(b.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+n)},validateNumericCharacterReference:(n)=>{let r=Us(n);if(r)this._err(r,1)}}:void 0)}_err(e,t=0){var n,r;(r=(n=this.handler).onParseError)===null||r===void 0||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){if(!this.options.sourceCodeLocationInfo)return null;return{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}}_runParsingLoop(){if(this.inLoop)return;this.inLoop=!0;while(this.active&&!this.paused){this.consumedAfterSnapshot=0;let e=this._consume();if(!this._ensureHibernation())this._callState(e)}this.inLoop=!1}pause(){this.paused=!0}resume(e){if(!this.paused)throw Error("Parser was already resumed");if(this.paused=!1,this.inLoop)return;if(this._runParsingLoop(),!this.paused)e===null||e===void 0||e()}write(e,t,n){if(this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),!this.paused)n===null||n===void 0||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){if(this.preprocessor.endOfChunkHit)return this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0;return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){if(this.preprocessor.startsWith(e,t))return this._advanceBy(e.length-1),!0;return!1}_createStartTagToken(){this.currentToken={type:w.START_TAG,tagName:"",tagID:a.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:w.END_TAG,tagName:"",tagID:a.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:w.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:w.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;let n=this.currentToken;if(Bt(n,this.currentAttr.name)===null){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){let r=(e=(t=n.location).attrs)!==null&&e!==void 0?e:t.attrs=Object.create(null);r[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(b.duplicateAttribute)}_leaveAttrValue(){if(this.currentLocation)this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset}prepareToken(e){if(this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location)e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1;this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){let e=this.currentToken;if(this.prepareToken(e),e.tagID=Me(e.tagName),e.type===w.START_TAG)this.lastStartTagName=e.tagName,this.handler.onStartTag(e);else{if(e.attrs.length>0)this._err(b.endTagWithAttributes);if(e.selfClosing)this._err(b.endTagWithTrailingSolidus);this.handler.onEndTag(e)}this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){if(e&&this.currentCharacterToken.location)this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset;switch(this.currentCharacterToken.type){case w.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case w.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case w.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);if(e)e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset;this._emitCurrentCharacterToken(e),this.handler.onEof({type:w.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,t)}_emitCodePoint(e){let t=qa(e)?w.WHITESPACE_CHARACTER:e===i.NULL?w.NULL_CHARACTER:w.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(w.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=l.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?pe.Attribute:pe.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===l.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===l.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===l.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){if(this._isCharacterReferenceInAttribute())this.currentAttr.value+=String.fromCodePoint(e);else this._emitCodePoint(e)}_callState(e){switch(this.state){case l.DATA:{this._stateData(e);break}case l.RCDATA:{this._stateRcdata(e);break}case l.RAWTEXT:{this._stateRawtext(e);break}case l.SCRIPT_DATA:{this._stateScriptData(e);break}case l.PLAINTEXT:{this._statePlaintext(e);break}case l.TAG_OPEN:{this._stateTagOpen(e);break}case l.END_TAG_OPEN:{this._stateEndTagOpen(e);break}case l.TAG_NAME:{this._stateTagName(e);break}case l.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(e);break}case l.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(e);break}case l.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(e);break}case l.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(e);break}case l.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(e);break}case l.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(e);break}case l.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(e);break}case l.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(e);break}case l.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(e);break}case l.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(e);break}case l.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(e);break}case l.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(e);break}case l.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(e);break}case l.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(e);break}case l.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(e);break}case l.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(e);break}case l.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(e);break}case l.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(e);break}case l.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(e);break}case l.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(e);break}case l.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(e);break}case l.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(e);break}case l.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(e);break}case l.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(e);break}case l.ATTRIBUTE_NAME:{this._stateAttributeName(e);break}case l.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(e);break}case l.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(e);break}case l.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(e);break}case l.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(e);break}case l.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(e);break}case l.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(e);break}case l.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(e);break}case l.BOGUS_COMMENT:{this._stateBogusComment(e);break}case l.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(e);break}case l.COMMENT_START:{this._stateCommentStart(e);break}case l.COMMENT_START_DASH:{this._stateCommentStartDash(e);break}case l.COMMENT:{this._stateComment(e);break}case l.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(e);break}case l.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(e);break}case l.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(e);break}case l.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(e);break}case l.COMMENT_END_DASH:{this._stateCommentEndDash(e);break}case l.COMMENT_END:{this._stateCommentEnd(e);break}case l.COMMENT_END_BANG:{this._stateCommentEndBang(e);break}case l.DOCTYPE:{this._stateDoctype(e);break}case l.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(e);break}case l.DOCTYPE_NAME:{this._stateDoctypeName(e);break}case l.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(e);break}case l.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(e);break}case l.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(e);break}case l.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(e);break}case l.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(e);break}case l.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(e);break}case l.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break}case l.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(e);break}case l.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(e);break}case l.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(e);break}case l.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(e);break}case l.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(e);break}case l.BOGUS_DOCTYPE:{this._stateBogusDoctype(e);break}case l.CDATA_SECTION:{this._stateCdataSection(e);break}case l.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(e);break}case l.CDATA_SECTION_END:{this._stateCdataSectionEnd(e);break}case l.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case l.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(e);break}default:throw Error("Unknown state")}}_stateData(e){switch(e){case i.LESS_THAN_SIGN:{this.state=l.TAG_OPEN;break}case i.AMPERSAND:{this._startCharacterReference();break}case i.NULL:{this._err(b.unexpectedNullCharacter),this._emitCodePoint(e);break}case i.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case i.AMPERSAND:{this._startCharacterReference();break}case i.LESS_THAN_SIGN:{this.state=l.RCDATA_LESS_THAN_SIGN;break}case i.NULL:{this._err(b.unexpectedNullCharacter),this._emitChars(H);break}case i.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case i.LESS_THAN_SIGN:{this.state=l.RAWTEXT_LESS_THAN_SIGN;break}case i.NULL:{this._err(b.unexpectedNullCharacter),this._emitChars(H);break}case i.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case i.LESS_THAN_SIGN:{this.state=l.SCRIPT_DATA_LESS_THAN_SIGN;break}case i.NULL:{this._err(b.unexpectedNullCharacter),this._emitChars(H);break}case i.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case i.NULL:{this._err(b.unexpectedNullCharacter),this._emitChars(H);break}case i.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateTagOpen(e){if(De(e))this._createStartTagToken(),this.state=l.TAG_NAME,this._stateTagName(e);else switch(e){case i.EXCLAMATION_MARK:{this.state=l.MARKUP_DECLARATION_OPEN;break}case i.SOLIDUS:{this.state=l.END_TAG_OPEN;break}case i.QUESTION_MARK:{this._err(b.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=l.BOGUS_COMMENT,this._stateBogusComment(e);break}case i.EOF:{this._err(b.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(b.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=l.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(De(e))this._createEndTagToken(),this.state=l.TAG_NAME,this._stateTagName(e);else switch(e){case i.GREATER_THAN_SIGN:{this._err(b.missingEndTagName),this.state=l.DATA;break}case i.EOF:{this._err(b.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(b.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=l.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){let t=this.currentToken;switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this.state=l.BEFORE_ATTRIBUTE_NAME;break}case i.SOLIDUS:{this.state=l.SELF_CLOSING_START_TAG;break}case i.GREATER_THAN_SIGN:{this.state=l.DATA,this.emitCurrentTagToken();break}case i.NULL:{this._err(b.unexpectedNullCharacter),t.tagName+=H;break}case i.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:t.tagName+=String.fromCodePoint(ot(e)?Ht(e):e)}}_stateRcdataLessThanSign(e){if(e===i.SOLIDUS)this.state=l.RCDATA_END_TAG_OPEN;else this._emitChars("<"),this.state=l.RCDATA,this._stateRcdata(e)}_stateRcdataEndTagOpen(e){if(De(e))this.state=l.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e);else this._emitChars("</"),this.state=l.RCDATA,this._stateRcdata(e)}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();let t=this.currentToken;switch(t.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=l.BEFORE_ATTRIBUTE_NAME,!1;case i.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=l.SELF_CLOSING_START_TAG,!1;case i.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=l.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){if(this.handleSpecialEndTag(e))this._emitChars("</"),this.state=l.RCDATA,this._stateRcdata(e)}_stateRawtextLessThanSign(e){if(e===i.SOLIDUS)this.state=l.RAWTEXT_END_TAG_OPEN;else this._emitChars("<"),this.state=l.RAWTEXT,this._stateRawtext(e)}_stateRawtextEndTagOpen(e){if(De(e))this.state=l.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e);else this._emitChars("</"),this.state=l.RAWTEXT,this._stateRawtext(e)}_stateRawtextEndTagName(e){if(this.handleSpecialEndTag(e))this._emitChars("</"),this.state=l.RAWTEXT,this._stateRawtext(e)}_stateScriptDataLessThanSign(e){switch(e){case i.SOLIDUS:{this.state=l.SCRIPT_DATA_END_TAG_OPEN;break}case i.EXCLAMATION_MARK:{this.state=l.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=l.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){if(De(e))this.state=l.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e);else this._emitChars("</"),this.state=l.SCRIPT_DATA,this._stateScriptData(e)}_stateScriptDataEndTagName(e){if(this.handleSpecialEndTag(e))this._emitChars("</"),this.state=l.SCRIPT_DATA,this._stateScriptData(e)}_stateScriptDataEscapeStart(e){if(e===i.HYPHEN_MINUS)this.state=l.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-");else this.state=l.SCRIPT_DATA,this._stateScriptData(e)}_stateScriptDataEscapeStartDash(e){if(e===i.HYPHEN_MINUS)this.state=l.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");else this.state=l.SCRIPT_DATA,this._stateScriptData(e)}_stateScriptDataEscaped(e){switch(e){case i.HYPHEN_MINUS:{this.state=l.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case i.LESS_THAN_SIGN:{this.state=l.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case i.NULL:{this._err(b.unexpectedNullCharacter),this._emitChars(H);break}case i.EOF:{this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case i.HYPHEN_MINUS:{this.state=l.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case i.LESS_THAN_SIGN:{this.state=l.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case i.NULL:{this._err(b.unexpectedNullCharacter),this.state=l.SCRIPT_DATA_ESCAPED,this._emitChars(H);break}case i.EOF:{this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=l.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case i.HYPHEN_MINUS:{this._emitChars("-");break}case i.LESS_THAN_SIGN:{this.state=l.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case i.GREATER_THAN_SIGN:{this.state=l.SCRIPT_DATA,this._emitChars(">");break}case i.NULL:{this._err(b.unexpectedNullCharacter),this.state=l.SCRIPT_DATA_ESCAPED,this._emitChars(H);break}case i.EOF:{this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=l.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){if(e===i.SOLIDUS)this.state=l.SCRIPT_DATA_ESCAPED_END_TAG_OPEN;else if(De(e))this._emitChars("<"),this.state=l.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e);else this._emitChars("<"),this.state=l.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e)}_stateScriptDataEscapedEndTagOpen(e){if(De(e))this.state=l.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e);else this._emitChars("</"),this.state=l.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e)}_stateScriptDataEscapedEndTagName(e){if(this.handleSpecialEndTag(e))this._emitChars("</"),this.state=l.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e)}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(Z.SCRIPT,!1)&&Va(this.preprocessor.peek(Z.SCRIPT.length))){this._emitCodePoint(e);for(let t=0;t<Z.SCRIPT.length;t++)this._emitCodePoint(this._consume());this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED}else if(!this._ensureHibernation())this.state=l.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e)}_stateScriptDataDoubleEscaped(e){switch(e){case i.HYPHEN_MINUS:{this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case i.LESS_THAN_SIGN:{this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case i.NULL:{this._err(b.unexpectedNullCharacter),this._emitChars(H);break}case i.EOF:{this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case i.HYPHEN_MINUS:{this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case i.LESS_THAN_SIGN:{this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case i.NULL:{this._err(b.unexpectedNullCharacter),this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(H);break}case i.EOF:{this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case i.HYPHEN_MINUS:{this._emitChars("-");break}case i.LESS_THAN_SIGN:{this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case i.GREATER_THAN_SIGN:{this.state=l.SCRIPT_DATA,this._emitChars(">");break}case i.NULL:{this._err(b.unexpectedNullCharacter),this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(H);break}case i.EOF:{this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){if(e===i.SOLIDUS)this.state=l.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/");else this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e)}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(Z.SCRIPT,!1)&&Va(this.preprocessor.peek(Z.SCRIPT.length))){this._emitCodePoint(e);for(let t=0;t<Z.SCRIPT.length;t++)this._emitCodePoint(this._consume());this.state=l.SCRIPT_DATA_ESCAPED}else if(!this._ensureHibernation())this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e)}_stateBeforeAttributeName(e){switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.SOLIDUS:case i.GREATER_THAN_SIGN:case i.EOF:{this.state=l.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break}case i.EQUALS_SIGN:{this._err(b.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=l.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=l.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:case i.SOLIDUS:case i.GREATER_THAN_SIGN:case i.EOF:{this._leaveAttrName(),this.state=l.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break}case i.EQUALS_SIGN:{this._leaveAttrName(),this.state=l.BEFORE_ATTRIBUTE_VALUE;break}case i.QUOTATION_MARK:case i.APOSTROPHE:case i.LESS_THAN_SIGN:{this._err(b.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break}case i.NULL:{this._err(b.unexpectedNullCharacter),this.currentAttr.name+=H;break}default:this.currentAttr.name+=String.fromCodePoint(ot(e)?Ht(e):e)}}_stateAfterAttributeName(e){switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.SOLIDUS:{this.state=l.SELF_CLOSING_START_TAG;break}case i.EQUALS_SIGN:{this.state=l.BEFORE_ATTRIBUTE_VALUE;break}case i.GREATER_THAN_SIGN:{this.state=l.DATA,this.emitCurrentTagToken();break}case i.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=l.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.QUOTATION_MARK:{this.state=l.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case i.APOSTROPHE:{this.state=l.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case i.GREATER_THAN_SIGN:{this._err(b.missingAttributeValue),this.state=l.DATA,this.emitCurrentTagToken();break}default:this.state=l.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case i.QUOTATION_MARK:{this.state=l.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case i.AMPERSAND:{this._startCharacterReference();break}case i.NULL:{this._err(b.unexpectedNullCharacter),this.currentAttr.value+=H;break}case i.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case i.APOSTROPHE:{this.state=l.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case i.AMPERSAND:{this._startCharacterReference();break}case i.NULL:{this._err(b.unexpectedNullCharacter),this.currentAttr.value+=H;break}case i.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this._leaveAttrValue(),this.state=l.BEFORE_ATTRIBUTE_NAME;break}case i.AMPERSAND:{this._startCharacterReference();break}case i.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=l.DATA,this.emitCurrentTagToken();break}case i.NULL:{this._err(b.unexpectedNullCharacter),this.currentAttr.value+=H;break}case i.QUOTATION_MARK:case i.APOSTROPHE:case i.LESS_THAN_SIGN:case i.EQUALS_SIGN:case i.GRAVE_ACCENT:{this._err(b.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break}case i.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this._leaveAttrValue(),this.state=l.BEFORE_ATTRIBUTE_NAME;break}case i.SOLIDUS:{this._leaveAttrValue(),this.state=l.SELF_CLOSING_START_TAG;break}case i.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=l.DATA,this.emitCurrentTagToken();break}case i.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:this._err(b.missingWhitespaceBetweenAttributes),this.state=l.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case i.GREATER_THAN_SIGN:{let t=this.currentToken;t.selfClosing=!0,this.state=l.DATA,this.emitCurrentTagToken();break}case i.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:this._err(b.unexpectedSolidusInTag),this.state=l.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){let t=this.currentToken;switch(e){case i.GREATER_THAN_SIGN:{this.state=l.DATA,this.emitCurrentComment(t);break}case i.EOF:{this.emitCurrentComment(t),this._emitEOFToken();break}case i.NULL:{this._err(b.unexpectedNullCharacter),t.data+=H;break}default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){if(this._consumeSequenceIfMatch(Z.DASH_DASH,!0))this._createCommentToken(Z.DASH_DASH.length+1),this.state=l.COMMENT_START;else if(this._consumeSequenceIfMatch(Z.DOCTYPE,!1))this.currentLocation=this.getCurrentLocation(Z.DOCTYPE.length+1),this.state=l.DOCTYPE;else if(this._consumeSequenceIfMatch(Z.CDATA_START,!0))if(this.inForeignNode)this.state=l.CDATA_SECTION;else this._err(b.cdataInHtmlContent),this._createCommentToken(Z.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=l.BOGUS_COMMENT;else if(!this._ensureHibernation())this._err(b.incorrectlyOpenedComment),this._createCommentToken(2),this.state=l.BOGUS_COMMENT,this._stateBogusComment(e)}_stateCommentStart(e){switch(e){case i.HYPHEN_MINUS:{this.state=l.COMMENT_START_DASH;break}case i.GREATER_THAN_SIGN:{this._err(b.abruptClosingOfEmptyComment),this.state=l.DATA;let t=this.currentToken;this.emitCurrentComment(t);break}default:this.state=l.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){let t=this.currentToken;switch(e){case i.HYPHEN_MINUS:{this.state=l.COMMENT_END;break}case i.GREATER_THAN_SIGN:{this._err(b.abruptClosingOfEmptyComment),this.state=l.DATA,this.emitCurrentComment(t);break}case i.EOF:{this._err(b.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+="-",this.state=l.COMMENT,this._stateComment(e)}}_stateComment(e){let t=this.currentToken;switch(e){case i.HYPHEN_MINUS:{this.state=l.COMMENT_END_DASH;break}case i.LESS_THAN_SIGN:{t.data+="<",this.state=l.COMMENT_LESS_THAN_SIGN;break}case i.NULL:{this._err(b.unexpectedNullCharacter),t.data+=H;break}case i.EOF:{this._err(b.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){let t=this.currentToken;switch(e){case i.EXCLAMATION_MARK:{t.data+="!",this.state=l.COMMENT_LESS_THAN_SIGN_BANG;break}case i.LESS_THAN_SIGN:{t.data+="<";break}default:this.state=l.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){if(e===i.HYPHEN_MINUS)this.state=l.COMMENT_LESS_THAN_SIGN_BANG_DASH;else this.state=l.COMMENT,this._stateComment(e)}_stateCommentLessThanSignBangDash(e){if(e===i.HYPHEN_MINUS)this.state=l.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH;else this.state=l.COMMENT_END_DASH,this._stateCommentEndDash(e)}_stateCommentLessThanSignBangDashDash(e){if(e!==i.GREATER_THAN_SIGN&&e!==i.EOF)this._err(b.nestedComment);this.state=l.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){let t=this.currentToken;switch(e){case i.HYPHEN_MINUS:{this.state=l.COMMENT_END;break}case i.EOF:{this._err(b.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+="-",this.state=l.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){let t=this.currentToken;switch(e){case i.GREATER_THAN_SIGN:{this.state=l.DATA,this.emitCurrentComment(t);break}case i.EXCLAMATION_MARK:{this.state=l.COMMENT_END_BANG;break}case i.HYPHEN_MINUS:{t.data+="-";break}case i.EOF:{this._err(b.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+="--",this.state=l.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){let t=this.currentToken;switch(e){case i.HYPHEN_MINUS:{t.data+="--!",this.state=l.COMMENT_END_DASH;break}case i.GREATER_THAN_SIGN:{this._err(b.incorrectlyClosedComment),this.state=l.DATA,this.emitCurrentComment(t);break}case i.EOF:{this._err(b.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+="--!",this.state=l.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this.state=l.BEFORE_DOCTYPE_NAME;break}case i.GREATER_THAN_SIGN:{this.state=l.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break}case i.EOF:{this._err(b.eofInDoctype),this._createDoctypeToken(null);let t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(b.missingWhitespaceBeforeDoctypeName),this.state=l.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(ot(e))this._createDoctypeToken(String.fromCharCode(Ht(e))),this.state=l.DOCTYPE_NAME;else switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.NULL:{this._err(b.unexpectedNullCharacter),this._createDoctypeToken(H),this.state=l.DOCTYPE_NAME;break}case i.GREATER_THAN_SIGN:{this._err(b.missingDoctypeName),this._createDoctypeToken(null);let t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=l.DATA;break}case i.EOF:{this._err(b.eofInDoctype),this._createDoctypeToken(null);let t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=l.DOCTYPE_NAME}}_stateDoctypeName(e){let t=this.currentToken;switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this.state=l.AFTER_DOCTYPE_NAME;break}case i.GREATER_THAN_SIGN:{this.state=l.DATA,this.emitCurrentDoctype(t);break}case i.NULL:{this._err(b.unexpectedNullCharacter),t.name+=H;break}case i.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.name+=String.fromCodePoint(ot(e)?Ht(e):e)}}_stateAfterDoctypeName(e){let t=this.currentToken;switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.GREATER_THAN_SIGN:{this.state=l.DATA,this.emitCurrentDoctype(t);break}case i.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:if(this._consumeSequenceIfMatch(Z.PUBLIC,!1))this.state=l.AFTER_DOCTYPE_PUBLIC_KEYWORD;else if(this._consumeSequenceIfMatch(Z.SYSTEM,!1))this.state=l.AFTER_DOCTYPE_SYSTEM_KEYWORD;else if(!this._ensureHibernation())this._err(b.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypePublicKeyword(e){let t=this.currentToken;switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this.state=l.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case i.QUOTATION_MARK:{this._err(b.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=l.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case i.APOSTROPHE:{this._err(b.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=l.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case i.GREATER_THAN_SIGN:{this._err(b.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=l.DATA,this.emitCurrentDoctype(t);break}case i.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(b.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.QUOTATION_MARK:{t.publicId="",this.state=l.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case i.APOSTROPHE:{t.publicId="",this.state=l.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case i.GREATER_THAN_SIGN:{this._err(b.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=l.DATA,this.emitCurrentDoctype(t);break}case i.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(b.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case i.QUOTATION_MARK:{this.state=l.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case i.NULL:{this._err(b.unexpectedNullCharacter),t.publicId+=H;break}case i.GREATER_THAN_SIGN:{this._err(b.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=l.DATA;break}case i.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case i.APOSTROPHE:{this.state=l.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case i.NULL:{this._err(b.unexpectedNullCharacter),t.publicId+=H;break}case i.GREATER_THAN_SIGN:{this._err(b.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=l.DATA;break}case i.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this.state=l.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case i.GREATER_THAN_SIGN:{this.state=l.DATA,this.emitCurrentDoctype(t);break}case i.QUOTATION_MARK:{this._err(b.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case i.APOSTROPHE:{this._err(b.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case i.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(b.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){let t=this.currentToken;switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t),this.state=l.DATA;break}case i.QUOTATION_MARK:{t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case i.APOSTROPHE:{t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case i.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(b.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){let t=this.currentToken;switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this.state=l.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case i.QUOTATION_MARK:{this._err(b.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case i.APOSTROPHE:{this._err(b.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case i.GREATER_THAN_SIGN:{this._err(b.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=l.DATA,this.emitCurrentDoctype(t);break}case i.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(b.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.QUOTATION_MARK:{t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case i.APOSTROPHE:{t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case i.GREATER_THAN_SIGN:{this._err(b.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=l.DATA,this.emitCurrentDoctype(t);break}case i.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(b.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case i.QUOTATION_MARK:{this.state=l.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case i.NULL:{this._err(b.unexpectedNullCharacter),t.systemId+=H;break}case i.GREATER_THAN_SIGN:{this._err(b.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=l.DATA;break}case i.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case i.APOSTROPHE:{this.state=l.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case i.NULL:{this._err(b.unexpectedNullCharacter),t.systemId+=H;break}case i.GREATER_THAN_SIGN:{this._err(b.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=l.DATA;break}case i.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t),this.state=l.DATA;break}case i.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(b.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){let t=this.currentToken;switch(e){case i.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t),this.state=l.DATA;break}case i.NULL:{this._err(b.unexpectedNullCharacter);break}case i.EOF:{this.emitCurrentDoctype(t),this._emitEOFToken();break}default:}}_stateCdataSection(e){switch(e){case i.RIGHT_SQUARE_BRACKET:{this.state=l.CDATA_SECTION_BRACKET;break}case i.EOF:{this._err(b.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){if(e===i.RIGHT_SQUARE_BRACKET)this.state=l.CDATA_SECTION_END;else this._emitChars("]"),this.state=l.CDATA_SECTION,this._stateCdataSection(e)}_stateCdataSectionEnd(e){switch(e){case i.GREATER_THAN_SIGN:{this.state=l.DATA;break}case i.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=l.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0)if(this.preprocessor.lastChunkWritten)e=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}if(e===0)this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(i.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Ka(this.preprocessor.peek(1))?l.AMBIGUOUS_AMPERSAND:this.returnState;else this.state=this.returnState}_stateAmbiguousAmpersand(e){if(Ka(e))this._flushCodePointConsumedAsCharacterReference(e);else{if(e===i.SEMICOLON)this._err(b.unknownNamedCharacterReference);this.state=this.returnState,this._callState(e)}}}var Ja=new Set([a.DD,a.DT,a.LI,a.OPTGROUP,a.OPTION,a.P,a.RB,a.RP,a.RT,a.RTC]),Ga=new Set([...Ja,a.CAPTION,a.COLGROUP,a.TBODY,a.TD,a.TFOOT,a.TH,a.THEAD,a.TR]),Ft=new Set([a.APPLET,a.CAPTION,a.HTML,a.MARQUEE,a.OBJECT,a.TABLE,a.TD,a.TEMPLATE,a.TH]),Fs=new Set([...Ft,a.OL,a.UL]),$s=new Set([...Ft,a.BUTTON]),Qa=new Set([a.ANNOTATION_XML,a.MI,a.MN,a.MO,a.MS,a.MTEXT]),Xa=new Set([a.DESC,a.FOREIGN_OBJECT,a.TITLE]),Ys=new Set([a.TR,a.TEMPLATE,a.HTML]),js=new Set([a.TBODY,a.TFOOT,a.THEAD,a.TEMPLATE,a.HTML]),Ks=new Set([a.TABLE,a.TEMPLATE,a.HTML]),Vs=new Set([a.TD,a.TH]);class vn{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=a.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===a.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===_.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){if(this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate())this.tmplCount++;this.handler.onItemPush(e,t,!0)}pop(){let e=this.current;if(this.tmplCount>0&&this._isInTemplate())this.tmplCount--;this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let n=this._indexOf(e);if(this.items[n]=t,n===this.stackTop)this.current=t}insertAfter(e,t,n){let r=this._indexOf(e)+1;if(this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop)this._updateCurrentElement();if(this.current&&this.currentTagId!==void 0)this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==_.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){while(this.stackTop>=e){let t=this.current;if(this.tmplCount>0&&this._isInTemplate())this.tmplCount-=1;this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){let t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(at,_.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Vs,_.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(Ks,_.HTML)}clearBackToTableBodyContext(){this.clearBackTo(js,_.HTML)}clearBackToTableRowContext(){this.clearBackTo(Ys,_.HTML)}remove(e){let t=this._indexOf(e);if(t>=0)if(t===this.stackTop)this.pop();else this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===a.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===a.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){let r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case _.HTML:{if(r===e)return!0;if(t.has(r))return!1;break}case _.SVG:{if(Xa.has(r))return!1;break}case _.MATHML:{if(Qa.has(r))return!1;break}}}return!0}hasInScope(e){return this.hasInDynamicScope(e,Ft)}hasInListItemScope(e){return this.hasInDynamicScope(e,Fs)}hasInButtonScope(e){return this.hasInDynamicScope(e,$s)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case _.HTML:{if(at.has(t))return!0;if(Ft.has(t))return!1;break}case _.SVG:{if(Xa.has(t))return!1;break}case _.MATHML:{if(Qa.has(t))return!1;break}}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){if(this.treeAdapter.getNamespaceURI(this.items[t])!==_.HTML)continue;switch(this.tagIDs[t]){case e:return!0;case a.TABLE:case a.HTML:return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){if(this.treeAdapter.getNamespaceURI(this.items[e])!==_.HTML)continue;switch(this.tagIDs[e]){case a.TBODY:case a.THEAD:case a.TFOOT:return!0;case a.TABLE:case a.HTML:return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){if(this.treeAdapter.getNamespaceURI(this.items[t])!==_.HTML)continue;switch(this.tagIDs[t]){case e:return!0;case a.OPTION:case a.OPTGROUP:break;default:return!1}}return!0}generateImpliedEndTags(){while(this.currentTagId!==void 0&&Ja.has(this.currentTagId))this.pop()}generateImpliedEndTagsThoroughly(){while(this.currentTagId!==void 0&&Ga.has(this.currentTagId))this.pop()}generateImpliedEndTagsWithExclusion(e){while(this.currentTagId!==void 0&&this.currentTagId!==e&&Ga.has(this.currentTagId))this.pop()}}var ie;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ie||(ie={}));var za={type:ie.Marker};class wn{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let n=[],r=t.length,o=this.treeAdapter.getTagName(e),s=this.treeAdapter.getNamespaceURI(e);for(let c=0;c<this.entries.length;c++){let f=this.entries[c];if(f.type===ie.Marker)break;let{element:h}=f;if(this.treeAdapter.getTagName(h)===o&&this.treeAdapter.getNamespaceURI(h)===s){let A=this.treeAdapter.getAttrList(h);if(A.length===r)n.push({idx:c,attrs:A})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;let t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<3)return;let r=new Map(t.map((s)=>[s.name,s.value])),o=0;for(let s=0;s<n.length;s++){let c=n[s];if(c.attrs.every((f)=>r.get(f.name)===f.value)){if(o+=1,o>=3)this.entries.splice(c.idx,1)}}}insertMarker(){this.entries.unshift(za)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:ie.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:ie.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);if(t!==-1)this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(za);if(e===-1)this.entries.length=0;else this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){let t=this.entries.find((n)=>n.type===ie.Marker||this.treeAdapter.getTagName(n.element)===e);return t&&t.type===ie.Element?t:null}getElementEntry(e){return this.entries.find((t)=>t.type===ie.Element&&t.element===e)}}var ue={createDocument(){return{nodeName:"#document",mode:ee.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){let r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){let o=e.childNodes.find((s)=>s.nodeName==="#documentType");if(o)o.name=t,o.publicId=n,o.systemId=r;else{let s={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};ue.appendChild(e,s)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let n=e.childNodes[e.childNodes.length-1];if(ue.isTextNode(n)){n.value+=t;return}}ue.appendChild(e,ue.createTextNode(t))},insertTextBefore(e,t,n){let r=e.childNodes[e.childNodes.indexOf(n)-1];if(r&&ue.isTextNode(r))r.value+=t;else ue.insertBefore(e,ue.createTextNode(t),n)},adoptAttributes(e,t){let n=new Set(e.attrs.map((r)=>r.name));for(let r=0;r<t.length;r++)if(!n.has(t[r].name))e.attrs.push(t[r])},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}}};var er="html",qs="about:legacy-compat",Ws="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",tr=["+//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//"],Gs=[...tr,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Qs=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),nr=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Xs=[...nr,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Za(e,t){return t.some((n)=>e.startsWith(n))}function ar(e){return e.name===er&&e.publicId===null&&(e.systemId===null||e.systemId===qs)}function rr(e){if(e.name!==er)return ee.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===Ws)return ee.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),Qs.has(n))return ee.QUIRKS;let r=t===null?Gs:tr;if(Za(n,r))return ee.QUIRKS;if(r=t===null?nr:Xs,Za(n,r))return ee.LIMITED_QUIRKS}return ee.NO_QUIRKS}var or={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},zs="definitionurl",Zs="definitionURL",ei=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])),ti=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:_.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:_.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:_.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:_.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:_.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:_.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:_.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:_.XML}],["xml:space",{prefix:"xml",name:"space",namespace:_.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:_.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:_.XMLNS}]]),ni=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])),ai=new Set([a.B,a.BIG,a.BLOCKQUOTE,a.BODY,a.BR,a.CENTER,a.CODE,a.DD,a.DIV,a.DL,a.DT,a.EM,a.EMBED,a.H1,a.H2,a.H3,a.H4,a.H5,a.H6,a.HEAD,a.HR,a.I,a.IMG,a.LI,a.LISTING,a.MENU,a.META,a.NOBR,a.OL,a.P,a.PRE,a.RUBY,a.S,a.SMALL,a.SPAN,a.STRONG,a.STRIKE,a.SUB,a.SUP,a.TABLE,a.TT,a.U,a.UL,a.VAR]);function sr(e){let t=e.tagID;return t===a.FONT&&e.attrs.some(({name:r})=>r===ye.COLOR||r===ye.SIZE||r===ye.FACE)||ai.has(t)}function kn(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===zs){e.attrs[t].name=Zs;break}}function Pn(e){for(let t=0;t<e.attrs.length;t++){let n=ei.get(e.attrs[t].name);if(n!=null)e.attrs[t].name=n}}function $t(e){for(let t=0;t<e.attrs.length;t++){let n=ti.get(e.attrs[t].name);if(n)e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace}}function ir(e){let t=ni.get(e.tagName);if(t!=null)e.tagName=t,e.tagID=Me(e.tagName)}function ri(e,t){return t===_.MATHML&&(e===a.MI||e===a.MO||e===a.MN||e===a.MS||e===a.MTEXT)}function oi(e,t,n){if(t===_.MATHML&&e===a.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===ye.ENCODING){let o=n[r].value.toLowerCase();return o===or.TEXT_HTML||o===or.APPLICATION_XML}}return t===_.SVG&&(e===a.FOREIGN_OBJECT||e===a.DESC||e===a.TITLE)}function ur(e,t,n,r){return(!r||r===_.HTML)&&oi(e,t,n)||(!r||r===_.MATHML)&&ri(e,t)}var si="hidden",ii=8,ui=3,d;(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"})(d||(d={}));var ci={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},mr=new Set([a.TABLE,a.TBODY,a.TFOOT,a.THEAD,a.TR]),lr={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:ue,onParseError:null};class Et{constructor(e,t,n=null,r=null){if(this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=d.INITIAL,this.originalInsertionMode=d.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={...lr,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError)this.options.sourceCodeLocationInfo=!0;this.document=t!==null&&t!==void 0?t:this.treeAdapter.createDocument(),this.tokenizer=new Ut(this.options,this),this.activeFormattingElements=new wn(this.treeAdapter),this.fragmentContextID=n?Me(this.treeAdapter.getTagName(n)):a.UNKNOWN,this._setContextModes(n!==null&&n!==void 0?n:this.document,this.fragmentContextID),this.openElements=new vn(this.document,this.treeAdapter,this)}static parse(e,t){let n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){let n={...lr,...t};e!==null&&e!==void 0||(e=n.treeAdapter.createElement(E.TEMPLATE,_.HTML,[]));let r=n.treeAdapter.createElement("documentmock",_.HTML,[]),o=new this(n,r,e);if(o.fragmentContextID===a.TEMPLATE)o.tmplInsertionModeStack.unshift(d.IN_TEMPLATE);return o._initTokenizerForFragmentParsing(),o._insertFakeRootElement(),o._resetInsertionMode(),o._findFormInFragmentContext(),o}getFragment(){let e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return;let o=(r=e.location)!==null&&r!==void 0?r:ci,s={code:t,startLine:o.startLine,startCol:o.startCol,startOffset:o.startOffset,endLine:n?o.startLine:o.endLine,endCol:n?o.startCol:o.endCol,endOffset:n?o.startOffset:o.endOffset};this.onParseError(s)}onItemPush(e,t,n){var r,o;if((o=(r=this.treeAdapter).onItemPush)===null||o===void 0||o.call(r,e),n&&this.openElements.stackTop>0)this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo)this._setEndLocation(e,this.currentToken);if((r=(n=this.treeAdapter).onItemPop)===null||r===void 0||r.call(n,e,this.openElements.current),t){let o,s;if(this.openElements.stackTop===0&&this.fragmentContext)o=this.fragmentContext,s=this.fragmentContextID;else({current:o,currentTagId:s}=this.openElements);this._setContextModes(o,s)}}_setContextModes(e,t){let n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===_.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&e!==void 0&&t!==void 0&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,_.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=d.TEXT}switchToPlaintextParsing(){this.insertionMode=d.TEXT,this.originalInsertionMode=d.IN_BODY,this.tokenizer.state=J.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;while(e){if(this.treeAdapter.getTagName(e)===E.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==_.HTML)return;switch(this.fragmentContextID){case a.TITLE:case a.TEXTAREA:{this.tokenizer.state=J.RCDATA;break}case a.STYLE:case a.XMP:case a.IFRAME:case a.NOEMBED:case a.NOFRAMES:case a.NOSCRIPT:{this.tokenizer.state=J.RAWTEXT;break}case a.SCRIPT:{this.tokenizer.state=J.SCRIPT_DATA;break}case a.PLAINTEXT:{this.tokenizer.state=J.PLAINTEXT;break}default:}}_setDocumentType(e){let t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){let s=this.treeAdapter.getChildNodes(this.document).find((c)=>this.treeAdapter.isDocumentTypeNode(c));if(s)this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let n=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(n!==null&&n!==void 0?n:this.document,e)}}_appendElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){let n=this.treeAdapter.createElement(e,_.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,_.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();if(this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo)this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(E.HTML,_.HTML,[]);if(this.options.sourceCodeLocationInfo)this.treeAdapter.setNodeSourceCodeLocation(e,null);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,a.HTML)}_appendCommentNode(e,t){let n=this.treeAdapter.createCommentNode(e.data);if(this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo)this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion())if({parent:t,beforeElement:n}=this._findFosterParentingLocation(),n)this.treeAdapter.insertTextBefore(t,e.chars,n);else this.treeAdapter.insertText(t,e.chars);else t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars);if(!e.location)return;let r=this.treeAdapter.getChildNodes(t),o=n?r.lastIndexOf(n):r.length,s=r[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){let{endLine:f,endCol:h,endOffset:A}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:f,endCol:h,endOffset:A})}else if(this.options.sourceCodeLocationInfo)this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let n=t.location,r=this.treeAdapter.getTagName(e),o=t.type===w.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,o)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;if(this.openElements.stackTop===0&&this.fragmentContext)t=this.fragmentContext,n=this.fragmentContextID;else({current:t,currentTagId:n}=this.openElements);if(e.tagID===a.SVG&&this.treeAdapter.getTagName(t)===E.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(t)===_.MATHML)return!1;return this.tokenizer.inForeignNode||(e.tagID===a.MGLYPH||e.tagID===a.MALIGNMARK)&&n!==void 0&&!this._isIntegrationPoint(n,t,_.HTML)}_processToken(e){switch(e.type){case w.CHARACTER:{this.onCharacter(e);break}case w.NULL_CHARACTER:{this.onNullCharacter(e);break}case w.COMMENT:{this.onComment(e);break}case w.DOCTYPE:{this.onDoctype(e);break}case w.START_TAG:{this._processStartTag(e);break}case w.END_TAG:{this.onEndTag(e);break}case w.EOF:{this.onEof(e);break}case w.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(e);break}}}_isIntegrationPoint(e,t,n){let r=this.treeAdapter.getNamespaceURI(t),o=this.treeAdapter.getAttrList(t);return ur(e,r,o,n)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let t=this.activeFormattingElements.entries.findIndex((r)=>r.type===ie.Marker||this.openElements.contains(r.element)),n=t===-1?e-1:t-1;for(let r=n;r>=0;r--){let o=this.activeFormattingElements.entries[r];this._insertElement(o.token,this.treeAdapter.getNamespaceURI(o.element)),o.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=d.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(a.P),this.openElements.popUntilTagNamePopped(a.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case a.TR:{this.insertionMode=d.IN_ROW;return}case a.TBODY:case a.THEAD:case a.TFOOT:{this.insertionMode=d.IN_TABLE_BODY;return}case a.CAPTION:{this.insertionMode=d.IN_CAPTION;return}case a.COLGROUP:{this.insertionMode=d.IN_COLUMN_GROUP;return}case a.TABLE:{this.insertionMode=d.IN_TABLE;return}case a.BODY:{this.insertionMode=d.IN_BODY;return}case a.FRAMESET:{this.insertionMode=d.IN_FRAMESET;return}case a.SELECT:{this._resetInsertionModeForSelect(e);return}case a.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case a.HTML:{this.insertionMode=this.headElement?d.AFTER_HEAD:d.BEFORE_HEAD;return}case a.TD:case a.TH:{if(e>0){this.insertionMode=d.IN_CELL;return}break}case a.HEAD:{if(e>0){this.insertionMode=d.IN_HEAD;return}break}}this.insertionMode=d.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let n=this.openElements.tagIDs[t];if(n===a.TEMPLATE)break;else if(n===a.TABLE){this.insertionMode=d.IN_SELECT_IN_TABLE;return}}this.insertionMode=d.IN_SELECT}_isElementCausesFosterParenting(e){return mr.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case a.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(t)===_.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break}case a.TABLE:{let n=this.treeAdapter.getParentNode(t);if(n)return{parent:n,beforeElement:t};return{parent:this.openElements.items[e-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();if(t.beforeElement)this.treeAdapter.insertBefore(t.parent,e,t.beforeElement);else this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){let n=this.treeAdapter.getNamespaceURI(e);return ja[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){qu(this,e);return}switch(this.insertionMode){case d.INITIAL:{it(this,e);break}case d.BEFORE_HTML:{ct(this,e);break}case d.BEFORE_HEAD:{lt(this,e);break}case d.IN_HEAD:{dt(this,e);break}case d.IN_HEAD_NO_SCRIPT:{ft(this,e);break}case d.AFTER_HEAD:{mt(this,e);break}case d.IN_BODY:case d.IN_CAPTION:case d.IN_CELL:case d.IN_TEMPLATE:{Er(this,e);break}case d.TEXT:case d.IN_SELECT:case d.IN_SELECT_IN_TABLE:{this._insertCharacters(e);break}case d.IN_TABLE:case d.IN_TABLE_BODY:case d.IN_ROW:{Mn(this,e);break}case d.IN_TABLE_TEXT:{yr(this,e);break}case d.IN_COLUMN_GROUP:{jt(this,e);break}case d.AFTER_BODY:{Kt(this,e);break}case d.AFTER_AFTER_BODY:{Yt(this,e);break}default:}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Ku(this,e);return}switch(this.insertionMode){case d.INITIAL:{it(this,e);break}case d.BEFORE_HTML:{ct(this,e);break}case d.BEFORE_HEAD:{lt(this,e);break}case d.IN_HEAD:{dt(this,e);break}case d.IN_HEAD_NO_SCRIPT:{ft(this,e);break}case d.AFTER_HEAD:{mt(this,e);break}case d.TEXT:{this._insertCharacters(e);break}case d.IN_TABLE:case d.IN_TABLE_BODY:case d.IN_ROW:{Mn(this,e);break}case d.IN_COLUMN_GROUP:{jt(this,e);break}case d.AFTER_BODY:{Kt(this,e);break}case d.AFTER_AFTER_BODY:{Yt(this,e);break}default:}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){Bn(this,e);return}switch(this.insertionMode){case d.INITIAL:case d.BEFORE_HTML:case d.BEFORE_HEAD:case d.IN_HEAD:case d.IN_HEAD_NO_SCRIPT:case d.AFTER_HEAD:case d.IN_BODY:case d.IN_TABLE:case d.IN_CAPTION:case d.IN_COLUMN_GROUP:case d.IN_TABLE_BODY:case d.IN_ROW:case d.IN_CELL:case d.IN_SELECT:case d.IN_SELECT_IN_TABLE:case d.IN_TEMPLATE:case d.IN_FRAMESET:case d.AFTER_FRAMESET:{Bn(this,e);break}case d.IN_TABLE_TEXT:{ut(this,e);break}case d.AFTER_BODY:{Ei(this,e);break}case d.AFTER_AFTER_BODY:case d.AFTER_AFTER_FRAMESET:{bi(this,e);break}default:}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case d.INITIAL:{Ti(this,e);break}case d.BEFORE_HEAD:case d.IN_HEAD:case d.IN_HEAD_NO_SCRIPT:case d.AFTER_HEAD:{this._err(e,b.misplacedDoctype);break}case d.IN_TABLE_TEXT:{ut(this,e);break}default:}}onStartTag(e){if(this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing)this._err(e,b.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){if(this.shouldProcessStartTagTokenInForeignContent(e))Wu(this,e);else this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case d.INITIAL:{it(this,e);break}case d.BEFORE_HTML:{Ai(this,e);break}case d.BEFORE_HEAD:{yi(this,e);break}case d.IN_HEAD:{ce(this,e);break}case d.IN_HEAD_NO_SCRIPT:{Si(this,e);break}case d.AFTER_HEAD:{Ii(this,e);break}case d.IN_BODY:{z(this,e);break}case d.IN_TABLE:{We(this,e);break}case d.IN_TABLE_TEXT:{ut(this,e);break}case d.IN_CAPTION:{Nu(this,e);break}case d.IN_COLUMN_GROUP:{$n(this,e);break}case d.IN_TABLE_BODY:{Wt(this,e);break}case d.IN_ROW:{Gt(this,e);break}case d.IN_CELL:{Ru(this,e);break}case d.IN_SELECT:{Sr(this,e);break}case d.IN_SELECT_IN_TABLE:{Du(this,e);break}case d.IN_TEMPLATE:{Pu(this,e);break}case d.AFTER_BODY:{Bu(this,e);break}case d.IN_FRAMESET:{Hu(this,e);break}case d.AFTER_FRAMESET:{Fu(this,e);break}case d.AFTER_AFTER_BODY:{Yu(this,e);break}case d.AFTER_AFTER_FRAMESET:{ju(this,e);break}default:}}onEndTag(e){if(this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML)Gu(this,e);else this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case d.INITIAL:{it(this,e);break}case d.BEFORE_HTML:{_i(this,e);break}case d.BEFORE_HEAD:{Ci(this,e);break}case d.IN_HEAD:{xi(this,e);break}case d.IN_HEAD_NO_SCRIPT:{Ni(this,e);break}case d.AFTER_HEAD:{Li(this,e);break}case d.IN_BODY:{qt(this,e);break}case d.TEXT:{pu(this,e);break}case d.IN_TABLE:{pt(this,e);break}case d.IN_TABLE_TEXT:{ut(this,e);break}case d.IN_CAPTION:{Iu(this,e);break}case d.IN_COLUMN_GROUP:{Lu(this,e);break}case d.IN_TABLE_BODY:{Hn(this,e);break}case d.IN_ROW:{xr(this,e);break}case d.IN_CELL:{Ou(this,e);break}case d.IN_SELECT:{Nr(this,e);break}case d.IN_SELECT_IN_TABLE:{ku(this,e);break}case d.IN_TEMPLATE:{Mu(this,e);break}case d.AFTER_BODY:{Lr(this,e);break}case d.IN_FRAMESET:{Uu(this,e);break}case d.AFTER_FRAMESET:{$u(this,e);break}case d.AFTER_AFTER_BODY:{Yt(this,e);break}default:}}onEof(e){switch(this.insertionMode){case d.INITIAL:{it(this,e);break}case d.BEFORE_HTML:{ct(this,e);break}case d.BEFORE_HEAD:{lt(this,e);break}case d.IN_HEAD:{dt(this,e);break}case d.IN_HEAD_NO_SCRIPT:{ft(this,e);break}case d.AFTER_HEAD:{mt(this,e);break}case d.IN_BODY:case d.IN_TABLE:case d.IN_CAPTION:case d.IN_COLUMN_GROUP:case d.IN_TABLE_BODY:case d.IN_ROW:case d.IN_CELL:case d.IN_SELECT:case d.IN_SELECT_IN_TABLE:{Ar(this,e);break}case d.TEXT:{Eu(this,e);break}case d.IN_TABLE_TEXT:{ut(this,e);break}case d.IN_TEMPLATE:{Ir(this,e);break}case d.AFTER_BODY:case d.IN_FRAMESET:case d.AFTER_FRAMESET:case d.AFTER_AFTER_BODY:case d.AFTER_AFTER_FRAMESET:{Fn(this,e);break}default:}}onWhitespaceCharacter(e){if(this.skipNextNewLine){if(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===i.LINE_FEED){if(e.chars.length===1)return;e.chars=e.chars.substr(1)}}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case d.IN_HEAD:case d.IN_HEAD_NO_SCRIPT:case d.AFTER_HEAD:case d.TEXT:case d.IN_COLUMN_GROUP:case d.IN_SELECT:case d.IN_SELECT_IN_TABLE:case d.IN_FRAMESET:case d.AFTER_FRAMESET:{this._insertCharacters(e);break}case d.IN_BODY:case d.IN_CAPTION:case d.IN_CELL:case d.IN_TEMPLATE:case d.AFTER_BODY:case d.AFTER_AFTER_BODY:case d.AFTER_AFTER_FRAMESET:{hr(this,e);break}case d.IN_TABLE:case d.IN_TABLE_BODY:case d.IN_ROW:{Mn(this,e);break}case d.IN_TABLE_TEXT:{_r(this,e);break}default:}}}function li(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);if(n){if(!e.openElements.contains(n.element))e.activeFormattingElements.removeEntry(n),n=null;else if(!e.openElements.hasInScope(t.tagID))n=null}else Tr(e,t);return n}function di(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){let o=e.openElements.items[r];if(o===t.element)break;if(e._isSpecialElement(o,e.openElements.tagIDs[r]))n=o}if(!n)e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t);return n}function fi(e,t,n){let r=t,o=e.openElements.getCommonAncestor(t);for(let s=0,c=o;c!==n;s++,c=o){o=e.openElements.getCommonAncestor(c);let f=e.activeFormattingElements.getElementEntry(c),h=f&&s>=ui;if(!f||h){if(h)e.activeFormattingElements.removeEntry(f);e.openElements.remove(c)}else{if(c=mi(e,f),r===t)e.activeFormattingElements.bookmark=f;e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(c,r),r=c}}return r}function mi(e,t){let n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function hi(e,t,n){let r=e.treeAdapter.getTagName(t),o=Me(r);if(e._isElementCausesFosterParenting(o))e._fosterParentElement(n);else{let s=e.treeAdapter.getNamespaceURI(t);if(o===a.TEMPLATE&&s===_.HTML)t=e.treeAdapter.getTemplateContent(t);e.treeAdapter.appendChild(t,n)}}function pi(e,t,n){let r=e.treeAdapter.getNamespaceURI(n.element),{token:o}=n,s=e.treeAdapter.createElement(o.tagName,r,o.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,o),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,s,o.tagID)}function Un(e,t){for(let n=0;n<ii;n++){let r=li(e,t);if(!r)break;let o=di(e,r);if(!o)break;e.activeFormattingElements.bookmark=r;let s=fi(e,o,r.element),c=e.openElements.getCommonAncestor(r.element);if(e.treeAdapter.detachNode(s),c)hi(e,c,s);pi(e,o,r)}}function Bn(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Ei(e,t){e._appendCommentNode(t,e.openElements.items[0])}function bi(e,t){e._appendCommentNode(t,e.document)}function Fn(e,t){if(e.stopped=!0,t.location){let n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let r=e.openElements.items[0],o=e.treeAdapter.getNodeSourceCodeLocation(r);if(o&&!o.endTag){if(e._setEndLocation(r,t),e.openElements.stackTop>=1){let s=e.openElements.items[1],c=e.treeAdapter.getNodeSourceCodeLocation(s);if(c&&!c.endTag)e._setEndLocation(s,t)}}}}}function Ti(e,t){e._setDocumentType(t);let n=t.forceQuirks?ee.QUIRKS:rr(t);if(!ar(t))e._err(t,b.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=d.BEFORE_HTML}function it(e,t){e._err(t,b.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ee.QUIRKS),e.insertionMode=d.BEFORE_HTML,e._processToken(t)}function Ai(e,t){if(t.tagID===a.HTML)e._insertElement(t,_.HTML),e.insertionMode=d.BEFORE_HEAD;else ct(e,t)}function _i(e,t){let n=t.tagID;if(n===a.HTML||n===a.HEAD||n===a.BODY||n===a.BR)ct(e,t)}function ct(e,t){e._insertFakeRootElement(),e.insertionMode=d.BEFORE_HEAD,e._processToken(t)}function yi(e,t){switch(t.tagID){case a.HTML:{z(e,t);break}case a.HEAD:{e._insertElement(t,_.HTML),e.headElement=e.openElements.current,e.insertionMode=d.IN_HEAD;break}default:lt(e,t)}}function Ci(e,t){let n=t.tagID;if(n===a.HEAD||n===a.BODY||n===a.HTML||n===a.BR)lt(e,t);else e._err(t,b.endTagWithoutMatchingOpenElement)}function lt(e,t){e._insertFakeElement(E.HEAD,a.HEAD),e.headElement=e.openElements.current,e.insertionMode=d.IN_HEAD,e._processToken(t)}function ce(e,t){switch(t.tagID){case a.HTML:{z(e,t);break}case a.BASE:case a.BASEFONT:case a.BGSOUND:case a.LINK:case a.META:{e._appendElement(t,_.HTML),t.ackSelfClosing=!0;break}case a.TITLE:{e._switchToTextParsing(t,J.RCDATA);break}case a.NOSCRIPT:{if(e.options.scriptingEnabled)e._switchToTextParsing(t,J.RAWTEXT);else e._insertElement(t,_.HTML),e.insertionMode=d.IN_HEAD_NO_SCRIPT;break}case a.NOFRAMES:case a.STYLE:{e._switchToTextParsing(t,J.RAWTEXT);break}case a.SCRIPT:{e._switchToTextParsing(t,J.SCRIPT_DATA);break}case a.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=d.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(d.IN_TEMPLATE);break}case a.HEAD:{e._err(t,b.misplacedStartTagForHeadElement);break}default:dt(e,t)}}function xi(e,t){switch(t.tagID){case a.HEAD:{e.openElements.pop(),e.insertionMode=d.AFTER_HEAD;break}case a.BODY:case a.BR:case a.HTML:{dt(e,t);break}case a.TEMPLATE:{Be(e,t);break}default:e._err(t,b.endTagWithoutMatchingOpenElement)}}function Be(e,t){if(e.openElements.tmplCount>0){if(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==a.TEMPLATE)e._err(t,b.closingOfElementWithOpenChildElements);e.openElements.popUntilTagNamePopped(a.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()}else e._err(t,b.endTagWithoutMatchingOpenElement)}function dt(e,t){e.openElements.pop(),e.insertionMode=d.AFTER_HEAD,e._processToken(t)}function Si(e,t){switch(t.tagID){case a.HTML:{z(e,t);break}case a.BASEFONT:case a.BGSOUND:case a.HEAD:case a.LINK:case a.META:case a.NOFRAMES:case a.STYLE:{ce(e,t);break}case a.NOSCRIPT:{e._err(t,b.nestedNoscriptInHead);break}default:ft(e,t)}}function Ni(e,t){switch(t.tagID){case a.NOSCRIPT:{e.openElements.pop(),e.insertionMode=d.IN_HEAD;break}case a.BR:{ft(e,t);break}default:e._err(t,b.endTagWithoutMatchingOpenElement)}}function ft(e,t){let n=t.type===w.EOF?b.openElementsLeftAfterEof:b.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=d.IN_HEAD,e._processToken(t)}function Ii(e,t){switch(t.tagID){case a.HTML:{z(e,t);break}case a.BODY:{e._insertElement(t,_.HTML),e.framesetOk=!1,e.insertionMode=d.IN_BODY;break}case a.FRAMESET:{e._insertElement(t,_.HTML),e.insertionMode=d.IN_FRAMESET;break}case a.BASE:case a.BASEFONT:case a.BGSOUND:case a.LINK:case a.META:case a.NOFRAMES:case a.SCRIPT:case a.STYLE:case a.TEMPLATE:case a.TITLE:{e._err(t,b.abandonedHeadElementChild),e.openElements.push(e.headElement,a.HEAD),ce(e,t),e.openElements.remove(e.headElement);break}case a.HEAD:{e._err(t,b.misplacedStartTagForHeadElement);break}default:mt(e,t)}}function Li(e,t){switch(t.tagID){case a.BODY:case a.HTML:case a.BR:{mt(e,t);break}case a.TEMPLATE:{Be(e,t);break}default:e._err(t,b.endTagWithoutMatchingOpenElement)}}function mt(e,t){e._insertFakeElement(E.BODY,a.BODY),e.insertionMode=d.IN_BODY,Vt(e,t)}function Vt(e,t){switch(t.type){case w.CHARACTER:{Er(e,t);break}case w.WHITESPACE_CHARACTER:{hr(e,t);break}case w.COMMENT:{Bn(e,t);break}case w.START_TAG:{z(e,t);break}case w.END_TAG:{qt(e,t);break}case w.EOF:{Ar(e,t);break}default:}}function hr(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Er(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Ri(e,t){if(e.openElements.tmplCount===0)e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Oi(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();if(n&&e.openElements.tmplCount===0)e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs)}function Di(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();if(e.framesetOk&&n)e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,_.HTML),e.insertionMode=d.IN_FRAMESET}function vi(e,t){if(e.openElements.hasInButtonScope(a.P))e._closePElement();e._insertElement(t,_.HTML)}function wi(e,t){if(e.openElements.hasInButtonScope(a.P))e._closePElement();if(e.openElements.currentTagId!==void 0&&at.has(e.openElements.currentTagId))e.openElements.pop();e._insertElement(t,_.HTML)}function ki(e,t){if(e.openElements.hasInButtonScope(a.P))e._closePElement();e._insertElement(t,_.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Pi(e,t){let n=e.openElements.tmplCount>0;if(!e.formElement||n){if(e.openElements.hasInButtonScope(a.P))e._closePElement();if(e._insertElement(t,_.HTML),!n)e.formElement=e.openElements.current}}function Mi(e,t){e.framesetOk=!1;let n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){let o=e.openElements.tagIDs[r];if(n===a.LI&&o===a.LI||(n===a.DD||n===a.DT)&&(o===a.DD||o===a.DT)){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(o!==a.ADDRESS&&o!==a.DIV&&o!==a.P&&e._isSpecialElement(e.openElements.items[r],o))break}if(e.openElements.hasInButtonScope(a.P))e._closePElement();e._insertElement(t,_.HTML)}function Bi(e,t){if(e.openElements.hasInButtonScope(a.P))e._closePElement();e._insertElement(t,_.HTML),e.tokenizer.state=J.PLAINTEXT}function Hi(e,t){if(e.openElements.hasInScope(a.BUTTON))e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a.BUTTON);e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML),e.framesetOk=!1}function Ui(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(E.A);if(n)Un(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n);e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Fi(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Yi(e,t){if(e._reconstructActiveFormattingElements(),e.openElements.hasInScope(a.NOBR))Un(e,t),e._reconstructActiveFormattingElements();e._insertElement(t,_.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ji(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Ki(e,t){if(e.treeAdapter.getDocumentMode(e.document)!==ee.QUIRKS&&e.openElements.hasInButtonScope(a.P))e._closePElement();e._insertElement(t,_.HTML),e.framesetOk=!1,e.insertionMode=d.IN_TABLE}function br(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,_.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function gr(e){let t=Bt(e,ye.TYPE);return t!=null&&t.toLowerCase()===si}function Vi(e,t){if(e._reconstructActiveFormattingElements(),e._appendElement(t,_.HTML),!gr(t))e.framesetOk=!1;t.ackSelfClosing=!0}function qi(e,t){e._appendElement(t,_.HTML),t.ackSelfClosing=!0}function Wi(e,t){if(e.openElements.hasInButtonScope(a.P))e._closePElement();e._appendElement(t,_.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Gi(e,t){t.tagName=E.IMG,t.tagID=a.IMG,br(e,t)}function Qi(e,t){e._insertElement(t,_.HTML),e.skipNextNewLine=!0,e.tokenizer.state=J.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=d.TEXT}function Xi(e,t){if(e.openElements.hasInButtonScope(a.P))e._closePElement();e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,J.RAWTEXT)}function zi(e,t){e.framesetOk=!1,e._switchToTextParsing(t,J.RAWTEXT)}function dr(e,t){e._switchToTextParsing(t,J.RAWTEXT)}function Zi(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===d.IN_TABLE||e.insertionMode===d.IN_CAPTION||e.insertionMode===d.IN_TABLE_BODY||e.insertionMode===d.IN_ROW||e.insertionMode===d.IN_CELL?d.IN_SELECT_IN_TABLE:d.IN_SELECT}function eu(e,t){if(e.openElements.currentTagId===a.OPTION)e.openElements.pop();e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML)}function tu(e,t){if(e.openElements.hasInScope(a.RUBY))e.openElements.generateImpliedEndTags();e._insertElement(t,_.HTML)}function nu(e,t){if(e.openElements.hasInScope(a.RUBY))e.openElements.generateImpliedEndTagsWithExclusion(a.RTC);e._insertElement(t,_.HTML)}function au(e,t){if(e._reconstructActiveFormattingElements(),kn(t),$t(t),t.selfClosing)e._appendElement(t,_.MATHML);else e._insertElement(t,_.MATHML);t.ackSelfClosing=!0}function ru(e,t){if(e._reconstructActiveFormattingElements(),Pn(t),$t(t),t.selfClosing)e._appendElement(t,_.SVG);else e._insertElement(t,_.SVG);t.ackSelfClosing=!0}function fr(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML)}function z(e,t){switch(t.tagID){case a.I:case a.S:case a.B:case a.U:case a.EM:case a.TT:case a.BIG:case a.CODE:case a.FONT:case a.SMALL:case a.STRIKE:case a.STRONG:{Fi(e,t);break}case a.A:{Ui(e,t);break}case a.H1:case a.H2:case a.H3:case a.H4:case a.H5:case a.H6:{wi(e,t);break}case a.P:case a.DL:case a.OL:case a.UL:case a.DIV:case a.DIR:case a.NAV:case a.MAIN:case a.MENU:case a.ASIDE:case a.CENTER:case a.FIGURE:case a.FOOTER:case a.HEADER:case a.HGROUP:case a.DIALOG:case a.DETAILS:case a.ADDRESS:case a.ARTICLE:case a.SEARCH:case a.SECTION:case a.SUMMARY:case a.FIELDSET:case a.BLOCKQUOTE:case a.FIGCAPTION:{vi(e,t);break}case a.LI:case a.DD:case a.DT:{Mi(e,t);break}case a.BR:case a.IMG:case a.WBR:case a.AREA:case a.EMBED:case a.KEYGEN:{br(e,t);break}case a.HR:{Wi(e,t);break}case a.RB:case a.RTC:{tu(e,t);break}case a.RT:case a.RP:{nu(e,t);break}case a.PRE:case a.LISTING:{ki(e,t);break}case a.XMP:{Xi(e,t);break}case a.SVG:{ru(e,t);break}case a.HTML:{Ri(e,t);break}case a.BASE:case a.LINK:case a.META:case a.STYLE:case a.TITLE:case a.SCRIPT:case a.BGSOUND:case a.BASEFONT:case a.TEMPLATE:{ce(e,t);break}case a.BODY:{Oi(e,t);break}case a.FORM:{Pi(e,t);break}case a.NOBR:{Yi(e,t);break}case a.MATH:{au(e,t);break}case a.TABLE:{Ki(e,t);break}case a.INPUT:{Vi(e,t);break}case a.PARAM:case a.TRACK:case a.SOURCE:{qi(e,t);break}case a.IMAGE:{Gi(e,t);break}case a.BUTTON:{Hi(e,t);break}case a.APPLET:case a.OBJECT:case a.MARQUEE:{ji(e,t);break}case a.IFRAME:{zi(e,t);break}case a.SELECT:{Zi(e,t);break}case a.OPTION:case a.OPTGROUP:{eu(e,t);break}case a.NOEMBED:case a.NOFRAMES:{dr(e,t);break}case a.FRAMESET:{Di(e,t);break}case a.TEXTAREA:{Qi(e,t);break}case a.NOSCRIPT:{if(e.options.scriptingEnabled)dr(e,t);else fr(e,t);break}case a.PLAINTEXT:{Bi(e,t);break}case a.COL:case a.TH:case a.TD:case a.TR:case a.HEAD:case a.FRAME:case a.TBODY:case a.TFOOT:case a.THEAD:case a.CAPTION:case a.COLGROUP:break;default:fr(e,t)}}function ou(e,t){if(e.openElements.hasInScope(a.BODY)){if(e.insertionMode=d.AFTER_BODY,e.options.sourceCodeLocationInfo){let n=e.openElements.tryPeekProperlyNestedBodyElement();if(n)e._setEndLocation(n,t)}}}function su(e,t){if(e.openElements.hasInScope(a.BODY))e.insertionMode=d.AFTER_BODY,Lr(e,t)}function iu(e,t){let n=t.tagID;if(e.openElements.hasInScope(n))e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n)}function uu(e){let t=e.openElements.tmplCount>0,{formElement:n}=e;if(!t)e.formElement=null;if((n||t)&&e.openElements.hasInScope(a.FORM)){if(e.openElements.generateImpliedEndTags(),t)e.openElements.popUntilTagNamePopped(a.FORM);else if(n)e.openElements.remove(n)}}function cu(e){if(!e.openElements.hasInButtonScope(a.P))e._insertFakeElement(E.P,a.P);e._closePElement()}function lu(e){if(e.openElements.hasInListItemScope(a.LI))e.openElements.generateImpliedEndTagsWithExclusion(a.LI),e.openElements.popUntilTagNamePopped(a.LI)}function du(e,t){let n=t.tagID;if(e.openElements.hasInScope(n))e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n)}function fu(e){if(e.openElements.hasNumberedHeaderInScope())e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped()}function mu(e,t){let n=t.tagID;if(e.openElements.hasInScope(n))e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker()}function hu(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(E.BR,a.BR),e.openElements.pop(),e.framesetOk=!1}function Tr(e,t){let{tagName:n,tagID:r}=t;for(let o=e.openElements.stackTop;o>0;o--){let s=e.openElements.items[o],c=e.openElements.tagIDs[o];if(r===c&&(r!==a.UNKNOWN||e.treeAdapter.getTagName(s)===n)){if(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=o)e.openElements.shortenToLength(o);break}if(e._isSpecialElement(s,c))break}}function qt(e,t){switch(t.tagID){case a.A:case a.B:case a.I:case a.S:case a.U:case a.EM:case a.TT:case a.BIG:case a.CODE:case a.FONT:case a.NOBR:case a.SMALL:case a.STRIKE:case a.STRONG:{Un(e,t);break}case a.P:{cu(e);break}case a.DL:case a.UL:case a.OL:case a.DIR:case a.DIV:case a.NAV:case a.PRE:case a.MAIN:case a.MENU:case a.ASIDE:case a.BUTTON:case a.CENTER:case a.FIGURE:case a.FOOTER:case a.HEADER:case a.HGROUP:case a.DIALOG:case a.ADDRESS:case a.ARTICLE:case a.DETAILS:case a.SEARCH:case a.SECTION:case a.SUMMARY:case a.LISTING:case a.FIELDSET:case a.BLOCKQUOTE:case a.FIGCAPTION:{iu(e,t);break}case a.LI:{lu(e);break}case a.DD:case a.DT:{du(e,t);break}case a.H1:case a.H2:case a.H3:case a.H4:case a.H5:case a.H6:{fu(e);break}case a.BR:{hu(e);break}case a.BODY:{ou(e,t);break}case a.HTML:{su(e,t);break}case a.FORM:{uu(e);break}case a.APPLET:case a.OBJECT:case a.MARQUEE:{mu(e,t);break}case a.TEMPLATE:{Be(e,t);break}default:Tr(e,t)}}function Ar(e,t){if(e.tmplInsertionModeStack.length>0)Ir(e,t);else Fn(e,t)}function pu(e,t){var n;if(t.tagID===a.SCRIPT)(n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current);e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Eu(e,t){e._err(t,b.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Mn(e,t){if(e.openElements.currentTagId!==void 0&&mr.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=d.IN_TABLE_TEXT,t.type){case w.CHARACTER:{yr(e,t);break}case w.WHITESPACE_CHARACTER:{_r(e,t);break}}else bt(e,t)}function bu(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,_.HTML),e.insertionMode=d.IN_CAPTION}function gu(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,_.HTML),e.insertionMode=d.IN_COLUMN_GROUP}function Tu(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(E.COLGROUP,a.COLGROUP),e.insertionMode=d.IN_COLUMN_GROUP,$n(e,t)}function Au(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,_.HTML),e.insertionMode=d.IN_TABLE_BODY}function _u(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(E.TBODY,a.TBODY),e.insertionMode=d.IN_TABLE_BODY,Wt(e,t)}function Cu(e,t){if(e.openElements.hasInTableScope(a.TABLE))e.openElements.popUntilTagNamePopped(a.TABLE),e._resetInsertionMode(),e._processStartTag(t)}function xu(e,t){if(gr(t))e._appendElement(t,_.HTML);else bt(e,t);t.ackSelfClosing=!0}function Su(e,t){if(!e.formElement&&e.openElements.tmplCount===0)e._insertElement(t,_.HTML),e.formElement=e.openElements.current,e.openElements.pop()}function We(e,t){switch(t.tagID){case a.TD:case a.TH:case a.TR:{_u(e,t);break}case a.STYLE:case a.SCRIPT:case a.TEMPLATE:{ce(e,t);break}case a.COL:{Tu(e,t);break}case a.FORM:{Su(e,t);break}case a.TABLE:{Cu(e,t);break}case a.TBODY:case a.TFOOT:case a.THEAD:{Au(e,t);break}case a.INPUT:{xu(e,t);break}case a.CAPTION:{bu(e,t);break}case a.COLGROUP:{gu(e,t);break}default:bt(e,t)}}function pt(e,t){switch(t.tagID){case a.TABLE:{if(e.openElements.hasInTableScope(a.TABLE))e.openElements.popUntilTagNamePopped(a.TABLE),e._resetInsertionMode();break}case a.TEMPLATE:{Be(e,t);break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:case a.TBODY:case a.TD:case a.TFOOT:case a.TH:case a.THEAD:case a.TR:break;default:bt(e,t)}}function bt(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Vt(e,t),e.fosterParentingEnabled=n}function _r(e,t){e.pendingCharacterTokens.push(t)}function yr(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function ut(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)bt(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}var Cr=new Set([a.CAPTION,a.COL,a.COLGROUP,a.TBODY,a.TD,a.TFOOT,a.TH,a.THEAD,a.TR]);function Nu(e,t){let n=t.tagID;if(Cr.has(n)){if(e.openElements.hasInTableScope(a.CAPTION))e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=d.IN_TABLE,We(e,t)}else z(e,t)}function Iu(e,t){let n=t.tagID;switch(n){case a.CAPTION:case a.TABLE:{if(e.openElements.hasInTableScope(a.CAPTION)){if(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=d.IN_TABLE,n===a.TABLE)pt(e,t)}break}case a.BODY:case a.COL:case a.COLGROUP:case a.HTML:case a.TBODY:case a.TD:case a.TFOOT:case a.TH:case a.THEAD:case a.TR:break;default:qt(e,t)}}function $n(e,t){switch(t.tagID){case a.HTML:{z(e,t);break}case a.COL:{e._appendElement(t,_.HTML),t.ackSelfClosing=!0;break}case a.TEMPLATE:{ce(e,t);break}default:jt(e,t)}}function Lu(e,t){switch(t.tagID){case a.COLGROUP:{if(e.openElements.currentTagId===a.COLGROUP)e.openElements.pop(),e.insertionMode=d.IN_TABLE;break}case a.TEMPLATE:{Be(e,t);break}case a.COL:break;default:jt(e,t)}}function jt(e,t){if(e.openElements.currentTagId===a.COLGROUP)e.openElements.pop(),e.insertionMode=d.IN_TABLE,e._processToken(t)}function Wt(e,t){switch(t.tagID){case a.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,_.HTML),e.insertionMode=d.IN_ROW;break}case a.TH:case a.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(E.TR,a.TR),e.insertionMode=d.IN_ROW,Gt(e,t);break}case a.CAPTION:case a.COL:case a.COLGROUP:case a.TBODY:case a.TFOOT:case a.THEAD:{if(e.openElements.hasTableBodyContextInTableScope())e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=d.IN_TABLE,We(e,t);break}default:We(e,t)}}function Hn(e,t){let n=t.tagID;switch(t.tagID){case a.TBODY:case a.TFOOT:case a.THEAD:{if(e.openElements.hasInTableScope(n))e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=d.IN_TABLE;break}case a.TABLE:{if(e.openElements.hasTableBodyContextInTableScope())e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=d.IN_TABLE,pt(e,t);break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:case a.TD:case a.TH:case a.TR:break;default:pt(e,t)}}function Gt(e,t){switch(t.tagID){case a.TH:case a.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,_.HTML),e.insertionMode=d.IN_CELL,e.activeFormattingElements.insertMarker();break}case a.CAPTION:case a.COL:case a.COLGROUP:case a.TBODY:case a.TFOOT:case a.THEAD:case a.TR:{if(e.openElements.hasInTableScope(a.TR))e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=d.IN_TABLE_BODY,Wt(e,t);break}default:We(e,t)}}function xr(e,t){switch(t.tagID){case a.TR:{if(e.openElements.hasInTableScope(a.TR))e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=d.IN_TABLE_BODY;break}case a.TABLE:{if(e.openElements.hasInTableScope(a.TR))e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=d.IN_TABLE_BODY,Hn(e,t);break}case a.TBODY:case a.TFOOT:case a.THEAD:{if(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(a.TR))e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=d.IN_TABLE_BODY,Hn(e,t);break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:case a.TD:case a.TH:break;default:pt(e,t)}}function Ru(e,t){let n=t.tagID;if(Cr.has(n)){if(e.openElements.hasInTableScope(a.TD)||e.openElements.hasInTableScope(a.TH))e._closeTableCell(),Gt(e,t)}else z(e,t)}function Ou(e,t){let n=t.tagID;switch(n){case a.TD:case a.TH:{if(e.openElements.hasInTableScope(n))e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=d.IN_ROW;break}case a.TABLE:case a.TBODY:case a.TFOOT:case a.THEAD:case a.TR:{if(e.openElements.hasInTableScope(n))e._closeTableCell(),xr(e,t);break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:break;default:qt(e,t)}}function Sr(e,t){switch(t.tagID){case a.HTML:{z(e,t);break}case a.OPTION:{if(e.openElements.currentTagId===a.OPTION)e.openElements.pop();e._insertElement(t,_.HTML);break}case a.OPTGROUP:{if(e.openElements.currentTagId===a.OPTION)e.openElements.pop();if(e.openElements.currentTagId===a.OPTGROUP)e.openElements.pop();e._insertElement(t,_.HTML);break}case a.HR:{if(e.openElements.currentTagId===a.OPTION)e.openElements.pop();if(e.openElements.currentTagId===a.OPTGROUP)e.openElements.pop();e._appendElement(t,_.HTML),t.ackSelfClosing=!0;break}case a.INPUT:case a.KEYGEN:case a.TEXTAREA:case a.SELECT:{if(e.openElements.hasInSelectScope(a.SELECT)){if(e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode(),t.tagID!==a.SELECT)e._processStartTag(t)}break}case a.SCRIPT:case a.TEMPLATE:{ce(e,t);break}default:}}function Nr(e,t){switch(t.tagID){case a.OPTGROUP:{if(e.openElements.stackTop>0&&e.openElements.currentTagId===a.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===a.OPTGROUP)e.openElements.pop();if(e.openElements.currentTagId===a.OPTGROUP)e.openElements.pop();break}case a.OPTION:{if(e.openElements.currentTagId===a.OPTION)e.openElements.pop();break}case a.SELECT:{if(e.openElements.hasInSelectScope(a.SELECT))e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode();break}case a.TEMPLATE:{Be(e,t);break}default:}}function Du(e,t){let n=t.tagID;if(n===a.CAPTION||n===a.TABLE||n===a.TBODY||n===a.TFOOT||n===a.THEAD||n===a.TR||n===a.TD||n===a.TH)e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode(),e._processStartTag(t);else Sr(e,t)}function ku(e,t){let n=t.tagID;if(n===a.CAPTION||n===a.TABLE||n===a.TBODY||n===a.TFOOT||n===a.THEAD||n===a.TR||n===a.TD||n===a.TH){if(e.openElements.hasInTableScope(n))e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode(),e.onEndTag(t)}else Nr(e,t)}function Pu(e,t){switch(t.tagID){case a.BASE:case a.BASEFONT:case a.BGSOUND:case a.LINK:case a.META:case a.NOFRAMES:case a.SCRIPT:case a.STYLE:case a.TEMPLATE:case a.TITLE:{ce(e,t);break}case a.CAPTION:case a.COLGROUP:case a.TBODY:case a.TFOOT:case a.THEAD:{e.tmplInsertionModeStack[0]=d.IN_TABLE,e.insertionMode=d.IN_TABLE,We(e,t);break}case a.COL:{e.tmplInsertionModeStack[0]=d.IN_COLUMN_GROUP,e.insertionMode=d.IN_COLUMN_GROUP,$n(e,t);break}case a.TR:{e.tmplInsertionModeStack[0]=d.IN_TABLE_BODY,e.insertionMode=d.IN_TABLE_BODY,Wt(e,t);break}case a.TD:case a.TH:{e.tmplInsertionModeStack[0]=d.IN_ROW,e.insertionMode=d.IN_ROW,Gt(e,t);break}default:e.tmplInsertionModeStack[0]=d.IN_BODY,e.insertionMode=d.IN_BODY,z(e,t)}}function Mu(e,t){if(t.tagID===a.TEMPLATE)Be(e,t)}function Ir(e,t){if(e.openElements.tmplCount>0)e.openElements.popUntilTagNamePopped(a.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t);else Fn(e,t)}function Bu(e,t){if(t.tagID===a.HTML)z(e,t);else Kt(e,t)}function Lr(e,t){var n;if(t.tagID===a.HTML){if(!e.fragmentContext)e.insertionMode=d.AFTER_AFTER_BODY;if(e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===a.HTML){e._setEndLocation(e.openElements.items[0],t);let r=e.openElements.items[1];if(r&&!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0?void 0:n.endTag))e._setEndLocation(r,t)}}else Kt(e,t)}function Kt(e,t){e.insertionMode=d.IN_BODY,Vt(e,t)}function Hu(e,t){switch(t.tagID){case a.HTML:{z(e,t);break}case a.FRAMESET:{e._insertElement(t,_.HTML);break}case a.FRAME:{e._appendElement(t,_.HTML),t.ackSelfClosing=!0;break}case a.NOFRAMES:{ce(e,t);break}default:}}function Uu(e,t){if(t.tagID===a.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()){if(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==a.FRAMESET)e.insertionMode=d.AFTER_FRAMESET}}function Fu(e,t){switch(t.tagID){case a.HTML:{z(e,t);break}case a.NOFRAMES:{ce(e,t);break}default:}}function $u(e,t){if(t.tagID===a.HTML)e.insertionMode=d.AFTER_AFTER_FRAMESET}function Yu(e,t){if(t.tagID===a.HTML)z(e,t);else Yt(e,t)}function Yt(e,t){e.insertionMode=d.IN_BODY,Vt(e,t)}function ju(e,t){switch(t.tagID){case a.HTML:{z(e,t);break}case a.NOFRAMES:{ce(e,t);break}default:}}function Ku(e,t){t.chars=H,e._insertCharacters(t)}function qu(e,t){e._insertCharacters(t),e.framesetOk=!1}function Rr(e){while(e.treeAdapter.getNamespaceURI(e.openElements.current)!==_.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current))e.openElements.pop()}function Wu(e,t){if(sr(t))Rr(e),e._startTagOutsideForeignContent(t);else{let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);if(r===_.MATHML)kn(t);else if(r===_.SVG)ir(t),Pn(t);if($t(t),t.selfClosing)e._appendElement(t,r);else e._insertElement(t,r);t.ackSelfClosing=!0}}function Gu(e,t){if(t.tagID===a.P||t.tagID===a.BR){Rr(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){let r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===_.HTML){e._endTagOutsideForeignContent(t);break}let o=e.treeAdapter.getTagName(r);if(o.toLowerCase()===t.tagName){t.tagName=o,e.openElements.shortenToLength(n);break}}}var Uf=new Set([E.AREA,E.BASE,E.BASEFONT,E.BGSOUND,E.BR,E.COL,E.EMBED,E.FRAME,E.HR,E.IMG,E.INPUT,E.KEYGEN,E.LINK,E.META,E.PARAM,E.SOURCE,E.TRACK,E.WBR]);function Or(e,t){return Et.parse(e,t)}function Dr(e,t,n){if(typeof e==="string")n=t,t=e,e=null;let r=Et.getFragmentParser(e,n);return r.tokenizer.write(t,!0),r.getFragment()}function yu(e){if(!e||typeof e!=="object")return"";if("position"in e||"type"in e)return vr(e.position);if("start"in e||"end"in e)return vr(e);if("line"in e||"column"in e)return Yn(e);return""}function Yn(e){return wr(e&&e.line)+":"+wr(e&&e.column)}function vr(e){return Yn(e&&e.start)+"-"+Yn(e&&e.end)}function wr(e){return e&&typeof e==="number"?e:1}class j extends Error{constructor(e,t,n){super();if(typeof t==="string")n=t,t=void 0;let r="",o={},s=!1;if(t)if("line"in t&&"column"in t)o={place:t};else if("start"in t&&"end"in t)o={place:t};else if("type"in t)o={ancestors:[t],place:t.position};else o={...t};if(typeof e==="string")r=e;else if(!o.cause&&e)s=!0,r=e.message,o.cause=e;if(!o.ruleId&&!o.source&&typeof n==="string"){let f=n.indexOf(":");if(f===-1)o.ruleId=n;else o.source=n.slice(0,f),o.ruleId=n.slice(f+1)}if(!o.place&&o.ancestors&&o.ancestors){let f=o.ancestors[o.ancestors.length-1];if(f)o.place=f.position}let c=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=c?c.line:void 0,this.name=yu(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack==="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}j.prototype.file="";j.prototype.name="";j.prototype.reason="";j.prototype.message="";j.prototype.stack="";j.prototype.column=void 0;j.prototype.line=void 0;j.prototype.ancestors=void 0;j.prototype.cause=void 0;j.prototype.fatal=void 0;j.prototype.place=void 0;j.prototype.ruleId=void 0;j.prototype.source=void 0;var le={basename:Qu,dirname:Xu,extname:Ju,join:zu,sep:"/"};function Qu(e,t){if(t!==void 0&&typeof t!=="string")throw TypeError('"ext" argument must be a string');gt(e);let n=0,r=-1,o=e.length,s;if(t===void 0||t.length===0||t.length>e.length){while(o--)if(e.codePointAt(o)===47){if(s){n=o+1;break}}else if(r<0)s=!0,r=o+1;return r<0?"":e.slice(n,r)}if(t===e)return"";let c=-1,f=t.length-1;while(o--)if(e.codePointAt(o)===47){if(s){n=o+1;break}}else{if(c<0)s=!0,c=o+1;if(f>-1)if(e.codePointAt(o)===t.codePointAt(f--)){if(f<0)r=o}else f=-1,r=c}if(n===r)r=c;else if(r<0)r=e.length;return e.slice(n,r)}function Xu(e){if(gt(e),e.length===0)return".";let t=-1,n=e.length,r;while(--n)if(e.codePointAt(n)===47){if(r){t=n;break}}else if(!r)r=!0;return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Ju(e){gt(e);let t=e.length,n=-1,r=0,o=-1,s=0,c;while(t--){let f=e.codePointAt(t);if(f===47){if(c){r=t+1;break}continue}if(n<0)c=!0,n=t+1;if(f===46){if(o<0)o=t;else if(s!==1)s=1}else if(o>-1)s=-1}if(o<0||n<0||s===0||s===1&&o===n-1&&o===r+1)return"";return e.slice(o,n)}function zu(...e){let t=-1,n;while(++t<e.length)if(gt(e[t]),e[t])n=n===void 0?e[t]:n+"/"+e[t];return n===void 0?".":Zu(n)}function Zu(e){gt(e);let t=e.codePointAt(0)===47,n=ec(e,!t);if(n.length===0&&!t)n=".";if(n.length>0&&e.codePointAt(e.length-1)===47)n+="/";return t?"/"+n:n}function ec(e,t){let n="",r=0,o=-1,s=0,c=-1,f,h;while(++c<=e.length){if(c<e.length)f=e.codePointAt(c);else if(f===47)break;else f=47;if(f===47){if(o===c-1||s===1);else if(o!==c-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(h=n.lastIndexOf("/"),h!==n.length-1){if(h<0)n="",r=0;else n=n.slice(0,h),r=n.length-1-n.lastIndexOf("/");o=c,s=0;continue}}else if(n.length>0){n="",r=0,o=c,s=0;continue}}if(t)n=n.length>0?n+"/..":"..",r=2}else{if(n.length>0)n+="/"+e.slice(o+1,c);else n=e.slice(o+1,c);r=c-o-1}o=c,s=0}else if(f===46&&s>-1)s++;else s=-1}return n}function gt(e){if(typeof e!=="string")throw TypeError("Path must be a string. Received "+JSON.stringify(e))}var kr={cwd:tc};function tc(){return"/"}function Ge(e){return Boolean(e!==null&&typeof e==="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Pr(e){if(typeof e==="string")e=new URL(e);else if(!Ge(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){let t=TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return nc(e)}function nc(e){if(e.hostname!==""){let r=TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}let t=e.pathname,n=-1;while(++n<t.length)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let r=t.codePointAt(n+2);if(r===70||r===102){let o=TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}var jn=["history","path","basename","stem","extname","dirname"];class Vh{constructor(e){let t;if(!e)t={};else if(Ge(e))t={path:e};else if(typeof e==="string"||ac(e))t={value:e};else t=e;this.cwd="cwd"in t?"":kr.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;while(++n<jn.length){let o=jn[n];if(o in t&&t[o]!==void 0&&t[o]!==null)this[o]=o==="history"?[...t[o]]:t[o]}let r;for(r in t)if(!jn.includes(r))this[r]=t[r]}get basename(){return typeof this.path==="string"?le.basename(this.path):void 0}set basename(e){Vn(e,"basename"),Kn(e,"basename"),this.path=le.join(this.dirname||"",e)}get dirname(){return typeof this.path==="string"?le.dirname(this.path):void 0}set dirname(e){Mr(this.basename,"dirname"),this.path=le.join(e||"",this.basename)}get extname(){return typeof this.path==="string"?le.extname(this.path):void 0}set extname(e){if(Kn(e,"extname"),Mr(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=le.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){if(Ge(e))e=Pr(e);if(Vn(e,"path"),this.path!==e)this.history.push(e)}get stem(){return typeof this.path==="string"?le.basename(this.path,this.extname):void 0}set stem(e){Vn(e,"stem"),Kn(e,"stem"),this.path=le.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new j(e,t,n);if(this.path)r.name=this.path+":"+r.name,r.file=this.path;return r.fatal=!1,this.messages.push(r),r}toString(e){if(this.value===void 0)return"";if(typeof this.value==="string")return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function Kn(e,t){if(e&&e.includes(le.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+le.sep+"`")}function Vn(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function Mr(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function ac(e){return Boolean(e&&typeof e==="object"&&"byteLength"in e&&"byteOffset"in e)}var Br={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `-->` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:"Unexpected too big numeric character reference",description:"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},closingOfElementWithOpenChildElements:{reason:"Unexpected closing tag with open child elements",description:"Unexpectedly closing tag. Expected other tags to be closed first",url:!1},controlCharacterInInputStream:{reason:"Unexpected control character",description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:"Unexpected control character reference",description:"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:"Unexpected duplicate attribute",description:"Unexpectedly double attribute. Expected attributes to occur only once"},endTagWithAttributes:{reason:"Unexpected attribute on closing tag",description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:"Unexpected slash at end of closing tag",description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:"Unexpected unopened end tag",description:"Unexpected end tag. Expected no end tag or another end tag",url:!1},eofBeforeTagName:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected tag name instead"},eofInCdata:{reason:"Unexpected end of file in CDATA",description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:"Unexpected end of file in comment",description:"Unexpected end of file. Expected `-->` to close the comment"},eofInDoctype:{reason:"Unexpected end of file in doctype",description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:"Unexpected end of file in element that can only contain text",description:"Unexpected end of file. Expected text or a closing tag",url:!1},eofInScriptHtmlCommentLikeText:{reason:"Unexpected end of file in comment inside script",description:"Unexpected end of file. Expected `-->` to close the comment"},eofInTag:{reason:"Unexpected end of file in tag",description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:"Incorrectly closed comment",description:"Unexpected `%c-1`. Expected `-->` to close the comment"},incorrectlyOpenedComment:{reason:"Incorrectly opened comment",description:"Unexpected `%c`. Expected `<!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:"Invalid sequence after doctype name",description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:"Invalid first character in tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:"Misplaced doctype",description:"Unexpected doctype. Expected doctype before head",url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:"Missing attribute value",description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:"Missing doctype before other content",description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:"Missing doctype name",description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:"Missing public identifier in doctype",description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:"Missing system identifier in doctype",description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:"Missing name in end tag",description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:"Missing quote before public identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:"Missing quote before system identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:"Missing semicolon after character reference",description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:"Missing whitespace after public identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:"Missing whitespace after system identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:"Missing whitespace before doctype name",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:"Missing whitespace between attributes",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:"Missing whitespace between public and system identifiers in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:"Unexpected nested comment",description:"Unexpected `<!--`. Expected `-->`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:"Unexpected non-conforming doctype declaration",description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:"Unexpected trailing slash on start tag of non-void element",description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:"Unexpected noncharacter code point referenced by character reference",description:"Unexpected code point. Do not use noncharacters in HTML"},noncharacterInInputStream:{reason:"Unexpected noncharacter character",description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:"Unexpected NULL character referenced by character reference",description:"Unexpected code point. Do not use NULL characters in HTML"},openElementsLeftAfterEof:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected closing tag instead",url:!1},surrogateCharacterReference:{reason:"Unexpected surrogate character referenced by character reference",description:"Unexpected code point. Do not use lone surrogate characters in HTML"},surrogateInInputStream:{reason:"Unexpected surrogate character",description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:"Invalid character after system identifier in doctype",description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:"Unexpected character in attribute name",description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:"Unexpected character in unquoted attribute value",description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:"Unexpected equals sign before attribute name",description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:"Unexpected NULL character",description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:"Unexpected question mark instead of tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:"Unexpected slash in tag",description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:"Unexpected unknown named character reference",description:"Unexpected character reference. Expected known named character references"}};var rc="https://html.spec.whatwg.org/multipage/parsing.html#parse-error-",oc=/-[a-z]/g,sc=/%c(?:([-+])(\d+))?/g,ic=/%x/g,uc={2:!0,1:!1,0:null},lc={};function Wn(e,t){let n=t||lc,r=n.onerror,o=e instanceof Vh?e:new Vh(e),s=n.fragment?Dr:Or,c=String(o),f=s(c,{sourceCodeLocationInfo:!0,onParseError:n.onerror?h:null,scriptingEnabled:!1});return xn(f,{file:o,space:n.space,verbose:n.verbose});function h(A){let S=A.code,g=dc(S),N=n[g],O=N===null||N===void 0?!0:N,L=typeof O==="number"?O:O?1:0;if(L){let B=Br[g];gi(B,"expected known error from `parse5`");let Y=new j(P(B.reason),{place:{start:{line:A.startLine,column:A.startCol,offset:A.startOffset},end:{line:A.endLine,column:A.endCol,offset:A.endOffset}},ruleId:S,source:"hast-util-from-html"});if(o.path)Y.file=o.path,Y.name=o.path+":"+Y.name;Y.fatal=uc[L],Y.note=P(B.description),Y.url=B.url===!1?void 0:rc+S,gi(r,"`internalOnerror` is not passed if `onerror` is not set"),r(Y)}function P(B){return B.replace(sc,Y).replace(ic,Se);function Y(ae,X,fe){let je=(fe?Number.parseInt(fe,10):0)*(X==="-"?-1:1),et=c.charAt(A.startOffset+je);return mc(et)}function Se(){return hc(c.charCodeAt(A.startOffset))}}}}function dc(e){return e.replace(oc,fc)}function fc(e){return e.charAt(1).toUpperCase()}function mc(e){return e==="`"?"` ` `":e}function hc(e){return"0x"+e.toString(16).toUpperCase()}var pc=/[ \t\n\f\r]/g;function rd(e){return typeof e==="object"?e.type==="text"?Hr(e.value):!1:Hr(e)}function Hr(e){return e.replace(pc,"")===""}function Ur(e){let t=Wn(e,{fragment:!0});return Fr(t.children)}function Fr(e){let t=[];for(let n of e){let r=Ec(n);if(r!=null)t.push(r)}return t}function Ec(e){if(e.type==="text"){if(rd(e))return null;return e.value??null}if(e.type==="element"){let t={tagName:e.tagName};if(e.properties&&Object.keys(e.properties).length>0){let{style:r,attrs:o}=bc(e.properties);if(Object.keys(o).length>0)t.attributes=o;if(Object.keys(r).length>0)t.style=r}let n=e.children?Fr(e.children):[];if(n.length===1&&typeof n[0]==="string")[t.textContent]=n;else if(n.length>0)t.children=n;return t}return null}function bc(e){let t={},n={};for(let[r,o]of Object.entries(e)){if(o===!1||o===void 0||o===null)continue;let s=nd(id,r),c=s.attribute;if(c==="style"&&typeof o==="string"){gc(o,n);continue}if(o===!0)t[c]="";else if(Array.isArray(o))t[c]=o.join(s.commaSeparated?", ":" ");else t[c]=String(o)}return{attrs:t,style:n}}function gc(e,t){for(let n of e.split(";")){let r=n.indexOf(":");if(r===-1)continue;let o=n.slice(0,r).trim(),s=n.slice(r+1).trim();if(o&&s)t[o]=s}}var $r=["mod","ctrl","alt","shift"],Yr={mod:"mod",cmd:"mod",command:"mod",meta:"mod",super:"mod",ctrl:"ctrl",control:"ctrl",alt:"alt",opt:"alt",option:"alt",shift:"shift"},jr={up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright",esc:"escape",space:" ",spacebar:" ",del:"delete",plus:"=",return:"enter"},Tc={mod:"⌘",ctrl:"⌃",alt:"⌥",shift:"⇧"},Ac={mod:"Ctrl",ctrl:"Ctrl",alt:"Alt",shift:"Shift"},_c={arrowup:"↑",arrowdown:"↓",arrowleft:"←",arrowright:"→"," ":"Space",escape:"Esc",enter:"Enter",tab:"Tab",delete:"Delete",backspace:"Backspace"};function Gy(e){let t={mod:!1,ctrl:!1,alt:!1,shift:!1,key:""},n=e.split("+");for(let[r,o]of n.entries()){if(o===""){if(r>0&&n[r-1]==="")t.key="+";continue}let s=o.trim(),c=s===""?" ":s.toLowerCase(),f=Yr[c];if(f){t[f]=!0;continue}t.key=jr[c]??c}if(!t.key)throw Error(`keybinding "${e}" has no key — a chord needs more than modifiers`);return t}function Kr(e){return[...$r.filter((n)=>e[n]),e.key].join("+")}function td(e){return Kr(Gy(e))}function yc(e=globalThis.navigator??{}){return/mac/i.test(e.platform??e.userAgent??"")}function Cc(e){return/^Digit(\d)$/.exec(e??"")?.[1]}function Ky(e,t){let n=Cc(e.code)??e.key.toLowerCase();if(Yr[n])return"";let r={mod:t?e.metaKey:e.ctrlKey,ctrl:t?e.ctrlKey:!1,alt:e.altKey,shift:e.shiftKey,key:jr[n]??n};return Kr(r)}function Fg(e,t){let n=Gy(e),r=$r.filter((s)=>n[s]),o=_c[n.key]??(n.key.length===1?n.key.toUpperCase():n.key.charAt(0).toUpperCase()+n.key.slice(1));return t?r.map((s)=>Tc[s]).join("")+o:[...r.map((s)=>Ac[s]),o].join("+")}class Vr extends Error{chord;scope;existingId;incomingId;constructor(e,t,n,r){super(`keybinding conflict: "${e}" in scope "${t}" is already bound to "${n}"; "${r}" cannot claim it. Rebind one, or move one to a narrower keyScope.`);this.name="KeybindingConflictError",this.chord=e,this.scope=t,this.existingId=n,this.incomingId=r}}var Sc=["palette"],Nc=["global",...fT.filter((e)=>e!=="global"&&e!=="palette")];function _S(e){if(e==="palette")return Sc;if(e==="global")return Nc;return[e,"global"]}function qr(e={}){let t=e.mac??yc(),n=new Map,r=new Map,o=new Map,s=new Map,c=new Set;function f(g){let N=g.keybinding;if(!N)return[];return(typeof N==="string"?[N]:[...N]).map((O)=>td(O))}function h(g){let N=n.get(g);if(!N)N=new Map,n.set(g,N);return N}function A(g,N){let O=o.get(g);if(!O)return;let L=s.get(g),P=L===void 0?"default":"override",B=L??O.chords,Y=h(O.scope);if(N)for(let ae of B){let X=Y.get(ae);if(X&&X.id!==g&&X.source==="default"&&P==="default")throw new Vr(ae,O.scope,X.id,g)}let Se=[];for(let ae of B){let X=Y.get(ae);if(X&&X.id!==g){if(P==="default")continue;r.set(X.id,(r.get(X.id)??[]).filter((fe)=>fe!==ae))}Y.set(ae,{id:g,source:P}),Se.push(ae)}r.set(g,Se)}function S(){n.clear(),r.clear();for(let g of o.keys())if(s.has(g))A(g,!1);for(let g of o.keys())if(!s.has(g))A(g,!1)}return{mac:t,format(g){return Fg(g,t)},add(g){let N=g.keyScope??"global";o.set(g.id,{chords:f(g),scope:N});try{A(g.id,!0)}catch(O){throw o.delete(g.id),O}},remove(g){o.delete(g),S()},bindingsFor(g){return r.get(g)??[]},declaredFor(g){return o.get(g)?.chords??[]},setOverrides(g){s=new Map([...g].map(([N,O])=>[N,O.map((L)=>td(L))])),S();for(let N of c)N()},onChange(g){return c.add(g),()=>c.delete(g)},overrides(){return new Map(s)},formatBinding(g){let N=r.get(g)?.[0];return N===void 0?void 0:Fg(N,t)},resolveChord(g,N){let O=td(g),L=N.find((B)=>n.get(B)?.has(O)),P=L===void 0?void 0:n.get(L)?.get(O);return L===void 0||P===void 0?void 0:{chord:O,commandId:P.id,scope:L}},resolveEvent(g,N){let O=Ky(g,t);return O===""?void 0:this.resolveChord(O,N)},entries(){let g=[];for(let[N,O]of n)for(let[L,P]of O)g.push({chord:L,commandId:P.id,scope:N});return g}}}function CS(e,t){let n=new Set,r=[];for(let o of e.entries()){let s=t.find((f)=>f===o.scope);if(s===void 0)continue;let c=`${s} ${o.chord}`;if(n.has(c))continue;n.add(c),r.push({chord:o.chord,scope:s})}return r}var Ic=/^[a-z][a-z\d]*(\.[a-zA-Z\d]+)+$/,Rc=/^[a-z][a-z0-9_]*$/;class Wr extends Error{commandId;requires;constructor(e,t){super(Gr(e,t));this.name="CommandUnavailableError",this.commandId=e,this.requires=t}}var Gn="a different studio state";function Gr(e,t){return`Command "${e}" is not available right now — it requires ${t}.`}function Oc(e,t){let n=e.aiTool;if(!n)return;if(!Rc.test(n.name))throw Error(`command "${e.id}" aiTool name "${n.name}" is not snake_case`);let r=t.get(n.name);if(r!==void 0)throw Error(`command "${e.id}" aiTool name "${n.name}" is already projected by "${r}"`);if(typeof n.report!=="function")throw TypeError(`command "${e.id}" declares aiTool without a report: a tool that can only say "done" is refused`);if(e.level==="application")throw Error(`command "${e.id}" is application-level and cannot project to the assistant: an application verb acts on the editor, which the model cannot see`);let o=e.args?.properties;if(e.level==="selection"&&o&&Object.hasOwn(o,"paths"))throw Error(`command "${e.id}" is selection-level and may not declare "paths": the assistant supplies it`);if((e.when||e.enablement)&&!e.requires)throw Error(`command "${e.id}" projects to the assistant but has no requires sentence; "${Gn}" is not a refusal a model can act on`)}function Lf(e){let t=new Map,n=qr(e.mac===void 0?{}:{mac:e.mac}),r=new Map;function o(h){let A=t.get(h);if(!A)throw Error(`unknown command "${h}"`);return A}function s(h,A){return h.when?.(A)??!0}function c(h,A){if(!s(h,A))return!1;return h.enablement?.(A)??!0}let f={register(h){if(!Ic.test(h.id))throw Error(`invalid command id "${h.id}" — ids are "<category>.<verb>", `+'e.g. "selection.duplicate" or "view.toggleDock.right"');if(t.has(h.id))throw Error(`duplicate command id "${h.id}" — a capability has exactly one definition site`);if(!h.title)throw Error(`command "${h.id}" has no title — the record is where actions are named`);let A=gT(h);if(A.length>0)throw Error(`command "${h.id}" ${A[0].message}`);if(Oc(h,r),n.add(h),t.set(h.id,h),h.aiTool)r.set(h.aiTool.name,h.id)},registerAll(h){for(let A of h)f.register(A)},get(h){return t.get(h)},list(){return[...t.values()]},visible(){let h=e.getContext();return[...t.values()].filter((A)=>s(A,h))},forPlacement(h){let A=e.getContext();return[...t.values()].filter((S)=>(S.menus??["palette"]).includes(h)&&s(S,A)).toSorted((S,g)=>(S.group??"").localeCompare(g.group??"")||S.title.localeCompare(g.title))},isVisible(h){return s(o(h),e.getContext())},isEnabled(h){return c(o(h),e.getContext())},disabledReason(h){let A=o(h),S=e.getContext();return c(A,S)?void 0:A.requires??Gn},refusalMessage(h){let A=f.disabledReason(h);return A===void 0?void 0:Gr(h,A)},run(h,A={}){let S=o(h),g=e.getContext();if(!c(S,g))throw new Wr(h,S.requires??Gn);let N=S.args?GL(h,S.args,A):A;return S.run(g,N)},keymap:n,handleKeyEvent(h,A){let S;for(let g of A){let N=n.resolveEvent(h,[g]);if(N&&f.isVisible(N.commandId)){S=N;break}}if(!S)return;if(!f.isEnabled(S.commandId))return S.commandId;return on(f,S.commandId,void 0,"Keyboard"),S.commandId},context:e.getContext};return f}var Dc=3,vc=30;function Qt(e){let t=cc(e),n=Nf(t);if(t===null||t===void 0||typeof t==="object")return n;let r=typeof t==="string"?t.length>24?`"${t.slice(0,24)}…"`:`"${t}"`:String(t);return`${n} · ${r}`}function Qn(e,t,n,r,o){if(r>=Dc)return;let s=cc(e);if(s===null||s===void 0||typeof s!=="object")return;if(Array.isArray(s)){let f=`${t}.length`;o.push({category:n,hint:`number · ${s.length}`,label:f,token:f});return}let c=Object.keys(s).slice(0,vc);for(let f of c){if(f.startsWith("$"))continue;let h=s[f],A=`${t}.${f}`;o.push({category:n,hint:Qt(h),label:A,token:A}),Qn(h,A,n,r+1,o)}}function Qr(e,t,n=null){let r=[],o=e??{},s=t??{};for(let[c,f]of Object.entries(o)){if(c.startsWith("$"))continue;let h=Fa(f);if(h==="function")continue;let A=s[c],S=`state.${c}`;r.push({category:h,hint:Qt(A),label:S,token:S}),Qn(A,S,h,0,r)}if(n){let c=cc(n.$map);if(c&&typeof c==="object")r.push({category:"repeater",hint:Qt(c.item),label:"item",token:"item"}),Qn(c.item,"item","repeater",0,r),r.push({category:"repeater",hint:Qt(c.index),label:"index",token:"index"})}return r}function Xr(e){let t=["item","index",...e],n=new Set,r=[];for(let o of t){if(!o||n.has(o))continue;n.add(o),r.push({category:"repeater",hint:"",label:o,token:o})}return r}var kc=50;function qy(e,t){if(!Array.isArray(t)||t.length===0)return null;let n=t.lastIndexOf("map");if(n<=0)return null;let r=K(e,t.slice(0,n));return r&&r.$prototype==="Array"?r:null}function Pc(e){if(!Ot(e))return null;let{$ref:t}=e;return t.startsWith("#/state/")?t.slice(8):null}function Xt(e){return e.filter((t)=>!t.startsWith("$")).slice(0,kc)}function Jr(e,t,n){let r=["item","index"],{items:o}=e,s=t??{},c=Pc(o);if(c){let f=s[c];if(f&&typeof f==="object"){if(typeof f.contentType==="string"){let L=(n?.content??{})[f.contentType]?.schema?.properties,P=[...r,"item.id","item.body"];if(L&&typeof L==="object")for(let B of Xt(Object.keys(L)))P.push(`item.data.${B}`);return P}let A=f.items?.properties;if(A&&typeof A==="object")return[...r,...Xt(Object.keys(A)).map((N)=>`item.${N}`)];let S=f.default,g=Array.isArray(S)?S[0]:void 0;if(g&&typeof g==="object"&&!Array.isArray(g))return[...r,...Xt(Object.keys(g)).map((N)=>`item.${N}`)]}return r}if(Array.isArray(o)){let[f]=o;if(f&&typeof f==="object"&&!Array.isArray(f))return[...r,...Xt(Object.keys(f)).map((h)=>`item.${h}`)]}return r}var Mc=/^[a-z][a-z0-9]*(-[a-z0-9]+)+$/;async function Tf(){let e=u.value,t=Le(e?.session.selection);if(!e||!t||t.length<2)return;let n=K(e.doc.document,t);if(!n||!n.tagName)return;let r=Bc(n),o=await Fc(r);if(!o)return;let s=o.toLowerCase(),c=Hc(n);c.tagName=s;let f=`components/${s}.json`,h=xc(e.documentPath,f),A=t;if(!Hs(e,(g)=>{let N=ht(A)??[],O=_n(A),L=g;for(let B of N)L=L[B];if(!Array.isArray(L.children))L.children=[];if(L.children[O]={tagName:s},!g.$elements)g.$elements=[];if(!g.$elements.some((B)=>B&&typeof B==="object"&&("$ref"in B)&&B.$ref===h))g.$elements.push({$ref:h})}))return;try{await p().writeFile(f,pr(c,null)),await Dl();let N=wb(c);if(k.success(`Converted to <${s}>`),N)k.warn(`<${s}> has a slot problem: ${N}`,{path:f,source:"Components",tier:"problem"})}catch(g){k.error(`Could not save the <${s}> component.`,{detail:te(g),path:f,source:"Components"})}}function Bc(e){if(e.$id&&e.$id.includes("-"))return e.$id.toLowerCase();let t=(qe(e.tagName)||"div").toLowerCase();return t.includes("-")?t:`jx-${t}`}function Hc(e){let t=Ao(e);return delete t.$id,delete t.$layout,delete t.$paths,t}function Uc(e){let t=e.trim().toLowerCase();if(!t.includes("-"))return{error:"Name must contain a hyphen (e.g. my-component)",valid:!1};if(!Mc.test(t))return{error:"Lowercase letters, digits, and hyphens only",valid:!1};if(st.some((r)=>r.tagName===t))return{error:`Component <${t}> already exists`,valid:!1};return{error:"",valid:!0}}function Fc(e){return Nn("Convert to Component",{confirmLabel:"Convert",message:"Enter a hyphenated tag name for the new component.",placeholder:"my-component",validate:(t)=>Uc(t).error,value:e})}var zr={$schema:"https://jxsuite.com/schema/v1",$id:"StudioSlashMenu",$description:"The slash menu: the element-insertion list that hangs under the caret. It is a LISTBOX rather than a `jx-menu`, and that is the one thing about this surface worth knowing — the panel must not take the keyboard, because the caret it is filtering for is in the canvas (often in the iframe realm), and every character the author types after the `/` has to keep landing there. A menu owns DOM focus by contract; this panel marks its active row and leaves the caret where it was. The rows are the kit's `jx-listbox` and `jx-option`, which is what makes that expressible rather than hand-rolled: a `jx-listbox` has no tab stop and never calls `focus()`, and the highlight is ONE string — the listbox's `active`, the id its owning field points `aria-activedescendant` at — instead of a per-row comparison the field and the rows could each answer differently. When the menu is opened BY NAME rather than by a slash there is no caret to protect, so it grows a filter field of its own and that field is what carries `aria-activedescendant`.",tagName:"jx-popover",$props:{label:"Insert element",x:{$ref:"#/state/x"},y:{$ref:"#/state/y"}},children:[{tagName:"div",attributes:{part:"body"},style:{display:"flex",flexDirection:"column",minWidth:"220px",maxHeight:"320px",minHeight:"0",fontFamily:"var(--jx-font-sans)",fontSize:"var(--jx-text-md)",'& [part="filter"]':{$description:"Borderless inside a panel that already draws a frame: a second box around the field would only be a box inside a box. The keyboard ring is given back explicitly, because a reader who arrives here by Tab has nothing else to go on.",display:"block",width:"100%",boxSizing:"border-box",flex:"0 0 auto",padding:"var(--jx-space-2) var(--jx-space-3)",border:"none",borderBottom:"1px solid var(--jx-border)",outline:"none",background:"transparent",color:"inherit",font:"inherit","::placeholder":{color:"var(--jx-fg-muted)"},":focus-visible":{outline:"var(--jx-focus-ring)",outlineOffset:"-2px"}},'& [part="list"]':{$description:"One declaration, because the list is a `jx-listbox` now and the element already draws itself: the scroll, the `min-block-size: 0` that lets it, the row rules, the highlight, the group headings and the empty sentence all live in its own definition. What is left is the one thing only this panel knows — that the list is the part of the body that gives.",flex:"1"}},children:[{tagName:"div",attributes:{part:"filter-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"#/state/showFilter"},cases:{true:{tagName:"input",attributes:{part:"filter",type:"text",role:"combobox",autocomplete:"off","aria-controls":"slash-menu-listbox","aria-expanded":"${state.expanded ? 'true' : 'false'}","aria-activedescendant":"${state.activeId || null}","aria-autocomplete":"list","aria-label":"Filter elements",placeholder:"Filter…"},value:{$ref:"#/state/filter"},oninput:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/input"},value:[{$ref:"event#/target/value"}]}]}}}},{tagName:"jx-listbox",attributes:{part:"list",id:"slash-menu-listbox"},$props:{label:"Elements",active:{$ref:"#/state/activeId"}},onselect:{$ref:"#/state/pick"},children:[{tagName:"div",attributes:{part:"empty-slot",role:"none"},$switch:{$ref:"#/state/isEmpty"},cases:{true:{tagName:"div",attributes:{part:"empty"},textContent:"No matches"}}},{$prototype:"Array",items:{$ref:"#/state/rows"},key:{$ref:"$map/item/key"},map:{tagName:"jx-option",attributes:{part:"option",id:"slash-menu-option-${$map.index}",value:"${$map.item.key}",label:"${$map.item.label}",description:"${$map.item.description}"},onmouseenter:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/hover"},value:[{$ref:"$map/index"}]}]}}}]}]}]};T("slash-menu",zr);var Xn="slash-menu";function Zr(e){return e.rows[e.activeIndex]?`slash-menu-option-${e.activeIndex}`:""}function eo(e,t,n){let r=vs("popover",Xn),o=new AbortController,s=null,c=null,f=!1,h=v({activeId:Zr(e),expanded:e.rows.length>0,filter:e.filter,hover:(g)=>{t.hover(g)},input:(g)=>{t.input(g)},isEmpty:e.rows.length===0,pick:(g,N)=>{let O=String(N.detail),L=h.rows.findIndex((P)=>P.key===O);if(L!==-1)t.activateRow(L)},rows:[...e.rows],showFilter:e.showFilter,x:e.x,y:e.y}),A=(g)=>{if(f)return;if(f=!0,o.abort(),c?.dispose(),c=null,Nm("popover",Xn),g)t.dismissed()},S=(async()=>{let g=await R("slash-menu",h,r,{signal:o.signal});if(o.signal.aborted)return;if(c=g,s=g.root,s.setAttribute(rt,zt("popover",Xn)),s.addEventListener("toggle",(N)=>{if(N.newState==="closed")A(!0)}),!s.hasAttribute("popover"))await new Promise((N)=>{s.addEventListener("jx-ready",()=>N(),{once:!0})});if(o.signal.aborted)return;s.showPopover(n instanceof HTMLElement?{source:n}:void 0)})();return{close:()=>{if(f)return;if(s?.open)s.hidePopover();A(!1)},focusFilter:()=>{r.querySelector('[part="filter"]')?.focus()},host:r,ready:S,update:(g)=>{if(f)return;h.x=g.x,h.y=g.y,h.showFilter=g.showFilter,h.filter=g.filter,h.rows=[...g.rows],h.activeId=Zr(g),h.isEmpty=g.rows.length===0,h.expanded=g.rows.length>0}}}var to=[{description:"Large heading",label:"Heading 1",tag:"h1"},{description:"Medium heading",label:"Heading 2",tag:"h2"},{description:"Small heading",label:"Heading 3",tag:"h3"},{description:"Plain text",label:"Paragraph",tag:"p"},{description:"Unordered list",label:"Bulleted List",tag:"ul"},{description:"Numbered list",label:"Numbered List",tag:"ol"},{description:"Quote block",label:"Blockquote",tag:"blockquote"},{description:"Insert image",label:"Image",tag:"img"},{description:"Divider line",label:"Horizontal Rule",tag:"hr"},{description:"Button element",label:"Button",tag:"button"},{description:"Anchor link",label:"Link",tag:"a"},{description:"Preformatted code",label:"Code Block",tag:"pre"},{description:"Insert table",label:"Table",tag:"table"},{description:"Container",label:"Div",tag:"div"},{description:"Section container",label:"Section",tag:"section"}],Tt=null,Ee=0,Jn=!1,Jt="",we=[],Qe=!1,zn=null,ve=null;function Pg(e,t,n){ro(Oe(e),t,n,e)}function xS(e,t,n){ro(e,t,n)}function Yc(){return Tt?.commands||to}function no(e,t){return e?t.filter((n)=>n.label.toLowerCase().includes(e)||n.tag.toLowerCase().includes(e)):t}function ao(){let e=zn;return{activeIndex:Ee,filter:Jt,rows:we.map((t)=>({description:t.description,key:t.tag,label:t.label})),showFilter:Jn,x:e?e.left:0,y:e?e.bottom:0}}function At(){ve?.update(ao())}function ro(e,t,n,r){if(Tt=n,zn=e,we=no(t,n.commands||to),we.length===0&&!n.showFilter){vu();return}if(Ee=0,Jn=n.showFilter||!1,ve){At();return}if(Qe=!0,Jt="",document.addEventListener("keydown",io,!0),ve=eo(ao(),{activateRow:(o)=>{let s=we[o];if(s)so(s)},dismissed:jc,hover:(o)=>{Ee=o,At()},input:Kc},r??null),Jn){let o=ve;o.ready.then(()=>{if(ve===o)o.focusFilter()})}}function oo(){let e=Tt;return Qe=!1,Tt=null,zn=null,we=[],Jt="",Ee=0,document.removeEventListener("keydown",io,!0),e}function vu(){if(!Qe)return;let e=ve;ve=null;let t=oo();e?.close(),t?.onDismiss?.()}function jc(){if(!Qe)return;ve=null,oo()?.onDismiss?.()}function so(e){let t=Tt;vu(),t?.onSelect(e)}function Kc(e){Jt=e,we=no(e.toLowerCase(),Yc()),Ee=0,At()}function C_(e){if(!Qe)return;let t=we.length;if(e==="ArrowDown"){if(t===0)return;Ee=(Ee+1)%t,At()}else if(e==="ArrowUp"){if(t===0)return;Ee=(Ee-1+t)%t,At()}else if(e==="Enter"){let n=we[Ee];if(n)so(n)}else if(e==="Escape")vu()}function io(e){if(!Qe)return;if(["ArrowDown","ArrowUp","Enter","Escape"].includes(e.key))e.preventDefault(),e.stopPropagation(),C_(e.key)}var Vc={article:"Article",aside:"Aside",blockquote:"Blockquote",div:"Div",footer:"Footer",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6",header:"Header",main:"Main",nav:"Nav",ol:"Numbered List",p:"Paragraph",search:"Search",section:"Section",ul:"Bulleted List"},qc=wd.$convertGroups||{};function uo(e,t){let n=wd.$defs?.[e];if(!n?.$convertTo)return[];let r=t&&n.$convertToWhenEmpty?n.$convertToWhenEmpty:[n.$convertTo],o=new Set;for(let s of r)for(let c of qc[s]||[])if(c!==e)o.add(c);return[...o].map((s)=>({description:"",label:Vc[s]||s.charAt(0).toUpperCase()+s.slice(1),tag:s}))}var co={$schema:"https://jxsuite.com/schema/v1",$id:"StudioBlockActionBar",$description:"The floating action bar over the canvas selection (studio.md §4.4, studio-ui-guidelines.md §8.6), as a Jx document over the kit. ONE SHAPE is the whole rule this markup exists to keep: the parent selector, the element badge, the drag handle and every verb are drawn on every selection, and a control that cannot act is DISABLED rather than removed — a toolbar whose buttons move under the cursor is worse than one with a greyed button. Nothing here decides what a verb is called, whether it can act or what its chord reads: `panels/block-action-bar.ts` projects the command registry into `verbs` and `formats`, already resolved to a glyph, a name, a tooltip and a refusal, and this document draws them. The toolbar role, the roving caret and the arrow keys are `jx-action-group`'s, so no keyboard code rides along; Escape is the one key this document claims, because leaving the bar means going back to the canvas and only the host knows where that is. The drag handle is an ISLAND (studio-ui-guidelines.md §9.4): the document draws the node and `surfaces/block-action-bar.ts` attaches the pragmatic-dnd registration to it through `onNodeCreated`. Position is a DECISION measured against the selection rect, so it arrives as two numbers the flow projects — `barX` and `barY` — rather than as a layout this document could compute; the `style` object below binds them, because a style declaration may read state like any other value (spec.md §9.1).",tagName:"div",attributes:{part:"root",role:"none"},style:{$description:"The `.block-action-bar` rules that used to live in `styles/canvas.css`, re-valued onto the kit's tokens. The bar is `position: fixed` because its anchor is a rect in viewport space that crossed the iframe bridge; the layer it sits in has no clipping, which is why the host clamps it rather than letting overflow do it.\n\nThe two placement properties are declared HERE, bound to the flow's measured numbers. They used to travel as a `style` ATTRIBUTE the flow assembled into one string, on the belief that a document cannot bind a style declaration to state. It can, and always could: a reactive value on a custom property in a rule targeting the element itself is written inline under the author's own name (spec.md §9.1), which is precisely the attribute that string was hand-writing. The bar reads them by name through the ordinary cascade — the root is `display: contents`, so a custom property set on it inherits down — and `panels/block-action-bar.ts` overrides `--jx-bar-x` on the bar itself when it clamps, because a value set on an element beats one it inherits — which is also why that clamp releases its own previous write before it measures, or the bar would be pinned at the right edge for the rest of the session.",display:"contents","--jx-bar-x":"${state.barX}px","--jx-bar-y":"${state.barY}px",'& [part="bar"]':{position:"fixed",left:"var(--jx-bar-x, 0px)",top:"var(--jx-bar-y, 0px)",zIndex:"100",pointerEvents:"auto",display:"flex",alignItems:"center",gap:"2px",padding:"2px var(--jx-space-2)",background:"var(--jx-bg-panel)",border:"1px solid var(--jx-border)",borderRadius:"var(--jx-radius-sm)",boxShadow:"var(--jx-shadow-popover)",whiteSpace:"nowrap",fontSize:"var(--jx-text-xs)"},'& [part="bar"][data-offscreen]':{$description:"The anchor scrolled out of the stage. Hidden by `visibility` rather than by the `visible` switch, so the drag registration and the caret survive a scroll that will bring the anchor straight back.",visibility:"hidden"},'& [part="tools"]':{display:"flex",alignItems:"center",gap:"2px"},'& [part="tag"] > [part="control"]':{$description:"The element badge. It is a button on every selection and disabled where the tag cannot be changed — a component instance, a repeater — which is studio-ui-guidelines.md §8.6's rule applied to the one control that used to change shape.",minWidth:"0",minHeight:"0",maxWidth:"140px",padding:"0 var(--jx-space-2)",border:"none",borderRadius:"var(--jx-radius-xs)",background:"var(--jx-tag)",color:"var(--jx-accent-fg)",fontSize:"var(--jx-text-xs)",overflow:"hidden",textOverflow:"ellipsis",display:"block",":hover":{background:"var(--jx-accent)",color:"var(--jx-accent-fg)"},":disabled":{opacity:"1",background:"var(--jx-tag)",cursor:"default"}},'& [part="tag-text"]':{overflow:"hidden",textOverflow:"ellipsis",display:"block"},'& [part="drag-handle"]':{display:"inline-flex",alignItems:"center",padding:"0 var(--jx-space-2)",lineHeight:"1",color:"var(--jx-fg-dim)",cursor:"grab",opacity:"0.7",userSelect:"none",":hover":{opacity:"1"},":active":{cursor:"grabbing"}},'& [part="drag-handle"][aria-disabled="true"]':{$description:"ONE shape (studio-ui-guidelines.md §8.6): the handle is greyed on the document root, never removed — a toolbar whose controls move under the cursor is worse than one with a dead affordance.",cursor:"default",opacity:"0.3"},"& jx-divider":{height:"20px",margin:"0 2px"},'& [part="verb"][data-destructive] > [part="control"]':{color:"var(--jx-danger)"},'& [part="cmd-label"]':{$description:"A record with no icon draws its title instead of a blank button.",padding:"0 2px",fontSize:"var(--jx-text-xs)"},'& [part="format"], & [part="overflow-slot"], & [part="format-slot"]':{display:"contents"},'& [part="link"]':{display:"flex",gap:"var(--jx-space-2)",alignItems:"center",padding:"var(--jx-space-3)"},'& [part="link-field"]':{width:"200px"}},$switch:{$ref:"#/state/visible"},cases:{true:{tagName:"div",attributes:{part:"bar","data-jx-region":"overlay.menu:block-action-bar","data-offscreen":"${state.offscreen ? '' : null}"},onmousedown:{$ref:"#/state/guardFocus"},onkeydown:{$prototype:"Function",body:[{$switch:{$ref:"event#/key"},cases:{Escape:[{operator:"call",target:{$ref:"#/state/leaveBar"},value:[]},{preventDefault:!0}]}}]},children:[{tagName:"jx-action-group",attributes:{part:"tools"},$props:{selects:"none",compact:!1,label:"Block actions",orientation:"horizontal"},children:[{tagName:"jx-action-button",attributes:{part:"parent","data-command-id":"selection.selectParent"},$props:{size:"sm",quiet:!0,icon:"arrow-elbow-left-up",label:{$ref:"#/state/parentLabel"},hint:{$ref:"#/state/parentHint"},disabled:{$ref:"#/state/parentDisabled"}},onclick:{$prototype:"Function",body:[{stopPropagation:!0},{operator:"call",target:{$ref:"#/state/selectParent"},value:[]}]}},{tagName:"jx-action-button",attributes:{part:"tag"},$props:{size:"sm",quiet:!0,label:{$ref:"#/state/tagLabel"},hint:{$ref:"#/state/tagHint"},haspopup:{$ref:"#/state/tagPopup"},disabled:{$ref:"#/state/tagDisabled"}},onclick:{$ref:"#/state/openTagMenu"},children:[{tagName:"span",attributes:{part:"tag-text"},textContent:"${state.tagLabel}"}]},{tagName:"span",attributes:{part:"drag-handle",role:"button","aria-label":"Drag to reorder","aria-disabled":"${state.canDrag ? null : 'true'}",title:"${state.dragHint}"},textContent:"⠿"},{tagName:"jx-divider",$props:{orientation:"vertical"}},{$prototype:"Array",items:{$ref:"#/state/verbs"},key:{$ref:"$map/item/id"},map:{tagName:"jx-action-button",attributes:{part:"verb","data-command-id":"${$map.item.id}","data-destructive":"${$map.item.destructive ? '' : null}"},$props:{size:"sm",quiet:!0,icon:{$ref:"$map/item/icon"},label:{$ref:"$map/item/title"},hint:{$ref:"$map/item/tooltip"},disabled:{$ref:"$map/item/disabled"}},onclick:{$prototype:"Function",body:[{stopPropagation:!0},{operator:"call",target:{$ref:"#/state/run"},value:[{$ref:"$map/item/id"}]}]},children:[{tagName:"span",attributes:{part:"label-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"$map/item/hasIcon"},cases:{false:{tagName:"span",attributes:{part:"cmd-label"},textContent:"${$map.item.title}"}}}]}},{tagName:"span",attributes:{part:"overflow-slot",role:"none"},$switch:{$ref:"#/state/hasOverflow"},cases:{true:{tagName:"jx-action-button",attributes:{part:"overflow"},$props:{size:"sm",quiet:!0,icon:"dots-three-vertical",label:"More block actions",hint:"More block actions",haspopup:"menu",expanded:{$ref:"#/state/overflowOpen"}},onclick:{$ref:"#/state/openOverflow"}}}},{tagName:"span",attributes:{part:"format-slot",role:"none"},$switch:{$ref:"#/state/showFormat"},cases:{true:{tagName:"span",attributes:{part:"format",role:"none"},children:[{tagName:"jx-divider",$props:{orientation:"vertical"}},{$prototype:"Array",items:{$ref:"#/state/formats"},key:{$ref:"$map/item/id"},map:{tagName:"jx-action-button",attributes:{part:"format-button","data-command-id":"${$map.item.id}","data-tag":"${$map.item.value}"},$props:{size:"sm",quiet:!0,emphasized:!0,toggles:!0,icon:{$ref:"$map/item/icon"},label:{$ref:"$map/item/title"},hint:{$ref:"$map/item/tooltip"},selected:{$ref:"$map/item/selected"},disabled:{$ref:"$map/item/disabled"}},onclick:{$prototype:"Function",body:[{stopPropagation:!0}]},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/run"},value:[{$ref:"$map/item/id"}]}]},children:[{tagName:"span",attributes:{part:"label-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"$map/item/hasIcon"},cases:{false:{tagName:"span",attributes:{part:"cmd-label"},textContent:"${$map.item.title}"}}}]}},{tagName:"jx-action-button",attributes:{part:"insert-data","data-jx-region":"overlay.menu:block-action-bar/insertData"},$props:{size:"sm",quiet:!0,icon:"database",label:"Insert data",hint:"Insert data",haspopup:"menu"},onclick:{$ref:"#/state/openMergeTags"}}]}}}]},{tagName:"jx-popover",attributes:{part:"link"},$props:{label:"Link URL",x:{$ref:"#/state/linkX"},y:{$ref:"#/state/linkY"}},children:[{tagName:"jx-textfield",attributes:{part:"link-field"},$props:{size:"sm",type:"url",label:"Link URL",placeholder:"https://...",value:{$ref:"#/state/linkValue"}},oninput:{$ref:"#/state/linkInput"},onkeydown:{$prototype:"Function",body:[{$switch:{$ref:"event#/key"},cases:{Enter:[{operator:"call",target:{$ref:"#/state/applyLink"},value:[]},{preventDefault:!0}],Escape:[{operator:"call",target:{$ref:"#/state/closeLink"},value:[]},{preventDefault:!0},{stopPropagation:!0}]}}]}},{tagName:"jx-action-button",attributes:{part:"link-apply"},$props:{size:"sm",label:{$ref:"#/state/linkApplyLabel"}},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/applyLink"},value:[]}]},children:[{tagName:"span",textContent:"${state.linkApplyLabel}"}]},{tagName:"span",attributes:{part:"link-remove-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"#/state/linkExisting"},cases:{true:{tagName:"jx-action-button",attributes:{part:"link-remove"},$props:{size:"sm",label:"Remove"},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/removeLink"},value:[]}]},children:[{tagName:"span",textContent:"Remove"}]}}}]}]}}};T("block-action-bar",co);function Zt(){return{barX:0,barY:0,canDrag:!1,dragHint:"",formats:[],hasOverflow:!1,offscreen:!1,overflowOpen:!1,parentDisabled:!0,parentHint:"",parentLabel:"Select Parent",showFormat:!1,tagDisabled:!0,tagHint:"",tagLabel:"",tagPopup:"",verbs:[],visible:!1}}function Gc(e){let t=typeof e==="string"?void 0:e.attributes?.part;return typeof t==="string"?t:""}function Qc(e){let n=e?.$map?.item?.id;return typeof n==="string"?n:""}function lo(e,t){let n=new Map,r=null,o=null,s=null,c=null,f=!1,h=()=>{if(f=!1,s?.open)s.hidePopover()},A=v({...Zt(),applyLink:()=>{let S=A.linkValue;h(),t.applyLink(S)},closeLink:h,guardFocus:(S,g)=>{let{target:N}=g;if(N instanceof Element&&N.closest('[part="drag-handle"], [part="tag"], [part="link"]'))return;g.preventDefault()},leaveBar:()=>t.leaveBar(),linkApplyLabel:"Apply",linkExisting:!1,linkInput:(S,g)=>{let N=g.target?.value;A.linkValue=typeof N==="string"?N:""},linkValue:"",linkX:0,linkY:0,openMergeTags:(S,g)=>{g.stopPropagation(),t.openMergeTags(g.currentTarget)},openOverflow:(S,g)=>{g.stopPropagation(),t.openOverflow(g.currentTarget)},openTagMenu:(S,g)=>{g.stopPropagation(),t.openTagMenu(g.currentTarget)},removeLink:()=>{h(),t.removeLink()},run:(S)=>t.run(S),selectParent:()=>t.selectParent()});return R("block-action-bar",A,e,{onNodeCreated:(S,g,N,O)=>{if(!(S instanceof HTMLElement))return;let L=Gc(N);if(L==="bar"){r=S;return}if(L==="tools"){o=S;return}if(L==="link"){s=S;return}if(L==="link-field"){c=S;return}if(L==="drag-handle"){t.onDragHandle(S);return}let P=L==="verb"||L==="format-button"?Qc(O):"";if(P!=="")n.set(P,S)}}),{bar:()=>r?.isConnected===!0?r:null,button:(S)=>{let g=n.get(S)??null;return g?.isConnected===!0?g:null},closeLink:h,linkOpen:()=>f,openLink(S,g,N){A.linkValue=g??"",A.linkExisting=N,A.linkApplyLabel=N?"Update":"Apply",f=!0;let O=s;if(!O)return;let L=()=>{if(!f)return;let P=Oe(S);A.linkX=Math.round(P.left),A.linkY=Math.round(P.bottom),O.showPopover({source:S}),c?.focus()};if(O.hasAttribute("popover"))L();else O.addEventListener("jx-ready",L,{once:!0})},toolbar:()=>o?.isConnected===!0?o:null,update(S){if(!S.visible)h();Object.assign(A,S)}}}var ze=null;function kS(e){if(ze=e,!fo)document.addEventListener("keydown",pl),document.addEventListener("scroll",Xc,{capture:!0,passive:!0}),fo=!0}var fo=!1,Zn=!1;function Xc(e){if(!ze||gl())return;if(u.value?.session.selection.length===0)return;let t=ze.getCanvasMode();if(t!=="design"&&t!=="edit")return;if(!(e.target===document||e.target instanceof Node&&jl(e.target)!==null)||Zn)return;Zn=!0,requestAnimationFrame(()=>{Zn=!1,Jc()})}function Jc(){let e=be;if(!e||!Ce.visible){Hg();return}let t=gx(),n=t?ho(t):null;if(!n){$e({...Ce,offscreen:!0});return}$e({...Ce,barX:n.left,barY:n.top,offscreen:!1}),requestAnimationFrame(()=>{let r=e.bar();if(r)po(r)})}var ea=38;function ho(e){let t=Uo(),n=Nb(t)?.scrollContainer??t.wrap,r=n?Oe(n):null;if(r&&(e.top+e.height<r.top||e.top>r.bottom))return null;let o=r?r.top:80-ea,s=e.top-ea;if(s>=o)return{left:e.left,top:s};let c=e.top+e.height+4;return{left:e.left,top:r?Math.max(r.top,Math.min(c,r.bottom-ea)):c}}function po(e){e.style.removeProperty("--jx-bar-x");let t=Oe(e);if(t.right>window.innerWidth)e.style.setProperty("--jx-bar-x",`${Math.max(0,window.innerWidth-t.width)}px`)}function k_(){let e=(t,n,r,o)=>({category:"Edit",group:"6_format",icon:r,id:`format.${t}`,...o===void 0?{}:{keybinding:o},keyScope:"caret",level:"selection",menus:["blockbar/format","palette"],requires:"a text caret in the canvas",run:()=>{Cd({command:t})},title:n,undo:"document",when:(s)=>s.caret.inCanvas});return[e("bold","Bold","text-b","mod+b"),e("italic","Italic","text-italic","mod+i"),e("underline","Underline","text-underline","mod+u"),e("strikethrough","Strikethrough","text-strikethrough"),e("superscript","Superscript","text-superscript"),e("subscript","Subscript","text-subscript"),e("code","Code","code","mod+`"),{category:"Edit",group:"6_format",icon:"link",id:"format.link",keybinding:"mod+k",keyScope:"caret",level:"selection",menus:["blockbar/format","palette"],requires:"a text caret in the canvas",run:()=>{Tl()},title:"Link…",undo:"document",when:(t)=>t.caret.inCanvas}]}var Xe=null;function yt(){return Xe??Le(u.value?.session.selection)}function Eo(){if(Xe)return[Xe];return u.value?.session.selection??[]}function tn(e,t){let n=Xe;Xe=e;try{return t()}finally{Xe=n}}function zc(e){let t=e?.tagName,n=qe(t);return Boolean(n.includes("-")&&st.some((r)=>r.tagName===n))}function Zc(){let e=u.value,t=yt(),n=e&&t?K(e.doc.document,t):null;return Ex({caret:{active:Wa().editing,inCanvas:Wa().editing},editor:{kind:e?ha(e.session.ui.canvasMode):"none"},document:{open:Boolean(e)},selection:{count:t?1:0,isComponentInstance:zc(n),isRoot:t?ht(t)===null:!1,kind:qe(n?.tagName)}})}function ge(e=yt()){let t=u.value;if(!t||!e)return null;if(ha(t.session.ui.canvasMode)!=="canvas")return null;let n=_n(e),r=ht(e);if(typeof n!=="number"||!r)return null;let o=K(t.doc.document,r);if(!o)return null;return{index:n,parentPath:r,path:e,siblings:_o(o),tab:t}}function el(e){if(!e||typeof e!=="object")return!1;if(Sp.has((qe(e.tagName)||"div").toLowerCase()))return!1;let{children:t}=e;if(!t)return!1;if(!Array.isArray(t))return t.$prototype==="Array";return t.length===0||t.some((n)=>typeof n==="object"&&n!==null&&!ix(n,e))}function tl(){let e=ge();return e!==null&&e.index>0}function nl(){let e=ge();return e!==null&&e.index<e.siblings.length-1}function bo(){let e=ge();return e!==null&&e.index>0&&el(e.siblings[e.index-1])}function al(){let e=ge();return e!==null&&ht(e.parentPath)!==null&&typeof _n(e.parentPath)==="number"}function rl(){let e=ge();if(!e||e.index===0)return;let{index:t,parentPath:n,path:r,tab:o}=e;q(o,(s)=>pa(s,r,n,t-1)),o.session.selection=[[...n,"children",t-1]]}function ol(){let e=ge();if(!e||e.index>=e.siblings.length-1)return;let{index:t,parentPath:n,path:r,tab:o}=e;q(o,(s)=>pa(s,r,n,t+2)),o.session.selection=[[...n,"children",t+1]]}function sl(){let e=ge();if(!bo()||!e)return;let{index:t,parentPath:n,path:r,tab:o}=e,s=[...n,"children",t-1],{length:c}=_o(K(o.doc.document,s));q(o,(f)=>pa(f,r,s,c)),o.session.selection=[[...s,"children",c]]}function il(){let e=ge();if(!e)return;let t=ht(e.parentPath),n=_n(e.parentPath);if(!t||typeof n!=="number")return;q(e.tab,(r)=>pa(r,e.path,t,n+1)),e.tab.session.selection=[[...t,"children",n+1]]}function ul(){let e=u.value,t=Eo(),n=yt();if(!e||!n||hv(t).length===0)return;let r=e.doc.document;if(q(e,(s)=>gp(s,t)),e.doc.document===r)return;let o=ht(n);e.session.selection=o?[o]:[]}function cl(){let e=u.value,t=Eo();if(!e||t.length===0)return;q(e,(n)=>mv(n,t))}function ll(){let e=u.value,t=yt(),n=t?ht(t):null;if(e&&n)e.session.selection=[n]}var en=(e)=>e.selection.count>0;function jg(e,t){e.registerAll([{category:"Selection",enablement:tl,group:"1_move_1",icon:"arrow-up",id:"selection.moveUp",keyScope:"canvas",level:"selection",menus:["blockbar","outline/row"],requires:"an element with a sibling above it",run:()=>rl(),title:"Move Up",undo:"document",when:en},{category:"Selection",enablement:nl,group:"1_move_2",icon:"arrow-down",id:"selection.moveDown",keyScope:"canvas",level:"selection",menus:["blockbar","outline/row"],requires:"an element with a sibling below it",run:()=>ol(),title:"Move Down",undo:"document",when:en},{category:"Selection",enablement:bo,group:"1_move_3",icon:"arrow-right",id:"selection.moveIn",keyScope:"canvas",level:"selection",menus:["outline/row"],requires:"a container directly above the element",run:()=>sl(),title:"Move Into Previous",undo:"document",when:en},{category:"Selection",enablement:al,group:"1_move_4",icon:"arrow-left",id:"selection.moveOut",keyScope:"canvas",level:"selection",menus:["outline/row"],requires:"an element nested inside another",run:()=>il(),title:"Move Out of Parent",undo:"document",when:en},{category:"Selection",enablement:(n)=>Boolean(n.selection.kind)&&!n.selection.isRoot&&n.editor.kind==="canvas",group:"4_component",icon:"cube",id:"selection.convertToComponent",level:"selection",menus:["blockbar","context/element","palette"],requires:"an element that is not the document root",run:()=>{t.convertToComponent()},title:"Convert to Component",undo:"project",when:(n)=>n.selection.count>0&&!n.selection.isComponentInstance},{category:"Selection",group:"4_component",icon:"pencil-simple",id:"selection.editComponent",level:"selection",menus:["blockbar","context/element","palette"],requires:"a component instance",run:()=>{let n=dl();if(n)t.navigateToComponent(n)},title:"Edit Component",undo:"none",when:(n)=>n.selection.isComponentInstance}])}function dl(){let e=u.value,t=yt(),n=e&&t?K(e.doc.document,t):null;return st.find((o)=>o.tagName===n?.tagName)?.path??null}var ta=null;function ke(){if(ta)return ta;let e=Lf({getContext:Zc}),t={...tw(),deleteSelection:ul,duplicateSelection:cl,selectParent:ll};return e.registerAll(Jh(t).filter((n)=>n.level==="selection")),jg(e,{convertToComponent:()=>Tf(),navigateToComponent:(n)=>ze?.navigateToComponent(n)}),e.registerAll(k_()),ta=e,e}var na=5;function ra(e,t){let n=e.disabledReason(t.id);if(n!==void 0)return`${t.title} — requires ${n}`;let r=e.keymap.formatBinding(t.id);return r?`${t.title} (${r})`:t.title}function _t(e,t,n){let r=()=>{if(e.isEnabled(t))on(e,t,void 0,"Editor")};if(n)tn(n,r);else r()}function mo(e,t,n={}){return{destructive:t.destructive===!0,disabled:n.disabled??e.disabledReason(t.id)!==void 0,hasIcon:Boolean(t.icon),icon:t.icon??"",id:t.id,selected:n.selected??!1,title:t.title,tooltip:ra(e,t),value:n.value??""}}var be=null,Ce=Zt();function $e(e){Ce=e,be?.update(e)}function fl(){if(!Je.blockActionBarEl)Je.blockActionBarEl=vs("popover","block-action-bar");return be??=lo(Je.blockActionBarEl,{applyLink:(e)=>{Cd({command:"link",href:e||""})},leaveBar:()=>{oa(),hl()},onDragHandle:ml,openMergeTags:bl,openOverflow:(e)=>{let t=ke();sa(e,t,t.forPlacement("blockbar").slice(na))},openTagMenu:El,removeLink:()=>{Cd({command:"link",href:null})},run:(e)=>_t(ke(),e),selectParent:()=>_t(ke(),"selection.selectParent")}),be}function ml(e){Je.selDragCleanup?.(),Je.selDragCleanup=gs({canDrag:()=>ge(Le(u.value?.session.selection))!==null,element:e,getInitialData:()=>({path:[...Le(u.value?.session.selection)??[]],type:"tree-node"}),onGenerateDragPreview:({nativeSetDragImage:t})=>{wc({nativeSetDragImage:t})}})}var He=null;function oa(){let e=He;if(He=null,e?.close(),Ce.overflowOpen)$e({...Ce,overflowOpen:!1})}function sa(e,t,n,r=null){oa();let o=()=>n.map((c,f)=>{let h=t.keymap.formatBinding(c.id),A=t.disabledReason(c.id);return{destructive:c.destructive===!0,disabled:A!==void 0,dividerAbove:f>0&&c.destructive===!0,id:c.id,run:()=>{_t(t,c.id,r)},title:c.title,...h?{chord:h}:{},...A===void 0?{}:{requires:A}}}),s=r?tn(r,o):o();if(He=Nt({label:"More block actions",onClosed:(c)=>{if(He===c){if(He=null,Ce.overflowOpen)$e({...Ce,overflowOpen:!1})}},opener:e,region:"block-actions",rows:s}),!r)$e({...Ce,overflowOpen:!0})}function hl(){let e=Uo().wrap;(e?.querySelector("iframe.jx-canvas-iframe")??e)?.focus()}function pl(e){if(e.key!=="ArrowUp"||!e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;if(Am())return;let t=be?.toolbar();if(!t)return;e.preventDefault(),Ap(t,0)}function go(e){if(!e)return[];let t=qe(e.tagName);if(t.includes("-")&&st.some((s)=>s.tagName===t)||e.$prototype==="Array")return[];let r=_o(e),o=!e.textContent&&(r.length===0||r.length===1&&typeof r[0]==="object"&&r[0]?.tagName==="br");return uo((t||"div").toLowerCase(),o)}function El(e){let t=u.value,n=Le(t?.session.selection),r=t&&n?K(t.doc.document,n):null,o=go(r);if(!n||o.length===0)return;Pg(e,"",{commands:o,onSelect:(s)=>{q(u.value,(c)=>{Ue(c,n,"tagName",s.tag)})},showFilter:o.length>6})}function bl(e){let t=u.value,n=t?.doc.document.state??{},r=Qr(n,null,null),o=Wa().snapshot?.path??Le(t?.session.selection),s=t&&o?qy(t.doc.document,o):null;if(s&&t){let c=Jr(s,t.doc.document.state,D?.projectConfig);r.push(...Xr(c))}Pg(e,"",{commands:r.map((c)=>({description:c.hint,label:c.label,tag:c.token})),onSelect:(c)=>Cd({command:"insertData",token:c.tag}),showFilter:!0})}function S_(){be?.closeLink()}function gl(){return be?.linkOpen()===!0}function Tl(){let e=be,t=e?.button("format.link")??e?.bar();if(!e||!t)return;let n=Wa().snapshot?.link??{active:!1,href:null};e.openLink(t,n.href,n.active)}function Jy(){Fe=null,oa(),aa()}function aa(){if(be)$e({...Zt(),visible:!1});Je.selDragCleanup?.(),Je.selDragCleanup=null}var Fe=null;function To(e,t){return JSON.stringify([e?.id??null,t])}function SS(){Jy();let e=u.value;Fe={key:To(e,Le(e?.session.selection))}}function ES(){if(!Fe)return;Fe=null,Hg()}function TS(e){if(!(e instanceof Node))return!1;return[Je.blockActionBarEl,He?.host??null,vs("popover","slash-menu")].some((n)=>n!=null&&n.contains(e))}function Al(){let e=u.value,t=ze?.getCanvasMode(),n=Le(e?.session.selection);if(!e||!n||t!=="design"&&t!=="edit")return null;let r=K(e.doc.document,n);if(!r)return null;let o=gx(),s=o?ho(o):null;if(!s)return null;let c=ke(),f=(qe(r.tagName)||"div").toLowerCase(),{editingProp:h,snapshot:A}=Wa(),S=TT(f)||[],g=!h&&S.length>0,N=A?.collapsed??!0,O=S.flatMap((Ne)=>{let Ta=c.get(`format.${Ne.command}`);return Ta?[mo(c,Ta,{disabled:N&&Ne.command!=="link",selected:A?.activeTags.includes(Ne.tag)===!0,value:Ne.tag})]:[]}),L=c.forPlacement("blockbar"),P=ht(n),B=P?K(e.doc.document,P):null,Y=c.get("selection.selectParent"),Se=Y?.title??"Select Parent",ae=B?`Select parent: ${Zo(B)}`:Se,X=Y?c.keymap.formatBinding(Y.id):void 0,fe=go(r),je=(r.$prototype==="Array"?Zo(r):r.$id||qe(r.tagName)||"div")+(h?` · ${h}`:""),et=ge(n)!==null;return{barX:s.left,barY:s.top,canDrag:et,dragHint:et?"Drag to reorder":"Drag to reorder — the document root cannot move",formats:O,hasOverflow:L.length>na,offscreen:!1,overflowOpen:He!==null,parentDisabled:!P,parentHint:X?`${ae} (${X})`:ae,parentLabel:ae,showFormat:g,tagDisabled:fe.length===0,tagHint:fe.length>0?"Change element type":je,tagLabel:je,tagPopup:fe.length>0?"menu":"",verbs:L.slice(0,na).map((Ne)=>mo(c,Ne)),visible:!0}}function Hg(){if(!ze)return;fl();let e=u.value,t=Le(e?.session.selection);if(Fe){if(Fe.key===To(e,t)){aa();return}Fe=null}let n=Al();if(!n){aa();return}$e(n),requestAnimationFrame(()=>{let r=be?.bar();if(r)po(r)})}var an="web application/jx+json";function Co(e){if(typeof e==="string")return e;let t=qe(e.tagName).split("|")[0]||"div",n="";if(e.attributes)for(let[o,s]of Object.entries(e.attributes)){if(typeof s==="object")continue;n+=s===""?` ${o}`:` ${o}="${String(s).replaceAll('"',"&quot;")}"`}if(e.style){let o=Object.entries(e.style).map(([s,c])=>`${s}:${c}`).join(";");if(o)n+=` style="${o.replaceAll('"',"&quot;")}"`}let r="";if(typeof e.textContent==="string")r=e.textContent;else if(Array.isArray(e.children))r=e.children.map((o)=>Co(o)).join("");return`<${t}${n}>${r}</${t}>`}async function xo(e){m.clipboard=e;try{let t=new Blob([JSON.stringify(e)],{type:an}),n=new Blob([Co(e)],{type:"text/html"});await navigator.clipboard.write([new ClipboardItem({[an]:t,"text/html":n})])}catch{try{await navigator.clipboard.writeText(JSON.stringify(e))}catch{}}}async function ua(){try{let e=await navigator.clipboard.read();for(let t of e){if(t.types.includes(an)){let n=await t.getType(an);return[JSON.parse(await n.text())]}if(t.types.includes("text/html")){let r=await(await t.getType("text/html")).text(),s=Ur(r).map((c)=>typeof c==="string"?{tagName:"p",textContent:c}:c);if(s.length>0)return s}if(t.types.includes("text/plain")){let r=await(await t.getType("text/plain")).text();try{let o=JSON.parse(r);if(o&&o.tagName)return[o]}catch{}if(r.trim())return[{tagName:"p",textContent:r.trim()}]}}}catch{if(m.clipboard)return[Ao(m.clipboard)]}return null}async function _l(){let e=u.value,t=Le(e?.session.selection);if(!e||!t)return;let n=K(e.doc.document,t);if(!n)return;let r=Ao(n);await xo(r),k.success("Copied",{key:"clipboard"})}async function yl(){let e=u.value,t=Le(e?.session.selection);if(!e||!t||t.length<2)return;let n=K(e.doc.document,t);if(!n)return;let r=Ao(n);await xo(r);let o=e.session.selection.filter((s)=>s.length>=2);if(!q(e,(s)=>gp(s,o)))return;k.success("Cut",{action:"edit.undo",key:"clipboard"})}async function $S(){let e=u.value;if(!e)return;let t=await ua();if(!t||t.length===0)return;let n=Le(e.session.selection),r=n??[],o=K(e.doc.document,r);if(!o)return;if(n&&n.length>=2){let s=ht(n),c=_n(n);q(e,(f)=>{for(let h=0;h<t.length;h++)Ji(f,s,c+1+h,t[h])})}else{let s=Array.isArray(o.children)?o.children.length:0;q(e,(c)=>{for(let f=0;f<t.length;f++)Ji(c,r,s+f,t[f])})}k.success("Pasted",{action:"edit.undo",key:"clipboard"})}function So(e){return e.$prototype==="Array"}function No(e){let t=()=>e.target()!==null,n=()=>{let c=u.value;return Boolean(c)&&ha(c.session.ui.canvasMode)==="canvas"},r=()=>{let c=e.target();return c!==null&&Nl(c.path)&&n()},o=()=>{let c=e.target();return c!==null&&!So(c.node)},s="an element with a sibling position — not the page root or a repeater item";return[{id:"edit.pasteAfter",title:"Paste after",category:"Edit",level:"selection",keyScope:"canvas",menus:["context/element","palette"],group:"1_clipboard",undo:"document",when:()=>t()&&n(),enablement:()=>r()&&o(),requires:"an element with a sibling position — not the page root or a repeater item",run:async()=>{let c=e.target(),f=await ua();if(!c||!f||f.length===0)return;let h=ht(c.path),A=_n(c.path);q(u.value,(S)=>{for(let[g,N]of f.entries())Ji(S,h,A+1+g,N)}),k.success("Pasted",{action:"edit.undo",key:"clipboard"})}},{id:"edit.pasteInside",title:"Paste inside",category:"Edit",level:"selection",menus:["context/element","palette"],group:"1_clipboard",undo:"document",when:()=>t()&&n(),enablement:()=>{let c=e.target();return c!==null&&c.path.length>=2&&o()},requires:"a container element that is not a repeater",run:async()=>{let c=e.target(),f=await ua();if(!c||!f||f.length===0)return;let h=Array.isArray(c.node.children)?c.node.children.length:0;q(u.value,(A)=>{for(let[S,g]of f.entries())Ji(A,c.path,h+S,g)}),k.success("Pasted",{action:"edit.undo",key:"clipboard"})}},{id:"edit.copyStyles",title:"Copy styles",category:"Edit",level:"selection",menus:["context/element","palette"],group:"2_styles",undo:"none",when:t,enablement:()=>Boolean(e.target()?.node.style),requires:"styles on the selected element",run:()=>{let c=e.target()?.node.style;if(!c)return;m.styleClipboard=Ao(c),k.success("Styles copied",{key:"clipboard"})}},{id:"edit.pasteStyles",title:"Paste styles",category:"Edit",level:"selection",menus:["context/element","palette"],group:"2_styles",undo:"document",when:()=>t()&&n(),enablement:()=>e.styleClipboard()!==null,requires:"a copied style set",run:()=>{let c=e.target(),f=e.styleClipboard();if(!c||!f)return;let h=Ao(f);q(u.value,(A)=>HL(A,c.path,h)),k.success("Styles pasted",{action:"edit.undo",key:"clipboard"})}},{id:"selection.insertBefore",title:"Insert before",category:"Insert",level:"selection",menus:["context/element","palette"],group:"3_structure",undo:"document",when:t,enablement:r,requires:"an element with a sibling position — not the page root or a repeater item",run:()=>yo(e.target(),0)},{id:"selection.insertAfter",title:"Insert after",category:"Insert",level:"selection",menus:["context/element","palette"],group:"3_structure",undo:"document",when:t,enablement:r,requires:"an element with a sibling position — not the page root or a repeater item",run:()=>yo(e.target(),1)},{id:"selection.wrap",title:"Wrap in Div",category:"Selection",level:"selection",menus:["context/element","palette"],group:"3_structure",undo:"document",when:t,enablement:r,requires:"an element with a sibling position — not the page root or a repeater item",run:()=>{let c=e.target();if(c)q(u.value,(f)=>ML(f,c.path))}},{id:"selection.setTitle",title:"Set Title",category:"Selection",level:"selection",menus:["context/element","palette"],group:"4_identity",undo:"document",when:()=>Boolean(e.target()?.rerender),enablement:r,requires:"an element with a sibling position — not the page root or a repeater item",run:async()=>{let c=e.target();if(!c?.rerender)return;let{startLayerTitleEdit:f}=await (me("b6shnaax"),import("./layers-panel-b6shnaax.js"));f(c.path,c.rerender)}}]}function yo(e,t){if(!e)return;let n=ht(e.path),r=_n(e.path);q(u.value,(o)=>Ji(o,n,r+t,{children:[],tagName:"p"}))}function I_(){return[{category:"Edit",group:"1_clipboard",id:"edit.copy",keybinding:"mod+c",keyScope:"canvas",level:"selection",menus:["context/element","palette"],requires:"an element selection",run:()=>{_l()},title:"Copy",undo:"none",when:$d},{category:"Edit",destructive:!0,enablement:sv,group:"1_clipboard",id:"edit.cut",keybinding:"mod+x",keyScope:"canvas",level:"selection",menus:["context/element","palette"],requires:"an element selection that is not the document root",run:()=>{yl()},title:"Cut",undo:"document",when:$d}]}function Cl(e,t){e.registerAll(No(t))}var Ye=null,Io=null;function DS(e){Io=e}function Lo(){if(Ye)return Ye;let e=u.value,t=Le(e?.session.selection);if(!e||!t)return null;let n=K(e.doc.document,t);return n?{node:n,path:t}:null}var ca={componentPathFor:(e)=>e.includes("-")&&st.find((t)=>t.tagName===e)?.path||null,styleClipboard:()=>m.styleClipboard,target:Lo};function AS(){return No(ca)}function xl(){let e=Lo(),t=u.value,n=qe(e?.node.tagName);return Ex({capability:{findReferences:Rb()},document:{dirty:Boolean(t?.doc.dirty),open:Boolean(t)},editor:{kind:t?ha(t.session.ui.canvasMode):"none"},selection:{count:e?1:0,isComponentInstance:Boolean(e&&ca.componentPathFor(n)),isRepeater:e?So(e.node):!1,isRoot:e?!Nl(e.path):!1,kind:n}})}var ia=null;function Ro(){let e=ne();if(e)return e;if(ia)return ia;let t=Lf({getContext:xl}),n=Jh({...tw(),deleteSelection:()=>{let r=Ye;if(r)q(u.value,(o)=>Vu(o,r.path))},duplicateSelection:()=>{let r=Ye;if(r)q(u.value,(o)=>VC(o,r.path))}}).filter((r)=>(r.menus??[]).includes("context/element"));return t.registerAll(n),t.registerAll(G_().filter((r)=>(r.menus??[]).includes("context/element"))),t.registerAll(I_()),jg(t,{convertToComponent:()=>Tf(),navigateToComponent:(r)=>{Io?.(r)}}),Cl(t,ca),ia=t,t}var nn=null,Ct=[];function Sl(e){let t=Ct.find((r)=>r.id===e);if(!t||t.disabled)return;let n=Ro().run(e);Uh()}function Uh(){nn?.close()}function Il(e){let t=Ro(),n;return t.forPlacement(e).map((r,o)=>{let s=o>0&&r.group!==n;({group:n}=r);let c=t.isEnabled(r.id),f=t.keymap.formatBinding(r.id),h=f&&f.toLowerCase()!==r.title.toLowerCase()?f:void 0,A=c?void 0:t.disabledReason(r.id),S={destructive:r.destructive===!0,disabled:!c,dividerAbove:s,id:r.id,title:r.title};if(h)S.chord=h;if(A)S.requires=A;return S})}function Yy(e,t,n={}){e.preventDefault(),Uh();let r=u.value;if(!r)return;let o=K(r.doc.document,t);if(!o)return;if(!dv(r.session.selection,t))r.session.selection=[t];if(Ye={node:o,path:t,rerender:n.rerender},Ct=Il(n.placement??"context/element"),Ct.length===0){Ye=null;return}let s=document.activeElement instanceof HTMLElement?document.activeElement:null;nn=Nt({label:"Element actions",onClosed:(c)=>{if(nn===c)nn=null,Ye=null,Ct=[]},opener:s,origin:{x:e.clientX,y:e.clientY},region:"context",rows:Ct,run:Sl})}function Ll(e,t){if(e===null||t===null)return e===t;return e.length===t.length&&e.every((n,r)=>n===t[r])}function E_(e,t){Lc(e,{ui:{openDialog:t}}),xC(e,t)}function la(e,t){let n=K1(e.doc.document,t);if(n===null||Ll(e.session.ui.openDialog,n))return!1;return E_(e,n),!0}function Oo(e){if(e)la(e,Le(e.session.selection))}function Rl(e,t){if(e===null||t===null)return e===t;return e.length===t.length&&e.every((n,r)=>n===t[r])}function T_(e,t){Lc(e,{ui:{openPopover:t}}),wC(e,t)}function Do(e,t){let n=G1(e.doc.document,t);if(n===null||Rl(e.session.ui.openPopover,n))return!1;return T_(e,n),!0}function Ol(e){if(e)Do(e,Le(e.session.selection))}function vo(e){let t=u.value;if(t)Do(t,e),la(t,e);lm(e)}var xt=null;function RS(){if(!xt){let t=Q(()=>{let n=u.value;n?.session.selection.map((r)=>r.join("/")).join("|"),n?.doc.document,sh();try{Ol(n),Oo(n)}finally{ah()}});xt={stop:()=>{t.effect.stop()}}}let e=xt;return()=>{if(e.stop(),xt===e)xt=null}}var wo={$schema:"https://jxsuite.com/schema/v1",$id:"StudioPanelOutline",$description:"The Navigator's Outline panel while the pane is drawing a document: the element tree, as a Jx document over the kit. The adapter hands in one flat projection per row — its badge, its name, how deep it sits, where it stands among its siblings, whether it is selected, whether it is being renamed and which verbs it may offer — so nothing here walks the document, reads the command registry or knows what a collapsed ancestor is. THE TREE IS `jx-tree`, and the eight keyboard cases and seven ARIA attributes this document used to spell out are the element's now. They were spelled out again in `files-panel.json`, which is the reason: two trees carried one keyboard contract independently, and nothing held them in agreement — ← climbed to a parent here and merely closed a directory there, Home and End existed here and not there, and neither had typeahead. What is left is what is true of THIS tree: a row is a badge and a name, a rename happens in place, and the verbs a row offers sit on a plate over its right edge. It is one panel with two bodies and this is the design half of it; `panel-stylebook-layers.json` is the other, and the two share a row vocabulary on purpose so the pane switching between them does not switch design as well.",tagName:"div",attributes:{part:"outline"},style:{$description:"What `.layers-container`, `.layer-row` and their nine siblings said in `styles/panels.css`, keyed on `part` and carried here. Four Spectrum names could not come with the declarations and are the kit's instead, at the same values: `--spectrum-corner-radius-75` (2px) is `--jx-radius-xs`, `--spectrum-font-size-50` (11px) is `--jx-text-sm`, the badge's 10px is `--jx-text-xs` and the focus ring is `--jx-focus-ring`. Two colours could not at first: `--case-c` and `--slot-c` were declared on `<sp-theme>` rather than at `:root`, so each carried a `:root` token as its fallback. That day came with Spectrum's removal, and the fallbacks are gone with it: both names are declared at `:root` in `styles/tokens.json` now, at exactly the values written here as their fallbacks (`--accent` and `--success`), in the same alias idiom `--switch-c` already used. A `var()` fallback that can no longer be reached is not a safety net, it is a second answer nobody will keep in step. HALF OF THESE RULES ARE GONE, and that is `jx-tree-item` rather than an omission: the row's flex line, its one-control-height box, the hover and focus states, the selected wash and its inline-start edge, the faded dragged row, the dashed drop mark, the chevron's box, the label's ellipsis and the drag grip are all the element's — including the forced-colours redraw of the selected row, which used to be written out at the bottom of this file. THE INDENT IS STILL A VARIABLE, because this tree CAPS it: past six levels a `240px` column is all indent and no name, so `--row-indent` carries an already-capped length and overrides the element's `level`-derived padding. And the row STATES are attributes rather than classes (`ui.md` §3.1) — `aria-selected` is the only writer of the selected drawing, which is also what stops the wash and the announcement disagreeing.",display:"block",position:"relative",fontFamily:"var(--jx-font-sans)",color:"var(--fg)",'& [part="tree"]':{$description:"`jx-tree` declares no scrollbar of its own — one Studio tree scrolls in itself and this one scrolls in the Navigator, which also holds its toolbar — so what it needs here is the block box and this package's own text colour, which the element would otherwise take from the kit's `--jx-fg` directly and stop following the studio alias.",display:"block",color:"var(--fg)"},'& [part="row"]':{$description:"The four things the element cannot decide for this tree. The cluster is positioned against the row, so the row is the containing block. The indent is CAPPED — `--row-indent` is already `min(depth, 6) * 16 + 8`, and overriding the element's `level`-derived padding is what keeps a depth-12 row from pushing its badge out of a 240px column. The whole row is the drag handle, so the cursor says so. And the transition is what `panels/dnd.ts` animates the drop gap with.",position:"relative",paddingInline:"var(--row-indent, var(--jx-space-3)) var(--jx-space-3)",cursor:"grab",transition:"transform 150ms ease"},'& [part="row"][data-dragging]':{$description:"The lift is the element's; only the transition is this tree's, and it has to stop, or the dragged row animates back through every gap the rows below it open.",transition:"none"},'& [part="row"][data-kind="text"]':{$description:"A text node's line: drawn, and deliberately not a `jx-tree-item`. There is nothing to do to it — it cannot be moved, renamed, duplicated or deleted on its own — so making it a row the caret can land on would put a stop in the walk that answers to none of the verbs the walk offers. It is therefore the one line in this tree the element does not draw, and the box below is `jx-tree-item`'s own, restated: the same 24px the window reserves scroll by, and the same transparent inline-start edge, so a text line and an element line start at the same pixel.",display:"flex",alignItems:"center",gap:"var(--jx-space-2)",blockSize:"var(--jx-control-h)",boxSizing:"border-box",borderInlineStart:"2px solid transparent",whiteSpace:"nowrap",userSelect:"none",opacity:"0.6",fontStyle:"italic"},'& [part="badge"]':{$description:"A long custom-element tag is a badge, not a paragraph: it truncates rather than pushing the label out of a 240px column.",flex:"none",maxWidth:"12ch",overflow:"hidden",padding:"0 var(--jx-space-2)",borderRadius:"var(--jx-radius-xs)",background:"var(--tag)",color:"var(--accent-fg)",fontSize:"var(--jx-text-xs)",textOverflow:"ellipsis"},'& [part="badge"][data-kind="map"]':{background:"var(--map)",fontSize:"9px",letterSpacing:"0.5px"},'& [part="badge"][data-kind="switch"]':{background:"var(--switch-c)"},'& [part="badge"][data-kind="case"]':{maxWidth:"60px",background:"var(--case-c)",fontSize:"9px",fontStyle:"italic"},'& [part="badge"][data-kind="slot"]':{background:"var(--slot-c)"},'& [part="badge"][data-kind="text"]':{$description:"The one badge that names no tag, so it is drawn in the neutral rather than in the tag colour — and on the page background rather than on `--accent-fg`, which is white and would sit on a light grey at a contrast nobody can read in the light theme.",background:"var(--fg-dim)",color:"var(--bg)",fontSize:"9px"},'& [part="row"][data-italic="true"] [part="label"]':{fontStyle:"italic"},'& [part="row"][data-editing="true"] [part="label"]':{$description:"While the row is being renamed the input stands where the name was. The name itself is still the row's `label`, so it still names the row to a reader — it is only taken off the screen.",display:"none"},'& [part="title-input"]':{$description:"Stretches into the row's content box rather than setting its own height: the row is a fixed 24px, and an input taller than that would push its borders through the rows either side.",flex:"1",minWidth:"24px",alignSelf:"stretch",boxSizing:"border-box",padding:"0 var(--jx-space-1)",border:"1px solid var(--accent)",borderRadius:"var(--jx-radius-xs)",background:"var(--bg)",color:"inherit",font:"inherit"},'& [part="title-input"]:focus-visible':{outline:"var(--jx-focus-ring)",outlineOffset:"-1px"},'& [part="verbs"]':{$description:"Positioned out of flow so it never contributes to the row's intrinsic width: in a 240px column, four in-flow buttons plus an indent is exactly what pushed the tree sideways. The cluster is EMPTY on every row but the selected one and the hovered one — a projection with no commands in it, not a `display: none` rule, because a hidden `jx-action-button` is still an upgraded custom element and CSS reveal would have kept the whole cost the collapse exists to remove. It is slotted into `jx-tree-item`'s `actions`, which is what stops a click on a verb from also moving the selection.",position:"absolute",right:"2px",top:"50%",transform:"translateY(-50%)",display:"flex",alignItems:"center",gap:"0",borderRadius:"var(--jx-radius-xs)"},'& [part="verbs"][data-state="shown"]':{paddingLeft:"var(--jx-space-3)",background:"var(--bg-panel)",boxShadow:"-8px 0 8px -8px rgb(0 0 0 / 0.4)"},'& [part="action"], & [part="overflow"]':{flex:"none"},'& [part="action"][data-destructive="true"]':{color:"var(--danger)"},'& [part="empty"]':{display:"flex",flexDirection:"column",alignItems:"center",gap:"var(--jx-space-3)",padding:"var(--jx-space-5)",textAlign:"center",color:"var(--fg-dim)",fontSize:"var(--jx-text-md)"},'& [part="empty-message"]':{margin:"0",maxWidth:"34ch",lineHeight:"1.5"}},children:[{$description:'The `role="tree"`, and the keyboard that used to be eight `$switch` cases under every row. `jx-tree` writes the role, the name, the roving tab stop and each row\'s `aria-level` / `aria-posinset` / `aria-setsize`, and it owns the walk: the arrows step the drawn rows without wrapping, `Home` and `End` reach the ends of the MODEL by way of the pads, `ArrowRight` opens a collapsed row and steps into an open one, `ArrowLeft` closes an open row and otherwise climbs to its parent, `Enter` activates, `Space` is a selection verb and a printable character is typeahead. `multiple` is on because this Outline has always accepted Ctrl-click and Shift-click, and it is also the GATE: with it off the element would resolve every modifier to a plain replace. Six events come back, and each is a decision `panels/layers-panel.ts` already owned.',tagName:"jx-tree",attributes:{part:"tree",label:"Document outline",multiple:"true",current:"${state.current}",padtop:"${state.padTop}",padbottom:"${state.padBottom}"},onmouseleave:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/hoverOut"},value:[]}],description:"`mouseleave` on the tree rather than on each row: the pointer leaves one row for another constantly, and only leaving the TREE means no row is under it."},onselect:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/select"},value:[{$ref:"event#/detail/value"},{$ref:"event#/detail/mode"}]}],description:"What the reader meant by landing there: `replace`, `toggle` or `range`. An INTENT rather than a set — resolving a range means naming every row between two of them, and under windowing those are exactly the rows the DOM does not have, so the panel resolves it against the row MODEL. There is no `change` handler beside it on purpose: the element OWNS the caret and keeps it across every repaint that does not change `current`, so a second copy of it in the panel would be a variable that only ever went stale."},onactivate:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/rename"},value:[{$ref:"event#/detail"}]}],description:"`Enter` or a double click, which are one verb here: rename this row in place. F2 reaches the same verb from the row's own handler, because it is the one key the element leaves alone."},onexpand:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/expand"},value:[{$ref:"event#/detail/value"},{$ref:"event#/detail/expanded"}]}],description:"`ArrowRight`, `ArrowLeft` or the twisty, with ONE dispatcher between them, and the detail says the state the row should be PUT INTO — so the panel never has to work out which way a toggle was going."},onmove:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/move"},value:[{$ref:"event#/detail/from"},{$ref:"event#/detail/key"}]}],description:"The caret has to reach a row the window did not draw. The element knows only that the pad on that side is not zero; where the row is in the model, and how far to scroll to bring it into view, is the panel's."},ontypeahead:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/typeahead"},value:[{$ref:"event#/detail/from"},{$ref:"event#/detail/char"}]}],description:"A printable character, on a windowed tree. The same hand-off as `onmove` and for a sharper reason: a move off the end of the slice announces itself, and a letter never does — the element's own search over the drawn rows always answers, and in a five-thousand-node document the answer is whichever of the twenty painted rows happened to start with that letter. So the element dispatches EVERY such character and the panel answers it over the model."},children:[{tagName:"div",attributes:{part:"body-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"#/state/view"},cases:{rows:{tagName:"div",attributes:{part:"rows",role:"none"},style:{display:"contents"},children:[{$prototype:"Array",items:{$ref:"#/state/rows"},key:{$ref:"$map/item/key"},map:{tagName:"div",attributes:{part:"row-slot",role:"none"},style:{display:"contents","--row-indent":{$ref:"$map/item/indent"}},$switch:{$ref:"$map/item/kind"},cases:{element:{tagName:"jx-tree-item",attributes:{part:"row","data-kind":"element",value:"${$map.item.key}",label:"${$map.item.label}",level:"${$map.item.level}",posinset:"${$map.item.posInSet}",setsize:"${$map.item.setSize}",expanded:"${$map.item.expanded}",selected:"${$map.item.selected}",grip:"${$map.item.draggable}","data-italic":"${$map.item.labelItalic}","data-editing":"${$map.item.editing}","data-jx-path":"${$map.item.jxPath}","data-dnd-row":"${$map.item.dndRow}","data-dnd-depth":"${$map.item.dndDepth}","data-dnd-void":"${$map.item.dndVoid}","data-dnd-expanded":"${$map.item.dndExpanded}"},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/reveal"},value:[{$ref:"$map/item/key"}]}],description:"A click brings the node into view on the canvas, and NOTHING else — the selection it also carries is `jx-tree`'s delegated click, which reads the modifiers off the real `MouseEvent` and answers with one `select` intent. Reveal is bound here rather than folded into that handler because an arrow key raises the same intent: a walk down the Outline that scrolled the canvas on every keystroke would be ten reveals for one glance."},oncontextmenu:{$ref:"#/state/contextMenu"},onmouseenter:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/hover"},value:[{$ref:"$map/item/key"}]}]},onkeydown:{$prototype:"Function",body:[{$switch:{$ref:"event#/key"},cases:{F2:[{preventDefault:!0},{stopPropagation:!0},{operator:"call",target:{$ref:"#/state/rename"},value:[{$ref:"$map/item/key"}]}]}}],description:"One key, and it is the one `jx-tree` deliberately does not own. The element passes every chord it has no verb for straight through — which is what keeps cut, paste, delete and this rename reachable from a focused row (WCAG 2.2 SC 2.5.7) — so F2 is answered here, against the row it was pressed on. Enter reaches the same rename through `activate`, because Enter IS the element's."},children:[{tagName:"span",attributes:{slot:"icon",part:"badge","data-kind":"${$map.item.badgeKind}",title:"${$map.item.badgeTitle}"},textContent:"${$map.item.badge}"},{$description:"The rename, in place. It is a CASE of the row — the document draws it when the projection says this row is the one being renamed and takes it away again when the projection stops saying so — where the predecessor built the input with `document.createElement`, hid the label with an inline `display:none` and put the two back by hand on commit. It sits in `jx-tree-item`'s `status` slot, which is where the name ends, and it STOPS every event it can reach: an editable field inside a composite has to, or the tree's own typeahead moves the caret on the first letter typed and its delegated click takes the focus back on the first click into the text.",tagName:"div",attributes:{slot:"status",part:"edit-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"$map/item/editing"},cases:{true:{tagName:"input",attributes:{part:"title-input",type:"text",value:"${$map.item.editValue}",placeholder:"${$map.item.placeholder}","aria-label":"Rename this element"},onclick:{$prototype:"Function",body:[{stopPropagation:!0}]},ondblclick:{$prototype:"Function",body:[{stopPropagation:!0}]},oninput:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/editInput"},value:[{$ref:"event#/target/value"}]}]},onkeydown:{$prototype:"Function",body:[{stopPropagation:!0},{$switch:{$ref:"event#/key"},cases:{Enter:[{preventDefault:!0},{operator:"call",target:{$ref:"#/state/editCommit"}}],Escape:[{preventDefault:!0},{operator:"call",target:{$ref:"#/state/editCancel"}}]}}]},onblur:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/editCommit"}}]}}}},{tagName:"div",attributes:{slot:"actions",part:"verbs-slot",role:"none"},style:{display:"contents"},children:[{tagName:"span",attributes:{part:"verbs","data-state":"${$map.item.actions}"},children:[{$prototype:"Array",items:{$ref:"$map/item/commands"},key:{$ref:"$map/item/id"},map:{tagName:"jx-action-button",attributes:{part:"action","data-command":"${$map.item.id}","data-destructive":"${$map.item.destructive}"},$props:{label:{$ref:"$map/item/title"},hint:{$ref:"$map/item/tooltip"},icon:{$ref:"$map/item/icon"},disabled:{$ref:"$map/item/disabled"},size:"sm",quiet:!0},onclick:{$prototype:"Function",body:[{stopPropagation:!0},{operator:"call",target:{$ref:"#/state/runRow"},value:[{$ref:"$map/item/id"},{$ref:"$map/item/row"},{$ref:"event#/currentTarget"}]}]}}},{tagName:"span",attributes:{part:"overflow-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"$map/item/overflow"},cases:{true:{tagName:"jx-action-button",attributes:{part:"overflow","data-command":"outline.more"},$props:{label:"More actions",hint:"More actions",icon:"dots-three-vertical",haspopup:"menu",size:"sm",quiet:!0},onclick:{$prototype:"Function",body:[{stopPropagation:!0},{operator:"call",target:{$ref:"#/state/overflowRow"},value:[{$ref:"$map/item/key"},{$ref:"event#/currentTarget"}]}]}}}}]}]}]},text:{$description:"A text node's line: drawn, and deliberately not a `jx-tree-item`. There is nothing to do to it — it cannot be moved, renamed, duplicated or deleted on its own — so a row the caret could land on would be a stop in the walk that answers to none of the verbs the walk offers. It still carries `data-value`, because `panels/dnd.ts` hides and shifts every line of the tree and a text child of a dragged element is one of them.",tagName:"div",attributes:{part:"row","data-kind":"text",role:"none","data-jx-path":"${$map.item.jxPath}","data-value":"${$map.item.key}"},children:[{tagName:"span",attributes:{part:"badge","data-kind":"text"},textContent:"text"},{tagName:"span",attributes:{part:"label"},textContent:"${$map.item.label}"}]}},$description:"The indent lives HERE, on the wrapper, and not on the row — which is not a preference. A kit element renders its own `style` object through the same engine, and that engine releases the previous rule set for an element before adopting the next, so a host style object on a `jx-tree-item` is silently dropped the moment the element first paints. A custom property inherits through `display: contents`, so one declaration on the wrapper reaches whichever of the two rows the case draws — and both need it, because a text line indents like the element line above it."}}]},empty:{$description:"Drawn here rather than borrowed from `panels/empty-state.ts`, which is a lit template a document cannot call. What is kept is the pattern's rules (studio-ui-guidelines.md §11): one sentence saying what the region is for, then the one action that fills it.",tagName:"div",attributes:{part:"empty"},children:[{tagName:"p",attributes:{part:"empty-message"},textContent:"${state.emptyMessage}"},{tagName:"jx-button",attributes:{part:"empty-action"},$props:{size:"sm",variant:"secondary"},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/emptyAction"}}]},children:[{tagName:"span",textContent:"${state.emptyLabel}"}]}]}}}]}]};T("panel-outline",wo);function ko(e,t){e.view=t.view,e.rows=t.rows,e.padTop=t.padTop,e.padBottom=t.padBottom,e.current=t.current,e.emptyMessage=t.emptyMessage,e.emptyLabel=t.emptyLabel}function wl(e){let t=typeof e==="string"?void 0:e.attributes?.part;return typeof t==="string"?t:""}function Po(e,t,n){let r=v({contextMenu:n.contextMenu,current:"",editCancel:n.editCancel,editCommit:n.editCommit,editInput:n.editInput,editReady:n.editReady,emptyAction:n.emptyAction,emptyLabel:"",emptyMessage:"",expand:n.expand,hover:n.hover,hoverOut:n.hoverOut,move:n.move,overflowRow:n.overflowRow,padBottom:0,padTop:0,rename:n.rename,reveal:n.reveal,rows:[],runRow:n.runRow,select:n.select,treeReady:n.treeReady,typeahead:n.typeahead,view:"empty"});ko(r,t);let o=null,s=!1,c=R("panel-outline",r,e,{onNodeCreated:(f,h,A)=>{let S=f instanceof HTMLElement?wl(A):"";if(S==="tree")n.treeReady(f);else if(S==="title-input")n.editReady(f)}}).then((f)=>{if(s){f.dispose();return}o=f});return{connected:()=>!s&&(o===null||o.root.parentNode===e),dispose(){s=!0,o?.dispose(),o=null},ready:c,update:(f)=>{ko(r,f)}}}var Mo=32,Bo=40,kl={article:"Article",aside:"Sidebar",dialog:"Dialog",figure:"Figure",footer:"Footer",form:"Form",header:"Header",main:"Main",nav:"Navigation"};function St(e){let t=e.replaceAll(/\s+/gu," ").trim();return t.length>Mo?`${t.slice(0,Mo)}…`:t}function $o(e,t=0){if(typeof e.textContent==="string"&&e.textContent.trim())return e.textContent.trim();if(t>=3||!Array.isArray(e.children))return"";for(let n of e.children){if(typeof n==="string"&&n.trim())return n.trim();if(n&&typeof n==="object"){let r=$o(n,t+1);if(r)return r}}return""}function Pl(e){let t=e.attributes?.class;return typeof t==="string"?t.trim().split(/\s+/u)[0]??"":""}function jo(e){if(e.$title)return St(e.$title);if(e.$prototype==="Array"||e.tagName==="slot")return Zo(e);if(e.$id)return`#${St(e.$id)}`;if(typeof e.textContent==="string"&&e.textContent.trim())return St(e.textContent);let t=Pl(e);if(t)return`.${St(t)}`;let n=kl[qe(e.tagName).toLowerCase()];if(n)return n;let r=$o(e);if(r)return`“${St(r)}”`;let o=Array.isArray(e.children)?e.children.length:0;return o>0?`${o} item${o===1?"":"s"}`:""}var Ho=4;function Ko(e,t,n){return tn(t,()=>{let r=e.forPlacement("outline/row");return{commands:r.slice(0,Ho).map((o)=>({destructive:o.destructive===!0?"true":"false",disabled:e.disabledReason(o.id)!==void 0,icon:o.icon??"",id:o.id,row:n,title:o.title,tooltip:ra(e,o)})),overflow:r.slice(Ho)}})}var Ml=16,Bl=6,Vo=8;function qo(e){return Math.min(e,Bl)*Ml}function It(e){return e?e.split("/").map((t)=>/^\d+$/u.test(t)?Number(t):t):[]}var Hl=24,fa='[part="row"]',F=[],de=null,un=null,sn=null,Ze=null,xe=null;function ma(){return dE(de,fa,Hl)}function Lt(e){return e===void 0?-1:F.findIndex((t)=>t.key===e)}function Ea(e){return e===null?-1:F.findIndex((t)=>Yo(t.path,e))}function rn(e,t){for(let n=e+t;n>=0&&n<F.length;n+=t)if(F[n].item)return n;return-1}function Ul(){let e=[];for(let t of F)if(t.item)e.push(t.path);return e}function ba(e){return tb(de,e,ma())}function Fl(){if(de?.isConnected!==!0||de.querySelector("[data-dragging]"))return;queueMicrotask(()=>sn?.())}function $l(){if(!de)return;un=nb(un,de,{count:()=>F.length,onChange:Fl,rowHeight:ma})}function Yl(e){let t=e?.closest("[data-jx-path]");if(!t?.dataset.jxPath)return null;try{let n=JSON.parse(t.dataset.jxPath);return Array.isArray(n)?n:null}catch{return null}}function Wo(e){return de?.querySelector(`${fa}[data-value="${CSS.escape(e)}"]`)??null}function Kl(e){let t=F[e];if(t&&!Wo(t.key))ba(e)}function Go(e,t={}){let n=F[e];if(n)Qo(n.path,t)}function Qo(e,t={}){let n=u.value;if(!n)return;if(t.range){n.session.selection=IL(Ul(),LL(n.session.selection),e);return}if(t.additive){n.session.selection=uv(n.session.selection,e);return}n.session.selection=[e]}function Vl(e,t){let n=F[Lt(e)];if(!n)return;Qo(n.path,{additive:t==="toggle",range:t==="range"}),Te()}function ql(e,t){let n=F[Lt(e)];if(!n||!zo(n))return;let r=Jo();if(t)r.delete(e);else r.add(e);Te()}function Wl(e,t){let n=Lt(e),r;switch(t){case"Home":{r=rn(-1,1);break}case"End":{r=rn(F.length,-1);break}case"ArrowUp":{r=rn(n,-1);break}case"ArrowLeft":{r=F[n]?.parent??-1;break}case"ArrowDown":case"ArrowRight":{r=rn(n,1);break}default:return}Xo(r)}function Xo(e){if(!F[e])return;Go(e),Kl(e),Te()}function ga(e){if(!e.item){let n=String(e.node);return n.length>Bo?`${n.slice(0,Bo)}…`:n}let t=e.node;return e.nodeType==="case-ref"?t.$ref||"external":jo(t)}function Gl(e,t){let n=Lt(e),r=F.length;for(let o=1;o<=r;o++){let s=(n+o+r)%r,c=F[s];if(c?.item&&ga(c).trim().toLowerCase().startsWith(t)){Xo(s);return}}}function ZR(e,t){if(!u.value)return;let r=Ea(e),o=F[r];if(!o?.item||typeof o.node!=="object")return;if(xe={key:o.key,rerender:t,text:o.node.$title||""},!Wo(o.key))ba(r);Te()}function Ql(e){return xe?.key===e}function Xl(e){if(xe)xe.text=e}function Jl(){let e=xe,t=u.value;if(!e)return;xe=null;let n=e.text.trim();if(t)q(t,(r)=>Ue(r,It(e.key),"$title",n||void 0));e.rerender(),Te()}function zl(){let e=xe;if(!e)return;xe=null,e.rerender(),Te()}function Jo(){return Je._layersCollapsed||=new Set,Je._layersCollapsed}function Zl(e,t,n){let r=[],o=[],s=null;for(let{node:c,path:f,depth:h,nodeType:A}of Nd(e)){if(s!==null&&h>s)continue;s=null;let S=ok(f);if(n.has(S))s=h;if(t==="content"&&f.length===0)continue;let g=A==="text";if(!g){if(typeof c!=="object"||c===null)continue;if(f.length>=2&&A==="element"){let N=ht(f),O=N?K(e,N):null;if(O&&ix(c,O))continue}}while(o.length>0&&r[o.at(-1)].depth>=h)o.pop();r.push({depth:h,item:!g,key:S,node:c,nodeType:A,parent:o.at(-1)??-1,path:f,posInSet:0,setSize:0}),o.push(r.length-1)}return ed(r)}function ed(e){let t=new Map;for(let r of e)if(r.item)t.set(r.parent,(t.get(r.parent)??0)+1);let n=new Map;for(let r of e){if(!r.item)continue;let o=(n.get(r.parent)??0)+1;n.set(r.parent,o),r.posInSet=o,r.setSize=t.get(r.parent)??o}return e}function zo(e){if(!e.item||typeof e.node!=="object")return!1;let t=e.node,n=Array.isArray(t.children)&&t.children.length>0,r=t.children!==void 0&&typeof t.children==="object"&&t.children.$prototype==="Array",o=Boolean(t.$switch)&&typeof t.cases==="object"&&t.cases!==null&&Object.keys(t.cases).length>0;return n||r||o||e.nodeType==="map"&&Boolean(t.map)}function ad(e){let t=e.node;if(e.nodeType==="map")return{badge:"↻",badgeKind:"map",badgeTitle:"Repeating list — one copy per item"};if(e.nodeType==="case"||e.nodeType==="case-ref"){let n=String(e.path.at(-1)??"");return{badge:n,badgeKind:"case",badgeTitle:`Condition case: ${n}`}}if(t.$switch)return{badge:"⇄",badgeKind:"switch",badgeTitle:"Condition"};if(t.tagName==="slot"){let n=t.attributes?.name;return{badge:"▣",badgeKind:"slot",badgeTitle:typeof n==="string"&&n.trim()?`Slot "${n.trim()}"`:"Default slot"}}return{badge:qe(t.tagName)||"div",badgeKind:"tag",badgeTitle:Hd(t.tagName)?`Tag chosen when the element is created: ${$k(t.tagName).join(" or ")}`:null}}function sd(e){return{actions:"hidden",badge:"text",badgeKind:"text",badgeTitle:null,commands:[],dndDepth:null,dndExpanded:null,dndRow:null,dndVoid:null,draggable:"false",editValue:"",editing:"false",expanded:"",indent:`${qo(e.depth)+Vo}px`,jxPath:JSON.stringify(e.path),key:e.key,kind:"text",label:ga(e),labelItalic:"false",level:"",overflow:"false",placeholder:"",posInSet:"",selected:"false",setSize:""}}function ud(e,t,n,r){if(!e.item)return sd(e);let{depth:o,key:s,nodeType:c,path:f}=e,h=e.node,A=dv(t.selection,f),S=zo(e),g=Sp.has((qe(h.tagName)||"div").toLowerCase())||c==="map",N=(c==="element"||c==="map")&&typeof _n(f)==="number",O=t.mode==="content"?f.length===0:f.length<2,L=N&&!O,P=S&&!n.has(s),B=Ql(s),Y=L&&!B&&(A||s===Ze),{commands:Se,overflow:ae}=Y?Ko(r,f,s):{commands:[],overflow:[]},{badge:X,badgeKind:fe,badgeTitle:je}=ad(e),{$title:et,...Ne}=h;return{actions:Y?"shown":"hidden",badge:X,badgeKind:fe,badgeTitle:je,commands:Se,dndDepth:N?String(o):null,dndExpanded:N&&P?"":null,dndRow:N?s:null,dndVoid:N&&g?"":null,draggable:L?"true":"false",editValue:B?h.$title??"":"",editing:B?"true":"false",expanded:S?P?"true":"false":"",indent:`${qo(o)+Vo}px`,jxPath:JSON.stringify(f),key:s,kind:"element",label:ga(e),labelItalic:c==="case-ref"?"true":"false",level:String(o+1),overflow:ae.length>0?"true":"false",placeholder:jo(Ne)||qe(h.tagName)||"div",posInSet:String(e.posInSet),selected:A?"true":"false",setSize:String(e.setSize)}}function cd(e,t){let n=Le(t),r=n===null?-1:Ea(n),o=F[r];return o?.item===!0?o.key:e.find((s)=>s.item)?.key??""}function es(){let e=u.value,t=Jo(),n=ke(),r=e?.doc.mode??"";F=e?Zl(e.doc.document,r,t):[];let o=eb(de,{count:F.length,rowHeight:ma()}),s=e?.session.selection??[],c=F.slice(o.start,o.end);return{current:cd(c,s),emptyLabel:"Add an element",emptyMessage:"This page is empty. Everything you add to it is listed here, in order.",padBottom:o.padBottom,padTop:o.padTop,rows:c.map((f)=>ud(f,{mode:r,selection:s},t,n)),view:F.length===0?"empty":"rows"}}var se=null,Fo=null;function Te(){se?.handle.update(es())}var da=null;function ld(){let e=u.value,t=Le(e?.session.selection);return`${e?.id??""}|${t===null?"":JSON.stringify(t)}`}function dd(){let e=ld();if(e===da)return;da=e,fd()}function fd(){let e=de?.querySelector(`${fa}[aria-selected="true"]`);if(e){e.scrollIntoView?.({behavior:"smooth",block:"nearest"});return}ba(Ea(Le(u.value?.session.selection)))}function md(e){if(Ze===e)return;Ze=e,Te()}function hd(){if(Ze===null)return;Ze=null,Te()}function pd(e,t){let n=t.querySelector(".panel-content")??t;if(se&&(se.host!==n||!se.handle.connected()))se.handle.dispose(),se=null;sn=e.rerender,Fo=e.registerDnD;let r=es();if(se)se.handle.update(r);else se={handle:Po(n,r,{contextMenu:(o,s)=>{let c=Yl(s.target);if(c)Yy(s,c,{rerender:()=>sn?.()}),Te()},editCancel:zl,editCommit:Jl,editInput:Xl,editReady:(o)=>{queueMicrotask(()=>{let s=o;if(s.isConnected)s.focus(),s.select?.()})},expand:ql,emptyAction:()=>{fs("insert")},hover:md,hoverOut:hd,move:Wl,overflowRow:(o,s)=>{let c=It(o),f=ke(),{overflow:h}=Ko(f,c,o);if(s instanceof HTMLElement&&h.length>0)sa(s,f,h,c)},rename:(o)=>{let s=Lt(o);Go(s),ZR(It(o),()=>sn?.())},reveal:(o)=>{vo(It(o))},runRow:(o,s,c)=>{if(c instanceof HTMLElement)c.blur();_t(ke(),o,It(s)),Te()},select:Vl,treeReady:(o)=>{de=o},typeahead:Gl}),host:n};se.handle.ready.then(()=>{$l(),Fo?.(),dd()})}function Ed(){se?.handle.dispose(),se=null,de=null,un?.window.destroy(),un=null,Ze=null,xe=null,da=null}function L_(){qn({id:"layers",title:"Outline",level:"document",dock:"navigator",icon:"stack",requiresDocument:"Open a page to see the elements it is built from.",render:()=>tt,afterRender:(e,t)=>{if(e.deps.getCanvasMode()==="stylebook"){Ed(),Sa({selectStylebookTag:wu,stylebookMeta:qg},t);return}Na(),pd({registerDnD:e.deps.registerLayersDnD,rerender:e.rerender},t)}})}
1
+ import{tt}from"./studio-sxc0zvpt.js";import{Q,sh,ah,v,k}from"./studio-fqq890ap.js";import{Je,jl}from"./studio-7pgy3xaf.js";import{ha,$d,sv,Ex,Le,LL,dv,uv,IL,Nl,hv,q,Hs,Ji,Vu,VC,gp,mv,ML,pa,Ue,HL,GL,Ao,m,u}from"./studio-x5g1xk77.js";import{p}from"./studio-y7jehjrp.js";import{pr,y,fs}from"./studio-4m50vh74.js";import{fT,gT,qn}from"./studio-rmn2dz59.js";import{st,Dl,xc}from"./studio-pwqfmt4p.js";import{Ap,ne}from"./studio-cp1gbff9.js";import{qg,wu,tw,Jh}from"./studio-gjknvzam.js";import{te}from"./studio-ery42sqr.js";import{Uo,wd,TT,ix,Nb,G1,K1,wc,lm,wC,xC,Wa,Cd,gx}from"./studio-5gs9th4b.js";import{gs}from"./studio-st75kn99.js";import{cc,Nf,G_,Fa}from"./studio-g8dsj3d2.js";import{rt,zt,T,R,on,Am,Nn,vs,Nm}from"./studio-7qvs7v0m.js";import{Nt}from"./studio-8xcwewjq.js";import{Rb}from"./studio-yr04mv2j.js";import{eb,tb,dE,nb}from"./studio-zd4kayn2.js";import{wb}from"./studio-n78gjfy8.js";import{K,_o,ht,_n,ok,Yo,Nd,Zo,D,Sp,Lc}from"./studio-tp642n5g.js";import{Oe}from"./studio-vavmwshr.js";import{Ot,Hd,$k,qe}from"./studio-nbxqcgvf.js";import{$i,me}from"./studio-0bbxhhce.js";var Aa={$schema:"https://jxsuite.com/schema/v1",$id:"StudioPanelStylebookLayers",$description:"The Outline panel while the pane is showing Project Styles: the element catalogue as a list of selectable tags, and the document's own custom properties under the other tab. The adapter hands in one flat projection per row — its badge, its name, how deep it sits, whether the open file has already styled it and whether it is the selected one — so nothing here walks the catalogue tree, reads the component registry or knows what a `& tag` style key is. A row asks the host to select the compound path it was given, by that path.",tagName:"div",attributes:{part:"stylebook-layers"},style:{$description:"What `.layer-row`, `.layer-tag`, `.layer-label` and `.component-tag` said in `styles/panels.css`, keyed on `part` and carried here rather than moved: three of those four are SHARED with the Outline's own rows (`panels/layers-panel.ts`), so the stylesheet rule can only go when that surface moves too. `.component-tag` is the exception — nothing else emits it once this lands. Three Spectrum names could not come with the declarations and are the kit's instead, at the same values: `--spectrum-corner-radius-75` (2px) is `--jx-radius-xs`, `--spectrum-font-size-50` (11px) is `--jx-text-sm` and `--spectrum-font-size-75` (12px) is `--jx-text-md`. Two things changed on purpose. A ROW IS A BUTTON: it was a `<div>` with a click handler and no role, so the catalogue could not be reached from the keyboard at all, and `cursor: grab` promised a drag that has never existed here. AND THE INDENT IS A VARIABLE, for the reason `panel-data.json` gives: a per-row `padding-left` declaration interns one rule per row, while `--row-indent` is written inline under its own name and read by one shared rule.",display:"block",fontFamily:"var(--jx-font-sans)",color:"var(--fg)",'& [part="list"]':{display:"flex",flexDirection:"column",margin:"0",padding:"0",listStyle:"none"},'& [part="row"]':{$description:"The 24px row the Outline declares, so the two lists line up when the pane switches between them. `block-size` rather than a height, and `box-sizing: border-box`, because the indent is padding.",display:"flex",alignItems:"center",gap:"var(--jx-space-2)",width:"100%",blockSize:"24px",boxSizing:"border-box",margin:"0",padding:"3px var(--jx-space-3)",paddingLeft:"var(--row-indent, var(--jx-space-3))",border:"none",borderLeft:"2px solid transparent",background:"none",color:"inherit",font:"inherit",textAlign:"left",whiteSpace:"nowrap",userSelect:"none"},'& button[part="row"]':{cursor:"pointer",":hover":{background:"var(--hover-bg)"},":focus-visible":{outline:"var(--jx-focus-ring)",outlineOffset:"-2px"}},'& [part="row"][aria-current="true"]':{background:"var(--accent-20)",borderLeftColor:"var(--accent)"},'& [part="badge"]':{$description:"A long custom-element tag is a badge, not a paragraph: it truncates rather than pushing the label out of a 240px column.",flex:"none",maxWidth:"12ch",overflow:"hidden",padding:"0 var(--jx-space-2)",borderRadius:"var(--jx-radius-xs)",background:"var(--tag)",color:"var(--accent-fg)",fontSize:"var(--jx-text-xs)",textOverflow:"ellipsis"},'& [part="badge"][data-kind="component"]':{$description:"A component has no tag to show that a reader would recognise from the page, so the badge is the glyph and the tag name is the label. Fixed width, so a column of them has one left edge.",width:"18px",padding:"0",background:"var(--accent)",fontSize:"9px",textAlign:"center"},'& [part="badge"][data-kind="variable"]':{fontFamily:"var(--font-mono)"},'& [part="label"]':{flex:"1",minWidth:"24px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},'& [part="dot"]':{$description:"The file has already styled this tag. The kit's neutral disc in the accent, which is the one thing about it that was ever this surface's own.",background:"var(--accent)"},'& [part="value"]':{maxWidth:"80px",overflow:"hidden",color:"var(--fg-dim)",fontSize:"var(--jx-text-sm)",textOverflow:"ellipsis",whiteSpace:"nowrap"},'& [part="empty"]':{$description:"Drawn here rather than borrowed from `panels/empty-state.ts`, which is a lit template a document cannot call. What is kept is the pattern's rules (studio-ui-guidelines.md §11): one sentence saying what the region is for, then where its content comes from.",display:"flex",flexDirection:"column",alignItems:"center",gap:"var(--jx-space-3)",padding:"var(--jx-space-5)",textAlign:"center",color:"var(--fg-dim)",fontSize:"var(--jx-text-md)"},'& [part="empty-message"], & [part="empty-detail"]':{margin:"0",maxWidth:"28ch",lineHeight:"1.5"},'& [part="empty-detail"]':{fontSize:"var(--jx-text-sm)",opacity:"0.8"},"@(forced-colors: active)":{'& [part="row"][aria-current="true"]':{$description:"The selected row, redrawn. Every author colour is replaced by one from the user's palette in forced colours, so the accent wash behind the row collapses into the page and the left edge is the only marker left.",borderLeftColor:"Highlight"}}},children:[{tagName:"div",attributes:{part:"tab-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"#/state/tab"},cases:{elements:{tagName:"div",attributes:{part:"list","data-tab":"elements"},children:[{$prototype:"Array",items:{$ref:"#/state/rows"},key:{$ref:"$map/item/key"},map:{tagName:"button",attributes:{part:"row",type:"button","data-path":"${$map.item.key}","data-kind":"${$map.item.kind}","aria-current":"${$map.item.selected ? 'true' : null}"},style:{"--row-indent":{$ref:"$map/item/indent"}},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/selectRow"},value:[{$ref:"$map/item/key"}]}]},children:[{tagName:"span",attributes:{part:"badge","data-kind":"${$map.item.kind}"},textContent:"${$map.item.tag}"},{tagName:"span",attributes:{part:"label"},textContent:"${$map.item.label}"},{tagName:"span",attributes:{part:"dot-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"$map/item/customized"},cases:{true:{tagName:"jx-dot",attributes:{part:"dot",role:"img","aria-label":"Styled in this file"}}}}]}}]},variables:{tagName:"div",attributes:{part:"variables-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"#/state/hasVariables"},cases:{true:{tagName:"ul",attributes:{part:"list","data-tab":"variables"},children:[{$prototype:"Array",items:{$ref:"#/state/variables"},key:{$ref:"$map/item/key"},map:{tagName:"li",attributes:{part:"row","data-kind":"variable","data-path":"${$map.item.name}"},children:[{tagName:"span",attributes:{part:"badge","data-kind":"variable"},textContent:"var"},{tagName:"span",attributes:{part:"label"},textContent:"${$map.item.name}"},{tagName:"span",attributes:{part:"value"},textContent:"${$map.item.value}"}]}}]},false:{tagName:"div",attributes:{part:"empty"},children:[{tagName:"p",attributes:{part:"empty-message"},textContent:"No variables defined."},{tagName:"p",attributes:{part:"empty-detail"},textContent:"A custom property declared on this file's own style block is listed here."}]}}}}}]};T("panel-stylebook-layers",Aa);function _a(e,t){e.tab=t.tab,e.rows=t.rows,e.variables=t.variables,e.hasVariables=t.hasVariables}function ya(e,t,n){let r=v({hasVariables:!1,rows:[],selectRow:n.selectRow,tab:"elements",variables:[]});_a(r,t);let o=null,s=!1;return R("panel-stylebook-layers",r,e).then((c)=>{if(s){c.dispose();return}o=c}),{connected:()=>!s&&(o===null||o.root.parentNode===e),dispose(){s=!0,o?.dispose(),o=null},update:(c)=>{_a(r,c)}}}var Ca=8,ns=16;function as(e,t){let n=e[`& ${t}`];return Boolean(n)&&typeof n==="object"&&Object.keys(n).length>0}function rs(e){if(!e)return null;return e.includes(" ")?e.split(" ").pop()??null:e}function xa(e,t,n,r,o,s){let{tag:c}=e,f=o?`${o} ${c}`:c;s.push({customized:as(t,c),indent:`${Ca+r*ns}px`,key:f,kind:"element",label:e.text||`<${c}>`,selected:c===n,tag:c});let h=e.children?[...new Map(e.children.map((A)=>[A.tag,A])).values()]:[];for(let A of h)xa(A,t,n,r+1,f,s)}function os(e){return Object.entries(e).filter(([t])=>t.startsWith("--")).map(([t,n])=>({key:t,name:t,value:String(n)}))}function ss(e){let n=u.value?.doc.document?.style||{},{selection:r}=y.stylebook,o=rs(r),s=[];for(let f of e.stylebookMeta.$sections)for(let h of f.elements)xa(h,n,o,0,"",s);for(let f of st)s.push({customized:!1,indent:`${Ca}px`,key:f.tagName,kind:"component",label:f.tagName,selected:f.tagName===r,tag:"⬡"});let c=os(n);return{hasVariables:c.length>0,rows:s,tab:y.stylebook.tab,variables:c}}var he=null;function is(e){queueMicrotask(()=>{e.querySelector('[part="row"][aria-current="true"]')?.scrollIntoView?.({behavior:"smooth",block:"nearest"})})}function Sa(e,t){let n=t.querySelector(".panel-content")??t;if(he&&(he.host!==n||!he.handle.connected()))he.handle.dispose(),he=null;let r=ss(e);if(he)he.handle.update(r);else he={handle:ya(n,r,{selectRow:(o)=>{e.selectStylebookTag(o,void 0,{panCanvas:!0})}}),host:n};is(n)}function Na(){he?.handle.dispose(),he=null}function gi(){}class Ie{constructor(e,t,n){if(this.normal=t,this.property=e,n)this.space=n}}Ie.prototype.normal={};Ie.prototype.property={};Ie.prototype.space=void 0;function cn(e,t){let n={},r={};for(let o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new Ie(n,r,t)}function Ae(e){return e.toLowerCase()}class G{constructor(e,t){this.attribute=t,this.property=e}}G.prototype.attribute="";G.prototype.booleanish=!1;G.prototype.boolean=!1;G.prototype.commaOrSpaceSeparated=!1;G.prototype.commaSeparated=!1;G.prototype.defined=!1;G.prototype.mustUseProperty=!1;G.prototype.number=!1;G.prototype.overloadedBoolean=!1;G.prototype.property="";G.prototype.spaceSeparated=!1;G.prototype.space=void 0;var nt={};$i(nt,{boolean:()=>I,booleanish:()=>U,commaOrSpaceSeparated:()=>re,commaSeparated:()=>_e,number:()=>x,overloadedBoolean:()=>Rt,spaceSeparated:()=>M});var us=0,I=Pe(),U=Pe(),Rt=Pe(),x=Pe(),M=Pe(),_e=Pe(),re=Pe();function Pe(){return 2**++us}var ln=Object.keys(nt);class Ke extends G{constructor(e,t,n,r){let o=-1;super(e,t);if(Ia(this,"space",r),typeof n==="number")while(++o<ln.length){let s=ln[o];Ia(this,ln[o],(n&nt[s])===nt[s])}}}Ke.prototype.defined=!0;function Ia(e,t,n){if(n)e[t]=n}function oe(e){let t={},n={};for(let[r,o]of Object.entries(e.properties)){let s=new Ke(r,e.transform(e.attributes||{},r),o,e.space);if(e.mustUseProperty&&e.mustUseProperty.includes(r))s.mustUseProperty=!0;t[r]=s,n[Ae(r)]=r,n[Ae(s.attribute)]=r}return new Ie(t,n,e.space)}var dn=oe({properties:{ariaActiveDescendant:null,ariaAtomic:U,ariaAutoComplete:null,ariaBusy:U,ariaChecked:U,ariaColCount:x,ariaColIndex:x,ariaColSpan:x,ariaControls:M,ariaCurrent:null,ariaDescribedBy:M,ariaDetails:null,ariaDisabled:U,ariaDropEffect:M,ariaErrorMessage:null,ariaExpanded:U,ariaFlowTo:M,ariaGrabbed:U,ariaHasPopup:null,ariaHidden:U,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:M,ariaLevel:x,ariaLive:null,ariaModal:U,ariaMultiLine:U,ariaMultiSelectable:U,ariaOrientation:null,ariaOwns:M,ariaPlaceholder:null,ariaPosInSet:x,ariaPressed:U,ariaReadOnly:U,ariaRelevant:null,ariaRequired:U,ariaRoleDescription:M,ariaRowCount:x,ariaRowIndex:x,ariaRowSpan:x,ariaSelected:U,ariaSetSize:x,ariaSort:null,ariaValueMax:x,ariaValueMin:x,ariaValueNow:x,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Dt(e,t){return t in e?e[t]:t}function vt(e,t){return Dt(e,t.toLowerCase())}var La=oe({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:_e,acceptCharset:M,accessKey:M,action:null,allow:null,allowFullScreen:I,allowPaymentRequest:I,allowUserMedia:I,alpha:I,alt:null,as:null,async:I,autoCapitalize:null,autoComplete:M,autoFocus:I,autoPlay:I,blocking:M,capture:null,charSet:null,checked:I,cite:null,className:M,closedBy:null,colorSpace:null,cols:x,colSpan:x,command:null,commandFor:null,content:null,contentEditable:U,controls:I,controlsList:M,coords:x|_e,crossOrigin:null,data:null,dateTime:null,decoding:null,default:I,defer:I,dir:null,dirName:null,disabled:I,download:Rt,draggable:U,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:I,formTarget:null,headers:M,height:x,hidden:Rt,high:x,href:null,hrefLang:null,htmlFor:M,httpEquiv:M,id:null,imageSizes:null,imageSrcSet:null,inert:I,inputMode:null,integrity:null,is:null,isMap:I,itemId:null,itemProp:M,itemRef:M,itemScope:I,itemType:M,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:I,low:x,manifest:null,max:null,maxLength:x,media:null,method:null,min:null,minLength:x,multiple:I,muted:I,name:null,nonce:null,noModule:I,noValidate:I,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:I,optimum:x,pattern:null,ping:M,placeholder:null,playsInline:I,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:I,referrerPolicy:null,rel:M,required:I,reversed:I,rows:x,rowSpan:x,sandbox:M,scope:null,scoped:I,seamless:I,selected:I,shadowRootClonable:I,shadowRootCustomElementRegistry:I,shadowRootDelegatesFocus:I,shadowRootMode:null,shadowRootSerializable:I,shape:null,size:x,sizes:null,slot:null,span:x,spellCheck:U,src:null,srcDoc:null,srcLang:null,srcSet:null,start:x,step:null,style:null,tabIndex:x,target:null,title:null,translate:null,type:null,typeMustMatch:I,useMap:null,value:U,width:x,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:M,axis:null,background:null,bgColor:null,border:x,borderColor:null,bottomMargin:x,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:I,declare:I,event:null,face:null,frame:null,frameBorder:null,hSpace:x,leftMargin:x,link:null,longDesc:null,lowSrc:null,marginHeight:x,marginWidth:x,noResize:I,noHref:I,noShade:I,noWrap:I,object:null,profile:null,prompt:null,rev:null,rightMargin:x,rules:null,scheme:null,scrolling:U,standby:null,summary:null,text:null,topMargin:x,valueType:null,version:null,vAlign:null,vLink:null,vSpace:x,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:I,disablePictureInPicture:I,disableRemotePlayback:I,exportParts:_e,part:M,prefix:null,property:null,results:x,security:null,unselectable:null},space:"html",transform:vt});var Ra=oe({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",maskType:"mask-type",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"},properties:{about:re,accentHeight:x,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:x,amplitude:x,arabicForm:null,ascent:x,attributeName:null,attributeType:null,azimuth:x,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:x,by:null,calcMode:null,capHeight:x,className:M,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:x,diffuseConstant:x,direction:null,display:null,dur:null,divisor:x,dominantBaseline:null,download:I,dx:null,dy:null,edgeMode:null,editable:null,elevation:x,enableBackground:null,end:null,event:null,exponent:x,externalResourcesRequired:null,fill:null,fillOpacity:x,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:_e,g2:_e,glyphName:_e,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:x,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:x,horizOriginX:x,horizOriginY:x,id:null,ideographic:x,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:x,k:x,k1:x,k2:x,k3:x,k4:x,kernelMatrix:re,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:x,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:x,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:x,overlineThickness:x,paintOrder:null,panose1:null,path:null,pathLength:x,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:M,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:x,pointsAtY:x,pointsAtZ:x,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:re,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:re,rev:re,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:re,requiredFeatures:re,requiredFonts:re,requiredFormats:re,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:x,specularExponent:x,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:x,strikethroughThickness:x,string:null,stroke:null,strokeDashArray:re,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:x,strokeOpacity:x,strokeWidth:null,style:null,surfaceScale:x,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:re,tabIndex:x,tableValues:null,target:null,targetX:x,targetY:x,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:re,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:x,underlineThickness:x,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:x,values:null,vAlphabetic:x,vMathematical:x,vectorEffect:null,vHanging:x,vIdeographic:x,version:null,vertAdvY:x,vertOriginX:x,vertOriginY:x,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:x,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Dt});var fn=oe({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}});var mn=oe({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:vt});var hn=oe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}});var cs=/[A-Z]/g,Oa=/-[a-z]/g,ls=/^data[-\w.:]+$/i;function nd(e,t){let n=Ae(t),r=t,o=G;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&ls.test(t)){if(t.charAt(4)==="-"){let s=t.slice(5).replace(Oa,ms);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{let s=t.slice(4);if(!Oa.test(s)){let c=s.replace(cs,ds);if(c.charAt(0)!=="-")c="-"+c;t="data"+c}}o=Ke}return new o(r,t)}function ds(e){return"-"+e.toLowerCase()}function ms(e){return e.charAt(1).toUpperCase()}var id=cn([dn,La,fn,mn,hn],"html"),od=cn([dn,Ra,fn,mn,hn],"svg");function pn(e){let t=[],n=String(e||""),r=n.indexOf(","),o=0,s=!1;while(!s){if(r===-1)r=n.length,s=!0;let c=n.slice(o,r).trim();if(c||!s)t.push(c);o=r+1,r=n.indexOf(",",o)}return t}function LS(e,t){let n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var Da=/[#.]/g;function En(e,t){let n=e||"",r={},o=0,s,c;while(o<n.length){Da.lastIndex=o;let f=Da.exec(n),h=n.slice(o,f?f.index:n.length);if(h){if(!s)c=h;else if(s==="#")r.id=h;else if(Array.isArray(r.className))r.className.push(h);else r.className=[h];o+=h.length}if(f)s=f[0],o++}return{type:"element",tagName:c||t||"div",properties:r,children:[]}}function bn(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function IS(e){return e.join(" ").trim()}function Tn(e,t,n){let r=n?bs(n):void 0;function o(s,c,...f){let h;if(s===null||s===void 0){h={type:"root",children:[]};let A=c;f.unshift(A)}else{h=En(s,t);let A=h.tagName.toLowerCase(),S=r?r.get(A):void 0;if(h.tagName=S||A,hs(c))f.unshift(c);else for(let[g,N]of Object.entries(c))ps(e,h.properties,g,N)}for(let A of f)gn(h.children,A);if(h.type==="element"&&h.tagName==="template")h.content={type:"root",children:h.children},h.children=[];return h}return o}function hs(e){if(e===null||typeof e!=="object"||Array.isArray(e))return!0;if(typeof e.type!=="string")return!1;let t=e,n=Object.keys(e);for(let r of n){let o=t[r];if(o&&typeof o==="object"){if(!Array.isArray(o))return!0;let s=o;for(let c of s)if(typeof c!=="number"&&typeof c!=="string")return!0}}if("children"in e&&Array.isArray(e.children))return!0;return!1}function ps(e,t,n,r){let o=nd(e,n),s;if(r===null||r===void 0)return;if(typeof r==="number"){if(Number.isNaN(r))return;s=r}else if(typeof r==="boolean")s=r;else if(typeof r==="string")if(o.spaceSeparated)s=bn(r);else if(o.commaSeparated)s=pn(r);else if(o.commaOrSpaceSeparated)s=bn(pn(r).join(" "));else s=va(o,o.property,r);else if(Array.isArray(r))s=[...r];else s=o.property==="style"?Es(r):String(r);if(Array.isArray(s)){let c=[];for(let f of s)c.push(va(o,o.property,f));s=c}if(o.property==="className"&&Array.isArray(t.className))s=t.className.concat(s);t[o.property]=s}function gn(e,t){if(t===null||t===void 0);else if(typeof t==="number"||typeof t==="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(let n of t)gn(e,n);else if(typeof t==="object"&&"type"in t)if(t.type==="root")gn(e,t.children);else e.push(t);else throw Error("Expected node, nodes, or string, got `"+t+"`")}function va(e,t,n){if(typeof n==="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Ae(n)===Ae(t)))return!0}return n}function Es(e){let t=[];for(let[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function bs(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}var wa=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"];var An=Tn(id,"div"),yn=Tn(od,"g",wa);function Cn(e){let t=String(e),n=[];return{toOffset:o,toPoint:r};function r(s){if(typeof s==="number"&&s>-1&&s<=t.length){let c=0;while(!0){let f=n[c];if(f===void 0){let h=ka(t,n[c-1]);f=h===-1?t.length+1:h+1,n[c]=f}if(f>s)return{line:c+1,column:s-(c>0?n[c-1]:0)+1,offset:s};c++}}}function o(s){if(s&&typeof s.line==="number"&&typeof s.column==="number"&&!Number.isNaN(s.line)&&!Number.isNaN(s.column)){while(n.length<s.line){let f=n[n.length-1],h=ka(t,f),A=h===-1?t.length+1:h+1;if(f===A)break;n.push(A)}let c=(s.line>1?n[s.line-2]:0)+s.column-1;if(c<n[s.line-1])return c}}}function ka(e,t){let n=e.indexOf("\r",t),r=e.indexOf(`
2
+ `,t);if(r===-1)return n;if(n===-1||n+1===r)return r;return n<r?n:r}var Pa={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};var Ba={}.hasOwnProperty,Ts=Object.prototype;function xn(e,t){let n=t||{};return Sn({file:n.file||void 0,location:!1,schema:n.space==="svg"?od:id,verbose:n.verbose||!1},e)}function Sn(e,t){let n;switch(t.nodeName){case"#comment":{let r=t;return n={type:"comment",value:r.data},wt(e,r,n),n}case"#document":case"#document-fragment":{let r=t,o="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Ha(e,t.childNodes),data:{quirksMode:o}},e.file&&e.location){let s=String(e.file),c=Cn(s),f=c.toPoint(0),h=c.toPoint(s.length);gi(f,"expected `start`"),gi(h,"expected `end`"),n.position={start:f,end:h}}return n}case"#documentType":{let r=t;return n={type:"doctype"},wt(e,r,n),n}case"#text":{let r=t;return n={type:"text",value:r.value},wt(e,r,n),n}default:return n=As(e,t),n}}function Ha(e,t){let n=-1,r=[];while(++n<t.length){let o=Sn(e,t[n]);r.push(o)}return r}function As(e,t){let n=e.schema;e.schema=t.namespaceURI===Pa.svg?od:id;let r=-1,o={};while(++r<t.attrs.length){let f=t.attrs[r],h=(f.prefix?f.prefix+":":"")+f.name;if(!Ba.call(Ts,h))o[h]=f.value}let c=(e.schema.space==="svg"?yn:An)(t.tagName,o,Ha(e,t.childNodes));if(wt(e,t,c),c.tagName==="template"){let f=t,h=f.sourceCodeLocation,A=h&&h.startTag&&Ve(h.startTag),S=h&&h.endTag&&Ve(h.endTag),g=Sn(e,f.content);if(A&&S&&e.file)g.position={start:A.end,end:S.start};c.content=g}return e.schema=n,c}function wt(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){let r=_s(e,n,t.sourceCodeLocation);if(r)e.location=!0,n.position=r}}function _s(e,t,n){let r=Ve(n);if(t.type==="element"){let o=t.children[t.children.length-1];if(r&&!n.endTag&&o&&o.position&&o.position.end)r.end=Object.assign({},o.position.end);if(e.verbose){let s={},c;if(n.attrs){for(c in n.attrs)if(Ba.call(n.attrs,c))s[nd(e.schema,c).property]=Ve(n.attrs[c])}gi(n.startTag,"a start tag should exist");let f=Ve(n.startTag),h=n.endTag?Ve(n.endTag):void 0,A={opening:f};if(h)A.closing=h;A.properties=s,t.data={position:A}}}return r}function Ve(e){let t=Ma({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Ma({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Ma(e){return e.line&&e.column?e:void 0}var ys=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]),H="�",i;(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.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_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_Z=122]="LATIN_SMALL_Z"})(i||(i={}));var Z={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function kt(e){return e>=55296&&e<=57343}function Ua(e){return e>=56320&&e<=57343}function $a(e,t){return(e-55296)*1024+9216+t}function Pt(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Mt(e){return e>=64976&&e<=65007||ys.has(e)}var b;(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"})(b||(b={}));var xs=65536;class In{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=xs,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){let{line:n,col:r,offset:o}=this,s=r+t,c=o+t;return{code:e,startLine:n,endLine:n,startCol:s,endCol:s,startOffset:c,endOffset:c}}_err(e){if(this.handler.onParseError&&this.lastErrOffset!==this.offset)this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if(Ua(t))return this.pos++,this._addGap(),$a(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,i.EOF;return this._err(b.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){if(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(e,t){if(this.html.length>0)this.html+=e;else this.html=e;this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let n=0;n<e.length;n++)if((this.html.charCodeAt(this.pos+n)|32)!==e.charCodeAt(n))return!1;return!0}peek(e){let t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,i.EOF;let n=this.html.charCodeAt(t);return n===i.CARRIAGE_RETURN?i.LINE_FEED:n}advance(){if(this.pos++,this.isEol)this.isEol=!1,this.line++,this.lineStartPos=this.pos;if(this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,i.EOF;let e=this.html.charCodeAt(this.pos);if(e===i.CARRIAGE_RETURN)return this.isEol=!0,this.skipNextNewLine=!0,i.LINE_FEED;if(e===i.LINE_FEED){if(this.isEol=!0,this.skipNextNewLine)return this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()}if(this.skipNextNewLine=!1,kt(e))e=this._processSurrogate(e);if(!(this.handler.onParseError===null||e>31&&e<127||e===i.LINE_FEED||e===i.CARRIAGE_RETURN||e>159&&e<64976))this._checkForProblematicCharacters(e);return e}_checkForProblematicCharacters(e){if(Pt(e))this._err(b.controlCharacterInInputStream);else if(Mt(e))this._err(b.noncharacterInInputStream)}retreat(e){this.pos-=e;while(this.pos<this.lastGapPos)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var w;(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"})(w||(w={}));function Bt(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}var Ln=new Uint16Array("ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\x00\x00\x00\x00\x00\x00ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀\uD835\uDD04rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀\uD835\uDD38plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀\uD835\uDC9Cign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀\uD835\uDD05pf;쀀\uD835\uDD39eve;䋘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;쀀\uD835\uDC9EpĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀\uD835\uDD07Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\x00\x00\x00͔͂\x00Ѕf;쀀\uD835\uDD3Bƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\x00\x00ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\x00\x00ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\x00ц\x00ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\x00ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀\uD835\uDC9Frok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀\uD835\uDD08rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\x00\x00ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀\uD835\uDD3Csilon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀\uD835\uDD09lledɓ֗\x00\x00֣mallSquare;旼erySmallSquare;斪Ͱֺ\x00ֿ\x00\x00ׄf;쀀\uD835\uDD3DAll;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀\uD835\uDD0A;拙pf;쀀\uD835\uDD3Eeater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀\uD835\uDCA2;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\x00ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\x00ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀\uD835\uDD40a;䎙cr;愐ilde;䄨ǫޚ\x00ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀\uD835\uDD0Dpf;쀀\uD835\uDD41ǣ߇\x00ߌr;쀀\uD835\uDCA5rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀\uD835\uDD0Epf;쀀\uD835\uDD42cr;쀀\uD835\uDCA6րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\x00ࣃbleBracket;柦nǔࣈ\x00࣒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;쀀\uD835\uDD0FĀ;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀\uD835\uDD43erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀\uD835\uDD10nusPlus;戓pf;쀀\uD835\uDD44cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀\uD835\uDD11ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢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;쀀\uD835\uDCA9ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀\uD835\uDD12rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀\uD835\uDD46enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀\uD835\uDCAAash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀\uD835\uDD13i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀\uD835\uDCAB;䎨ȀUfos༑༖༛༟OT耻\"䀢r;쀀\uD835\uDD14pf;愚cr;쀀\uD835\uDCAC؀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ǵ࿹\x00စbleBracket;柧nǔည\x00န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;쀀\uD835\uDD16ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀\uD835\uDD4Aɲᅭ\x00\x00ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀\uD835\uDCAEar;拆Ȁ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;쀀\uD835\uDD17Āeiቻ኉Dzኀ\x00ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀\uD835\uDD4BipleDot;惛Āctዖዛr;쀀\uD835\uDCAFrok;䅦ૡዷጎጚጦ\x00ጬጱ\x00\x00\x00\x00\x00ጸጽ፷ᎅ\x00᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\x00጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀\uD835\uDD18rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀\uD835\uDD4CЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀\uD835\uDCB0ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀\uD835\uDD19pf;쀀\uD835\uDD4Dcr;쀀\uD835\uDCB1dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀\uD835\uDD1Apf;쀀\uD835\uDD4Ecr;쀀\uD835\uDCB2Ȁfiosᓋᓐᓒᓘr;쀀\uD835\uDD1B;䎞pf;쀀\uD835\uDD4Fcr;쀀\uD835\uDCB3ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀\uD835\uDD1Cpf;쀀\uD835\uDD50cr;쀀\uD835\uDCB4ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\x00ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀\uD835\uDCB5௡ᖃᖊᖐ\x00ᖰᖶᖿ\x00\x00\x00\x00ᗆᗛᗫᙟ᙭\x00ᚕ᚛ᚲᚹ\x00ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀\uD835\uDD1Erave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\x00\x00ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀\uD835\uDD52΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀\uD835\uDCB6;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀\uD835\uDD1Fg΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\x00\x00ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\x00ᠳƲᠯ\x00ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀\uD835\uDD53Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀\uD835\uDCB7mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\x00᧨ᨑᨕᨲ\x00ᨷᩐ\x00\x00᪴\x00\x00᫁\x00\x00ᬡᬮ᭍᭒\x00᯽\x00ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\x00᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀\uD835\uDD20ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\x00\x00᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\x00ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\x00\x00᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\x00ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀\uD835\uDD54oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀\uD835\uDCB8Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\x00\x00᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\x00\x00ᯒ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;楿;쀀\uD835\uDD21arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\x00\x00ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀\uD835\uDD55ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\x00\x00ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀\uD835\uDCB9;䑕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;扒;쀀\uD835\uDD22ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀\uD835\uDD56ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\x00\x00ỻíՈ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åչৡᾒ\x00ᾞ\x00ᾡᾧ\x00\x00ῆῌ\x00ΐ\x00ῦῪ \x00 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\x00\x00᾽g;耀ffig;耀ffl;쀀\uD835\uDD23lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\x00ῳf;쀀\uD835\uDD57ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\x00⁐β•‥‧‪‬\x00‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\x00‶;慔;慖ʴ‾⁁\x00\x00⁃耻¾䂾;慗;慜5;慘ƶ⁌\x00⁎;慚;慝8;慞l;恄wn;挢cr;쀀\uD835\uDCBBࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀\uD835\uDD24Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀\uD835\uDD58Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\x00↎proø₞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;쀀\uD835\uDD25sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀\uD835\uDD59bar;怕ƀclt≯≴≸r;쀀\uD835\uDCBDasè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\x00⊪\x00⊸⋅⋎\x00⋕⋳\x00\x00⋸⌢⍧⍢⍿\x00⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀\uD835\uDD26rave耻ì䃬Ȁ;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;쀀\uD835\uDD5Aa;䎹uest耻¿䂿Āci⎊⎏r;쀀\uD835\uDCBEnʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\x00⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀\uD835\uDD27ath;䈷pf;쀀\uD835\uDD5Bǣ⏬\x00⏱r;쀀\uD835\uDCBFrcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀\uD835\uDD28reen;䄸cy;䑅cy;䑜pf;쀀\uD835\uDD5Ccr;쀀\uD835\uDCC0஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\x00⒪\x00⒱\x00\x00\x00\x00\x00⒵Ⓔ\x00ⓆⓈⓍ\x00⓹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;楼;쀀\uD835\uDD29Ā;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;榅;쀀\uD835\uDD5Dus;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀\uD835\uDCC1mƀ;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;쀀\uD835\uDD2Ao;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀\uD835\uDD5EĀct⣸⣽r;쀀\uD835\uDCC2pos»ᖝƀ;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⧟\x00⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\x00⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀\uD835\uDD2BȀ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;쀀\uD835\uDD5F膀¬;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å൅;쀀\uD835\uDCC3ortɭ⬅\x00\x00⯖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;椧ቓ᪕\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00ⴭ\x00ⴸⵈⵠⵥ⵲ⶄᬇ\x00\x00ⶍⶫ\x00ⷈⷎ\x00ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀\uD835\uDD2Cͯ⵹\x00\x00⵼\x00ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀\uD835\uDD60ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\x00⹽\x00⺀⺝\x00⺢⺹\x00\x00⻋ຜ\x00⼓\x00\x00⼫⾼\x00⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\x00\x00⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀\uD835\uDD2Dƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀\uD835\uDD61nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀\uD835\uDCC5;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀\uD835\uDD2Epf;쀀\uD835\uDD62rime;恗cr;쀀\uD835\uDCC6ƀ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;楽;쀀\uD835\uDD2FĀ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;榆;쀀\uD835\uDD63us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀\uD835\uDCC7Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\x00㍺㎤\x00\x00㏬㏰\x00㐨㑈㑚㒭㒱㓊㓱\x00㘖\x00\x00㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\x00㋼;檸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㍶⁕쀀\uD835\uDD30Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\x00\x00㎜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;쀀\uD835\uDD64aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀\uD835\uDCC8tmîñ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耻ß䃟௡㙑㙝㙠ዎ㙳㙹\x00㙾㛂\x00\x00\x00\x00\x00㛛㜃\x00㜉㝬\x00\x00\x00㞇ɲ㙖\x00\x00㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀\uD835\uDD31Ȁeiko㚆㚝㚵㚼Dz㚋\x00㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀\uD835\uDD65rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀\uD835\uDCC9;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\x00㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀\uD835\uDD32rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\x00\x00㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀\uD835\uDD66̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\x00\x00㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀\uD835\uDCCAƀ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;쀀\uD835\uDD33tré㦮suĀbp㧯㧱»ജ»൙pf;쀀\uD835\uDD67roð໻tré㦴Ācu㨆㨋r;쀀\uD835\uDCCBĀbp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀\uD835\uDD34pf;쀀\uD835\uDD68Ā;eᑹ㩦atèᑹcr;쀀\uD835\uDCCCૣណ㪇\x00㪋\x00㪐㪛\x00\x00㪝㪨㪫㪯\x00\x00㫃㫎\x00㫘ៜ៟tré៑r;쀀\uD835\uDD35ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀\uD835\uDD69imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀\uD835\uDCCDĀpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀\uD835\uDD36cy;䑗pf;쀀\uD835\uDD6Acr;쀀\uD835\uDCCEĀcm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀\uD835\uDD37cy;䐶grarr;懝pf;쀀\uD835\uDD6Bcr;쀀\uD835\uDCCFĀjn㮅㮇;怍j;怌".split("").map((e)=>e.charCodeAt(0)));var Rn,Ns=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]]),Is=(Rn=String.fromCodePoint)!==null&&Rn!==void 0?Rn:function(e){let t="";if(e>65535)e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023;return t+=String.fromCharCode(e),t};function Ya(e){var t;if(e>=55296&&e<=57343||e>1114111)return 65533;return(t=Ns.get(e))!==null&&t!==void 0?t:e}var W;(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"})(W||(W={}));var Ls=32,Re;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Re||(Re={}));function On(e){return e>=W.ZERO&&e<=W.NINE}function Rs(e){return e>=W.UPPER_A&&e<=W.UPPER_F||e>=W.LOWER_A&&e<=W.LOWER_F}function Os(e){return e>=W.UPPER_A&&e<=W.UPPER_Z||e>=W.LOWER_A&&e<=W.LOWER_Z||On(e)}function Ds(e){return e===W.EQUALS||Os(e)}var V;(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"})(V||(V={}));var pe;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(pe||(pe={}));class Dn{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=V.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=pe.Strict}startEntity(e){this.decodeMode=e,this.state=V.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case V.EntityStart:{if(e.charCodeAt(t)===W.NUM)return this.state=V.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=V.NamedEntity,this.stateNamedEntity(e,t)}case V.NumericStart:return this.stateNumericStart(e,t);case V.NumericDecimal:return this.stateNumericDecimal(e,t);case V.NumericHex:return this.stateNumericHex(e,t);case V.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){if(t>=e.length)return-1;if((e.charCodeAt(t)|Ls)===W.LOWER_X)return this.state=V.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1);return this.state=V.NumericDecimal,this.stateNumericDecimal(e,t)}addToNumericResult(e,t,n,r){if(t!==n){let o=n-t;this.result=this.result*Math.pow(r,o)+Number.parseInt(e.substr(t,o),r),this.consumed+=o}}stateNumericHex(e,t){let n=t;while(t<e.length){let r=e.charCodeAt(t);if(On(r)||Rs(r))t+=1;else return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){let n=t;while(t<e.length){let r=e.charCodeAt(t);if(On(r))t+=1;else return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===W.SEMI)this.consumed+=1;else if(this.decodeMode===pe.Strict)return 0;if(this.emitCodePoint(Ya(this.result),this.consumed),this.errors){if(e!==W.SEMI)this.errors.missingSemicolonAfterCharacterReference();this.errors.validateNumericCharacterReference(this.result)}return this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],o=(r&Re.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let s=e.charCodeAt(t);if(this.treeIndex=ws(n,r,this.treeIndex+Math.max(1,o),s),this.treeIndex<0)return this.result===0||this.decodeMode===pe.Attribute&&(o===0||Ds(s))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],o=(r&Re.VALUE_LENGTH)>>14,o!==0){if(s===W.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);if(this.decodeMode!==pe.Strict)this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0}}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&Re.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;if(this.emitCodePoint(t===1?r[e]&~Re.VALUE_LENGTH:r[e+1],n),t===3)this.emitCodePoint(r[e+2],n);return n}end(){var e;switch(this.state){case V.NamedEntity:return this.result!==0&&(this.decodeMode!==pe.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case V.NumericDecimal:return this.emitNumericEntity(0,2);case V.NumericHex:return this.emitNumericEntity(0,3);case V.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case V.EntityStart:return 0}}}function ws(e,t,n,r){let o=(t&Re.BRANCH_LENGTH)>>7,s=t&Re.JUMP_TABLE;if(o===0)return s!==0&&r===s?n:-1;if(s){let h=r-s;return h<0||h>=o?-1:e[n+h]-1}let c=n,f=c+o-1;while(c<=f){let h=c+f>>>1,A=e[h];if(A<r)c=h+1;else if(A>r)f=h-1;else return e[h+o]}return-1}var _;(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/"})(_||(_={}));var ye;(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"})(ye||(ye={}));var ee;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(ee||(ee={}));var E;(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.SEARCH="search",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"})(E||(E={}));var a;(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.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(a||(a={}));var ks=new Map([[E.A,a.A],[E.ADDRESS,a.ADDRESS],[E.ANNOTATION_XML,a.ANNOTATION_XML],[E.APPLET,a.APPLET],[E.AREA,a.AREA],[E.ARTICLE,a.ARTICLE],[E.ASIDE,a.ASIDE],[E.B,a.B],[E.BASE,a.BASE],[E.BASEFONT,a.BASEFONT],[E.BGSOUND,a.BGSOUND],[E.BIG,a.BIG],[E.BLOCKQUOTE,a.BLOCKQUOTE],[E.BODY,a.BODY],[E.BR,a.BR],[E.BUTTON,a.BUTTON],[E.CAPTION,a.CAPTION],[E.CENTER,a.CENTER],[E.CODE,a.CODE],[E.COL,a.COL],[E.COLGROUP,a.COLGROUP],[E.DD,a.DD],[E.DESC,a.DESC],[E.DETAILS,a.DETAILS],[E.DIALOG,a.DIALOG],[E.DIR,a.DIR],[E.DIV,a.DIV],[E.DL,a.DL],[E.DT,a.DT],[E.EM,a.EM],[E.EMBED,a.EMBED],[E.FIELDSET,a.FIELDSET],[E.FIGCAPTION,a.FIGCAPTION],[E.FIGURE,a.FIGURE],[E.FONT,a.FONT],[E.FOOTER,a.FOOTER],[E.FOREIGN_OBJECT,a.FOREIGN_OBJECT],[E.FORM,a.FORM],[E.FRAME,a.FRAME],[E.FRAMESET,a.FRAMESET],[E.H1,a.H1],[E.H2,a.H2],[E.H3,a.H3],[E.H4,a.H4],[E.H5,a.H5],[E.H6,a.H6],[E.HEAD,a.HEAD],[E.HEADER,a.HEADER],[E.HGROUP,a.HGROUP],[E.HR,a.HR],[E.HTML,a.HTML],[E.I,a.I],[E.IMG,a.IMG],[E.IMAGE,a.IMAGE],[E.INPUT,a.INPUT],[E.IFRAME,a.IFRAME],[E.KEYGEN,a.KEYGEN],[E.LABEL,a.LABEL],[E.LI,a.LI],[E.LINK,a.LINK],[E.LISTING,a.LISTING],[E.MAIN,a.MAIN],[E.MALIGNMARK,a.MALIGNMARK],[E.MARQUEE,a.MARQUEE],[E.MATH,a.MATH],[E.MENU,a.MENU],[E.META,a.META],[E.MGLYPH,a.MGLYPH],[E.MI,a.MI],[E.MO,a.MO],[E.MN,a.MN],[E.MS,a.MS],[E.MTEXT,a.MTEXT],[E.NAV,a.NAV],[E.NOBR,a.NOBR],[E.NOFRAMES,a.NOFRAMES],[E.NOEMBED,a.NOEMBED],[E.NOSCRIPT,a.NOSCRIPT],[E.OBJECT,a.OBJECT],[E.OL,a.OL],[E.OPTGROUP,a.OPTGROUP],[E.OPTION,a.OPTION],[E.P,a.P],[E.PARAM,a.PARAM],[E.PLAINTEXT,a.PLAINTEXT],[E.PRE,a.PRE],[E.RB,a.RB],[E.RP,a.RP],[E.RT,a.RT],[E.RTC,a.RTC],[E.RUBY,a.RUBY],[E.S,a.S],[E.SCRIPT,a.SCRIPT],[E.SEARCH,a.SEARCH],[E.SECTION,a.SECTION],[E.SELECT,a.SELECT],[E.SOURCE,a.SOURCE],[E.SMALL,a.SMALL],[E.SPAN,a.SPAN],[E.STRIKE,a.STRIKE],[E.STRONG,a.STRONG],[E.STYLE,a.STYLE],[E.SUB,a.SUB],[E.SUMMARY,a.SUMMARY],[E.SUP,a.SUP],[E.TABLE,a.TABLE],[E.TBODY,a.TBODY],[E.TEMPLATE,a.TEMPLATE],[E.TEXTAREA,a.TEXTAREA],[E.TFOOT,a.TFOOT],[E.TD,a.TD],[E.TH,a.TH],[E.THEAD,a.THEAD],[E.TITLE,a.TITLE],[E.TR,a.TR],[E.TRACK,a.TRACK],[E.TT,a.TT],[E.U,a.U],[E.UL,a.UL],[E.SVG,a.SVG],[E.VAR,a.VAR],[E.WBR,a.WBR],[E.XMP,a.XMP]]);function Me(e){var t;return(t=ks.get(e))!==null&&t!==void 0?t:a.UNKNOWN}var C=a,ja={[_.HTML]:new Set([C.ADDRESS,C.APPLET,C.AREA,C.ARTICLE,C.ASIDE,C.BASE,C.BASEFONT,C.BGSOUND,C.BLOCKQUOTE,C.BODY,C.BR,C.BUTTON,C.CAPTION,C.CENTER,C.COL,C.COLGROUP,C.DD,C.DETAILS,C.DIR,C.DIV,C.DL,C.DT,C.EMBED,C.FIELDSET,C.FIGCAPTION,C.FIGURE,C.FOOTER,C.FORM,C.FRAME,C.FRAMESET,C.H1,C.H2,C.H3,C.H4,C.H5,C.H6,C.HEAD,C.HEADER,C.HGROUP,C.HR,C.HTML,C.IFRAME,C.IMG,C.INPUT,C.LI,C.LINK,C.LISTING,C.MAIN,C.MARQUEE,C.MENU,C.META,C.NAV,C.NOEMBED,C.NOFRAMES,C.NOSCRIPT,C.OBJECT,C.OL,C.P,C.PARAM,C.PLAINTEXT,C.PRE,C.SCRIPT,C.SECTION,C.SELECT,C.SOURCE,C.STYLE,C.SUMMARY,C.TABLE,C.TBODY,C.TD,C.TEMPLATE,C.TEXTAREA,C.TFOOT,C.TH,C.THEAD,C.TITLE,C.TR,C.TRACK,C.UL,C.WBR,C.XMP]),[_.MATHML]:new Set([C.MI,C.MO,C.MN,C.MS,C.MTEXT,C.ANNOTATION_XML]),[_.SVG]:new Set([C.TITLE,C.FOREIGN_OBJECT,C.DESC]),[_.XLINK]:new Set,[_.XML]:new Set,[_.XMLNS]:new Set},at=new Set([C.H1,C.H2,C.H3,C.H4,C.H5,C.H6]),lf=new Set([E.STYLE,E.SCRIPT,E.XMP,E.IFRAME,E.NOEMBED,E.NOFRAMES,E.PLAINTEXT]);var l;(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.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(l||(l={}));var J={DATA:l.DATA,RCDATA:l.RCDATA,RAWTEXT:l.RAWTEXT,SCRIPT_DATA:l.SCRIPT_DATA,PLAINTEXT:l.PLAINTEXT,CDATA_SECTION:l.CDATA_SECTION};function Ms(e){return e>=i.DIGIT_0&&e<=i.DIGIT_9}function ot(e){return e>=i.LATIN_CAPITAL_A&&e<=i.LATIN_CAPITAL_Z}function Bs(e){return e>=i.LATIN_SMALL_A&&e<=i.LATIN_SMALL_Z}function De(e){return Bs(e)||ot(e)}function Ka(e){return De(e)||Ms(e)}function Ht(e){return e+32}function qa(e){return e===i.SPACE||e===i.LINE_FEED||e===i.TABULATION||e===i.FORM_FEED}function Va(e){return qa(e)||e===i.SOLIDUS||e===i.GREATER_THAN_SIGN}function Us(e){if(e===i.NULL)return b.nullCharacterReference;else if(e>1114111)return b.characterReferenceOutsideUnicodeRange;else if(kt(e))return b.surrogateCharacterReference;else if(Mt(e))return b.noncharacterCharacterReference;else if(Pt(e)||e===i.CARRIAGE_RETURN)return b.controlCharacterReference;return null}class Ut{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=l.DATA,this.returnState=l.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new In(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Dn(Ln,(n,r)=>{this.preprocessor.pos=this.entityStartPos+r-1,this._flushCodePointConsumedAsCharacterReference(n)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(b.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:(n)=>{this._err(b.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+n)},validateNumericCharacterReference:(n)=>{let r=Us(n);if(r)this._err(r,1)}}:void 0)}_err(e,t=0){var n,r;(r=(n=this.handler).onParseError)===null||r===void 0||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){if(!this.options.sourceCodeLocationInfo)return null;return{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}}_runParsingLoop(){if(this.inLoop)return;this.inLoop=!0;while(this.active&&!this.paused){this.consumedAfterSnapshot=0;let e=this._consume();if(!this._ensureHibernation())this._callState(e)}this.inLoop=!1}pause(){this.paused=!0}resume(e){if(!this.paused)throw Error("Parser was already resumed");if(this.paused=!1,this.inLoop)return;if(this._runParsingLoop(),!this.paused)e===null||e===void 0||e()}write(e,t,n){if(this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),!this.paused)n===null||n===void 0||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){if(this.preprocessor.endOfChunkHit)return this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0;return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){if(this.preprocessor.startsWith(e,t))return this._advanceBy(e.length-1),!0;return!1}_createStartTagToken(){this.currentToken={type:w.START_TAG,tagName:"",tagID:a.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:w.END_TAG,tagName:"",tagID:a.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:w.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:w.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;let n=this.currentToken;if(Bt(n,this.currentAttr.name)===null){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){let r=(e=(t=n.location).attrs)!==null&&e!==void 0?e:t.attrs=Object.create(null);r[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(b.duplicateAttribute)}_leaveAttrValue(){if(this.currentLocation)this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset}prepareToken(e){if(this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location)e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1;this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){let e=this.currentToken;if(this.prepareToken(e),e.tagID=Me(e.tagName),e.type===w.START_TAG)this.lastStartTagName=e.tagName,this.handler.onStartTag(e);else{if(e.attrs.length>0)this._err(b.endTagWithAttributes);if(e.selfClosing)this._err(b.endTagWithTrailingSolidus);this.handler.onEndTag(e)}this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){if(e&&this.currentCharacterToken.location)this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset;switch(this.currentCharacterToken.type){case w.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case w.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case w.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);if(e)e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset;this._emitCurrentCharacterToken(e),this.handler.onEof({type:w.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,t)}_emitCodePoint(e){let t=qa(e)?w.WHITESPACE_CHARACTER:e===i.NULL?w.NULL_CHARACTER:w.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(w.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=l.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?pe.Attribute:pe.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===l.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===l.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===l.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){if(this._isCharacterReferenceInAttribute())this.currentAttr.value+=String.fromCodePoint(e);else this._emitCodePoint(e)}_callState(e){switch(this.state){case l.DATA:{this._stateData(e);break}case l.RCDATA:{this._stateRcdata(e);break}case l.RAWTEXT:{this._stateRawtext(e);break}case l.SCRIPT_DATA:{this._stateScriptData(e);break}case l.PLAINTEXT:{this._statePlaintext(e);break}case l.TAG_OPEN:{this._stateTagOpen(e);break}case l.END_TAG_OPEN:{this._stateEndTagOpen(e);break}case l.TAG_NAME:{this._stateTagName(e);break}case l.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(e);break}case l.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(e);break}case l.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(e);break}case l.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(e);break}case l.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(e);break}case l.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(e);break}case l.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(e);break}case l.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(e);break}case l.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(e);break}case l.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(e);break}case l.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(e);break}case l.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(e);break}case l.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(e);break}case l.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(e);break}case l.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(e);break}case l.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(e);break}case l.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(e);break}case l.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(e);break}case l.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(e);break}case l.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(e);break}case l.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(e);break}case l.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(e);break}case l.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(e);break}case l.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(e);break}case l.ATTRIBUTE_NAME:{this._stateAttributeName(e);break}case l.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(e);break}case l.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(e);break}case l.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(e);break}case l.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(e);break}case l.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(e);break}case l.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(e);break}case l.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(e);break}case l.BOGUS_COMMENT:{this._stateBogusComment(e);break}case l.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(e);break}case l.COMMENT_START:{this._stateCommentStart(e);break}case l.COMMENT_START_DASH:{this._stateCommentStartDash(e);break}case l.COMMENT:{this._stateComment(e);break}case l.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(e);break}case l.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(e);break}case l.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(e);break}case l.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(e);break}case l.COMMENT_END_DASH:{this._stateCommentEndDash(e);break}case l.COMMENT_END:{this._stateCommentEnd(e);break}case l.COMMENT_END_BANG:{this._stateCommentEndBang(e);break}case l.DOCTYPE:{this._stateDoctype(e);break}case l.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(e);break}case l.DOCTYPE_NAME:{this._stateDoctypeName(e);break}case l.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(e);break}case l.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(e);break}case l.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(e);break}case l.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(e);break}case l.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(e);break}case l.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(e);break}case l.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break}case l.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(e);break}case l.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(e);break}case l.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(e);break}case l.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(e);break}case l.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(e);break}case l.BOGUS_DOCTYPE:{this._stateBogusDoctype(e);break}case l.CDATA_SECTION:{this._stateCdataSection(e);break}case l.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(e);break}case l.CDATA_SECTION_END:{this._stateCdataSectionEnd(e);break}case l.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case l.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(e);break}default:throw Error("Unknown state")}}_stateData(e){switch(e){case i.LESS_THAN_SIGN:{this.state=l.TAG_OPEN;break}case i.AMPERSAND:{this._startCharacterReference();break}case i.NULL:{this._err(b.unexpectedNullCharacter),this._emitCodePoint(e);break}case i.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case i.AMPERSAND:{this._startCharacterReference();break}case i.LESS_THAN_SIGN:{this.state=l.RCDATA_LESS_THAN_SIGN;break}case i.NULL:{this._err(b.unexpectedNullCharacter),this._emitChars(H);break}case i.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case i.LESS_THAN_SIGN:{this.state=l.RAWTEXT_LESS_THAN_SIGN;break}case i.NULL:{this._err(b.unexpectedNullCharacter),this._emitChars(H);break}case i.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case i.LESS_THAN_SIGN:{this.state=l.SCRIPT_DATA_LESS_THAN_SIGN;break}case i.NULL:{this._err(b.unexpectedNullCharacter),this._emitChars(H);break}case i.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case i.NULL:{this._err(b.unexpectedNullCharacter),this._emitChars(H);break}case i.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateTagOpen(e){if(De(e))this._createStartTagToken(),this.state=l.TAG_NAME,this._stateTagName(e);else switch(e){case i.EXCLAMATION_MARK:{this.state=l.MARKUP_DECLARATION_OPEN;break}case i.SOLIDUS:{this.state=l.END_TAG_OPEN;break}case i.QUESTION_MARK:{this._err(b.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=l.BOGUS_COMMENT,this._stateBogusComment(e);break}case i.EOF:{this._err(b.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(b.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=l.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(De(e))this._createEndTagToken(),this.state=l.TAG_NAME,this._stateTagName(e);else switch(e){case i.GREATER_THAN_SIGN:{this._err(b.missingEndTagName),this.state=l.DATA;break}case i.EOF:{this._err(b.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(b.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=l.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){let t=this.currentToken;switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this.state=l.BEFORE_ATTRIBUTE_NAME;break}case i.SOLIDUS:{this.state=l.SELF_CLOSING_START_TAG;break}case i.GREATER_THAN_SIGN:{this.state=l.DATA,this.emitCurrentTagToken();break}case i.NULL:{this._err(b.unexpectedNullCharacter),t.tagName+=H;break}case i.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:t.tagName+=String.fromCodePoint(ot(e)?Ht(e):e)}}_stateRcdataLessThanSign(e){if(e===i.SOLIDUS)this.state=l.RCDATA_END_TAG_OPEN;else this._emitChars("<"),this.state=l.RCDATA,this._stateRcdata(e)}_stateRcdataEndTagOpen(e){if(De(e))this.state=l.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e);else this._emitChars("</"),this.state=l.RCDATA,this._stateRcdata(e)}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();let t=this.currentToken;switch(t.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=l.BEFORE_ATTRIBUTE_NAME,!1;case i.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=l.SELF_CLOSING_START_TAG,!1;case i.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=l.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){if(this.handleSpecialEndTag(e))this._emitChars("</"),this.state=l.RCDATA,this._stateRcdata(e)}_stateRawtextLessThanSign(e){if(e===i.SOLIDUS)this.state=l.RAWTEXT_END_TAG_OPEN;else this._emitChars("<"),this.state=l.RAWTEXT,this._stateRawtext(e)}_stateRawtextEndTagOpen(e){if(De(e))this.state=l.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e);else this._emitChars("</"),this.state=l.RAWTEXT,this._stateRawtext(e)}_stateRawtextEndTagName(e){if(this.handleSpecialEndTag(e))this._emitChars("</"),this.state=l.RAWTEXT,this._stateRawtext(e)}_stateScriptDataLessThanSign(e){switch(e){case i.SOLIDUS:{this.state=l.SCRIPT_DATA_END_TAG_OPEN;break}case i.EXCLAMATION_MARK:{this.state=l.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=l.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){if(De(e))this.state=l.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e);else this._emitChars("</"),this.state=l.SCRIPT_DATA,this._stateScriptData(e)}_stateScriptDataEndTagName(e){if(this.handleSpecialEndTag(e))this._emitChars("</"),this.state=l.SCRIPT_DATA,this._stateScriptData(e)}_stateScriptDataEscapeStart(e){if(e===i.HYPHEN_MINUS)this.state=l.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-");else this.state=l.SCRIPT_DATA,this._stateScriptData(e)}_stateScriptDataEscapeStartDash(e){if(e===i.HYPHEN_MINUS)this.state=l.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");else this.state=l.SCRIPT_DATA,this._stateScriptData(e)}_stateScriptDataEscaped(e){switch(e){case i.HYPHEN_MINUS:{this.state=l.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case i.LESS_THAN_SIGN:{this.state=l.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case i.NULL:{this._err(b.unexpectedNullCharacter),this._emitChars(H);break}case i.EOF:{this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case i.HYPHEN_MINUS:{this.state=l.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case i.LESS_THAN_SIGN:{this.state=l.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case i.NULL:{this._err(b.unexpectedNullCharacter),this.state=l.SCRIPT_DATA_ESCAPED,this._emitChars(H);break}case i.EOF:{this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=l.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case i.HYPHEN_MINUS:{this._emitChars("-");break}case i.LESS_THAN_SIGN:{this.state=l.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case i.GREATER_THAN_SIGN:{this.state=l.SCRIPT_DATA,this._emitChars(">");break}case i.NULL:{this._err(b.unexpectedNullCharacter),this.state=l.SCRIPT_DATA_ESCAPED,this._emitChars(H);break}case i.EOF:{this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=l.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){if(e===i.SOLIDUS)this.state=l.SCRIPT_DATA_ESCAPED_END_TAG_OPEN;else if(De(e))this._emitChars("<"),this.state=l.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e);else this._emitChars("<"),this.state=l.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e)}_stateScriptDataEscapedEndTagOpen(e){if(De(e))this.state=l.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e);else this._emitChars("</"),this.state=l.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e)}_stateScriptDataEscapedEndTagName(e){if(this.handleSpecialEndTag(e))this._emitChars("</"),this.state=l.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e)}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(Z.SCRIPT,!1)&&Va(this.preprocessor.peek(Z.SCRIPT.length))){this._emitCodePoint(e);for(let t=0;t<Z.SCRIPT.length;t++)this._emitCodePoint(this._consume());this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED}else if(!this._ensureHibernation())this.state=l.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e)}_stateScriptDataDoubleEscaped(e){switch(e){case i.HYPHEN_MINUS:{this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case i.LESS_THAN_SIGN:{this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case i.NULL:{this._err(b.unexpectedNullCharacter),this._emitChars(H);break}case i.EOF:{this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case i.HYPHEN_MINUS:{this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case i.LESS_THAN_SIGN:{this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case i.NULL:{this._err(b.unexpectedNullCharacter),this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(H);break}case i.EOF:{this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case i.HYPHEN_MINUS:{this._emitChars("-");break}case i.LESS_THAN_SIGN:{this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case i.GREATER_THAN_SIGN:{this.state=l.SCRIPT_DATA,this._emitChars(">");break}case i.NULL:{this._err(b.unexpectedNullCharacter),this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(H);break}case i.EOF:{this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){if(e===i.SOLIDUS)this.state=l.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/");else this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e)}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(Z.SCRIPT,!1)&&Va(this.preprocessor.peek(Z.SCRIPT.length))){this._emitCodePoint(e);for(let t=0;t<Z.SCRIPT.length;t++)this._emitCodePoint(this._consume());this.state=l.SCRIPT_DATA_ESCAPED}else if(!this._ensureHibernation())this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e)}_stateBeforeAttributeName(e){switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.SOLIDUS:case i.GREATER_THAN_SIGN:case i.EOF:{this.state=l.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break}case i.EQUALS_SIGN:{this._err(b.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=l.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=l.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:case i.SOLIDUS:case i.GREATER_THAN_SIGN:case i.EOF:{this._leaveAttrName(),this.state=l.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break}case i.EQUALS_SIGN:{this._leaveAttrName(),this.state=l.BEFORE_ATTRIBUTE_VALUE;break}case i.QUOTATION_MARK:case i.APOSTROPHE:case i.LESS_THAN_SIGN:{this._err(b.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break}case i.NULL:{this._err(b.unexpectedNullCharacter),this.currentAttr.name+=H;break}default:this.currentAttr.name+=String.fromCodePoint(ot(e)?Ht(e):e)}}_stateAfterAttributeName(e){switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.SOLIDUS:{this.state=l.SELF_CLOSING_START_TAG;break}case i.EQUALS_SIGN:{this.state=l.BEFORE_ATTRIBUTE_VALUE;break}case i.GREATER_THAN_SIGN:{this.state=l.DATA,this.emitCurrentTagToken();break}case i.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=l.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.QUOTATION_MARK:{this.state=l.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case i.APOSTROPHE:{this.state=l.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case i.GREATER_THAN_SIGN:{this._err(b.missingAttributeValue),this.state=l.DATA,this.emitCurrentTagToken();break}default:this.state=l.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case i.QUOTATION_MARK:{this.state=l.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case i.AMPERSAND:{this._startCharacterReference();break}case i.NULL:{this._err(b.unexpectedNullCharacter),this.currentAttr.value+=H;break}case i.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case i.APOSTROPHE:{this.state=l.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case i.AMPERSAND:{this._startCharacterReference();break}case i.NULL:{this._err(b.unexpectedNullCharacter),this.currentAttr.value+=H;break}case i.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this._leaveAttrValue(),this.state=l.BEFORE_ATTRIBUTE_NAME;break}case i.AMPERSAND:{this._startCharacterReference();break}case i.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=l.DATA,this.emitCurrentTagToken();break}case i.NULL:{this._err(b.unexpectedNullCharacter),this.currentAttr.value+=H;break}case i.QUOTATION_MARK:case i.APOSTROPHE:case i.LESS_THAN_SIGN:case i.EQUALS_SIGN:case i.GRAVE_ACCENT:{this._err(b.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break}case i.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this._leaveAttrValue(),this.state=l.BEFORE_ATTRIBUTE_NAME;break}case i.SOLIDUS:{this._leaveAttrValue(),this.state=l.SELF_CLOSING_START_TAG;break}case i.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=l.DATA,this.emitCurrentTagToken();break}case i.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:this._err(b.missingWhitespaceBetweenAttributes),this.state=l.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case i.GREATER_THAN_SIGN:{let t=this.currentToken;t.selfClosing=!0,this.state=l.DATA,this.emitCurrentTagToken();break}case i.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:this._err(b.unexpectedSolidusInTag),this.state=l.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){let t=this.currentToken;switch(e){case i.GREATER_THAN_SIGN:{this.state=l.DATA,this.emitCurrentComment(t);break}case i.EOF:{this.emitCurrentComment(t),this._emitEOFToken();break}case i.NULL:{this._err(b.unexpectedNullCharacter),t.data+=H;break}default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){if(this._consumeSequenceIfMatch(Z.DASH_DASH,!0))this._createCommentToken(Z.DASH_DASH.length+1),this.state=l.COMMENT_START;else if(this._consumeSequenceIfMatch(Z.DOCTYPE,!1))this.currentLocation=this.getCurrentLocation(Z.DOCTYPE.length+1),this.state=l.DOCTYPE;else if(this._consumeSequenceIfMatch(Z.CDATA_START,!0))if(this.inForeignNode)this.state=l.CDATA_SECTION;else this._err(b.cdataInHtmlContent),this._createCommentToken(Z.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=l.BOGUS_COMMENT;else if(!this._ensureHibernation())this._err(b.incorrectlyOpenedComment),this._createCommentToken(2),this.state=l.BOGUS_COMMENT,this._stateBogusComment(e)}_stateCommentStart(e){switch(e){case i.HYPHEN_MINUS:{this.state=l.COMMENT_START_DASH;break}case i.GREATER_THAN_SIGN:{this._err(b.abruptClosingOfEmptyComment),this.state=l.DATA;let t=this.currentToken;this.emitCurrentComment(t);break}default:this.state=l.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){let t=this.currentToken;switch(e){case i.HYPHEN_MINUS:{this.state=l.COMMENT_END;break}case i.GREATER_THAN_SIGN:{this._err(b.abruptClosingOfEmptyComment),this.state=l.DATA,this.emitCurrentComment(t);break}case i.EOF:{this._err(b.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+="-",this.state=l.COMMENT,this._stateComment(e)}}_stateComment(e){let t=this.currentToken;switch(e){case i.HYPHEN_MINUS:{this.state=l.COMMENT_END_DASH;break}case i.LESS_THAN_SIGN:{t.data+="<",this.state=l.COMMENT_LESS_THAN_SIGN;break}case i.NULL:{this._err(b.unexpectedNullCharacter),t.data+=H;break}case i.EOF:{this._err(b.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){let t=this.currentToken;switch(e){case i.EXCLAMATION_MARK:{t.data+="!",this.state=l.COMMENT_LESS_THAN_SIGN_BANG;break}case i.LESS_THAN_SIGN:{t.data+="<";break}default:this.state=l.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){if(e===i.HYPHEN_MINUS)this.state=l.COMMENT_LESS_THAN_SIGN_BANG_DASH;else this.state=l.COMMENT,this._stateComment(e)}_stateCommentLessThanSignBangDash(e){if(e===i.HYPHEN_MINUS)this.state=l.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH;else this.state=l.COMMENT_END_DASH,this._stateCommentEndDash(e)}_stateCommentLessThanSignBangDashDash(e){if(e!==i.GREATER_THAN_SIGN&&e!==i.EOF)this._err(b.nestedComment);this.state=l.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){let t=this.currentToken;switch(e){case i.HYPHEN_MINUS:{this.state=l.COMMENT_END;break}case i.EOF:{this._err(b.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+="-",this.state=l.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){let t=this.currentToken;switch(e){case i.GREATER_THAN_SIGN:{this.state=l.DATA,this.emitCurrentComment(t);break}case i.EXCLAMATION_MARK:{this.state=l.COMMENT_END_BANG;break}case i.HYPHEN_MINUS:{t.data+="-";break}case i.EOF:{this._err(b.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+="--",this.state=l.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){let t=this.currentToken;switch(e){case i.HYPHEN_MINUS:{t.data+="--!",this.state=l.COMMENT_END_DASH;break}case i.GREATER_THAN_SIGN:{this._err(b.incorrectlyClosedComment),this.state=l.DATA,this.emitCurrentComment(t);break}case i.EOF:{this._err(b.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+="--!",this.state=l.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this.state=l.BEFORE_DOCTYPE_NAME;break}case i.GREATER_THAN_SIGN:{this.state=l.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break}case i.EOF:{this._err(b.eofInDoctype),this._createDoctypeToken(null);let t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(b.missingWhitespaceBeforeDoctypeName),this.state=l.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(ot(e))this._createDoctypeToken(String.fromCharCode(Ht(e))),this.state=l.DOCTYPE_NAME;else switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.NULL:{this._err(b.unexpectedNullCharacter),this._createDoctypeToken(H),this.state=l.DOCTYPE_NAME;break}case i.GREATER_THAN_SIGN:{this._err(b.missingDoctypeName),this._createDoctypeToken(null);let t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=l.DATA;break}case i.EOF:{this._err(b.eofInDoctype),this._createDoctypeToken(null);let t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=l.DOCTYPE_NAME}}_stateDoctypeName(e){let t=this.currentToken;switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this.state=l.AFTER_DOCTYPE_NAME;break}case i.GREATER_THAN_SIGN:{this.state=l.DATA,this.emitCurrentDoctype(t);break}case i.NULL:{this._err(b.unexpectedNullCharacter),t.name+=H;break}case i.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.name+=String.fromCodePoint(ot(e)?Ht(e):e)}}_stateAfterDoctypeName(e){let t=this.currentToken;switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.GREATER_THAN_SIGN:{this.state=l.DATA,this.emitCurrentDoctype(t);break}case i.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:if(this._consumeSequenceIfMatch(Z.PUBLIC,!1))this.state=l.AFTER_DOCTYPE_PUBLIC_KEYWORD;else if(this._consumeSequenceIfMatch(Z.SYSTEM,!1))this.state=l.AFTER_DOCTYPE_SYSTEM_KEYWORD;else if(!this._ensureHibernation())this._err(b.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypePublicKeyword(e){let t=this.currentToken;switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this.state=l.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case i.QUOTATION_MARK:{this._err(b.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=l.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case i.APOSTROPHE:{this._err(b.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=l.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case i.GREATER_THAN_SIGN:{this._err(b.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=l.DATA,this.emitCurrentDoctype(t);break}case i.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(b.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.QUOTATION_MARK:{t.publicId="",this.state=l.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case i.APOSTROPHE:{t.publicId="",this.state=l.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case i.GREATER_THAN_SIGN:{this._err(b.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=l.DATA,this.emitCurrentDoctype(t);break}case i.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(b.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case i.QUOTATION_MARK:{this.state=l.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case i.NULL:{this._err(b.unexpectedNullCharacter),t.publicId+=H;break}case i.GREATER_THAN_SIGN:{this._err(b.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=l.DATA;break}case i.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case i.APOSTROPHE:{this.state=l.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case i.NULL:{this._err(b.unexpectedNullCharacter),t.publicId+=H;break}case i.GREATER_THAN_SIGN:{this._err(b.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=l.DATA;break}case i.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this.state=l.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case i.GREATER_THAN_SIGN:{this.state=l.DATA,this.emitCurrentDoctype(t);break}case i.QUOTATION_MARK:{this._err(b.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case i.APOSTROPHE:{this._err(b.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case i.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(b.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){let t=this.currentToken;switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t),this.state=l.DATA;break}case i.QUOTATION_MARK:{t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case i.APOSTROPHE:{t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case i.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(b.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){let t=this.currentToken;switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this.state=l.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case i.QUOTATION_MARK:{this._err(b.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case i.APOSTROPHE:{this._err(b.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case i.GREATER_THAN_SIGN:{this._err(b.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=l.DATA,this.emitCurrentDoctype(t);break}case i.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(b.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.QUOTATION_MARK:{t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case i.APOSTROPHE:{t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case i.GREATER_THAN_SIGN:{this._err(b.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=l.DATA,this.emitCurrentDoctype(t);break}case i.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(b.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case i.QUOTATION_MARK:{this.state=l.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case i.NULL:{this._err(b.unexpectedNullCharacter),t.systemId+=H;break}case i.GREATER_THAN_SIGN:{this._err(b.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=l.DATA;break}case i.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case i.APOSTROPHE:{this.state=l.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case i.NULL:{this._err(b.unexpectedNullCharacter),t.systemId+=H;break}case i.GREATER_THAN_SIGN:{this._err(b.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=l.DATA;break}case i.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t),this.state=l.DATA;break}case i.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(b.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){let t=this.currentToken;switch(e){case i.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t),this.state=l.DATA;break}case i.NULL:{this._err(b.unexpectedNullCharacter);break}case i.EOF:{this.emitCurrentDoctype(t),this._emitEOFToken();break}default:}}_stateCdataSection(e){switch(e){case i.RIGHT_SQUARE_BRACKET:{this.state=l.CDATA_SECTION_BRACKET;break}case i.EOF:{this._err(b.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){if(e===i.RIGHT_SQUARE_BRACKET)this.state=l.CDATA_SECTION_END;else this._emitChars("]"),this.state=l.CDATA_SECTION,this._stateCdataSection(e)}_stateCdataSectionEnd(e){switch(e){case i.GREATER_THAN_SIGN:{this.state=l.DATA;break}case i.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=l.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0)if(this.preprocessor.lastChunkWritten)e=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}if(e===0)this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(i.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Ka(this.preprocessor.peek(1))?l.AMBIGUOUS_AMPERSAND:this.returnState;else this.state=this.returnState}_stateAmbiguousAmpersand(e){if(Ka(e))this._flushCodePointConsumedAsCharacterReference(e);else{if(e===i.SEMICOLON)this._err(b.unknownNamedCharacterReference);this.state=this.returnState,this._callState(e)}}}var Ja=new Set([a.DD,a.DT,a.LI,a.OPTGROUP,a.OPTION,a.P,a.RB,a.RP,a.RT,a.RTC]),Ga=new Set([...Ja,a.CAPTION,a.COLGROUP,a.TBODY,a.TD,a.TFOOT,a.TH,a.THEAD,a.TR]),Ft=new Set([a.APPLET,a.CAPTION,a.HTML,a.MARQUEE,a.OBJECT,a.TABLE,a.TD,a.TEMPLATE,a.TH]),Fs=new Set([...Ft,a.OL,a.UL]),$s=new Set([...Ft,a.BUTTON]),Qa=new Set([a.ANNOTATION_XML,a.MI,a.MN,a.MO,a.MS,a.MTEXT]),Xa=new Set([a.DESC,a.FOREIGN_OBJECT,a.TITLE]),Ys=new Set([a.TR,a.TEMPLATE,a.HTML]),js=new Set([a.TBODY,a.TFOOT,a.THEAD,a.TEMPLATE,a.HTML]),Ks=new Set([a.TABLE,a.TEMPLATE,a.HTML]),Vs=new Set([a.TD,a.TH]);class vn{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=a.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===a.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===_.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){if(this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate())this.tmplCount++;this.handler.onItemPush(e,t,!0)}pop(){let e=this.current;if(this.tmplCount>0&&this._isInTemplate())this.tmplCount--;this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let n=this._indexOf(e);if(this.items[n]=t,n===this.stackTop)this.current=t}insertAfter(e,t,n){let r=this._indexOf(e)+1;if(this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop)this._updateCurrentElement();if(this.current&&this.currentTagId!==void 0)this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==_.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){while(this.stackTop>=e){let t=this.current;if(this.tmplCount>0&&this._isInTemplate())this.tmplCount-=1;this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){let t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(at,_.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Vs,_.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(Ks,_.HTML)}clearBackToTableBodyContext(){this.clearBackTo(js,_.HTML)}clearBackToTableRowContext(){this.clearBackTo(Ys,_.HTML)}remove(e){let t=this._indexOf(e);if(t>=0)if(t===this.stackTop)this.pop();else this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===a.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===a.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){let r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case _.HTML:{if(r===e)return!0;if(t.has(r))return!1;break}case _.SVG:{if(Xa.has(r))return!1;break}case _.MATHML:{if(Qa.has(r))return!1;break}}}return!0}hasInScope(e){return this.hasInDynamicScope(e,Ft)}hasInListItemScope(e){return this.hasInDynamicScope(e,Fs)}hasInButtonScope(e){return this.hasInDynamicScope(e,$s)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case _.HTML:{if(at.has(t))return!0;if(Ft.has(t))return!1;break}case _.SVG:{if(Xa.has(t))return!1;break}case _.MATHML:{if(Qa.has(t))return!1;break}}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){if(this.treeAdapter.getNamespaceURI(this.items[t])!==_.HTML)continue;switch(this.tagIDs[t]){case e:return!0;case a.TABLE:case a.HTML:return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){if(this.treeAdapter.getNamespaceURI(this.items[e])!==_.HTML)continue;switch(this.tagIDs[e]){case a.TBODY:case a.THEAD:case a.TFOOT:return!0;case a.TABLE:case a.HTML:return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){if(this.treeAdapter.getNamespaceURI(this.items[t])!==_.HTML)continue;switch(this.tagIDs[t]){case e:return!0;case a.OPTION:case a.OPTGROUP:break;default:return!1}}return!0}generateImpliedEndTags(){while(this.currentTagId!==void 0&&Ja.has(this.currentTagId))this.pop()}generateImpliedEndTagsThoroughly(){while(this.currentTagId!==void 0&&Ga.has(this.currentTagId))this.pop()}generateImpliedEndTagsWithExclusion(e){while(this.currentTagId!==void 0&&this.currentTagId!==e&&Ga.has(this.currentTagId))this.pop()}}var ie;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ie||(ie={}));var za={type:ie.Marker};class wn{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let n=[],r=t.length,o=this.treeAdapter.getTagName(e),s=this.treeAdapter.getNamespaceURI(e);for(let c=0;c<this.entries.length;c++){let f=this.entries[c];if(f.type===ie.Marker)break;let{element:h}=f;if(this.treeAdapter.getTagName(h)===o&&this.treeAdapter.getNamespaceURI(h)===s){let A=this.treeAdapter.getAttrList(h);if(A.length===r)n.push({idx:c,attrs:A})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;let t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<3)return;let r=new Map(t.map((s)=>[s.name,s.value])),o=0;for(let s=0;s<n.length;s++){let c=n[s];if(c.attrs.every((f)=>r.get(f.name)===f.value)){if(o+=1,o>=3)this.entries.splice(c.idx,1)}}}insertMarker(){this.entries.unshift(za)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:ie.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:ie.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);if(t!==-1)this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(za);if(e===-1)this.entries.length=0;else this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){let t=this.entries.find((n)=>n.type===ie.Marker||this.treeAdapter.getTagName(n.element)===e);return t&&t.type===ie.Element?t:null}getElementEntry(e){return this.entries.find((t)=>t.type===ie.Element&&t.element===e)}}var ue={createDocument(){return{nodeName:"#document",mode:ee.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){let r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){let o=e.childNodes.find((s)=>s.nodeName==="#documentType");if(o)o.name=t,o.publicId=n,o.systemId=r;else{let s={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};ue.appendChild(e,s)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let n=e.childNodes[e.childNodes.length-1];if(ue.isTextNode(n)){n.value+=t;return}}ue.appendChild(e,ue.createTextNode(t))},insertTextBefore(e,t,n){let r=e.childNodes[e.childNodes.indexOf(n)-1];if(r&&ue.isTextNode(r))r.value+=t;else ue.insertBefore(e,ue.createTextNode(t),n)},adoptAttributes(e,t){let n=new Set(e.attrs.map((r)=>r.name));for(let r=0;r<t.length;r++)if(!n.has(t[r].name))e.attrs.push(t[r])},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}}};var er="html",qs="about:legacy-compat",Ws="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",tr=["+//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//"],Gs=[...tr,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Qs=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),nr=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Xs=[...nr,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Za(e,t){return t.some((n)=>e.startsWith(n))}function ar(e){return e.name===er&&e.publicId===null&&(e.systemId===null||e.systemId===qs)}function rr(e){if(e.name!==er)return ee.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===Ws)return ee.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),Qs.has(n))return ee.QUIRKS;let r=t===null?Gs:tr;if(Za(n,r))return ee.QUIRKS;if(r=t===null?nr:Xs,Za(n,r))return ee.LIMITED_QUIRKS}return ee.NO_QUIRKS}var or={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},zs="definitionurl",Zs="definitionURL",ei=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])),ti=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:_.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:_.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:_.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:_.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:_.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:_.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:_.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:_.XML}],["xml:space",{prefix:"xml",name:"space",namespace:_.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:_.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:_.XMLNS}]]),ni=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])),ai=new Set([a.B,a.BIG,a.BLOCKQUOTE,a.BODY,a.BR,a.CENTER,a.CODE,a.DD,a.DIV,a.DL,a.DT,a.EM,a.EMBED,a.H1,a.H2,a.H3,a.H4,a.H5,a.H6,a.HEAD,a.HR,a.I,a.IMG,a.LI,a.LISTING,a.MENU,a.META,a.NOBR,a.OL,a.P,a.PRE,a.RUBY,a.S,a.SMALL,a.SPAN,a.STRONG,a.STRIKE,a.SUB,a.SUP,a.TABLE,a.TT,a.U,a.UL,a.VAR]);function sr(e){let t=e.tagID;return t===a.FONT&&e.attrs.some(({name:r})=>r===ye.COLOR||r===ye.SIZE||r===ye.FACE)||ai.has(t)}function kn(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===zs){e.attrs[t].name=Zs;break}}function Pn(e){for(let t=0;t<e.attrs.length;t++){let n=ei.get(e.attrs[t].name);if(n!=null)e.attrs[t].name=n}}function $t(e){for(let t=0;t<e.attrs.length;t++){let n=ti.get(e.attrs[t].name);if(n)e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace}}function ir(e){let t=ni.get(e.tagName);if(t!=null)e.tagName=t,e.tagID=Me(e.tagName)}function ri(e,t){return t===_.MATHML&&(e===a.MI||e===a.MO||e===a.MN||e===a.MS||e===a.MTEXT)}function oi(e,t,n){if(t===_.MATHML&&e===a.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===ye.ENCODING){let o=n[r].value.toLowerCase();return o===or.TEXT_HTML||o===or.APPLICATION_XML}}return t===_.SVG&&(e===a.FOREIGN_OBJECT||e===a.DESC||e===a.TITLE)}function ur(e,t,n,r){return(!r||r===_.HTML)&&oi(e,t,n)||(!r||r===_.MATHML)&&ri(e,t)}var si="hidden",ii=8,ui=3,d;(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"})(d||(d={}));var ci={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},mr=new Set([a.TABLE,a.TBODY,a.TFOOT,a.THEAD,a.TR]),lr={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:ue,onParseError:null};class Et{constructor(e,t,n=null,r=null){if(this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=d.INITIAL,this.originalInsertionMode=d.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={...lr,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError)this.options.sourceCodeLocationInfo=!0;this.document=t!==null&&t!==void 0?t:this.treeAdapter.createDocument(),this.tokenizer=new Ut(this.options,this),this.activeFormattingElements=new wn(this.treeAdapter),this.fragmentContextID=n?Me(this.treeAdapter.getTagName(n)):a.UNKNOWN,this._setContextModes(n!==null&&n!==void 0?n:this.document,this.fragmentContextID),this.openElements=new vn(this.document,this.treeAdapter,this)}static parse(e,t){let n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){let n={...lr,...t};e!==null&&e!==void 0||(e=n.treeAdapter.createElement(E.TEMPLATE,_.HTML,[]));let r=n.treeAdapter.createElement("documentmock",_.HTML,[]),o=new this(n,r,e);if(o.fragmentContextID===a.TEMPLATE)o.tmplInsertionModeStack.unshift(d.IN_TEMPLATE);return o._initTokenizerForFragmentParsing(),o._insertFakeRootElement(),o._resetInsertionMode(),o._findFormInFragmentContext(),o}getFragment(){let e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return;let o=(r=e.location)!==null&&r!==void 0?r:ci,s={code:t,startLine:o.startLine,startCol:o.startCol,startOffset:o.startOffset,endLine:n?o.startLine:o.endLine,endCol:n?o.startCol:o.endCol,endOffset:n?o.startOffset:o.endOffset};this.onParseError(s)}onItemPush(e,t,n){var r,o;if((o=(r=this.treeAdapter).onItemPush)===null||o===void 0||o.call(r,e),n&&this.openElements.stackTop>0)this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo)this._setEndLocation(e,this.currentToken);if((r=(n=this.treeAdapter).onItemPop)===null||r===void 0||r.call(n,e,this.openElements.current),t){let o,s;if(this.openElements.stackTop===0&&this.fragmentContext)o=this.fragmentContext,s=this.fragmentContextID;else({current:o,currentTagId:s}=this.openElements);this._setContextModes(o,s)}}_setContextModes(e,t){let n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===_.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&e!==void 0&&t!==void 0&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,_.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=d.TEXT}switchToPlaintextParsing(){this.insertionMode=d.TEXT,this.originalInsertionMode=d.IN_BODY,this.tokenizer.state=J.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;while(e){if(this.treeAdapter.getTagName(e)===E.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==_.HTML)return;switch(this.fragmentContextID){case a.TITLE:case a.TEXTAREA:{this.tokenizer.state=J.RCDATA;break}case a.STYLE:case a.XMP:case a.IFRAME:case a.NOEMBED:case a.NOFRAMES:case a.NOSCRIPT:{this.tokenizer.state=J.RAWTEXT;break}case a.SCRIPT:{this.tokenizer.state=J.SCRIPT_DATA;break}case a.PLAINTEXT:{this.tokenizer.state=J.PLAINTEXT;break}default:}}_setDocumentType(e){let t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){let s=this.treeAdapter.getChildNodes(this.document).find((c)=>this.treeAdapter.isDocumentTypeNode(c));if(s)this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let n=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(n!==null&&n!==void 0?n:this.document,e)}}_appendElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){let n=this.treeAdapter.createElement(e,_.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,_.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();if(this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo)this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(E.HTML,_.HTML,[]);if(this.options.sourceCodeLocationInfo)this.treeAdapter.setNodeSourceCodeLocation(e,null);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,a.HTML)}_appendCommentNode(e,t){let n=this.treeAdapter.createCommentNode(e.data);if(this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo)this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion())if({parent:t,beforeElement:n}=this._findFosterParentingLocation(),n)this.treeAdapter.insertTextBefore(t,e.chars,n);else this.treeAdapter.insertText(t,e.chars);else t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars);if(!e.location)return;let r=this.treeAdapter.getChildNodes(t),o=n?r.lastIndexOf(n):r.length,s=r[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){let{endLine:f,endCol:h,endOffset:A}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:f,endCol:h,endOffset:A})}else if(this.options.sourceCodeLocationInfo)this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let n=t.location,r=this.treeAdapter.getTagName(e),o=t.type===w.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,o)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;if(this.openElements.stackTop===0&&this.fragmentContext)t=this.fragmentContext,n=this.fragmentContextID;else({current:t,currentTagId:n}=this.openElements);if(e.tagID===a.SVG&&this.treeAdapter.getTagName(t)===E.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(t)===_.MATHML)return!1;return this.tokenizer.inForeignNode||(e.tagID===a.MGLYPH||e.tagID===a.MALIGNMARK)&&n!==void 0&&!this._isIntegrationPoint(n,t,_.HTML)}_processToken(e){switch(e.type){case w.CHARACTER:{this.onCharacter(e);break}case w.NULL_CHARACTER:{this.onNullCharacter(e);break}case w.COMMENT:{this.onComment(e);break}case w.DOCTYPE:{this.onDoctype(e);break}case w.START_TAG:{this._processStartTag(e);break}case w.END_TAG:{this.onEndTag(e);break}case w.EOF:{this.onEof(e);break}case w.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(e);break}}}_isIntegrationPoint(e,t,n){let r=this.treeAdapter.getNamespaceURI(t),o=this.treeAdapter.getAttrList(t);return ur(e,r,o,n)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let t=this.activeFormattingElements.entries.findIndex((r)=>r.type===ie.Marker||this.openElements.contains(r.element)),n=t===-1?e-1:t-1;for(let r=n;r>=0;r--){let o=this.activeFormattingElements.entries[r];this._insertElement(o.token,this.treeAdapter.getNamespaceURI(o.element)),o.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=d.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(a.P),this.openElements.popUntilTagNamePopped(a.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case a.TR:{this.insertionMode=d.IN_ROW;return}case a.TBODY:case a.THEAD:case a.TFOOT:{this.insertionMode=d.IN_TABLE_BODY;return}case a.CAPTION:{this.insertionMode=d.IN_CAPTION;return}case a.COLGROUP:{this.insertionMode=d.IN_COLUMN_GROUP;return}case a.TABLE:{this.insertionMode=d.IN_TABLE;return}case a.BODY:{this.insertionMode=d.IN_BODY;return}case a.FRAMESET:{this.insertionMode=d.IN_FRAMESET;return}case a.SELECT:{this._resetInsertionModeForSelect(e);return}case a.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case a.HTML:{this.insertionMode=this.headElement?d.AFTER_HEAD:d.BEFORE_HEAD;return}case a.TD:case a.TH:{if(e>0){this.insertionMode=d.IN_CELL;return}break}case a.HEAD:{if(e>0){this.insertionMode=d.IN_HEAD;return}break}}this.insertionMode=d.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let n=this.openElements.tagIDs[t];if(n===a.TEMPLATE)break;else if(n===a.TABLE){this.insertionMode=d.IN_SELECT_IN_TABLE;return}}this.insertionMode=d.IN_SELECT}_isElementCausesFosterParenting(e){return mr.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case a.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(t)===_.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break}case a.TABLE:{let n=this.treeAdapter.getParentNode(t);if(n)return{parent:n,beforeElement:t};return{parent:this.openElements.items[e-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();if(t.beforeElement)this.treeAdapter.insertBefore(t.parent,e,t.beforeElement);else this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){let n=this.treeAdapter.getNamespaceURI(e);return ja[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){qu(this,e);return}switch(this.insertionMode){case d.INITIAL:{it(this,e);break}case d.BEFORE_HTML:{ct(this,e);break}case d.BEFORE_HEAD:{lt(this,e);break}case d.IN_HEAD:{dt(this,e);break}case d.IN_HEAD_NO_SCRIPT:{ft(this,e);break}case d.AFTER_HEAD:{mt(this,e);break}case d.IN_BODY:case d.IN_CAPTION:case d.IN_CELL:case d.IN_TEMPLATE:{Er(this,e);break}case d.TEXT:case d.IN_SELECT:case d.IN_SELECT_IN_TABLE:{this._insertCharacters(e);break}case d.IN_TABLE:case d.IN_TABLE_BODY:case d.IN_ROW:{Mn(this,e);break}case d.IN_TABLE_TEXT:{yr(this,e);break}case d.IN_COLUMN_GROUP:{jt(this,e);break}case d.AFTER_BODY:{Kt(this,e);break}case d.AFTER_AFTER_BODY:{Yt(this,e);break}default:}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Ku(this,e);return}switch(this.insertionMode){case d.INITIAL:{it(this,e);break}case d.BEFORE_HTML:{ct(this,e);break}case d.BEFORE_HEAD:{lt(this,e);break}case d.IN_HEAD:{dt(this,e);break}case d.IN_HEAD_NO_SCRIPT:{ft(this,e);break}case d.AFTER_HEAD:{mt(this,e);break}case d.TEXT:{this._insertCharacters(e);break}case d.IN_TABLE:case d.IN_TABLE_BODY:case d.IN_ROW:{Mn(this,e);break}case d.IN_COLUMN_GROUP:{jt(this,e);break}case d.AFTER_BODY:{Kt(this,e);break}case d.AFTER_AFTER_BODY:{Yt(this,e);break}default:}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){Bn(this,e);return}switch(this.insertionMode){case d.INITIAL:case d.BEFORE_HTML:case d.BEFORE_HEAD:case d.IN_HEAD:case d.IN_HEAD_NO_SCRIPT:case d.AFTER_HEAD:case d.IN_BODY:case d.IN_TABLE:case d.IN_CAPTION:case d.IN_COLUMN_GROUP:case d.IN_TABLE_BODY:case d.IN_ROW:case d.IN_CELL:case d.IN_SELECT:case d.IN_SELECT_IN_TABLE:case d.IN_TEMPLATE:case d.IN_FRAMESET:case d.AFTER_FRAMESET:{Bn(this,e);break}case d.IN_TABLE_TEXT:{ut(this,e);break}case d.AFTER_BODY:{Ei(this,e);break}case d.AFTER_AFTER_BODY:case d.AFTER_AFTER_FRAMESET:{bi(this,e);break}default:}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case d.INITIAL:{Ti(this,e);break}case d.BEFORE_HEAD:case d.IN_HEAD:case d.IN_HEAD_NO_SCRIPT:case d.AFTER_HEAD:{this._err(e,b.misplacedDoctype);break}case d.IN_TABLE_TEXT:{ut(this,e);break}default:}}onStartTag(e){if(this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing)this._err(e,b.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){if(this.shouldProcessStartTagTokenInForeignContent(e))Wu(this,e);else this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case d.INITIAL:{it(this,e);break}case d.BEFORE_HTML:{Ai(this,e);break}case d.BEFORE_HEAD:{yi(this,e);break}case d.IN_HEAD:{ce(this,e);break}case d.IN_HEAD_NO_SCRIPT:{Si(this,e);break}case d.AFTER_HEAD:{Ii(this,e);break}case d.IN_BODY:{z(this,e);break}case d.IN_TABLE:{We(this,e);break}case d.IN_TABLE_TEXT:{ut(this,e);break}case d.IN_CAPTION:{Nu(this,e);break}case d.IN_COLUMN_GROUP:{$n(this,e);break}case d.IN_TABLE_BODY:{Wt(this,e);break}case d.IN_ROW:{Gt(this,e);break}case d.IN_CELL:{Ru(this,e);break}case d.IN_SELECT:{Sr(this,e);break}case d.IN_SELECT_IN_TABLE:{Du(this,e);break}case d.IN_TEMPLATE:{Pu(this,e);break}case d.AFTER_BODY:{Bu(this,e);break}case d.IN_FRAMESET:{Hu(this,e);break}case d.AFTER_FRAMESET:{Fu(this,e);break}case d.AFTER_AFTER_BODY:{Yu(this,e);break}case d.AFTER_AFTER_FRAMESET:{ju(this,e);break}default:}}onEndTag(e){if(this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML)Gu(this,e);else this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case d.INITIAL:{it(this,e);break}case d.BEFORE_HTML:{_i(this,e);break}case d.BEFORE_HEAD:{Ci(this,e);break}case d.IN_HEAD:{xi(this,e);break}case d.IN_HEAD_NO_SCRIPT:{Ni(this,e);break}case d.AFTER_HEAD:{Li(this,e);break}case d.IN_BODY:{qt(this,e);break}case d.TEXT:{pu(this,e);break}case d.IN_TABLE:{pt(this,e);break}case d.IN_TABLE_TEXT:{ut(this,e);break}case d.IN_CAPTION:{Iu(this,e);break}case d.IN_COLUMN_GROUP:{Lu(this,e);break}case d.IN_TABLE_BODY:{Hn(this,e);break}case d.IN_ROW:{xr(this,e);break}case d.IN_CELL:{Ou(this,e);break}case d.IN_SELECT:{Nr(this,e);break}case d.IN_SELECT_IN_TABLE:{ku(this,e);break}case d.IN_TEMPLATE:{Mu(this,e);break}case d.AFTER_BODY:{Lr(this,e);break}case d.IN_FRAMESET:{Uu(this,e);break}case d.AFTER_FRAMESET:{$u(this,e);break}case d.AFTER_AFTER_BODY:{Yt(this,e);break}default:}}onEof(e){switch(this.insertionMode){case d.INITIAL:{it(this,e);break}case d.BEFORE_HTML:{ct(this,e);break}case d.BEFORE_HEAD:{lt(this,e);break}case d.IN_HEAD:{dt(this,e);break}case d.IN_HEAD_NO_SCRIPT:{ft(this,e);break}case d.AFTER_HEAD:{mt(this,e);break}case d.IN_BODY:case d.IN_TABLE:case d.IN_CAPTION:case d.IN_COLUMN_GROUP:case d.IN_TABLE_BODY:case d.IN_ROW:case d.IN_CELL:case d.IN_SELECT:case d.IN_SELECT_IN_TABLE:{Ar(this,e);break}case d.TEXT:{Eu(this,e);break}case d.IN_TABLE_TEXT:{ut(this,e);break}case d.IN_TEMPLATE:{Ir(this,e);break}case d.AFTER_BODY:case d.IN_FRAMESET:case d.AFTER_FRAMESET:case d.AFTER_AFTER_BODY:case d.AFTER_AFTER_FRAMESET:{Fn(this,e);break}default:}}onWhitespaceCharacter(e){if(this.skipNextNewLine){if(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===i.LINE_FEED){if(e.chars.length===1)return;e.chars=e.chars.substr(1)}}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case d.IN_HEAD:case d.IN_HEAD_NO_SCRIPT:case d.AFTER_HEAD:case d.TEXT:case d.IN_COLUMN_GROUP:case d.IN_SELECT:case d.IN_SELECT_IN_TABLE:case d.IN_FRAMESET:case d.AFTER_FRAMESET:{this._insertCharacters(e);break}case d.IN_BODY:case d.IN_CAPTION:case d.IN_CELL:case d.IN_TEMPLATE:case d.AFTER_BODY:case d.AFTER_AFTER_BODY:case d.AFTER_AFTER_FRAMESET:{hr(this,e);break}case d.IN_TABLE:case d.IN_TABLE_BODY:case d.IN_ROW:{Mn(this,e);break}case d.IN_TABLE_TEXT:{_r(this,e);break}default:}}}function li(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);if(n){if(!e.openElements.contains(n.element))e.activeFormattingElements.removeEntry(n),n=null;else if(!e.openElements.hasInScope(t.tagID))n=null}else Tr(e,t);return n}function di(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){let o=e.openElements.items[r];if(o===t.element)break;if(e._isSpecialElement(o,e.openElements.tagIDs[r]))n=o}if(!n)e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t);return n}function fi(e,t,n){let r=t,o=e.openElements.getCommonAncestor(t);for(let s=0,c=o;c!==n;s++,c=o){o=e.openElements.getCommonAncestor(c);let f=e.activeFormattingElements.getElementEntry(c),h=f&&s>=ui;if(!f||h){if(h)e.activeFormattingElements.removeEntry(f);e.openElements.remove(c)}else{if(c=mi(e,f),r===t)e.activeFormattingElements.bookmark=f;e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(c,r),r=c}}return r}function mi(e,t){let n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function hi(e,t,n){let r=e.treeAdapter.getTagName(t),o=Me(r);if(e._isElementCausesFosterParenting(o))e._fosterParentElement(n);else{let s=e.treeAdapter.getNamespaceURI(t);if(o===a.TEMPLATE&&s===_.HTML)t=e.treeAdapter.getTemplateContent(t);e.treeAdapter.appendChild(t,n)}}function pi(e,t,n){let r=e.treeAdapter.getNamespaceURI(n.element),{token:o}=n,s=e.treeAdapter.createElement(o.tagName,r,o.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,o),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,s,o.tagID)}function Un(e,t){for(let n=0;n<ii;n++){let r=li(e,t);if(!r)break;let o=di(e,r);if(!o)break;e.activeFormattingElements.bookmark=r;let s=fi(e,o,r.element),c=e.openElements.getCommonAncestor(r.element);if(e.treeAdapter.detachNode(s),c)hi(e,c,s);pi(e,o,r)}}function Bn(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Ei(e,t){e._appendCommentNode(t,e.openElements.items[0])}function bi(e,t){e._appendCommentNode(t,e.document)}function Fn(e,t){if(e.stopped=!0,t.location){let n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let r=e.openElements.items[0],o=e.treeAdapter.getNodeSourceCodeLocation(r);if(o&&!o.endTag){if(e._setEndLocation(r,t),e.openElements.stackTop>=1){let s=e.openElements.items[1],c=e.treeAdapter.getNodeSourceCodeLocation(s);if(c&&!c.endTag)e._setEndLocation(s,t)}}}}}function Ti(e,t){e._setDocumentType(t);let n=t.forceQuirks?ee.QUIRKS:rr(t);if(!ar(t))e._err(t,b.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=d.BEFORE_HTML}function it(e,t){e._err(t,b.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ee.QUIRKS),e.insertionMode=d.BEFORE_HTML,e._processToken(t)}function Ai(e,t){if(t.tagID===a.HTML)e._insertElement(t,_.HTML),e.insertionMode=d.BEFORE_HEAD;else ct(e,t)}function _i(e,t){let n=t.tagID;if(n===a.HTML||n===a.HEAD||n===a.BODY||n===a.BR)ct(e,t)}function ct(e,t){e._insertFakeRootElement(),e.insertionMode=d.BEFORE_HEAD,e._processToken(t)}function yi(e,t){switch(t.tagID){case a.HTML:{z(e,t);break}case a.HEAD:{e._insertElement(t,_.HTML),e.headElement=e.openElements.current,e.insertionMode=d.IN_HEAD;break}default:lt(e,t)}}function Ci(e,t){let n=t.tagID;if(n===a.HEAD||n===a.BODY||n===a.HTML||n===a.BR)lt(e,t);else e._err(t,b.endTagWithoutMatchingOpenElement)}function lt(e,t){e._insertFakeElement(E.HEAD,a.HEAD),e.headElement=e.openElements.current,e.insertionMode=d.IN_HEAD,e._processToken(t)}function ce(e,t){switch(t.tagID){case a.HTML:{z(e,t);break}case a.BASE:case a.BASEFONT:case a.BGSOUND:case a.LINK:case a.META:{e._appendElement(t,_.HTML),t.ackSelfClosing=!0;break}case a.TITLE:{e._switchToTextParsing(t,J.RCDATA);break}case a.NOSCRIPT:{if(e.options.scriptingEnabled)e._switchToTextParsing(t,J.RAWTEXT);else e._insertElement(t,_.HTML),e.insertionMode=d.IN_HEAD_NO_SCRIPT;break}case a.NOFRAMES:case a.STYLE:{e._switchToTextParsing(t,J.RAWTEXT);break}case a.SCRIPT:{e._switchToTextParsing(t,J.SCRIPT_DATA);break}case a.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=d.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(d.IN_TEMPLATE);break}case a.HEAD:{e._err(t,b.misplacedStartTagForHeadElement);break}default:dt(e,t)}}function xi(e,t){switch(t.tagID){case a.HEAD:{e.openElements.pop(),e.insertionMode=d.AFTER_HEAD;break}case a.BODY:case a.BR:case a.HTML:{dt(e,t);break}case a.TEMPLATE:{Be(e,t);break}default:e._err(t,b.endTagWithoutMatchingOpenElement)}}function Be(e,t){if(e.openElements.tmplCount>0){if(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==a.TEMPLATE)e._err(t,b.closingOfElementWithOpenChildElements);e.openElements.popUntilTagNamePopped(a.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()}else e._err(t,b.endTagWithoutMatchingOpenElement)}function dt(e,t){e.openElements.pop(),e.insertionMode=d.AFTER_HEAD,e._processToken(t)}function Si(e,t){switch(t.tagID){case a.HTML:{z(e,t);break}case a.BASEFONT:case a.BGSOUND:case a.HEAD:case a.LINK:case a.META:case a.NOFRAMES:case a.STYLE:{ce(e,t);break}case a.NOSCRIPT:{e._err(t,b.nestedNoscriptInHead);break}default:ft(e,t)}}function Ni(e,t){switch(t.tagID){case a.NOSCRIPT:{e.openElements.pop(),e.insertionMode=d.IN_HEAD;break}case a.BR:{ft(e,t);break}default:e._err(t,b.endTagWithoutMatchingOpenElement)}}function ft(e,t){let n=t.type===w.EOF?b.openElementsLeftAfterEof:b.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=d.IN_HEAD,e._processToken(t)}function Ii(e,t){switch(t.tagID){case a.HTML:{z(e,t);break}case a.BODY:{e._insertElement(t,_.HTML),e.framesetOk=!1,e.insertionMode=d.IN_BODY;break}case a.FRAMESET:{e._insertElement(t,_.HTML),e.insertionMode=d.IN_FRAMESET;break}case a.BASE:case a.BASEFONT:case a.BGSOUND:case a.LINK:case a.META:case a.NOFRAMES:case a.SCRIPT:case a.STYLE:case a.TEMPLATE:case a.TITLE:{e._err(t,b.abandonedHeadElementChild),e.openElements.push(e.headElement,a.HEAD),ce(e,t),e.openElements.remove(e.headElement);break}case a.HEAD:{e._err(t,b.misplacedStartTagForHeadElement);break}default:mt(e,t)}}function Li(e,t){switch(t.tagID){case a.BODY:case a.HTML:case a.BR:{mt(e,t);break}case a.TEMPLATE:{Be(e,t);break}default:e._err(t,b.endTagWithoutMatchingOpenElement)}}function mt(e,t){e._insertFakeElement(E.BODY,a.BODY),e.insertionMode=d.IN_BODY,Vt(e,t)}function Vt(e,t){switch(t.type){case w.CHARACTER:{Er(e,t);break}case w.WHITESPACE_CHARACTER:{hr(e,t);break}case w.COMMENT:{Bn(e,t);break}case w.START_TAG:{z(e,t);break}case w.END_TAG:{qt(e,t);break}case w.EOF:{Ar(e,t);break}default:}}function hr(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Er(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Ri(e,t){if(e.openElements.tmplCount===0)e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Oi(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();if(n&&e.openElements.tmplCount===0)e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs)}function Di(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();if(e.framesetOk&&n)e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,_.HTML),e.insertionMode=d.IN_FRAMESET}function vi(e,t){if(e.openElements.hasInButtonScope(a.P))e._closePElement();e._insertElement(t,_.HTML)}function wi(e,t){if(e.openElements.hasInButtonScope(a.P))e._closePElement();if(e.openElements.currentTagId!==void 0&&at.has(e.openElements.currentTagId))e.openElements.pop();e._insertElement(t,_.HTML)}function ki(e,t){if(e.openElements.hasInButtonScope(a.P))e._closePElement();e._insertElement(t,_.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Pi(e,t){let n=e.openElements.tmplCount>0;if(!e.formElement||n){if(e.openElements.hasInButtonScope(a.P))e._closePElement();if(e._insertElement(t,_.HTML),!n)e.formElement=e.openElements.current}}function Mi(e,t){e.framesetOk=!1;let n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){let o=e.openElements.tagIDs[r];if(n===a.LI&&o===a.LI||(n===a.DD||n===a.DT)&&(o===a.DD||o===a.DT)){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(o!==a.ADDRESS&&o!==a.DIV&&o!==a.P&&e._isSpecialElement(e.openElements.items[r],o))break}if(e.openElements.hasInButtonScope(a.P))e._closePElement();e._insertElement(t,_.HTML)}function Bi(e,t){if(e.openElements.hasInButtonScope(a.P))e._closePElement();e._insertElement(t,_.HTML),e.tokenizer.state=J.PLAINTEXT}function Hi(e,t){if(e.openElements.hasInScope(a.BUTTON))e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a.BUTTON);e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML),e.framesetOk=!1}function Ui(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(E.A);if(n)Un(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n);e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Fi(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Yi(e,t){if(e._reconstructActiveFormattingElements(),e.openElements.hasInScope(a.NOBR))Un(e,t),e._reconstructActiveFormattingElements();e._insertElement(t,_.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ji(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Ki(e,t){if(e.treeAdapter.getDocumentMode(e.document)!==ee.QUIRKS&&e.openElements.hasInButtonScope(a.P))e._closePElement();e._insertElement(t,_.HTML),e.framesetOk=!1,e.insertionMode=d.IN_TABLE}function br(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,_.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function gr(e){let t=Bt(e,ye.TYPE);return t!=null&&t.toLowerCase()===si}function Vi(e,t){if(e._reconstructActiveFormattingElements(),e._appendElement(t,_.HTML),!gr(t))e.framesetOk=!1;t.ackSelfClosing=!0}function qi(e,t){e._appendElement(t,_.HTML),t.ackSelfClosing=!0}function Wi(e,t){if(e.openElements.hasInButtonScope(a.P))e._closePElement();e._appendElement(t,_.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Gi(e,t){t.tagName=E.IMG,t.tagID=a.IMG,br(e,t)}function Qi(e,t){e._insertElement(t,_.HTML),e.skipNextNewLine=!0,e.tokenizer.state=J.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=d.TEXT}function Xi(e,t){if(e.openElements.hasInButtonScope(a.P))e._closePElement();e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,J.RAWTEXT)}function zi(e,t){e.framesetOk=!1,e._switchToTextParsing(t,J.RAWTEXT)}function dr(e,t){e._switchToTextParsing(t,J.RAWTEXT)}function Zi(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===d.IN_TABLE||e.insertionMode===d.IN_CAPTION||e.insertionMode===d.IN_TABLE_BODY||e.insertionMode===d.IN_ROW||e.insertionMode===d.IN_CELL?d.IN_SELECT_IN_TABLE:d.IN_SELECT}function eu(e,t){if(e.openElements.currentTagId===a.OPTION)e.openElements.pop();e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML)}function tu(e,t){if(e.openElements.hasInScope(a.RUBY))e.openElements.generateImpliedEndTags();e._insertElement(t,_.HTML)}function nu(e,t){if(e.openElements.hasInScope(a.RUBY))e.openElements.generateImpliedEndTagsWithExclusion(a.RTC);e._insertElement(t,_.HTML)}function au(e,t){if(e._reconstructActiveFormattingElements(),kn(t),$t(t),t.selfClosing)e._appendElement(t,_.MATHML);else e._insertElement(t,_.MATHML);t.ackSelfClosing=!0}function ru(e,t){if(e._reconstructActiveFormattingElements(),Pn(t),$t(t),t.selfClosing)e._appendElement(t,_.SVG);else e._insertElement(t,_.SVG);t.ackSelfClosing=!0}function fr(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML)}function z(e,t){switch(t.tagID){case a.I:case a.S:case a.B:case a.U:case a.EM:case a.TT:case a.BIG:case a.CODE:case a.FONT:case a.SMALL:case a.STRIKE:case a.STRONG:{Fi(e,t);break}case a.A:{Ui(e,t);break}case a.H1:case a.H2:case a.H3:case a.H4:case a.H5:case a.H6:{wi(e,t);break}case a.P:case a.DL:case a.OL:case a.UL:case a.DIV:case a.DIR:case a.NAV:case a.MAIN:case a.MENU:case a.ASIDE:case a.CENTER:case a.FIGURE:case a.FOOTER:case a.HEADER:case a.HGROUP:case a.DIALOG:case a.DETAILS:case a.ADDRESS:case a.ARTICLE:case a.SEARCH:case a.SECTION:case a.SUMMARY:case a.FIELDSET:case a.BLOCKQUOTE:case a.FIGCAPTION:{vi(e,t);break}case a.LI:case a.DD:case a.DT:{Mi(e,t);break}case a.BR:case a.IMG:case a.WBR:case a.AREA:case a.EMBED:case a.KEYGEN:{br(e,t);break}case a.HR:{Wi(e,t);break}case a.RB:case a.RTC:{tu(e,t);break}case a.RT:case a.RP:{nu(e,t);break}case a.PRE:case a.LISTING:{ki(e,t);break}case a.XMP:{Xi(e,t);break}case a.SVG:{ru(e,t);break}case a.HTML:{Ri(e,t);break}case a.BASE:case a.LINK:case a.META:case a.STYLE:case a.TITLE:case a.SCRIPT:case a.BGSOUND:case a.BASEFONT:case a.TEMPLATE:{ce(e,t);break}case a.BODY:{Oi(e,t);break}case a.FORM:{Pi(e,t);break}case a.NOBR:{Yi(e,t);break}case a.MATH:{au(e,t);break}case a.TABLE:{Ki(e,t);break}case a.INPUT:{Vi(e,t);break}case a.PARAM:case a.TRACK:case a.SOURCE:{qi(e,t);break}case a.IMAGE:{Gi(e,t);break}case a.BUTTON:{Hi(e,t);break}case a.APPLET:case a.OBJECT:case a.MARQUEE:{ji(e,t);break}case a.IFRAME:{zi(e,t);break}case a.SELECT:{Zi(e,t);break}case a.OPTION:case a.OPTGROUP:{eu(e,t);break}case a.NOEMBED:case a.NOFRAMES:{dr(e,t);break}case a.FRAMESET:{Di(e,t);break}case a.TEXTAREA:{Qi(e,t);break}case a.NOSCRIPT:{if(e.options.scriptingEnabled)dr(e,t);else fr(e,t);break}case a.PLAINTEXT:{Bi(e,t);break}case a.COL:case a.TH:case a.TD:case a.TR:case a.HEAD:case a.FRAME:case a.TBODY:case a.TFOOT:case a.THEAD:case a.CAPTION:case a.COLGROUP:break;default:fr(e,t)}}function ou(e,t){if(e.openElements.hasInScope(a.BODY)){if(e.insertionMode=d.AFTER_BODY,e.options.sourceCodeLocationInfo){let n=e.openElements.tryPeekProperlyNestedBodyElement();if(n)e._setEndLocation(n,t)}}}function su(e,t){if(e.openElements.hasInScope(a.BODY))e.insertionMode=d.AFTER_BODY,Lr(e,t)}function iu(e,t){let n=t.tagID;if(e.openElements.hasInScope(n))e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n)}function uu(e){let t=e.openElements.tmplCount>0,{formElement:n}=e;if(!t)e.formElement=null;if((n||t)&&e.openElements.hasInScope(a.FORM)){if(e.openElements.generateImpliedEndTags(),t)e.openElements.popUntilTagNamePopped(a.FORM);else if(n)e.openElements.remove(n)}}function cu(e){if(!e.openElements.hasInButtonScope(a.P))e._insertFakeElement(E.P,a.P);e._closePElement()}function lu(e){if(e.openElements.hasInListItemScope(a.LI))e.openElements.generateImpliedEndTagsWithExclusion(a.LI),e.openElements.popUntilTagNamePopped(a.LI)}function du(e,t){let n=t.tagID;if(e.openElements.hasInScope(n))e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n)}function fu(e){if(e.openElements.hasNumberedHeaderInScope())e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped()}function mu(e,t){let n=t.tagID;if(e.openElements.hasInScope(n))e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker()}function hu(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(E.BR,a.BR),e.openElements.pop(),e.framesetOk=!1}function Tr(e,t){let{tagName:n,tagID:r}=t;for(let o=e.openElements.stackTop;o>0;o--){let s=e.openElements.items[o],c=e.openElements.tagIDs[o];if(r===c&&(r!==a.UNKNOWN||e.treeAdapter.getTagName(s)===n)){if(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=o)e.openElements.shortenToLength(o);break}if(e._isSpecialElement(s,c))break}}function qt(e,t){switch(t.tagID){case a.A:case a.B:case a.I:case a.S:case a.U:case a.EM:case a.TT:case a.BIG:case a.CODE:case a.FONT:case a.NOBR:case a.SMALL:case a.STRIKE:case a.STRONG:{Un(e,t);break}case a.P:{cu(e);break}case a.DL:case a.UL:case a.OL:case a.DIR:case a.DIV:case a.NAV:case a.PRE:case a.MAIN:case a.MENU:case a.ASIDE:case a.BUTTON:case a.CENTER:case a.FIGURE:case a.FOOTER:case a.HEADER:case a.HGROUP:case a.DIALOG:case a.ADDRESS:case a.ARTICLE:case a.DETAILS:case a.SEARCH:case a.SECTION:case a.SUMMARY:case a.LISTING:case a.FIELDSET:case a.BLOCKQUOTE:case a.FIGCAPTION:{iu(e,t);break}case a.LI:{lu(e);break}case a.DD:case a.DT:{du(e,t);break}case a.H1:case a.H2:case a.H3:case a.H4:case a.H5:case a.H6:{fu(e);break}case a.BR:{hu(e);break}case a.BODY:{ou(e,t);break}case a.HTML:{su(e,t);break}case a.FORM:{uu(e);break}case a.APPLET:case a.OBJECT:case a.MARQUEE:{mu(e,t);break}case a.TEMPLATE:{Be(e,t);break}default:Tr(e,t)}}function Ar(e,t){if(e.tmplInsertionModeStack.length>0)Ir(e,t);else Fn(e,t)}function pu(e,t){var n;if(t.tagID===a.SCRIPT)(n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current);e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Eu(e,t){e._err(t,b.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Mn(e,t){if(e.openElements.currentTagId!==void 0&&mr.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=d.IN_TABLE_TEXT,t.type){case w.CHARACTER:{yr(e,t);break}case w.WHITESPACE_CHARACTER:{_r(e,t);break}}else bt(e,t)}function bu(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,_.HTML),e.insertionMode=d.IN_CAPTION}function gu(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,_.HTML),e.insertionMode=d.IN_COLUMN_GROUP}function Tu(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(E.COLGROUP,a.COLGROUP),e.insertionMode=d.IN_COLUMN_GROUP,$n(e,t)}function Au(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,_.HTML),e.insertionMode=d.IN_TABLE_BODY}function _u(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(E.TBODY,a.TBODY),e.insertionMode=d.IN_TABLE_BODY,Wt(e,t)}function Cu(e,t){if(e.openElements.hasInTableScope(a.TABLE))e.openElements.popUntilTagNamePopped(a.TABLE),e._resetInsertionMode(),e._processStartTag(t)}function xu(e,t){if(gr(t))e._appendElement(t,_.HTML);else bt(e,t);t.ackSelfClosing=!0}function Su(e,t){if(!e.formElement&&e.openElements.tmplCount===0)e._insertElement(t,_.HTML),e.formElement=e.openElements.current,e.openElements.pop()}function We(e,t){switch(t.tagID){case a.TD:case a.TH:case a.TR:{_u(e,t);break}case a.STYLE:case a.SCRIPT:case a.TEMPLATE:{ce(e,t);break}case a.COL:{Tu(e,t);break}case a.FORM:{Su(e,t);break}case a.TABLE:{Cu(e,t);break}case a.TBODY:case a.TFOOT:case a.THEAD:{Au(e,t);break}case a.INPUT:{xu(e,t);break}case a.CAPTION:{bu(e,t);break}case a.COLGROUP:{gu(e,t);break}default:bt(e,t)}}function pt(e,t){switch(t.tagID){case a.TABLE:{if(e.openElements.hasInTableScope(a.TABLE))e.openElements.popUntilTagNamePopped(a.TABLE),e._resetInsertionMode();break}case a.TEMPLATE:{Be(e,t);break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:case a.TBODY:case a.TD:case a.TFOOT:case a.TH:case a.THEAD:case a.TR:break;default:bt(e,t)}}function bt(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Vt(e,t),e.fosterParentingEnabled=n}function _r(e,t){e.pendingCharacterTokens.push(t)}function yr(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function ut(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)bt(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}var Cr=new Set([a.CAPTION,a.COL,a.COLGROUP,a.TBODY,a.TD,a.TFOOT,a.TH,a.THEAD,a.TR]);function Nu(e,t){let n=t.tagID;if(Cr.has(n)){if(e.openElements.hasInTableScope(a.CAPTION))e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=d.IN_TABLE,We(e,t)}else z(e,t)}function Iu(e,t){let n=t.tagID;switch(n){case a.CAPTION:case a.TABLE:{if(e.openElements.hasInTableScope(a.CAPTION)){if(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=d.IN_TABLE,n===a.TABLE)pt(e,t)}break}case a.BODY:case a.COL:case a.COLGROUP:case a.HTML:case a.TBODY:case a.TD:case a.TFOOT:case a.TH:case a.THEAD:case a.TR:break;default:qt(e,t)}}function $n(e,t){switch(t.tagID){case a.HTML:{z(e,t);break}case a.COL:{e._appendElement(t,_.HTML),t.ackSelfClosing=!0;break}case a.TEMPLATE:{ce(e,t);break}default:jt(e,t)}}function Lu(e,t){switch(t.tagID){case a.COLGROUP:{if(e.openElements.currentTagId===a.COLGROUP)e.openElements.pop(),e.insertionMode=d.IN_TABLE;break}case a.TEMPLATE:{Be(e,t);break}case a.COL:break;default:jt(e,t)}}function jt(e,t){if(e.openElements.currentTagId===a.COLGROUP)e.openElements.pop(),e.insertionMode=d.IN_TABLE,e._processToken(t)}function Wt(e,t){switch(t.tagID){case a.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,_.HTML),e.insertionMode=d.IN_ROW;break}case a.TH:case a.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(E.TR,a.TR),e.insertionMode=d.IN_ROW,Gt(e,t);break}case a.CAPTION:case a.COL:case a.COLGROUP:case a.TBODY:case a.TFOOT:case a.THEAD:{if(e.openElements.hasTableBodyContextInTableScope())e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=d.IN_TABLE,We(e,t);break}default:We(e,t)}}function Hn(e,t){let n=t.tagID;switch(t.tagID){case a.TBODY:case a.TFOOT:case a.THEAD:{if(e.openElements.hasInTableScope(n))e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=d.IN_TABLE;break}case a.TABLE:{if(e.openElements.hasTableBodyContextInTableScope())e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=d.IN_TABLE,pt(e,t);break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:case a.TD:case a.TH:case a.TR:break;default:pt(e,t)}}function Gt(e,t){switch(t.tagID){case a.TH:case a.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,_.HTML),e.insertionMode=d.IN_CELL,e.activeFormattingElements.insertMarker();break}case a.CAPTION:case a.COL:case a.COLGROUP:case a.TBODY:case a.TFOOT:case a.THEAD:case a.TR:{if(e.openElements.hasInTableScope(a.TR))e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=d.IN_TABLE_BODY,Wt(e,t);break}default:We(e,t)}}function xr(e,t){switch(t.tagID){case a.TR:{if(e.openElements.hasInTableScope(a.TR))e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=d.IN_TABLE_BODY;break}case a.TABLE:{if(e.openElements.hasInTableScope(a.TR))e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=d.IN_TABLE_BODY,Hn(e,t);break}case a.TBODY:case a.TFOOT:case a.THEAD:{if(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(a.TR))e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=d.IN_TABLE_BODY,Hn(e,t);break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:case a.TD:case a.TH:break;default:pt(e,t)}}function Ru(e,t){let n=t.tagID;if(Cr.has(n)){if(e.openElements.hasInTableScope(a.TD)||e.openElements.hasInTableScope(a.TH))e._closeTableCell(),Gt(e,t)}else z(e,t)}function Ou(e,t){let n=t.tagID;switch(n){case a.TD:case a.TH:{if(e.openElements.hasInTableScope(n))e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=d.IN_ROW;break}case a.TABLE:case a.TBODY:case a.TFOOT:case a.THEAD:case a.TR:{if(e.openElements.hasInTableScope(n))e._closeTableCell(),xr(e,t);break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:break;default:qt(e,t)}}function Sr(e,t){switch(t.tagID){case a.HTML:{z(e,t);break}case a.OPTION:{if(e.openElements.currentTagId===a.OPTION)e.openElements.pop();e._insertElement(t,_.HTML);break}case a.OPTGROUP:{if(e.openElements.currentTagId===a.OPTION)e.openElements.pop();if(e.openElements.currentTagId===a.OPTGROUP)e.openElements.pop();e._insertElement(t,_.HTML);break}case a.HR:{if(e.openElements.currentTagId===a.OPTION)e.openElements.pop();if(e.openElements.currentTagId===a.OPTGROUP)e.openElements.pop();e._appendElement(t,_.HTML),t.ackSelfClosing=!0;break}case a.INPUT:case a.KEYGEN:case a.TEXTAREA:case a.SELECT:{if(e.openElements.hasInSelectScope(a.SELECT)){if(e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode(),t.tagID!==a.SELECT)e._processStartTag(t)}break}case a.SCRIPT:case a.TEMPLATE:{ce(e,t);break}default:}}function Nr(e,t){switch(t.tagID){case a.OPTGROUP:{if(e.openElements.stackTop>0&&e.openElements.currentTagId===a.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===a.OPTGROUP)e.openElements.pop();if(e.openElements.currentTagId===a.OPTGROUP)e.openElements.pop();break}case a.OPTION:{if(e.openElements.currentTagId===a.OPTION)e.openElements.pop();break}case a.SELECT:{if(e.openElements.hasInSelectScope(a.SELECT))e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode();break}case a.TEMPLATE:{Be(e,t);break}default:}}function Du(e,t){let n=t.tagID;if(n===a.CAPTION||n===a.TABLE||n===a.TBODY||n===a.TFOOT||n===a.THEAD||n===a.TR||n===a.TD||n===a.TH)e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode(),e._processStartTag(t);else Sr(e,t)}function ku(e,t){let n=t.tagID;if(n===a.CAPTION||n===a.TABLE||n===a.TBODY||n===a.TFOOT||n===a.THEAD||n===a.TR||n===a.TD||n===a.TH){if(e.openElements.hasInTableScope(n))e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode(),e.onEndTag(t)}else Nr(e,t)}function Pu(e,t){switch(t.tagID){case a.BASE:case a.BASEFONT:case a.BGSOUND:case a.LINK:case a.META:case a.NOFRAMES:case a.SCRIPT:case a.STYLE:case a.TEMPLATE:case a.TITLE:{ce(e,t);break}case a.CAPTION:case a.COLGROUP:case a.TBODY:case a.TFOOT:case a.THEAD:{e.tmplInsertionModeStack[0]=d.IN_TABLE,e.insertionMode=d.IN_TABLE,We(e,t);break}case a.COL:{e.tmplInsertionModeStack[0]=d.IN_COLUMN_GROUP,e.insertionMode=d.IN_COLUMN_GROUP,$n(e,t);break}case a.TR:{e.tmplInsertionModeStack[0]=d.IN_TABLE_BODY,e.insertionMode=d.IN_TABLE_BODY,Wt(e,t);break}case a.TD:case a.TH:{e.tmplInsertionModeStack[0]=d.IN_ROW,e.insertionMode=d.IN_ROW,Gt(e,t);break}default:e.tmplInsertionModeStack[0]=d.IN_BODY,e.insertionMode=d.IN_BODY,z(e,t)}}function Mu(e,t){if(t.tagID===a.TEMPLATE)Be(e,t)}function Ir(e,t){if(e.openElements.tmplCount>0)e.openElements.popUntilTagNamePopped(a.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t);else Fn(e,t)}function Bu(e,t){if(t.tagID===a.HTML)z(e,t);else Kt(e,t)}function Lr(e,t){var n;if(t.tagID===a.HTML){if(!e.fragmentContext)e.insertionMode=d.AFTER_AFTER_BODY;if(e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===a.HTML){e._setEndLocation(e.openElements.items[0],t);let r=e.openElements.items[1];if(r&&!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0?void 0:n.endTag))e._setEndLocation(r,t)}}else Kt(e,t)}function Kt(e,t){e.insertionMode=d.IN_BODY,Vt(e,t)}function Hu(e,t){switch(t.tagID){case a.HTML:{z(e,t);break}case a.FRAMESET:{e._insertElement(t,_.HTML);break}case a.FRAME:{e._appendElement(t,_.HTML),t.ackSelfClosing=!0;break}case a.NOFRAMES:{ce(e,t);break}default:}}function Uu(e,t){if(t.tagID===a.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()){if(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==a.FRAMESET)e.insertionMode=d.AFTER_FRAMESET}}function Fu(e,t){switch(t.tagID){case a.HTML:{z(e,t);break}case a.NOFRAMES:{ce(e,t);break}default:}}function $u(e,t){if(t.tagID===a.HTML)e.insertionMode=d.AFTER_AFTER_FRAMESET}function Yu(e,t){if(t.tagID===a.HTML)z(e,t);else Yt(e,t)}function Yt(e,t){e.insertionMode=d.IN_BODY,Vt(e,t)}function ju(e,t){switch(t.tagID){case a.HTML:{z(e,t);break}case a.NOFRAMES:{ce(e,t);break}default:}}function Ku(e,t){t.chars=H,e._insertCharacters(t)}function qu(e,t){e._insertCharacters(t),e.framesetOk=!1}function Rr(e){while(e.treeAdapter.getNamespaceURI(e.openElements.current)!==_.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current))e.openElements.pop()}function Wu(e,t){if(sr(t))Rr(e),e._startTagOutsideForeignContent(t);else{let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);if(r===_.MATHML)kn(t);else if(r===_.SVG)ir(t),Pn(t);if($t(t),t.selfClosing)e._appendElement(t,r);else e._insertElement(t,r);t.ackSelfClosing=!0}}function Gu(e,t){if(t.tagID===a.P||t.tagID===a.BR){Rr(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){let r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===_.HTML){e._endTagOutsideForeignContent(t);break}let o=e.treeAdapter.getTagName(r);if(o.toLowerCase()===t.tagName){t.tagName=o,e.openElements.shortenToLength(n);break}}}var Uf=new Set([E.AREA,E.BASE,E.BASEFONT,E.BGSOUND,E.BR,E.COL,E.EMBED,E.FRAME,E.HR,E.IMG,E.INPUT,E.KEYGEN,E.LINK,E.META,E.PARAM,E.SOURCE,E.TRACK,E.WBR]);function Or(e,t){return Et.parse(e,t)}function Dr(e,t,n){if(typeof e==="string")n=t,t=e,e=null;let r=Et.getFragmentParser(e,n);return r.tokenizer.write(t,!0),r.getFragment()}function yu(e){if(!e||typeof e!=="object")return"";if("position"in e||"type"in e)return vr(e.position);if("start"in e||"end"in e)return vr(e);if("line"in e||"column"in e)return Yn(e);return""}function Yn(e){return wr(e&&e.line)+":"+wr(e&&e.column)}function vr(e){return Yn(e&&e.start)+"-"+Yn(e&&e.end)}function wr(e){return e&&typeof e==="number"?e:1}class j extends Error{constructor(e,t,n){super();if(typeof t==="string")n=t,t=void 0;let r="",o={},s=!1;if(t)if("line"in t&&"column"in t)o={place:t};else if("start"in t&&"end"in t)o={place:t};else if("type"in t)o={ancestors:[t],place:t.position};else o={...t};if(typeof e==="string")r=e;else if(!o.cause&&e)s=!0,r=e.message,o.cause=e;if(!o.ruleId&&!o.source&&typeof n==="string"){let f=n.indexOf(":");if(f===-1)o.ruleId=n;else o.source=n.slice(0,f),o.ruleId=n.slice(f+1)}if(!o.place&&o.ancestors&&o.ancestors){let f=o.ancestors[o.ancestors.length-1];if(f)o.place=f.position}let c=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=c?c.line:void 0,this.name=yu(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack==="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}j.prototype.file="";j.prototype.name="";j.prototype.reason="";j.prototype.message="";j.prototype.stack="";j.prototype.column=void 0;j.prototype.line=void 0;j.prototype.ancestors=void 0;j.prototype.cause=void 0;j.prototype.fatal=void 0;j.prototype.place=void 0;j.prototype.ruleId=void 0;j.prototype.source=void 0;var le={basename:Qu,dirname:Xu,extname:Ju,join:zu,sep:"/"};function Qu(e,t){if(t!==void 0&&typeof t!=="string")throw TypeError('"ext" argument must be a string');gt(e);let n=0,r=-1,o=e.length,s;if(t===void 0||t.length===0||t.length>e.length){while(o--)if(e.codePointAt(o)===47){if(s){n=o+1;break}}else if(r<0)s=!0,r=o+1;return r<0?"":e.slice(n,r)}if(t===e)return"";let c=-1,f=t.length-1;while(o--)if(e.codePointAt(o)===47){if(s){n=o+1;break}}else{if(c<0)s=!0,c=o+1;if(f>-1)if(e.codePointAt(o)===t.codePointAt(f--)){if(f<0)r=o}else f=-1,r=c}if(n===r)r=c;else if(r<0)r=e.length;return e.slice(n,r)}function Xu(e){if(gt(e),e.length===0)return".";let t=-1,n=e.length,r;while(--n)if(e.codePointAt(n)===47){if(r){t=n;break}}else if(!r)r=!0;return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Ju(e){gt(e);let t=e.length,n=-1,r=0,o=-1,s=0,c;while(t--){let f=e.codePointAt(t);if(f===47){if(c){r=t+1;break}continue}if(n<0)c=!0,n=t+1;if(f===46){if(o<0)o=t;else if(s!==1)s=1}else if(o>-1)s=-1}if(o<0||n<0||s===0||s===1&&o===n-1&&o===r+1)return"";return e.slice(o,n)}function zu(...e){let t=-1,n;while(++t<e.length)if(gt(e[t]),e[t])n=n===void 0?e[t]:n+"/"+e[t];return n===void 0?".":Zu(n)}function Zu(e){gt(e);let t=e.codePointAt(0)===47,n=ec(e,!t);if(n.length===0&&!t)n=".";if(n.length>0&&e.codePointAt(e.length-1)===47)n+="/";return t?"/"+n:n}function ec(e,t){let n="",r=0,o=-1,s=0,c=-1,f,h;while(++c<=e.length){if(c<e.length)f=e.codePointAt(c);else if(f===47)break;else f=47;if(f===47){if(o===c-1||s===1);else if(o!==c-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(h=n.lastIndexOf("/"),h!==n.length-1){if(h<0)n="",r=0;else n=n.slice(0,h),r=n.length-1-n.lastIndexOf("/");o=c,s=0;continue}}else if(n.length>0){n="",r=0,o=c,s=0;continue}}if(t)n=n.length>0?n+"/..":"..",r=2}else{if(n.length>0)n+="/"+e.slice(o+1,c);else n=e.slice(o+1,c);r=c-o-1}o=c,s=0}else if(f===46&&s>-1)s++;else s=-1}return n}function gt(e){if(typeof e!=="string")throw TypeError("Path must be a string. Received "+JSON.stringify(e))}var kr={cwd:tc};function tc(){return"/"}function Ge(e){return Boolean(e!==null&&typeof e==="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Pr(e){if(typeof e==="string")e=new URL(e);else if(!Ge(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){let t=TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return nc(e)}function nc(e){if(e.hostname!==""){let r=TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}let t=e.pathname,n=-1;while(++n<t.length)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let r=t.codePointAt(n+2);if(r===70||r===102){let o=TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}var jn=["history","path","basename","stem","extname","dirname"];class Vh{constructor(e){let t;if(!e)t={};else if(Ge(e))t={path:e};else if(typeof e==="string"||ac(e))t={value:e};else t=e;this.cwd="cwd"in t?"":kr.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;while(++n<jn.length){let o=jn[n];if(o in t&&t[o]!==void 0&&t[o]!==null)this[o]=o==="history"?[...t[o]]:t[o]}let r;for(r in t)if(!jn.includes(r))this[r]=t[r]}get basename(){return typeof this.path==="string"?le.basename(this.path):void 0}set basename(e){Vn(e,"basename"),Kn(e,"basename"),this.path=le.join(this.dirname||"",e)}get dirname(){return typeof this.path==="string"?le.dirname(this.path):void 0}set dirname(e){Mr(this.basename,"dirname"),this.path=le.join(e||"",this.basename)}get extname(){return typeof this.path==="string"?le.extname(this.path):void 0}set extname(e){if(Kn(e,"extname"),Mr(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=le.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){if(Ge(e))e=Pr(e);if(Vn(e,"path"),this.path!==e)this.history.push(e)}get stem(){return typeof this.path==="string"?le.basename(this.path,this.extname):void 0}set stem(e){Vn(e,"stem"),Kn(e,"stem"),this.path=le.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new j(e,t,n);if(this.path)r.name=this.path+":"+r.name,r.file=this.path;return r.fatal=!1,this.messages.push(r),r}toString(e){if(this.value===void 0)return"";if(typeof this.value==="string")return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function Kn(e,t){if(e&&e.includes(le.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+le.sep+"`")}function Vn(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function Mr(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function ac(e){return Boolean(e&&typeof e==="object"&&"byteLength"in e&&"byteOffset"in e)}var Br={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `-->` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:"Unexpected too big numeric character reference",description:"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},closingOfElementWithOpenChildElements:{reason:"Unexpected closing tag with open child elements",description:"Unexpectedly closing tag. Expected other tags to be closed first",url:!1},controlCharacterInInputStream:{reason:"Unexpected control character",description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:"Unexpected control character reference",description:"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:"Unexpected duplicate attribute",description:"Unexpectedly double attribute. Expected attributes to occur only once"},endTagWithAttributes:{reason:"Unexpected attribute on closing tag",description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:"Unexpected slash at end of closing tag",description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:"Unexpected unopened end tag",description:"Unexpected end tag. Expected no end tag or another end tag",url:!1},eofBeforeTagName:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected tag name instead"},eofInCdata:{reason:"Unexpected end of file in CDATA",description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:"Unexpected end of file in comment",description:"Unexpected end of file. Expected `-->` to close the comment"},eofInDoctype:{reason:"Unexpected end of file in doctype",description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:"Unexpected end of file in element that can only contain text",description:"Unexpected end of file. Expected text or a closing tag",url:!1},eofInScriptHtmlCommentLikeText:{reason:"Unexpected end of file in comment inside script",description:"Unexpected end of file. Expected `-->` to close the comment"},eofInTag:{reason:"Unexpected end of file in tag",description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:"Incorrectly closed comment",description:"Unexpected `%c-1`. Expected `-->` to close the comment"},incorrectlyOpenedComment:{reason:"Incorrectly opened comment",description:"Unexpected `%c`. Expected `<!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:"Invalid sequence after doctype name",description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:"Invalid first character in tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:"Misplaced doctype",description:"Unexpected doctype. Expected doctype before head",url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:"Missing attribute value",description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:"Missing doctype before other content",description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:"Missing doctype name",description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:"Missing public identifier in doctype",description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:"Missing system identifier in doctype",description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:"Missing name in end tag",description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:"Missing quote before public identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:"Missing quote before system identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:"Missing semicolon after character reference",description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:"Missing whitespace after public identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:"Missing whitespace after system identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:"Missing whitespace before doctype name",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:"Missing whitespace between attributes",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:"Missing whitespace between public and system identifiers in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:"Unexpected nested comment",description:"Unexpected `<!--`. Expected `-->`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:"Unexpected non-conforming doctype declaration",description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:"Unexpected trailing slash on start tag of non-void element",description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:"Unexpected noncharacter code point referenced by character reference",description:"Unexpected code point. Do not use noncharacters in HTML"},noncharacterInInputStream:{reason:"Unexpected noncharacter character",description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:"Unexpected NULL character referenced by character reference",description:"Unexpected code point. Do not use NULL characters in HTML"},openElementsLeftAfterEof:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected closing tag instead",url:!1},surrogateCharacterReference:{reason:"Unexpected surrogate character referenced by character reference",description:"Unexpected code point. Do not use lone surrogate characters in HTML"},surrogateInInputStream:{reason:"Unexpected surrogate character",description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:"Invalid character after system identifier in doctype",description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:"Unexpected character in attribute name",description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:"Unexpected character in unquoted attribute value",description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:"Unexpected equals sign before attribute name",description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:"Unexpected NULL character",description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:"Unexpected question mark instead of tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:"Unexpected slash in tag",description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:"Unexpected unknown named character reference",description:"Unexpected character reference. Expected known named character references"}};var rc="https://html.spec.whatwg.org/multipage/parsing.html#parse-error-",oc=/-[a-z]/g,sc=/%c(?:([-+])(\d+))?/g,ic=/%x/g,uc={2:!0,1:!1,0:null},lc={};function Wn(e,t){let n=t||lc,r=n.onerror,o=e instanceof Vh?e:new Vh(e),s=n.fragment?Dr:Or,c=String(o),f=s(c,{sourceCodeLocationInfo:!0,onParseError:n.onerror?h:null,scriptingEnabled:!1});return xn(f,{file:o,space:n.space,verbose:n.verbose});function h(A){let S=A.code,g=dc(S),N=n[g],O=N===null||N===void 0?!0:N,L=typeof O==="number"?O:O?1:0;if(L){let B=Br[g];gi(B,"expected known error from `parse5`");let Y=new j(P(B.reason),{place:{start:{line:A.startLine,column:A.startCol,offset:A.startOffset},end:{line:A.endLine,column:A.endCol,offset:A.endOffset}},ruleId:S,source:"hast-util-from-html"});if(o.path)Y.file=o.path,Y.name=o.path+":"+Y.name;Y.fatal=uc[L],Y.note=P(B.description),Y.url=B.url===!1?void 0:rc+S,gi(r,"`internalOnerror` is not passed if `onerror` is not set"),r(Y)}function P(B){return B.replace(sc,Y).replace(ic,Se);function Y(ae,X,fe){let je=(fe?Number.parseInt(fe,10):0)*(X==="-"?-1:1),et=c.charAt(A.startOffset+je);return mc(et)}function Se(){return hc(c.charCodeAt(A.startOffset))}}}}function dc(e){return e.replace(oc,fc)}function fc(e){return e.charAt(1).toUpperCase()}function mc(e){return e==="`"?"` ` `":e}function hc(e){return"0x"+e.toString(16).toUpperCase()}var pc=/[ \t\n\f\r]/g;function rd(e){return typeof e==="object"?e.type==="text"?Hr(e.value):!1:Hr(e)}function Hr(e){return e.replace(pc,"")===""}function Ur(e){let t=Wn(e,{fragment:!0});return Fr(t.children)}function Fr(e){let t=[];for(let n of e){let r=Ec(n);if(r!=null)t.push(r)}return t}function Ec(e){if(e.type==="text"){if(rd(e))return null;return e.value??null}if(e.type==="element"){let t={tagName:e.tagName};if(e.properties&&Object.keys(e.properties).length>0){let{style:r,attrs:o}=bc(e.properties);if(Object.keys(o).length>0)t.attributes=o;if(Object.keys(r).length>0)t.style=r}let n=e.children?Fr(e.children):[];if(n.length===1&&typeof n[0]==="string")[t.textContent]=n;else if(n.length>0)t.children=n;return t}return null}function bc(e){let t={},n={};for(let[r,o]of Object.entries(e)){if(o===!1||o===void 0||o===null)continue;let s=nd(id,r),c=s.attribute;if(c==="style"&&typeof o==="string"){gc(o,n);continue}if(o===!0)t[c]="";else if(Array.isArray(o))t[c]=o.join(s.commaSeparated?", ":" ");else t[c]=String(o)}return{attrs:t,style:n}}function gc(e,t){for(let n of e.split(";")){let r=n.indexOf(":");if(r===-1)continue;let o=n.slice(0,r).trim(),s=n.slice(r+1).trim();if(o&&s)t[o]=s}}var $r=["mod","ctrl","alt","shift"],Yr={mod:"mod",cmd:"mod",command:"mod",meta:"mod",super:"mod",ctrl:"ctrl",control:"ctrl",alt:"alt",opt:"alt",option:"alt",shift:"shift"},jr={up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright",esc:"escape",space:" ",spacebar:" ",del:"delete",plus:"=",return:"enter"},Tc={mod:"⌘",ctrl:"⌃",alt:"⌥",shift:"⇧"},Ac={mod:"Ctrl",ctrl:"Ctrl",alt:"Alt",shift:"Shift"},_c={arrowup:"↑",arrowdown:"↓",arrowleft:"←",arrowright:"→"," ":"Space",escape:"Esc",enter:"Enter",tab:"Tab",delete:"Delete",backspace:"Backspace"};function Gy(e){let t={mod:!1,ctrl:!1,alt:!1,shift:!1,key:""},n=e.split("+");for(let[r,o]of n.entries()){if(o===""){if(r>0&&n[r-1]==="")t.key="+";continue}let s=o.trim(),c=s===""?" ":s.toLowerCase(),f=Yr[c];if(f){t[f]=!0;continue}t.key=jr[c]??c}if(!t.key)throw Error(`keybinding "${e}" has no key — a chord needs more than modifiers`);return t}function Kr(e){return[...$r.filter((n)=>e[n]),e.key].join("+")}function td(e){return Kr(Gy(e))}function yc(e=globalThis.navigator??{}){return/mac/i.test(e.platform??e.userAgent??"")}function Cc(e){return/^Digit(\d)$/.exec(e??"")?.[1]}function Ky(e,t){let n=Cc(e.code)??e.key.toLowerCase();if(Yr[n])return"";let r={mod:t?e.metaKey:e.ctrlKey,ctrl:t?e.ctrlKey:!1,alt:e.altKey,shift:e.shiftKey,key:jr[n]??n};return Kr(r)}function Fg(e,t){let n=Gy(e),r=$r.filter((s)=>n[s]),o=_c[n.key]??(n.key.length===1?n.key.toUpperCase():n.key.charAt(0).toUpperCase()+n.key.slice(1));return t?r.map((s)=>Tc[s]).join("")+o:[...r.map((s)=>Ac[s]),o].join("+")}class Vr extends Error{chord;scope;existingId;incomingId;constructor(e,t,n,r){super(`keybinding conflict: "${e}" in scope "${t}" is already bound to "${n}"; "${r}" cannot claim it. Rebind one, or move one to a narrower keyScope.`);this.name="KeybindingConflictError",this.chord=e,this.scope=t,this.existingId=n,this.incomingId=r}}var Sc=["palette"],Nc=["global",...fT.filter((e)=>e!=="global"&&e!=="palette")];function _S(e){if(e==="palette")return Sc;if(e==="global")return Nc;return[e,"global"]}function qr(e={}){let t=e.mac??yc(),n=new Map,r=new Map,o=new Map,s=new Map,c=new Set;function f(g){let N=g.keybinding;if(!N)return[];return(typeof N==="string"?[N]:[...N]).map((O)=>td(O))}function h(g){let N=n.get(g);if(!N)N=new Map,n.set(g,N);return N}function A(g,N){let O=o.get(g);if(!O)return;let L=s.get(g),P=L===void 0?"default":"override",B=L??O.chords,Y=h(O.scope);if(N)for(let ae of B){let X=Y.get(ae);if(X&&X.id!==g&&X.source==="default"&&P==="default")throw new Vr(ae,O.scope,X.id,g)}let Se=[];for(let ae of B){let X=Y.get(ae);if(X&&X.id!==g){if(P==="default")continue;r.set(X.id,(r.get(X.id)??[]).filter((fe)=>fe!==ae))}Y.set(ae,{id:g,source:P}),Se.push(ae)}r.set(g,Se)}function S(){n.clear(),r.clear();for(let g of o.keys())if(s.has(g))A(g,!1);for(let g of o.keys())if(!s.has(g))A(g,!1)}return{mac:t,format(g){return Fg(g,t)},add(g){let N=g.keyScope??"global";o.set(g.id,{chords:f(g),scope:N});try{A(g.id,!0)}catch(O){throw o.delete(g.id),O}},remove(g){o.delete(g),S()},bindingsFor(g){return r.get(g)??[]},declaredFor(g){return o.get(g)?.chords??[]},setOverrides(g){s=new Map([...g].map(([N,O])=>[N,O.map((L)=>td(L))])),S();for(let N of c)N()},onChange(g){return c.add(g),()=>c.delete(g)},overrides(){return new Map(s)},formatBinding(g){let N=r.get(g)?.[0];return N===void 0?void 0:Fg(N,t)},resolveChord(g,N){let O=td(g),L=N.find((B)=>n.get(B)?.has(O)),P=L===void 0?void 0:n.get(L)?.get(O);return L===void 0||P===void 0?void 0:{chord:O,commandId:P.id,scope:L}},resolveEvent(g,N){let O=Ky(g,t);return O===""?void 0:this.resolveChord(O,N)},entries(){let g=[];for(let[N,O]of n)for(let[L,P]of O)g.push({chord:L,commandId:P.id,scope:N});return g}}}function CS(e,t){let n=new Set,r=[];for(let o of e.entries()){let s=t.find((f)=>f===o.scope);if(s===void 0)continue;let c=`${s} ${o.chord}`;if(n.has(c))continue;n.add(c),r.push({chord:o.chord,scope:s})}return r}var Ic=/^[a-z][a-z\d]*(\.[a-zA-Z\d]+)+$/,Rc=/^[a-z][a-z0-9_]*$/;class Wr extends Error{commandId;requires;constructor(e,t){super(Gr(e,t));this.name="CommandUnavailableError",this.commandId=e,this.requires=t}}var Gn="a different studio state";function Gr(e,t){return`Command "${e}" is not available right now — it requires ${t}.`}function Oc(e,t){let n=e.aiTool;if(!n)return;if(!Rc.test(n.name))throw Error(`command "${e.id}" aiTool name "${n.name}" is not snake_case`);let r=t.get(n.name);if(r!==void 0)throw Error(`command "${e.id}" aiTool name "${n.name}" is already projected by "${r}"`);if(typeof n.report!=="function")throw TypeError(`command "${e.id}" declares aiTool without a report: a tool that can only say "done" is refused`);if(e.level==="application")throw Error(`command "${e.id}" is application-level and cannot project to the assistant: an application verb acts on the editor, which the model cannot see`);let o=e.args?.properties;if(e.level==="selection"&&o&&Object.hasOwn(o,"paths"))throw Error(`command "${e.id}" is selection-level and may not declare "paths": the assistant supplies it`);if((e.when||e.enablement)&&!e.requires)throw Error(`command "${e.id}" projects to the assistant but has no requires sentence; "${Gn}" is not a refusal a model can act on`)}function Lf(e){let t=new Map,n=qr(e.mac===void 0?{}:{mac:e.mac}),r=new Map;function o(h){let A=t.get(h);if(!A)throw Error(`unknown command "${h}"`);return A}function s(h,A){return h.when?.(A)??!0}function c(h,A){if(!s(h,A))return!1;return h.enablement?.(A)??!0}let f={register(h){if(!Ic.test(h.id))throw Error(`invalid command id "${h.id}" — ids are "<category>.<verb>", `+'e.g. "selection.duplicate" or "view.toggleDock.right"');if(t.has(h.id))throw Error(`duplicate command id "${h.id}" — a capability has exactly one definition site`);if(!h.title)throw Error(`command "${h.id}" has no title — the record is where actions are named`);let A=gT(h);if(A.length>0)throw Error(`command "${h.id}" ${A[0].message}`);if(Oc(h,r),n.add(h),t.set(h.id,h),h.aiTool)r.set(h.aiTool.name,h.id)},registerAll(h){for(let A of h)f.register(A)},get(h){return t.get(h)},list(){return[...t.values()]},visible(){let h=e.getContext();return[...t.values()].filter((A)=>s(A,h))},forPlacement(h){let A=e.getContext();return[...t.values()].filter((S)=>(S.menus??["palette"]).includes(h)&&s(S,A)).toSorted((S,g)=>(S.group??"").localeCompare(g.group??"")||S.title.localeCompare(g.title))},isVisible(h){return s(o(h),e.getContext())},isEnabled(h){return c(o(h),e.getContext())},disabledReason(h){let A=o(h),S=e.getContext();return c(A,S)?void 0:A.requires??Gn},refusalMessage(h){let A=f.disabledReason(h);return A===void 0?void 0:Gr(h,A)},run(h,A={}){let S=o(h),g=e.getContext();if(!c(S,g))throw new Wr(h,S.requires??Gn);let N=S.args?GL(h,S.args,A):A;return S.run(g,N)},keymap:n,handleKeyEvent(h,A){let S;for(let g of A){let N=n.resolveEvent(h,[g]);if(N&&f.isVisible(N.commandId)){S=N;break}}if(!S)return;if(!f.isEnabled(S.commandId))return S.commandId;return on(f,S.commandId,void 0,"Keyboard"),S.commandId},context:e.getContext};return f}var Dc=3,vc=30;function Qt(e){let t=cc(e),n=Nf(t);if(t===null||t===void 0||typeof t==="object")return n;let r=typeof t==="string"?t.length>24?`"${t.slice(0,24)}…"`:`"${t}"`:String(t);return`${n} · ${r}`}function Qn(e,t,n,r,o){if(r>=Dc)return;let s=cc(e);if(s===null||s===void 0||typeof s!=="object")return;if(Array.isArray(s)){let f=`${t}.length`;o.push({category:n,hint:`number · ${s.length}`,label:f,token:f});return}let c=Object.keys(s).slice(0,vc);for(let f of c){if(f.startsWith("$"))continue;let h=s[f],A=`${t}.${f}`;o.push({category:n,hint:Qt(h),label:A,token:A}),Qn(h,A,n,r+1,o)}}function Qr(e,t,n=null){let r=[],o=e??{},s=t??{};for(let[c,f]of Object.entries(o)){if(c.startsWith("$"))continue;let h=Fa(f);if(h==="function")continue;let A=s[c],S=`state.${c}`;r.push({category:h,hint:Qt(A),label:S,token:S}),Qn(A,S,h,0,r)}if(n){let c=cc(n.$map);if(c&&typeof c==="object")r.push({category:"repeater",hint:Qt(c.item),label:"item",token:"item"}),Qn(c.item,"item","repeater",0,r),r.push({category:"repeater",hint:Qt(c.index),label:"index",token:"index"})}return r}function Xr(e){let t=["item","index",...e],n=new Set,r=[];for(let o of t){if(!o||n.has(o))continue;n.add(o),r.push({category:"repeater",hint:"",label:o,token:o})}return r}var kc=50;function qy(e,t){if(!Array.isArray(t)||t.length===0)return null;let n=t.lastIndexOf("map");if(n<=0)return null;let r=K(e,t.slice(0,n));return r&&r.$prototype==="Array"?r:null}function Pc(e){if(!Ot(e))return null;let{$ref:t}=e;return t.startsWith("#/state/")?t.slice(8):null}function Xt(e){return e.filter((t)=>!t.startsWith("$")).slice(0,kc)}function Jr(e,t,n){let r=["item","index"],{items:o}=e,s=t??{},c=Pc(o);if(c){let f=s[c];if(f&&typeof f==="object"){if(typeof f.contentType==="string"){let L=(n?.content??{})[f.contentType]?.schema?.properties,P=[...r,"item.id","item.body"];if(L&&typeof L==="object")for(let B of Xt(Object.keys(L)))P.push(`item.data.${B}`);return P}let A=f.items?.properties;if(A&&typeof A==="object")return[...r,...Xt(Object.keys(A)).map((N)=>`item.${N}`)];let S=f.default,g=Array.isArray(S)?S[0]:void 0;if(g&&typeof g==="object"&&!Array.isArray(g))return[...r,...Xt(Object.keys(g)).map((N)=>`item.${N}`)]}return r}if(Array.isArray(o)){let[f]=o;if(f&&typeof f==="object"&&!Array.isArray(f))return[...r,...Xt(Object.keys(f)).map((h)=>`item.${h}`)]}return r}var Mc=/^[a-z][a-z0-9]*(-[a-z0-9]+)+$/;async function Tf(){let e=u.value,t=Le(e?.session.selection);if(!e||!t||t.length<2)return;let n=K(e.doc.document,t);if(!n||!n.tagName)return;let r=Bc(n),o=await Fc(r);if(!o)return;let s=o.toLowerCase(),c=Hc(n);c.tagName=s;let f=`components/${s}.json`,h=xc(e.documentPath,f),A=t;if(!Hs(e,(g)=>{let N=ht(A)??[],O=_n(A),L=g;for(let B of N)L=L[B];if(!Array.isArray(L.children))L.children=[];if(L.children[O]={tagName:s},!g.$elements)g.$elements=[];if(!g.$elements.some((B)=>B&&typeof B==="object"&&("$ref"in B)&&B.$ref===h))g.$elements.push({$ref:h})}))return;try{await p().writeFile(f,pr(c,null)),await Dl();let N=wb(c);if(k.success(`Converted to <${s}>`),N)k.warn(`<${s}> has a slot problem: ${N}`,{path:f,source:"Components",tier:"problem"})}catch(g){k.error(`Could not save the <${s}> component.`,{detail:te(g),path:f,source:"Components"})}}function Bc(e){if(e.$id&&e.$id.includes("-"))return e.$id.toLowerCase();let t=(qe(e.tagName)||"div").toLowerCase();return t.includes("-")?t:`jx-${t}`}function Hc(e){let t=Ao(e);return delete t.$id,delete t.$layout,delete t.$paths,t}function Uc(e){let t=e.trim().toLowerCase();if(!t.includes("-"))return{error:"Name must contain a hyphen (e.g. my-component)",valid:!1};if(!Mc.test(t))return{error:"Lowercase letters, digits, and hyphens only",valid:!1};if(st.some((r)=>r.tagName===t))return{error:`Component <${t}> already exists`,valid:!1};return{error:"",valid:!0}}function Fc(e){return Nn("Convert to Component",{confirmLabel:"Convert",message:"Enter a hyphenated tag name for the new component.",placeholder:"my-component",validate:(t)=>Uc(t).error,value:e})}var zr={$schema:"https://jxsuite.com/schema/v1",$id:"StudioSlashMenu",$description:"The slash menu: the element-insertion list that hangs under the caret. It is a LISTBOX rather than a `jx-menu`, and that is the one thing about this surface worth knowing — the panel must not take the keyboard, because the caret it is filtering for is in the canvas (often in the iframe realm), and every character the author types after the `/` has to keep landing there. A menu owns DOM focus by contract; this panel marks its active row and leaves the caret where it was. The rows are the kit's `jx-listbox` and `jx-option`, which is what makes that expressible rather than hand-rolled: a `jx-listbox` has no tab stop and never calls `focus()`, and the highlight is ONE string — the listbox's `active`, the id its owning field points `aria-activedescendant` at — instead of a per-row comparison the field and the rows could each answer differently. When the menu is opened BY NAME rather than by a slash there is no caret to protect, so it grows a filter field of its own and that field is what carries `aria-activedescendant`.",tagName:"jx-popover",$props:{label:"Insert element",x:{$ref:"#/state/x"},y:{$ref:"#/state/y"}},children:[{tagName:"div",attributes:{part:"body"},style:{display:"flex",flexDirection:"column",minWidth:"220px",maxHeight:"320px",minHeight:"0",fontFamily:"var(--jx-font-sans)",fontSize:"var(--jx-text-md)",'& [part="filter"]':{$description:"Borderless inside a panel that already draws a frame: a second box around the field would only be a box inside a box. The keyboard ring is given back explicitly, because a reader who arrives here by Tab has nothing else to go on.",display:"block",width:"100%",boxSizing:"border-box",flex:"0 0 auto",padding:"var(--jx-space-2) var(--jx-space-3)",border:"none",borderBottom:"1px solid var(--jx-border)",outline:"none",background:"transparent",color:"inherit",font:"inherit","::placeholder":{color:"var(--jx-fg-muted)"},":focus-visible":{outline:"var(--jx-focus-ring)",outlineOffset:"-2px"}},'& [part="list"]':{$description:"One declaration, because the list is a `jx-listbox` now and the element already draws itself: the scroll, the `min-block-size: 0` that lets it, the row rules, the highlight, the group headings and the empty sentence all live in its own definition. What is left is the one thing only this panel knows — that the list is the part of the body that gives.",flex:"1"}},children:[{tagName:"div",attributes:{part:"filter-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"#/state/showFilter"},cases:{true:{tagName:"input",attributes:{part:"filter",type:"text",role:"combobox",autocomplete:"off","aria-controls":"slash-menu-listbox","aria-expanded":"${state.expanded ? 'true' : 'false'}","aria-activedescendant":"${state.activeId || null}","aria-autocomplete":"list","aria-label":"Filter elements",placeholder:"Filter…"},value:{$ref:"#/state/filter"},oninput:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/input"},value:[{$ref:"event#/target/value"}]}]}}}},{tagName:"jx-listbox",attributes:{part:"list",id:"slash-menu-listbox"},$props:{label:"Elements",active:{$ref:"#/state/activeId"}},onselect:{$ref:"#/state/pick"},children:[{tagName:"div",attributes:{part:"empty-slot",role:"none"},$switch:{$ref:"#/state/isEmpty"},cases:{true:{tagName:"div",attributes:{part:"empty"},textContent:"No matches"}}},{$prototype:"Array",items:{$ref:"#/state/rows"},key:{$ref:"$map/item/key"},map:{tagName:"jx-option",attributes:{part:"option",id:"slash-menu-option-${$map.index}",value:"${$map.item.key}",label:"${$map.item.label}",description:"${$map.item.description}"},onmouseenter:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/hover"},value:[{$ref:"$map/index"}]}]}}}]}]}]};T("slash-menu",zr);var Xn="slash-menu";function Zr(e){return e.rows[e.activeIndex]?`slash-menu-option-${e.activeIndex}`:""}function eo(e,t,n){let r=vs("popover",Xn),o=new AbortController,s=null,c=null,f=!1,h=v({activeId:Zr(e),expanded:e.rows.length>0,filter:e.filter,hover:(g)=>{t.hover(g)},input:(g)=>{t.input(g)},isEmpty:e.rows.length===0,pick:(g,N)=>{let O=String(N.detail),L=h.rows.findIndex((P)=>P.key===O);if(L!==-1)t.activateRow(L)},rows:[...e.rows],showFilter:e.showFilter,x:e.x,y:e.y}),A=(g)=>{if(f)return;if(f=!0,o.abort(),c?.dispose(),c=null,Nm("popover",Xn),g)t.dismissed()},S=(async()=>{let g=await R("slash-menu",h,r,{signal:o.signal});if(o.signal.aborted)return;if(c=g,s=g.root,s.setAttribute(rt,zt("popover",Xn)),s.addEventListener("toggle",(N)=>{if(N.newState==="closed")A(!0)}),!s.hasAttribute("popover"))await new Promise((N)=>{s.addEventListener("jx-ready",()=>N(),{once:!0})});if(o.signal.aborted)return;s.showPopover(n instanceof HTMLElement?{source:n}:void 0)})();return{close:()=>{if(f)return;if(s?.open)s.hidePopover();A(!1)},focusFilter:()=>{r.querySelector('[part="filter"]')?.focus()},host:r,ready:S,update:(g)=>{if(f)return;h.x=g.x,h.y=g.y,h.showFilter=g.showFilter,h.filter=g.filter,h.rows=[...g.rows],h.activeId=Zr(g),h.isEmpty=g.rows.length===0,h.expanded=g.rows.length>0}}}var to=[{description:"Large heading",label:"Heading 1",tag:"h1"},{description:"Medium heading",label:"Heading 2",tag:"h2"},{description:"Small heading",label:"Heading 3",tag:"h3"},{description:"Plain text",label:"Paragraph",tag:"p"},{description:"Unordered list",label:"Bulleted List",tag:"ul"},{description:"Numbered list",label:"Numbered List",tag:"ol"},{description:"Quote block",label:"Blockquote",tag:"blockquote"},{description:"Insert image",label:"Image",tag:"img"},{description:"Divider line",label:"Horizontal Rule",tag:"hr"},{description:"Button element",label:"Button",tag:"button"},{description:"Anchor link",label:"Link",tag:"a"},{description:"Preformatted code",label:"Code Block",tag:"pre"},{description:"Insert table",label:"Table",tag:"table"},{description:"Container",label:"Div",tag:"div"},{description:"Section container",label:"Section",tag:"section"}],Tt=null,Ee=0,Jn=!1,Jt="",we=[],Qe=!1,zn=null,ve=null;function Pg(e,t,n){ro(Oe(e),t,n,e)}function xS(e,t,n){ro(e,t,n)}function Yc(){return Tt?.commands||to}function no(e,t){return e?t.filter((n)=>n.label.toLowerCase().includes(e)||n.tag.toLowerCase().includes(e)):t}function ao(){let e=zn;return{activeIndex:Ee,filter:Jt,rows:we.map((t)=>({description:t.description,key:t.tag,label:t.label})),showFilter:Jn,x:e?e.left:0,y:e?e.bottom:0}}function At(){ve?.update(ao())}function ro(e,t,n,r){if(Tt=n,zn=e,we=no(t,n.commands||to),we.length===0&&!n.showFilter){vu();return}if(Ee=0,Jn=n.showFilter||!1,ve){At();return}if(Qe=!0,Jt="",document.addEventListener("keydown",io,!0),ve=eo(ao(),{activateRow:(o)=>{let s=we[o];if(s)so(s)},dismissed:jc,hover:(o)=>{Ee=o,At()},input:Kc},r??null),Jn){let o=ve;o.ready.then(()=>{if(ve===o)o.focusFilter()})}}function oo(){let e=Tt;return Qe=!1,Tt=null,zn=null,we=[],Jt="",Ee=0,document.removeEventListener("keydown",io,!0),e}function vu(){if(!Qe)return;let e=ve;ve=null;let t=oo();e?.close(),t?.onDismiss?.()}function jc(){if(!Qe)return;ve=null,oo()?.onDismiss?.()}function so(e){let t=Tt;vu(),t?.onSelect(e)}function Kc(e){Jt=e,we=no(e.toLowerCase(),Yc()),Ee=0,At()}function C_(e){if(!Qe)return;let t=we.length;if(e==="ArrowDown"){if(t===0)return;Ee=(Ee+1)%t,At()}else if(e==="ArrowUp"){if(t===0)return;Ee=(Ee-1+t)%t,At()}else if(e==="Enter"){let n=we[Ee];if(n)so(n)}else if(e==="Escape")vu()}function io(e){if(!Qe)return;if(["ArrowDown","ArrowUp","Enter","Escape"].includes(e.key))e.preventDefault(),e.stopPropagation(),C_(e.key)}var Vc={article:"Article",aside:"Aside",blockquote:"Blockquote",div:"Div",footer:"Footer",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6",header:"Header",main:"Main",nav:"Nav",ol:"Numbered List",p:"Paragraph",search:"Search",section:"Section",ul:"Bulleted List"},qc=wd.$convertGroups||{};function uo(e,t){let n=wd.$defs?.[e];if(!n?.$convertTo)return[];let r=t&&n.$convertToWhenEmpty?n.$convertToWhenEmpty:[n.$convertTo],o=new Set;for(let s of r)for(let c of qc[s]||[])if(c!==e)o.add(c);return[...o].map((s)=>({description:"",label:Vc[s]||s.charAt(0).toUpperCase()+s.slice(1),tag:s}))}var co={$schema:"https://jxsuite.com/schema/v1",$id:"StudioBlockActionBar",$description:"The floating action bar over the canvas selection (studio.md §4.4, studio-ui-guidelines.md §8.6), as a Jx document over the kit. ONE SHAPE is the whole rule this markup exists to keep: the parent selector, the element badge, the drag handle and every verb are drawn on every selection, and a control that cannot act is DISABLED rather than removed — a toolbar whose buttons move under the cursor is worse than one with a greyed button. Nothing here decides what a verb is called, whether it can act or what its chord reads: `panels/block-action-bar.ts` projects the command registry into `verbs` and `formats`, already resolved to a glyph, a name, a tooltip and a refusal, and this document draws them. The toolbar role, the roving caret and the arrow keys are `jx-action-group`'s, so no keyboard code rides along; Escape is the one key this document claims, because leaving the bar means going back to the canvas and only the host knows where that is. The drag handle is an ISLAND (studio-ui-guidelines.md §9.4): the document draws the node and `surfaces/block-action-bar.ts` attaches the pragmatic-dnd registration to it through `onNodeCreated`. Position is a DECISION measured against the selection rect, so it arrives as two numbers the flow projects — `barX` and `barY` — rather than as a layout this document could compute; the `style` object below binds them, because a style declaration may read state like any other value (spec.md §9.1).",tagName:"div",attributes:{part:"root",role:"none"},style:{$description:"The `.block-action-bar` rules that used to live in `styles/canvas.css`, re-valued onto the kit's tokens. The bar is `position: fixed` because its anchor is a rect in viewport space that crossed the iframe bridge; the layer it sits in has no clipping, which is why the host clamps it rather than letting overflow do it.\n\nThe two placement properties are declared HERE, bound to the flow's measured numbers. They used to travel as a `style` ATTRIBUTE the flow assembled into one string, on the belief that a document cannot bind a style declaration to state. It can, and always could: a reactive value on a custom property in a rule targeting the element itself is written inline under the author's own name (spec.md §9.1), which is precisely the attribute that string was hand-writing. The bar reads them by name through the ordinary cascade — the root is `display: contents`, so a custom property set on it inherits down — and `panels/block-action-bar.ts` overrides `--jx-bar-x` on the bar itself when it clamps, because a value set on an element beats one it inherits — which is also why that clamp releases its own previous write before it measures, or the bar would be pinned at the right edge for the rest of the session.",display:"contents","--jx-bar-x":"${state.barX}px","--jx-bar-y":"${state.barY}px",'& [part="bar"]':{position:"fixed",left:"var(--jx-bar-x, 0px)",top:"var(--jx-bar-y, 0px)",zIndex:"100",pointerEvents:"auto",display:"flex",alignItems:"center",gap:"2px",padding:"2px var(--jx-space-2)",background:"var(--jx-bg-panel)",border:"1px solid var(--jx-border)",borderRadius:"var(--jx-radius-sm)",boxShadow:"var(--jx-shadow-popover)",whiteSpace:"nowrap",fontSize:"var(--jx-text-xs)"},'& [part="bar"][data-offscreen]':{$description:"The anchor scrolled out of the stage. Hidden by `visibility` rather than by the `visible` switch, so the drag registration and the caret survive a scroll that will bring the anchor straight back.",visibility:"hidden"},'& [part="tools"]':{display:"flex",alignItems:"center",gap:"2px"},'& [part="tag"] > [part="control"]':{$description:"The element badge. It is a button on every selection and disabled where the tag cannot be changed — a component instance, a repeater — which is studio-ui-guidelines.md §8.6's rule applied to the one control that used to change shape.",minWidth:"0",minHeight:"0",maxWidth:"140px",padding:"0 var(--jx-space-2)",border:"none",borderRadius:"var(--jx-radius-xs)",background:"var(--jx-tag)",color:"var(--jx-accent-fg)",fontSize:"var(--jx-text-xs)",overflow:"hidden",textOverflow:"ellipsis",display:"block",":hover":{background:"var(--jx-accent)",color:"var(--jx-accent-fg)"},":disabled":{opacity:"1",background:"var(--jx-tag)",cursor:"default"}},'& [part="tag-text"]':{overflow:"hidden",textOverflow:"ellipsis",display:"block"},'& [part="drag-handle"]':{display:"inline-flex",alignItems:"center",padding:"0 var(--jx-space-2)",lineHeight:"1",color:"var(--jx-fg-dim)",cursor:"grab",opacity:"0.7",userSelect:"none",":hover":{opacity:"1"},":active":{cursor:"grabbing"}},'& [part="drag-handle"][aria-disabled="true"]':{$description:"ONE shape (studio-ui-guidelines.md §8.6): the handle is greyed on the document root, never removed — a toolbar whose controls move under the cursor is worse than one with a dead affordance.",cursor:"default",opacity:"0.3"},"& jx-divider":{height:"20px",margin:"0 2px"},'& [part="verb"][data-destructive] > [part="control"]':{color:"var(--jx-danger)"},'& [part="cmd-label"]':{$description:"A record with no icon draws its title instead of a blank button.",padding:"0 2px",fontSize:"var(--jx-text-xs)"},'& [part="format"], & [part="overflow-slot"], & [part="format-slot"]':{display:"contents"},'& [part="link"]':{display:"flex",gap:"var(--jx-space-2)",alignItems:"center",padding:"var(--jx-space-3)"},'& [part="link-field"]':{width:"200px"}},$switch:{$ref:"#/state/visible"},cases:{true:{tagName:"div",attributes:{part:"bar","data-jx-region":"overlay.menu:block-action-bar","data-offscreen":"${state.offscreen ? '' : null}"},onmousedown:{$ref:"#/state/guardFocus"},onkeydown:{$prototype:"Function",body:[{$switch:{$ref:"event#/key"},cases:{Escape:[{operator:"call",target:{$ref:"#/state/leaveBar"},value:[]},{preventDefault:!0}]}}]},children:[{tagName:"jx-action-group",attributes:{part:"tools"},$props:{selects:"none",compact:!1,label:"Block actions",orientation:"horizontal"},children:[{tagName:"jx-action-button",attributes:{part:"parent","data-command-id":"selection.selectParent"},$props:{size:"sm",quiet:!0,icon:"arrow-elbow-left-up",label:{$ref:"#/state/parentLabel"},hint:{$ref:"#/state/parentHint"},disabled:{$ref:"#/state/parentDisabled"}},onclick:{$prototype:"Function",body:[{stopPropagation:!0},{operator:"call",target:{$ref:"#/state/selectParent"},value:[]}]}},{tagName:"jx-action-button",attributes:{part:"tag"},$props:{size:"sm",quiet:!0,label:{$ref:"#/state/tagLabel"},hint:{$ref:"#/state/tagHint"},haspopup:{$ref:"#/state/tagPopup"},disabled:{$ref:"#/state/tagDisabled"}},onclick:{$ref:"#/state/openTagMenu"},children:[{tagName:"span",attributes:{part:"tag-text"},textContent:"${state.tagLabel}"}]},{tagName:"span",attributes:{part:"drag-handle",role:"button","aria-label":"Drag to reorder","aria-disabled":"${state.canDrag ? null : 'true'}",title:"${state.dragHint}"},textContent:"⠿"},{tagName:"jx-divider",$props:{orientation:"vertical"}},{$prototype:"Array",items:{$ref:"#/state/verbs"},key:{$ref:"$map/item/id"},map:{tagName:"jx-action-button",attributes:{part:"verb","data-command-id":"${$map.item.id}","data-destructive":"${$map.item.destructive ? '' : null}"},$props:{size:"sm",quiet:!0,icon:{$ref:"$map/item/icon"},label:{$ref:"$map/item/title"},hint:{$ref:"$map/item/tooltip"},disabled:{$ref:"$map/item/disabled"}},onclick:{$prototype:"Function",body:[{stopPropagation:!0},{operator:"call",target:{$ref:"#/state/run"},value:[{$ref:"$map/item/id"}]}]},children:[{tagName:"span",attributes:{part:"label-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"$map/item/hasIcon"},cases:{false:{tagName:"span",attributes:{part:"cmd-label"},textContent:"${$map.item.title}"}}}]}},{tagName:"span",attributes:{part:"overflow-slot",role:"none"},$switch:{$ref:"#/state/hasOverflow"},cases:{true:{tagName:"jx-action-button",attributes:{part:"overflow"},$props:{size:"sm",quiet:!0,icon:"dots-three-vertical",label:"More block actions",hint:"More block actions",haspopup:"menu",expanded:{$ref:"#/state/overflowOpen"}},onclick:{$ref:"#/state/openOverflow"}}}},{tagName:"span",attributes:{part:"format-slot",role:"none"},$switch:{$ref:"#/state/showFormat"},cases:{true:{tagName:"span",attributes:{part:"format",role:"none"},children:[{tagName:"jx-divider",$props:{orientation:"vertical"}},{$prototype:"Array",items:{$ref:"#/state/formats"},key:{$ref:"$map/item/id"},map:{tagName:"jx-action-button",attributes:{part:"format-button","data-command-id":"${$map.item.id}","data-tag":"${$map.item.value}"},$props:{size:"sm",quiet:!0,emphasized:!0,toggles:!0,icon:{$ref:"$map/item/icon"},label:{$ref:"$map/item/title"},hint:{$ref:"$map/item/tooltip"},selected:{$ref:"$map/item/selected"},disabled:{$ref:"$map/item/disabled"}},onclick:{$prototype:"Function",body:[{stopPropagation:!0}]},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/run"},value:[{$ref:"$map/item/id"}]}]},children:[{tagName:"span",attributes:{part:"label-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"$map/item/hasIcon"},cases:{false:{tagName:"span",attributes:{part:"cmd-label"},textContent:"${$map.item.title}"}}}]}},{tagName:"jx-action-button",attributes:{part:"insert-data","data-jx-region":"overlay.menu:block-action-bar/insertData"},$props:{size:"sm",quiet:!0,icon:"database",label:"Insert data",hint:"Insert data",haspopup:"menu"},onclick:{$ref:"#/state/openMergeTags"}}]}}}]},{tagName:"jx-popover",attributes:{part:"link"},$props:{label:"Link URL",x:{$ref:"#/state/linkX"},y:{$ref:"#/state/linkY"}},children:[{tagName:"jx-textfield",attributes:{part:"link-field"},$props:{size:"sm",type:"url",label:"Link URL",placeholder:"https://...",value:{$ref:"#/state/linkValue"}},oninput:{$ref:"#/state/linkInput"},onkeydown:{$prototype:"Function",body:[{$switch:{$ref:"event#/key"},cases:{Enter:[{operator:"call",target:{$ref:"#/state/applyLink"},value:[]},{preventDefault:!0}],Escape:[{operator:"call",target:{$ref:"#/state/closeLink"},value:[]},{preventDefault:!0},{stopPropagation:!0}]}}]}},{tagName:"jx-action-button",attributes:{part:"link-apply"},$props:{size:"sm",label:{$ref:"#/state/linkApplyLabel"}},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/applyLink"},value:[]}]},children:[{tagName:"span",textContent:"${state.linkApplyLabel}"}]},{tagName:"span",attributes:{part:"link-remove-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"#/state/linkExisting"},cases:{true:{tagName:"jx-action-button",attributes:{part:"link-remove"},$props:{size:"sm",label:"Remove"},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/removeLink"},value:[]}]},children:[{tagName:"span",textContent:"Remove"}]}}}]}]}}};T("block-action-bar",co);function Zt(){return{barX:0,barY:0,canDrag:!1,dragHint:"",formats:[],hasOverflow:!1,offscreen:!1,overflowOpen:!1,parentDisabled:!0,parentHint:"",parentLabel:"Select Parent",showFormat:!1,tagDisabled:!0,tagHint:"",tagLabel:"",tagPopup:"",verbs:[],visible:!1}}function Gc(e){let t=typeof e==="string"?void 0:e.attributes?.part;return typeof t==="string"?t:""}function Qc(e){let n=e?.$map?.item?.id;return typeof n==="string"?n:""}function lo(e,t){let n=new Map,r=null,o=null,s=null,c=null,f=!1,h=()=>{if(f=!1,s?.open)s.hidePopover()},A=v({...Zt(),applyLink:()=>{let S=A.linkValue;h(),t.applyLink(S)},closeLink:h,guardFocus:(S,g)=>{let{target:N}=g;if(N instanceof Element&&N.closest('[part="drag-handle"], [part="tag"], [part="link"]'))return;g.preventDefault()},leaveBar:()=>t.leaveBar(),linkApplyLabel:"Apply",linkExisting:!1,linkInput:(S,g)=>{let N=g.target?.value;A.linkValue=typeof N==="string"?N:""},linkValue:"",linkX:0,linkY:0,openMergeTags:(S,g)=>{g.stopPropagation(),t.openMergeTags(g.currentTarget)},openOverflow:(S,g)=>{g.stopPropagation(),t.openOverflow(g.currentTarget)},openTagMenu:(S,g)=>{g.stopPropagation(),t.openTagMenu(g.currentTarget)},removeLink:()=>{h(),t.removeLink()},run:(S)=>t.run(S),selectParent:()=>t.selectParent()});return R("block-action-bar",A,e,{onNodeCreated:(S,g,N,O)=>{if(!(S instanceof HTMLElement))return;let L=Gc(N);if(L==="bar"){r=S;return}if(L==="tools"){o=S;return}if(L==="link"){s=S;return}if(L==="link-field"){c=S;return}if(L==="drag-handle"){t.onDragHandle(S);return}let P=L==="verb"||L==="format-button"?Qc(O):"";if(P!=="")n.set(P,S)}}),{bar:()=>r?.isConnected===!0?r:null,button:(S)=>{let g=n.get(S)??null;return g?.isConnected===!0?g:null},closeLink:h,linkOpen:()=>f,openLink(S,g,N){A.linkValue=g??"",A.linkExisting=N,A.linkApplyLabel=N?"Update":"Apply",f=!0;let O=s;if(!O)return;let L=()=>{if(!f)return;let P=Oe(S);A.linkX=Math.round(P.left),A.linkY=Math.round(P.bottom),O.showPopover({source:S}),c?.focus()};if(O.hasAttribute("popover"))L();else O.addEventListener("jx-ready",L,{once:!0})},toolbar:()=>o?.isConnected===!0?o:null,update(S){if(!S.visible)h();Object.assign(A,S)}}}var ze=null;function kS(e){if(ze=e,!fo)document.addEventListener("keydown",pl),document.addEventListener("scroll",Xc,{capture:!0,passive:!0}),fo=!0}var fo=!1,Zn=!1;function Xc(e){if(!ze||gl())return;if(u.value?.session.selection.length===0)return;let t=ze.getCanvasMode();if(t!=="design"&&t!=="edit")return;if(!(e.target===document||e.target instanceof Node&&jl(e.target)!==null)||Zn)return;Zn=!0,requestAnimationFrame(()=>{Zn=!1,Jc()})}function Jc(){let e=be;if(!e||!Ce.visible){Hg();return}let t=gx(),n=t?ho(t):null;if(!n){$e({...Ce,offscreen:!0});return}$e({...Ce,barX:n.left,barY:n.top,offscreen:!1}),requestAnimationFrame(()=>{let r=e.bar();if(r)po(r)})}var ea=38;function ho(e){let t=Uo(),n=Nb(t)?.scrollContainer??t.wrap,r=n?Oe(n):null;if(r&&(e.top+e.height<r.top||e.top>r.bottom))return null;let o=r?r.top:80-ea,s=e.top-ea;if(s>=o)return{left:e.left,top:s};let c=e.top+e.height+4;return{left:e.left,top:r?Math.max(r.top,Math.min(c,r.bottom-ea)):c}}function po(e){e.style.removeProperty("--jx-bar-x");let t=Oe(e);if(t.right>window.innerWidth)e.style.setProperty("--jx-bar-x",`${Math.max(0,window.innerWidth-t.width)}px`)}function k_(){let e=(t,n,r,o)=>({category:"Edit",group:"6_format",icon:r,id:`format.${t}`,...o===void 0?{}:{keybinding:o},keyScope:"caret",level:"selection",menus:["blockbar/format","palette"],requires:"a text caret in the canvas",run:()=>{Cd({command:t})},title:n,undo:"document",when:(s)=>s.caret.inCanvas});return[e("bold","Bold","text-b","mod+b"),e("italic","Italic","text-italic","mod+i"),e("underline","Underline","text-underline","mod+u"),e("strikethrough","Strikethrough","text-strikethrough"),e("superscript","Superscript","text-superscript"),e("subscript","Subscript","text-subscript"),e("code","Code","code","mod+`"),{category:"Edit",group:"6_format",icon:"link",id:"format.link",keybinding:"mod+k",keyScope:"caret",level:"selection",menus:["blockbar/format","palette"],requires:"a text caret in the canvas",run:()=>{Tl()},title:"Link…",undo:"document",when:(t)=>t.caret.inCanvas}]}var Xe=null;function yt(){return Xe??Le(u.value?.session.selection)}function Eo(){if(Xe)return[Xe];return u.value?.session.selection??[]}function tn(e,t){let n=Xe;Xe=e;try{return t()}finally{Xe=n}}function zc(e){let t=e?.tagName,n=qe(t);return Boolean(n.includes("-")&&st.some((r)=>r.tagName===n))}function Zc(){let e=u.value,t=yt(),n=e&&t?K(e.doc.document,t):null;return Ex({caret:{active:Wa().editing,inCanvas:Wa().editing},editor:{kind:e?ha(e.session.ui.canvasMode):"none"},document:{open:Boolean(e)},selection:{count:t?1:0,isComponentInstance:zc(n),isRoot:t?ht(t)===null:!1,kind:qe(n?.tagName)}})}function ge(e=yt()){let t=u.value;if(!t||!e)return null;if(ha(t.session.ui.canvasMode)!=="canvas")return null;let n=_n(e),r=ht(e);if(typeof n!=="number"||!r)return null;let o=K(t.doc.document,r);if(!o)return null;return{index:n,parentPath:r,path:e,siblings:_o(o),tab:t}}function el(e){if(!e||typeof e!=="object")return!1;if(Sp.has((qe(e.tagName)||"div").toLowerCase()))return!1;let{children:t}=e;if(!t)return!1;if(!Array.isArray(t))return t.$prototype==="Array";return t.length===0||t.some((n)=>typeof n==="object"&&n!==null&&!ix(n,e))}function tl(){let e=ge();return e!==null&&e.index>0}function nl(){let e=ge();return e!==null&&e.index<e.siblings.length-1}function bo(){let e=ge();return e!==null&&e.index>0&&el(e.siblings[e.index-1])}function al(){let e=ge();return e!==null&&ht(e.parentPath)!==null&&typeof _n(e.parentPath)==="number"}function rl(){let e=ge();if(!e||e.index===0)return;let{index:t,parentPath:n,path:r,tab:o}=e;q(o,(s)=>pa(s,r,n,t-1)),o.session.selection=[[...n,"children",t-1]]}function ol(){let e=ge();if(!e||e.index>=e.siblings.length-1)return;let{index:t,parentPath:n,path:r,tab:o}=e;q(o,(s)=>pa(s,r,n,t+2)),o.session.selection=[[...n,"children",t+1]]}function sl(){let e=ge();if(!bo()||!e)return;let{index:t,parentPath:n,path:r,tab:o}=e,s=[...n,"children",t-1],{length:c}=_o(K(o.doc.document,s));q(o,(f)=>pa(f,r,s,c)),o.session.selection=[[...s,"children",c]]}function il(){let e=ge();if(!e)return;let t=ht(e.parentPath),n=_n(e.parentPath);if(!t||typeof n!=="number")return;q(e.tab,(r)=>pa(r,e.path,t,n+1)),e.tab.session.selection=[[...t,"children",n+1]]}function ul(){let e=u.value,t=Eo(),n=yt();if(!e||!n||hv(t).length===0)return;let r=e.doc.document;if(q(e,(s)=>gp(s,t)),e.doc.document===r)return;let o=ht(n);e.session.selection=o?[o]:[]}function cl(){let e=u.value,t=Eo();if(!e||t.length===0)return;q(e,(n)=>mv(n,t))}function ll(){let e=u.value,t=yt(),n=t?ht(t):null;if(e&&n)e.session.selection=[n]}var en=(e)=>e.selection.count>0;function jg(e,t){e.registerAll([{category:"Selection",enablement:tl,group:"1_move_1",icon:"arrow-up",id:"selection.moveUp",keyScope:"canvas",level:"selection",menus:["blockbar","outline/row"],requires:"an element with a sibling above it",run:()=>rl(),title:"Move Up",undo:"document",when:en},{category:"Selection",enablement:nl,group:"1_move_2",icon:"arrow-down",id:"selection.moveDown",keyScope:"canvas",level:"selection",menus:["blockbar","outline/row"],requires:"an element with a sibling below it",run:()=>ol(),title:"Move Down",undo:"document",when:en},{category:"Selection",enablement:bo,group:"1_move_3",icon:"arrow-right",id:"selection.moveIn",keyScope:"canvas",level:"selection",menus:["outline/row"],requires:"a container directly above the element",run:()=>sl(),title:"Move Into Previous",undo:"document",when:en},{category:"Selection",enablement:al,group:"1_move_4",icon:"arrow-left",id:"selection.moveOut",keyScope:"canvas",level:"selection",menus:["outline/row"],requires:"an element nested inside another",run:()=>il(),title:"Move Out of Parent",undo:"document",when:en},{category:"Selection",enablement:(n)=>Boolean(n.selection.kind)&&!n.selection.isRoot&&n.editor.kind==="canvas",group:"4_component",icon:"cube",id:"selection.convertToComponent",level:"selection",menus:["blockbar","context/element","palette"],requires:"an element that is not the document root",run:()=>{t.convertToComponent()},title:"Convert to Component",undo:"project",when:(n)=>n.selection.count>0&&!n.selection.isComponentInstance},{category:"Selection",group:"4_component",icon:"pencil-simple",id:"selection.editComponent",level:"selection",menus:["blockbar","context/element","palette"],requires:"a component instance",run:()=>{let n=dl();if(n)t.navigateToComponent(n)},title:"Edit Component",undo:"none",when:(n)=>n.selection.isComponentInstance}])}function dl(){let e=u.value,t=yt(),n=e&&t?K(e.doc.document,t):null;return st.find((o)=>o.tagName===n?.tagName)?.path??null}var ta=null;function ke(){if(ta)return ta;let e=Lf({getContext:Zc}),t={...tw(),deleteSelection:ul,duplicateSelection:cl,selectParent:ll};return e.registerAll(Jh(t).filter((n)=>n.level==="selection")),jg(e,{convertToComponent:()=>Tf(),navigateToComponent:(n)=>ze?.navigateToComponent(n)}),e.registerAll(k_()),ta=e,e}var na=5;function ra(e,t){let n=e.disabledReason(t.id);if(n!==void 0)return`${t.title} — requires ${n}`;let r=e.keymap.formatBinding(t.id);return r?`${t.title} (${r})`:t.title}function _t(e,t,n){let r=()=>{if(e.isEnabled(t))on(e,t,void 0,"Editor")};if(n)tn(n,r);else r()}function mo(e,t,n={}){return{destructive:t.destructive===!0,disabled:n.disabled??e.disabledReason(t.id)!==void 0,hasIcon:Boolean(t.icon),icon:t.icon??"",id:t.id,selected:n.selected??!1,title:t.title,tooltip:ra(e,t),value:n.value??""}}var be=null,Ce=Zt();function $e(e){Ce=e,be?.update(e)}function fl(){if(!Je.blockActionBarEl)Je.blockActionBarEl=vs("popover","block-action-bar");return be??=lo(Je.blockActionBarEl,{applyLink:(e)=>{Cd({command:"link",href:e||""})},leaveBar:()=>{oa(),hl()},onDragHandle:ml,openMergeTags:bl,openOverflow:(e)=>{let t=ke();sa(e,t,t.forPlacement("blockbar").slice(na))},openTagMenu:El,removeLink:()=>{Cd({command:"link",href:null})},run:(e)=>_t(ke(),e),selectParent:()=>_t(ke(),"selection.selectParent")}),be}function ml(e){Je.selDragCleanup?.(),Je.selDragCleanup=gs({canDrag:()=>ge(Le(u.value?.session.selection))!==null,element:e,getInitialData:()=>({path:[...Le(u.value?.session.selection)??[]],type:"tree-node"}),onGenerateDragPreview:({nativeSetDragImage:t})=>{wc({nativeSetDragImage:t})}})}var He=null;function oa(){let e=He;if(He=null,e?.close(),Ce.overflowOpen)$e({...Ce,overflowOpen:!1})}function sa(e,t,n,r=null){oa();let o=()=>n.map((c,f)=>{let h=t.keymap.formatBinding(c.id),A=t.disabledReason(c.id);return{destructive:c.destructive===!0,disabled:A!==void 0,dividerAbove:f>0&&c.destructive===!0,id:c.id,run:()=>{_t(t,c.id,r)},title:c.title,...h?{chord:h}:{},...A===void 0?{}:{requires:A}}}),s=r?tn(r,o):o();if(He=Nt({label:"More block actions",onClosed:(c)=>{if(He===c){if(He=null,Ce.overflowOpen)$e({...Ce,overflowOpen:!1})}},opener:e,region:"block-actions",rows:s}),!r)$e({...Ce,overflowOpen:!0})}function hl(){let e=Uo().wrap;(e?.querySelector("iframe.jx-canvas-iframe")??e)?.focus()}function pl(e){if(e.key!=="ArrowUp"||!e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;if(Am())return;let t=be?.toolbar();if(!t)return;e.preventDefault(),Ap(t,0)}function go(e){if(!e)return[];let t=qe(e.tagName);if(t.includes("-")&&st.some((s)=>s.tagName===t)||e.$prototype==="Array")return[];let r=_o(e),o=!e.textContent&&(r.length===0||r.length===1&&typeof r[0]==="object"&&r[0]?.tagName==="br");return uo((t||"div").toLowerCase(),o)}function El(e){let t=u.value,n=Le(t?.session.selection),r=t&&n?K(t.doc.document,n):null,o=go(r);if(!n||o.length===0)return;Pg(e,"",{commands:o,onSelect:(s)=>{q(u.value,(c)=>{Ue(c,n,"tagName",s.tag)})},showFilter:o.length>6})}function bl(e){let t=u.value,n=t?.doc.document.state??{},r=Qr(n,null,null),o=Wa().snapshot?.path??Le(t?.session.selection),s=t&&o?qy(t.doc.document,o):null;if(s&&t){let c=Jr(s,t.doc.document.state,D?.projectConfig);r.push(...Xr(c))}Pg(e,"",{commands:r.map((c)=>({description:c.hint,label:c.label,tag:c.token})),onSelect:(c)=>Cd({command:"insertData",token:c.tag}),showFilter:!0})}function S_(){be?.closeLink()}function gl(){return be?.linkOpen()===!0}function Tl(){let e=be,t=e?.button("format.link")??e?.bar();if(!e||!t)return;let n=Wa().snapshot?.link??{active:!1,href:null};e.openLink(t,n.href,n.active)}function Jy(){Fe=null,oa(),aa()}function aa(){if(be)$e({...Zt(),visible:!1});Je.selDragCleanup?.(),Je.selDragCleanup=null}var Fe=null;function To(e,t){return JSON.stringify([e?.id??null,t])}function SS(){Jy();let e=u.value;Fe={key:To(e,Le(e?.session.selection))}}function ES(){if(!Fe)return;Fe=null,Hg()}function TS(e){if(!(e instanceof Node))return!1;return[Je.blockActionBarEl,He?.host??null,vs("popover","slash-menu")].some((n)=>n!=null&&n.contains(e))}function Al(){let e=u.value,t=ze?.getCanvasMode(),n=Le(e?.session.selection);if(!e||!n||t!=="design"&&t!=="edit")return null;let r=K(e.doc.document,n);if(!r)return null;let o=gx(),s=o?ho(o):null;if(!s)return null;let c=ke(),f=(qe(r.tagName)||"div").toLowerCase(),{editingProp:h,snapshot:A}=Wa(),S=TT(f)||[],g=!h&&S.length>0,N=A?.collapsed??!0,O=S.flatMap((Ne)=>{let Ta=c.get(`format.${Ne.command}`);return Ta?[mo(c,Ta,{disabled:N&&Ne.command!=="link",selected:A?.activeTags.includes(Ne.tag)===!0,value:Ne.tag})]:[]}),L=c.forPlacement("blockbar"),P=ht(n),B=P?K(e.doc.document,P):null,Y=c.get("selection.selectParent"),Se=Y?.title??"Select Parent",ae=B?`Select parent: ${Zo(B)}`:Se,X=Y?c.keymap.formatBinding(Y.id):void 0,fe=go(r),je=(r.$prototype==="Array"?Zo(r):r.$id||qe(r.tagName)||"div")+(h?` · ${h}`:""),et=ge(n)!==null;return{barX:s.left,barY:s.top,canDrag:et,dragHint:et?"Drag to reorder":"Drag to reorder — the document root cannot move",formats:O,hasOverflow:L.length>na,offscreen:!1,overflowOpen:He!==null,parentDisabled:!P,parentHint:X?`${ae} (${X})`:ae,parentLabel:ae,showFormat:g,tagDisabled:fe.length===0,tagHint:fe.length>0?"Change element type":je,tagLabel:je,tagPopup:fe.length>0?"menu":"",verbs:L.slice(0,na).map((Ne)=>mo(c,Ne)),visible:!0}}function Hg(){if(!ze)return;fl();let e=u.value,t=Le(e?.session.selection);if(Fe){if(Fe.key===To(e,t)){aa();return}Fe=null}let n=Al();if(!n){aa();return}$e(n),requestAnimationFrame(()=>{let r=be?.bar();if(r)po(r)})}var an="web application/jx+json";function Co(e){if(typeof e==="string")return e;let t=qe(e.tagName).split("|")[0]||"div",n="";if(e.attributes)for(let[o,s]of Object.entries(e.attributes)){if(typeof s==="object")continue;n+=s===""?` ${o}`:` ${o}="${String(s).replaceAll('"',"&quot;")}"`}if(e.style){let o=Object.entries(e.style).map(([s,c])=>`${s}:${c}`).join(";");if(o)n+=` style="${o.replaceAll('"',"&quot;")}"`}let r="";if(typeof e.textContent==="string")r=e.textContent;else if(Array.isArray(e.children))r=e.children.map((o)=>Co(o)).join("");return`<${t}${n}>${r}</${t}>`}async function xo(e){m.clipboard=e;try{let t=new Blob([JSON.stringify(e)],{type:an}),n=new Blob([Co(e)],{type:"text/html"});await navigator.clipboard.write([new ClipboardItem({[an]:t,"text/html":n})])}catch{try{await navigator.clipboard.writeText(JSON.stringify(e))}catch{}}}async function ua(){try{let e=await navigator.clipboard.read();for(let t of e){if(t.types.includes(an)){let n=await t.getType(an);return[JSON.parse(await n.text())]}if(t.types.includes("text/html")){let r=await(await t.getType("text/html")).text(),s=Ur(r).map((c)=>typeof c==="string"?{tagName:"p",textContent:c}:c);if(s.length>0)return s}if(t.types.includes("text/plain")){let r=await(await t.getType("text/plain")).text();try{let o=JSON.parse(r);if(o&&o.tagName)return[o]}catch{}if(r.trim())return[{tagName:"p",textContent:r.trim()}]}}}catch{if(m.clipboard)return[Ao(m.clipboard)]}return null}async function _l(){let e=u.value,t=Le(e?.session.selection);if(!e||!t)return;let n=K(e.doc.document,t);if(!n)return;let r=Ao(n);await xo(r),k.success("Copied",{key:"clipboard"})}async function yl(){let e=u.value,t=Le(e?.session.selection);if(!e||!t||t.length<2)return;let n=K(e.doc.document,t);if(!n)return;let r=Ao(n);await xo(r);let o=e.session.selection.filter((s)=>s.length>=2);if(!q(e,(s)=>gp(s,o)))return;k.success("Cut",{action:"edit.undo",key:"clipboard"})}async function $S(){let e=u.value;if(!e)return;let t=await ua();if(!t||t.length===0)return;let n=Le(e.session.selection),r=n??[],o=K(e.doc.document,r);if(!o)return;if(n&&n.length>=2){let s=ht(n),c=_n(n);q(e,(f)=>{for(let h=0;h<t.length;h++)Ji(f,s,c+1+h,t[h])})}else{let s=Array.isArray(o.children)?o.children.length:0;q(e,(c)=>{for(let f=0;f<t.length;f++)Ji(c,r,s+f,t[f])})}k.success("Pasted",{action:"edit.undo",key:"clipboard"})}function So(e){return e.$prototype==="Array"}function No(e){let t=()=>e.target()!==null,n=()=>{let c=u.value;return Boolean(c)&&ha(c.session.ui.canvasMode)==="canvas"},r=()=>{let c=e.target();return c!==null&&Nl(c.path)&&n()},o=()=>{let c=e.target();return c!==null&&!So(c.node)},s="an element with a sibling position — not the page root or a repeater item";return[{id:"edit.pasteAfter",title:"Paste after",category:"Edit",level:"selection",keyScope:"canvas",menus:["context/element","palette"],group:"1_clipboard",undo:"document",when:()=>t()&&n(),enablement:()=>r()&&o(),requires:"an element with a sibling position — not the page root or a repeater item",run:async()=>{let c=e.target(),f=await ua();if(!c||!f||f.length===0)return;let h=ht(c.path),A=_n(c.path);q(u.value,(S)=>{for(let[g,N]of f.entries())Ji(S,h,A+1+g,N)}),k.success("Pasted",{action:"edit.undo",key:"clipboard"})}},{id:"edit.pasteInside",title:"Paste inside",category:"Edit",level:"selection",menus:["context/element","palette"],group:"1_clipboard",undo:"document",when:()=>t()&&n(),enablement:()=>{let c=e.target();return c!==null&&c.path.length>=2&&o()},requires:"a container element that is not a repeater",run:async()=>{let c=e.target(),f=await ua();if(!c||!f||f.length===0)return;let h=Array.isArray(c.node.children)?c.node.children.length:0;q(u.value,(A)=>{for(let[S,g]of f.entries())Ji(A,c.path,h+S,g)}),k.success("Pasted",{action:"edit.undo",key:"clipboard"})}},{id:"edit.copyStyles",title:"Copy styles",category:"Edit",level:"selection",menus:["context/element","palette"],group:"2_styles",undo:"none",when:t,enablement:()=>Boolean(e.target()?.node.style),requires:"styles on the selected element",run:()=>{let c=e.target()?.node.style;if(!c)return;m.styleClipboard=Ao(c),k.success("Styles copied",{key:"clipboard"})}},{id:"edit.pasteStyles",title:"Paste styles",category:"Edit",level:"selection",menus:["context/element","palette"],group:"2_styles",undo:"document",when:()=>t()&&n(),enablement:()=>e.styleClipboard()!==null,requires:"a copied style set",run:()=>{let c=e.target(),f=e.styleClipboard();if(!c||!f)return;let h=Ao(f);q(u.value,(A)=>HL(A,c.path,h)),k.success("Styles pasted",{action:"edit.undo",key:"clipboard"})}},{id:"selection.insertBefore",title:"Insert before",category:"Insert",level:"selection",menus:["context/element","palette"],group:"3_structure",undo:"document",when:t,enablement:r,requires:"an element with a sibling position — not the page root or a repeater item",run:()=>yo(e.target(),0)},{id:"selection.insertAfter",title:"Insert after",category:"Insert",level:"selection",menus:["context/element","palette"],group:"3_structure",undo:"document",when:t,enablement:r,requires:"an element with a sibling position — not the page root or a repeater item",run:()=>yo(e.target(),1)},{id:"selection.wrap",title:"Wrap in Div",category:"Selection",level:"selection",menus:["context/element","palette"],group:"3_structure",undo:"document",when:t,enablement:r,requires:"an element with a sibling position — not the page root or a repeater item",run:()=>{let c=e.target();if(c)q(u.value,(f)=>ML(f,c.path))}},{id:"selection.setTitle",title:"Set Title",category:"Selection",level:"selection",menus:["context/element","palette"],group:"4_identity",undo:"document",when:()=>Boolean(e.target()?.rerender),enablement:r,requires:"an element with a sibling position — not the page root or a repeater item",run:async()=>{let c=e.target();if(!c?.rerender)return;let{startLayerTitleEdit:f}=await (me("y4w1dq90"),import("./layers-panel-y4w1dq90.js"));f(c.path,c.rerender)}}]}function yo(e,t){if(!e)return;let n=ht(e.path),r=_n(e.path);q(u.value,(o)=>Ji(o,n,r+t,{children:[],tagName:"p"}))}function I_(){return[{category:"Edit",group:"1_clipboard",id:"edit.copy",keybinding:"mod+c",keyScope:"canvas",level:"selection",menus:["context/element","palette"],requires:"an element selection",run:()=>{_l()},title:"Copy",undo:"none",when:$d},{category:"Edit",destructive:!0,enablement:sv,group:"1_clipboard",id:"edit.cut",keybinding:"mod+x",keyScope:"canvas",level:"selection",menus:["context/element","palette"],requires:"an element selection that is not the document root",run:()=>{yl()},title:"Cut",undo:"document",when:$d}]}function Cl(e,t){e.registerAll(No(t))}var Ye=null,Io=null;function DS(e){Io=e}function Lo(){if(Ye)return Ye;let e=u.value,t=Le(e?.session.selection);if(!e||!t)return null;let n=K(e.doc.document,t);return n?{node:n,path:t}:null}var ca={componentPathFor:(e)=>e.includes("-")&&st.find((t)=>t.tagName===e)?.path||null,styleClipboard:()=>m.styleClipboard,target:Lo};function AS(){return No(ca)}function xl(){let e=Lo(),t=u.value,n=qe(e?.node.tagName);return Ex({capability:{findReferences:Rb()},document:{dirty:Boolean(t?.doc.dirty),open:Boolean(t)},editor:{kind:t?ha(t.session.ui.canvasMode):"none"},selection:{count:e?1:0,isComponentInstance:Boolean(e&&ca.componentPathFor(n)),isRepeater:e?So(e.node):!1,isRoot:e?!Nl(e.path):!1,kind:n}})}var ia=null;function Ro(){let e=ne();if(e)return e;if(ia)return ia;let t=Lf({getContext:xl}),n=Jh({...tw(),deleteSelection:()=>{let r=Ye;if(r)q(u.value,(o)=>Vu(o,r.path))},duplicateSelection:()=>{let r=Ye;if(r)q(u.value,(o)=>VC(o,r.path))}}).filter((r)=>(r.menus??[]).includes("context/element"));return t.registerAll(n),t.registerAll(G_().filter((r)=>(r.menus??[]).includes("context/element"))),t.registerAll(I_()),jg(t,{convertToComponent:()=>Tf(),navigateToComponent:(r)=>{Io?.(r)}}),Cl(t,ca),ia=t,t}var nn=null,Ct=[];function Sl(e){let t=Ct.find((r)=>r.id===e);if(!t||t.disabled)return;let n=Ro().run(e);Uh()}function Uh(){nn?.close()}function Il(e){let t=Ro(),n;return t.forPlacement(e).map((r,o)=>{let s=o>0&&r.group!==n;({group:n}=r);let c=t.isEnabled(r.id),f=t.keymap.formatBinding(r.id),h=f&&f.toLowerCase()!==r.title.toLowerCase()?f:void 0,A=c?void 0:t.disabledReason(r.id),S={destructive:r.destructive===!0,disabled:!c,dividerAbove:s,id:r.id,title:r.title};if(h)S.chord=h;if(A)S.requires=A;return S})}function Yy(e,t,n={}){e.preventDefault(),Uh();let r=u.value;if(!r)return;let o=K(r.doc.document,t);if(!o)return;if(!dv(r.session.selection,t))r.session.selection=[t];if(Ye={node:o,path:t,rerender:n.rerender},Ct=Il(n.placement??"context/element"),Ct.length===0){Ye=null;return}let s=document.activeElement instanceof HTMLElement?document.activeElement:null;nn=Nt({label:"Element actions",onClosed:(c)=>{if(nn===c)nn=null,Ye=null,Ct=[]},opener:s,origin:{x:e.clientX,y:e.clientY},region:"context",rows:Ct,run:Sl})}function Ll(e,t){if(e===null||t===null)return e===t;return e.length===t.length&&e.every((n,r)=>n===t[r])}function E_(e,t){Lc(e,{ui:{openDialog:t}}),xC(e,t)}function la(e,t){let n=K1(e.doc.document,t);if(n===null||Ll(e.session.ui.openDialog,n))return!1;return E_(e,n),!0}function Oo(e){if(e)la(e,Le(e.session.selection))}function Rl(e,t){if(e===null||t===null)return e===t;return e.length===t.length&&e.every((n,r)=>n===t[r])}function T_(e,t){Lc(e,{ui:{openPopover:t}}),wC(e,t)}function Do(e,t){let n=G1(e.doc.document,t);if(n===null||Rl(e.session.ui.openPopover,n))return!1;return T_(e,n),!0}function Ol(e){if(e)Do(e,Le(e.session.selection))}function vo(e){let t=u.value;if(t)Do(t,e),la(t,e);lm(e)}var xt=null;function RS(){if(!xt){let t=Q(()=>{let n=u.value;n?.session.selection.map((r)=>r.join("/")).join("|"),n?.doc.document,sh();try{Ol(n),Oo(n)}finally{ah()}});xt={stop:()=>{t.effect.stop()}}}let e=xt;return()=>{if(e.stop(),xt===e)xt=null}}var wo={$schema:"https://jxsuite.com/schema/v1",$id:"StudioPanelOutline",$description:"The Navigator's Outline panel while the pane is drawing a document: the element tree, as a Jx document over the kit. The adapter hands in one flat projection per row — its badge, its name, how deep it sits, where it stands among its siblings, whether it is selected, whether it is being renamed and which verbs it may offer — so nothing here walks the document, reads the command registry or knows what a collapsed ancestor is. THE TREE IS `jx-tree`, and the eight keyboard cases and seven ARIA attributes this document used to spell out are the element's now. They were spelled out again in `files-panel.json`, which is the reason: two trees carried one keyboard contract independently, and nothing held them in agreement — ← climbed to a parent here and merely closed a directory there, Home and End existed here and not there, and neither had typeahead. What is left is what is true of THIS tree: a row is a badge and a name, a rename happens in place, and the verbs a row offers sit on a plate over its right edge. It is one panel with two bodies and this is the design half of it; `panel-stylebook-layers.json` is the other, and the two share a row vocabulary on purpose so the pane switching between them does not switch design as well.",tagName:"div",attributes:{part:"outline"},style:{$description:"What `.layers-container`, `.layer-row` and their nine siblings said in `styles/panels.css`, keyed on `part` and carried here. Four Spectrum names could not come with the declarations and are the kit's instead, at the same values: `--spectrum-corner-radius-75` (2px) is `--jx-radius-xs`, `--spectrum-font-size-50` (11px) is `--jx-text-sm`, the badge's 10px is `--jx-text-xs` and the focus ring is `--jx-focus-ring`. Two colours could not at first: `--case-c` and `--slot-c` were declared on `<sp-theme>` rather than at `:root`, so each carried a `:root` token as its fallback. That day came with Spectrum's removal, and the fallbacks are gone with it: both names are declared at `:root` in `styles/tokens.json` now, at exactly the values written here as their fallbacks (`--accent` and `--success`), in the same alias idiom `--switch-c` already used. A `var()` fallback that can no longer be reached is not a safety net, it is a second answer nobody will keep in step. HALF OF THESE RULES ARE GONE, and that is `jx-tree-item` rather than an omission: the row's flex line, its one-control-height box, the hover and focus states, the selected wash and its inline-start edge, the faded dragged row, the dashed drop mark, the chevron's box, the label's ellipsis and the drag grip are all the element's — including the forced-colours redraw of the selected row, which used to be written out at the bottom of this file. THE INDENT IS STILL A VARIABLE, because this tree CAPS it: past six levels a `240px` column is all indent and no name, so `--row-indent` carries an already-capped length and overrides the element's `level`-derived padding. And the row STATES are attributes rather than classes (`ui.md` §3.1) — `aria-selected` is the only writer of the selected drawing, which is also what stops the wash and the announcement disagreeing.",display:"block",position:"relative",fontFamily:"var(--jx-font-sans)",color:"var(--fg)",'& [part="tree"]':{$description:"`jx-tree` declares no scrollbar of its own — one Studio tree scrolls in itself and this one scrolls in the Navigator, which also holds its toolbar — so what it needs here is the block box and this package's own text colour, which the element would otherwise take from the kit's `--jx-fg` directly and stop following the studio alias.",display:"block",color:"var(--fg)"},'& [part="row"]':{$description:"The four things the element cannot decide for this tree. The cluster is positioned against the row, so the row is the containing block. The indent is CAPPED — `--row-indent` is already `min(depth, 6) * 16 + 8`, and overriding the element's `level`-derived padding is what keeps a depth-12 row from pushing its badge out of a 240px column. The whole row is the drag handle, so the cursor says so. And the transition is what `panels/dnd.ts` animates the drop gap with.",position:"relative",paddingInline:"var(--row-indent, var(--jx-space-3)) var(--jx-space-3)",cursor:"grab",transition:"transform 150ms ease"},'& [part="row"][data-dragging]':{$description:"The lift is the element's; only the transition is this tree's, and it has to stop, or the dragged row animates back through every gap the rows below it open.",transition:"none"},'& [part="row"][data-kind="text"]':{$description:"A text node's line: drawn, and deliberately not a `jx-tree-item`. There is nothing to do to it — it cannot be moved, renamed, duplicated or deleted on its own — so making it a row the caret can land on would put a stop in the walk that answers to none of the verbs the walk offers. It is therefore the one line in this tree the element does not draw, and the box below is `jx-tree-item`'s own, restated: the same 24px the window reserves scroll by, and the same transparent inline-start edge, so a text line and an element line start at the same pixel.",display:"flex",alignItems:"center",gap:"var(--jx-space-2)",blockSize:"var(--jx-control-h)",boxSizing:"border-box",borderInlineStart:"2px solid transparent",whiteSpace:"nowrap",userSelect:"none",opacity:"0.6",fontStyle:"italic"},'& [part="badge"]':{$description:"A long custom-element tag is a badge, not a paragraph: it truncates rather than pushing the label out of a 240px column.",flex:"none",maxWidth:"12ch",overflow:"hidden",padding:"0 var(--jx-space-2)",borderRadius:"var(--jx-radius-xs)",background:"var(--tag)",color:"var(--accent-fg)",fontSize:"var(--jx-text-xs)",textOverflow:"ellipsis"},'& [part="badge"][data-kind="map"]':{background:"var(--map)",fontSize:"9px",letterSpacing:"0.5px"},'& [part="badge"][data-kind="switch"]':{background:"var(--switch-c)"},'& [part="badge"][data-kind="case"]':{maxWidth:"60px",background:"var(--case-c)",fontSize:"9px",fontStyle:"italic"},'& [part="badge"][data-kind="slot"]':{background:"var(--slot-c)"},'& [part="badge"][data-kind="text"]':{$description:"The one badge that names no tag, so it is drawn in the neutral rather than in the tag colour — and on the page background rather than on `--accent-fg`, which is white and would sit on a light grey at a contrast nobody can read in the light theme.",background:"var(--fg-dim)",color:"var(--bg)",fontSize:"9px"},'& [part="row"][data-italic="true"] [part="label"]':{fontStyle:"italic"},'& [part="row"][data-editing="true"] [part="label"]':{$description:"While the row is being renamed the input stands where the name was. The name itself is still the row's `label`, so it still names the row to a reader — it is only taken off the screen.",display:"none"},'& [part="title-input"]':{$description:"Stretches into the row's content box rather than setting its own height: the row is a fixed 24px, and an input taller than that would push its borders through the rows either side.",flex:"1",minWidth:"24px",alignSelf:"stretch",boxSizing:"border-box",padding:"0 var(--jx-space-1)",border:"1px solid var(--accent)",borderRadius:"var(--jx-radius-xs)",background:"var(--bg)",color:"inherit",font:"inherit"},'& [part="title-input"]:focus-visible':{outline:"var(--jx-focus-ring)",outlineOffset:"-1px"},'& [part="verbs"]':{$description:"Positioned out of flow so it never contributes to the row's intrinsic width: in a 240px column, four in-flow buttons plus an indent is exactly what pushed the tree sideways. The cluster is EMPTY on every row but the selected one and the hovered one — a projection with no commands in it, not a `display: none` rule, because a hidden `jx-action-button` is still an upgraded custom element and CSS reveal would have kept the whole cost the collapse exists to remove. It is slotted into `jx-tree-item`'s `actions`, which is what stops a click on a verb from also moving the selection.",position:"absolute",right:"2px",top:"50%",transform:"translateY(-50%)",display:"flex",alignItems:"center",gap:"0",borderRadius:"var(--jx-radius-xs)"},'& [part="verbs"][data-state="shown"]':{paddingLeft:"var(--jx-space-3)",background:"var(--bg-panel)",boxShadow:"-8px 0 8px -8px rgb(0 0 0 / 0.4)"},'& [part="action"], & [part="overflow"]':{flex:"none"},'& [part="action"][data-destructive="true"]':{color:"var(--danger)"},'& [part="empty"]':{display:"flex",flexDirection:"column",alignItems:"center",gap:"var(--jx-space-3)",padding:"var(--jx-space-5)",textAlign:"center",color:"var(--fg-dim)",fontSize:"var(--jx-text-md)"},'& [part="empty-message"]':{margin:"0",maxWidth:"34ch",lineHeight:"1.5"}},children:[{$description:'The `role="tree"`, and the keyboard that used to be eight `$switch` cases under every row. `jx-tree` writes the role, the name, the roving tab stop and each row\'s `aria-level` / `aria-posinset` / `aria-setsize`, and it owns the walk: the arrows step the drawn rows without wrapping, `Home` and `End` reach the ends of the MODEL by way of the pads, `ArrowRight` opens a collapsed row and steps into an open one, `ArrowLeft` closes an open row and otherwise climbs to its parent, `Enter` activates, `Space` is a selection verb and a printable character is typeahead. `multiple` is on because this Outline has always accepted Ctrl-click and Shift-click, and it is also the GATE: with it off the element would resolve every modifier to a plain replace. Six events come back, and each is a decision `panels/layers-panel.ts` already owned.',tagName:"jx-tree",attributes:{part:"tree",label:"Document outline",multiple:"true",current:"${state.current}",padtop:"${state.padTop}",padbottom:"${state.padBottom}"},onmouseleave:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/hoverOut"},value:[]}],description:"`mouseleave` on the tree rather than on each row: the pointer leaves one row for another constantly, and only leaving the TREE means no row is under it."},onselect:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/select"},value:[{$ref:"event#/detail/value"},{$ref:"event#/detail/mode"}]}],description:"What the reader meant by landing there: `replace`, `toggle` or `range`. An INTENT rather than a set — resolving a range means naming every row between two of them, and under windowing those are exactly the rows the DOM does not have, so the panel resolves it against the row MODEL. There is no `change` handler beside it on purpose: the element OWNS the caret and keeps it across every repaint that does not change `current`, so a second copy of it in the panel would be a variable that only ever went stale."},onactivate:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/rename"},value:[{$ref:"event#/detail"}]}],description:"`Enter` or a double click, which are one verb here: rename this row in place. F2 reaches the same verb from the row's own handler, because it is the one key the element leaves alone."},onexpand:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/expand"},value:[{$ref:"event#/detail/value"},{$ref:"event#/detail/expanded"}]}],description:"`ArrowRight`, `ArrowLeft` or the twisty, with ONE dispatcher between them, and the detail says the state the row should be PUT INTO — so the panel never has to work out which way a toggle was going."},onmove:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/move"},value:[{$ref:"event#/detail/from"},{$ref:"event#/detail/key"}]}],description:"The caret has to reach a row the window did not draw. The element knows only that the pad on that side is not zero; where the row is in the model, and how far to scroll to bring it into view, is the panel's."},ontypeahead:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/typeahead"},value:[{$ref:"event#/detail/from"},{$ref:"event#/detail/char"}]}],description:"A printable character, on a windowed tree. The same hand-off as `onmove` and for a sharper reason: a move off the end of the slice announces itself, and a letter never does — the element's own search over the drawn rows always answers, and in a five-thousand-node document the answer is whichever of the twenty painted rows happened to start with that letter. So the element dispatches EVERY such character and the panel answers it over the model."},children:[{tagName:"div",attributes:{part:"body-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"#/state/view"},cases:{rows:{tagName:"div",attributes:{part:"rows",role:"none"},style:{display:"contents"},children:[{$prototype:"Array",items:{$ref:"#/state/rows"},key:{$ref:"$map/item/key"},map:{tagName:"div",attributes:{part:"row-slot",role:"none"},style:{display:"contents","--row-indent":{$ref:"$map/item/indent"}},$switch:{$ref:"$map/item/kind"},cases:{element:{tagName:"jx-tree-item",attributes:{part:"row","data-kind":"element",value:"${$map.item.key}",label:"${$map.item.label}",level:"${$map.item.level}",posinset:"${$map.item.posInSet}",setsize:"${$map.item.setSize}",expanded:"${$map.item.expanded}",selected:"${$map.item.selected}",grip:"${$map.item.draggable}","data-italic":"${$map.item.labelItalic}","data-editing":"${$map.item.editing}","data-jx-path":"${$map.item.jxPath}","data-dnd-row":"${$map.item.dndRow}","data-dnd-depth":"${$map.item.dndDepth}","data-dnd-void":"${$map.item.dndVoid}","data-dnd-expanded":"${$map.item.dndExpanded}"},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/reveal"},value:[{$ref:"$map/item/key"}]}],description:"A click brings the node into view on the canvas, and NOTHING else — the selection it also carries is `jx-tree`'s delegated click, which reads the modifiers off the real `MouseEvent` and answers with one `select` intent. Reveal is bound here rather than folded into that handler because an arrow key raises the same intent: a walk down the Outline that scrolled the canvas on every keystroke would be ten reveals for one glance."},oncontextmenu:{$ref:"#/state/contextMenu"},onmouseenter:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/hover"},value:[{$ref:"$map/item/key"}]}]},onkeydown:{$prototype:"Function",body:[{$switch:{$ref:"event#/key"},cases:{F2:[{preventDefault:!0},{stopPropagation:!0},{operator:"call",target:{$ref:"#/state/rename"},value:[{$ref:"$map/item/key"}]}]}}],description:"One key, and it is the one `jx-tree` deliberately does not own. The element passes every chord it has no verb for straight through — which is what keeps cut, paste, delete and this rename reachable from a focused row (WCAG 2.2 SC 2.5.7) — so F2 is answered here, against the row it was pressed on. Enter reaches the same rename through `activate`, because Enter IS the element's."},children:[{tagName:"span",attributes:{slot:"icon",part:"badge","data-kind":"${$map.item.badgeKind}",title:"${$map.item.badgeTitle}"},textContent:"${$map.item.badge}"},{$description:"The rename, in place. It is a CASE of the row — the document draws it when the projection says this row is the one being renamed and takes it away again when the projection stops saying so — where the predecessor built the input with `document.createElement`, hid the label with an inline `display:none` and put the two back by hand on commit. It sits in `jx-tree-item`'s `status` slot, which is where the name ends, and it STOPS every event it can reach: an editable field inside a composite has to, or the tree's own typeahead moves the caret on the first letter typed and its delegated click takes the focus back on the first click into the text.",tagName:"div",attributes:{slot:"status",part:"edit-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"$map/item/editing"},cases:{true:{tagName:"input",attributes:{part:"title-input",type:"text",value:"${$map.item.editValue}",placeholder:"${$map.item.placeholder}","aria-label":"Rename this element"},onclick:{$prototype:"Function",body:[{stopPropagation:!0}]},ondblclick:{$prototype:"Function",body:[{stopPropagation:!0}]},oninput:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/editInput"},value:[{$ref:"event#/target/value"}]}]},onkeydown:{$prototype:"Function",body:[{stopPropagation:!0},{$switch:{$ref:"event#/key"},cases:{Enter:[{preventDefault:!0},{operator:"call",target:{$ref:"#/state/editCommit"}}],Escape:[{preventDefault:!0},{operator:"call",target:{$ref:"#/state/editCancel"}}]}}]},onblur:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/editCommit"}}]}}}},{tagName:"div",attributes:{slot:"actions",part:"verbs-slot",role:"none"},style:{display:"contents"},children:[{tagName:"span",attributes:{part:"verbs","data-state":"${$map.item.actions}"},children:[{$prototype:"Array",items:{$ref:"$map/item/commands"},key:{$ref:"$map/item/id"},map:{tagName:"jx-action-button",attributes:{part:"action","data-command":"${$map.item.id}","data-destructive":"${$map.item.destructive}"},$props:{label:{$ref:"$map/item/title"},hint:{$ref:"$map/item/tooltip"},icon:{$ref:"$map/item/icon"},disabled:{$ref:"$map/item/disabled"},size:"sm",quiet:!0},onclick:{$prototype:"Function",body:[{stopPropagation:!0},{operator:"call",target:{$ref:"#/state/runRow"},value:[{$ref:"$map/item/id"},{$ref:"$map/item/row"},{$ref:"event#/currentTarget"}]}]}}},{tagName:"span",attributes:{part:"overflow-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"$map/item/overflow"},cases:{true:{tagName:"jx-action-button",attributes:{part:"overflow","data-command":"outline.more"},$props:{label:"More actions",hint:"More actions",icon:"dots-three-vertical",haspopup:"menu",size:"sm",quiet:!0},onclick:{$prototype:"Function",body:[{stopPropagation:!0},{operator:"call",target:{$ref:"#/state/overflowRow"},value:[{$ref:"$map/item/key"},{$ref:"event#/currentTarget"}]}]}}}}]}]}]},text:{$description:"A text node's line: drawn, and deliberately not a `jx-tree-item`. There is nothing to do to it — it cannot be moved, renamed, duplicated or deleted on its own — so a row the caret could land on would be a stop in the walk that answers to none of the verbs the walk offers. It still carries `data-value`, because `panels/dnd.ts` hides and shifts every line of the tree and a text child of a dragged element is one of them.",tagName:"div",attributes:{part:"row","data-kind":"text",role:"none","data-jx-path":"${$map.item.jxPath}","data-value":"${$map.item.key}"},children:[{tagName:"span",attributes:{part:"badge","data-kind":"text"},textContent:"text"},{tagName:"span",attributes:{part:"label"},textContent:"${$map.item.label}"}]}},$description:"The indent lives HERE, on the wrapper, and not on the row — which is not a preference. A kit element renders its own `style` object through the same engine, and that engine releases the previous rule set for an element before adopting the next, so a host style object on a `jx-tree-item` is silently dropped the moment the element first paints. A custom property inherits through `display: contents`, so one declaration on the wrapper reaches whichever of the two rows the case draws — and both need it, because a text line indents like the element line above it."}}]},empty:{$description:"Drawn here rather than borrowed from `panels/empty-state.ts`, which is a lit template a document cannot call. What is kept is the pattern's rules (studio-ui-guidelines.md §11): one sentence saying what the region is for, then the one action that fills it.",tagName:"div",attributes:{part:"empty"},children:[{tagName:"p",attributes:{part:"empty-message"},textContent:"${state.emptyMessage}"},{tagName:"jx-button",attributes:{part:"empty-action"},$props:{size:"sm",variant:"secondary"},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/emptyAction"}}]},children:[{tagName:"span",textContent:"${state.emptyLabel}"}]}]}}}]}]};T("panel-outline",wo);function ko(e,t){e.view=t.view,e.rows=t.rows,e.padTop=t.padTop,e.padBottom=t.padBottom,e.current=t.current,e.emptyMessage=t.emptyMessage,e.emptyLabel=t.emptyLabel}function wl(e){let t=typeof e==="string"?void 0:e.attributes?.part;return typeof t==="string"?t:""}function Po(e,t,n){let r=v({contextMenu:n.contextMenu,current:"",editCancel:n.editCancel,editCommit:n.editCommit,editInput:n.editInput,editReady:n.editReady,emptyAction:n.emptyAction,emptyLabel:"",emptyMessage:"",expand:n.expand,hover:n.hover,hoverOut:n.hoverOut,move:n.move,overflowRow:n.overflowRow,padBottom:0,padTop:0,rename:n.rename,reveal:n.reveal,rows:[],runRow:n.runRow,select:n.select,treeReady:n.treeReady,typeahead:n.typeahead,view:"empty"});ko(r,t);let o=null,s=!1,c=R("panel-outline",r,e,{onNodeCreated:(f,h,A)=>{let S=f instanceof HTMLElement?wl(A):"";if(S==="tree")n.treeReady(f);else if(S==="title-input")n.editReady(f)}}).then((f)=>{if(s){f.dispose();return}o=f});return{connected:()=>!s&&(o===null||o.root.parentNode===e),dispose(){s=!0,o?.dispose(),o=null},ready:c,update:(f)=>{ko(r,f)}}}var Mo=32,Bo=40,kl={article:"Article",aside:"Sidebar",dialog:"Dialog",figure:"Figure",footer:"Footer",form:"Form",header:"Header",main:"Main",nav:"Navigation"};function St(e){let t=e.replaceAll(/\s+/gu," ").trim();return t.length>Mo?`${t.slice(0,Mo)}…`:t}function $o(e,t=0){if(typeof e.textContent==="string"&&e.textContent.trim())return e.textContent.trim();if(t>=3||!Array.isArray(e.children))return"";for(let n of e.children){if(typeof n==="string"&&n.trim())return n.trim();if(n&&typeof n==="object"){let r=$o(n,t+1);if(r)return r}}return""}function Pl(e){let t=e.attributes?.class;return typeof t==="string"?t.trim().split(/\s+/u)[0]??"":""}function jo(e){if(e.$title)return St(e.$title);if(e.$prototype==="Array"||e.tagName==="slot")return Zo(e);if(e.$id)return`#${St(e.$id)}`;if(typeof e.textContent==="string"&&e.textContent.trim())return St(e.textContent);let t=Pl(e);if(t)return`.${St(t)}`;let n=kl[qe(e.tagName).toLowerCase()];if(n)return n;let r=$o(e);if(r)return`“${St(r)}”`;let o=Array.isArray(e.children)?e.children.length:0;return o>0?`${o} item${o===1?"":"s"}`:""}var Ho=4;function Ko(e,t,n){return tn(t,()=>{let r=e.forPlacement("outline/row");return{commands:r.slice(0,Ho).map((o)=>({destructive:o.destructive===!0?"true":"false",disabled:e.disabledReason(o.id)!==void 0,icon:o.icon??"",id:o.id,row:n,title:o.title,tooltip:ra(e,o)})),overflow:r.slice(Ho)}})}var Ml=16,Bl=6,Vo=8;function qo(e){return Math.min(e,Bl)*Ml}function It(e){return e?e.split("/").map((t)=>/^\d+$/u.test(t)?Number(t):t):[]}var Hl=24,fa='[part="row"]',F=[],de=null,un=null,sn=null,Ze=null,xe=null;function ma(){return dE(de,fa,Hl)}function Lt(e){return e===void 0?-1:F.findIndex((t)=>t.key===e)}function Ea(e){return e===null?-1:F.findIndex((t)=>Yo(t.path,e))}function rn(e,t){for(let n=e+t;n>=0&&n<F.length;n+=t)if(F[n].item)return n;return-1}function Ul(){let e=[];for(let t of F)if(t.item)e.push(t.path);return e}function ba(e){return tb(de,e,ma())}function Fl(){if(de?.isConnected!==!0||de.querySelector("[data-dragging]"))return;queueMicrotask(()=>sn?.())}function $l(){if(!de)return;un=nb(un,de,{count:()=>F.length,onChange:Fl,rowHeight:ma})}function Yl(e){let t=e?.closest("[data-jx-path]");if(!t?.dataset.jxPath)return null;try{let n=JSON.parse(t.dataset.jxPath);return Array.isArray(n)?n:null}catch{return null}}function Wo(e){return de?.querySelector(`${fa}[data-value="${CSS.escape(e)}"]`)??null}function Kl(e){let t=F[e];if(t&&!Wo(t.key))ba(e)}function Go(e,t={}){let n=F[e];if(n)Qo(n.path,t)}function Qo(e,t={}){let n=u.value;if(!n)return;if(t.range){n.session.selection=IL(Ul(),LL(n.session.selection),e);return}if(t.additive){n.session.selection=uv(n.session.selection,e);return}n.session.selection=[e]}function Vl(e,t){let n=F[Lt(e)];if(!n)return;Qo(n.path,{additive:t==="toggle",range:t==="range"}),Te()}function ql(e,t){let n=F[Lt(e)];if(!n||!zo(n))return;let r=Jo();if(t)r.delete(e);else r.add(e);Te()}function Wl(e,t){let n=Lt(e),r;switch(t){case"Home":{r=rn(-1,1);break}case"End":{r=rn(F.length,-1);break}case"ArrowUp":{r=rn(n,-1);break}case"ArrowLeft":{r=F[n]?.parent??-1;break}case"ArrowDown":case"ArrowRight":{r=rn(n,1);break}default:return}Xo(r)}function Xo(e){if(!F[e])return;Go(e),Kl(e),Te()}function ga(e){if(!e.item){let n=String(e.node);return n.length>Bo?`${n.slice(0,Bo)}…`:n}let t=e.node;return e.nodeType==="case-ref"?t.$ref||"external":jo(t)}function Gl(e,t){let n=Lt(e),r=F.length;for(let o=1;o<=r;o++){let s=(n+o+r)%r,c=F[s];if(c?.item&&ga(c).trim().toLowerCase().startsWith(t)){Xo(s);return}}}function ZR(e,t){if(!u.value)return;let r=Ea(e),o=F[r];if(!o?.item||typeof o.node!=="object")return;if(xe={key:o.key,rerender:t,text:o.node.$title||""},!Wo(o.key))ba(r);Te()}function Ql(e){return xe?.key===e}function Xl(e){if(xe)xe.text=e}function Jl(){let e=xe,t=u.value;if(!e)return;xe=null;let n=e.text.trim();if(t)q(t,(r)=>Ue(r,It(e.key),"$title",n||void 0));e.rerender(),Te()}function zl(){let e=xe;if(!e)return;xe=null,e.rerender(),Te()}function Jo(){return Je._layersCollapsed||=new Set,Je._layersCollapsed}function Zl(e,t,n){let r=[],o=[],s=null;for(let{node:c,path:f,depth:h,nodeType:A}of Nd(e)){if(s!==null&&h>s)continue;s=null;let S=ok(f);if(n.has(S))s=h;if(t==="content"&&f.length===0)continue;let g=A==="text";if(!g){if(typeof c!=="object"||c===null)continue;if(f.length>=2&&A==="element"){let N=ht(f),O=N?K(e,N):null;if(O&&ix(c,O))continue}}while(o.length>0&&r[o.at(-1)].depth>=h)o.pop();r.push({depth:h,item:!g,key:S,node:c,nodeType:A,parent:o.at(-1)??-1,path:f,posInSet:0,setSize:0}),o.push(r.length-1)}return ed(r)}function ed(e){let t=new Map;for(let r of e)if(r.item)t.set(r.parent,(t.get(r.parent)??0)+1);let n=new Map;for(let r of e){if(!r.item)continue;let o=(n.get(r.parent)??0)+1;n.set(r.parent,o),r.posInSet=o,r.setSize=t.get(r.parent)??o}return e}function zo(e){if(!e.item||typeof e.node!=="object")return!1;let t=e.node,n=Array.isArray(t.children)&&t.children.length>0,r=t.children!==void 0&&typeof t.children==="object"&&t.children.$prototype==="Array",o=Boolean(t.$switch)&&typeof t.cases==="object"&&t.cases!==null&&Object.keys(t.cases).length>0;return n||r||o||e.nodeType==="map"&&Boolean(t.map)}function ad(e){let t=e.node;if(e.nodeType==="map")return{badge:"↻",badgeKind:"map",badgeTitle:"Repeating list — one copy per item"};if(e.nodeType==="case"||e.nodeType==="case-ref"){let n=String(e.path.at(-1)??"");return{badge:n,badgeKind:"case",badgeTitle:`Condition case: ${n}`}}if(t.$switch)return{badge:"⇄",badgeKind:"switch",badgeTitle:"Condition"};if(t.tagName==="slot"){let n=t.attributes?.name;return{badge:"▣",badgeKind:"slot",badgeTitle:typeof n==="string"&&n.trim()?`Slot "${n.trim()}"`:"Default slot"}}return{badge:qe(t.tagName)||"div",badgeKind:"tag",badgeTitle:Hd(t.tagName)?`Tag chosen when the element is created: ${$k(t.tagName).join(" or ")}`:null}}function sd(e){return{actions:"hidden",badge:"text",badgeKind:"text",badgeTitle:null,commands:[],dndDepth:null,dndExpanded:null,dndRow:null,dndVoid:null,draggable:"false",editValue:"",editing:"false",expanded:"",indent:`${qo(e.depth)+Vo}px`,jxPath:JSON.stringify(e.path),key:e.key,kind:"text",label:ga(e),labelItalic:"false",level:"",overflow:"false",placeholder:"",posInSet:"",selected:"false",setSize:""}}function ud(e,t,n,r){if(!e.item)return sd(e);let{depth:o,key:s,nodeType:c,path:f}=e,h=e.node,A=dv(t.selection,f),S=zo(e),g=Sp.has((qe(h.tagName)||"div").toLowerCase())||c==="map",N=(c==="element"||c==="map")&&typeof _n(f)==="number",O=t.mode==="content"?f.length===0:f.length<2,L=N&&!O,P=S&&!n.has(s),B=Ql(s),Y=L&&!B&&(A||s===Ze),{commands:Se,overflow:ae}=Y?Ko(r,f,s):{commands:[],overflow:[]},{badge:X,badgeKind:fe,badgeTitle:je}=ad(e),{$title:et,...Ne}=h;return{actions:Y?"shown":"hidden",badge:X,badgeKind:fe,badgeTitle:je,commands:Se,dndDepth:N?String(o):null,dndExpanded:N&&P?"":null,dndRow:N?s:null,dndVoid:N&&g?"":null,draggable:L?"true":"false",editValue:B?h.$title??"":"",editing:B?"true":"false",expanded:S?P?"true":"false":"",indent:`${qo(o)+Vo}px`,jxPath:JSON.stringify(f),key:s,kind:"element",label:ga(e),labelItalic:c==="case-ref"?"true":"false",level:String(o+1),overflow:ae.length>0?"true":"false",placeholder:jo(Ne)||qe(h.tagName)||"div",posInSet:String(e.posInSet),selected:A?"true":"false",setSize:String(e.setSize)}}function cd(e,t){let n=Le(t),r=n===null?-1:Ea(n),o=F[r];return o?.item===!0?o.key:e.find((s)=>s.item)?.key??""}function es(){let e=u.value,t=Jo(),n=ke(),r=e?.doc.mode??"";F=e?Zl(e.doc.document,r,t):[];let o=eb(de,{count:F.length,rowHeight:ma()}),s=e?.session.selection??[],c=F.slice(o.start,o.end);return{current:cd(c,s),emptyLabel:"Add an element",emptyMessage:"This page is empty. Everything you add to it is listed here, in order.",padBottom:o.padBottom,padTop:o.padTop,rows:c.map((f)=>ud(f,{mode:r,selection:s},t,n)),view:F.length===0?"empty":"rows"}}var se=null,Fo=null;function Te(){se?.handle.update(es())}var da=null;function ld(){let e=u.value,t=Le(e?.session.selection);return`${e?.id??""}|${t===null?"":JSON.stringify(t)}`}function dd(){let e=ld();if(e===da)return;da=e,fd()}function fd(){let e=de?.querySelector(`${fa}[aria-selected="true"]`);if(e){e.scrollIntoView?.({behavior:"smooth",block:"nearest"});return}ba(Ea(Le(u.value?.session.selection)))}function md(e){if(Ze===e)return;Ze=e,Te()}function hd(){if(Ze===null)return;Ze=null,Te()}function pd(e,t){let n=t.querySelector(".panel-content")??t;if(se&&(se.host!==n||!se.handle.connected()))se.handle.dispose(),se=null;sn=e.rerender,Fo=e.registerDnD;let r=es();if(se)se.handle.update(r);else se={handle:Po(n,r,{contextMenu:(o,s)=>{let c=Yl(s.target);if(c)Yy(s,c,{rerender:()=>sn?.()}),Te()},editCancel:zl,editCommit:Jl,editInput:Xl,editReady:(o)=>{queueMicrotask(()=>{let s=o;if(s.isConnected)s.focus(),s.select?.()})},expand:ql,emptyAction:()=>{fs("insert")},hover:md,hoverOut:hd,move:Wl,overflowRow:(o,s)=>{let c=It(o),f=ke(),{overflow:h}=Ko(f,c,o);if(s instanceof HTMLElement&&h.length>0)sa(s,f,h,c)},rename:(o)=>{let s=Lt(o);Go(s),ZR(It(o),()=>sn?.())},reveal:(o)=>{vo(It(o))},runRow:(o,s,c)=>{if(c instanceof HTMLElement)c.blur();_t(ke(),o,It(s)),Te()},select:Vl,treeReady:(o)=>{de=o},typeahead:Gl}),host:n};se.handle.ready.then(()=>{$l(),Fo?.(),dd()})}function Ed(){se?.handle.dispose(),se=null,de=null,un?.window.destroy(),un=null,Ze=null,xe=null,da=null}function L_(){qn({id:"layers",title:"Outline",level:"document",dock:"navigator",icon:"stack",requiresDocument:"Open a page to see the elements it is built from.",render:()=>tt,afterRender:(e,t)=>{if(e.deps.getCanvasMode()==="stylebook"){Ed(),Sa({selectStylebookTag:wu,stylebookMeta:qg},t);return}Na(),pd({registerDnD:e.deps.registerLayersDnD,rerender:e.rerender},t)}})}
3
3
  export{qy,Tf,Pg,xS,vu,C_,Gy,td,Ky,Fg,_S,CS,Lf,kS,k_,jg,S_,Jy,SS,ES,TS,Hg,gi,nd,id,od,LS,IS,yu,Vh,rd,E_,T_,RS,ZR,L_,$S,I_,DS,AS,Uh,Yy};
4
4
 
5
5
  //# debugId=5531D51AF9946BEB64756E2164756E21
6
- //# sourceMappingURL=studio-gfn1kpxj.js.map
6
+ //# sourceMappingURL=studio-4jj9gme2.js.map