@jaabiri/bmad-studio 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/dist/index.js +1996 -0
  2. package/package.json +53 -0
  3. package/ui-dist/assets/_baseUniq-B_n4QFRL.js +1 -0
  4. package/ui-dist/assets/_workflowId.lazy-FP56r40x.js +12 -0
  5. package/ui-dist/assets/arc-D8SlLs2L.js +1 -0
  6. package/ui-dist/assets/architectureDiagram-Q4EWVU46-BhKy9qBN.js +36 -0
  7. package/ui-dist/assets/blockDiagram-DXYQGD6D-DHQ9TuqQ.js +132 -0
  8. package/ui-dist/assets/c4Diagram-AHTNJAMY-BTPifryG.js +10 -0
  9. package/ui-dist/assets/channel-qsfw27Pz.js +1 -0
  10. package/ui-dist/assets/chevron-right-C3gMQbwP.js +1 -0
  11. package/ui-dist/assets/chunk-4BX2VUAB-DJJtjuLz.js +1 -0
  12. package/ui-dist/assets/chunk-4TB4RGXK-ONYWO0S_.js +206 -0
  13. package/ui-dist/assets/chunk-55IACEB6-CKub8aEM.js +1 -0
  14. package/ui-dist/assets/chunk-EDXVE4YY-c2zVzCwr.js +1 -0
  15. package/ui-dist/assets/chunk-FMBD7UC4-CnUcBH4x.js +15 -0
  16. package/ui-dist/assets/chunk-OYMX7WX6-DI7UEGCn.js +231 -0
  17. package/ui-dist/assets/chunk-QZHKN3VN-Dlq9g4FR.js +1 -0
  18. package/ui-dist/assets/chunk-YZCP3GAM-CpE3yTZs.js +1 -0
  19. package/ui-dist/assets/classDiagram-6PBFFD2Q-C6zNtups.js +1 -0
  20. package/ui-dist/assets/classDiagram-v2-HSJHXN6E-C6zNtups.js +1 -0
  21. package/ui-dist/assets/clone-lFRGLeBs.js +1 -0
  22. package/ui-dist/assets/cose-bilkent-S5V4N54A-BcwRulTx.js +1 -0
  23. package/ui-dist/assets/cytoscape.esm-5J0xJHOV.js +321 -0
  24. package/ui-dist/assets/dagre-KV5264BT-kD6LwyTY.js +4 -0
  25. package/ui-dist/assets/defaultLocale-DX6XiGOO.js +1 -0
  26. package/ui-dist/assets/diagram-5BDNPKRD-7BtLyPf7.js +10 -0
  27. package/ui-dist/assets/diagram-G4DWMVQ6-BeU21gzV.js +24 -0
  28. package/ui-dist/assets/diagram-MMDJMWI5-BcZe7DAu.js +43 -0
  29. package/ui-dist/assets/diagram-TYMM5635-30qZErT6.js +24 -0
  30. package/ui-dist/assets/erDiagram-SMLLAGMA-DZzYsGd-.js +85 -0
  31. package/ui-dist/assets/flowDiagram-DWJPFMVM-CEyo_5fY.js +162 -0
  32. package/ui-dist/assets/ganttDiagram-T4ZO3ILL-CdxjNHta.js +292 -0
  33. package/ui-dist/assets/gitGraphDiagram-UUTBAWPF-OI6nqhRA.js +106 -0
  34. package/ui-dist/assets/graph-CJuDDeAK.js +1 -0
  35. package/ui-dist/assets/index-1QFQcLya.js +56 -0
  36. package/ui-dist/assets/index-BvVxlmMK.js +29 -0
  37. package/ui-dist/assets/index-DPA4A8ah.js +9 -0
  38. package/ui-dist/assets/index-DbkfLjQe.js +1 -0
  39. package/ui-dist/assets/index-cvXQBc8Y.css +1 -0
  40. package/ui-dist/assets/infoDiagram-42DDH7IO-Bgvk_VTG.js +2 -0
  41. package/ui-dist/assets/init-Gi6I4Gst.js +1 -0
  42. package/ui-dist/assets/inter-cyrillic-400-normal-HOLc17fK.woff +0 -0
  43. package/ui-dist/assets/inter-cyrillic-400-normal-obahsSVq.woff2 +0 -0
  44. package/ui-dist/assets/inter-cyrillic-ext-400-normal-BQZuk6qB.woff2 +0 -0
  45. package/ui-dist/assets/inter-cyrillic-ext-400-normal-DQukG94-.woff +0 -0
  46. package/ui-dist/assets/inter-greek-400-normal-B4URO6DV.woff2 +0 -0
  47. package/ui-dist/assets/inter-greek-400-normal-q2sYcFCs.woff +0 -0
  48. package/ui-dist/assets/inter-greek-ext-400-normal-DGGRlc-M.woff2 +0 -0
  49. package/ui-dist/assets/inter-greek-ext-400-normal-KugGGMne.woff +0 -0
  50. package/ui-dist/assets/inter-latin-400-normal-C38fXH4l.woff2 +0 -0
  51. package/ui-dist/assets/inter-latin-400-normal-CyCys3Eg.woff +0 -0
  52. package/ui-dist/assets/inter-latin-ext-400-normal-77YHD8bZ.woff +0 -0
  53. package/ui-dist/assets/inter-latin-ext-400-normal-C1nco2VV.woff2 +0 -0
  54. package/ui-dist/assets/inter-vietnamese-400-normal-Bbgyi5SW.woff +0 -0
  55. package/ui-dist/assets/inter-vietnamese-400-normal-DMkecbls.woff2 +0 -0
  56. package/ui-dist/assets/ishikawaDiagram-UXIWVN3A-Cz2e8g4P.js +70 -0
  57. package/ui-dist/assets/jetbrains-mono-cyrillic-400-normal-BEIGL1Tu.woff2 +0 -0
  58. package/ui-dist/assets/jetbrains-mono-cyrillic-400-normal-ugxPyKxw.woff +0 -0
  59. package/ui-dist/assets/jetbrains-mono-greek-400-normal-B9oWc5Lo.woff +0 -0
  60. package/ui-dist/assets/jetbrains-mono-greek-400-normal-C190GLew.woff2 +0 -0
  61. package/ui-dist/assets/jetbrains-mono-latin-400-normal-6-qcROiO.woff +0 -0
  62. package/ui-dist/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
  63. package/ui-dist/assets/jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2 +0 -0
  64. package/ui-dist/assets/jetbrains-mono-latin-ext-400-normal-fXTG6kC5.woff +0 -0
  65. package/ui-dist/assets/jetbrains-mono-vietnamese-400-normal-CqNFfHCs.woff +0 -0
  66. package/ui-dist/assets/journeyDiagram-VCZTEJTY-B7EdpiRX.js +139 -0
  67. package/ui-dist/assets/kanban-definition-6JOO6SKY-DiUf0qIs.js +89 -0
  68. package/ui-dist/assets/katex-BzTkCl_B.js +265 -0
  69. package/ui-dist/assets/layout-BhnDrrIT.js +1 -0
  70. package/ui-dist/assets/linear-BDwQpyTv.js +1 -0
  71. package/ui-dist/assets/mermaid.core-BR4XzyQe.js +303 -0
  72. package/ui-dist/assets/min-BJhF9j1-.js +1 -0
  73. package/ui-dist/assets/mindmap-definition-QFDTVHPH-D05ylhL6.js +96 -0
  74. package/ui-dist/assets/minus-M76p8_Mr.js +1 -0
  75. package/ui-dist/assets/ordinal-Cboi1Yqb.js +1 -0
  76. package/ui-dist/assets/pieDiagram-DEJITSTG-Bn-HlZLK.js +30 -0
  77. package/ui-dist/assets/proxy-B7DZsNQK.js +1 -0
  78. package/ui-dist/assets/quadrantDiagram-34T5L4WZ-BElRpUWb.js +7 -0
  79. package/ui-dist/assets/requirementDiagram-MS252O5E-CHPWxs3l.js +84 -0
  80. package/ui-dist/assets/sankeyDiagram-XADWPNL6-tlvafq0R.js +10 -0
  81. package/ui-dist/assets/sequenceDiagram-FGHM5R23-FgarYdCI.js +157 -0
  82. package/ui-dist/assets/sprint.lazy-CPHJj3lM.js +1 -0
  83. package/ui-dist/assets/stateDiagram-FHFEXIEX-BMEGKFsF.js +1 -0
  84. package/ui-dist/assets/stateDiagram-v2-QKLJ7IA2-BzoNePd4.js +1 -0
  85. package/ui-dist/assets/timeline-definition-GMOUNBTQ-REImLpEb.js +120 -0
  86. package/ui-dist/assets/timeline.lazy-BY5ZUkY-.js +1 -0
  87. package/ui-dist/assets/tooltip-DA8LKiqR.js +1 -0
  88. package/ui-dist/assets/validators-2LNt2eLU.js +1 -0
  89. package/ui-dist/assets/vennDiagram-DHZGUBPP-DcFGfj6d.js +34 -0
  90. package/ui-dist/assets/wardley-RL74JXVD-B9TLQgzI.js +162 -0
  91. package/ui-dist/assets/wardleyDiagram-NUSXRM2D-Hcgh3jSX.js +20 -0
  92. package/ui-dist/assets/x-CPRWsjef.js +1 -0
  93. package/ui-dist/assets/xychartDiagram-5P7HB3ND-BTe2ICiH.js +7 -0
  94. package/ui-dist/favicon.ico +0 -0
  95. package/ui-dist/index.html +32 -0
  96. package/ui-dist/logo192.png +0 -0
  97. package/ui-dist/logo512.png +0 -0
  98. package/ui-dist/manifest.json +25 -0
  99. package/ui-dist/robots.txt +3 -0
@@ -0,0 +1,12 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-BR4XzyQe.js","assets/index-1QFQcLya.js","assets/index-cvXQBc8Y.css"])))=>i.map(i=>d[i]);
2
+ import{q as Ho,c as Ke,g as Pn,R as Nt,b as ye,j as u,z as ma,r as T,a as ha,P as Se,u as Bn,d as me,e as nn,A as rt,B as mt,f as zo,C as is,E as Yo,F as Go,G as Ko,H as $o,D as Wo,S as jo,i as ce,m as qo,L as Vo,n as Xo,p as Qo,o as os,I as Zo,_ as Jo,J as cs,l as ec,k as tc}from"./index-1QFQcLya.js";import{C as Da,u as va,w as Cn,T as us,a as nc}from"./validators-2LNt2eLU.js";import{f as ac,l as rc,R as sc,A as ic,c as ls,V as oc,C as cc,a as uc,m as Pe}from"./proxy-B7DZsNQK.js";import{F as lc,C as hr,m as mn,a as hn,e as dc,f as Ma,p as Er,b as pr,n as br,h as Un,s as an,o as Ea,c as fc,d as mc,g as Rt,v as ds,i as fs,j as gr,k as hc,r as Ec,M as ms}from"./index-BvVxlmMK.js";import{X as pc}from"./x-CPRWsjef.js";import{C as pa}from"./chevron-right-C3gMQbwP.js";function bc(e){return ac({queryKey:Ho.document(e),queryFn:()=>rc(e),enabled:!!e,retry:1})}const gc=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],_c=Ke("arrow-down",gc);const Tc=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Nc=Ke("arrow-left",Tc);const Ac=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ka=Ke("chevron-down",Ac);const Sc=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],xc=Ke("chevron-up",Sc);const Cc=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],_r=Ke("circle-x",Cc);const Ic=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Oc=Ke("copy",Ic);const Rc=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],yc=Ke("file-text",Rc);const Lc=[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]],wc=Ke("git-fork",Lc);const Dc=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],vc=Ke("lightbulb",Dc);const Mc=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],kc=Ke("shield-alert",Mc);const Pc=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Bc=Ke("shield-check",Pc);const Uc=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Tr=Ke("shield",Uc);function Fc(e){const t=e+"CollectionProvider",[n,a]=Pn(t),[s,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=g=>{const{scope:A,children:x}=g,I=Nt.useRef(null),R=Nt.useRef(new Map).current;return u.jsx(s,{scope:A,itemMap:R,collectionRef:I,children:x})};o.displayName=t;const c=e+"CollectionSlot",l=ma(c),f=Nt.forwardRef((g,A)=>{const{scope:x,children:I}=g,R=i(c,x),k=ye(A,R.collectionRef);return u.jsx(l,{ref:k,children:I})});f.displayName=c;const E=e+"CollectionItemSlot",b="data-radix-collection-item",_=ma(E),S=Nt.forwardRef((g,A)=>{const{scope:x,children:I,...R}=g,k=Nt.useRef(null),H=ye(A,k),U=i(E,x);return Nt.useEffect(()=>(U.itemMap.set(k,{ref:k,...R}),()=>{U.itemMap.delete(k)})),u.jsx(_,{[b]:"",ref:H,children:I})});S.displayName=E;function O(g){const A=i(e+"CollectionConsumer",g);return Nt.useCallback(()=>{const I=A.collectionRef.current;if(!I)return[];const R=Array.from(I.querySelectorAll(`[${b}]`));return Array.from(A.itemMap.values()).sort((U,v)=>R.indexOf(U.ref.current)-R.indexOf(v.ref.current))},[A.collectionRef,A.itemMap])}return[{Provider:o,Slot:f,ItemSlot:S},O,a]}var Fn="Collapsible",[Hc]=Pn(Fn),[zc,Pa]=Hc(Fn),hs=T.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:a,defaultOpen:s,disabled:i,onOpenChange:o,...c}=e,[l,f]=ha({prop:a,defaultProp:s??!1,onChange:o,caller:Fn});return u.jsx(zc,{scope:n,disabled:i,contentId:Bn(),open:l,onOpenToggle:T.useCallback(()=>f(E=>!E),[f]),children:u.jsx(Se.div,{"data-state":Ua(l),"data-disabled":i?"":void 0,...c,ref:t})})});hs.displayName=Fn;var Es="CollapsibleTrigger",ps=T.forwardRef((e,t)=>{const{__scopeCollapsible:n,...a}=e,s=Pa(Es,n);return u.jsx(Se.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":Ua(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...a,ref:t,onClick:me(e.onClick,s.onOpenToggle)})});ps.displayName=Es;var Ba="CollapsibleContent",bs=T.forwardRef((e,t)=>{const{forceMount:n,...a}=e,s=Pa(Ba,e.__scopeCollapsible);return u.jsx(nn,{present:n||s.open,children:({present:i})=>u.jsx(Yc,{...a,ref:t,present:i})})});bs.displayName=Ba;var Yc=T.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:a,children:s,...i}=e,o=Pa(Ba,n),[c,l]=T.useState(a),f=T.useRef(null),E=ye(t,f),b=T.useRef(0),_=b.current,S=T.useRef(0),O=S.current,g=o.open||c,A=T.useRef(g),x=T.useRef(void 0);return T.useEffect(()=>{const I=requestAnimationFrame(()=>A.current=!1);return()=>cancelAnimationFrame(I)},[]),rt(()=>{const I=f.current;if(I){x.current=x.current||{transitionDuration:I.style.transitionDuration,animationName:I.style.animationName},I.style.transitionDuration="0s",I.style.animationName="none";const R=I.getBoundingClientRect();b.current=R.height,S.current=R.width,A.current||(I.style.transitionDuration=x.current.transitionDuration,I.style.animationName=x.current.animationName),l(a)}},[o.open,a]),u.jsx(Se.div,{"data-state":Ua(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!g,...i,ref:E,style:{"--radix-collapsible-content-height":_?`${_}px`:void 0,"--radix-collapsible-content-width":O?`${O}px`:void 0,...e.style},children:g&&s})});function Ua(e){return e?"open":"closed"}var Gc=hs,Kc=T.createContext(void 0);function gs(e){const t=T.useContext(Kc);return e||t||"ltr"}function $c(e){const t=T.useRef({value:e,previous:e});return T.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function ba(e,[t,n]){return Math.min(n,Math.max(t,e))}function Wc(e,t){return T.useReducer((n,a)=>t[n][a]??n,e)}var Fa="ScrollArea",[_s]=Pn(Fa),[jc,$e]=_s(Fa),Ts=T.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:a="hover",dir:s,scrollHideDelay:i=600,...o}=e,[c,l]=T.useState(null),[f,E]=T.useState(null),[b,_]=T.useState(null),[S,O]=T.useState(null),[g,A]=T.useState(null),[x,I]=T.useState(0),[R,k]=T.useState(0),[H,U]=T.useState(!1),[v,P]=T.useState(!1),Y=ye(t,ie=>l(ie)),Q=gs(s);return u.jsx(jc,{scope:n,type:a,dir:Q,scrollHideDelay:i,scrollArea:c,viewport:f,onViewportChange:E,content:b,onContentChange:_,scrollbarX:S,onScrollbarXChange:O,scrollbarXEnabled:H,onScrollbarXEnabledChange:U,scrollbarY:g,onScrollbarYChange:A,scrollbarYEnabled:v,onScrollbarYEnabledChange:P,onCornerWidthChange:I,onCornerHeightChange:k,children:u.jsx(Se.div,{dir:Q,...o,ref:Y,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":R+"px",...e.style}})})});Ts.displayName=Fa;var Ns="ScrollAreaViewport",As=T.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:a,nonce:s,...i}=e,o=$e(Ns,n),c=T.useRef(null),l=ye(t,c,o.onViewportChange);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),u.jsx(Se.div,{"data-radix-scroll-area-viewport":"",...i,ref:l,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style},children:u.jsx("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"},children:a})})]})});As.displayName=Ns;var st="ScrollAreaScrollbar",Ss=T.forwardRef((e,t)=>{const{forceMount:n,...a}=e,s=$e(st,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:o}=s,c=e.orientation==="horizontal";return T.useEffect(()=>(c?i(!0):o(!0),()=>{c?i(!1):o(!1)}),[c,i,o]),s.type==="hover"?u.jsx(qc,{...a,ref:t,forceMount:n}):s.type==="scroll"?u.jsx(Vc,{...a,ref:t,forceMount:n}):s.type==="auto"?u.jsx(xs,{...a,ref:t,forceMount:n}):s.type==="always"?u.jsx(Ha,{...a,ref:t}):null});Ss.displayName=st;var qc=T.forwardRef((e,t)=>{const{forceMount:n,...a}=e,s=$e(st,e.__scopeScrollArea),[i,o]=T.useState(!1);return T.useEffect(()=>{const c=s.scrollArea;let l=0;if(c){const f=()=>{window.clearTimeout(l),o(!0)},E=()=>{l=window.setTimeout(()=>o(!1),s.scrollHideDelay)};return c.addEventListener("pointerenter",f),c.addEventListener("pointerleave",E),()=>{window.clearTimeout(l),c.removeEventListener("pointerenter",f),c.removeEventListener("pointerleave",E)}}},[s.scrollArea,s.scrollHideDelay]),u.jsx(nn,{present:n||i,children:u.jsx(xs,{"data-state":i?"visible":"hidden",...a,ref:t})})}),Vc=T.forwardRef((e,t)=>{const{forceMount:n,...a}=e,s=$e(st,e.__scopeScrollArea),i=e.orientation==="horizontal",o=zn(()=>l("SCROLL_END"),100),[c,l]=Wc("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return T.useEffect(()=>{if(c==="idle"){const f=window.setTimeout(()=>l("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(f)}},[c,s.scrollHideDelay,l]),T.useEffect(()=>{const f=s.viewport,E=i?"scrollLeft":"scrollTop";if(f){let b=f[E];const _=()=>{const S=f[E];b!==S&&(l("SCROLL"),o()),b=S};return f.addEventListener("scroll",_),()=>f.removeEventListener("scroll",_)}},[s.viewport,i,l,o]),u.jsx(nn,{present:n||c!=="hidden",children:u.jsx(Ha,{"data-state":c==="hidden"?"hidden":"visible",...a,ref:t,onPointerEnter:me(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:me(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),xs=T.forwardRef((e,t)=>{const n=$e(st,e.__scopeScrollArea),{forceMount:a,...s}=e,[i,o]=T.useState(!1),c=e.orientation==="horizontal",l=zn(()=>{if(n.viewport){const f=n.viewport.offsetWidth<n.viewport.scrollWidth,E=n.viewport.offsetHeight<n.viewport.scrollHeight;o(c?f:E)}},10);return Pt(n.viewport,l),Pt(n.content,l),u.jsx(nn,{present:a||i,children:u.jsx(Ha,{"data-state":i?"visible":"hidden",...s,ref:t})})}),Ha=T.forwardRef((e,t)=>{const{orientation:n="vertical",...a}=e,s=$e(st,e.__scopeScrollArea),i=T.useRef(null),o=T.useRef(0),[c,l]=T.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),f=ys(c.viewport,c.content),E={...a,sizes:c,onSizesChange:l,hasThumb:f>0&&f<1,onThumbChange:_=>i.current=_,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:_=>o.current=_};function b(_,S){return tu(_,o.current,c,S)}return n==="horizontal"?u.jsx(Xc,{...E,ref:t,onThumbPositionChange:()=>{if(s.viewport&&i.current){const _=s.viewport.scrollLeft,S=Nr(_,c,s.dir);i.current.style.transform=`translate3d(${S}px, 0, 0)`}},onWheelScroll:_=>{s.viewport&&(s.viewport.scrollLeft=_)},onDragScroll:_=>{s.viewport&&(s.viewport.scrollLeft=b(_,s.dir))}}):n==="vertical"?u.jsx(Qc,{...E,ref:t,onThumbPositionChange:()=>{if(s.viewport&&i.current){const _=s.viewport.scrollTop,S=Nr(_,c);i.current.style.transform=`translate3d(0, ${S}px, 0)`}},onWheelScroll:_=>{s.viewport&&(s.viewport.scrollTop=_)},onDragScroll:_=>{s.viewport&&(s.viewport.scrollTop=b(_))}}):null}),Xc=T.forwardRef((e,t)=>{const{sizes:n,onSizesChange:a,...s}=e,i=$e(st,e.__scopeScrollArea),[o,c]=T.useState(),l=T.useRef(null),f=ye(t,l,i.onScrollbarXChange);return T.useEffect(()=>{l.current&&c(getComputedStyle(l.current))},[l]),u.jsx(Is,{"data-orientation":"horizontal",...s,ref:f,sizes:n,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Hn(n)+"px",...e.style},onThumbPointerDown:E=>e.onThumbPointerDown(E.x),onDragScroll:E=>e.onDragScroll(E.x),onWheelScroll:(E,b)=>{if(i.viewport){const _=i.viewport.scrollLeft+E.deltaX;e.onWheelScroll(_),ws(_,b)&&E.preventDefault()}},onResize:()=>{l.current&&i.viewport&&o&&a({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:On(o.paddingLeft),paddingEnd:On(o.paddingRight)}})}})}),Qc=T.forwardRef((e,t)=>{const{sizes:n,onSizesChange:a,...s}=e,i=$e(st,e.__scopeScrollArea),[o,c]=T.useState(),l=T.useRef(null),f=ye(t,l,i.onScrollbarYChange);return T.useEffect(()=>{l.current&&c(getComputedStyle(l.current))},[l]),u.jsx(Is,{"data-orientation":"vertical",...s,ref:f,sizes:n,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Hn(n)+"px",...e.style},onThumbPointerDown:E=>e.onThumbPointerDown(E.y),onDragScroll:E=>e.onDragScroll(E.y),onWheelScroll:(E,b)=>{if(i.viewport){const _=i.viewport.scrollTop+E.deltaY;e.onWheelScroll(_),ws(_,b)&&E.preventDefault()}},onResize:()=>{l.current&&i.viewport&&o&&a({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:On(o.paddingTop),paddingEnd:On(o.paddingBottom)}})}})}),[Zc,Cs]=_s(st),Is=T.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:a,hasThumb:s,onThumbChange:i,onThumbPointerUp:o,onThumbPointerDown:c,onThumbPositionChange:l,onDragScroll:f,onWheelScroll:E,onResize:b,..._}=e,S=$e(st,n),[O,g]=T.useState(null),A=ye(t,Y=>g(Y)),x=T.useRef(null),I=T.useRef(""),R=S.viewport,k=a.content-a.viewport,H=mt(E),U=mt(l),v=zn(b,10);function P(Y){if(x.current){const Q=Y.clientX-x.current.left,ie=Y.clientY-x.current.top;f({x:Q,y:ie})}}return T.useEffect(()=>{const Y=Q=>{const ie=Q.target;O?.contains(ie)&&H(Q,k)};return document.addEventListener("wheel",Y,{passive:!1}),()=>document.removeEventListener("wheel",Y,{passive:!1})},[R,O,k,H]),T.useEffect(U,[a,U]),Pt(O,v),Pt(S.content,v),u.jsx(Zc,{scope:n,scrollbar:O,hasThumb:s,onThumbChange:mt(i),onThumbPointerUp:mt(o),onThumbPositionChange:U,onThumbPointerDown:mt(c),children:u.jsx(Se.div,{..._,ref:A,style:{position:"absolute",..._.style},onPointerDown:me(e.onPointerDown,Y=>{Y.button===0&&(Y.target.setPointerCapture(Y.pointerId),x.current=O.getBoundingClientRect(),I.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),P(Y))}),onPointerMove:me(e.onPointerMove,P),onPointerUp:me(e.onPointerUp,Y=>{const Q=Y.target;Q.hasPointerCapture(Y.pointerId)&&Q.releasePointerCapture(Y.pointerId),document.body.style.webkitUserSelect=I.current,S.viewport&&(S.viewport.style.scrollBehavior=""),x.current=null})})})}),In="ScrollAreaThumb",Os=T.forwardRef((e,t)=>{const{forceMount:n,...a}=e,s=Cs(In,e.__scopeScrollArea);return u.jsx(nn,{present:n||s.hasThumb,children:u.jsx(Jc,{ref:t,...a})})}),Jc=T.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:a,...s}=e,i=$e(In,n),o=Cs(In,n),{onThumbPositionChange:c}=o,l=ye(t,b=>o.onThumbChange(b)),f=T.useRef(void 0),E=zn(()=>{f.current&&(f.current(),f.current=void 0)},100);return T.useEffect(()=>{const b=i.viewport;if(b){const _=()=>{if(E(),!f.current){const S=nu(b,c);f.current=S,c()}};return c(),b.addEventListener("scroll",_),()=>b.removeEventListener("scroll",_)}},[i.viewport,E,c]),u.jsx(Se.div,{"data-state":o.hasThumb?"visible":"hidden",...s,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...a},onPointerDownCapture:me(e.onPointerDownCapture,b=>{const S=b.target.getBoundingClientRect(),O=b.clientX-S.left,g=b.clientY-S.top;o.onThumbPointerDown({x:O,y:g})}),onPointerUp:me(e.onPointerUp,o.onThumbPointerUp)})});Os.displayName=In;var za="ScrollAreaCorner",Rs=T.forwardRef((e,t)=>{const n=$e(za,e.__scopeScrollArea),a=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&a?u.jsx(eu,{...e,ref:t}):null});Rs.displayName=za;var eu=T.forwardRef((e,t)=>{const{__scopeScrollArea:n,...a}=e,s=$e(za,n),[i,o]=T.useState(0),[c,l]=T.useState(0),f=!!(i&&c);return Pt(s.scrollbarX,()=>{const E=s.scrollbarX?.offsetHeight||0;s.onCornerHeightChange(E),l(E)}),Pt(s.scrollbarY,()=>{const E=s.scrollbarY?.offsetWidth||0;s.onCornerWidthChange(E),o(E)}),f?u.jsx(Se.div,{...a,ref:t,style:{width:i,height:c,position:"absolute",right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function On(e){return e?parseInt(e,10):0}function ys(e,t){const n=e/t;return isNaN(n)?0:n}function Hn(e){const t=ys(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,a=(e.scrollbar.size-n)*t;return Math.max(a,18)}function tu(e,t,n,a="ltr"){const s=Hn(n),i=s/2,o=t||i,c=s-o,l=n.scrollbar.paddingStart+o,f=n.scrollbar.size-n.scrollbar.paddingEnd-c,E=n.content-n.viewport,b=a==="ltr"?[0,E]:[E*-1,0];return Ls([l,f],b)(e)}function Nr(e,t,n="ltr"){const a=Hn(t),s=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-s,o=t.content-t.viewport,c=i-a,l=n==="ltr"?[0,o]:[o*-1,0],f=ba(e,l);return Ls([0,o],[0,c])(f)}function Ls(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const a=(t[1]-t[0])/(e[1]-e[0]);return t[0]+a*(n-e[0])}}function ws(e,t){return e>0&&e<t}var nu=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},a=0;return(function s(){const i={left:e.scrollLeft,top:e.scrollTop},o=n.left!==i.left,c=n.top!==i.top;(o||c)&&t(),n=i,a=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(a)};function zn(e,t){const n=mt(e),a=T.useRef(0);return T.useEffect(()=>()=>window.clearTimeout(a.current),[]),T.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(n,t)},[n,t])}function Pt(e,t){const n=mt(t);rt(()=>{let a=0;if(e){const s=new ResizeObserver(()=>{cancelAnimationFrame(a),a=window.requestAnimationFrame(n)});return s.observe(e),()=>{window.cancelAnimationFrame(a),s.unobserve(e)}}},[e,n])}var au=Ts,ru=As,su=Rs,iu=[" ","Enter","ArrowUp","ArrowDown"],ou=[" ","Enter"],It="Select",[Yn,Gn,cu]=Fc(It),[Ut]=Pn(It,[cu,ls]),Kn=ls(),[uu,Et]=Ut(It),[lu,du]=Ut(It),Ds=e=>{const{__scopeSelect:t,children:n,open:a,defaultOpen:s,onOpenChange:i,value:o,defaultValue:c,onValueChange:l,dir:f,name:E,autoComplete:b,disabled:_,required:S,form:O}=e,g=Kn(t),[A,x]=T.useState(null),[I,R]=T.useState(null),[k,H]=T.useState(!1),U=gs(f),[v,P]=ha({prop:a,defaultProp:s??!1,onChange:i,caller:It}),[Y,Q]=ha({prop:o,defaultProp:c,onChange:l,caller:It}),ie=T.useRef(null),pe=A?O||!!A.closest("form"):!0,[xe,te]=T.useState(new Set),re=Array.from(xe).map(ne=>ne.props.value).join(";");return u.jsx(sc,{...g,children:u.jsxs(uu,{required:S,scope:t,trigger:A,onTriggerChange:x,valueNode:I,onValueNodeChange:R,valueNodeHasChildren:k,onValueNodeHasChildrenChange:H,contentId:Bn(),value:Y,onValueChange:Q,open:v,onOpenChange:P,dir:U,triggerPointerDownPosRef:ie,disabled:_,children:[u.jsx(Yn.Provider,{scope:t,children:u.jsx(lu,{scope:e.__scopeSelect,onNativeOptionAdd:T.useCallback(ne=>{te(Ce=>new Set(Ce).add(ne))},[]),onNativeOptionRemove:T.useCallback(ne=>{te(Ce=>{const V=new Set(Ce);return V.delete(ne),V})},[]),children:n})}),pe?u.jsxs(ei,{"aria-hidden":!0,required:S,tabIndex:-1,name:E,autoComplete:b,value:Y,onChange:ne=>Q(ne.target.value),disabled:_,form:O,children:[Y===void 0?u.jsx("option",{value:""}):null,Array.from(xe)]},re):null]})})};Ds.displayName=It;var vs="SelectTrigger",Ms=T.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:a=!1,...s}=e,i=Kn(n),o=Et(vs,n),c=o.disabled||a,l=ye(t,o.onTriggerChange),f=Gn(n),E=T.useRef("touch"),[b,_,S]=ni(g=>{const A=f().filter(R=>!R.disabled),x=A.find(R=>R.value===o.value),I=ai(A,g,x);I!==void 0&&o.onValueChange(I.value)}),O=g=>{c||(o.onOpenChange(!0),S()),g&&(o.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return u.jsx(ic,{asChild:!0,...i,children:u.jsx(Se.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":ti(o.value)?"":void 0,...s,ref:l,onClick:me(s.onClick,g=>{g.currentTarget.focus(),E.current!=="mouse"&&O(g)}),onPointerDown:me(s.onPointerDown,g=>{E.current=g.pointerType;const A=g.target;A.hasPointerCapture(g.pointerId)&&A.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(O(g),g.preventDefault())}),onKeyDown:me(s.onKeyDown,g=>{const A=b.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&_(g.key),!(A&&g.key===" ")&&iu.includes(g.key)&&(O(),g.preventDefault())})})})});Ms.displayName=vs;var ks="SelectValue",Ps=T.forwardRef((e,t)=>{const{__scopeSelect:n,className:a,style:s,children:i,placeholder:o="",...c}=e,l=Et(ks,n),{onValueNodeHasChildrenChange:f}=l,E=i!==void 0,b=ye(t,l.onValueNodeChange);return rt(()=>{f(E)},[f,E]),u.jsx(Se.span,{...c,ref:b,style:{pointerEvents:"none"},children:ti(l.value)?u.jsx(u.Fragment,{children:o}):i})});Ps.displayName=ks;var fu="SelectIcon",Bs=T.forwardRef((e,t)=>{const{__scopeSelect:n,children:a,...s}=e;return u.jsx(Se.span,{"aria-hidden":!0,...s,ref:t,children:a||"▼"})});Bs.displayName=fu;var mu="SelectPortal",Us=e=>u.jsx(zo,{asChild:!0,...e});Us.displayName=mu;var Ot="SelectContent",Fs=T.forwardRef((e,t)=>{const n=Et(Ot,e.__scopeSelect),[a,s]=T.useState();if(rt(()=>{s(new DocumentFragment)},[]),!n.open){const i=a;return i?is.createPortal(u.jsx(Hs,{scope:e.__scopeSelect,children:u.jsx(Yn.Slot,{scope:e.__scopeSelect,children:u.jsx("div",{children:e.children})})}),i):null}return u.jsx(zs,{...e,ref:t})});Fs.displayName=Ot;var Xe=10,[Hs,pt]=Ut(Ot),hu="SelectContentImpl",Eu=ma("SelectContent.RemoveScroll"),zs=T.forwardRef((e,t)=>{const{__scopeSelect:n,position:a="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:o,side:c,sideOffset:l,align:f,alignOffset:E,arrowPadding:b,collisionBoundary:_,collisionPadding:S,sticky:O,hideWhenDetached:g,avoidCollisions:A,...x}=e,I=Et(Ot,n),[R,k]=T.useState(null),[H,U]=T.useState(null),v=ye(t,W=>k(W)),[P,Y]=T.useState(null),[Q,ie]=T.useState(null),pe=Gn(n),[xe,te]=T.useState(!1),re=T.useRef(!1);T.useEffect(()=>{if(R)return Yo(R)},[R]),Go();const ne=T.useCallback(W=>{const[he,...Me]=pe().map(be=>be.ref.current),[ae]=Me.slice(-1),le=document.activeElement;for(const be of W)if(be===le||(be?.scrollIntoView({block:"nearest"}),be===he&&H&&(H.scrollTop=0),be===ae&&H&&(H.scrollTop=H.scrollHeight),be?.focus(),document.activeElement!==le))return},[pe,H]),Ce=T.useCallback(()=>ne([P,R]),[ne,P,R]);T.useEffect(()=>{xe&&Ce()},[xe,Ce]);const{onOpenChange:V,triggerPointerDownPosRef:ue}=I;T.useEffect(()=>{if(R){let W={x:0,y:0};const he=ae=>{W={x:Math.abs(Math.round(ae.pageX)-(ue.current?.x??0)),y:Math.abs(Math.round(ae.pageY)-(ue.current?.y??0))}},Me=ae=>{W.x<=10&&W.y<=10?ae.preventDefault():R.contains(ae.target)||V(!1),document.removeEventListener("pointermove",he),ue.current=null};return ue.current!==null&&(document.addEventListener("pointermove",he),document.addEventListener("pointerup",Me,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",he),document.removeEventListener("pointerup",Me,{capture:!0})}}},[R,V,ue]),T.useEffect(()=>{const W=()=>V(!1);return window.addEventListener("blur",W),window.addEventListener("resize",W),()=>{window.removeEventListener("blur",W),window.removeEventListener("resize",W)}},[V]);const[Oe,ge]=ni(W=>{const he=pe().filter(le=>!le.disabled),Me=he.find(le=>le.ref.current===document.activeElement),ae=ai(he,W,Me);ae&&setTimeout(()=>ae.ref.current.focus())}),_e=T.useCallback((W,he,Me)=>{const ae=!re.current&&!Me;(I.value!==void 0&&I.value===he||ae)&&(Y(W),ae&&(re.current=!0))},[I.value]),ze=T.useCallback(()=>R?.focus(),[R]),Ze=T.useCallback((W,he,Me)=>{const ae=!re.current&&!Me;(I.value!==void 0&&I.value===he||ae)&&ie(W)},[I.value]),it=a==="popper"?ga:Ys,We=it===ga?{side:c,sideOffset:l,align:f,alignOffset:E,arrowPadding:b,collisionBoundary:_,collisionPadding:S,sticky:O,hideWhenDetached:g,avoidCollisions:A}:{};return u.jsx(Hs,{scope:n,content:R,viewport:H,onViewportChange:U,itemRefCallback:_e,selectedItem:P,onItemLeave:ze,itemTextRefCallback:Ze,focusSelectedItem:Ce,selectedItemText:Q,position:a,isPositioned:xe,searchRef:Oe,children:u.jsx(Ko,{as:Eu,allowPinchZoom:!0,children:u.jsx($o,{asChild:!0,trapped:I.open,onMountAutoFocus:W=>{W.preventDefault()},onUnmountAutoFocus:me(s,W=>{I.trigger?.focus({preventScroll:!0}),W.preventDefault()}),children:u.jsx(Wo,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:W=>W.preventDefault(),onDismiss:()=>I.onOpenChange(!1),children:u.jsx(it,{role:"listbox",id:I.contentId,"data-state":I.open?"open":"closed",dir:I.dir,onContextMenu:W=>W.preventDefault(),...x,...We,onPlaced:()=>te(!0),ref:v,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:me(x.onKeyDown,W=>{const he=W.ctrlKey||W.altKey||W.metaKey;if(W.key==="Tab"&&W.preventDefault(),!he&&W.key.length===1&&ge(W.key),["ArrowUp","ArrowDown","Home","End"].includes(W.key)){let ae=pe().filter(le=>!le.disabled).map(le=>le.ref.current);if(["ArrowUp","End"].includes(W.key)&&(ae=ae.slice().reverse()),["ArrowUp","ArrowDown"].includes(W.key)){const le=W.target,be=ae.indexOf(le);ae=ae.slice(be+1)}setTimeout(()=>ne(ae)),W.preventDefault()}})})})})})})});zs.displayName=hu;var pu="SelectItemAlignedPosition",Ys=T.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:a,...s}=e,i=Et(Ot,n),o=pt(Ot,n),[c,l]=T.useState(null),[f,E]=T.useState(null),b=ye(t,v=>E(v)),_=Gn(n),S=T.useRef(!1),O=T.useRef(!0),{viewport:g,selectedItem:A,selectedItemText:x,focusSelectedItem:I}=o,R=T.useCallback(()=>{if(i.trigger&&i.valueNode&&c&&f&&g&&A&&x){const v=i.trigger.getBoundingClientRect(),P=f.getBoundingClientRect(),Y=i.valueNode.getBoundingClientRect(),Q=x.getBoundingClientRect();if(i.dir!=="rtl"){const le=Q.left-P.left,be=Y.left-le,je=v.left-be,qe=v.width+je,bt=Math.max(qe,P.width),ee=window.innerWidth-Xe,Je=ba(be,[Xe,Math.max(Xe,ee-bt)]);c.style.minWidth=qe+"px",c.style.left=Je+"px"}else{const le=P.right-Q.right,be=window.innerWidth-Y.right-le,je=window.innerWidth-v.right-be,qe=v.width+je,bt=Math.max(qe,P.width),ee=window.innerWidth-Xe,Je=ba(be,[Xe,Math.max(Xe,ee-bt)]);c.style.minWidth=qe+"px",c.style.right=Je+"px"}const ie=_(),pe=window.innerHeight-Xe*2,xe=g.scrollHeight,te=window.getComputedStyle(f),re=parseInt(te.borderTopWidth,10),ne=parseInt(te.paddingTop,10),Ce=parseInt(te.borderBottomWidth,10),V=parseInt(te.paddingBottom,10),ue=re+ne+xe+V+Ce,Oe=Math.min(A.offsetHeight*5,ue),ge=window.getComputedStyle(g),_e=parseInt(ge.paddingTop,10),ze=parseInt(ge.paddingBottom,10),Ze=v.top+v.height/2-Xe,it=pe-Ze,We=A.offsetHeight/2,W=A.offsetTop+We,he=re+ne+W,Me=ue-he;if(he<=Ze){const le=ie.length>0&&A===ie[ie.length-1].ref.current;c.style.bottom="0px";const be=f.clientHeight-g.offsetTop-g.offsetHeight,je=Math.max(it,We+(le?ze:0)+be+Ce),qe=he+je;c.style.height=qe+"px"}else{const le=ie.length>0&&A===ie[0].ref.current;c.style.top="0px";const je=Math.max(Ze,re+g.offsetTop+(le?_e:0)+We)+Me;c.style.height=je+"px",g.scrollTop=he-Ze+g.offsetTop}c.style.margin=`${Xe}px 0`,c.style.minHeight=Oe+"px",c.style.maxHeight=pe+"px",a?.(),requestAnimationFrame(()=>S.current=!0)}},[_,i.trigger,i.valueNode,c,f,g,A,x,i.dir,a]);rt(()=>R(),[R]);const[k,H]=T.useState();rt(()=>{f&&H(window.getComputedStyle(f).zIndex)},[f]);const U=T.useCallback(v=>{v&&O.current===!0&&(R(),I?.(),O.current=!1)},[R,I]);return u.jsx(gu,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:S,onScrollButtonChange:U,children:u.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:u.jsx(Se.div,{...s,ref:b,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});Ys.displayName=pu;var bu="SelectPopperPosition",ga=T.forwardRef((e,t)=>{const{__scopeSelect:n,align:a="start",collisionPadding:s=Xe,...i}=e,o=Kn(n);return u.jsx(cc,{...o,...i,ref:t,align:a,collisionPadding:s,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});ga.displayName=bu;var[gu,Ya]=Ut(Ot,{}),_a="SelectViewport",Gs=T.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:a,...s}=e,i=pt(_a,n),o=Ya(_a,n),c=ye(t,i.onViewportChange),l=T.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),u.jsx(Yn.Slot,{scope:n,children:u.jsx(Se.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:me(s.onScroll,f=>{const E=f.currentTarget,{contentWrapper:b,shouldExpandOnScrollRef:_}=o;if(_?.current&&b){const S=Math.abs(l.current-E.scrollTop);if(S>0){const O=window.innerHeight-Xe*2,g=parseFloat(b.style.minHeight),A=parseFloat(b.style.height),x=Math.max(g,A);if(x<O){const I=x+S,R=Math.min(O,I),k=I-R;b.style.height=R+"px",b.style.bottom==="0px"&&(E.scrollTop=k>0?k:0,b.style.justifyContent="flex-end")}}}l.current=E.scrollTop})})})]})});Gs.displayName=_a;var Ks="SelectGroup",[_u,Tu]=Ut(Ks),Nu=T.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,s=Bn();return u.jsx(_u,{scope:n,id:s,children:u.jsx(Se.div,{role:"group","aria-labelledby":s,...a,ref:t})})});Nu.displayName=Ks;var $s="SelectLabel",Au=T.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,s=Tu($s,n);return u.jsx(Se.div,{id:s.id,...a,ref:t})});Au.displayName=$s;var Rn="SelectItem",[Su,Ws]=Ut(Rn),js=T.forwardRef((e,t)=>{const{__scopeSelect:n,value:a,disabled:s=!1,textValue:i,...o}=e,c=Et(Rn,n),l=pt(Rn,n),f=c.value===a,[E,b]=T.useState(i??""),[_,S]=T.useState(!1),O=ye(t,I=>l.itemRefCallback?.(I,a,s)),g=Bn(),A=T.useRef("touch"),x=()=>{s||(c.onValueChange(a),c.onOpenChange(!1))};if(a==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(Su,{scope:n,value:a,disabled:s,textId:g,isSelected:f,onItemTextChange:T.useCallback(I=>{b(R=>R||(I?.textContent??"").trim())},[]),children:u.jsx(Yn.ItemSlot,{scope:n,value:a,disabled:s,textValue:E,children:u.jsx(Se.div,{role:"option","aria-labelledby":g,"data-highlighted":_?"":void 0,"aria-selected":f&&_,"data-state":f?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...o,ref:O,onFocus:me(o.onFocus,()=>S(!0)),onBlur:me(o.onBlur,()=>S(!1)),onClick:me(o.onClick,()=>{A.current!=="mouse"&&x()}),onPointerUp:me(o.onPointerUp,()=>{A.current==="mouse"&&x()}),onPointerDown:me(o.onPointerDown,I=>{A.current=I.pointerType}),onPointerMove:me(o.onPointerMove,I=>{A.current=I.pointerType,s?l.onItemLeave?.():A.current==="mouse"&&I.currentTarget.focus({preventScroll:!0})}),onPointerLeave:me(o.onPointerLeave,I=>{I.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:me(o.onKeyDown,I=>{l.searchRef?.current!==""&&I.key===" "||(ou.includes(I.key)&&x(),I.key===" "&&I.preventDefault())})})})})});js.displayName=Rn;var jt="SelectItemText",qs=T.forwardRef((e,t)=>{const{__scopeSelect:n,className:a,style:s,...i}=e,o=Et(jt,n),c=pt(jt,n),l=Ws(jt,n),f=du(jt,n),[E,b]=T.useState(null),_=ye(t,x=>b(x),l.onItemTextChange,x=>c.itemTextRefCallback?.(x,l.value,l.disabled)),S=E?.textContent,O=T.useMemo(()=>u.jsx("option",{value:l.value,disabled:l.disabled,children:S},l.value),[l.disabled,l.value,S]),{onNativeOptionAdd:g,onNativeOptionRemove:A}=f;return rt(()=>(g(O),()=>A(O)),[g,A,O]),u.jsxs(u.Fragment,{children:[u.jsx(Se.span,{id:l.textId,...i,ref:_}),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren?is.createPortal(i.children,o.valueNode):null]})});qs.displayName=jt;var Vs="SelectItemIndicator",Xs=T.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e;return Ws(Vs,n).isSelected?u.jsx(Se.span,{"aria-hidden":!0,...a,ref:t}):null});Xs.displayName=Vs;var Ta="SelectScrollUpButton",Qs=T.forwardRef((e,t)=>{const n=pt(Ta,e.__scopeSelect),a=Ya(Ta,e.__scopeSelect),[s,i]=T.useState(!1),o=ye(t,a.onScrollButtonChange);return rt(()=>{if(n.viewport&&n.isPositioned){let c=function(){const f=l.scrollTop>0;i(f)};const l=n.viewport;return c(),l.addEventListener("scroll",c),()=>l.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),s?u.jsx(Js,{...e,ref:o,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=n;c&&l&&(c.scrollTop=c.scrollTop-l.offsetHeight)}}):null});Qs.displayName=Ta;var Na="SelectScrollDownButton",Zs=T.forwardRef((e,t)=>{const n=pt(Na,e.__scopeSelect),a=Ya(Na,e.__scopeSelect),[s,i]=T.useState(!1),o=ye(t,a.onScrollButtonChange);return rt(()=>{if(n.viewport&&n.isPositioned){let c=function(){const f=l.scrollHeight-l.clientHeight,E=Math.ceil(l.scrollTop)<f;i(E)};const l=n.viewport;return c(),l.addEventListener("scroll",c),()=>l.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),s?u.jsx(Js,{...e,ref:o,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=n;c&&l&&(c.scrollTop=c.scrollTop+l.offsetHeight)}}):null});Zs.displayName=Na;var Js=T.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:a,...s}=e,i=pt("SelectScrollButton",n),o=T.useRef(null),c=Gn(n),l=T.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return T.useEffect(()=>()=>l(),[l]),rt(()=>{c().find(E=>E.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),u.jsx(Se.div,{"aria-hidden":!0,...s,ref:t,style:{flexShrink:0,...s.style},onPointerDown:me(s.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(a,50))}),onPointerMove:me(s.onPointerMove,()=>{i.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(a,50))}),onPointerLeave:me(s.onPointerLeave,()=>{l()})})}),xu="SelectSeparator",Cu=T.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e;return u.jsx(Se.div,{"aria-hidden":!0,...a,ref:t})});Cu.displayName=xu;var Aa="SelectArrow",Iu=T.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,s=Kn(n),i=Et(Aa,n),o=pt(Aa,n);return i.open&&o.position==="popper"?u.jsx(uc,{...s,...a,ref:t}):null});Iu.displayName=Aa;var Ou="SelectBubbleInput",ei=T.forwardRef(({__scopeSelect:e,value:t,...n},a)=>{const s=T.useRef(null),i=ye(a,s),o=$c(t);return T.useEffect(()=>{const c=s.current;if(!c)return;const l=window.HTMLSelectElement.prototype,E=Object.getOwnPropertyDescriptor(l,"value").set;if(o!==t&&E){const b=new Event("change",{bubbles:!0});E.call(c,t),c.dispatchEvent(b)}},[o,t]),u.jsx(Se.select,{...n,style:{...oc,...n.style},ref:i,defaultValue:t})});ei.displayName=Ou;function ti(e){return e===""||e===void 0}function ni(e){const t=mt(e),n=T.useRef(""),a=T.useRef(0),s=T.useCallback(o=>{const c=n.current+o;t(c),(function l(f){n.current=f,window.clearTimeout(a.current),f!==""&&(a.current=window.setTimeout(()=>l(""),1e3))})(c)},[t]),i=T.useCallback(()=>{n.current="",window.clearTimeout(a.current)},[]);return T.useEffect(()=>()=>window.clearTimeout(a.current),[]),[n,s,i]}function ai(e,t,n){const s=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let o=Ru(e,Math.max(i,0));s.length===1&&(o=o.filter(f=>f!==n));const l=o.find(f=>f.textValue.toLowerCase().startsWith(s.toLowerCase()));return l!==n?l:void 0}function Ru(e,t){return e.map((n,a)=>e[(t+a)%e.length])}var yu=Ds,Lu=Ms,wu=Ps,Du=Bs,vu=Us,Mu=Fs,ku=Gs,Pu=js,Bu=qs,Uu=Xs,Fu=Qs,Hu=Zs;const zu=qo("inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",ghost:"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",link:"text-primary underline-offset-4 [a&]:hover:underline"}},defaultVariants:{variant:"default"}});function yn({className:e,variant:t="default",asChild:n=!1,...a}){const s=n?jo:"span";return u.jsx(s,{"data-slot":"badge","data-variant":t,className:ce(zu({variant:t}),e),...a})}function ri({...e}){return u.jsx(Gc,{"data-slot":"collapsible",...e})}function si({...e}){return u.jsx(ps,{"data-slot":"collapsible-trigger",...e})}function ii({...e}){return u.jsx(bs,{"data-slot":"collapsible-content",...e})}function Yu({className:e,children:t,...n}){return u.jsxs(au,{"data-slot":"scroll-area",className:ce("relative",e),...n,children:[u.jsx(ru,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",children:t}),u.jsx(Gu,{}),u.jsx(su,{})]})}function Gu({className:e,orientation:t="vertical",...n}){return u.jsx(Ss,{"data-slot":"scroll-area-scrollbar",orientation:t,className:ce("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...n,children:u.jsx(Os,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}function Ku({...e}){return u.jsx(yu,{"data-slot":"select",...e})}function $u({...e}){return u.jsx(wu,{"data-slot":"select-value",...e})}function Wu({className:e,size:t="default",children:n,...a}){return u.jsxs(Lu,{"data-slot":"select-trigger","data-size":t,className:ce("flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e),...a,children:[n,u.jsx(Du,{asChild:!0,children:u.jsx(ka,{className:"size-4 opacity-50"})})]})}function ju({className:e,children:t,position:n="item-aligned",align:a="center",...s}){return u.jsx(vu,{children:u.jsxs(Mu,{"data-slot":"select-content",className:ce("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,align:a,...s,children:[u.jsx(Vu,{}),u.jsx(ku,{className:ce("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),u.jsx(Xu,{})]})})}function qu({className:e,children:t,...n}){return u.jsxs(Pu,{"data-slot":"select-item",className:ce("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[u.jsx("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:u.jsx(Uu,{children:u.jsx(Da,{className:"size-4"})})}),u.jsx(Bu,{children:t})]})}function Vu({className:e,...t}){return u.jsx(Fu,{"data-slot":"select-scroll-up-button",className:ce("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(xc,{className:"size-4"})})}function Xu({className:e,...t}){return u.jsx(Hu,{"data-slot":"select-scroll-down-button",className:ce("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(ka,{className:"size-4"})})}const Ar={analysis:"#F59E0B",planning:"#3B82F6",solutioning:"#8B5CF6",implementation:"#10B981"},Sr={}.hasOwnProperty;function oi(e,t){const n=t||{};function a(s,...i){let o=a.invalid;const c=a.handlers;if(s&&Sr.call(s,e)){const l=String(s[e]);o=Sr.call(c,l)?c[l]:a.unknown}if(o)return o.call(this,s,...i)}return a.handlers=n.handlers||{},a.invalid=n.invalid,a.unknown=n.unknown,a}function Qu({phaseName:e,workflowName:t,className:n}){return u.jsxs("nav",{"aria-label":"Breadcrumb",className:ce("flex items-center gap-2 text-sm",n),children:[u.jsx(Vo,{to:"/",className:"text-text-muted transition-colors hover:text-text-primary focus-visible:rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring",children:e}),u.jsx("span",{className:"text-text-muted","aria-hidden":"true",children:">"}),u.jsx("span",{className:"text-text-secondary font-medium",children:t})]})}function Zu({name:e,role:t,command:n}){return u.jsxs("div",{className:"flex items-center gap-2","aria-label":`Agent: ${e}, ${t}`,children:[u.jsxs(yn,{variant:"secondary",children:[e," — ",t]}),u.jsxs(yn,{variant:"outline",className:"font-mono",children:["/",n]})]})}const aa=["document","status","dependencies"],ra={getItem:e=>{try{return localStorage.getItem(e)}catch{return null}},setItem:(e,t)=>{try{localStorage.setItem(e,t)}catch{}},removeItem:e=>{try{localStorage.removeItem(e)}catch{}}},Vt=Xo()(Qo((e,t)=>({activeTabs:{},learnExpanded:{},lastViewedStationId:null,setActiveTab:(n,a)=>e(s=>({activeTabs:{...s.activeTabs,[n]:a}})),getActiveTab:n=>t().activeTabs[n]??"document",setLearnExpanded:(n,a)=>e(s=>({learnExpanded:{...s.learnExpanded,[n]:a}})),isLearnExpanded:n=>t().learnExpanded[n]??!0,setLastViewedStationId:n=>e({lastViewedStationId:n})}),{name:"bmad-studio-workflow-detail",storage:{getItem:e=>{const t=ra.getItem(e);return t?JSON.parse(t):null},setItem:(e,t)=>{ra.setItem(e,JSON.stringify(t))},removeItem:e=>{ra.removeItem(e)}},merge:(e,t)=>{const n=e;return n?{...t,activeTabs:n.activeTabs??{},learnExpanded:n.learnExpanded??{},lastViewedStationId:n.lastViewedStationId??null}:t}}));function Gt({label:e,children:t,italic:n}){return u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx("h3",{className:"text-sm font-medium text-text-primary",children:e}),u.jsx("p",{className:ce("text-sm text-text-secondary",n&&"italic"),children:t})]})}function Ju({workflowId:e,content:t}){const n=Vt(s=>s.isLearnExpanded(e)),a=Vt(s=>s.setLearnExpanded);return u.jsxs(ri,{open:n,onOpenChange:s=>a(e,s),className:"border-b border-border-default",children:[u.jsxs(si,{className:"flex w-full items-center justify-between px-6 py-3 text-sm font-medium text-text-primary hover:bg-surface-elevated transition-colors",children:["Learn about this workflow",u.jsx(ka,{className:ce("size-4 text-text-muted transition-transform",n&&"rotate-180")})]}),u.jsx(ii,{children:u.jsxs("div",{className:"flex flex-col gap-4 px-6 pb-4",children:[t.whatItDoes&&u.jsx(Gt,{label:"What this does",children:t.whatItDoes}),t.whenToUse&&u.jsx(Gt,{label:"When to use it",children:t.whenToUse}),t.whatItNeeds&&u.jsx(Gt,{label:"What it needs",children:t.whatItNeeds}),t.whatItProduces&&u.jsx(Gt,{label:"What it produces",children:t.whatItProduces}),t.proTip&&u.jsx(Gt,{label:"Pro tip",italic:!0,children:t.proTip}),t.docsLink&&u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx("h3",{className:"text-sm font-medium text-text-primary",children:"Documentation"}),u.jsx("a",{href:t.docsLink,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-action-primary hover:underline",children:"View BMAD docs"})]})]})})]})}function el({checks:e,score:t,hasDocument:n,phaseColor:a}){const s=va();if(!n)return u.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-4 p-12",children:[u.jsx(Pe.div,{initial:s?{}:{scale:.8,opacity:0},animate:{scale:1,opacity:1},transition:{duration:.4,ease:"easeOut"},className:"status-empty-icon flex size-16 items-center justify-center rounded-xl",children:u.jsx(lc,{className:"size-7 text-text-muted","aria-hidden":"true"})}),u.jsxs("div",{className:"text-center",children:[u.jsx("p",{className:"text-sm font-medium text-text-secondary",children:"No document to validate"}),u.jsx("p",{className:"mt-1 text-xs text-text-muted",children:"Run the workflow to generate a document first."})]})]});if(e.length===0)return u.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-4 p-12",children:[u.jsx(Tr,{className:"size-8 text-text-muted","aria-hidden":"true"}),u.jsx("p",{className:"text-sm text-text-muted",children:"No validation rules configured for this workflow."})]});const i=e.filter(f=>f.passed).length,o=e.length-i,c=Math.max(0,Math.min(100,t)),l=s?0:.04;return u.jsx("div",{className:"status-bg flex flex-1 flex-col overflow-auto",children:u.jsxs("div",{className:"mx-auto flex w-full max-w-2xl flex-col gap-8 p-8",children:[u.jsxs(Pe.div,{initial:s?{}:{y:12,opacity:0},animate:{y:0,opacity:1},transition:{duration:.45,ease:"easeOut"},className:"status-hero flex flex-col items-center gap-6 rounded-xl p-8",children:[u.jsx(tl,{score:c,phaseColor:a,reducedMotion:s??!1}),u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsxs("span",{className:"status-badge-pass flex items-center gap-1.5 rounded-full px-3 py-1 text-xs font-semibold",children:[u.jsx(hr,{className:"size-3.5","aria-hidden":"true"}),i," passed"]}),o>0&&u.jsxs("span",{className:"status-badge-fail flex items-center gap-1.5 rounded-full px-3 py-1 text-xs font-semibold",children:[u.jsx(_r,{className:"size-3.5","aria-hidden":"true"}),o," failed"]})]}),u.jsx("div",{className:"flex items-center gap-2 text-sm text-text-secondary",children:c===100?u.jsxs(u.Fragment,{children:[u.jsx(Bc,{className:"size-4 text-success"}),u.jsx("span",{className:"font-medium text-success",children:"All checks passing"})]}):c>=60?u.jsxs(u.Fragment,{children:[u.jsx(Tr,{className:"size-4",style:{color:a}}),u.jsx("span",{children:"Document partially complete"})]}):u.jsxs(u.Fragment,{children:[u.jsx(kc,{className:"size-4 text-error"}),u.jsx("span",{children:"Needs attention"})]})})]}),u.jsxs("div",{className:"flex flex-col gap-2",children:[u.jsx("h3",{className:"px-1 text-xs font-semibold uppercase tracking-wider text-text-muted",children:"Validation Checks"}),u.jsx("ul",{className:"flex flex-col gap-1.5","aria-label":"Validation checklist",children:e.map((f,E)=>u.jsxs(Pe.li,{initial:s?{}:{x:-12,opacity:0},animate:{x:0,opacity:1},transition:{delay:.2+E*l,duration:.3,ease:"easeOut"},className:ce("status-check group flex items-start gap-3 rounded-lg px-4 py-3 text-sm transition-all duration-200",f.passed?"status-check-pass":"status-check-fail"),children:[u.jsx("span",{className:ce("mt-0.5 flex size-5 shrink-0 items-center justify-center rounded-full transition-transform duration-200 group-hover:scale-110",f.passed?"bg-success/15":"bg-error/15"),children:f.passed?u.jsx(hr,{className:"size-3.5 text-success","aria-hidden":"true"}):u.jsx(_r,{className:"size-3.5 text-error","aria-hidden":"true"})}),u.jsx("span",{className:ce("flex-1 leading-relaxed",f.passed?"text-text-primary":"text-text-primary font-medium"),children:f.message}),u.jsx("span",{className:"sr-only",children:f.passed?"Passing":"Failing"})]},f.ruleId))})]}),u.jsxs(Pe.div,{initial:s?{}:{opacity:0},animate:{opacity:1},transition:{delay:.5,duration:.4},className:"flex flex-col gap-2",children:[u.jsxs("div",{className:"flex items-center justify-between text-xs text-text-muted",children:[u.jsx("span",{children:"Overall completeness"}),u.jsxs("span",{className:"font-mono font-medium",style:{color:a},children:[c,"%"]})]}),u.jsx("div",{className:"status-progress-track h-1.5 overflow-hidden rounded-full",children:u.jsx(Pe.div,{className:"h-full rounded-full",style:{backgroundColor:a},initial:{width:0},animate:{width:`${c}%`},transition:s?{duration:0}:{duration:1,ease:"easeOut",delay:.3}})})]})]})})}const Ln=140,Sa=10,St=(Ln-Sa)/2,Fe=Ln/2,sa=2*Math.PI*St;function tl({score:e,phaseColor:t,reducedMotion:n}){const a=sa*(1-e/100),s=t+"30";return u.jsxs("div",{className:"relative",children:[u.jsx("div",{className:"absolute inset-0 rounded-full blur-xl",style:{backgroundColor:s},"aria-hidden":"true"}),u.jsxs("svg",{width:Ln,height:Ln,role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":100,"aria-label":`Completeness: ${e}%`,className:"relative",children:[u.jsxs("defs",{children:[u.jsxs("linearGradient",{id:"ring-gradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[u.jsx("stop",{offset:"0%",stopColor:t}),u.jsx("stop",{offset:"100%",stopColor:t,stopOpacity:.6})]}),u.jsxs("filter",{id:"ring-glow",children:[u.jsx("feGaussianBlur",{stdDeviation:"2",result:"blur"}),u.jsxs("feMerge",{children:[u.jsx("feMergeNode",{in:"blur"}),u.jsx("feMergeNode",{in:"SourceGraphic"})]})]})]}),u.jsx("circle",{cx:Fe,cy:Fe,r:St,fill:"none",stroke:"var(--color-border-default)",strokeWidth:Sa-2,opacity:.5}),Array.from({length:40}).map((i,o)=>{const l=(o/40*360-90)*Math.PI/180,f=Fe+(St-4)*Math.cos(l),E=Fe+(St-4)*Math.sin(l),b=Fe+(St+4)*Math.cos(l),_=Fe+(St+4)*Math.sin(l);return u.jsx("line",{x1:f,y1:E,x2:b,y2:_,stroke:"var(--color-border-default)",strokeWidth:1,opacity:.25},o)}),u.jsx(Pe.circle,{cx:Fe,cy:Fe,r:St,fill:"none",stroke:"url(#ring-gradient)",strokeWidth:Sa,strokeDasharray:sa,initial:{strokeDashoffset:sa},animate:{strokeDashoffset:a},transition:n?{duration:0}:{duration:1.2,ease:"easeOut",delay:.2},strokeLinecap:"round",filter:"url(#ring-glow)",transform:`rotate(-90 ${Fe} ${Fe})`}),u.jsxs("text",{x:Fe,y:Fe-6,textAnchor:"middle",dominantBaseline:"central",className:"fill-text-primary",style:{fontFamily:"var(--font-sans)",fontSize:"28px",fontWeight:700},children:[e,"%"]}),u.jsx("text",{x:Fe,y:Fe+16,textAnchor:"middle",dominantBaseline:"central",className:"fill-text-muted",style:{fontFamily:"var(--font-sans)",fontSize:"10px",fontWeight:500,letterSpacing:"0.06em",textTransform:"uppercase"},children:"complete"})]})]})}const nl={"not-started":{label:"Not started",cls:"dep-chip-neutral",dotCls:"bg-text-muted"},"in-progress":{label:"In progress",cls:"dep-chip-active",dotCls:"bg-phase-planning"},completed:{label:"Completed",cls:"dep-chip-success",dotCls:"bg-success"},blocked:{label:"Blocked",cls:"dep-chip-error",dotCls:"bg-error"},skipped:{label:"Skipped",cls:"dep-chip-neutral",dotCls:"bg-text-muted"}};function al({workflowId:e,definition:t,projectState:n,phaseColor:a,onWorkflowClick:s}){const i=va(),o=t.inputs,c=T.useMemo(()=>Cn.filter(g=>g.inputs.some(A=>A.workflowId===e)),[e]),l=g=>{const A=n.workflows[g];return A?A.outputs.length>0:!1},f=g=>n.workflows[g]?.status??"not-started",E=g=>Cn.find(A=>A.id===g)?.label??g,b=T.useCallback(g=>A=>{(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),s(g))},[s]);if(o.length===0&&c.length===0)return u.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-4 p-12",children:[u.jsx(Pe.div,{initial:i?{}:{scale:.9,opacity:0},animate:{scale:1,opacity:1},transition:{duration:.35,ease:"easeOut"},className:"dep-empty-icon flex size-14 items-center justify-center rounded-xl",children:u.jsx(wc,{className:"size-6 text-text-muted","aria-hidden":"true"})}),u.jsxs("div",{className:"text-center",children:[u.jsx("p",{className:"text-sm font-medium text-text-secondary",children:"No dependencies"}),u.jsx("p",{className:"mt-1 text-xs text-text-muted",children:"This workflow runs independently"})]})]});const _=i?0:.05,S=o.length>0,O=c.length>0;return u.jsx("div",{className:"flex flex-1 flex-col overflow-auto",role:"region","aria-label":"Dependency graph",children:u.jsxs("div",{className:"mx-auto flex w-full max-w-xl flex-col items-center gap-0 px-6 py-8",children:[S&&u.jsxs(Pe.div,{initial:i?{}:{y:8,opacity:0},animate:{y:0,opacity:1},transition:{duration:.35,ease:"easeOut"},className:"dep-section w-full",children:[u.jsxs("div",{className:"dep-section-header mb-2 flex items-center gap-2 px-1",children:[u.jsx("span",{className:"dep-section-line"}),u.jsx("span",{className:"whitespace-nowrap text-[10px] font-bold uppercase tracking-widest text-text-muted",children:"Requires"}),u.jsx("span",{className:"dep-section-line"})]}),u.jsx("div",{className:"dep-card-group flex flex-col",children:o.map((g,A)=>{const x=l(g.workflowId),I=E(g.workflowId);return u.jsxs(Pe.button,{type:"button",initial:i?{}:{y:6,opacity:0},animate:{y:0,opacity:1},transition:{delay:A*_,duration:.3,ease:"easeOut"},className:ce("dep-row group flex items-center gap-3 px-4 py-3 text-left text-sm transition-colors duration-150","cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-inset",!x&&"dep-row-missing"),onClick:()=>s(g.workflowId),onKeyDown:b(g.workflowId),"aria-label":`${I} — ${x?"satisfied":"missing"}${!x&&g.required?", required":""}`,children:[u.jsx("span",{className:ce("flex size-5 shrink-0 items-center justify-center rounded-full",x?"dep-icon-pass":"dep-icon-fail"),children:x?u.jsx(Da,{className:"size-3","aria-hidden":"true"}):u.jsx(pc,{className:"size-3","aria-hidden":"true"})}),u.jsx("span",{className:"flex-1 truncate font-medium text-text-primary",children:I}),!x&&g.required&&u.jsxs("span",{className:"dep-chip dep-chip-warning flex items-center gap-1",children:[u.jsx(us,{className:"size-3","aria-label":"Required dependency missing"}),"Required"]}),u.jsx("span",{className:ce("dep-chip",x?"dep-chip-success":"dep-chip-error"),children:x?"Ready":"Missing"}),u.jsx(pa,{className:"size-4 shrink-0 text-text-muted opacity-0 transition-opacity duration-150 group-hover:opacity-100","aria-hidden":"true"})]},g.workflowId)})})]}),S&&u.jsx(xr,{phaseColor:a,reducedMotion:i??!1,delay:o.length*_+.1}),u.jsxs(Pe.div,{initial:i?{}:{scale:.92,opacity:0},animate:{scale:1,opacity:1},transition:{delay:S?o.length*_+.15:0,duration:.4,ease:"easeOut"},className:"dep-hero relative z-10 flex w-full items-center gap-4 rounded-xl border-2 px-5 py-4",style:{borderColor:a,boxShadow:`0 0 0 4px ${a}0a, 0 8px 24px -8px ${a}20`},children:[u.jsx("span",{className:"size-3 shrink-0 rounded-full",style:{backgroundColor:a},"aria-hidden":"true"}),u.jsxs("div",{className:"flex flex-1 flex-col gap-0.5",children:[u.jsx("span",{className:"text-sm font-bold text-text-primary",children:t.label}),u.jsx("span",{className:"text-xs text-text-muted",children:"Current workflow"})]}),u.jsxs("div",{className:"flex items-center gap-3 text-xs text-text-muted",children:[S&&u.jsxs("span",{children:[o.length," input",o.length!==1&&"s"]}),O&&u.jsxs("span",{children:[c.length," output",c.length!==1&&"s"]})]})]}),O&&u.jsx(xr,{phaseColor:a,reducedMotion:i??!1,delay:(S?o.length*_+.25:0)+.1}),O&&u.jsxs(Pe.div,{initial:i?{}:{y:8,opacity:0},animate:{y:0,opacity:1},transition:{delay:S?o.length*_+.3:.15,duration:.35,ease:"easeOut"},className:"dep-section w-full",children:[u.jsxs("div",{className:"dep-section-header mb-2 flex items-center gap-2 px-1",children:[u.jsx("span",{className:"dep-section-line"}),u.jsx("span",{className:"whitespace-nowrap text-[10px] font-bold uppercase tracking-widest text-text-muted",children:"Enables"}),u.jsx("span",{className:"dep-section-line"})]}),u.jsx("div",{className:"dep-card-group flex flex-col",children:c.map((g,A)=>{const x=f(g.id),I=nl[x];return u.jsxs(Pe.button,{type:"button",initial:i?{}:{y:6,opacity:0},animate:{y:0,opacity:1},transition:{delay:(S?o.length*_+.35:.2)+A*_,duration:.3,ease:"easeOut"},className:ce("dep-row group flex items-center gap-3 px-4 py-3 text-left text-sm transition-colors duration-150","cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-inset"),onClick:()=>s(g.id),onKeyDown:b(g.id),"aria-label":`${g.label} — ${I.label}`,children:[u.jsx("span",{className:ce("size-2.5 shrink-0 rounded-full",I.dotCls),"aria-hidden":"true"}),u.jsx("span",{className:"flex-1 truncate font-medium text-text-primary",children:g.label}),u.jsx("span",{className:ce("dep-chip",I.cls),children:I.label}),u.jsx(pa,{className:"size-4 shrink-0 text-text-muted opacity-0 transition-opacity duration-150 group-hover:opacity-100","aria-hidden":"true"})]},g.id)})})]})]})})}function xr({phaseColor:e,reducedMotion:t,delay:n}){return u.jsxs("div",{className:"flex flex-col items-center py-1",children:[u.jsx(Pe.div,{className:"dep-flow-line w-px",style:{backgroundColor:e,opacity:.35},initial:t?{height:28}:{height:0},animate:{height:28},transition:t?{duration:0}:{delay:n,duration:.35,ease:"easeOut"},"aria-hidden":"true"}),u.jsx(Pe.div,{initial:t?{}:{scale:0,opacity:0},animate:{scale:1,opacity:.5},transition:t?{duration:0}:{delay:n+.2,duration:.2,ease:"easeOut"},children:u.jsx(_c,{className:"size-3.5",style:{color:e},"aria-hidden":"true"})})]})}var ia={exports:{}},Cr;function rl(){return Cr||(Cr=1,(function(e){(function(){var t;t=e.exports=s,t.format=s,t.vsprintf=a,typeof console<"u"&&typeof console.log=="function"&&(t.printf=n);function n(){console.log(s.apply(null,arguments))}function a(i,o){return s.apply(null,[i].concat(o))}function s(i){for(var o=1,c=[].slice.call(arguments),l=0,f=i.length,E="",b,_=!1,S,O,g=!1,A,x=function(){return c[o++]},I=function(){for(var R="";/\d/.test(i[l]);)R+=i[l++],b=i[l];return R.length>0?parseInt(R):null};l<f;++l)if(b=i[l],_)switch(_=!1,b=="."?(g=!1,b=i[++l]):b=="0"&&i[l+1]=="."?(g=!0,l+=2,b=i[l]):g=!0,A=I(),b){case"b":E+=parseInt(x(),10).toString(2);break;case"c":S=x(),typeof S=="string"||S instanceof String?E+=S:E+=String.fromCharCode(parseInt(S,10));break;case"d":E+=parseInt(x(),10);break;case"f":O=String(parseFloat(x()).toFixed(A||6)),E+=g?O:O.replace(/^0/,"");break;case"j":E+=JSON.stringify(x());break;case"o":E+="0"+parseInt(x(),10).toString(8);break;case"s":E+=x();break;case"x":E+="0x"+parseInt(x(),10).toString(16);break;case"X":E+="0x"+parseInt(x(),10).toString(16).toUpperCase();break;default:E+=b;break}else b==="%"?_=!0:E+=b;return E}})()})(ia)),ia.exports}var sl=rl();const il=os(sl),En=Object.assign(At(Error),{eval:At(EvalError),range:At(RangeError),reference:At(ReferenceError),syntax:At(SyntaxError),type:At(TypeError),uri:At(URIError)});function At(e){return t.displayName=e.displayName||e.name,t;function t(n,...a){const s=n&&il(n,...a);return new e(s)}}const pn={}.hasOwnProperty,Ir={yaml:"-",toml:"+"};function Ga(e){const t=[];let n=-1;const a=Array.isArray(e)?e:e?[e]:["yaml"];for(;++n<a.length;)t[n]=ol(a[n]);return t}function ol(e){let t=e;if(typeof t=="string"){if(!pn.call(Ir,t))throw En("Missing matter definition for `%s`",t);t={type:t,marker:Ir[t]}}else if(typeof t!="object")throw En("Expected matter to be an object, not `%j`",t);if(!pn.call(t,"type"))throw En("Missing `type` in matter `%j`",t);if(!pn.call(t,"fence")&&!pn.call(t,"marker"))throw En("Missing `marker` or `fence` in matter `%j`",t);return t}function cl(e){const t=Ga(e),n={};let a=-1;for(;++a<t.length;){const s=t[a],i=xa(s,"open").charCodeAt(0),o=ul(s),c=n[i];Array.isArray(c)?c.push(o):n[i]=[o]}return{flow:n}}function ul(e){const t=e.anywhere,n=e.type,a=n+"Fence",s=a+"Sequence",i=n+"Value",o={tokenize:E,partial:!0};let c,l=0;return{tokenize:f,concrete:!0};function f(b,_,S){const O=this;return g;function g(v){const P=O.now();return P.column===1&&(P.line===1||t)&&(c=xa(e,"open"),l=0,v===c.charCodeAt(l))?(b.enter(n),b.enter(a),b.enter(s),A(v)):S(v)}function A(v){return l===c.length?(b.exit(s),mn(v)?(b.enter("whitespace"),x(v)):I(v)):v===c.charCodeAt(l++)?(b.consume(v),A):S(v)}function x(v){return mn(v)?(b.consume(v),x):(b.exit("whitespace"),I(v))}function I(v){return hn(v)?(b.exit(a),b.enter("lineEnding"),b.consume(v),b.exit("lineEnding"),c=xa(e,"close"),l=0,b.attempt(o,U,R)):S(v)}function R(v){return v===null||hn(v)?H(v):(b.enter(i),k(v))}function k(v){return v===null||hn(v)?(b.exit(i),H(v)):(b.consume(v),k)}function H(v){return v===null?S(v):(b.enter("lineEnding"),b.consume(v),b.exit("lineEnding"),b.attempt(o,U,R))}function U(v){return b.exit(n),_(v)}}function E(b,_,S){let O=0;return g;function g(R){return R===c.charCodeAt(O)?(b.enter(a),b.enter(s),A(R)):S(R)}function A(R){return O===c.length?(b.exit(s),mn(R)?(b.enter("whitespace"),x(R)):I(R)):R===c.charCodeAt(O++)?(b.consume(R),A):S(R)}function x(R){return mn(R)?(b.consume(R),x):(b.exit("whitespace"),I(R))}function I(R){return R===null||hn(R)?(b.exit(a),_(R)):S(R)}}}function xa(e,t){return e.marker?Or(e.marker,t).repeat(3):Or(e.fence,t)}function Or(e,t){return typeof e=="string"?e:e[t]}function ll(e){const t=Ga(e),n={},a={};let s=-1;for(;++s<t.length;){const i=t[s];n[i.type]=dl(i),a[i.type]=fl,a[i.type+"Value"]=ml}return{enter:n,exit:a}}function dl(e){return t;function t(n){this.enter({type:e.type,value:""},n),this.buffer()}}function fl(e){const t=this.resume(),n=this.stack[this.stack.length-1];this.exit(e),n.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function ml(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function hl(e){const t=[],n={},a=Ga(e);let s=-1;for(;++s<a.length;){const i=a[s];n[i.type]=El(i);const o=Ca(i,"open");t.push({atBreak:!0,character:o.charAt(0),after:dc(o.charAt(1))})}return{unsafe:t,handlers:n}}function El(e){const t=Ca(e,"open"),n=Ca(e,"close");return a;function a(s){return t+(s.value?`
3
+ `+s.value:"")+`
4
+ `+n}}function Ca(e,t){return e.marker?Rr(e.marker,t).repeat(3):Rr(e.fence,t)}function Rr(e,t){return typeof e=="string"?e:e[t]}const pl="yaml";function bl(e){const t=this,n=e||pl,a=t.data(),s=a.micromarkExtensions||(a.micromarkExtensions=[]),i=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),o=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);s.push(cl(n)),i.push(ll(n)),o.push(hl(n))}const yr=/[#.]/g;function gl(e,t){const n=e||"",a={};let s=0,i,o;for(;s<n.length;){yr.lastIndex=s;const c=yr.exec(n),l=n.slice(s,c?c.index:n.length);l&&(i?i==="#"?a.id=l:Array.isArray(a.className)?a.className.push(l):a.className=[l]:o=l,s+=l.length),c&&(i=c[0],s++)}return{type:"element",tagName:o||t||"div",properties:a,children:[]}}function ci(e,t,n){const a=n?Al(n):void 0;function s(i,o,...c){let l;if(i==null){l={type:"root",children:[]};const f=o;c.unshift(f)}else{l=gl(i,t);const f=l.tagName.toLowerCase(),E=a?a.get(f):void 0;if(l.tagName=E||f,_l(o))c.unshift(o);else for(const[b,_]of Object.entries(o))Tl(e,l.properties,b,_)}for(const f of c)Ia(l.children,f);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return s}function _l(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const a of n){const s=t[a];if(s&&typeof s=="object"){if(!Array.isArray(s))return!0;const i=s;for(const o of i)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Tl(e,t,n,a){const s=Ma(e,n);let i;if(a!=null){if(typeof a=="number"){if(Number.isNaN(a))return;i=a}else typeof a=="boolean"?i=a:typeof a=="string"?s.spaceSeparated?i=Er(a):s.commaSeparated?i=pr(a):s.commaOrSpaceSeparated?i=Er(pr(a).join(" ")):i=Lr(s,s.property,a):Array.isArray(a)?i=[...a]:i=s.property==="style"?Nl(a):String(a);if(Array.isArray(i)){const o=[];for(const c of i)o.push(Lr(s,s.property,c));i=o}s.property==="className"&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[s.property]=i}}function Ia(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)Ia(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Ia(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Lr(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||br(n)===br(t)))return!0}return n}function Nl(e){const t=[];for(const[n,a]of Object.entries(e))t.push([n,a].join(": "));return t.join("; ")}function Al(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Sl=["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"],xl=ci(Un,"div"),Cl=ci(an,"g",Sl);function Il(e){const t=String(e),n=[];return{toOffset:s,toPoint:a};function a(i){if(typeof i=="number"&&i>-1&&i<=t.length){let o=0;for(;;){let c=n[o];if(c===void 0){const l=wr(t,n[o-1]);c=l===-1?t.length+1:l+1,n[o]=c}if(c>i)return{line:o+1,column:i-(o>0?n[o-1]:0)+1,offset:i};o++}}}function s(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;n.length<i.line;){const c=n[n.length-1],l=wr(t,c),f=l===-1?t.length+1:l+1;if(c===f)break;n.push(f)}const o=(i.line>1?n[i.line-2]:0)+i.column-1;if(o<n[i.line-1])return o}}}function wr(e,t){const n=e.indexOf("\r",t),a=e.indexOf(`
5
+ `,t);return a===-1?n:n===-1||n+1===a?a:n<a?n:a}const xt={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/"},ui={}.hasOwnProperty,Ol=Object.prototype;function Rl(e,t){const n=t||{};return Ka({file:n.file||void 0,location:!1,schema:n.space==="svg"?an:Un,verbose:n.verbose||!1},e)}function Ka(e,t){let n;switch(t.nodeName){case"#comment":{const a=t;return n={type:"comment",value:a.data},Sn(e,a,n),n}case"#document":case"#document-fragment":{const a=t,s="mode"in a?a.mode==="quirks"||a.mode==="limited-quirks":!1;if(n={type:"root",children:li(e,t.childNodes),data:{quirksMode:s}},e.file&&e.location){const i=String(e.file),o=Il(i),c=o.toPoint(0),l=o.toPoint(i.length);n.position={start:c,end:l}}return n}case"#documentType":{const a=t;return n={type:"doctype"},Sn(e,a,n),n}case"#text":{const a=t;return n={type:"text",value:a.value},Sn(e,a,n),n}default:return n=yl(e,t),n}}function li(e,t){let n=-1;const a=[];for(;++n<t.length;){const s=Ka(e,t[n]);a.push(s)}return a}function yl(e,t){const n=e.schema;e.schema=t.namespaceURI===xt.svg?an:Un;let a=-1;const s={};for(;++a<t.attrs.length;){const c=t.attrs[a],l=(c.prefix?c.prefix+":":"")+c.name;ui.call(Ol,l)||(s[l]=c.value)}const o=(e.schema.space==="svg"?Cl:xl)(t.tagName,s,li(e,t.childNodes));if(Sn(e,t,o),o.tagName==="template"){const c=t,l=c.sourceCodeLocation,f=l&&l.startTag&&kt(l.startTag),E=l&&l.endTag&&kt(l.endTag),b=Ka(e,c.content);f&&E&&e.file&&(b.position={start:f.end,end:E.start}),o.content=b}return e.schema=n,o}function Sn(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const a=Ll(e,n,t.sourceCodeLocation);a&&(e.location=!0,n.position=a)}}function Ll(e,t,n){const a=kt(n);if(t.type==="element"){const s=t.children[t.children.length-1];if(a&&!n.endTag&&s&&s.position&&s.position.end&&(a.end=Object.assign({},s.position.end)),e.verbose){const i={};let o;if(n.attrs)for(o in n.attrs)ui.call(n.attrs,o)&&(i[Ma(e.schema,o).property]=kt(n.attrs[o]));Ea(n.startTag);const c=kt(n.startTag),l=n.endTag?kt(n.endTag):void 0,f={opening:c};l&&(f.closing=l),f.properties=i,t.data={position:f}}}return a}function kt(e){const t=Dr({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Dr({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Dr(e){return e.line&&e.column?e:void 0}const wl={},Dl={}.hasOwnProperty,di=oi("type",{handlers:{root:Ml,element:Fl,text:Bl,comment:Ul,doctype:Pl}});function vl(e,t){const a=(t||wl).space;return di(e,a==="svg"?an:Un)}function Ml(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=$a(e.children,n,t),Ft(e,n),n}function kl(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=$a(e.children,n,t),Ft(e,n),n}function Pl(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Ft(e,t),t}function Bl(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Ft(e,t),t}function Ul(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Ft(e,t),t}function Fl(e,t){const n=t;let a=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(a=an);const s=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&Dl.call(e.properties,i)){const l=Hl(a,i,e.properties[i]);l&&s.push(l)}}const o=a.space,c={nodeName:e.tagName,tagName:e.tagName,attrs:s,namespaceURI:xt[o],childNodes:[],parentNode:null};return c.childNodes=$a(e.children,c,a),Ft(e,c),e.tagName==="template"&&e.content&&(c.content=kl(e.content,a)),c}function Hl(e,t,n){const a=Ma(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&a.boolean)return;Array.isArray(n)&&(n=a.commaSeparated?fc(n):mc(n));const s={name:a.attribute,value:n===!0?"":String(n)};if(a.space&&a.space!=="html"&&a.space!=="svg"){const i=s.name.indexOf(":");i<0?s.prefix="":(s.name=s.name.slice(i+1),s.prefix=a.attribute.slice(0,i)),s.namespace=xt[a.space]}return s}function $a(e,t,n){let a=-1;const s=[];if(e)for(;++a<e.length;){const i=di(e[a],n);i.parentNode=t,s.push(i)}return s}function Ft(e,t){const n=e.position;n&&n.start&&n.end&&(Ea(typeof n.start.offset=="number"),Ea(typeof n.end.offset=="number"),t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const zl=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Yl=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]),Ee="�";var d;(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"})(d||(d={}));const He={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function fi(e){return e>=55296&&e<=57343}function Gl(e){return e>=56320&&e<=57343}function Kl(e,t){return(e-55296)*1024+9216+t}function mi(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function hi(e){return e>=64976&&e<=65007||Yl.has(e)}var C;(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"})(C||(C={}));const $l=65536;class Wl{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=$l,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:a,col:s,offset:i}=this,o=s+n,c=i+n;return{code:t,startLine:a,endLine:a,startCol:o,endCol:o,startOffset:c,endOffset:c}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(Gl(n))return this.pos++,this._addGap(),Kl(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,d.EOF;return this._err(C.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let a=0;a<t.length;a++)if((this.html.charCodeAt(this.pos+a)|32)!==t.charCodeAt(a))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,d.EOF;const a=this.html.charCodeAt(n);return a===d.CARRIAGE_RETURN?d.LINE_FEED:a}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,d.EOF;let t=this.html.charCodeAt(this.pos);return t===d.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,d.LINE_FEED):t===d.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,fi(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===d.LINE_FEED||t===d.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){mi(t)?this._err(C.controlCharacterInInputStream):hi(t)&&this._err(C.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Z;(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"})(Z||(Z={}));function Ei(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}const jl=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Ā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;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎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;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),ql=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]]);function Vl(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=ql.get(e))!==null&&t!==void 0?t:e}var De;(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"})(De||(De={}));const Xl=32;var ht;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(ht||(ht={}));function Oa(e){return e>=De.ZERO&&e<=De.NINE}function Ql(e){return e>=De.UPPER_A&&e<=De.UPPER_F||e>=De.LOWER_A&&e<=De.LOWER_F}function Zl(e){return e>=De.UPPER_A&&e<=De.UPPER_Z||e>=De.LOWER_A&&e<=De.LOWER_Z||Oa(e)}function Jl(e){return e===De.EQUALS||Zl(e)}var we;(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"})(we||(we={}));var ct;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ct||(ct={}));class ed{constructor(t,n,a){this.decodeTree=t,this.emitCodePoint=n,this.errors=a,this.state=we.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ct.Strict}startEntity(t){this.decodeMode=t,this.state=we.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case we.EntityStart:return t.charCodeAt(n)===De.NUM?(this.state=we.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=we.NamedEntity,this.stateNamedEntity(t,n));case we.NumericStart:return this.stateNumericStart(t,n);case we.NumericDecimal:return this.stateNumericDecimal(t,n);case we.NumericHex:return this.stateNumericHex(t,n);case we.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Xl)===De.LOWER_X?(this.state=we.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=we.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,a,s){if(n!==a){const i=a-n;this.result=this.result*Math.pow(s,i)+Number.parseInt(t.substr(n,i),s),this.consumed+=i}}stateNumericHex(t,n){const a=n;for(;n<t.length;){const s=t.charCodeAt(n);if(Oa(s)||Ql(s))n+=1;else return this.addToNumericResult(t,a,n,16),this.emitNumericEntity(s,3)}return this.addToNumericResult(t,a,n,16),-1}stateNumericDecimal(t,n){const a=n;for(;n<t.length;){const s=t.charCodeAt(n);if(Oa(s))n+=1;else return this.addToNumericResult(t,a,n,10),this.emitNumericEntity(s,2)}return this.addToNumericResult(t,a,n,10),-1}emitNumericEntity(t,n){var a;if(this.consumed<=n)return(a=this.errors)===null||a===void 0||a.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===De.SEMI)this.consumed+=1;else if(this.decodeMode===ct.Strict)return 0;return this.emitCodePoint(Vl(this.result),this.consumed),this.errors&&(t!==De.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:a}=this;let s=a[this.treeIndex],i=(s&ht.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const o=t.charCodeAt(n);if(this.treeIndex=td(a,s,this.treeIndex+Math.max(1,i),o),this.treeIndex<0)return this.result===0||this.decodeMode===ct.Attribute&&(i===0||Jl(o))?0:this.emitNotTerminatedNamedEntity();if(s=a[this.treeIndex],i=(s&ht.VALUE_LENGTH)>>14,i!==0){if(o===De.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==ct.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:a}=this,s=(a[n]&ht.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,s,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,a){const{decodeTree:s}=this;return this.emitCodePoint(n===1?s[t]&~ht.VALUE_LENGTH:s[t+1],a),n===3&&this.emitCodePoint(s[t+2],a),a}end(){var t;switch(this.state){case we.NamedEntity:return this.result!==0&&(this.decodeMode!==ct.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case we.NumericDecimal:return this.emitNumericEntity(0,2);case we.NumericHex:return this.emitNumericEntity(0,3);case we.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case we.EntityStart:return 0}}}function td(e,t,n,a){const s=(t&ht.BRANCH_LENGTH)>>7,i=t&ht.JUMP_TABLE;if(s===0)return i!==0&&a===i?n:-1;if(i){const l=a-i;return l<0||l>=s?-1:e[n+l]-1}let o=n,c=o+s-1;for(;o<=c;){const l=o+c>>>1,f=e[l];if(f<a)o=l+1;else if(f>a)c=l-1;else return e[l+s]}return-1}var L;(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/"})(L||(L={}));var Ct;(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"})(Ct||(Ct={}));var Ge;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Ge||(Ge={}));var N;(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"})(N||(N={}));var r;(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"})(r||(r={}));const nd=new Map([[N.A,r.A],[N.ADDRESS,r.ADDRESS],[N.ANNOTATION_XML,r.ANNOTATION_XML],[N.APPLET,r.APPLET],[N.AREA,r.AREA],[N.ARTICLE,r.ARTICLE],[N.ASIDE,r.ASIDE],[N.B,r.B],[N.BASE,r.BASE],[N.BASEFONT,r.BASEFONT],[N.BGSOUND,r.BGSOUND],[N.BIG,r.BIG],[N.BLOCKQUOTE,r.BLOCKQUOTE],[N.BODY,r.BODY],[N.BR,r.BR],[N.BUTTON,r.BUTTON],[N.CAPTION,r.CAPTION],[N.CENTER,r.CENTER],[N.CODE,r.CODE],[N.COL,r.COL],[N.COLGROUP,r.COLGROUP],[N.DD,r.DD],[N.DESC,r.DESC],[N.DETAILS,r.DETAILS],[N.DIALOG,r.DIALOG],[N.DIR,r.DIR],[N.DIV,r.DIV],[N.DL,r.DL],[N.DT,r.DT],[N.EM,r.EM],[N.EMBED,r.EMBED],[N.FIELDSET,r.FIELDSET],[N.FIGCAPTION,r.FIGCAPTION],[N.FIGURE,r.FIGURE],[N.FONT,r.FONT],[N.FOOTER,r.FOOTER],[N.FOREIGN_OBJECT,r.FOREIGN_OBJECT],[N.FORM,r.FORM],[N.FRAME,r.FRAME],[N.FRAMESET,r.FRAMESET],[N.H1,r.H1],[N.H2,r.H2],[N.H3,r.H3],[N.H4,r.H4],[N.H5,r.H5],[N.H6,r.H6],[N.HEAD,r.HEAD],[N.HEADER,r.HEADER],[N.HGROUP,r.HGROUP],[N.HR,r.HR],[N.HTML,r.HTML],[N.I,r.I],[N.IMG,r.IMG],[N.IMAGE,r.IMAGE],[N.INPUT,r.INPUT],[N.IFRAME,r.IFRAME],[N.KEYGEN,r.KEYGEN],[N.LABEL,r.LABEL],[N.LI,r.LI],[N.LINK,r.LINK],[N.LISTING,r.LISTING],[N.MAIN,r.MAIN],[N.MALIGNMARK,r.MALIGNMARK],[N.MARQUEE,r.MARQUEE],[N.MATH,r.MATH],[N.MENU,r.MENU],[N.META,r.META],[N.MGLYPH,r.MGLYPH],[N.MI,r.MI],[N.MO,r.MO],[N.MN,r.MN],[N.MS,r.MS],[N.MTEXT,r.MTEXT],[N.NAV,r.NAV],[N.NOBR,r.NOBR],[N.NOFRAMES,r.NOFRAMES],[N.NOEMBED,r.NOEMBED],[N.NOSCRIPT,r.NOSCRIPT],[N.OBJECT,r.OBJECT],[N.OL,r.OL],[N.OPTGROUP,r.OPTGROUP],[N.OPTION,r.OPTION],[N.P,r.P],[N.PARAM,r.PARAM],[N.PLAINTEXT,r.PLAINTEXT],[N.PRE,r.PRE],[N.RB,r.RB],[N.RP,r.RP],[N.RT,r.RT],[N.RTC,r.RTC],[N.RUBY,r.RUBY],[N.S,r.S],[N.SCRIPT,r.SCRIPT],[N.SEARCH,r.SEARCH],[N.SECTION,r.SECTION],[N.SELECT,r.SELECT],[N.SOURCE,r.SOURCE],[N.SMALL,r.SMALL],[N.SPAN,r.SPAN],[N.STRIKE,r.STRIKE],[N.STRONG,r.STRONG],[N.STYLE,r.STYLE],[N.SUB,r.SUB],[N.SUMMARY,r.SUMMARY],[N.SUP,r.SUP],[N.TABLE,r.TABLE],[N.TBODY,r.TBODY],[N.TEMPLATE,r.TEMPLATE],[N.TEXTAREA,r.TEXTAREA],[N.TFOOT,r.TFOOT],[N.TD,r.TD],[N.TH,r.TH],[N.THEAD,r.THEAD],[N.TITLE,r.TITLE],[N.TR,r.TR],[N.TRACK,r.TRACK],[N.TT,r.TT],[N.U,r.U],[N.UL,r.UL],[N.SVG,r.SVG],[N.VAR,r.VAR],[N.WBR,r.WBR],[N.XMP,r.XMP]]);function Ht(e){var t;return(t=nd.get(e))!==null&&t!==void 0?t:r.UNKNOWN}const w=r,ad={[L.HTML]:new Set([w.ADDRESS,w.APPLET,w.AREA,w.ARTICLE,w.ASIDE,w.BASE,w.BASEFONT,w.BGSOUND,w.BLOCKQUOTE,w.BODY,w.BR,w.BUTTON,w.CAPTION,w.CENTER,w.COL,w.COLGROUP,w.DD,w.DETAILS,w.DIR,w.DIV,w.DL,w.DT,w.EMBED,w.FIELDSET,w.FIGCAPTION,w.FIGURE,w.FOOTER,w.FORM,w.FRAME,w.FRAMESET,w.H1,w.H2,w.H3,w.H4,w.H5,w.H6,w.HEAD,w.HEADER,w.HGROUP,w.HR,w.HTML,w.IFRAME,w.IMG,w.INPUT,w.LI,w.LINK,w.LISTING,w.MAIN,w.MARQUEE,w.MENU,w.META,w.NAV,w.NOEMBED,w.NOFRAMES,w.NOSCRIPT,w.OBJECT,w.OL,w.P,w.PARAM,w.PLAINTEXT,w.PRE,w.SCRIPT,w.SECTION,w.SELECT,w.SOURCE,w.STYLE,w.SUMMARY,w.TABLE,w.TBODY,w.TD,w.TEMPLATE,w.TEXTAREA,w.TFOOT,w.TH,w.THEAD,w.TITLE,w.TR,w.TRACK,w.UL,w.WBR,w.XMP]),[L.MATHML]:new Set([w.MI,w.MO,w.MN,w.MS,w.MTEXT,w.ANNOTATION_XML]),[L.SVG]:new Set([w.TITLE,w.FOREIGN_OBJECT,w.DESC]),[L.XLINK]:new Set,[L.XML]:new Set,[L.XMLNS]:new Set},Ra=new Set([w.H1,w.H2,w.H3,w.H4,w.H5,w.H6]);N.STYLE,N.SCRIPT,N.XMP,N.IFRAME,N.NOEMBED,N.NOFRAMES,N.PLAINTEXT;var m;(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"})(m||(m={}));const Ae={DATA:m.DATA,RCDATA:m.RCDATA,RAWTEXT:m.RAWTEXT,SCRIPT_DATA:m.SCRIPT_DATA,PLAINTEXT:m.PLAINTEXT,CDATA_SECTION:m.CDATA_SECTION};function rd(e){return e>=d.DIGIT_0&&e<=d.DIGIT_9}function qt(e){return e>=d.LATIN_CAPITAL_A&&e<=d.LATIN_CAPITAL_Z}function sd(e){return e>=d.LATIN_SMALL_A&&e<=d.LATIN_SMALL_Z}function dt(e){return sd(e)||qt(e)}function vr(e){return dt(e)||rd(e)}function bn(e){return e+32}function pi(e){return e===d.SPACE||e===d.LINE_FEED||e===d.TABULATION||e===d.FORM_FEED}function Mr(e){return pi(e)||e===d.SOLIDUS||e===d.GREATER_THAN_SIGN}function id(e){return e===d.NULL?C.nullCharacterReference:e>1114111?C.characterReferenceOutsideUnicodeRange:fi(e)?C.surrogateCharacterReference:hi(e)?C.noncharacterCharacterReference:mi(e)||e===d.CARRIAGE_RETURN?C.controlCharacterReference:null}class od{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=m.DATA,this.returnState=m.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Wl(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new ed(jl,(a,s)=>{this.preprocessor.pos=this.entityStartPos+s-1,this._flushCodePointConsumedAsCharacterReference(a)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(C.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:a=>{this._err(C.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+a)},validateNumericCharacterReference:a=>{const s=id(a);s&&this._err(s,1)}}:void 0)}_err(t,n=0){var a,s;(s=(a=this.handler).onParseError)===null||s===void 0||s.call(a,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,a){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||a?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Z.START_TAG,tagName:"",tagID:r.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Z.END_TAG,tagName:"",tagID:r.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Z.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Z.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const a=this.currentToken;if(Ei(a,this.currentAttr.name)===null){if(a.attrs.push(this.currentAttr),a.location&&this.currentLocation){const s=(t=(n=a.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);s[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(C.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Ht(t.tagName),t.type===Z.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(C.endTagWithAttributes),t.selfClosing&&this._err(C.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Z.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Z.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Z.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Z.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=pi(t)?Z.WHITESPACE_CHARACTER:t===d.NULL?Z.NULL_CHARACTER:Z.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Z.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=m.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ct.Attribute:ct.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===m.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===m.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===m.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case m.DATA:{this._stateData(t);break}case m.RCDATA:{this._stateRcdata(t);break}case m.RAWTEXT:{this._stateRawtext(t);break}case m.SCRIPT_DATA:{this._stateScriptData(t);break}case m.PLAINTEXT:{this._statePlaintext(t);break}case m.TAG_OPEN:{this._stateTagOpen(t);break}case m.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case m.TAG_NAME:{this._stateTagName(t);break}case m.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case m.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case m.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case m.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case m.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case m.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case m.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case m.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case m.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case m.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case m.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case m.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case m.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case m.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case m.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case m.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case m.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case m.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case m.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case m.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case m.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case m.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case m.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case m.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case m.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case m.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case m.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case m.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case m.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case m.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case m.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case m.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case m.BOGUS_COMMENT:{this._stateBogusComment(t);break}case m.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case m.COMMENT_START:{this._stateCommentStart(t);break}case m.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case m.COMMENT:{this._stateComment(t);break}case m.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case m.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case m.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case m.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case m.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case m.COMMENT_END:{this._stateCommentEnd(t);break}case m.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case m.DOCTYPE:{this._stateDoctype(t);break}case m.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case m.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case m.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case m.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case m.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case m.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case m.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case m.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case m.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case m.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case m.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case m.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case m.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case m.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case m.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case m.CDATA_SECTION:{this._stateCdataSection(t);break}case m.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case m.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case m.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case m.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case d.LESS_THAN_SIGN:{this.state=m.TAG_OPEN;break}case d.AMPERSAND:{this._startCharacterReference();break}case d.NULL:{this._err(C.unexpectedNullCharacter),this._emitCodePoint(t);break}case d.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case d.AMPERSAND:{this._startCharacterReference();break}case d.LESS_THAN_SIGN:{this.state=m.RCDATA_LESS_THAN_SIGN;break}case d.NULL:{this._err(C.unexpectedNullCharacter),this._emitChars(Ee);break}case d.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case d.LESS_THAN_SIGN:{this.state=m.RAWTEXT_LESS_THAN_SIGN;break}case d.NULL:{this._err(C.unexpectedNullCharacter),this._emitChars(Ee);break}case d.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case d.LESS_THAN_SIGN:{this.state=m.SCRIPT_DATA_LESS_THAN_SIGN;break}case d.NULL:{this._err(C.unexpectedNullCharacter),this._emitChars(Ee);break}case d.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case d.NULL:{this._err(C.unexpectedNullCharacter),this._emitChars(Ee);break}case d.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(dt(t))this._createStartTagToken(),this.state=m.TAG_NAME,this._stateTagName(t);else switch(t){case d.EXCLAMATION_MARK:{this.state=m.MARKUP_DECLARATION_OPEN;break}case d.SOLIDUS:{this.state=m.END_TAG_OPEN;break}case d.QUESTION_MARK:{this._err(C.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=m.BOGUS_COMMENT,this._stateBogusComment(t);break}case d.EOF:{this._err(C.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(C.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=m.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(dt(t))this._createEndTagToken(),this.state=m.TAG_NAME,this._stateTagName(t);else switch(t){case d.GREATER_THAN_SIGN:{this._err(C.missingEndTagName),this.state=m.DATA;break}case d.EOF:{this._err(C.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(C.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=m.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:{this.state=m.BEFORE_ATTRIBUTE_NAME;break}case d.SOLIDUS:{this.state=m.SELF_CLOSING_START_TAG;break}case d.GREATER_THAN_SIGN:{this.state=m.DATA,this.emitCurrentTagToken();break}case d.NULL:{this._err(C.unexpectedNullCharacter),n.tagName+=Ee;break}case d.EOF:{this._err(C.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(qt(t)?bn(t):t)}}_stateRcdataLessThanSign(t){t===d.SOLIDUS?this.state=m.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=m.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){dt(t)?(this.state=m.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=m.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=m.BEFORE_ATTRIBUTE_NAME,!1;case d.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=m.SELF_CLOSING_START_TAG,!1;case d.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=m.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=m.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===d.SOLIDUS?this.state=m.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=m.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){dt(t)?(this.state=m.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=m.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=m.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case d.SOLIDUS:{this.state=m.SCRIPT_DATA_END_TAG_OPEN;break}case d.EXCLAMATION_MARK:{this.state=m.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=m.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){dt(t)?(this.state=m.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=m.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=m.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===d.HYPHEN_MINUS?(this.state=m.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=m.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===d.HYPHEN_MINUS?(this.state=m.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=m.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case d.HYPHEN_MINUS:{this.state=m.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case d.LESS_THAN_SIGN:{this.state=m.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case d.NULL:{this._err(C.unexpectedNullCharacter),this._emitChars(Ee);break}case d.EOF:{this._err(C.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case d.HYPHEN_MINUS:{this.state=m.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case d.LESS_THAN_SIGN:{this.state=m.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case d.NULL:{this._err(C.unexpectedNullCharacter),this.state=m.SCRIPT_DATA_ESCAPED,this._emitChars(Ee);break}case d.EOF:{this._err(C.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=m.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case d.HYPHEN_MINUS:{this._emitChars("-");break}case d.LESS_THAN_SIGN:{this.state=m.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case d.GREATER_THAN_SIGN:{this.state=m.SCRIPT_DATA,this._emitChars(">");break}case d.NULL:{this._err(C.unexpectedNullCharacter),this.state=m.SCRIPT_DATA_ESCAPED,this._emitChars(Ee);break}case d.EOF:{this._err(C.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=m.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===d.SOLIDUS?this.state=m.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:dt(t)?(this._emitChars("<"),this.state=m.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=m.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){dt(t)?(this.state=m.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=m.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=m.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(He.SCRIPT,!1)&&Mr(this.preprocessor.peek(He.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<He.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=m.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case d.HYPHEN_MINUS:{this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case d.LESS_THAN_SIGN:{this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case d.NULL:{this._err(C.unexpectedNullCharacter),this._emitChars(Ee);break}case d.EOF:{this._err(C.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case d.HYPHEN_MINUS:{this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case d.LESS_THAN_SIGN:{this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case d.NULL:{this._err(C.unexpectedNullCharacter),this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ee);break}case d.EOF:{this._err(C.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case d.HYPHEN_MINUS:{this._emitChars("-");break}case d.LESS_THAN_SIGN:{this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case d.GREATER_THAN_SIGN:{this.state=m.SCRIPT_DATA,this._emitChars(">");break}case d.NULL:{this._err(C.unexpectedNullCharacter),this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ee);break}case d.EOF:{this._err(C.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===d.SOLIDUS?(this.state=m.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(He.SCRIPT,!1)&&Mr(this.preprocessor.peek(He.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<He.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=m.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:break;case d.SOLIDUS:case d.GREATER_THAN_SIGN:case d.EOF:{this.state=m.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case d.EQUALS_SIGN:{this._err(C.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=m.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=m.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:case d.SOLIDUS:case d.GREATER_THAN_SIGN:case d.EOF:{this._leaveAttrName(),this.state=m.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case d.EQUALS_SIGN:{this._leaveAttrName(),this.state=m.BEFORE_ATTRIBUTE_VALUE;break}case d.QUOTATION_MARK:case d.APOSTROPHE:case d.LESS_THAN_SIGN:{this._err(C.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case d.NULL:{this._err(C.unexpectedNullCharacter),this.currentAttr.name+=Ee;break}default:this.currentAttr.name+=String.fromCodePoint(qt(t)?bn(t):t)}}_stateAfterAttributeName(t){switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:break;case d.SOLIDUS:{this.state=m.SELF_CLOSING_START_TAG;break}case d.EQUALS_SIGN:{this.state=m.BEFORE_ATTRIBUTE_VALUE;break}case d.GREATER_THAN_SIGN:{this.state=m.DATA,this.emitCurrentTagToken();break}case d.EOF:{this._err(C.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=m.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:break;case d.QUOTATION_MARK:{this.state=m.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case d.APOSTROPHE:{this.state=m.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case d.GREATER_THAN_SIGN:{this._err(C.missingAttributeValue),this.state=m.DATA,this.emitCurrentTagToken();break}default:this.state=m.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case d.QUOTATION_MARK:{this.state=m.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case d.AMPERSAND:{this._startCharacterReference();break}case d.NULL:{this._err(C.unexpectedNullCharacter),this.currentAttr.value+=Ee;break}case d.EOF:{this._err(C.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case d.APOSTROPHE:{this.state=m.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case d.AMPERSAND:{this._startCharacterReference();break}case d.NULL:{this._err(C.unexpectedNullCharacter),this.currentAttr.value+=Ee;break}case d.EOF:{this._err(C.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:{this._leaveAttrValue(),this.state=m.BEFORE_ATTRIBUTE_NAME;break}case d.AMPERSAND:{this._startCharacterReference();break}case d.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=m.DATA,this.emitCurrentTagToken();break}case d.NULL:{this._err(C.unexpectedNullCharacter),this.currentAttr.value+=Ee;break}case d.QUOTATION_MARK:case d.APOSTROPHE:case d.LESS_THAN_SIGN:case d.EQUALS_SIGN:case d.GRAVE_ACCENT:{this._err(C.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case d.EOF:{this._err(C.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:{this._leaveAttrValue(),this.state=m.BEFORE_ATTRIBUTE_NAME;break}case d.SOLIDUS:{this._leaveAttrValue(),this.state=m.SELF_CLOSING_START_TAG;break}case d.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=m.DATA,this.emitCurrentTagToken();break}case d.EOF:{this._err(C.eofInTag),this._emitEOFToken();break}default:this._err(C.missingWhitespaceBetweenAttributes),this.state=m.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case d.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=m.DATA,this.emitCurrentTagToken();break}case d.EOF:{this._err(C.eofInTag),this._emitEOFToken();break}default:this._err(C.unexpectedSolidusInTag),this.state=m.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case d.GREATER_THAN_SIGN:{this.state=m.DATA,this.emitCurrentComment(n);break}case d.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case d.NULL:{this._err(C.unexpectedNullCharacter),n.data+=Ee;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(He.DASH_DASH,!0)?(this._createCommentToken(He.DASH_DASH.length+1),this.state=m.COMMENT_START):this._consumeSequenceIfMatch(He.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(He.DOCTYPE.length+1),this.state=m.DOCTYPE):this._consumeSequenceIfMatch(He.CDATA_START,!0)?this.inForeignNode?this.state=m.CDATA_SECTION:(this._err(C.cdataInHtmlContent),this._createCommentToken(He.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=m.BOGUS_COMMENT):this._ensureHibernation()||(this._err(C.incorrectlyOpenedComment),this._createCommentToken(2),this.state=m.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case d.HYPHEN_MINUS:{this.state=m.COMMENT_START_DASH;break}case d.GREATER_THAN_SIGN:{this._err(C.abruptClosingOfEmptyComment),this.state=m.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=m.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case d.HYPHEN_MINUS:{this.state=m.COMMENT_END;break}case d.GREATER_THAN_SIGN:{this._err(C.abruptClosingOfEmptyComment),this.state=m.DATA,this.emitCurrentComment(n);break}case d.EOF:{this._err(C.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=m.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case d.HYPHEN_MINUS:{this.state=m.COMMENT_END_DASH;break}case d.LESS_THAN_SIGN:{n.data+="<",this.state=m.COMMENT_LESS_THAN_SIGN;break}case d.NULL:{this._err(C.unexpectedNullCharacter),n.data+=Ee;break}case d.EOF:{this._err(C.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case d.EXCLAMATION_MARK:{n.data+="!",this.state=m.COMMENT_LESS_THAN_SIGN_BANG;break}case d.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=m.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===d.HYPHEN_MINUS?this.state=m.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=m.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===d.HYPHEN_MINUS?this.state=m.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=m.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==d.GREATER_THAN_SIGN&&t!==d.EOF&&this._err(C.nestedComment),this.state=m.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case d.HYPHEN_MINUS:{this.state=m.COMMENT_END;break}case d.EOF:{this._err(C.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=m.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case d.GREATER_THAN_SIGN:{this.state=m.DATA,this.emitCurrentComment(n);break}case d.EXCLAMATION_MARK:{this.state=m.COMMENT_END_BANG;break}case d.HYPHEN_MINUS:{n.data+="-";break}case d.EOF:{this._err(C.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=m.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case d.HYPHEN_MINUS:{n.data+="--!",this.state=m.COMMENT_END_DASH;break}case d.GREATER_THAN_SIGN:{this._err(C.incorrectlyClosedComment),this.state=m.DATA,this.emitCurrentComment(n);break}case d.EOF:{this._err(C.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=m.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:{this.state=m.BEFORE_DOCTYPE_NAME;break}case d.GREATER_THAN_SIGN:{this.state=m.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case d.EOF:{this._err(C.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(C.missingWhitespaceBeforeDoctypeName),this.state=m.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(qt(t))this._createDoctypeToken(String.fromCharCode(bn(t))),this.state=m.DOCTYPE_NAME;else switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:break;case d.NULL:{this._err(C.unexpectedNullCharacter),this._createDoctypeToken(Ee),this.state=m.DOCTYPE_NAME;break}case d.GREATER_THAN_SIGN:{this._err(C.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=m.DATA;break}case d.EOF:{this._err(C.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=m.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:{this.state=m.AFTER_DOCTYPE_NAME;break}case d.GREATER_THAN_SIGN:{this.state=m.DATA,this.emitCurrentDoctype(n);break}case d.NULL:{this._err(C.unexpectedNullCharacter),n.name+=Ee;break}case d.EOF:{this._err(C.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(qt(t)?bn(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:break;case d.GREATER_THAN_SIGN:{this.state=m.DATA,this.emitCurrentDoctype(n);break}case d.EOF:{this._err(C.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(He.PUBLIC,!1)?this.state=m.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(He.SYSTEM,!1)?this.state=m.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(C.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=m.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:{this.state=m.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case d.QUOTATION_MARK:{this._err(C.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=m.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case d.APOSTROPHE:{this._err(C.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=m.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case d.GREATER_THAN_SIGN:{this._err(C.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=m.DATA,this.emitCurrentDoctype(n);break}case d.EOF:{this._err(C.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(C.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=m.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:break;case d.QUOTATION_MARK:{n.publicId="",this.state=m.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case d.APOSTROPHE:{n.publicId="",this.state=m.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case d.GREATER_THAN_SIGN:{this._err(C.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=m.DATA,this.emitCurrentDoctype(n);break}case d.EOF:{this._err(C.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(C.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=m.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case d.QUOTATION_MARK:{this.state=m.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case d.NULL:{this._err(C.unexpectedNullCharacter),n.publicId+=Ee;break}case d.GREATER_THAN_SIGN:{this._err(C.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=m.DATA;break}case d.EOF:{this._err(C.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case d.APOSTROPHE:{this.state=m.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case d.NULL:{this._err(C.unexpectedNullCharacter),n.publicId+=Ee;break}case d.GREATER_THAN_SIGN:{this._err(C.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=m.DATA;break}case d.EOF:{this._err(C.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:{this.state=m.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case d.GREATER_THAN_SIGN:{this.state=m.DATA,this.emitCurrentDoctype(n);break}case d.QUOTATION_MARK:{this._err(C.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=m.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case d.APOSTROPHE:{this._err(C.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=m.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case d.EOF:{this._err(C.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(C.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=m.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:break;case d.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=m.DATA;break}case d.QUOTATION_MARK:{n.systemId="",this.state=m.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case d.APOSTROPHE:{n.systemId="",this.state=m.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case d.EOF:{this._err(C.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(C.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=m.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:{this.state=m.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case d.QUOTATION_MARK:{this._err(C.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=m.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case d.APOSTROPHE:{this._err(C.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=m.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case d.GREATER_THAN_SIGN:{this._err(C.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=m.DATA,this.emitCurrentDoctype(n);break}case d.EOF:{this._err(C.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(C.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=m.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:break;case d.QUOTATION_MARK:{n.systemId="",this.state=m.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case d.APOSTROPHE:{n.systemId="",this.state=m.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case d.GREATER_THAN_SIGN:{this._err(C.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=m.DATA,this.emitCurrentDoctype(n);break}case d.EOF:{this._err(C.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(C.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=m.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case d.QUOTATION_MARK:{this.state=m.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case d.NULL:{this._err(C.unexpectedNullCharacter),n.systemId+=Ee;break}case d.GREATER_THAN_SIGN:{this._err(C.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=m.DATA;break}case d.EOF:{this._err(C.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case d.APOSTROPHE:{this.state=m.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case d.NULL:{this._err(C.unexpectedNullCharacter),n.systemId+=Ee;break}case d.GREATER_THAN_SIGN:{this._err(C.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=m.DATA;break}case d.EOF:{this._err(C.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:break;case d.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=m.DATA;break}case d.EOF:{this._err(C.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(C.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=m.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case d.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=m.DATA;break}case d.NULL:{this._err(C.unexpectedNullCharacter);break}case d.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case d.RIGHT_SQUARE_BRACKET:{this.state=m.CDATA_SECTION_BRACKET;break}case d.EOF:{this._err(C.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===d.RIGHT_SQUARE_BRACKET?this.state=m.CDATA_SECTION_END:(this._emitChars("]"),this.state=m.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case d.GREATER_THAN_SIGN:{this.state=m.DATA;break}case d.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=m.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(d.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&vr(this.preprocessor.peek(1))?m.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){vr(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===d.SEMICOLON&&this._err(C.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const bi=new Set([r.DD,r.DT,r.LI,r.OPTGROUP,r.OPTION,r.P,r.RB,r.RP,r.RT,r.RTC]),kr=new Set([...bi,r.CAPTION,r.COLGROUP,r.TBODY,r.TD,r.TFOOT,r.TH,r.THEAD,r.TR]),wn=new Set([r.APPLET,r.CAPTION,r.HTML,r.MARQUEE,r.OBJECT,r.TABLE,r.TD,r.TEMPLATE,r.TH]),cd=new Set([...wn,r.OL,r.UL]),ud=new Set([...wn,r.BUTTON]),Pr=new Set([r.ANNOTATION_XML,r.MI,r.MN,r.MO,r.MS,r.MTEXT]),Br=new Set([r.DESC,r.FOREIGN_OBJECT,r.TITLE]),ld=new Set([r.TR,r.TEMPLATE,r.HTML]),dd=new Set([r.TBODY,r.TFOOT,r.THEAD,r.TEMPLATE,r.HTML]),fd=new Set([r.TABLE,r.TEMPLATE,r.HTML]),md=new Set([r.TD,r.TH]);class hd{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,a){this.treeAdapter=n,this.handler=a,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=r.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===r.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===L.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const a=this._indexOf(t);this.items[a]=n,a===this.stackTop&&(this.current=n)}insertAfter(t,n,a){const s=this._indexOf(t)+1;this.items.splice(s,0,n),this.tagIDs.splice(s,0,a),this.stackTop++,s===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,s===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==L.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const a=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(a,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Ra,L.HTML)}popUntilTableCellPopped(){this.popUntilPopped(md,L.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let a=this.stackTop;a>=0;a--)if(t.has(this.tagIDs[a])&&this.treeAdapter.getNamespaceURI(this.items[a])===n)return a;return-1}clearBackTo(t,n){const a=this._indexOfTagNames(t,n);this.shortenToLength(a+1)}clearBackToTableContext(){this.clearBackTo(fd,L.HTML)}clearBackToTableBodyContext(){this.clearBackTo(dd,L.HTML)}clearBackToTableRowContext(){this.clearBackTo(ld,L.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===r.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===r.HTML}hasInDynamicScope(t,n){for(let a=this.stackTop;a>=0;a--){const s=this.tagIDs[a];switch(this.treeAdapter.getNamespaceURI(this.items[a])){case L.HTML:{if(s===t)return!0;if(n.has(s))return!1;break}case L.SVG:{if(Br.has(s))return!1;break}case L.MATHML:{if(Pr.has(s))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,wn)}hasInListItemScope(t){return this.hasInDynamicScope(t,cd)}hasInButtonScope(t){return this.hasInDynamicScope(t,ud)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case L.HTML:{if(Ra.has(n))return!0;if(wn.has(n))return!1;break}case L.SVG:{if(Br.has(n))return!1;break}case L.MATHML:{if(Pr.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===L.HTML)switch(this.tagIDs[n]){case t:return!0;case r.TABLE:case r.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===L.HTML)switch(this.tagIDs[t]){case r.TBODY:case r.THEAD:case r.TFOOT:return!0;case r.TABLE:case r.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===L.HTML)switch(this.tagIDs[n]){case t:return!0;case r.OPTION:case r.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&bi.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&kr.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&kr.has(this.currentTagId);)this.pop()}}const oa=3;var at;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(at||(at={}));const Ur={type:at.Marker};class Ed{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const a=[],s=n.length,i=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);for(let c=0;c<this.entries.length;c++){const l=this.entries[c];if(l.type===at.Marker)break;const{element:f}=l;if(this.treeAdapter.getTagName(f)===i&&this.treeAdapter.getNamespaceURI(f)===o){const E=this.treeAdapter.getAttrList(f);E.length===s&&a.push({idx:c,attrs:E})}}return a}_ensureNoahArkCondition(t){if(this.entries.length<oa)return;const n=this.treeAdapter.getAttrList(t),a=this._getNoahArkConditionCandidates(t,n);if(a.length<oa)return;const s=new Map(n.map(o=>[o.name,o.value]));let i=0;for(let o=0;o<a.length;o++){const c=a[o];c.attrs.every(l=>s.get(l.name)===l.value)&&(i+=1,i>=oa&&this.entries.splice(c.idx,1))}}insertMarker(){this.entries.unshift(Ur)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:at.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const a=this.entries.indexOf(this.bookmark);this.entries.splice(a,0,{type:at.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Ur);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(a=>a.type===at.Marker||this.treeAdapter.getTagName(a.element)===t);return n&&n.type===at.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===at.Element&&n.element===t)}}const ft={createDocument(){return{nodeName:"#document",mode:Ge.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){const a=e.childNodes.indexOf(n);e.childNodes.splice(a,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,a){const s=e.childNodes.find(i=>i.nodeName==="#documentType");if(s)s.name=t,s.publicId=n,s.systemId=a;else{const i={nodeName:"#documentType",name:t,publicId:n,systemId:a,parentNode:null};ft.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(ft.isTextNode(n)){n.value+=t;return}}ft.appendChild(e,ft.createTextNode(t))},insertTextBefore(e,t,n){const a=e.childNodes[e.childNodes.indexOf(n)-1];a&&ft.isTextNode(a)?a.value+=t:ft.insertBefore(e,ft.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(a=>a.name));for(let a=0;a<t.length;a++)n.has(t[a].name)||e.attrs.push(t[a])},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}}},gi="html",pd="about:legacy-compat",bd="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",_i=["+//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//"],gd=[..._i,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],_d=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Ti=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Td=[...Ti,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Fr(e,t){return t.some(n=>e.startsWith(n))}function Nd(e){return e.name===gi&&e.publicId===null&&(e.systemId===null||e.systemId===pd)}function Ad(e){if(e.name!==gi)return Ge.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===bd)return Ge.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),_d.has(n))return Ge.QUIRKS;let a=t===null?gd:_i;if(Fr(n,a))return Ge.QUIRKS;if(a=t===null?Ti:Td,Fr(n,a))return Ge.LIMITED_QUIRKS}return Ge.NO_QUIRKS}const Hr={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Sd="definitionurl",xd="definitionURL",Cd=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])),Id=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:L.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:L.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:L.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:L.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:L.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:L.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:L.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:L.XML}],["xml:space",{prefix:"xml",name:"space",namespace:L.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:L.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:L.XMLNS}]]),Od=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])),Rd=new Set([r.B,r.BIG,r.BLOCKQUOTE,r.BODY,r.BR,r.CENTER,r.CODE,r.DD,r.DIV,r.DL,r.DT,r.EM,r.EMBED,r.H1,r.H2,r.H3,r.H4,r.H5,r.H6,r.HEAD,r.HR,r.I,r.IMG,r.LI,r.LISTING,r.MENU,r.META,r.NOBR,r.OL,r.P,r.PRE,r.RUBY,r.S,r.SMALL,r.SPAN,r.STRONG,r.STRIKE,r.SUB,r.SUP,r.TABLE,r.TT,r.U,r.UL,r.VAR]);function yd(e){const t=e.tagID;return t===r.FONT&&e.attrs.some(({name:a})=>a===Ct.COLOR||a===Ct.SIZE||a===Ct.FACE)||Rd.has(t)}function Ni(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Sd){e.attrs[t].name=xd;break}}function Ai(e){for(let t=0;t<e.attrs.length;t++){const n=Cd.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Wa(e){for(let t=0;t<e.attrs.length;t++){const n=Id.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function Ld(e){const t=Od.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Ht(e.tagName))}function wd(e,t){return t===L.MATHML&&(e===r.MI||e===r.MO||e===r.MN||e===r.MS||e===r.MTEXT)}function Dd(e,t,n){if(t===L.MATHML&&e===r.ANNOTATION_XML){for(let a=0;a<n.length;a++)if(n[a].name===Ct.ENCODING){const s=n[a].value.toLowerCase();return s===Hr.TEXT_HTML||s===Hr.APPLICATION_XML}}return t===L.SVG&&(e===r.FOREIGN_OBJECT||e===r.DESC||e===r.TITLE)}function vd(e,t,n,a){return(!a||a===L.HTML)&&Dd(e,t,n)||(!a||a===L.MATHML)&&wd(e,t)}const Md="hidden",kd=8,Pd=3;var h;(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"})(h||(h={}));const Bd={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Si=new Set([r.TABLE,r.TBODY,r.TFOOT,r.THEAD,r.TR]),zr={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:ft,onParseError:null};class Yr{constructor(t,n,a=null,s=null){this.fragmentContext=a,this.scriptHandler=s,this.currentToken=null,this.stopped=!1,this.insertionMode=h.INITIAL,this.originalInsertionMode=h.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={...zr,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new od(this.options,this),this.activeFormattingElements=new Ed(this.treeAdapter),this.fragmentContextID=a?Ht(this.treeAdapter.getTagName(a)):r.UNKNOWN,this._setContextModes(a??this.document,this.fragmentContextID),this.openElements=new hd(this.document,this.treeAdapter,this)}static parse(t,n){const a=new this(n);return a.tokenizer.write(t,!0),a.document}static getFragmentParser(t,n){const a={...zr,...n};t??(t=a.treeAdapter.createElement(N.TEMPLATE,L.HTML,[]));const s=a.treeAdapter.createElement("documentmock",L.HTML,[]),i=new this(a,s,t);return i.fragmentContextID===r.TEMPLATE&&i.tmplInsertionModeStack.unshift(h.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,a){var s;if(!this.onParseError)return;const i=(s=t.location)!==null&&s!==void 0?s:Bd,o={code:n,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:a?i.startLine:i.endLine,endCol:a?i.startCol:i.endCol,endOffset:a?i.startOffset:i.endOffset};this.onParseError(o)}onItemPush(t,n,a){var s,i;(i=(s=this.treeAdapter).onItemPush)===null||i===void 0||i.call(s,t),a&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var a,s;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(s=(a=this.treeAdapter).onItemPop)===null||s===void 0||s.call(a,t,this.openElements.current),n){let i,o;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,o=this.fragmentContextID):{current:i,currentTagId:o}=this.openElements,this._setContextModes(i,o)}}_setContextModes(t,n){const a=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===L.HTML;this.currentNotInHTML=!a,this.tokenizer.inForeignNode=!a&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,L.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=h.TEXT}switchToPlaintextParsing(){this.insertionMode=h.TEXT,this.originalInsertionMode=h.IN_BODY,this.tokenizer.state=Ae.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===N.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==L.HTML))switch(this.fragmentContextID){case r.TITLE:case r.TEXTAREA:{this.tokenizer.state=Ae.RCDATA;break}case r.STYLE:case r.XMP:case r.IFRAME:case r.NOEMBED:case r.NOFRAMES:case r.NOSCRIPT:{this.tokenizer.state=Ae.RAWTEXT;break}case r.SCRIPT:{this.tokenizer.state=Ae.SCRIPT_DATA;break}case r.PLAINTEXT:{this.tokenizer.state=Ae.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",a=t.publicId||"",s=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,a,s),t.location){const o=this.treeAdapter.getChildNodes(this.document).find(c=>this.treeAdapter.isDocumentTypeNode(c));o&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const a=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,a)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const a=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(a??this.document,t)}}_appendElement(t,n){const a=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(a,t.location)}_insertElement(t,n){const a=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(a,t.location),this.openElements.push(a,t.tagID)}_insertFakeElement(t,n){const a=this.treeAdapter.createElement(t,L.HTML,[]);this._attachElementToTree(a,null),this.openElements.push(a,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,L.HTML,t.attrs),a=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,a),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(N.HTML,L.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,r.HTML)}_appendCommentNode(t,n){const a=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,a),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}_insertCharacters(t){let n,a;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:a}=this._findFosterParentingLocation(),a?this.treeAdapter.insertTextBefore(n,t.chars,a):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const s=this.treeAdapter.getChildNodes(n),i=a?s.lastIndexOf(a):s.length,o=s[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){const{endLine:l,endCol:f,endOffset:E}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:l,endCol:f,endOffset:E})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}_adoptNodes(t,n){for(let a=this.treeAdapter.getFirstChild(t);a;a=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(a),this.treeAdapter.appendChild(n,a)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const a=n.location,s=this.treeAdapter.getTagName(t),i=n.type===Z.END_TAG&&s===n.tagName?{endTag:{...a},endLine:a.endLine,endCol:a.endCol,endOffset:a.endOffset}:{endLine:a.startLine,endCol:a.startCol,endOffset:a.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,a;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,a=this.fragmentContextID):{current:n,currentTagId:a}=this.openElements,t.tagID===r.SVG&&this.treeAdapter.getTagName(n)===N.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===L.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===r.MGLYPH||t.tagID===r.MALIGNMARK)&&a!==void 0&&!this._isIntegrationPoint(a,n,L.HTML)}_processToken(t){switch(t.type){case Z.CHARACTER:{this.onCharacter(t);break}case Z.NULL_CHARACTER:{this.onNullCharacter(t);break}case Z.COMMENT:{this.onComment(t);break}case Z.DOCTYPE:{this.onDoctype(t);break}case Z.START_TAG:{this._processStartTag(t);break}case Z.END_TAG:{this.onEndTag(t);break}case Z.EOF:{this.onEof(t);break}case Z.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,a){const s=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return vd(t,s,i,a)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(s=>s.type===at.Marker||this.openElements.contains(s.element)),a=n===-1?t-1:n-1;for(let s=a;s>=0;s--){const i=this.activeFormattingElements.entries[s];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=h.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(r.P),this.openElements.popUntilTagNamePopped(r.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case r.TR:{this.insertionMode=h.IN_ROW;return}case r.TBODY:case r.THEAD:case r.TFOOT:{this.insertionMode=h.IN_TABLE_BODY;return}case r.CAPTION:{this.insertionMode=h.IN_CAPTION;return}case r.COLGROUP:{this.insertionMode=h.IN_COLUMN_GROUP;return}case r.TABLE:{this.insertionMode=h.IN_TABLE;return}case r.BODY:{this.insertionMode=h.IN_BODY;return}case r.FRAMESET:{this.insertionMode=h.IN_FRAMESET;return}case r.SELECT:{this._resetInsertionModeForSelect(t);return}case r.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case r.HTML:{this.insertionMode=this.headElement?h.AFTER_HEAD:h.BEFORE_HEAD;return}case r.TD:case r.TH:{if(t>0){this.insertionMode=h.IN_CELL;return}break}case r.HEAD:{if(t>0){this.insertionMode=h.IN_HEAD;return}break}}this.insertionMode=h.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const a=this.openElements.tagIDs[n];if(a===r.TEMPLATE)break;if(a===r.TABLE){this.insertionMode=h.IN_SELECT_IN_TABLE;return}}this.insertionMode=h.IN_SELECT}_isElementCausesFosterParenting(t){return Si.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case r.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===L.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case r.TABLE:{const a=this.treeAdapter.getParentNode(n);return a?{parent:a,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const a=this.treeAdapter.getNamespaceURI(t);return ad[a].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){hf(this,t);return}switch(this.insertionMode){case h.INITIAL:{Kt(this,t);break}case h.BEFORE_HTML:{Xt(this,t);break}case h.BEFORE_HEAD:{Qt(this,t);break}case h.IN_HEAD:{Zt(this,t);break}case h.IN_HEAD_NO_SCRIPT:{Jt(this,t);break}case h.AFTER_HEAD:{en(this,t);break}case h.IN_BODY:case h.IN_CAPTION:case h.IN_CELL:case h.IN_TEMPLATE:{Ci(this,t);break}case h.TEXT:case h.IN_SELECT:case h.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case h.IN_TABLE:case h.IN_TABLE_BODY:case h.IN_ROW:{ca(this,t);break}case h.IN_TABLE_TEXT:{wi(this,t);break}case h.IN_COLUMN_GROUP:{Dn(this,t);break}case h.AFTER_BODY:{vn(this,t);break}case h.AFTER_AFTER_BODY:{xn(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){mf(this,t);return}switch(this.insertionMode){case h.INITIAL:{Kt(this,t);break}case h.BEFORE_HTML:{Xt(this,t);break}case h.BEFORE_HEAD:{Qt(this,t);break}case h.IN_HEAD:{Zt(this,t);break}case h.IN_HEAD_NO_SCRIPT:{Jt(this,t);break}case h.AFTER_HEAD:{en(this,t);break}case h.TEXT:{this._insertCharacters(t);break}case h.IN_TABLE:case h.IN_TABLE_BODY:case h.IN_ROW:{ca(this,t);break}case h.IN_COLUMN_GROUP:{Dn(this,t);break}case h.AFTER_BODY:{vn(this,t);break}case h.AFTER_AFTER_BODY:{xn(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){ya(this,t);return}switch(this.insertionMode){case h.INITIAL:case h.BEFORE_HTML:case h.BEFORE_HEAD:case h.IN_HEAD:case h.IN_HEAD_NO_SCRIPT:case h.AFTER_HEAD:case h.IN_BODY:case h.IN_TABLE:case h.IN_CAPTION:case h.IN_COLUMN_GROUP:case h.IN_TABLE_BODY:case h.IN_ROW:case h.IN_CELL:case h.IN_SELECT:case h.IN_SELECT_IN_TABLE:case h.IN_TEMPLATE:case h.IN_FRAMESET:case h.AFTER_FRAMESET:{ya(this,t);break}case h.IN_TABLE_TEXT:{$t(this,t);break}case h.AFTER_BODY:{Kd(this,t);break}case h.AFTER_AFTER_BODY:case h.AFTER_AFTER_FRAMESET:{$d(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case h.INITIAL:{Wd(this,t);break}case h.BEFORE_HEAD:case h.IN_HEAD:case h.IN_HEAD_NO_SCRIPT:case h.AFTER_HEAD:{this._err(t,C.misplacedDoctype);break}case h.IN_TABLE_TEXT:{$t(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,C.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Ef(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case h.INITIAL:{Kt(this,t);break}case h.BEFORE_HTML:{jd(this,t);break}case h.BEFORE_HEAD:{Vd(this,t);break}case h.IN_HEAD:{Qe(this,t);break}case h.IN_HEAD_NO_SCRIPT:{Zd(this,t);break}case h.AFTER_HEAD:{e0(this,t);break}case h.IN_BODY:{Be(this,t);break}case h.IN_TABLE:{Bt(this,t);break}case h.IN_TABLE_TEXT:{$t(this,t);break}case h.IN_CAPTION:{X0(this,t);break}case h.IN_COLUMN_GROUP:{Va(this,t);break}case h.IN_TABLE_BODY:{jn(this,t);break}case h.IN_ROW:{qn(this,t);break}case h.IN_CELL:{J0(this,t);break}case h.IN_SELECT:{Mi(this,t);break}case h.IN_SELECT_IN_TABLE:{tf(this,t);break}case h.IN_TEMPLATE:{af(this,t);break}case h.AFTER_BODY:{sf(this,t);break}case h.IN_FRAMESET:{of(this,t);break}case h.AFTER_FRAMESET:{uf(this,t);break}case h.AFTER_AFTER_BODY:{df(this,t);break}case h.AFTER_AFTER_FRAMESET:{ff(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?pf(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case h.INITIAL:{Kt(this,t);break}case h.BEFORE_HTML:{qd(this,t);break}case h.BEFORE_HEAD:{Xd(this,t);break}case h.IN_HEAD:{Qd(this,t);break}case h.IN_HEAD_NO_SCRIPT:{Jd(this,t);break}case h.AFTER_HEAD:{t0(this,t);break}case h.IN_BODY:{Wn(this,t);break}case h.TEXT:{H0(this,t);break}case h.IN_TABLE:{tn(this,t);break}case h.IN_TABLE_TEXT:{$t(this,t);break}case h.IN_CAPTION:{Q0(this,t);break}case h.IN_COLUMN_GROUP:{Z0(this,t);break}case h.IN_TABLE_BODY:{La(this,t);break}case h.IN_ROW:{vi(this,t);break}case h.IN_CELL:{ef(this,t);break}case h.IN_SELECT:{ki(this,t);break}case h.IN_SELECT_IN_TABLE:{nf(this,t);break}case h.IN_TEMPLATE:{rf(this,t);break}case h.AFTER_BODY:{Bi(this,t);break}case h.IN_FRAMESET:{cf(this,t);break}case h.AFTER_FRAMESET:{lf(this,t);break}case h.AFTER_AFTER_BODY:{xn(this,t);break}}}onEof(t){switch(this.insertionMode){case h.INITIAL:{Kt(this,t);break}case h.BEFORE_HTML:{Xt(this,t);break}case h.BEFORE_HEAD:{Qt(this,t);break}case h.IN_HEAD:{Zt(this,t);break}case h.IN_HEAD_NO_SCRIPT:{Jt(this,t);break}case h.AFTER_HEAD:{en(this,t);break}case h.IN_BODY:case h.IN_TABLE:case h.IN_CAPTION:case h.IN_COLUMN_GROUP:case h.IN_TABLE_BODY:case h.IN_ROW:case h.IN_CELL:case h.IN_SELECT:case h.IN_SELECT_IN_TABLE:{yi(this,t);break}case h.TEXT:{z0(this,t);break}case h.IN_TABLE_TEXT:{$t(this,t);break}case h.IN_TEMPLATE:{Pi(this,t);break}case h.AFTER_BODY:case h.IN_FRAMESET:case h.AFTER_FRAMESET:case h.AFTER_AFTER_BODY:case h.AFTER_AFTER_FRAMESET:{qa(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===d.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case h.IN_HEAD:case h.IN_HEAD_NO_SCRIPT:case h.AFTER_HEAD:case h.TEXT:case h.IN_COLUMN_GROUP:case h.IN_SELECT:case h.IN_SELECT_IN_TABLE:case h.IN_FRAMESET:case h.AFTER_FRAMESET:{this._insertCharacters(t);break}case h.IN_BODY:case h.IN_CAPTION:case h.IN_CELL:case h.IN_TEMPLATE:case h.AFTER_BODY:case h.AFTER_AFTER_BODY:case h.AFTER_AFTER_FRAMESET:{xi(this,t);break}case h.IN_TABLE:case h.IN_TABLE_BODY:case h.IN_ROW:{ca(this,t);break}case h.IN_TABLE_TEXT:{Li(this,t);break}}}}function Ud(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Ri(e,t),n}function Fd(e,t){let n=null,a=e.openElements.stackTop;for(;a>=0;a--){const s=e.openElements.items[a];if(s===t.element)break;e._isSpecialElement(s,e.openElements.tagIDs[a])&&(n=s)}return n||(e.openElements.shortenToLength(Math.max(a,0)),e.activeFormattingElements.removeEntry(t)),n}function Hd(e,t,n){let a=t,s=e.openElements.getCommonAncestor(t);for(let i=0,o=s;o!==n;i++,o=s){s=e.openElements.getCommonAncestor(o);const c=e.activeFormattingElements.getElementEntry(o),l=c&&i>=Pd;!c||l?(l&&e.activeFormattingElements.removeEntry(c),e.openElements.remove(o)):(o=zd(e,c),a===t&&(e.activeFormattingElements.bookmark=c),e.treeAdapter.detachNode(a),e.treeAdapter.appendChild(o,a),a=o)}return a}function zd(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),a=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,a),t.element=a,a}function Yd(e,t,n){const a=e.treeAdapter.getTagName(t),s=Ht(a);if(e._isElementCausesFosterParenting(s))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);s===r.TEMPLATE&&i===L.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Gd(e,t,n){const a=e.treeAdapter.getNamespaceURI(n.element),{token:s}=n,i=e.treeAdapter.createElement(s.tagName,a,s.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,s),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i,s.tagID)}function ja(e,t){for(let n=0;n<kd;n++){const a=Ud(e,t);if(!a)break;const s=Fd(e,a);if(!s)break;e.activeFormattingElements.bookmark=a;const i=Hd(e,s,a.element),o=e.openElements.getCommonAncestor(a.element);e.treeAdapter.detachNode(i),o&&Yd(e,o,i),Gd(e,s,a)}}function ya(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Kd(e,t){e._appendCommentNode(t,e.openElements.items[0])}function $d(e,t){e._appendCommentNode(t,e.document)}function qa(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let a=e.openElements.stackTop;a>=n;a--)e._setEndLocation(e.openElements.items[a],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const a=e.openElements.items[0],s=e.treeAdapter.getNodeSourceCodeLocation(a);if(s&&!s.endTag&&(e._setEndLocation(a,t),e.openElements.stackTop>=1)){const i=e.openElements.items[1],o=e.treeAdapter.getNodeSourceCodeLocation(i);o&&!o.endTag&&e._setEndLocation(i,t)}}}}function Wd(e,t){e._setDocumentType(t);const n=t.forceQuirks?Ge.QUIRKS:Ad(t);Nd(t)||e._err(t,C.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=h.BEFORE_HTML}function Kt(e,t){e._err(t,C.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ge.QUIRKS),e.insertionMode=h.BEFORE_HTML,e._processToken(t)}function jd(e,t){t.tagID===r.HTML?(e._insertElement(t,L.HTML),e.insertionMode=h.BEFORE_HEAD):Xt(e,t)}function qd(e,t){const n=t.tagID;(n===r.HTML||n===r.HEAD||n===r.BODY||n===r.BR)&&Xt(e,t)}function Xt(e,t){e._insertFakeRootElement(),e.insertionMode=h.BEFORE_HEAD,e._processToken(t)}function Vd(e,t){switch(t.tagID){case r.HTML:{Be(e,t);break}case r.HEAD:{e._insertElement(t,L.HTML),e.headElement=e.openElements.current,e.insertionMode=h.IN_HEAD;break}default:Qt(e,t)}}function Xd(e,t){const n=t.tagID;n===r.HEAD||n===r.BODY||n===r.HTML||n===r.BR?Qt(e,t):e._err(t,C.endTagWithoutMatchingOpenElement)}function Qt(e,t){e._insertFakeElement(N.HEAD,r.HEAD),e.headElement=e.openElements.current,e.insertionMode=h.IN_HEAD,e._processToken(t)}function Qe(e,t){switch(t.tagID){case r.HTML:{Be(e,t);break}case r.BASE:case r.BASEFONT:case r.BGSOUND:case r.LINK:case r.META:{e._appendElement(t,L.HTML),t.ackSelfClosing=!0;break}case r.TITLE:{e._switchToTextParsing(t,Ae.RCDATA);break}case r.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Ae.RAWTEXT):(e._insertElement(t,L.HTML),e.insertionMode=h.IN_HEAD_NO_SCRIPT);break}case r.NOFRAMES:case r.STYLE:{e._switchToTextParsing(t,Ae.RAWTEXT);break}case r.SCRIPT:{e._switchToTextParsing(t,Ae.SCRIPT_DATA);break}case r.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=h.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(h.IN_TEMPLATE);break}case r.HEAD:{e._err(t,C.misplacedStartTagForHeadElement);break}default:Zt(e,t)}}function Qd(e,t){switch(t.tagID){case r.HEAD:{e.openElements.pop(),e.insertionMode=h.AFTER_HEAD;break}case r.BODY:case r.BR:case r.HTML:{Zt(e,t);break}case r.TEMPLATE:{yt(e,t);break}default:e._err(t,C.endTagWithoutMatchingOpenElement)}}function yt(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==r.TEMPLATE&&e._err(t,C.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(r.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,C.endTagWithoutMatchingOpenElement)}function Zt(e,t){e.openElements.pop(),e.insertionMode=h.AFTER_HEAD,e._processToken(t)}function Zd(e,t){switch(t.tagID){case r.HTML:{Be(e,t);break}case r.BASEFONT:case r.BGSOUND:case r.HEAD:case r.LINK:case r.META:case r.NOFRAMES:case r.STYLE:{Qe(e,t);break}case r.NOSCRIPT:{e._err(t,C.nestedNoscriptInHead);break}default:Jt(e,t)}}function Jd(e,t){switch(t.tagID){case r.NOSCRIPT:{e.openElements.pop(),e.insertionMode=h.IN_HEAD;break}case r.BR:{Jt(e,t);break}default:e._err(t,C.endTagWithoutMatchingOpenElement)}}function Jt(e,t){const n=t.type===Z.EOF?C.openElementsLeftAfterEof:C.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=h.IN_HEAD,e._processToken(t)}function e0(e,t){switch(t.tagID){case r.HTML:{Be(e,t);break}case r.BODY:{e._insertElement(t,L.HTML),e.framesetOk=!1,e.insertionMode=h.IN_BODY;break}case r.FRAMESET:{e._insertElement(t,L.HTML),e.insertionMode=h.IN_FRAMESET;break}case r.BASE:case r.BASEFONT:case r.BGSOUND:case r.LINK:case r.META:case r.NOFRAMES:case r.SCRIPT:case r.STYLE:case r.TEMPLATE:case r.TITLE:{e._err(t,C.abandonedHeadElementChild),e.openElements.push(e.headElement,r.HEAD),Qe(e,t),e.openElements.remove(e.headElement);break}case r.HEAD:{e._err(t,C.misplacedStartTagForHeadElement);break}default:en(e,t)}}function t0(e,t){switch(t.tagID){case r.BODY:case r.HTML:case r.BR:{en(e,t);break}case r.TEMPLATE:{yt(e,t);break}default:e._err(t,C.endTagWithoutMatchingOpenElement)}}function en(e,t){e._insertFakeElement(N.BODY,r.BODY),e.insertionMode=h.IN_BODY,$n(e,t)}function $n(e,t){switch(t.type){case Z.CHARACTER:{Ci(e,t);break}case Z.WHITESPACE_CHARACTER:{xi(e,t);break}case Z.COMMENT:{ya(e,t);break}case Z.START_TAG:{Be(e,t);break}case Z.END_TAG:{Wn(e,t);break}case Z.EOF:{yi(e,t);break}}}function xi(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Ci(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function n0(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function a0(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function r0(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,L.HTML),e.insertionMode=h.IN_FRAMESET)}function s0(e,t){e.openElements.hasInButtonScope(r.P)&&e._closePElement(),e._insertElement(t,L.HTML)}function i0(e,t){e.openElements.hasInButtonScope(r.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Ra.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,L.HTML)}function o0(e,t){e.openElements.hasInButtonScope(r.P)&&e._closePElement(),e._insertElement(t,L.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function c0(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(r.P)&&e._closePElement(),e._insertElement(t,L.HTML),n||(e.formElement=e.openElements.current))}function u0(e,t){e.framesetOk=!1;const n=t.tagID;for(let a=e.openElements.stackTop;a>=0;a--){const s=e.openElements.tagIDs[a];if(n===r.LI&&s===r.LI||(n===r.DD||n===r.DT)&&(s===r.DD||s===r.DT)){e.openElements.generateImpliedEndTagsWithExclusion(s),e.openElements.popUntilTagNamePopped(s);break}if(s!==r.ADDRESS&&s!==r.DIV&&s!==r.P&&e._isSpecialElement(e.openElements.items[a],s))break}e.openElements.hasInButtonScope(r.P)&&e._closePElement(),e._insertElement(t,L.HTML)}function l0(e,t){e.openElements.hasInButtonScope(r.P)&&e._closePElement(),e._insertElement(t,L.HTML),e.tokenizer.state=Ae.PLAINTEXT}function d0(e,t){e.openElements.hasInScope(r.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,L.HTML),e.framesetOk=!1}function f0(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(N.A);n&&(ja(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,L.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function m0(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,L.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function h0(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(r.NOBR)&&(ja(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,L.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function E0(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,L.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function p0(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ge.QUIRKS&&e.openElements.hasInButtonScope(r.P)&&e._closePElement(),e._insertElement(t,L.HTML),e.framesetOk=!1,e.insertionMode=h.IN_TABLE}function Ii(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,L.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Oi(e){const t=Ei(e,Ct.TYPE);return t!=null&&t.toLowerCase()===Md}function b0(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,L.HTML),Oi(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function g0(e,t){e._appendElement(t,L.HTML),t.ackSelfClosing=!0}function _0(e,t){e.openElements.hasInButtonScope(r.P)&&e._closePElement(),e._appendElement(t,L.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function T0(e,t){t.tagName=N.IMG,t.tagID=r.IMG,Ii(e,t)}function N0(e,t){e._insertElement(t,L.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Ae.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=h.TEXT}function A0(e,t){e.openElements.hasInButtonScope(r.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Ae.RAWTEXT)}function S0(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Ae.RAWTEXT)}function Gr(e,t){e._switchToTextParsing(t,Ae.RAWTEXT)}function x0(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,L.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===h.IN_TABLE||e.insertionMode===h.IN_CAPTION||e.insertionMode===h.IN_TABLE_BODY||e.insertionMode===h.IN_ROW||e.insertionMode===h.IN_CELL?h.IN_SELECT_IN_TABLE:h.IN_SELECT}function C0(e,t){e.openElements.currentTagId===r.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,L.HTML)}function I0(e,t){e.openElements.hasInScope(r.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,L.HTML)}function O0(e,t){e.openElements.hasInScope(r.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(r.RTC),e._insertElement(t,L.HTML)}function R0(e,t){e._reconstructActiveFormattingElements(),Ni(t),Wa(t),t.selfClosing?e._appendElement(t,L.MATHML):e._insertElement(t,L.MATHML),t.ackSelfClosing=!0}function y0(e,t){e._reconstructActiveFormattingElements(),Ai(t),Wa(t),t.selfClosing?e._appendElement(t,L.SVG):e._insertElement(t,L.SVG),t.ackSelfClosing=!0}function Kr(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,L.HTML)}function Be(e,t){switch(t.tagID){case r.I:case r.S:case r.B:case r.U:case r.EM:case r.TT:case r.BIG:case r.CODE:case r.FONT:case r.SMALL:case r.STRIKE:case r.STRONG:{m0(e,t);break}case r.A:{f0(e,t);break}case r.H1:case r.H2:case r.H3:case r.H4:case r.H5:case r.H6:{i0(e,t);break}case r.P:case r.DL:case r.OL:case r.UL:case r.DIV:case r.DIR:case r.NAV:case r.MAIN:case r.MENU:case r.ASIDE:case r.CENTER:case r.FIGURE:case r.FOOTER:case r.HEADER:case r.HGROUP:case r.DIALOG:case r.DETAILS:case r.ADDRESS:case r.ARTICLE:case r.SEARCH:case r.SECTION:case r.SUMMARY:case r.FIELDSET:case r.BLOCKQUOTE:case r.FIGCAPTION:{s0(e,t);break}case r.LI:case r.DD:case r.DT:{u0(e,t);break}case r.BR:case r.IMG:case r.WBR:case r.AREA:case r.EMBED:case r.KEYGEN:{Ii(e,t);break}case r.HR:{_0(e,t);break}case r.RB:case r.RTC:{I0(e,t);break}case r.RT:case r.RP:{O0(e,t);break}case r.PRE:case r.LISTING:{o0(e,t);break}case r.XMP:{A0(e,t);break}case r.SVG:{y0(e,t);break}case r.HTML:{n0(e,t);break}case r.BASE:case r.LINK:case r.META:case r.STYLE:case r.TITLE:case r.SCRIPT:case r.BGSOUND:case r.BASEFONT:case r.TEMPLATE:{Qe(e,t);break}case r.BODY:{a0(e,t);break}case r.FORM:{c0(e,t);break}case r.NOBR:{h0(e,t);break}case r.MATH:{R0(e,t);break}case r.TABLE:{p0(e,t);break}case r.INPUT:{b0(e,t);break}case r.PARAM:case r.TRACK:case r.SOURCE:{g0(e,t);break}case r.IMAGE:{T0(e,t);break}case r.BUTTON:{d0(e,t);break}case r.APPLET:case r.OBJECT:case r.MARQUEE:{E0(e,t);break}case r.IFRAME:{S0(e,t);break}case r.SELECT:{x0(e,t);break}case r.OPTION:case r.OPTGROUP:{C0(e,t);break}case r.NOEMBED:case r.NOFRAMES:{Gr(e,t);break}case r.FRAMESET:{r0(e,t);break}case r.TEXTAREA:{N0(e,t);break}case r.NOSCRIPT:{e.options.scriptingEnabled?Gr(e,t):Kr(e,t);break}case r.PLAINTEXT:{l0(e,t);break}case r.COL:case r.TH:case r.TD:case r.TR:case r.HEAD:case r.FRAME:case r.TBODY:case r.TFOOT:case r.THEAD:case r.CAPTION:case r.COLGROUP:break;default:Kr(e,t)}}function L0(e,t){if(e.openElements.hasInScope(r.BODY)&&(e.insertionMode=h.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function w0(e,t){e.openElements.hasInScope(r.BODY)&&(e.insertionMode=h.AFTER_BODY,Bi(e,t))}function D0(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function v0(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(r.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(r.FORM):n&&e.openElements.remove(n))}function M0(e){e.openElements.hasInButtonScope(r.P)||e._insertFakeElement(N.P,r.P),e._closePElement()}function k0(e){e.openElements.hasInListItemScope(r.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(r.LI),e.openElements.popUntilTagNamePopped(r.LI))}function P0(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function B0(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function U0(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function F0(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(N.BR,r.BR),e.openElements.pop(),e.framesetOk=!1}function Ri(e,t){const n=t.tagName,a=t.tagID;for(let s=e.openElements.stackTop;s>0;s--){const i=e.openElements.items[s],o=e.openElements.tagIDs[s];if(a===o&&(a!==r.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.stackTop>=s&&e.openElements.shortenToLength(s);break}if(e._isSpecialElement(i,o))break}}function Wn(e,t){switch(t.tagID){case r.A:case r.B:case r.I:case r.S:case r.U:case r.EM:case r.TT:case r.BIG:case r.CODE:case r.FONT:case r.NOBR:case r.SMALL:case r.STRIKE:case r.STRONG:{ja(e,t);break}case r.P:{M0(e);break}case r.DL:case r.UL:case r.OL:case r.DIR:case r.DIV:case r.NAV:case r.PRE:case r.MAIN:case r.MENU:case r.ASIDE:case r.BUTTON:case r.CENTER:case r.FIGURE:case r.FOOTER:case r.HEADER:case r.HGROUP:case r.DIALOG:case r.ADDRESS:case r.ARTICLE:case r.DETAILS:case r.SEARCH:case r.SECTION:case r.SUMMARY:case r.LISTING:case r.FIELDSET:case r.BLOCKQUOTE:case r.FIGCAPTION:{D0(e,t);break}case r.LI:{k0(e);break}case r.DD:case r.DT:{P0(e,t);break}case r.H1:case r.H2:case r.H3:case r.H4:case r.H5:case r.H6:{B0(e);break}case r.BR:{F0(e);break}case r.BODY:{L0(e,t);break}case r.HTML:{w0(e,t);break}case r.FORM:{v0(e);break}case r.APPLET:case r.OBJECT:case r.MARQUEE:{U0(e,t);break}case r.TEMPLATE:{yt(e,t);break}default:Ri(e,t)}}function yi(e,t){e.tmplInsertionModeStack.length>0?Pi(e,t):qa(e,t)}function H0(e,t){var n;t.tagID===r.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function z0(e,t){e._err(t,C.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function ca(e,t){if(e.openElements.currentTagId!==void 0&&Si.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=h.IN_TABLE_TEXT,t.type){case Z.CHARACTER:{wi(e,t);break}case Z.WHITESPACE_CHARACTER:{Li(e,t);break}}else rn(e,t)}function Y0(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,L.HTML),e.insertionMode=h.IN_CAPTION}function G0(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,L.HTML),e.insertionMode=h.IN_COLUMN_GROUP}function K0(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(N.COLGROUP,r.COLGROUP),e.insertionMode=h.IN_COLUMN_GROUP,Va(e,t)}function $0(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,L.HTML),e.insertionMode=h.IN_TABLE_BODY}function W0(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(N.TBODY,r.TBODY),e.insertionMode=h.IN_TABLE_BODY,jn(e,t)}function j0(e,t){e.openElements.hasInTableScope(r.TABLE)&&(e.openElements.popUntilTagNamePopped(r.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function q0(e,t){Oi(t)?e._appendElement(t,L.HTML):rn(e,t),t.ackSelfClosing=!0}function V0(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,L.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Bt(e,t){switch(t.tagID){case r.TD:case r.TH:case r.TR:{W0(e,t);break}case r.STYLE:case r.SCRIPT:case r.TEMPLATE:{Qe(e,t);break}case r.COL:{K0(e,t);break}case r.FORM:{V0(e,t);break}case r.TABLE:{j0(e,t);break}case r.TBODY:case r.TFOOT:case r.THEAD:{$0(e,t);break}case r.INPUT:{q0(e,t);break}case r.CAPTION:{Y0(e,t);break}case r.COLGROUP:{G0(e,t);break}default:rn(e,t)}}function tn(e,t){switch(t.tagID){case r.TABLE:{e.openElements.hasInTableScope(r.TABLE)&&(e.openElements.popUntilTagNamePopped(r.TABLE),e._resetInsertionMode());break}case r.TEMPLATE:{yt(e,t);break}case r.BODY:case r.CAPTION:case r.COL:case r.COLGROUP:case r.HTML:case r.TBODY:case r.TD:case r.TFOOT:case r.TH:case r.THEAD:case r.TR:break;default:rn(e,t)}}function rn(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,$n(e,t),e.fosterParentingEnabled=n}function Li(e,t){e.pendingCharacterTokens.push(t)}function wi(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function $t(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)rn(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Di=new Set([r.CAPTION,r.COL,r.COLGROUP,r.TBODY,r.TD,r.TFOOT,r.TH,r.THEAD,r.TR]);function X0(e,t){const n=t.tagID;Di.has(n)?e.openElements.hasInTableScope(r.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=h.IN_TABLE,Bt(e,t)):Be(e,t)}function Q0(e,t){const n=t.tagID;switch(n){case r.CAPTION:case r.TABLE:{e.openElements.hasInTableScope(r.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=h.IN_TABLE,n===r.TABLE&&tn(e,t));break}case r.BODY:case r.COL:case r.COLGROUP:case r.HTML:case r.TBODY:case r.TD:case r.TFOOT:case r.TH:case r.THEAD:case r.TR:break;default:Wn(e,t)}}function Va(e,t){switch(t.tagID){case r.HTML:{Be(e,t);break}case r.COL:{e._appendElement(t,L.HTML),t.ackSelfClosing=!0;break}case r.TEMPLATE:{Qe(e,t);break}default:Dn(e,t)}}function Z0(e,t){switch(t.tagID){case r.COLGROUP:{e.openElements.currentTagId===r.COLGROUP&&(e.openElements.pop(),e.insertionMode=h.IN_TABLE);break}case r.TEMPLATE:{yt(e,t);break}case r.COL:break;default:Dn(e,t)}}function Dn(e,t){e.openElements.currentTagId===r.COLGROUP&&(e.openElements.pop(),e.insertionMode=h.IN_TABLE,e._processToken(t))}function jn(e,t){switch(t.tagID){case r.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,L.HTML),e.insertionMode=h.IN_ROW;break}case r.TH:case r.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(N.TR,r.TR),e.insertionMode=h.IN_ROW,qn(e,t);break}case r.CAPTION:case r.COL:case r.COLGROUP:case r.TBODY:case r.TFOOT:case r.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=h.IN_TABLE,Bt(e,t));break}default:Bt(e,t)}}function La(e,t){const n=t.tagID;switch(t.tagID){case r.TBODY:case r.TFOOT:case r.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=h.IN_TABLE);break}case r.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=h.IN_TABLE,tn(e,t));break}case r.BODY:case r.CAPTION:case r.COL:case r.COLGROUP:case r.HTML:case r.TD:case r.TH:case r.TR:break;default:tn(e,t)}}function qn(e,t){switch(t.tagID){case r.TH:case r.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,L.HTML),e.insertionMode=h.IN_CELL,e.activeFormattingElements.insertMarker();break}case r.CAPTION:case r.COL:case r.COLGROUP:case r.TBODY:case r.TFOOT:case r.THEAD:case r.TR:{e.openElements.hasInTableScope(r.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=h.IN_TABLE_BODY,jn(e,t));break}default:Bt(e,t)}}function vi(e,t){switch(t.tagID){case r.TR:{e.openElements.hasInTableScope(r.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=h.IN_TABLE_BODY);break}case r.TABLE:{e.openElements.hasInTableScope(r.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=h.IN_TABLE_BODY,La(e,t));break}case r.TBODY:case r.TFOOT:case r.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(r.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=h.IN_TABLE_BODY,La(e,t));break}case r.BODY:case r.CAPTION:case r.COL:case r.COLGROUP:case r.HTML:case r.TD:case r.TH:break;default:tn(e,t)}}function J0(e,t){const n=t.tagID;Di.has(n)?(e.openElements.hasInTableScope(r.TD)||e.openElements.hasInTableScope(r.TH))&&(e._closeTableCell(),qn(e,t)):Be(e,t)}function ef(e,t){const n=t.tagID;switch(n){case r.TD:case r.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=h.IN_ROW);break}case r.TABLE:case r.TBODY:case r.TFOOT:case r.THEAD:case r.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),vi(e,t));break}case r.BODY:case r.CAPTION:case r.COL:case r.COLGROUP:case r.HTML:break;default:Wn(e,t)}}function Mi(e,t){switch(t.tagID){case r.HTML:{Be(e,t);break}case r.OPTION:{e.openElements.currentTagId===r.OPTION&&e.openElements.pop(),e._insertElement(t,L.HTML);break}case r.OPTGROUP:{e.openElements.currentTagId===r.OPTION&&e.openElements.pop(),e.openElements.currentTagId===r.OPTGROUP&&e.openElements.pop(),e._insertElement(t,L.HTML);break}case r.HR:{e.openElements.currentTagId===r.OPTION&&e.openElements.pop(),e.openElements.currentTagId===r.OPTGROUP&&e.openElements.pop(),e._appendElement(t,L.HTML),t.ackSelfClosing=!0;break}case r.INPUT:case r.KEYGEN:case r.TEXTAREA:case r.SELECT:{e.openElements.hasInSelectScope(r.SELECT)&&(e.openElements.popUntilTagNamePopped(r.SELECT),e._resetInsertionMode(),t.tagID!==r.SELECT&&e._processStartTag(t));break}case r.SCRIPT:case r.TEMPLATE:{Qe(e,t);break}}}function ki(e,t){switch(t.tagID){case r.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===r.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===r.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===r.OPTGROUP&&e.openElements.pop();break}case r.OPTION:{e.openElements.currentTagId===r.OPTION&&e.openElements.pop();break}case r.SELECT:{e.openElements.hasInSelectScope(r.SELECT)&&(e.openElements.popUntilTagNamePopped(r.SELECT),e._resetInsertionMode());break}case r.TEMPLATE:{yt(e,t);break}}}function tf(e,t){const n=t.tagID;n===r.CAPTION||n===r.TABLE||n===r.TBODY||n===r.TFOOT||n===r.THEAD||n===r.TR||n===r.TD||n===r.TH?(e.openElements.popUntilTagNamePopped(r.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Mi(e,t)}function nf(e,t){const n=t.tagID;n===r.CAPTION||n===r.TABLE||n===r.TBODY||n===r.TFOOT||n===r.THEAD||n===r.TR||n===r.TD||n===r.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(r.SELECT),e._resetInsertionMode(),e.onEndTag(t)):ki(e,t)}function af(e,t){switch(t.tagID){case r.BASE:case r.BASEFONT:case r.BGSOUND:case r.LINK:case r.META:case r.NOFRAMES:case r.SCRIPT:case r.STYLE:case r.TEMPLATE:case r.TITLE:{Qe(e,t);break}case r.CAPTION:case r.COLGROUP:case r.TBODY:case r.TFOOT:case r.THEAD:{e.tmplInsertionModeStack[0]=h.IN_TABLE,e.insertionMode=h.IN_TABLE,Bt(e,t);break}case r.COL:{e.tmplInsertionModeStack[0]=h.IN_COLUMN_GROUP,e.insertionMode=h.IN_COLUMN_GROUP,Va(e,t);break}case r.TR:{e.tmplInsertionModeStack[0]=h.IN_TABLE_BODY,e.insertionMode=h.IN_TABLE_BODY,jn(e,t);break}case r.TD:case r.TH:{e.tmplInsertionModeStack[0]=h.IN_ROW,e.insertionMode=h.IN_ROW,qn(e,t);break}default:e.tmplInsertionModeStack[0]=h.IN_BODY,e.insertionMode=h.IN_BODY,Be(e,t)}}function rf(e,t){t.tagID===r.TEMPLATE&&yt(e,t)}function Pi(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(r.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):qa(e,t)}function sf(e,t){t.tagID===r.HTML?Be(e,t):vn(e,t)}function Bi(e,t){var n;if(t.tagID===r.HTML){if(e.fragmentContext||(e.insertionMode=h.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===r.HTML){e._setEndLocation(e.openElements.items[0],t);const a=e.openElements.items[1];a&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(a))===null||n===void 0)&&n.endTag)&&e._setEndLocation(a,t)}}else vn(e,t)}function vn(e,t){e.insertionMode=h.IN_BODY,$n(e,t)}function of(e,t){switch(t.tagID){case r.HTML:{Be(e,t);break}case r.FRAMESET:{e._insertElement(t,L.HTML);break}case r.FRAME:{e._appendElement(t,L.HTML),t.ackSelfClosing=!0;break}case r.NOFRAMES:{Qe(e,t);break}}}function cf(e,t){t.tagID===r.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==r.FRAMESET&&(e.insertionMode=h.AFTER_FRAMESET))}function uf(e,t){switch(t.tagID){case r.HTML:{Be(e,t);break}case r.NOFRAMES:{Qe(e,t);break}}}function lf(e,t){t.tagID===r.HTML&&(e.insertionMode=h.AFTER_AFTER_FRAMESET)}function df(e,t){t.tagID===r.HTML?Be(e,t):xn(e,t)}function xn(e,t){e.insertionMode=h.IN_BODY,$n(e,t)}function ff(e,t){switch(t.tagID){case r.HTML:{Be(e,t);break}case r.NOFRAMES:{Qe(e,t);break}}}function mf(e,t){t.chars=Ee,e._insertCharacters(t)}function hf(e,t){e._insertCharacters(t),e.framesetOk=!1}function Ui(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==L.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Ef(e,t){if(yd(t))Ui(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),a=e.treeAdapter.getNamespaceURI(n);a===L.MATHML?Ni(t):a===L.SVG&&(Ld(t),Ai(t)),Wa(t),t.selfClosing?e._appendElement(t,a):e._insertElement(t,a),t.ackSelfClosing=!0}}function pf(e,t){if(t.tagID===r.P||t.tagID===r.BR){Ui(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const a=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(a)===L.HTML){e._endTagOutsideForeignContent(t);break}const s=e.treeAdapter.getTagName(a);if(s.toLowerCase()===t.tagName){t.tagName=s,e.openElements.shortenToLength(n);break}}}N.AREA,N.BASE,N.BASEFONT,N.BGSOUND,N.BR,N.COL,N.EMBED,N.FRAME,N.HR,N.IMG,N.INPUT,N.KEYGEN,N.LINK,N.META,N.PARAM,N.SOURCE,N.TRACK,N.WBR;const bf=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,gf=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),$r={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Fi(e,t){const n=Rf(e),a=oi("type",{handlers:{root:_f,element:Tf,text:Nf,comment:zi,doctype:Af,raw:xf},unknown:Cf}),s={parser:n?new Yr($r):Yr.getFragmentParser(void 0,$r),handle(c){a(c,s)},stitches:!1,options:t||{}};a(e,s),zt(s,Rt());const i=n?s.parser.document:s.parser.getFragment(),o=Rl(i,{file:s.options.file});return s.stitches&&ds(o,"comment",function(c,l,f){const E=c;if(E.value.stitch&&f&&l!==void 0){const b=f.children;return b[l]=E.value.stitch,l}}),o.type==="root"&&o.children.length===1&&o.children[0].type===e.type?o.children[0]:o}function Hi(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function _f(e,t){Hi(e.children,t)}function Tf(e,t){If(e,t),Hi(e.children,t),Of(e,t)}function Nf(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Z.CHARACTER,chars:e.value,location:sn(e)};zt(t,Rt(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Af(e,t){const n={type:Z.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:sn(e)};zt(t,Rt(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Sf(e,t){t.stitches=!0;const n=yf(e);if("children"in e&&"children"in n){const a=Fi({type:"root",children:e.children},t.options);n.children=a.children}zi({type:"comment",value:{stitch:n}},t)}function zi(e,t){const n=e.value,a={type:Z.COMMENT,data:n,location:sn(e)};zt(t,Rt(e)),t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken)}function xf(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Yi(t,Rt(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(bf,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function Cf(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))Sf(n,t);else{let a="";throw gf.has(n.type)&&(a=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+a)}}function zt(e,t){Yi(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Ae.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Yi(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function If(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Ae.PLAINTEXT)return;zt(t,Rt(e));const a=t.parser.openElements.current;let s="namespaceURI"in a?a.namespaceURI:xt.html;s===xt.html&&n==="svg"&&(s=xt.svg);const i=vl({...e,children:[]},{space:s===xt.svg?"svg":"html"}),o={type:Z.START_TAG,tagName:n,tagID:Ht(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:sn(e)};t.parser.currentToken=o,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function Of(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&zl.includes(n)||t.parser.tokenizer.state===Ae.PLAINTEXT)return;zt(t,fs(e));const a={type:Z.END_TAG,tagName:n,tagID:Ht(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:sn(e)};t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Ae.RCDATA||t.parser.tokenizer.state===Ae.RAWTEXT||t.parser.tokenizer.state===Ae.SCRIPT_DATA)&&(t.parser.tokenizer.state=Ae.DATA)}function Rf(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function sn(e){const t=Rt(e)||{line:void 0,column:void 0,offset:void 0},n=fs(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function yf(e){return"children"in e?gr({...e,children:[]}):gr(e)}function Lf(e){return function(t,n){return Fi(t,{...e,file:n})}}const Wr=(function(e,t,n){const a=hc(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(a(e.children[t],t,e))return e.children[t]}),Lt=(function(e){if(e==null)return vf;if(typeof e=="string")return Df(e);if(typeof e=="object")return wf(e);if(typeof e=="function")return Xa(e);throw new Error("Expected function, string, or array as `test`")});function wf(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Lt(e[n]);return Xa(a);function a(...s){let i=-1;for(;++i<t.length;)if(t[i].apply(this,s))return!0;return!1}}function Df(e){return Xa(t);function t(n){return n.tagName===e}}function Xa(e){return t;function t(n,a,s){return!!(Mf(n)&&e.call(this,n,typeof a=="number"?a:void 0,s||void 0))}}function vf(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Mf(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const jr=/\n/g,qr=/[\t ]+/g,wa=Lt("br"),Vr=Lt(Yf),kf=Lt("p"),Xr=Lt("tr"),Pf=Lt(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",zf,Gf]),Gi=Lt(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function Bf(e,t){const n=t||{},a="children"in e?e.children:[],s=Gi(e),i=Wi(e,{whitespace:n.whitespace||"normal"}),o=[];(e.type==="text"||e.type==="comment")&&o.push(...$i(e,{breakBefore:!0,breakAfter:!0}));let c=-1;for(;++c<a.length;)o.push(...Ki(a[c],e,{whitespace:i,breakBefore:c?void 0:s,breakAfter:c<a.length-1?wa(a[c+1]):s}));const l=[];let f;for(c=-1;++c<o.length;){const E=o[c];typeof E=="number"?f!==void 0&&E>f&&(f=E):E&&(f!==void 0&&f>-1&&l.push(`
6
+ `.repeat(f)||" "),f=-1,l.push(E))}return l.join("")}function Ki(e,t,n){return e.type==="element"?Uf(e,t,n):e.type==="text"?n.whitespace==="normal"?$i(e,n):Ff(e):[]}function Uf(e,t,n){const a=Wi(e,n),s=e.children||[];let i=-1,o=[];if(Pf(e))return o;let c,l;for(wa(e)||Xr(e)&&Wr(t,e,Xr)?l=`
7
+ `:kf(e)?(c=2,l=2):Gi(e)&&(c=1,l=1);++i<s.length;)o=o.concat(Ki(s[i],e,{whitespace:a,breakBefore:i?void 0:c,breakAfter:i<s.length-1?wa(s[i+1]):l}));return Vr(e)&&Wr(t,e,Vr)&&o.push(" "),c&&o.unshift(c),l&&o.push(l),o}function $i(e,t){const n=String(e.value),a=[],s=[];let i=0;for(;i<=n.length;){jr.lastIndex=i;const l=jr.exec(n),f=l&&"index"in l?l.index:n.length;a.push(Hf(n.slice(i,f).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),i===0?t.breakBefore:!0,f===n.length?t.breakAfter:!0)),i=f+1}let o=-1,c;for(;++o<a.length;)a[o].charCodeAt(a[o].length-1)===8203||o<a.length-1&&a[o+1].charCodeAt(0)===8203?(s.push(a[o]),c=void 0):a[o]?(typeof c=="number"&&s.push(c),s.push(a[o]),c=0):(o===0||o===a.length-1)&&s.push(0);return s}function Ff(e){return[String(e.value)]}function Hf(e,t,n){const a=[];let s=0,i;for(;s<e.length;){qr.lastIndex=s;const o=qr.exec(e);i=o?o.index:e.length,!s&&!i&&o&&!t&&a.push(""),s!==i&&a.push(e.slice(s,i)),s=o?i+o[0].length:i}return s!==i&&!n&&a.push(""),a.join(" ")}function Wi(e,t){if(e.type==="element"){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function zf(e){return!!(e.properties||{}).hidden}function Yf(e){return e.tagName==="td"||e.tagName==="th"}function Gf(e){return e.tagName==="dialog"&&!(e.properties||{}).open}function Kf(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),a="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",o="(?!struct)("+a+"|"+t.optional(s)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",c={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},f={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},E={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},b={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(f,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},_={className:"title",begin:t.optional(s)+e.IDENT_RE,relevance:0},S=t.optional(s)+e.IDENT_RE+"\\s*\\(",O=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],g=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],A=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],x=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],k={type:g,keyword:O,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:A},H={className:"function.dispatch",relevance:0,keywords:{_hint:x},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},U=[H,b,c,n,e.C_BLOCK_COMMENT_MODE,E,f],v={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:k,contains:U.concat([{begin:/\(/,end:/\)/,keywords:k,contains:U.concat(["self"]),relevance:0}]),relevance:0},P={className:"function",begin:"("+o+"[\\*&\\s]+)+"+S,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:k,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:a,keywords:k,relevance:0},{begin:S,returnBegin:!0,contains:[_],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[f,E]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,f,E,c,{begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,f,E,c]}]},c,n,e.C_BLOCK_COMMENT_MODE,b]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:k,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(v,P,H,U,[b,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:k,contains:["self",c]},{begin:e.IDENT_RE+"::",keywords:k},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function $f(e){const t={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},n=Kf(e),a=n.keywords;return a.type=[...a.type,...t.type],a.literal=[...a.literal,...t.literal],a.built_in=[...a.built_in,...t.built_in],a._hints=t._hints,n.name="Arduino",n.aliases=["ino"],n.supersetOf="cpp",n}function Wf(e){const t=e.regex,n={},a={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},a]});const s={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},i=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},c={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,s]};s.contains.push(c);const l={match:/\\"/},f={className:"string",begin:/'/,end:/'/},E={match:/\\'/},b={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},_=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],S=e.SHEBANG({binary:`(${_.join("|")})`,relevance:10}),O={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},g=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],A=["true","false"],x={match:/(\/[a-z._-]+)+/},I=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],R=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],k=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],H=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:g,literal:A,built_in:[...I,...R,"set","shopt",...k,...H]},contains:[S,e.SHEBANG(),O,b,i,o,x,c,l,f,E,n]}}function jf(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),a="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",o="("+a+"|"+t.optional(s)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",c={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},f={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},E={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},b={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(f,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},_={className:"title",begin:t.optional(s)+e.IDENT_RE,relevance:0},S=t.optional(s)+e.IDENT_RE+"\\s*\\(",A={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},x=[b,c,n,e.C_BLOCK_COMMENT_MODE,E,f],I={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:A,contains:x.concat([{begin:/\(/,end:/\)/,keywords:A,contains:x.concat(["self"]),relevance:0}]),relevance:0},R={begin:"("+o+"[\\*&\\s]+)+"+S,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:A,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:a,keywords:A,relevance:0},{begin:S,returnBegin:!0,contains:[e.inherit(_,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:A,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,f,E,c,{begin:/\(/,end:/\)/,keywords:A,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,f,E,c]}]},c,n,e.C_BLOCK_COMMENT_MODE,b]};return{name:"C",aliases:["h"],keywords:A,disableAutodetect:!0,illegal:"</",contains:[].concat(I,R,x,[b,{begin:e.IDENT_RE+"::",keywords:A},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:b,strings:f,keywords:A}}}function qf(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),a="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",o="(?!struct)("+a+"|"+t.optional(s)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",c={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},f={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},E={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},b={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(f,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},_={className:"title",begin:t.optional(s)+e.IDENT_RE,relevance:0},S=t.optional(s)+e.IDENT_RE+"\\s*\\(",O=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],g=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],A=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],x=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],k={type:g,keyword:O,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:A},H={className:"function.dispatch",relevance:0,keywords:{_hint:x},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},U=[H,b,c,n,e.C_BLOCK_COMMENT_MODE,E,f],v={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:k,contains:U.concat([{begin:/\(/,end:/\)/,keywords:k,contains:U.concat(["self"]),relevance:0}]),relevance:0},P={className:"function",begin:"("+o+"[\\*&\\s]+)+"+S,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:k,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:a,keywords:k,relevance:0},{begin:S,returnBegin:!0,contains:[_],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[f,E]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,f,E,c,{begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,f,E,c]}]},c,n,e.C_BLOCK_COMMENT_MODE,b]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:k,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(v,P,H,U,[b,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:k,contains:["self",c]},{begin:e.IDENT_RE+"::",keywords:k},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function Vf(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],a=["default","false","null","true"],s=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],i=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:s.concat(i),built_in:t,literal:a},c=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},f={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},E={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},b=e.inherit(E,{illegal:/\n/}),_={className:"subst",begin:/\{/,end:/\}/,keywords:o},S=e.inherit(_,{illegal:/\n/}),O={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,S]},g={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},_]},A=e.inherit(g,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},S]});_.contains=[g,O,E,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.C_BLOCK_COMMENT_MODE],S.contains=[A,O,b,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const x={variants:[f,g,O,E,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},I={begin:"<",end:">",contains:[{beginKeywords:"in out"},c]},R=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",k={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},x,l,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},c,I,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[c,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[c,I,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+R+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,I],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[x,l,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},k]}}const Xf=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Qf=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Zf=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Jf=[...Qf,...Zf],em=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),tm=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),nm=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),am=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function rm(e){const t=e.regex,n=Xf(e),a={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},s="and or not only",i=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",c=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,a,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+tm.join("|")+")"},{begin:":(:)?("+nm.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+am.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...c,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...c,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:i},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:s,attribute:em.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...c,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Jf.join("|")+")\\b"}]}}function sm(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function im(e){const i={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:i,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:i,illegal:/["']/}]}]}}function om(e){const t=e.regex,n=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(n,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function cm(e){const t=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},a=e.COMMENT();a.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const s={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},i={className:"literal",begin:/\bon|off|true|false|yes|no\b/},o={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},c={begin:/\[/,end:/\]/,contains:[a,i,s,o,n,"self"],relevance:0},l=/[A-Za-z0-9_-]+/,f=/"(\\"|[^"])*"/,E=/'[^']*'/,b=t.either(l,f,E),_=t.concat(b,"(\\s*\\.\\s*",b,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[a,{className:"section",begin:/\[+/,end:/\]+/},{begin:_,className:"attr",starts:{end:/$/,contains:[a,c,i,s,o,n]}}]}}var vt="[0-9](_*[0-9])*",gn=`\\.(${vt})`,_n="[0-9a-fA-F](_*[0-9a-fA-F])*",Qr={className:"number",variants:[{begin:`(\\b(${vt})((${gn})|\\.)?|(${gn}))[eE][+-]?(${vt})[fFdD]?\\b`},{begin:`\\b(${vt})((${gn})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${gn})[fFdD]?\\b`},{begin:`\\b(${vt})[fFdD]\\b`},{begin:`\\b0[xX]((${_n})\\.?|(${_n})?\\.(${_n}))[pP][+-]?(${vt})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${_n})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function ji(e,t,n){return n===-1?"":e.replace(t,a=>ji(e,t,n-1))}function um(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",a=n+ji("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),l={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},f={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},E={className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:l,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[E,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+a+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:l,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[f,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,Qr,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},Qr,f]}}const Zr="[A-Za-z$_][0-9A-Za-z$_]*",lm=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],dm=["true","false","null","undefined","NaN","Infinity"],qi=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Vi=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Xi=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],fm=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],mm=[].concat(Xi,qi,Vi);function hm(e){const t=e.regex,n=(V,{after:ue})=>{const Oe="</"+V[0].slice(1);return V.input.indexOf(Oe,ue)!==-1},a=Zr,s={begin:"<>",end:"</>"},i=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(V,ue)=>{const Oe=V[0].length+V.index,ge=V.input[Oe];if(ge==="<"||ge===","){ue.ignoreMatch();return}ge===">"&&(n(V,{after:Oe})||ue.ignoreMatch());let _e;const ze=V.input.substring(Oe);if(_e=ze.match(/^\s*=/)){ue.ignoreMatch();return}if((_e=ze.match(/^\s+extends\s+/))&&_e.index===0){ue.ignoreMatch();return}}},c={$pattern:Zr,keyword:lm,literal:dm,built_in:mm,"variable.language":fm},l="[0-9](_?[0-9])*",f=`\\.(${l})`,E="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",b={className:"number",variants:[{begin:`(\\b(${E})((${f})|\\.)?|(${f}))[eE][+-]?(${l})\\b`},{begin:`\\b(${E})\\b((${f})\\b|\\.)?|(${f})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},_={className:"subst",begin:"\\$\\{",end:"\\}",keywords:c,contains:[]},S={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,_],subLanguage:"xml"}},O={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,_],subLanguage:"css"}},g={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,_],subLanguage:"graphql"}},A={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,_]},I={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:a+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},R=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,S,O,g,A,{match:/\$\d+/},b];_.contains=R.concat({begin:/\{/,end:/\}/,keywords:c,contains:["self"].concat(R)});const k=[].concat(I,_.contains),H=k.concat([{begin:/(\s*)\(/,end:/\)/,keywords:c,contains:["self"].concat(k)}]),U={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:H},v={variants:[{match:[/class/,/\s+/,a,/\s+/,/extends/,/\s+/,t.concat(a,"(",t.concat(/\./,a),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,a],scope:{1:"keyword",3:"title.class"}}]},P={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...qi,...Vi]}},Y={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Q={variants:[{match:[/function/,/\s+/,a,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[U],illegal:/%/},ie={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function pe(V){return t.concat("(?!",V.join("|"),")")}const xe={match:t.concat(/\b/,pe([...Xi,"super","import"].map(V=>`${V}\\s*\\(`)),a,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},te={begin:t.concat(/\./,t.lookahead(t.concat(a,/(?![0-9A-Za-z$_(])/))),end:a,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},re={match:[/get|set/,/\s+/,a,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},U]},ne="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",Ce={match:[/const|var|let/,/\s+/,a,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(ne)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[U]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:c,exports:{PARAMS_CONTAINS:H,CLASS_REFERENCE:P},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),Y,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,S,O,g,A,I,{match:/\$\d+/},b,P,{scope:"attr",match:a+t.lookahead(":"),relevance:0},Ce,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[I,e.REGEXP_MODE,{className:"function",begin:ne,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:H}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:i},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},Q,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[U,e.inherit(e.TITLE_MODE,{begin:a,className:"title.function"})]},{match:/\.\.\./,relevance:0},te,{match:"\\$"+a,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[U]},xe,ie,v,re,{match:/\$[(.]/}]}}function Em(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},a=["true","false","null"],s={scope:"literal",beginKeywords:a.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:a},contains:[t,n,e.QUOTE_STRING_MODE,s,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var Mt="[0-9](_*[0-9])*",Tn=`\\.(${Mt})`,Nn="[0-9a-fA-F](_*[0-9a-fA-F])*",pm={className:"number",variants:[{begin:`(\\b(${Mt})((${Tn})|\\.)?|(${Tn}))[eE][+-]?(${Mt})[fFdD]?\\b`},{begin:`\\b(${Mt})((${Tn})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Tn})[fFdD]?\\b`},{begin:`\\b(${Mt})[fFdD]\\b`},{begin:`\\b0[xX]((${Nn})\\.?|(${Nn})?\\.(${Nn}))[pP][+-]?(${Mt})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Nn})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function bm(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},a={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},s={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},i={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},o={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[i,s]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,i,s]}]};s.contains.push(o);const c={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},l={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(o,{className:"string"}),"self"]}]},f=pm,E=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),b={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},_=b;return _.variants[1].contains=[b],b.variants[1].contains=[_],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,E,n,a,c,l,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[b,e.C_LINE_COMMENT_MODE,E],relevance:0},e.C_LINE_COMMENT_MODE,E,c,l,o,e.C_NUMBER_MODE]},E]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},c,l]},o,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
8
+ `},f]}}const gm=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),_m=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Tm=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Nm=[..._m,...Tm],Am=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Qi=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Zi=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Sm=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),xm=Qi.concat(Zi).sort().reverse();function Cm(e){const t=gm(e),n=xm,a="and or not only",s="[\\w-]+",i="("+s+"|@\\{"+s+"\\})",o=[],c=[],l=function(R){return{className:"string",begin:"~?"+R+".*?"+R}},f=function(R,k,H){return{className:R,begin:k,relevance:H}},E={$pattern:/[a-z-]+/,keyword:a,attribute:Am.join(" ")},b={begin:"\\(",end:"\\)",contains:c,keywords:E,relevance:0};c.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,l("'"),l('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,b,f("variable","@@?"+s,10),f("variable","@\\{"+s+"\\}"),f("built_in","~?`[^`]*?`"),{className:"attribute",begin:s+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const _=c.concat({begin:/\{/,end:/\}/,contains:o}),S={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(c)},O={begin:i+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Sm.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:c}}]},g={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:E,returnEnd:!0,contains:c,relevance:0}},A={className:"variable",variants:[{begin:"@"+s+"\\s*:",relevance:15},{begin:"@"+s}],starts:{end:"[;}]",returnEnd:!0,contains:_}},x={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:i,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,S,f("keyword","all\\b"),f("variable","@\\{"+s+"\\}"),{begin:"\\b("+Nm.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,f("selector-tag",i,0),f("selector-id","#"+i),f("selector-class","\\."+i,0),f("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+Qi.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+Zi.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:_},{begin:"!important"},t.FUNCTION_DISPATCH]},I={begin:s+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[x]};return o.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,g,A,I,O,x,S,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:o}}function Im(e){const t="\\[=*\\[",n="\\]=*\\]",a={begin:t,end:n,contains:["self"]},s=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[a],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:s.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:s}].concat(s)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[a],relevance:5}])}}function Om(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},a={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t,n]},s={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},i={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},o={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,a,s,i,o]}}function Rm(e){const t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},a={begin:"^[-\\*]{3,}",end:"$"},s={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},i={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},c=/[A-Za-z][A-Za-z0-9+.-]*/,l={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,c,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},f={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},E={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},b=e.inherit(f,{contains:[]}),_=e.inherit(E,{contains:[]});f.contains.push(_),E.contains.push(b);let S=[n,l];return[f,E,b,_].forEach(x=>{x.contains=x.contains.concat(S)}),S=S.concat(f,E),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:S},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:S}]}]},n,i,f,E,{className:"quote",begin:"^>\\s+",contains:S,end:"$"},s,a,l,o,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function ym(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,c={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},l={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:c,illegal:"</",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+l.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:l,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function Lm(e){const t=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],a=/[dualxmsipngr]{0,12}/,s={$pattern:/[\w.]+/,keyword:n.join(" ")},i={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:s},o={begin:/->\{/,end:/\}/},c={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},l={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[c]},f={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},E=[e.BACKSLASH_ESCAPE,i,l],b=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],_=(g,A,x="\\1")=>{const I=x==="\\1"?x:t.concat(x,A);return t.concat(t.concat("(?:",g,")"),A,/(?:\\.|[^\\\/])*?/,I,/(?:\\.|[^\\\/])*?/,x,a)},S=(g,A,x)=>t.concat(t.concat("(?:",g,")"),A,/(?:\\.|[^\\\/])*?/,x,a),O=[l,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:E,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},f,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:_("s|tr|y",t.either(...b,{capture:!0}))},{begin:_("s|tr|y","\\(","\\)")},{begin:_("s|tr|y","\\[","\\]")},{begin:_("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:S("(?:m|qr)?",/\//,/\//)},{begin:S("m|qr",t.either(...b,{capture:!0}),/\1/)},{begin:S("m|qr",/\(/,/\)/)},{begin:S("m|qr",/\[/,/\]/)},{begin:S("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,c]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,c,f]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return i.contains=O,o.contains=O,{name:"Perl",aliases:["pl","pm"],keywords:s,contains:O}}function wm(e){const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,a=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),s=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),i=t.concat(/[A-Z]+/,n),o={scope:"variable",match:"\\$+"+a},c={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},l={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},f=e.inherit(e.APOS_STRING_MODE,{illegal:null}),E=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(l)}),b={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(l),"on:begin":(te,re)=>{re.data._beginMatch=te[1]||te[2]},"on:end":(te,re)=>{re.data._beginMatch!==te[1]&&re.ignoreMatch()}},_=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),S=`[
9
+ ]`,O={scope:"string",variants:[E,f,b,_]},g={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},A=["false","null","true"],x=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],I=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],k={keyword:x,literal:(te=>{const re=[];return te.forEach(ne=>{re.push(ne),ne.toLowerCase()===ne?re.push(ne.toUpperCase()):re.push(ne.toLowerCase())}),re})(A),built_in:I},H=te=>te.map(re=>re.replace(/\|\d+$/,"")),U={variants:[{match:[/new/,t.concat(S,"+"),t.concat("(?!",H(I).join("\\b|"),"\\b)"),s],scope:{1:"keyword",4:"title.class"}}]},v=t.concat(a,"\\b(?!\\()"),P={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),v],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[s,t.concat(/::/,t.lookahead(/(?!class\b)/)),v],scope:{1:"title.class",3:"variable.constant"}},{match:[s,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[s,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},Y={scope:"attr",match:t.concat(a,t.lookahead(":"),t.lookahead(/(?!::)/))},Q={relevance:0,begin:/\(/,end:/\)/,keywords:k,contains:[Y,o,P,e.C_BLOCK_COMMENT_MODE,O,g,U]},ie={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",H(x).join("\\b|"),"|",H(I).join("\\b|"),"\\b)"),a,t.concat(S,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[Q]};Q.contains.push(ie);const pe=[Y,P,e.C_BLOCK_COMMENT_MODE,O,g,U],xe={begin:t.concat(/#\[\s*\\?/,t.either(s,i)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:A,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:A,keyword:["new","array"]},contains:["self",...pe]},...pe,{scope:"meta",variants:[{match:s},{match:i}]}]};return{case_insensitive:!1,keywords:k,contains:[xe,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},c,{scope:"variable.language",match:/\$this\b/},o,ie,P,{match:[/const/,/\s/,a],scope:{1:"keyword",3:"variable.constant"}},U,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:k,contains:["self",xe,o,P,e.C_BLOCK_COMMENT_MODE,O,g]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},O,g]}}function Dm(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function vm(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function Mm(e){const t=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),a=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],c={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:a,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},l={className:"meta",begin:/^(>>>|\.\.\.) /},f={className:"subst",begin:/\{/,end:/\}/,keywords:c,illegal:/#/},E={begin:/\{\{/,relevance:0},b={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l,E,f]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l,E,f]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,E,f]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,E,f]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},_="[0-9](_?[0-9])*",S=`(\\b(${_}))?\\.(${_})|\\b(${_})\\.`,O=`\\b|${a.join("|")}`,g={className:"number",relevance:0,variants:[{begin:`(\\b(${_})|(${S}))[eE][+-]?(${_})[jJ]?(?=${O})`},{begin:`(${S})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${O})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${O})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${O})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${O})`},{begin:`\\b(${_})[jJ](?=${O})`}]},A={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:c,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},x={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:["self",l,g,b,e.HASH_COMMENT_MODE]}]};return f.contains=[b,g,l],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:c,illegal:/(<\/|\?)|=>/,contains:[l,g,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},b,A,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[x]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[g,x,b]}]}}function km(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function Pm(e){const t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,a=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),s=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,i=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[s,a]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,a]},{scope:{1:"punctuation",2:"number"},match:[i,a]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,a]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:s},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:i},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function Bm(e){const t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",a=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),s=t.concat(a,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},c={className:"doctag",begin:"@[A-Za-z]+"},l={begin:"#<",end:">"},f=[e.COMMENT("#","$",{contains:[c]}),e.COMMENT("^=begin","^=end",{contains:[c],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],E={className:"subst",begin:/#\{/,end:/\}/,keywords:o},b={className:"string",contains:[e.BACKSLASH_ESCAPE,E],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,E]})]}]},_="[1-9](_?[0-9])*|0",S="[0-9](_?[0-9])*",O={className:"number",relevance:0,variants:[{begin:`\\b(${_})(\\.(${S}))?([eE][+-]?(${S})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},g={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},U=[b,{variants:[{match:[/class\s+/,s,/\s+<\s+/,s]},{match:[/\b(class|module)\s+/,s]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,s],scope:{2:"title.class"},keywords:o},{relevance:0,match:[s,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:a,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[g]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[b,{begin:n}],relevance:0},O,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,E],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(l,f),relevance:0}].concat(l,f);E.contains=U,g.contains=U;const Q=[{begin:/^\s*=>/,starts:{end:"$",contains:U}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:o,contains:U}}];return f.unshift(l),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(Q).concat(f).concat(U)}}function Um(e){const t=e.regex,n=/(r#)?/,a=t.concat(n,e.UNDERSCORE_IDENT_RE),s=t.concat(n,e.IDENT_RE),i={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,s,t.lookahead(/\s*\(/))},o="([ui](8|16|32|64|128|size)|f(32|64))?",c=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],l=["true","false","Some","None","Ok","Err"],f=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],E=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:E,keyword:c,literal:l,built_in:f},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+o},{begin:"\\b0o([0-7_]+)"+o},{begin:"\\b0x([A-Fa-f0-9_]+)"+o},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+o}],relevance:0},{begin:[/fn/,/\s+/,a],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,a],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,a,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,a],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,a],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:f,type:E}},{className:"punctuation",begin:"->"},i]}}const Fm=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Hm=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],zm=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Ym=[...Hm,...zm],Gm=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Km=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),$m=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Wm=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function jm(e){const t=Fm(e),n=$m,a=Km,s="@[a-z-]+",i="and or not only",c={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+Ym.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+a.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},c,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Wm.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,c,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:s,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:Gm.join(" ")},contains:[{begin:s,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},c,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}function qm(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function Vm(e){const t=e.regex,n=e.COMMENT("--","$"),a={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},s={begin:/"/,end:/"/,contains:[{match:/""/}]},i=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],c=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],l=["add","asc","collation","desc","final","first","last","view"],f=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],E=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],b=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],_=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],S=E,O=[...f,...l].filter(H=>!E.includes(H)),g={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},A={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},x={match:t.concat(/\b/,t.either(...S),/\s*\(/),relevance:0,keywords:{built_in:S}};function I(H){return t.concat(/\b/,t.either(...H.map(U=>U.replace(/\s+/,"\\s+"))),/\b/)}const R={scope:"keyword",match:I(_),relevance:0};function k(H,{exceptions:U,when:v}={}){const P=v;return U=U||[],H.map(Y=>Y.match(/\|\d+$/)||U.includes(Y)?Y:P(Y)?`${Y}|0`:Y)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:k(O,{when:H=>H.length<3}),literal:i,type:c,built_in:b},contains:[{scope:"type",match:I(o)},R,x,g,a,s,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,A]}}function Ji(e){return e?typeof e=="string"?e:e.source:null}function Wt(e){return oe("(?=",e,")")}function oe(...e){return e.map(n=>Ji(n)).join("")}function Xm(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function Ue(...e){return"("+(Xm(e).capture?"":"?:")+e.map(a=>Ji(a)).join("|")+")"}const Qa=e=>oe(/\b/,e,/\w$/.test(e)?/\b/:/\B/),Qm=["Protocol","Type"].map(Qa),Jr=["init","self"].map(Qa),Zm=["Any","Self"],ua=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],es=["false","nil","true"],Jm=["assignment","associativity","higherThan","left","lowerThan","none","right"],eh=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],ts=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],eo=Ue(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),to=Ue(eo,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),la=oe(eo,to,"*"),no=Ue(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),Mn=Ue(no,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),nt=oe(no,Mn,"*"),An=oe(/[A-Z]/,Mn,"*"),th=["attached","autoclosure",oe(/convention\(/,Ue("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",oe(/objc\(/,nt,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],nh=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function ah(e){const t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),a=[e.C_LINE_COMMENT_MODE,n],s={match:[/\./,Ue(...Qm,...Jr)],className:{2:"keyword"}},i={match:oe(/\./,Ue(...ua)),relevance:0},o=ua.filter(ee=>typeof ee=="string").concat(["_|0"]),c=ua.filter(ee=>typeof ee!="string").concat(Zm).map(Qa),l={variants:[{className:"keyword",match:Ue(...c,...Jr)}]},f={$pattern:Ue(/\b\w+/,/#\w+/),keyword:o.concat(eh),literal:es},E=[s,i,l],b={match:oe(/\./,Ue(...ts)),relevance:0},_={className:"built_in",match:oe(/\b/,Ue(...ts),/(?=\()/)},S=[b,_],O={match:/->/,relevance:0},g={className:"operator",relevance:0,variants:[{match:la},{match:`\\.(\\.|${to})+`}]},A=[O,g],x="([0-9]_*)+",I="([0-9a-fA-F]_*)+",R={className:"number",relevance:0,variants:[{match:`\\b(${x})(\\.(${x}))?([eE][+-]?(${x}))?\\b`},{match:`\\b0x(${I})(\\.(${I}))?([pP][+-]?(${x}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},k=(ee="")=>({className:"subst",variants:[{match:oe(/\\/,ee,/[0\\tnr"']/)},{match:oe(/\\/,ee,/u\{[0-9a-fA-F]{1,8}\}/)}]}),H=(ee="")=>({className:"subst",match:oe(/\\/,ee,/[\t ]*(?:[\r\n]|\r\n)/)}),U=(ee="")=>({className:"subst",label:"interpol",begin:oe(/\\/,ee,/\(/),end:/\)/}),v=(ee="")=>({begin:oe(ee,/"""/),end:oe(/"""/,ee),contains:[k(ee),H(ee),U(ee)]}),P=(ee="")=>({begin:oe(ee,/"/),end:oe(/"/,ee),contains:[k(ee),U(ee)]}),Y={className:"string",variants:[v(),v("#"),v("##"),v("###"),P(),P("#"),P("##"),P("###")]},Q=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],ie={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Q},pe=ee=>{const Je=oe(ee,/\//),gt=oe(/\//,ee);return{begin:Je,end:gt,contains:[...Q,{scope:"comment",begin:`#(?!.*${gt})`,end:/$/}]}},xe={scope:"regexp",variants:[pe("###"),pe("##"),pe("#"),ie]},te={match:oe(/`/,nt,/`/)},re={className:"variable",match:/\$\d+/},ne={className:"variable",match:`\\$${Mn}+`},Ce=[te,re,ne],V={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:nh,contains:[...A,R,Y]}]}},ue={scope:"keyword",match:oe(/@/,Ue(...th),Wt(Ue(/\(/,/\s+/)))},Oe={scope:"meta",match:oe(/@/,nt)},ge=[V,ue,Oe],_e={match:Wt(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:oe(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,Mn,"+")},{className:"type",match:An,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:oe(/\s+&\s+/,Wt(An)),relevance:0}]},ze={begin:/</,end:/>/,keywords:f,contains:[...a,...E,...ge,O,_e]};_e.contains.push(ze);const Ze={match:oe(nt,/\s*:/),keywords:"_|0",relevance:0},it={begin:/\(/,end:/\)/,relevance:0,keywords:f,contains:["self",Ze,...a,xe,...E,...S,...A,R,Y,...Ce,...ge,_e]},We={begin:/</,end:/>/,keywords:"repeat each",contains:[...a,_e]},W={begin:Ue(Wt(oe(nt,/\s*:/)),Wt(oe(nt,/\s+/,nt,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:nt}]},he={begin:/\(/,end:/\)/,keywords:f,contains:[W,...a,...E,...A,R,Y,...ge,_e,it],endsParent:!0,illegal:/["']/},Me={match:[/(func|macro)/,/\s+/,Ue(te.match,nt,la)],className:{1:"keyword",3:"title.function"},contains:[We,he,t],illegal:[/\[/,/%/]},ae={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[We,he,t],illegal:/\[|%/},le={match:[/operator/,/\s+/,la],className:{1:"keyword",3:"title"}},be={begin:[/precedencegroup/,/\s+/,An],className:{1:"keyword",3:"title"},contains:[_e],keywords:[...Jm,...es],end:/}/},je={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},qe={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},bt={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,nt,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:f,contains:[We,...E,{begin:/:/,end:/\{/,keywords:f,contains:[{scope:"title.class.inherited",match:An},...E],relevance:0}]};for(const ee of Y.variants){const Je=ee.contains.find(Vn=>Vn.label==="interpol");Je.keywords=f;const gt=[...E,...S,...A,R,Y,...Ce];Je.contains=[...gt,{begin:/\(/,end:/\)/,contains:["self",...gt]}]}return{name:"Swift",keywords:f,contains:[...a,Me,ae,je,qe,bt,le,be,{beginKeywords:"import",end:/$/,contains:[...a],relevance:0},xe,...E,...S,...A,R,Y,...Ce,...ge,_e,it]}}const kn="[A-Za-z$_][0-9A-Za-z$_]*",ao=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],ro=["true","false","null","undefined","NaN","Infinity"],so=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],io=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],oo=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],co=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],uo=[].concat(oo,so,io);function rh(e){const t=e.regex,n=(V,{after:ue})=>{const Oe="</"+V[0].slice(1);return V.input.indexOf(Oe,ue)!==-1},a=kn,s={begin:"<>",end:"</>"},i=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(V,ue)=>{const Oe=V[0].length+V.index,ge=V.input[Oe];if(ge==="<"||ge===","){ue.ignoreMatch();return}ge===">"&&(n(V,{after:Oe})||ue.ignoreMatch());let _e;const ze=V.input.substring(Oe);if(_e=ze.match(/^\s*=/)){ue.ignoreMatch();return}if((_e=ze.match(/^\s+extends\s+/))&&_e.index===0){ue.ignoreMatch();return}}},c={$pattern:kn,keyword:ao,literal:ro,built_in:uo,"variable.language":co},l="[0-9](_?[0-9])*",f=`\\.(${l})`,E="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",b={className:"number",variants:[{begin:`(\\b(${E})((${f})|\\.)?|(${f}))[eE][+-]?(${l})\\b`},{begin:`\\b(${E})\\b((${f})\\b|\\.)?|(${f})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},_={className:"subst",begin:"\\$\\{",end:"\\}",keywords:c,contains:[]},S={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,_],subLanguage:"xml"}},O={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,_],subLanguage:"css"}},g={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,_],subLanguage:"graphql"}},A={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,_]},I={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:a+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},R=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,S,O,g,A,{match:/\$\d+/},b];_.contains=R.concat({begin:/\{/,end:/\}/,keywords:c,contains:["self"].concat(R)});const k=[].concat(I,_.contains),H=k.concat([{begin:/(\s*)\(/,end:/\)/,keywords:c,contains:["self"].concat(k)}]),U={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:H},v={variants:[{match:[/class/,/\s+/,a,/\s+/,/extends/,/\s+/,t.concat(a,"(",t.concat(/\./,a),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,a],scope:{1:"keyword",3:"title.class"}}]},P={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...so,...io]}},Y={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Q={variants:[{match:[/function/,/\s+/,a,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[U],illegal:/%/},ie={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function pe(V){return t.concat("(?!",V.join("|"),")")}const xe={match:t.concat(/\b/,pe([...oo,"super","import"].map(V=>`${V}\\s*\\(`)),a,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},te={begin:t.concat(/\./,t.lookahead(t.concat(a,/(?![0-9A-Za-z$_(])/))),end:a,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},re={match:[/get|set/,/\s+/,a,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},U]},ne="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",Ce={match:[/const|var|let/,/\s+/,a,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(ne)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[U]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:c,exports:{PARAMS_CONTAINS:H,CLASS_REFERENCE:P},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),Y,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,S,O,g,A,I,{match:/\$\d+/},b,P,{scope:"attr",match:a+t.lookahead(":"),relevance:0},Ce,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[I,e.REGEXP_MODE,{className:"function",begin:ne,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:H}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:i},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},Q,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[U,e.inherit(e.TITLE_MODE,{begin:a,className:"title.function"})]},{match:/\.\.\./,relevance:0},te,{match:"\\$"+a,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[U]},xe,ie,v,re,{match:/\$[(.]/}]}}function sh(e){const t=e.regex,n=rh(e),a=kn,s=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:s},contains:[n.exports.CLASS_REFERENCE]},c={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},l=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],f={$pattern:kn,keyword:ao.concat(l),literal:ro,built_in:uo.concat(s),"variable.language":co},E={className:"meta",begin:"@"+a},b=(g,A,x)=>{const I=g.contains.findIndex(R=>R.label===A);if(I===-1)throw new Error("can not find mode to replace");g.contains.splice(I,1,x)};Object.assign(n.keywords,f),n.exports.PARAMS_CONTAINS.push(E);const _=n.contains.find(g=>g.scope==="attr"),S=Object.assign({},_,{match:t.concat(a,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,_,S]),n.contains=n.contains.concat([E,i,o,S]),b(n,"shebang",e.SHEBANG()),b(n,"use_strict",c);const O=n.contains.find(g=>g.label==="func.def");return O.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}function ih(e){const t=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},a={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},s=/\d{1,2}\/\d{1,2}\/\d{4}/,i=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,c=/\d{1,2}(:\d{1,2}){1,2}/,l={className:"literal",variants:[{begin:t.concat(/# */,t.either(i,s),/ *#/)},{begin:t.concat(/# */,c,/ *#/)},{begin:t.concat(/# */,o,/ *#/)},{begin:t.concat(/# */,t.either(i,s),/ +/,t.either(o,c),/ *#/)}]},f={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},E={className:"label",begin:/^\w+:/},b=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),_=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,a,l,f,E,b,_,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[_]}]}}function oh(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const n=e.COMMENT(/;;/,/$/),a=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],s={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},i={className:"variable",begin:/\$[\w_]+/},o={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},c={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},l={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},f={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:a},contains:[n,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},i,o,s,e.QUOTE_STRING_MODE,l,f,c]}}function ch(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),a=/[\p{L}0-9._:-]+/u,s={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},i={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(i,{begin:/\(/,end:/\)/}),c=e.inherit(e.APOS_STRING_MODE,{className:"string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),f={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:a,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[s]},{begin:/'/,end:/'/,contains:[s]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[i,l,c,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[i,o,l,c]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[f],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[f],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:f}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function uh(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",a={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},s={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},i={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},o={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,s]},c=e.inherit(o,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),_={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},S={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},O={begin:/\{/,end:/\}/,contains:[S],illegal:"\\n",relevance:0},g={begin:"\\[",end:"\\]",contains:[S],illegal:"\\n",relevance:0},A=[a,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},_,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},O,g,i,o],x=[...A];return x.pop(),x.push(c),S.contains=x,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:A}}const lh={arduino:$f,bash:Wf,c:jf,cpp:qf,csharp:Vf,css:rm,diff:sm,go:im,graphql:om,ini:cm,java:um,javascript:hm,json:Em,kotlin:bm,less:Cm,lua:Im,makefile:Om,markdown:Rm,objectivec:ym,perl:Lm,php:wm,"php-template":Dm,plaintext:vm,python:Mm,"python-repl":km,r:Pm,ruby:Bm,rust:Um,scss:jm,shell:qm,sql:Vm,swift:ah,typescript:sh,vbnet:ih,wasm:oh,xml:ch,yaml:uh};var da,ns;function dh(){if(ns)return da;ns=1;function e(p){return p instanceof Map?p.clear=p.delete=p.set=function(){throw new Error("map is read-only")}:p instanceof Set&&(p.add=p.clear=p.delete=function(){throw new Error("set is read-only")}),Object.freeze(p),Object.getOwnPropertyNames(p).forEach(y=>{const M=p[y],j=typeof M;(j==="object"||j==="function")&&!Object.isFrozen(M)&&e(M)}),p}class t{constructor(y){y.data===void 0&&(y.data={}),this.data=y.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(p){return p.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function a(p,...y){const M=Object.create(null);for(const j in p)M[j]=p[j];return y.forEach(function(j){for(const Te in j)M[Te]=j[Te]}),M}const s="</span>",i=p=>!!p.scope,o=(p,{prefix:y})=>{if(p.startsWith("language:"))return p.replace("language:","language-");if(p.includes(".")){const M=p.split(".");return[`${y}${M.shift()}`,...M.map((j,Te)=>`${j}${"_".repeat(Te+1)}`)].join(" ")}return`${y}${p}`};class c{constructor(y,M){this.buffer="",this.classPrefix=M.classPrefix,y.walk(this)}addText(y){this.buffer+=n(y)}openNode(y){if(!i(y))return;const M=o(y.scope,{prefix:this.classPrefix});this.span(M)}closeNode(y){i(y)&&(this.buffer+=s)}value(){return this.buffer}span(y){this.buffer+=`<span class="${y}">`}}const l=(p={})=>{const y={children:[]};return Object.assign(y,p),y};class f{constructor(){this.rootNode=l(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(y){this.top.children.push(y)}openNode(y){const M=l({scope:y});this.add(M),this.stack.push(M)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(y){return this.constructor._walk(y,this.rootNode)}static _walk(y,M){return typeof M=="string"?y.addText(M):M.children&&(y.openNode(M),M.children.forEach(j=>this._walk(y,j)),y.closeNode(M)),y}static _collapse(y){typeof y!="string"&&y.children&&(y.children.every(M=>typeof M=="string")?y.children=[y.children.join("")]:y.children.forEach(M=>{f._collapse(M)}))}}class E extends f{constructor(y){super(),this.options=y}addText(y){y!==""&&this.add(y)}startScope(y){this.openNode(y)}endScope(){this.closeNode()}__addSublanguage(y,M){const j=y.root;M&&(j.scope=`language:${M}`),this.add(j)}toHTML(){return new c(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function b(p){return p?typeof p=="string"?p:p.source:null}function _(p){return g("(?=",p,")")}function S(p){return g("(?:",p,")*")}function O(p){return g("(?:",p,")?")}function g(...p){return p.map(M=>b(M)).join("")}function A(p){const y=p[p.length-1];return typeof y=="object"&&y.constructor===Object?(p.splice(p.length-1,1),y):{}}function x(...p){return"("+(A(p).capture?"":"?:")+p.map(j=>b(j)).join("|")+")"}function I(p){return new RegExp(p.toString()+"|").exec("").length-1}function R(p,y){const M=p&&p.exec(y);return M&&M.index===0}const k=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function H(p,{joinWith:y}){let M=0;return p.map(j=>{M+=1;const Te=M;let Ne=b(j),z="";for(;Ne.length>0;){const F=k.exec(Ne);if(!F){z+=Ne;break}z+=Ne.substring(0,F.index),Ne=Ne.substring(F.index+F[0].length),F[0][0]==="\\"&&F[1]?z+="\\"+String(Number(F[1])+Te):(z+=F[0],F[0]==="("&&M++)}return z}).map(j=>`(${j})`).join(y)}const U=/\b\B/,v="[a-zA-Z]\\w*",P="[a-zA-Z_]\\w*",Y="\\b\\d+(\\.\\d+)?",Q="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",ie="\\b(0b[01]+)",pe="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",xe=(p={})=>{const y=/^#![ ]*\//;return p.binary&&(p.begin=g(y,/.*\b/,p.binary,/\b.*/)),a({scope:"meta",begin:y,end:/$/,relevance:0,"on:begin":(M,j)=>{M.index!==0&&j.ignoreMatch()}},p)},te={begin:"\\\\[\\s\\S]",relevance:0},re={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[te]},ne={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[te]},Ce={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},V=function(p,y,M={}){const j=a({scope:"comment",begin:p,end:y,contains:[]},M);j.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Te=x("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return j.contains.push({begin:g(/[ ]+/,"(",Te,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),j},ue=V("//","$"),Oe=V("/\\*","\\*/"),ge=V("#","$"),_e={scope:"number",begin:Y,relevance:0},ze={scope:"number",begin:Q,relevance:0},Ze={scope:"number",begin:ie,relevance:0},it={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[te,{begin:/\[/,end:/\]/,relevance:0,contains:[te]}]},We={scope:"title",begin:v,relevance:0},W={scope:"title",begin:P,relevance:0},he={begin:"\\.\\s*"+P,relevance:0};var ae=Object.freeze({__proto__:null,APOS_STRING_MODE:re,BACKSLASH_ESCAPE:te,BINARY_NUMBER_MODE:Ze,BINARY_NUMBER_RE:ie,COMMENT:V,C_BLOCK_COMMENT_MODE:Oe,C_LINE_COMMENT_MODE:ue,C_NUMBER_MODE:ze,C_NUMBER_RE:Q,END_SAME_AS_BEGIN:function(p){return Object.assign(p,{"on:begin":(y,M)=>{M.data._beginMatch=y[1]},"on:end":(y,M)=>{M.data._beginMatch!==y[1]&&M.ignoreMatch()}})},HASH_COMMENT_MODE:ge,IDENT_RE:v,MATCH_NOTHING_RE:U,METHOD_GUARD:he,NUMBER_MODE:_e,NUMBER_RE:Y,PHRASAL_WORDS_MODE:Ce,QUOTE_STRING_MODE:ne,REGEXP_MODE:it,RE_STARTERS_RE:pe,SHEBANG:xe,TITLE_MODE:We,UNDERSCORE_IDENT_RE:P,UNDERSCORE_TITLE_MODE:W});function le(p,y){p.input[p.index-1]==="."&&y.ignoreMatch()}function be(p,y){p.className!==void 0&&(p.scope=p.className,delete p.className)}function je(p,y){y&&p.beginKeywords&&(p.begin="\\b("+p.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",p.__beforeBegin=le,p.keywords=p.keywords||p.beginKeywords,delete p.beginKeywords,p.relevance===void 0&&(p.relevance=0))}function qe(p,y){Array.isArray(p.illegal)&&(p.illegal=x(...p.illegal))}function bt(p,y){if(p.match){if(p.begin||p.end)throw new Error("begin & end are not supported with match");p.begin=p.match,delete p.match}}function ee(p,y){p.relevance===void 0&&(p.relevance=1)}const Je=(p,y)=>{if(!p.beforeMatch)return;if(p.starts)throw new Error("beforeMatch cannot be used with starts");const M=Object.assign({},p);Object.keys(p).forEach(j=>{delete p[j]}),p.keywords=M.keywords,p.begin=g(M.beforeMatch,_(M.begin)),p.starts={relevance:0,contains:[Object.assign(M,{endsParent:!0})]},p.relevance=0,delete M.beforeMatch},gt=["of","and","for","in","not","or","if","then","parent","list","value"],Vn="keyword";function Za(p,y,M=Vn){const j=Object.create(null);return typeof p=="string"?Te(M,p.split(" ")):Array.isArray(p)?Te(M,p):Object.keys(p).forEach(function(Ne){Object.assign(j,Za(p[Ne],y,Ne))}),j;function Te(Ne,z){y&&(z=z.map(F=>F.toLowerCase())),z.forEach(function(F){const $=F.split("|");j[$[0]]=[Ne,lo($[0],$[1])]})}}function lo(p,y){return y?Number(y):fo(p)?0:1}function fo(p){return gt.includes(p.toLowerCase())}const Ja={},_t=p=>{console.error(p)},er=(p,...y)=>{console.log(`WARN: ${p}`,...y)},wt=(p,y)=>{Ja[`${p}/${y}`]||(console.log(`Deprecated as of ${p}. ${y}`),Ja[`${p}/${y}`]=!0)},on=new Error;function tr(p,y,{key:M}){let j=0;const Te=p[M],Ne={},z={};for(let F=1;F<=y.length;F++)z[F+j]=Te[F],Ne[F+j]=!0,j+=I(y[F-1]);p[M]=z,p[M]._emit=Ne,p[M]._multi=!0}function mo(p){if(Array.isArray(p.begin)){if(p.skip||p.excludeBegin||p.returnBegin)throw _t("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),on;if(typeof p.beginScope!="object"||p.beginScope===null)throw _t("beginScope must be object"),on;tr(p,p.begin,{key:"beginScope"}),p.begin=H(p.begin,{joinWith:""})}}function ho(p){if(Array.isArray(p.end)){if(p.skip||p.excludeEnd||p.returnEnd)throw _t("skip, excludeEnd, returnEnd not compatible with endScope: {}"),on;if(typeof p.endScope!="object"||p.endScope===null)throw _t("endScope must be object"),on;tr(p,p.end,{key:"endScope"}),p.end=H(p.end,{joinWith:""})}}function Eo(p){p.scope&&typeof p.scope=="object"&&p.scope!==null&&(p.beginScope=p.scope,delete p.scope)}function po(p){Eo(p),typeof p.beginScope=="string"&&(p.beginScope={_wrap:p.beginScope}),typeof p.endScope=="string"&&(p.endScope={_wrap:p.endScope}),mo(p),ho(p)}function bo(p){function y(z,F){return new RegExp(b(z),"m"+(p.case_insensitive?"i":"")+(p.unicodeRegex?"u":"")+(F?"g":""))}class M{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(F,$){$.position=this.position++,this.matchIndexes[this.matchAt]=$,this.regexes.push([$,F]),this.matchAt+=I(F)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const F=this.regexes.map($=>$[1]);this.matcherRe=y(H(F,{joinWith:"|"}),!0),this.lastIndex=0}exec(F){this.matcherRe.lastIndex=this.lastIndex;const $=this.matcherRe.exec(F);if(!$)return null;const Le=$.findIndex((Yt,Qn)=>Qn>0&&Yt!==void 0),Ie=this.matchIndexes[Le];return $.splice(0,Le),Object.assign($,Ie)}}class j{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(F){if(this.multiRegexes[F])return this.multiRegexes[F];const $=new M;return this.rules.slice(F).forEach(([Le,Ie])=>$.addRule(Le,Ie)),$.compile(),this.multiRegexes[F]=$,$}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(F,$){this.rules.push([F,$]),$.type==="begin"&&this.count++}exec(F){const $=this.getMatcher(this.regexIndex);$.lastIndex=this.lastIndex;let Le=$.exec(F);if(this.resumingScanAtSamePosition()&&!(Le&&Le.index===this.lastIndex)){const Ie=this.getMatcher(0);Ie.lastIndex=this.lastIndex+1,Le=Ie.exec(F)}return Le&&(this.regexIndex+=Le.position+1,this.regexIndex===this.count&&this.considerAll()),Le}}function Te(z){const F=new j;return z.contains.forEach($=>F.addRule($.begin,{rule:$,type:"begin"})),z.terminatorEnd&&F.addRule(z.terminatorEnd,{type:"end"}),z.illegal&&F.addRule(z.illegal,{type:"illegal"}),F}function Ne(z,F){const $=z;if(z.isCompiled)return $;[be,bt,po,Je].forEach(Ie=>Ie(z,F)),p.compilerExtensions.forEach(Ie=>Ie(z,F)),z.__beforeBegin=null,[je,qe,ee].forEach(Ie=>Ie(z,F)),z.isCompiled=!0;let Le=null;return typeof z.keywords=="object"&&z.keywords.$pattern&&(z.keywords=Object.assign({},z.keywords),Le=z.keywords.$pattern,delete z.keywords.$pattern),Le=Le||/\w+/,z.keywords&&(z.keywords=Za(z.keywords,p.case_insensitive)),$.keywordPatternRe=y(Le,!0),F&&(z.begin||(z.begin=/\B|\b/),$.beginRe=y($.begin),!z.end&&!z.endsWithParent&&(z.end=/\B|\b/),z.end&&($.endRe=y($.end)),$.terminatorEnd=b($.end)||"",z.endsWithParent&&F.terminatorEnd&&($.terminatorEnd+=(z.end?"|":"")+F.terminatorEnd)),z.illegal&&($.illegalRe=y(z.illegal)),z.contains||(z.contains=[]),z.contains=[].concat(...z.contains.map(function(Ie){return go(Ie==="self"?z:Ie)})),z.contains.forEach(function(Ie){Ne(Ie,$)}),z.starts&&Ne(z.starts,F),$.matcher=Te($),$}if(p.compilerExtensions||(p.compilerExtensions=[]),p.contains&&p.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return p.classNameAliases=a(p.classNameAliases||{}),Ne(p)}function nr(p){return p?p.endsWithParent||nr(p.starts):!1}function go(p){return p.variants&&!p.cachedVariants&&(p.cachedVariants=p.variants.map(function(y){return a(p,{variants:null},y)})),p.cachedVariants?p.cachedVariants:nr(p)?a(p,{starts:p.starts?a(p.starts):null}):Object.isFrozen(p)?a(p):p}var _o="11.11.1";class To extends Error{constructor(y,M){super(y),this.name="HTMLInjectionError",this.html=M}}const Xn=n,ar=a,rr=Symbol("nomatch"),No=7,sr=function(p){const y=Object.create(null),M=Object.create(null),j=[];let Te=!0;const Ne="Could not find the language '{}', did you forget to load/include a language module?",z={disableAutodetect:!0,name:"Plain text",contains:[]};let F={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:E};function $(D){return F.noHighlightRe.test(D)}function Le(D){let K=D.className+" ";K+=D.parentNode?D.parentNode.className:"";const J=F.languageDetectRe.exec(K);if(J){const de=ut(J[1]);return de||(er(Ne.replace("{}",J[1])),er("Falling back to no-highlight mode for this block.",D)),de?J[1]:"no-highlight"}return K.split(/\s+/).find(de=>$(de)||ut(de))}function Ie(D,K,J){let de="",Re="";typeof K=="object"?(de=D,J=K.ignoreIllegals,Re=K.language):(wt("10.7.0","highlight(lang, code, ...args) has been deprecated."),wt("10.7.0",`Please use highlight(code, options) instead.
10
+ https://github.com/highlightjs/highlight.js/issues/2277`),Re=D,de=K),J===void 0&&(J=!0);const Ve={code:de,language:Re};un("before:highlight",Ve);const lt=Ve.result?Ve.result:Yt(Ve.language,Ve.code,J);return lt.code=Ve.code,un("after:highlight",lt),lt}function Yt(D,K,J,de){const Re=Object.create(null);function Ve(B,G){return B.keywords[G]}function lt(){if(!q.keywords){ve.addText(fe);return}let B=0;q.keywordPatternRe.lastIndex=0;let G=q.keywordPatternRe.exec(fe),X="";for(;G;){X+=fe.substring(B,G.index);const se=tt.case_insensitive?G[0].toLowerCase():G[0],ke=Ve(q,se);if(ke){const[ot,Uo]=ke;if(ve.addText(X),X="",Re[se]=(Re[se]||0)+1,Re[se]<=No&&(fn+=Uo),ot.startsWith("_"))X+=G[0];else{const Fo=tt.classNameAliases[ot]||ot;et(G[0],Fo)}}else X+=G[0];B=q.keywordPatternRe.lastIndex,G=q.keywordPatternRe.exec(fe)}X+=fe.substring(B),ve.addText(X)}function ln(){if(fe==="")return;let B=null;if(typeof q.subLanguage=="string"){if(!y[q.subLanguage]){ve.addText(fe);return}B=Yt(q.subLanguage,fe,!0,mr[q.subLanguage]),mr[q.subLanguage]=B._top}else B=Zn(fe,q.subLanguage.length?q.subLanguage:null);q.relevance>0&&(fn+=B.relevance),ve.__addSublanguage(B._emitter,B.language)}function Ye(){q.subLanguage!=null?ln():lt(),fe=""}function et(B,G){B!==""&&(ve.startScope(G),ve.addText(B),ve.endScope())}function ur(B,G){let X=1;const se=G.length-1;for(;X<=se;){if(!B._emit[X]){X++;continue}const ke=tt.classNameAliases[B[X]]||B[X],ot=G[X];ke?et(ot,ke):(fe=ot,lt(),fe=""),X++}}function lr(B,G){return B.scope&&typeof B.scope=="string"&&ve.openNode(tt.classNameAliases[B.scope]||B.scope),B.beginScope&&(B.beginScope._wrap?(et(fe,tt.classNameAliases[B.beginScope._wrap]||B.beginScope._wrap),fe=""):B.beginScope._multi&&(ur(B.beginScope,G),fe="")),q=Object.create(B,{parent:{value:q}}),q}function dr(B,G,X){let se=R(B.endRe,X);if(se){if(B["on:end"]){const ke=new t(B);B["on:end"](G,ke),ke.isMatchIgnored&&(se=!1)}if(se){for(;B.endsParent&&B.parent;)B=B.parent;return B}}if(B.endsWithParent)return dr(B.parent,G,X)}function vo(B){return q.matcher.regexIndex===0?(fe+=B[0],1):(na=!0,0)}function Mo(B){const G=B[0],X=B.rule,se=new t(X),ke=[X.__beforeBegin,X["on:begin"]];for(const ot of ke)if(ot&&(ot(B,se),se.isMatchIgnored))return vo(G);return X.skip?fe+=G:(X.excludeBegin&&(fe+=G),Ye(),!X.returnBegin&&!X.excludeBegin&&(fe=G)),lr(X,B),X.returnBegin?0:G.length}function ko(B){const G=B[0],X=K.substring(B.index),se=dr(q,B,X);if(!se)return rr;const ke=q;q.endScope&&q.endScope._wrap?(Ye(),et(G,q.endScope._wrap)):q.endScope&&q.endScope._multi?(Ye(),ur(q.endScope,B)):ke.skip?fe+=G:(ke.returnEnd||ke.excludeEnd||(fe+=G),Ye(),ke.excludeEnd&&(fe=G));do q.scope&&ve.closeNode(),!q.skip&&!q.subLanguage&&(fn+=q.relevance),q=q.parent;while(q!==se.parent);return se.starts&&lr(se.starts,B),ke.returnEnd?0:G.length}function Po(){const B=[];for(let G=q;G!==tt;G=G.parent)G.scope&&B.unshift(G.scope);B.forEach(G=>ve.openNode(G))}let dn={};function fr(B,G){const X=G&&G[0];if(fe+=B,X==null)return Ye(),0;if(dn.type==="begin"&&G.type==="end"&&dn.index===G.index&&X===""){if(fe+=K.slice(G.index,G.index+1),!Te){const se=new Error(`0 width match regex (${D})`);throw se.languageName=D,se.badRule=dn.rule,se}return 1}if(dn=G,G.type==="begin")return Mo(G);if(G.type==="illegal"&&!J){const se=new Error('Illegal lexeme "'+X+'" for mode "'+(q.scope||"<unnamed>")+'"');throw se.mode=q,se}else if(G.type==="end"){const se=ko(G);if(se!==rr)return se}if(G.type==="illegal"&&X==="")return fe+=`
11
+ `,1;if(ta>1e5&&ta>G.index*3)throw new Error("potential infinite loop, way more iterations than matches");return fe+=X,X.length}const tt=ut(D);if(!tt)throw _t(Ne.replace("{}",D)),new Error('Unknown language: "'+D+'"');const Bo=bo(tt);let ea="",q=de||Bo;const mr={},ve=new F.__emitter(F);Po();let fe="",fn=0,Tt=0,ta=0,na=!1;try{if(tt.__emitTokens)tt.__emitTokens(K,ve);else{for(q.matcher.considerAll();;){ta++,na?na=!1:q.matcher.considerAll(),q.matcher.lastIndex=Tt;const B=q.matcher.exec(K);if(!B)break;const G=K.substring(Tt,B.index),X=fr(G,B);Tt=B.index+X}fr(K.substring(Tt))}return ve.finalize(),ea=ve.toHTML(),{language:D,value:ea,relevance:fn,illegal:!1,_emitter:ve,_top:q}}catch(B){if(B.message&&B.message.includes("Illegal"))return{language:D,value:Xn(K),illegal:!0,relevance:0,_illegalBy:{message:B.message,index:Tt,context:K.slice(Tt-100,Tt+100),mode:B.mode,resultSoFar:ea},_emitter:ve};if(Te)return{language:D,value:Xn(K),illegal:!1,relevance:0,errorRaised:B,_emitter:ve,_top:q};throw B}}function Qn(D){const K={value:Xn(D),illegal:!1,relevance:0,_top:z,_emitter:new F.__emitter(F)};return K._emitter.addText(D),K}function Zn(D,K){K=K||F.languages||Object.keys(y);const J=Qn(D),de=K.filter(ut).filter(cr).map(Ye=>Yt(Ye,D,!1));de.unshift(J);const Re=de.sort((Ye,et)=>{if(Ye.relevance!==et.relevance)return et.relevance-Ye.relevance;if(Ye.language&&et.language){if(ut(Ye.language).supersetOf===et.language)return 1;if(ut(et.language).supersetOf===Ye.language)return-1}return 0}),[Ve,lt]=Re,ln=Ve;return ln.secondBest=lt,ln}function Ao(D,K,J){const de=K&&M[K]||J;D.classList.add("hljs"),D.classList.add(`language-${de}`)}function Jn(D){let K=null;const J=Le(D);if($(J))return;if(un("before:highlightElement",{el:D,language:J}),D.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",D);return}if(D.children.length>0&&(F.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(D)),F.throwUnescapedHTML))throw new To("One of your code blocks includes unescaped HTML.",D.innerHTML);K=D;const de=K.textContent,Re=J?Ie(de,{language:J,ignoreIllegals:!0}):Zn(de);D.innerHTML=Re.value,D.dataset.highlighted="yes",Ao(D,J,Re.language),D.result={language:Re.language,re:Re.relevance,relevance:Re.relevance},Re.secondBest&&(D.secondBest={language:Re.secondBest.language,relevance:Re.secondBest.relevance}),un("after:highlightElement",{el:D,result:Re,text:de})}function So(D){F=ar(F,D)}const xo=()=>{cn(),wt("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Co(){cn(),wt("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let ir=!1;function cn(){function D(){cn()}if(document.readyState==="loading"){ir||window.addEventListener("DOMContentLoaded",D,!1),ir=!0;return}document.querySelectorAll(F.cssSelector).forEach(Jn)}function Io(D,K){let J=null;try{J=K(p)}catch(de){if(_t("Language definition for '{}' could not be registered.".replace("{}",D)),Te)_t(de);else throw de;J=z}J.name||(J.name=D),y[D]=J,J.rawDefinition=K.bind(null,p),J.aliases&&or(J.aliases,{languageName:D})}function Oo(D){delete y[D];for(const K of Object.keys(M))M[K]===D&&delete M[K]}function Ro(){return Object.keys(y)}function ut(D){return D=(D||"").toLowerCase(),y[D]||y[M[D]]}function or(D,{languageName:K}){typeof D=="string"&&(D=[D]),D.forEach(J=>{M[J.toLowerCase()]=K})}function cr(D){const K=ut(D);return K&&!K.disableAutodetect}function yo(D){D["before:highlightBlock"]&&!D["before:highlightElement"]&&(D["before:highlightElement"]=K=>{D["before:highlightBlock"](Object.assign({block:K.el},K))}),D["after:highlightBlock"]&&!D["after:highlightElement"]&&(D["after:highlightElement"]=K=>{D["after:highlightBlock"](Object.assign({block:K.el},K))})}function Lo(D){yo(D),j.push(D)}function wo(D){const K=j.indexOf(D);K!==-1&&j.splice(K,1)}function un(D,K){const J=D;j.forEach(function(de){de[J]&&de[J](K)})}function Do(D){return wt("10.7.0","highlightBlock will be removed entirely in v12.0"),wt("10.7.0","Please use highlightElement now."),Jn(D)}Object.assign(p,{highlight:Ie,highlightAuto:Zn,highlightAll:cn,highlightElement:Jn,highlightBlock:Do,configure:So,initHighlighting:xo,initHighlightingOnLoad:Co,registerLanguage:Io,unregisterLanguage:Oo,listLanguages:Ro,getLanguage:ut,registerAliases:or,autoDetection:cr,inherit:ar,addPlugin:Lo,removePlugin:wo}),p.debugMode=function(){Te=!1},p.safeMode=function(){Te=!0},p.versionString=_o,p.regex={concat:g,lookahead:_,either:x,optional:O,anyNumberOfTimes:S};for(const D in ae)typeof ae[D]=="object"&&e(ae[D]);return Object.assign(p,ae),p},Dt=sr({});return Dt.newInstance=()=>sr({}),da=Dt,Dt.HighlightJS=Dt,Dt.default=Dt,da}var fh=dh();const mh=os(fh),as={},hh="hljs-";function Eh(e){const t=mh.newInstance();return e&&i(e),{highlight:n,highlightAuto:a,listLanguages:s,register:i,registerAlias:o,registered:c};function n(l,f,E){const b=E||as,_=typeof b.prefix=="string"?b.prefix:hh;if(!t.getLanguage(l))throw new Error("Unknown language: `"+l+"` is not registered");t.configure({__emitter:ph,classPrefix:_});const S=t.highlight(f,{ignoreIllegals:!0,language:l});if(S.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:S.errorRaised});const O=S._emitter.root,g=O.data;return g.language=S.language,g.relevance=S.relevance,O}function a(l,f){const b=(f||as).subset||s();let _=-1,S=0,O;for(;++_<b.length;){const g=b[_];if(!t.getLanguage(g))continue;const A=n(g,l,f);A.data&&A.data.relevance!==void 0&&A.data.relevance>S&&(S=A.data.relevance,O=A)}return O||{type:"root",children:[],data:{language:void 0,relevance:S}}}function s(){return t.listLanguages()}function i(l,f){if(typeof l=="string")t.registerLanguage(l,f);else{let E;for(E in l)Object.hasOwn(l,E)&&t.registerLanguage(E,l[E])}}function o(l,f){if(typeof l=="string")t.registerAliases(typeof f=="string"?f:[...f],{languageName:l});else{let E;for(E in l)if(Object.hasOwn(l,E)){const b=l[E];t.registerAliases(typeof b=="string"?b:[...b],{languageName:E})}}}function c(l){return!!t.getLanguage(l)}}class ph{constructor(t){this.options=t,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(t){if(t==="")return;const n=this.stack[this.stack.length-1],a=n.children[n.children.length-1];a&&a.type==="text"?a.value+=t:n.children.push({type:"text",value:t})}startScope(t){this.openNode(String(t))}endScope(){this.closeNode()}__addSublanguage(t,n){const a=this.stack[this.stack.length-1],s=t.root.children;n?a.children.push({type:"element",tagName:"span",properties:{className:[n]},children:s}):a.children.push(...s)}openNode(t){const n=this,a=t.split(".").map(function(o,c){return c?o+"_".repeat(c):n.options.classPrefix+o}),s=this.stack[this.stack.length-1],i={type:"element",tagName:"span",properties:{className:a},children:[]};s.children.push(i),this.stack.push(i)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const bh={};function gh(e){const t=e||bh,n=t.aliases,a=t.detect||!1,s=t.languages||lh,i=t.plainText,o=t.prefix,c=t.subset;let l="hljs";const f=Eh(s);if(n&&f.registerAlias(n),o){const E=o.indexOf("-");l=E===-1?o:o.slice(0,E)}return function(E,b){ds(E,"element",function(_,S,O){if(_.tagName!=="code"||!O||O.type!=="element"||O.tagName!=="pre")return;const g=_h(_);if(g===!1||!g&&!a||g&&i&&i.includes(g))return;Array.isArray(_.properties.className)||(_.properties.className=[]),_.properties.className.includes(l)||_.properties.className.unshift(l);const A=Bf(_,{whitespace:"pre"});let x;try{x=g?f.highlight(g,A,{prefix:o}):f.highlightAuto(A,{prefix:o,subset:c})}catch(I){const R=I;if(g&&/Unknown language/.test(R.message)){b.message("Cannot highlight as `"+g+"`, it’s not registered",{ancestors:[O,_],cause:R,place:_.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw R}!g&&x.data&&x.data.language&&_.properties.className.push("language-"+x.data.language),x.children.length>0&&(_.children=x.children)})}}function _h(e){const t=e.properties.className;let n=-1;if(!Array.isArray(t))return;let a;for(;++n<t.length;){const s=String(t[n]);if(s==="no-highlight"||s==="nohighlight")return!1;!a&&s.slice(0,5)==="lang-"&&(a=s.slice(5)),!a&&s.slice(0,9)==="language-"&&(a=s.slice(9))}return a}const Th=new Set(["stepsCompleted"]),rs=80;function Nh(e){return!(Array.isArray(e)&&e.length>3||typeof e=="object"&&e!==null&&!Array.isArray(e))}function Ah(e){if(typeof e=="boolean")return e?"Yes":"No";if(Array.isArray(e))return e.join(", ");const t=String(e);return t.length>rs?`${t.slice(0,rs)}…`:t}function Sh(e){return e.replace(/([A-Z])/g," $1").replace(/[_-]/g," ").replace(/^\w/,t=>t.toUpperCase()).trim()}function xh({frontmatter:e}){const t=Object.entries(e).filter(([n,a])=>!Th.has(n)&&Nh(a)&&a!=null);return t.length===0?null:u.jsx("div",{className:"doc-meta-strip px-5 py-3.5",children:u.jsx("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-2",children:t.map(([n,a],s)=>u.jsxs("div",{className:"flex items-center gap-x-6",children:[u.jsxs("div",{className:"flex items-baseline gap-2",children:[u.jsx("span",{className:"text-xs font-medium uppercase tracking-wide",style:{color:"var(--color-doc-meta-key)",letterSpacing:"0.05em"},children:Sh(n)}),u.jsx("span",{className:"text-sm font-medium",style:{color:"var(--color-doc-meta-value)"},children:Ah(a)})]}),s<t.length-1&&u.jsx("span",{className:"hidden sm:block",style:{width:1,height:16,background:"var(--color-doc-meta-border)"},"aria-hidden":"true"})]},n))})})}function Ch({headings:e,activeId:t}){const n=s=>{document.getElementById(s)?.scrollIntoView({behavior:"smooth"})};if(e.length===0)return null;const a=e.findIndex(s=>s.id===t);return u.jsxs(u.Fragment,{children:[u.jsx("nav",{"aria-label":"Table of contents",className:"hidden w-toc-w shrink-0 desktop:block",children:u.jsxs("div",{className:"sticky top-0 h-full border-r",style:{background:"var(--color-doc-surface-toc)",borderColor:"var(--color-doc-toc-border)",backdropFilter:"blur(12px)",boxShadow:"var(--shadow-doc-toc)"},children:[u.jsx("div",{className:"px-5 pt-6 pb-3",children:u.jsx("span",{className:"text-xs font-semibold uppercase tracking-widest",style:{color:"var(--color-doc-meta-key)",letterSpacing:"0.1em"},children:"Contents"})}),u.jsx(Yu,{className:"h-[calc(100%-56px)] px-3",children:u.jsx("ul",{className:"space-y-0.5 pb-6",children:e.map((s,i)=>{const o=t===s.id,c=a>=0&&i<a;return u.jsx("li",{children:u.jsxs("button",{onClick:()=>n(s.id),className:ce("group relative flex w-full items-center gap-3 rounded-md px-3 py-2 text-left text-sm transition-all duration-150",o&&"doc-toc-active"),style:{color:o?"var(--color-text-primary)":c?"var(--color-text-secondary)":"var(--color-text-muted)",fontWeight:o?500:400},children:[u.jsx("span",{className:"shrink-0 rounded-full transition-all duration-200",style:{width:o?7:5,height:o?7:5,background:o?"var(--color-doc-toc-dot)":c?"var(--color-border-strong)":"var(--color-border-default)",boxShadow:o?"0 0 8px var(--color-doc-toc-dot)":"none"},"aria-hidden":"true"}),u.jsx("span",{className:"truncate",children:s.text})]})},s.id)})})})]})}),u.jsx("div",{className:"block desktop:hidden",children:u.jsxs(Ku,{value:t??void 0,onValueChange:n,children:[u.jsx(Wu,{className:"w-full",size:"sm",children:u.jsx($u,{placeholder:"Jump to section..."})}),u.jsx(ju,{children:e.map(s=>u.jsx(qu,{value:s.id,children:s.text},s.id))})]})})]})}let fa=null;function Ih(){return fa||(fa=Jo(()=>import("./mermaid.core-BR4XzyQe.js").then(e=>e.bD),__vite__mapDeps([0,1,2]))),fa}function Oh({code:e,index:t}){const n=T.useRef(null),[a,s]=T.useState(null),[i,o]=T.useState(!0),[c,l]=T.useState(null),f=Zo(_=>_.resolved),E=T.useRef(null),b=T.useCallback(async _=>{try{const O=(await Ih()).default;O.initialize({startOnLoad:!1,theme:_==="dark"?"dark":"default",suppressErrorRendering:!0});const g=`mermaid-${t}`,{svg:A}=await O.render(g,e);s(A),l(null)}catch(S){l(S instanceof Error?S.message:"Failed to render diagram"),s(null)}finally{o(!1)}},[e,t]);return T.useEffect(()=>(E.current&&clearTimeout(E.current),E.current=setTimeout(()=>{b(f)},200),()=>{E.current&&clearTimeout(E.current)}),[f,b]),i?u.jsx("div",{className:"flex items-center justify-center rounded-lg p-10 text-sm",style:{background:"var(--color-doc-code-bg)",border:"1px solid var(--color-doc-code-border)",color:"var(--color-text-muted)"},children:u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:"size-4 animate-spin rounded-full border-2",style:{borderColor:"var(--color-doc-code-border)",borderTopColor:"var(--color-doc-toc-dot)"}}),"Loading diagram..."]})}):c?u.jsxs("div",{className:"rounded-lg p-4 text-sm",style:{background:"var(--color-doc-code-bg)",border:"1px solid var(--color-doc-code-border)",color:"var(--color-text-muted)"},children:["Failed to render diagram: ",c]}):u.jsx("div",{ref:n,className:"my-6 flex justify-center overflow-x-auto rounded-lg p-6",style:{background:"var(--color-doc-code-bg)",border:"1px solid var(--color-doc-code-border)"},dangerouslySetInnerHTML:a?{__html:a}:void 0})}const Rh=500*1024,yh=/^(##\s+.+)$/gm;function Lh(e){return e.toLowerCase().replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").trim()}function wh(e){const t=[],n=e.split(yh);n[0].trim()&&t.push({heading:null,id:null,content:n[0]});for(let a=1;a<n.length;a+=2){const i=n[a].replace(/^##\s+/,"").trim(),o=n[a+1]??"";t.push({heading:i,id:Lh(i),content:o})}return t}function Dh(e){return e.filter(t=>t.heading!==null&&t.id!==null).map(t=>({id:t.id,text:t.heading,level:2}))}function vh(e){const t=e.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n/);if(!t)return{data:{},content:e};const n=t[1],a=e.slice(t[0].length),s={};for(const i of n.split(`
12
+ `)){const o=i.indexOf(":");if(o===-1)continue;const c=i.slice(0,o).trim();let l=i.slice(o+1).trim();typeof l=="string"&&/^['"].*['"]$/.test(l)&&(l=l.slice(1,-1)),typeof l=="string"&&l.startsWith("[")&&l.endsWith("]")&&(l=l.slice(1,-1).split(",").map(f=>f.trim().replace(/^['"]|['"]$/g,""))),c&&l!==""&&(s[c]=l)}return{data:s,content:a}}function Mh({filePath:e,content:t}){const[n,a]=T.useState(null),[s,i]=T.useState(!1),o=T.useRef(null),c=T.useRef(null),l=t.length>Rh,{data:f,content:E}=T.useMemo(()=>vh(t),[t]),b=T.useMemo(()=>wh(E),[E]),_=T.useMemo(()=>Dh(b),[b]);T.useEffect(()=>{const A=c.current;return A?(o.current=new IntersectionObserver(I=>{for(const R of I)R.isIntersecting&&a(R.target.id)},{rootMargin:"-80px 0px -60% 0px",threshold:0}),A.querySelectorAll("[data-toc-heading]").forEach(I=>o.current?.observe(I)),()=>{o.current?.disconnect()}):void 0},[b]),T.useEffect(()=>{function A(x){(x.ctrlKey||x.metaKey)&&x.key==="f"&&i(!0)}return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[]);const S=T.useMemo(()=>{let A=0;return{code:({className:x,children:I,...R})=>{if(/language-mermaid/.test(x??"")){const H=String(I).trim(),U=A++;return u.jsx(Oh,{code:H,index:U})}return u.jsx("code",{className:x,...R,children:I})}}},[]),O=T.useMemo(()=>[Ec,bl],[]),g=T.useMemo(()=>[Lf,gh],[]);return l?u.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[u.jsxs("div",{className:"flex items-center gap-2 text-text-secondary",children:[u.jsx(us,{className:"size-5"}),u.jsxs("span",{className:"text-sm font-medium",children:["This document is larger than 500KB (",Math.round(t.length/1024),"KB)"]})]}),u.jsx(yn,{variant:"outline",className:"text-text-muted",children:"Large files may impact performance"}),u.jsx("a",{href:`/api/document/${e}`,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-text-secondary underline hover:text-text-primary",children:"View raw"})]}):u.jsxs("div",{className:"flex flex-1 flex-col desktop:flex-row",style:{background:"var(--color-doc-surface)"},children:[u.jsx(Ch,{headings:_,activeId:n}),u.jsxs("div",{ref:c,className:"doc-scroll min-w-0 flex-1 overflow-y-auto px-8 py-8 desktop:px-12 desktop:py-10",children:[Object.keys(f).length>0&&u.jsx("div",{className:"mb-8 max-w-content-max-w",children:u.jsx(xh,{frontmatter:f})}),u.jsx("div",{className:"doc-prose max-w-content-max-w",children:b.map((A,x)=>A.heading?u.jsx(kh,{id:A.id,heading:A.heading,content:A.content,forceOpen:s,isFirst:x===1||x===0&&b[0].heading!==null,remarkPlugins:O,rehypePlugins:g,components:S},A.id):u.jsx(ms,{remarkPlugins:O,rehypePlugins:g,components:S,children:A.content},`intro-${x}`))})]})]})}function kh({id:e,heading:t,content:n,forceOpen:a,isFirst:s,remarkPlugins:i,rehypePlugins:o,components:c}){const[l,f]=T.useState(!0),E=a||l;return u.jsx(ri,{open:E,onOpenChange:f,children:u.jsxs("div",{className:ce(!s&&"doc-section-divider"),children:[u.jsx("h2",{id:e,"data-toc-heading":!0,className:"scroll-mt-20",style:{marginBottom:0},children:u.jsx(si,{asChild:!0,children:u.jsxs("button",{className:"doc-section-trigger","aria-label":`${E?"Collapse":"Expand"} section: ${t}`,children:[u.jsx(pa,{className:ce("size-4 shrink-0 transition-transform duration-200",E&&"rotate-90"),style:{color:"var(--color-text-muted)"}}),u.jsx("span",{style:{fontFamily:"var(--font-doc-heading)",fontSize:"1.55rem",fontWeight:400,letterSpacing:"-0.02em"},children:t})]})})}),u.jsx(ii,{children:u.jsx("div",{className:"doc-section-content mt-3",children:u.jsx(ms,{remarkPlugins:i,rehypePlugins:o,components:c,children:n})})})]})})}function Ph(e){const t=Date.now()-new Date(e).getTime(),n=Math.floor(t/6e4);if(n<1)return"just now";if(n<60)return`${n}m ago`;const a=Math.floor(n/60);return a<24?`${a}h ago`:`${Math.floor(a/24)}d ago`}function Bh(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function Uh({content:e,size:t,lastModified:n}){const a=e.split(/\s+/).filter(Boolean).length,s=(e.match(/^##\s+/gm)||[]).length,i=(e.match(/\b(?:REQ-F\d+|REQ-NF\d+|BR-\d+|US-\d+)\b/g)||[]).length,o=[{label:"Size",value:Bh(t)},{label:"Words",value:a.toLocaleString()},{label:"Modified",value:Ph(n)},{label:"Sections",value:String(s)},{label:"Requirements",value:String(i)}];return u.jsx("div",{className:"doc-meta-strip mx-6 mt-4 px-5 py-3",children:u.jsx("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-2",children:o.map((c,l)=>u.jsxs("div",{className:"flex items-center gap-x-6",children:[u.jsxs("div",{className:"flex items-baseline gap-2",children:[u.jsx("span",{className:"text-xs font-medium uppercase tracking-wide text-doc-meta-key",children:c.label}),u.jsx("span",{className:"text-sm font-medium text-doc-meta-value",children:c.value})]}),l<o.length-1&&u.jsx("span",{className:"hidden sm:block",style:{width:1,height:16,background:"var(--color-doc-meta-border)"},"aria-hidden":"true"})]},c.label))})})}function Fh({description:e,agentName:t,agentRole:n,inputs:a,command:s,learn:i}){const[o,c]=T.useState(!1),l=`/${s}`,f=a.map(b=>Cn.find(S=>S.id===b.workflowId)?.label??b.workflowId),E=async()=>{try{await navigator.clipboard.writeText(l),c(!0),setTimeout(()=>c(!1),2e3)}catch{const b=document.createElement("textarea");b.value=l,document.body.appendChild(b),b.select(),document.execCommand("copy"),document.body.removeChild(b),c(!0),setTimeout(()=>c(!1),2e3)}};return u.jsx("div",{className:"flex flex-1 items-center justify-center p-8",children:u.jsxs("div",{className:"flex max-w-md flex-col items-center gap-4 text-center",children:[u.jsx(yc,{size:40,className:"text-text-muted","aria-hidden":"true"}),u.jsx("p",{className:"text-sm text-text-secondary",children:e}),f.length>0&&u.jsxs("div",{className:"w-full text-left",children:[u.jsx("p",{className:"mb-2 text-xs font-medium uppercase tracking-wide text-text-muted",children:"Input Requirements"}),u.jsx("ul",{className:"space-y-1",children:f.map(b=>u.jsxs("li",{className:"text-sm text-text-secondary",children:["• ",b]},b))})]}),u.jsxs("p",{className:"text-xs text-text-muted",children:["Agent: ",t," — ",n]}),u.jsxs("div",{className:"flex w-full flex-col items-center gap-2",children:[u.jsxs("div",{className:"flex w-full items-center gap-2 rounded-md border border-border-default bg-surface-elevated px-3 py-2",children:[u.jsx("code",{className:"flex-1 text-left text-sm text-text-primary",children:l}),u.jsx(cs,{variant:"ghost",size:"icon-xs",onClick:E,"aria-label":o?"Copied!":`Copy command: ${l}`,children:o?u.jsx(Da,{className:"size-3.5 text-status-success"}):u.jsx(Oc,{className:"size-3.5"})})]}),u.jsx("p",{className:"text-xs text-text-muted",children:o?"Copied! Paste in Claude Code to run.":"Copy and paste this command in Claude Code"})]}),i?.proTip&&u.jsxs("div",{className:"flex w-full items-start gap-2 rounded-md border border-border-subtle bg-surface-main px-3 py-2 text-left",children:[u.jsx(vc,{className:"mt-0.5 size-3.5 shrink-0 text-status-warning","aria-hidden":"true"}),u.jsxs("p",{className:"text-xs text-text-secondary",children:[u.jsx("span",{className:"font-medium",children:"Tip: "}),i.proTip]})]}),i?.whatItProduces&&u.jsxs("p",{className:"text-xs text-text-muted",children:[u.jsx("span",{className:"font-medium",children:"Output: "}),i.whatItProduces]})]})})}const Hh={analysis:"Analysis",planning:"Planning",solutioning:"Solutioning",implementation:"Implementation"},ss={analysis:"bg-phase-analysis",planning:"bg-phase-planning",solutioning:"bg-phase-solutioning",implementation:"bg-phase-implementation"},zh={document:"Document",status:"Status",dependencies:"Dependencies"};function Yh({workflowId:e}){const t=ec(),n=va(),a=T.useRef(null),{data:s}=nc(),i=Vt(P=>P.setActiveTab),o=Vt(P=>P.setLastViewedStationId),c=Vt(P=>P.getActiveTab(e)),l=Cn.find(P=>P.id===e),f=l?.phase??"analysis",E=l?.label??e,b=s&&!("status"in s)?s.workflows[e]:void 0,_=b?.status??"not-started",S=b?.outputs?.find(P=>P.exists)?.path??"",{data:O,isPending:g,dataUpdatedAt:A}=bc(S),[x,I]=T.useState(!1),R=T.useRef(A);T.useEffect(()=>{if(A>0&&R.current>0&&A!==R.current){const P=setTimeout(()=>I(!0),0),Y=setTimeout(()=>I(!1),3e3);return R.current=A,()=>{clearTimeout(P),clearTimeout(Y)}}R.current=A},[A]);const k=T.useCallback(()=>{o(e),t({to:"/"})},[t,e,o]);T.useEffect(()=>{a.current?.focus()},[]),T.useEffect(()=>{function P(Y){if(Y.key==="Escape"){k();return}const Q=parseInt(Y.key,10);Q>=1&&Q<=aa.length&&i(e,aa[Q-1])}return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},[k,e,i]);const H=T.useCallback(P=>{i(e,P)},[e,i]),U=n?{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}}:{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"}},v=n?{duration:.2}:{duration:.3,ease:"easeOut"};return u.jsxs(Pe.div,{className:"flex flex-1 flex-col",initial:U.initial,animate:U.animate,exit:U.exit,transition:v,children:[u.jsxs("header",{className:"flex flex-col gap-2 border-b border-border-default px-6 py-4",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(cs,{variant:"ghost",size:"icon-sm",onClick:k,"aria-label":"Back to map",children:u.jsx(Nc,{className:"size-4"})}),u.jsx(Qu,{phaseName:Hh[f],workflowName:E})]}),u.jsxs("div",{className:"flex items-center gap-2 pl-11",children:[u.jsx("span",{className:ce("inline-block size-3 shrink-0 rounded-full",ss[f]),"aria-hidden":"true"}),u.jsx("h1",{ref:a,tabIndex:-1,className:"text-xl font-bold text-text-primary outline-none",children:E}),u.jsxs("span",{className:"sr-only",children:["Status: ",_]})]}),l&&u.jsx("div",{className:"pl-11",children:u.jsx(Zu,{name:l.agent.name,role:l.agent.role,command:l.command})})]}),l&&u.jsx(Ju,{workflowId:e,content:l.learn}),u.jsx("div",{role:"tablist","aria-label":"Workflow detail tabs",className:"flex gap-1 border-b border-border-default px-6 pt-2",children:aa.map((P,Y)=>u.jsxs("button",{role:"tab",id:`tab-${P}`,"aria-selected":c===P,"aria-controls":`tabpanel-${P}`,className:ce("relative px-4 py-2 text-sm font-medium transition-colors rounded-t-md outline-none focus-visible:ring-2 focus-visible:ring-focus-ring",c===P?"text-text-primary bg-surface-elevated":"text-text-muted hover:text-text-secondary"),onClick:()=>H(P),children:[zh[P],c===P&&u.jsx("span",{className:ce("absolute bottom-0 left-0 right-0 h-0.5",ss[f]),"aria-hidden":"true"}),u.jsx("span",{className:"sr-only",children:`Press ${Y+1} to switch`})]},P))}),u.jsx("div",{role:"tabpanel",id:`tabpanel-${c}`,"aria-labelledby":`tab-${c}`,className:ce("flex flex-1",c==="document"||c==="status"||c==="dependencies"?"flex-col":"items-center justify-center p-8"),children:c==="document"?u.jsx(Gh,{outputPath:S,docData:O,docLoading:g,showUpdated:x,definition:l,workflowId:e}):c==="status"?u.jsx(el,{checks:b?.validation?.checks??[],score:b?.validation?.score??0,hasDocument:!!S,workflow:b??{workflowId:e,status:"not-started",outputs:[],dependenciesSatisfied:!1,progress:0},phaseColor:Ar[f]}):u.jsx(al,{workflowId:e,definition:l,projectState:s&&!("status"in s)?s:{projectName:"",projectRoot:"",outputDir:"",workflows:{},phases:[],recommendation:null,expressLine:[],gitAvailable:!1,lastScanned:""},phaseColor:Ar[f],onWorkflowClick:P=>t({to:"/workflow/$workflowId",params:{workflowId:P}})})})]})}function Gh({outputPath:e,docData:t,docLoading:n,showUpdated:a,definition:s}){return e?n?u.jsx("div",{className:"flex flex-1 items-center justify-center p-8",children:u.jsxs("div",{className:"flex flex-col items-center gap-3",children:[u.jsx("div",{className:"size-6 animate-spin rounded-full border-2 border-border-default border-t-phase-planning"}),u.jsx("p",{className:"text-sm text-text-muted",children:"Loading document..."})]})}):t?u.jsxs("div",{className:"relative flex flex-1 flex-col",children:[a&&u.jsx(Pe.div,{className:"absolute right-4 top-2 z-10",initial:{opacity:0,y:-8},animate:{opacity:1,y:0},exit:{opacity:0},children:u.jsx(yn,{variant:"default",className:"bg-phase-planning text-white",children:"Updated"})}),u.jsx(Uh,{content:t.content,size:t.size,lastModified:t.lastModified}),u.jsx(Mh,{filePath:e,content:t.content})]}):u.jsx("div",{className:"flex flex-1 items-center justify-center p-8",children:u.jsx("p",{className:"text-sm text-text-muted",children:"Failed to load document."})}):s?u.jsx(Fh,{description:s.learn.whatItDoes,agentName:s.agent.name,agentRole:s.agent.role,inputs:s.inputs,command:s.command,learn:s.learn}):u.jsx("div",{className:"flex flex-1 items-center justify-center p-8",children:u.jsx("p",{className:"text-sm text-text-muted",children:"No document output found for this workflow."})})}const Kh=tc("/workflow/$workflowId")({component:$h});function $h(){const{workflowId:e}=Kh.useParams();return u.jsx("div",{className:"flex flex-1 items-center justify-center",children:u.jsx(Yh,{workflowId:e})})}export{Kh as Route};