@calmabacus/pi-web 1.1.7 → 1.1.8
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.
- package/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +10 -10
- package/.next/build-manifest.json +2 -2
- package/.next/required-server-files.js +1 -1
- package/.next/required-server-files.json +1 -1
- package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +2 -2
- package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/api/app-update/route.js +1 -1
- package/.next/server/app/api/terminal/[id]/events/route.js +1 -1
- package/.next/server/app/api/terminal/[id]/route.js +1 -1
- package/.next/server/app/api/terminal/route.js +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +4 -4
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/index.segments/_full.segment.rsc +4 -4
- package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/server/app/login.html +1 -1
- package/.next/server/app/login.rsc +3 -3
- package/.next/server/app/login.segments/_full.segment.rsc +3 -3
- package/.next/server/app/login.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +3 -3
- package/.next/server/app/page.js +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +10 -10
- package/.next/server/chunks/2243.js +1 -1
- package/.next/server/chunks/3968.js +1 -1
- package/.next/server/chunks/8759.js +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/static/chunks/1278-5262898cb83459a6.js +1 -0
- package/.next/static/chunks/app/{layout-58b4b00014682160.js → layout-f0135b79d316ca92.js} +1 -1
- package/.next/static/chunks/app/{page-2e5e81259171c08e.js → page-8362a772c48a922e.js} +7 -7
- package/.next/trace +8 -41
- package/.next/trace-build +1 -1
- package/package.json +1 -1
- package/.next/static/chunks/1278-3bbb66253b640b0d.js +0 -1
- /package/.next/static/{tVgAwm8yyQDFPqwIaK7ru → CdvU6b-rJGcGFFwmQZ7QG}/_buildManifest.js +0 -0
- /package/.next/static/{tVgAwm8yyQDFPqwIaK7ru → CdvU6b-rJGcGFFwmQZ7QG}/_ssgManifest.js +0 -0
package/.next/server/app/page.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
${a.cwd}`,style:{display:"flex",alignItems:"center",gap:3,maxWidth:82,color:"var(--text-dim)",flexShrink:1,fontSize:10,fontFamily:"var(--font-mono)",lineHeight:1},children:[(0,s.jsxs)("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",children:[(0,s.jsx)("line",{x1:"6",y1:"3",x2:"6",y2:"15"}),(0,s.jsx)("circle",{cx:"18",cy:"6",r:"3"}),(0,s.jsx)("circle",{cx:"6",cy:"18",r:"3"}),(0,s.jsx)("path",{d:"M18 9a9 9 0 0 1-9 9"})]}),(0,s.jsx)("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:a.branch})]}),o&&(0,s.jsx)("button",{onClick:a=>{a.stopPropagation(),q?.()},title:u(p?"sidebar.expandSubagents":"sidebar.collapseSubagents"),style:{display:"flex",alignItems:"center",justifyContent:"center",width:20,height:20,padding:0,flexShrink:0,background:"none",border:"none",color:"var(--text-dim)",cursor:"pointer",transform:p?"rotate(-90deg)":"none",transition:"transform 0.15s"},children:(0,s.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:(0,s.jsx)("polyline",{points:"2 3.5 5 6.5 8 3.5"})})}),(0,s.jsx)("div",{className:"session-row-meta",style:{display:"flex",alignItems:"center",justifyContent:"flex-end",flexShrink:0,color:"var(--text-dim)",fontSize:11,whiteSpace:"nowrap"},children:c?(0,s.jsx)(ar,{}):d?(0,s.jsx)(as,{}):(0,s.jsx)("span",{title:a.modified,children:(0,F.wA)(a.modified,r)})}),!a.transient&&(0,s.jsxs)("div",{className:"session-row-actions",style:{display:"flex",alignItems:"center",gap:2,position:"absolute",right:6,top:0,height:"100%",background:b?"var(--bg-selected)":v?"var(--bg-hover)":"var(--bg-panel)",paddingLeft:4,borderRadius:4},children:[j&&(0,s.jsx)("button",{type:"button",onClick:a=>{a.stopPropagation(),g?.(),j()},title:u("chatTabs.openInNewTab",{defaultValue:"在新标签页打开"}),"aria-label":u("chatTabs.openInNewTab",{defaultValue:"在新标签页打开"}),style:{display:"flex",alignItems:"center",justifyContent:"center",width:20,height:20,padding:0,background:"transparent",border:"none",borderRadius:4,color:"var(--text-muted)",cursor:"pointer",flexShrink:0,transition:"background 0.12s, color 0.12s"},onMouseEnter:a=>{a.currentTarget.style.background=b?"var(--bg-hover)":"var(--bg-selected)",a.currentTarget.style.color="var(--accent)"},onMouseLeave:a=>{a.currentTarget.style.background="transparent",a.currentTarget.style.color="var(--text-muted)"},children:(0,s.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),(0,s.jsx)("polyline",{points:"15 3 21 3 21 9"}),(0,s.jsx)("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]})}),k&&(0,s.jsx)("button",{type:"button",onClick:a=>{a.stopPropagation(),g?.(),k()},onDoubleClick:a=>a.stopPropagation(),title:u("chatTabs.pinTab",{defaultValue:"固定标签"}),"aria-label":u("chatTabs.pinTab",{defaultValue:"固定标签"}),style:{display:"flex",alignItems:"center",justifyContent:"center",width:20,height:20,padding:0,background:"transparent",border:"none",borderRadius:4,color:"var(--text-muted)",cursor:"pointer",flexShrink:0,transition:"background 0.12s, color 0.12s"},onMouseEnter:a=>{a.currentTarget.style.background=b?"var(--bg-hover)":"var(--bg-selected)",a.currentTarget.style.color="var(--accent)"},onMouseLeave:a=>{a.currentTarget.style.background="transparent",a.currentTarget.style.color="var(--text-muted)"},children:(0,s.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("line",{x1:"12",y1:"17",x2:"12",y2:"22"}),(0,s.jsx)("path",{d:"M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z"})]})}),(0,s.jsx)("button",{onClick:a=>{g?.(),S(a)},title:u("sidebar.rename"),style:{display:"flex",alignItems:"center",justifyContent:"center",width:20,height:20,padding:0,background:"transparent",border:"none",borderRadius:4,color:"var(--text-muted)",cursor:"pointer",flexShrink:0,transition:"background 0.12s, color 0.12s"},onMouseEnter:a=>{a.currentTarget.style.background=b?"var(--bg-hover)":"var(--bg-selected)",a.currentTarget.style.color="var(--accent)"},onMouseLeave:a=>{a.currentTarget.style.background="transparent",a.currentTarget.style.color="var(--text-muted)"},children:(0,s.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,s.jsx)("path",{d:"M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"})})}),(0,s.jsx)("button",{onClick:a=>{g?.(),V(a)},title:u("sidebar.deleteWithShiftClick"),style:{display:"flex",alignItems:"center",justifyContent:"center",width:20,height:20,padding:0,background:"transparent",border:"none",borderRadius:4,color:"var(--text-muted)",cursor:"pointer",flexShrink:0,transition:"background 0.12s, color 0.12s"},onMouseEnter:a=>{a.currentTarget.style.background="rgba(239,68,68,0.12)",a.currentTarget.style.color="#ef4444"},onMouseLeave:a=>{a.currentTarget.style.background="transparent",a.currentTarget.style.color="var(--text-muted)"},children:(0,s.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("polyline",{points:"3 6 5 6 21 6"}),(0,s.jsx)("path",{d:"M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"}),(0,s.jsx)("path",{d:"M10 11v6M14 11v6"}),(0,s.jsx)("path",{d:"M9 6V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2"})]})})]})]})})}function au({src:a,alt:b="",children:c,className:d,style:e}){let{t:f}=(0,G.s)(),[g,h]=(0,t.useState)(!1),i=(0,t.useRef)(null),j=(0,t.useRef)(null),k=(0,t.useRef)(null),l=()=>{j.current?.open&&j.current.close(),h(!1)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{ref:i,type:"button",className:d,style:{display:"block",padding:0,border:"none",background:"none",color:"inherit",cursor:"zoom-in",...e},onClick:()=>h(!0),"aria-label":f("chat.previewImage"),"aria-haspopup":"dialog","aria-expanded":g,title:f("chat.previewImage"),children:c}),g&&(0,s.jsxs)("dialog",{ref:j,className:"image-preview-dialog","aria-label":f("chat.previewImage"),onCancel:a=>{a.preventDefault(),a.stopPropagation(),l()},onKeyDown:a=>{"Escape"===a.key&&(a.preventDefault(),a.stopPropagation(),l())},onClick:a=>{a.target===a.currentTarget&&l()},children:[(0,s.jsx)("img",{className:"image-preview-image",src:a,alt:b}),(0,s.jsx)("button",{ref:k,type:"button",className:"image-preview-close",onClick:l,"aria-label":f("chat.close"),title:f("chat.close"),children:(0,s.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M6 6l12 12M18 6 6 18"})})})]})]})}let av="pi-image-result",aw=[{model:"gpt-image-2.5-flare",label:"Flare"},{model:"gpt-image-2.5-sunburst",label:"Sunburst"},{model:"grok-imagine-image-2.0",label:"Grok"}],ax=["1:1","16:9","9:16","4:3","3:4","3:2","2:3"];function ay(a,b){let c=Math.abs(a),d=Math.abs(b);for(;d;){let a=c%d;c=d,d=a}return`${a/c}:${b/c}`}let az=/@"([^"]+)"|@([^\s"]+)/g,aA=/\.(?:png|jpe?g|webp)$/i;function aB(a){return"object"==typeof a&&null!==a&&!Array.isArray(a)}function aC(a){if(!aB(a)||![av,"pi-web:image"].includes(a.type)||1!==a.version)return null;let b=a.type===av;return!("string"!=typeof a.path||!a.path||b&&(!a.path.startsWith(".pi/generated-images/")||a.path.split(/[\\/]/).includes("..")))&&"string"==typeof a.mimeType&&a.mimeType.startsWith("image/")&&"string"==typeof a.prompt&&a.prompt&&"string"==typeof a.connection&&a.connection&&(void 0===a.label||"string"==typeof a.label&&a.label)&&"string"==typeof a.model&&a.model&&"number"==typeof a.width&&Number.isSafeInteger(a.width)&&!(a.width<=0)&&"number"==typeof a.height&&Number.isSafeInteger(a.height)&&!(a.height<=0)&&(void 0===a.size||"string"==typeof a.size)&&(void 0===a.resolution||"string"==typeof a.resolution)&&(void 0===a.quality||"string"==typeof a.quality)&&(void 0===a.source||"string"==typeof a.source)?{...a,type:av}:null}function aD(a,b,c){if("generate_image"!==a)return null;let d=aC(c);return d?d.source?"edit":"generate":aB(b)&&!0===b.new_image?"generate":aB(b)&&("string"==typeof b.target&&b.target||!0===b.use_last_attachment)?"edit":null}function aE(a,b){return`/api/files/${I(a)}?type=${b}`}function aF(a,b){return a.startsWith("/")||/^[a-zA-Z]:[\\/]/.test(a)?a:b?M(b,a):a}function aG({path:a,cwd:b,onRemove:c}){let{t:d}=(0,G.s)(),e=aE(aF(a,b),"read");return(0,s.jsxs)("span",{className:"relative inline-block shrink-0 overflow-hidden rounded-md border border-border align-middle",style:{width:56,height:56},children:[(0,s.jsx)("img",{src:e,alt:"",className:"block h-full w-full object-cover"}),c?(0,s.jsx)("button",{type:"button",onClick:c,className:"absolute right-0.5 top-0.5 flex h-4 w-4 items-center justify-center rounded-full border-0 bg-black/55 text-white","aria-label":d("i18n.close"),children:(0,s.jsx)("svg",{width:"8",height:"8",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M18 6 6 18M6 6l12 12"})})}):null]})}function aH(a,b){return{aspectRatio:`${a} / ${b}`,width:`min(100%, calc(28rem * ${a/b}))`}}function aI({value:a,cwd:b,onEdit:c,onMention:d,showPrompt:e=!1,createdAt:f}){let g,h,i,j,{t:k,locale:l}=(0,G.s)(),m=aC(a),[n,o]=(0,t.useState)(!1);if(!m)return null;let p=aF(m.path,b),q=aE(p,"read"),r=(i=[(g=function(a,b){if(a<=0||b<=0)return ay(a,b);let c=a/b,d=ax[0],e=1/0;for(let a of ax){let[b,f]=a.split(":").map(Number),g=Math.abs(c-b/f)/(b/f);g<e&&(d=a,e=g)}return e<=.03?d:ay(a,b)}(m.width,m.height),h=`${m.width}\u00d7${m.height}`,g===`${m.width}:${m.height}`?h:`${g}(${h})`)],m.resolution&&i.push(m.resolution.toUpperCase()),(j="low"===m.quality?k("image.qualityLow"):"medium"===m.quality?k("image.qualityMedium"):"high"===m.quality?k("image.qualityHigh"):"auto"===m.quality?k("image.qualityAuto"):m.quality)&&i.push(j),i.join(" \xb7 ")),u=[m.label?m.label:m.model.includes("sunburst")?"Sunburst":m.model.includes("flare")?"Flare":m.model.includes("grok-imagine")?"Grok":m.model.includes("flash-image")?"Banana 2":m.model,f?function(a,b){let c=new Date(a),d=new Date,e=c.toLocaleTimeString(b,{hour:"2-digit",minute:"2-digit",hour12:!1});if(c.getFullYear()===d.getFullYear()&&c.getMonth()===d.getMonth()&&c.getDate()===d.getDate())return e;let f=c.toLocaleDateString(b,{month:"short",day:"numeric",year:c.getFullYear()!==d.getFullYear()?"numeric":void 0});return`${f} ${e}`}(f,l):void 0].filter(Boolean).join(" \xb7 ");return(0,s.jsxs)("article",{className:"mb-3 mt-2 w-fit max-w-full",children:[(0,s.jsxs)("div",{className:"relative max-w-full overflow-hidden rounded-[10px] border border-border/80 bg-bg-panel",style:aH(m.width,m.height),children:[n?(0,s.jsx)("div",{className:"flex h-full min-h-28 items-center justify-center px-4 text-xs text-text-muted",children:k("chat.imagePreviewUnavailable")}):(0,s.jsx)(au,{src:q,alt:m.prompt,className:"block h-full w-full",children:(0,s.jsx)("img",{src:q,alt:m.prompt,loading:"lazy",onError:()=>o(!0),className:"block h-full w-full object-cover"})}),(0,s.jsx)("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 flex justify-end p-2",children:(0,s.jsxs)("div",{className:"pointer-events-auto flex items-center rounded-full bg-black/50 p-0.5 text-white backdrop-blur-sm",children:[c?(0,s.jsx)("button",{type:"button",onClick:a=>{a.stopPropagation(),c(m)},title:k("image.edit"),className:"h-7 rounded-full px-2.5 text-[11px] font-medium tracking-wide text-white/95 hover:bg-white/15",children:k("image.edit")}):null,c?(0,s.jsx)("span",{className:"mx-0.5 h-3 w-px bg-white/25","aria-hidden":"true"}):null,d?(0,s.jsx)("button",{type:"button",onClick:a=>{a.stopPropagation(),d(m.path)},title:k("image.quote"),"aria-label":k("image.quote"),className:"inline-flex h-7 w-7 items-center justify-center rounded-full text-white/95 hover:bg-white/15",children:(0,s.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M9 17 4 12l5-5"}),(0,s.jsx)("path",{d:"M20 18v-2a4 4 0 0 0-4-4H4"})]})}):null,(0,s.jsx)("a",{href:aE(p,"download"),download:!0,title:k("i18n.downloadFile"),"aria-label":k("i18n.downloadFile"),onClick:a=>a.stopPropagation(),className:"inline-flex h-7 w-7 items-center justify-center rounded-full text-white/95 hover:bg-white/15",children:(0,s.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,s.jsx)("path",{d:"m7 10 5 5 5-5M12 15V3"})]})})]})})]}),e&&m.prompt?(0,s.jsx)("p",{className:"mt-1.5 line-clamp-3 text-[12px] leading-snug text-text-muted",title:m.prompt,children:m.prompt}):null,r||u?(0,s.jsxs)("div",{className:`${e&&m.prompt?"mt-1":"mt-1.5"} max-w-full text-[11px] leading-snug tracking-wide text-text-muted`,title:m.model,children:[r,r&&u?" \xb7 ":null,u]}):null]})}function aJ({prompt:a,size:b,width:c,height:d,previewUrl:e}){let{t:f}=(0,G.s)(),{w:g,h}=function(a,b){if(a&&"auto"!==a){let b=/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?)$/.exec(a.trim());if(b)return{w:Number(b[1]),h:Number(b[2])};let c=/^(\d+)x(\d+)$/.exec(a.trim());if(c)return{w:Number(c[1]),h:Number(c[2])}}return b?.width&&b.height?{w:b.width,h:b.height}:{w:1,h:1}}(b,{width:c,height:d});return(0,s.jsxs)("article",{className:"mb-3 mt-2 w-fit max-w-full",children:[(0,s.jsxs)("div",{role:"status","aria-label":f("image.generating"),className:"relative max-w-full overflow-hidden rounded-[10px] border border-border/80 bg-bg-panel",style:aH(g,h),children:[e?(0,s.jsx)("img",{src:e,alt:"",className:"absolute inset-0 h-full w-full object-cover opacity-35"}):null,(0,s.jsx)("div",{className:"image-pending-sheen","aria-hidden":"true"})]}),a?(0,s.jsx)("p",{className:"mt-1.5 line-clamp-3 text-[12px] leading-snug text-text-muted",children:a}):null]})}let aK=["off","minimal","low","medium","high","xhigh","max"],aL=RegExp(`:(${aK.join("|")})$`),aM=new Map;function aN(a){return`pi-chat-draft:${encodeURIComponent(a)}`}function aO(){try{return null}catch{return null}}function aP(a){return{value:a.value,images:a.images.map(a=>({...a}))}}function aQ(a){return!a.value&&0===a.images.length}function aR(a){let b=aM.get(a)??function(a){try{let b=aO()?.getItem(aN(a));if(!b)return null;let c=JSON.parse(b);if("string"!=typeof c.value||!Array.isArray(c.images)||!c.images.every(a=>"string"==typeof a?.data&&"string"==typeof a?.mimeType))return null;return aP(c)}catch{return null}}(a);return b&&!aM.has(a)&&aM.set(a,b),b?aP(b):null}function aS(a,b){if(aQ(b))return aT(a),!0;let c=aP(b);aM.set(a,c);let d=aO();if(!d)return!1;try{return d.setItem(aN(a),JSON.stringify(c)),!0}catch{return d.removeItem(aN(a)),!1}}function aT(a){aM.delete(a);try{aO()?.removeItem(aN(a))}catch{}}function aU(a,b){return a.trim()?b.trim()?`${a}
|
|
3
3
|
|
|
4
4
|
${b}`:a:b}function aV(a){return{data:a.data,mimeType:a.mimeType}}function aW(a,b,c,d){return{value:aU(a,c),images:[...b??[],...d].map(aV)}}function aX(a,b,c){if(a===b)return c?aP(c):aR(b);let d=aR(a),e=c&&!aQ(c)?aP(c):d??(c?aP(c):null),f=aR(b);if(aT(a),!e)return f;let g=f?aW(f.value,f.images,e.value,e.images):e;return aS(b,g),aP(g)}function aY(a){let b=/(?:^|\s)@"([^"\n]*)$/.exec(a);if(b)return{start:a.length-(b[1].length+2),query:b[1],quoted:!0};let c=/(?:^|\s)@([^\s"]*)$/.exec(a);return c?{start:a.length-(c[1].length+1),query:c[1],quoted:!1}:null}function aZ(a){let b=0;for(let c=0;c<a.length;c++)"/"===a[c]&&b++;return b}function a$(a,b){if(!a)return!0;let c=0;for(let d=0;d<b.length&&c<a.length;d++)b[d]===a[c]&&c++;return c===a.length}function a_(a,b){let c=b?`${a}/`:a;return c.includes(" ")?`@"${c}" `:`@${c} `}function a0({active:a,size:b=14,className:c,style:d}){return(0,s.jsxs)("svg",{width:b,height:b,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:c,style:{flexShrink:0,color:a?"var(--accent)":"currentColor",display:"block",...d},children:[(0,s.jsx)("path",{d:"M9.5 4a3.5 3.5 0 0 0-3.5 3.5c0 .34.05.67.14.98A4 4 0 0 0 4 12c0 1.9 1.3 3.5 3.1 3.9A3.5 3.5 0 0 0 10.5 19h1"}),(0,s.jsx)("path",{d:"M14.5 4a3.5 3.5 0 0 1 3.5 3.5c0 .34-.05.67-.14.98A4 4 0 0 1 20 12c0 1.9-1.3 3.5-3.1 3.9A3.5 3.5 0 0 1 13.5 19h-1"}),(0,s.jsx)("path",{d:"M12 4v16"})]})}let a1=a=>()=>{},a2=()=>!1;function a3(){return!1}function a4(){return(0,t.useSyncExternalStore)(a1,a2,a3)}let a5={width:820,fontSize:14},a6=new Set;function a7(){return a5}function a8(a){return a6.add(a),()=>{a6.delete(a)}}function a9(a,b){let c,d,e="width"===a?Number.isFinite(c=Number(b))?Math.max(820,Math.min(2e3,Math.round(c))):820:Number.isFinite(d=Number(b??14))?Math.max(12,Math.min(24,Math.round(d))):14;!function({width:a,fontSize:b}){"u">typeof document&&(document.documentElement.style.setProperty("--chat-content-max-width",`${a}px`),document.documentElement.style.setProperty("--chat-content-font-size",`${b}px`))}({...a7(),[a]:e});try{window.localStorage.setItem("width"===a?"pi-chat-content-width":"pi-chat-content-font-size",String(e))}catch{}a6.forEach(a=>a())}let ba=a=>a9("width",a),bb=a=>a9("fontSize",a);function bc(){return{...(0,t.useSyncExternalStore)(a8,a7,()=>a5),setWidth:ba,setFontSize:bb}}var bd=c(29947);function be(a,b){if(null==a||Number.isNaN(a))return"?";if(a<=0)return"0";if(a<1e3)return String(a);if(a>=1e6){let b=Math.round(a/1e6*100)/100;return`${b}M`}let c=a/1e3;if(c<10){let a=Math.round(10*c)/10;return`${a}k`}return`${Math.round(c).toLocaleString(b)}k`}let bf=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});function bg(a,b){return bf.compare(a.name||a.modelId,b.name||b.modelId)||bf.compare(a.provider,b.provider)||bf.compare(a.modelId,b.modelId)}function bh({options:a,value:b,onChange:c,onClear:d,emptyLabel:e,selectedLabel:f,disabled:g=!1,busy:h=!1,isAutoSelection:i=!1,ariaLabel:j,variant:k="toolbar",placement:l="up"}){let m,n,o,p,q,r,u,v,w=a4(),x=(0,t.useRef)(null),y=(0,t.useRef)(null),z=(0,t.useRef)(null),A=(0,t.useId)(),[B,C]=(0,t.useState)(!1),[D,E]=(0,t.useState)(0),[F,G]=(0,t.useState)(null),H=g||h,I=(0,t.useMemo)(()=>[...a].sort(bg),[a]),J=[];for(let a of I){let b=J.find(b=>b.provider===a.provider);b?b.options.push(a):J.push({provider:a.provider,options:[a]})}let K=f??(b?I.find(a=>a.modelId===b.modelId&&a.provider===b.provider)?.name??b.modelId:e??(I.length>0?"Select model":"No models")),L=(0,t.useMemo)(()=>d?[null,...I]:I,[d,I]),M=L.findIndex(a=>null!==a?a.modelId===b?.modelId&&a.provider===b?.provider:!b),N=L.length?Math.min(D,L.length-1):0,O=L.length?`${A}-option-${N}`:void 0,P=(0,t.useCallback)(()=>{let a=y.current?.getBoundingClientRect();a&&G({top:a.top,right:a.right,bottom:a.bottom,left:a.left,width:a.width})},[]),Q="field"===k?{display:"flex",alignItems:"center",gap:7,width:"100%",minWidth:0,height:34,padding:"0 9px",overflow:"hidden",border:"1px solid var(--border)",borderRadius:4,background:H?"var(--bg-panel)":"var(--bg)",color:H?"var(--text-dim)":"var(--text)",cursor:H?"default":"pointer",fontSize:12,textAlign:"left"}:{display:"flex",alignItems:"center",justifyContent:"flex-start",textAlign:"left",gap:6,width:void 0,maxWidth:220,height:w?32:28,padding:"0 4px",overflow:"visible",border:"none",borderRadius:4,background:B?"var(--bg-hover)":"none",color:"var(--text-muted)",cursor:H?"not-allowed":"pointer",fontSize:12,lineHeight:1.25,opacity:H?.5:1,transition:"background 0.12s, color 0.12s"},R=a=>{let d=a.modelId===b?.modelId&&a.provider===b?.provider;C(!1),(!d||i)&&c(a.provider,a.modelId)};return(0,s.jsxs)("div",{ref:x,className:`model-selector is-${k}${H?" is-disabled":""}`,style:{position:"relative",width:"field"===k?"100%":void 0,minWidth:0,display:"toolbar"===k?"flex":void 0,alignItems:"toolbar"===k?"center":void 0},onKeyDown:a=>{"Escape"===a.key&&B&&(a.preventDefault(),a.stopPropagation(),C(!1))},children:[(0,s.jsxs)("button",{ref:y,type:"button",role:"combobox","aria-label":j,"aria-haspopup":"listbox","aria-controls":A,"aria-activedescendant":B?O:void 0,"aria-expanded":B,onKeyDown:a=>{if("Escape"===a.key&&B){a.preventDefault(),C(!1);return}if("ArrowDown"===a.key||"ArrowUp"===a.key){if(a.preventDefault(),!B){P(),E(M>=0?M:0),C(!0);return}let b="ArrowDown"===a.key?1:-1;E(a=>L.length?(a+b+L.length)%L.length:0);return}if(B&&L.length){if("Home"===a.key||"End"===a.key)a.preventDefault(),E("Home"===a.key?0:L.length-1);else if("Enter"===a.key||" "===a.key){a.preventDefault();let b=L[N];null===b?(C(!1),d?.()):b&&R(b)}}},"aria-busy":h||void 0,disabled:H,title:h?"Switching model":H?K:I.length>0||d?"Change model":"No available models",style:Q,onClick:()=>{P(),C(a=>!a)},onMouseEnter:a=>{H||w&&"toolbar"===k||(a.currentTarget.style.background="var(--bg-hover)",a.currentTarget.style.color="var(--text)")},onMouseLeave:a=>{if(H){a.currentTarget.style.background="field"===k?"var(--bg-panel)":"none",a.currentTarget.style.color="field"===k?"var(--text-dim)":"var(--text-muted)";return}w&&"toolbar"===k||(a.currentTarget.style.background=B?"var(--bg-hover)":"field"===k?"var(--bg)":"none",a.currentTarget.style.color="field"===k?"var(--text)":"var(--text-muted)")},children:[h?(0,s.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",style:{animation:"spin 0.8s linear infinite",display:"block",flexShrink:0,transform:"translateY(-1px)"},"aria-hidden":"true",children:(0,s.jsx)("path",{d:"M21 12a9 9 0 1 1-2.64-6.36"})}):"field"===k?(0,s.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{display:"block",flexShrink:0},children:[(0,s.jsx)("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2"}),(0,s.jsx)("rect",{x:"9",y:"9",width:"6",height:"6"}),(0,s.jsx)("line",{x1:"9",y1:"1",x2:"9",y2:"4"}),(0,s.jsx)("line",{x1:"15",y1:"1",x2:"15",y2:"4"}),(0,s.jsx)("line",{x1:"9",y1:"20",x2:"9",y2:"23"}),(0,s.jsx)("line",{x1:"15",y1:"20",x2:"15",y2:"23"}),(0,s.jsx)("line",{x1:"20",y1:"9",x2:"23",y2:"9"}),(0,s.jsx)("line",{x1:"20",y1:"14",x2:"23",y2:"14"}),(0,s.jsx)("line",{x1:"1",y1:"9",x2:"4",y2:"9"}),(0,s.jsx)("line",{x1:"1",y1:"14",x2:"4",y2:"14"})]}):null,(0,s.jsx)("span",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",lineHeight:1.25},children:K}),"field"===k&&(0,s.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{flexShrink:0,color:"var(--text-dim)"},children:(0,s.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),B&&F&&(m=window.visualViewport?.height??window.innerHeight,n=window.visualViewport?.width??window.innerWidth,o=F.top-8,p=m-F.bottom-8,r=Math.max(120,Math.min((q="up"===l||o>p)?o:p,.6*m)),u=q?{bottom:m-F.top+6}:{top:F.bottom+6},v=w?{left:8,right:8,maxWidth:"calc(100vw - 16px)"}:{left:F.left,width:"max-content",minWidth:F.width,maxWidth:Math.max(F.width,n-F.left-8)},(0,s.jsx)("div",{ref:z,id:A,role:"listbox","aria-label":j,"aria-activedescendant":O,style:{position:"fixed",...u,...v,zIndex:500,display:"flex",flexDirection:"column",maxHeight:r,overflow:"hidden",border:"1px solid var(--border)",borderRadius:4,background:"var(--bg)",boxShadow:q?"0 -4px 16px rgba(0,0,0,0.10)":"0 4px 16px rgba(0,0,0,0.10)"},children:(0,s.jsxs)("div",{style:{minHeight:0,overflowY:"auto"},children:[d&&(0,s.jsx)(bi,{id:`${A}-option-0`,active:!b,highlighted:0===N,label:e??"Default",onActive:()=>E(0),onClick:()=>{C(!1),d()}}),0===J.length?(0,s.jsx)("div",{style:{padding:"8px 12px",color:"var(--text-dim)",fontSize:12,whiteSpace:"nowrap"},children:"No available models"}):J.map((a,c)=>(0,s.jsxs)("div",{children:[J.length>1&&(0,s.jsx)("div",{style:{padding:"6px 12px 4px",borderTop:c>0||d?"1px solid var(--border)":"none",color:"var(--text-dim)",fontSize:10,fontWeight:600,letterSpacing:0,textTransform:"uppercase"},children:a.provider}),a.options.map(a=>(0,s.jsx)(bi,{id:`${A}-option-${L.indexOf(a)}`,active:a.modelId===b?.modelId&&a.provider===b?.provider,highlighted:N===L.indexOf(a),label:a.name,onActive:()=>E(L.indexOf(a)),onClick:()=>R(a)},`${a.provider}:${a.modelId}`))]},a.provider))]})}))]})}function bi({id:a,active:b,highlighted:c,label:d,onActive:e,onClick:f}){return(0,s.jsxs)("button",{id:a,type:"button",role:"option","aria-selected":b,"data-active":c||void 0,onClick:f,style:{display:"flex",alignItems:"center",gap:8,width:"100%",padding:"7px 12px",border:"none",background:b?"var(--bg-selected)":c?"var(--bg-hover)":"none",color:b?"var(--text)":"var(--text-muted)",cursor:"pointer",fontSize:12,fontWeight:b?600:400,textAlign:"left",whiteSpace:"nowrap"},onMouseEnter:a=>{e?.(),b||(a.currentTarget.style.background="var(--bg-hover)")},onMouseLeave:a=>{b||(a.currentTarget.style.background="none")},children:[b?(0,s.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",stroke:"var(--accent)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0},"aria-hidden":"true",children:(0,s.jsx)("polyline",{points:"1.5 5 4 7.5 8.5 2.5"})}):(0,s.jsx)("span",{style:{width:10,flexShrink:0}}),(0,s.jsx)("span",{title:d,style:{minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},children:d})]})}let bj=["configured","chat-only","read-only","default","full"],bk={configured:bd.Q8,"chat-only":"none","read-only":"read-only",default:"default",full:"full"},bl=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});function bm(a,b){let c=null,d=()=>{c=null,b(function(a,b,c=8){return Math.max(0,Math.floor(a-b-c))}(a.getBoundingClientRect().bottom,function(a){let b=window.visualViewport?.offsetTop??0;for(let c=a.parentElement;c;c=c.parentElement){let a=window.getComputedStyle(c).overflowY;("auto"===a||"scroll"===a||"hidden"===a||"clip"===a)&&(b=Math.max(b,c.getBoundingClientRect().top+c.clientTop))}return b}(a)))},e=()=>{null!==c&&cancelAnimationFrame(c),c=requestAnimationFrame(d)};d();let f=a.parentElement,g=f?.parentElement,h="u">typeof ResizeObserver&&f?new ResizeObserver(e):null;f&&h?.observe(f),g&&h?.observe(g);let i=window.visualViewport;return i?.addEventListener("resize",e),i?.addEventListener("scroll",e),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),()=>{h?.disconnect(),i?.removeEventListener("resize",e),i?.removeEventListener("scroll",e),window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0),null!==c&&cancelAnimationFrame(c)}}let bn=["auto",...aK],bo={auto:"chat.thinkingUseDefault",off:"chat.thinkingOff",minimal:"chat.thinkingMinimal",low:"chat.thinkingLow",medium:"chat.thinkingMedium",high:"chat.thinkingHigh",xhigh:"chat.thinkingXhigh",max:"chat.thinkingMax"},bp=[{name:"compact",description:"chat.commandCompact",source:"builtin"},{name:"reload",description:"chat.commandReload",source:"builtin"},{name:"name",description:"chat.commandName",source:"builtin"},{name:"session",description:"chat.commandSession",source:"builtin",availableWhileStreaming:!0},{name:"copy",description:"chat.commandCopy",source:"builtin",availableWhileStreaming:!0},{name:"clone",description:"chat.commandClone",source:"builtin"},{name:"bug",description:"chat.commandBug",source:"builtin"},{name:"auto-compact",description:"chat.commandAutoCompact",source:"builtin"}];function bq(a){return function(a){let b=a.trim().match(/^\/([^\s]+)(?:\s|$)/);if(b)return bp.find(a=>a.name===b[1])}(a)?.availableWhileStreaming===!0}function br(a,b){return`${b.map(a=>a_(a,!1)).join("")}${a.trim()}`.trim()}let bs=["builtin","extension","prompt","skill"],bt={builtin:"chat.builtIn",extension:"chat.extensions",prompt:"chat.prompts",skill:"chat.skills"},bu={builtin:0,extension:1,prompt:2,skill:3};function bv(a,b,c){let d=a.name.toLowerCase(),e=bw(a,c).toLowerCase();return d===b?0:d.startsWith(b)?1:d.includes(b)?2:e.includes(b)?3:4}function bw(a,b){return"builtin"===a.source?b(a.description):a.description??""}function bx(a,b){requestAnimationFrame(()=>{let c=a.current;c&&(c.focus(),c.setSelectionRange(b,b))})}let by={name:"<session-title>",session:"[session-id]",clone:"[new-title]"};function bz(a,b){return"skill"===a.source&&!!a.name.startsWith("skill:")&&!0===b[a.name.slice(6)]}async function bA(a){let b=()=>{var b;return b=a.type,new Promise((c,d)=>{let e=new FileReader;e.onload=()=>{let a="string"==typeof e.result?e.result.split(",")[1]:void 0;a?c({data:a,mimeType:b}):d(Error("Failed to read image"))},e.onerror=d,e.readAsDataURL(a)})};if(!(a.size>1048576&&"image/gif"!==a.type)||"function"!=typeof createImageBitmap)return b();let c=await createImageBitmap(a).catch(()=>null);if(!c)return b();try{let d=Math.min(1,1024/Math.max(c.width,c.height)),e=document.createElement("canvas");e.width=Math.max(1,Math.round(c.width*d)),e.height=Math.max(1,Math.round(c.height*d));let f=e.getContext("2d");if(!f)return b();f.fillStyle="#fff",f.fillRect(0,0,e.width,e.height),f.drawImage(c,0,0,e.width,e.height);let g=e.toDataURL("image/jpeg",.85).split(",")[1];return g&&g.length<4*Math.ceil(a.size/3)?{data:g,mimeType:"image/jpeg"}:b()}catch{return b()}finally{c.close()}}function bB(a){return{data:a.data,mimeType:a.mimeType}}function bC(a){return{...a,previewUrl:`data:${a.mimeType};base64,${a.data}`}}function bD(a){return(a??[]).map(bC)}function bE(a){a.previewUrl.startsWith("blob:")&&URL.revokeObjectURL(a.previewUrl)}function bF({kind:a,text:b}){return(0,s.jsxs)("div",{title:b,style:{display:"flex",alignItems:"center",gap:8,padding:"3px 10px",fontSize:12,color:"var(--text-muted)",minWidth:0},children:[(0,s.jsx)("span",{style:{flexShrink:0,fontSize:10,fontFamily:"var(--font-mono)",padding:"1px 7px",borderRadius:4,border:`1px solid ${"steer"===a?"color-mix(in srgb, var(--accent) 45%, transparent)":"var(--border)"}`,color:"steer"===a?"var(--accent)":"var(--text-dim)"},children:a}),(0,s.jsx)("span",{style:{minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:b})]})}function bG({tone:a,title:b,body:c,onClose:d}){let e="error"===a?"239,68,68":"234,179,8";return(0,s.jsxs)("div",{role:"alert",style:{display:"flex",alignItems:"flex-start",gap:8,maxHeight:120,marginBottom:8,padding:"7px 10px",overflowY:"auto",border:`1px solid rgba(${e},0.3)`,borderRadius:4,background:`rgba(${e},0.07)`,color:`rgb(${e})`,fontSize:11,lineHeight:1.45},children:[(0,s.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0,marginTop:1},"aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M10.3 2.9 1.8 17a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 2.9a2 2 0 0 0-3.4 0Z"}),(0,s.jsx)("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),(0,s.jsx)("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}),(0,s.jsxs)("div",{style:{minWidth:0,flex:1},children:[(0,s.jsx)("div",{style:{fontWeight:600},children:b}),(0,s.jsx)("div",{style:{whiteSpace:"pre-wrap",overflowWrap:"anywhere"},children:c})]}),d&&(0,s.jsx)("button",{type:"button",onClick:d,"aria-label":"Dismiss",style:{flexShrink:0,background:"none",border:"none",padding:"0 2px",cursor:"pointer",color:"inherit",opacity:.7,fontSize:13,lineHeight:1},children:"\xd7"})]})}function bH({error:a}){let{t:b}=(0,G.s)();return a?(0,s.jsx)(bG,{tone:"error",title:b("chat.modelError"),body:a}):null}function bI({warnings:a}){let{t:b}=(0,G.s)();return a&&0!==a.length?(0,s.jsx)(bG,{tone:"warning",title:b(a.length>1?"chat.modelScopeWarnings":"chat.modelScopeWarning"),body:a.join("\n")}):null}let bJ=(0,t.forwardRef)(function({onSend:a,onOpenImageGeneration:b,onAbort:c,onSteer:d,onFollowUp:e,isStreaming:f,disabled:g=!1,model:h,isAutoModelSelection:i,modelNames:j,modelList:k,modelError:l,modelScopeWarnings:m,onModelChange:n,modelSwitching:o,onCompact:p,onAbortCompaction:q,isCompacting:r,compactError:v,compactResult:w,toolPreset:x,onToolPresetChange:y,contextUsage:z,cacheHitRate:A,onOpenSessionStats:B,thinkingLevel:C,onThinkingLevelChange:D,availableThinkingLevels:E,thinkingLevelMap:F,retryInfo:H,queuedMessages:I,inputHistory:J=[],onRecallQueue:K,slashCommands:L,slashCommandsLoading:M,onLoadSlashCommands:N,onBuiltinCommand:O,soundEnabled:P,onSoundToggle:Q,onAudioUnlock:R,onPromptWithStreamingBehavior:S,draftKey:U,onDraftChange:V,draftPersistenceWarning:X=!1,cwd:Y,compact:Z=!1},$){let _,aa,ab,ac,ad,ae,af,ag,ah,{t:ai}=(0,G.s)(),{fontSize:aj}=bc(),ak=a4(),al=(0,t.useId)(),[am,an]=(0,t.useState)(()=>U?aR(U)?.value??"":""),[ao,ap]=(0,t.useState)(!1),[aq,ar]=(0,t.useState)(!1),[as,at]=(0,t.useState)(!1),[au,av]=(0,t.useState)(!1),[aw,ax]=(0,t.useState)(!1),[ay,az]=(0,t.useState)([]),aA=(0,t.useRef)([]);aA.current=ay;let[aB,aC]=(0,t.useState)(()=>U?bD(aR(U)?.images):[]),aD=am.trimStart(),aE=0===aB.length&&aD.startsWith("!"),aF=aE&&aD.startsWith("!!"),[aH,aI]=(0,t.useState)(!1),[aJ,aK]=(0,t.useState)(null),[aL,aM]=(0,t.useState)(0),[aN,aO]=(0,t.useState)(null),[aP,aQ]=(0,t.useState)(null),[aV,a_]=(0,t.useState)(!1),[a1,a2]=(0,t.useState)(null),[a3,a5]=(0,t.useState)(0),[a6,a7]=(0,t.useState)(!1),[a8,a9]=(0,t.useState)(!1),[ba,bb]=(0,t.useState)(!1),[bf,bg]=(0,t.useState)(0),bi=(0,t.useRef)(null),[bC,bJ]=(0,t.useState)(!1),[bK,bL]=(0,t.useState)(null),[bM,bN]=(0,t.useState)(!1),[bO,bP]=(0,t.useState)(null),[bQ,bR]=(0,t.useState)(null),bS=Y&&bQ?.cwd===Y?bQ.values:{},bT=(0,t.useRef)(null),bU=(0,t.useRef)(null),bV=(0,t.useRef)(null),bW=(0,t.useRef)(null),bX=(0,t.useRef)(null),bY=(0,t.useRef)(null),bZ=(0,t.useRef)(null),b$=(0,t.useRef)(null),b_=(0,t.useRef)(null),b0=(0,t.useRef)(null),b1=(0,t.useRef)(!1),b2=(0,t.useRef)(0),b3=(0,t.useRef)(!1),b4=(0,t.useRef)(null),b5=(0,t.useRef)([]),b6=(0,t.useRef)(null),b7=(0,t.useRef)([]),b8=(0,t.useRef)(!1),b9=(0,t.useRef)([]),ca=(0,t.useRef)(null),cb=(0,t.useRef)(null),cc=(0,t.useRef)(0),cd=(0,t.useRef)(U),ce=(0,t.useRef)(am),cf=(0,t.useRef)(aB),cg=(0,t.useRef)(0);ce.current=am,cf.current=aB,(0,t.useImperativeHandle)($,()=>({insertIfEmpty(a){let b=bT.current;(b?b.value:am).trim()||(ce.current=a,an(a),aQ(null),requestAnimationFrame(()=>{b&&b.focus()}))},replaceMessage(a){var b,c,d;let e=bT.current;if(b=e?e.value:am,c=cf.current.length,d=cg.current,b.trim()||0!==c||0!==d)return;let f="string"==typeof a.content?a.content:a.content.filter(a=>"text"===a.type).map(a=>a.text).join("\n"),g=bD("string"==typeof a.content?[]:a.content.flatMap(a=>{if("image"!==a.type)return[];let b=a.source?.type==="base64"?a.source.data:a.data,c=a.source?.type==="base64"?a.source.media_type:a.mimeType;if("string"!=typeof b||"string"!=typeof c)return[];let d={data:b,mimeType:c};return!function(a){if(!a||"object"!=typeof a||"string"!=typeof a.data||"string"!=typeof a.mimeType||!a.mimeType.startsWith("image/"))return!1;let b=function(a){if(!a||a.length%4!=0)return null;let b=a.endsWith("==")?2:+!!a.endsWith("="),c=a.length-b;for(let b=0;b<c;b+=1){var d;if(!((d=a.charCodeAt(b))>=65&&d<=90||d>=97&&d<=122||d>=48&&d<=57||43===d||47===d))return null}for(let b=c;b<a.length;b+=1)if("="!==a[b])return null;return a.length/4*3-b}(a.data);return null!==b&&b<=0xa00000}(d)?[]:[d]}));ce.current=f,cf.current=g,an(f),aQ(null),bb(!1),aC(a=>(a.forEach(bE),g)),requestAnimationFrame(()=>{e&&e.focus()})},prependText(a){if(!a.trim())return;let b=bT.current,c=[a,b?b.value:am].filter(a=>a.trim()).join("\n\n");ce.current=c,an(c),aQ(null),requestAnimationFrame(()=>{b&&(b.focus(),b.setSelectionRange(c.length,c.length))})},rekeyDraft(a,b){if(a===b)return;if(cd.current!==a)return void aX(a,b);let c={value:ce.current,images:cf.current.map(bB)},d=aX(a,b,c)??{value:"",images:[]},e=d.value===c.value&&d.images.length===c.images.length&&d.images.every((a,b)=>a.data===c.images[b]?.data&&a.mimeType===c.images[b]?.mimeType);if(cd.current=b,e)return;let f=bD(d.images);ce.current=d.value,cf.current=f,an(d.value),aC(a=>(a.forEach(bE),f)),aQ(null),bb(!1)},restoreSubmission(a,b,c){if(!a.trim()&&!b?.length)return;let d=cd.current,e=c??d,f=e===d,g=!f&&e?aR(e):null,h=aW(a,b,f?ce.current:g?.value??"",f?cf.current.map(bB):g?.images??[]);if(e&&aS(e,h),!f)return;let i=bD(h.images);ce.current=h.value,cf.current=i,an(b=>{let c=aU(a,b);return ce.current=c,c}),aQ(null),bb(!1),aC(a=>(a.forEach(bE),cf.current=i,i)),requestAnimationFrame(()=>{let a=bT.current;a&&(a.focus(),a.setSelectionRange(a.value.length,a.value.length))})},insertText(a){let b=bT.current;if(!b)return void an(b=>b+(b?" ":"")+a);let c=b.selectionStart??b.value.length,d=b.selectionEnd??b.value.length,e=b.value.slice(0,c),f=b.value.slice(d),g=e.length>0&&!e.endsWith(" ")?" ":"",h=e+g+a+f;ce.current=h,an(h),aQ(null),requestAnimationFrame(()=>{if(!b)return;let d=c+g.length+a.length;b.setSelectionRange(d,d),b.focus()})},addImages(a){ch(a)},mentionImage(a){az(b=>b.includes(a)?b:[...b,a]),requestAnimationFrame(()=>bT.current?.focus())},removeAttachedImage(a){let b=cf.current.findIndex(b=>b.data===a);b>=0&&ci(b)}}));let ch=(0,t.useCallback)(async a=>{if(Z)return;let b=Math.max(0,10-cf.current.length-cg.current),c=a.filter(a=>a.type.startsWith("image/")&&a.size<=0xa00000).slice(0,b);if(!c.length)return;let d=cc.current;cg.current+=c.length;try{let a=await Promise.all(c.map(async a=>({...await bA(a),previewUrl:URL.createObjectURL(a)})));aC(b=>{if(d!==cc.current)return a.forEach(bE),b;let c=a.slice(0,Math.max(0,10-b.length));a.slice(c.length).forEach(bE);let e=[...b,...c];return cf.current=e,e})}finally{cg.current-=c.length}},[Z]),ci=(0,t.useCallback)(a=>{aC(b=>{let c=[...b],[d]=c.splice(a,1);return d&&bE(d),cf.current=c,c})},[]),cj=(0,t.useCallback)(()=>{cf.current=[],aC(a=>(a.forEach(bE),[]))},[]),ck=(0,t.useCallback)(()=>{cc.current+=1,bi.current=null,ce.current="",an(""),aQ(null),bb(!1),U&&aT(U),cd.current&&cd.current!==U&&aT(cd.current),cj(),aA.current=[],az([])},[cj,U]);(0,t.useEffect)(()=>{U&&cd.current===U&&(bJ(!aS(U,{value:am,images:aB.map(bB)})),V?.(U,am,aB.length))},[aB,U,V,am]),(0,t.useEffect)(()=>{let a=cd.current;if(a===U)return;a&&aS(a,{value:ce.current,images:cf.current.map(bB)});let b=U?aR(U):null;cd.current=U;let c=b?.value??"",d=bD(b?.images);cc.current+=1,ce.current=c,cf.current=d,an(c),aQ(null),bb(!1),aC(a=>(a.forEach(bE),d)),U&&V?.(U,c,d.length)},[U,V]);let cl=(0,t.useCallback)(()=>{let a=bT.current;if(!a||(a.style.overflowY="hidden",a.style.height="auto",!a.value))return;let b=a.scrollHeight;a.style.height=`${Math.min(b,200)}px`,b>200&&(a.style.overflowY="auto")},[]);(0,t.useLayoutEffect)(cl,[am,aj,cl]),(0,t.useEffect)(()=>{let a=bT.current;if(!a)return;let b=-1,c=new ResizeObserver(([a])=>{a.contentRect.width!==b&&(b=a.contentRect.width,cl())});return c.observe(a),()=>c.disconnect()},[cl]),(0,t.useEffect)(()=>()=>{cc.current+=1,cf.current.forEach(bE)},[]);let cm=(0,t.useCallback)(async a=>{if(aB.length||!a.startsWith("/")||!O)return!1;if(b8.current)return!0;b8.current=!0,a7(!0);try{var b,c;let d=await O(a);if(!d.handled)return!1;return d.error||(b=ce.current,c=cf.current.length,0!==c||b.trim()!==a)||ck(),!0}finally{b8.current=!1,a7(!1)}},[aB.length,ck,O]),cn=(0,t.useCallback)(async()=>{if(g)return;let b=am.trim();if(aB.length>10)return;let c=br(b,ay);if(!c&&!aB.length||(R?.(),(!f||bq(b))&&await cm(b)||f))return;let d=aB.length?aB:void 0;ck(),a(c,d)},[g,am,aB,ay,f,cm,a,ck,R]),co=!Z&&am.startsWith("/")&&!/\s/.test(am.slice(1))?am.slice(1).toLowerCase():null,cp=null===co?[]:[...f?bp.filter(a=>a.availableWhileStreaming):bp,...L??[]].filter(a=>{let b=a.name.toLowerCase(),c=bw(a,ai).toLowerCase();return b.includes(co)||c.includes(co)}).sort((a,b)=>{let c=bv(a,co,ai)-bv(b,co,ai);return 0!==c?c:bu[a.source]-bu[b.source]||bl.compare(a.name,b.name)}),{commands:cq,groups:cr}=(_=0,{commands:(aa=bs.map(a=>{let b=cp.filter(b=>b.source===a),c="skill"===a?[...b.filter(a=>!bz(a,bS)),...b.filter(a=>bz(a,bS))]:b;return{source:a,items:c.map(a=>({command:a,index:_++}))}}).filter(a=>a.items.length>0)).flatMap(a=>a.items.map(({command:a})=>a)),groups:aa}),cs=(()=>{if(Z)return null;let a=aJ??am.length,b=am.slice(0,a);if(b.includes("\n"))return null;let c=/^\/([^\s]+)\s(.*)$/.exec(b);return c&&by[c[1]]?{command:c[1],signature:by[c[1]],hasArgument:c[2].trim().length>0}:null})(),ct=1===cp.length?ai(co?"chat.match":"chat.command"):ai(co?"chat.matches":"chat.commands",{count:cp.length}),cu=!!am.trim(),cv=aB.length>10,cw=!cv&&(cu||aB.length>0||ay.length>0),cx=!g&&!cv&&(cu||aB.length>0||ay.length>0),cy=aB.length>0&&!function(a,b){if(!a)return!0;let c=b?.find(b=>b.provider===a.provider&&b.id===a.modelId);return!c||!c.input||c.input.includes("image")}(h,k)&&!a8;(0,t.useEffect)(()=>{0===aB.length&&a9(!1)},[aB.length]);let cz=(0,t.useCallback)((a,b)=>{if(!Y)return void aQ(null);let c=b??a.length;aQ(aY(a.slice(0,c)))},[Y]),cA=aP?.query??null,cB=u().useMemo(()=>null!==cA&&bK&&bK.cwd===Y?function(a,b,c=20){let d=b.toLowerCase();if(!d)return a.slice(0,c);let e=[];for(let b of a){let a=function(a,b){let c=a.path.toLowerCase(),d=0;if(b.includes("/"))c===b?d=100:c.startsWith(b)?d=80:c.includes(b)?d=50:a$(b,c)&&(d=10);else{let a=c.lastIndexOf("/"),e=-1===a?c:c.slice(a+1);e===b?d=100:e.startsWith(b)?d=80:e.includes(b)?d=50:c.includes(b)?d=30:a$(b,c)&&(d=10)}return a.isDir&&d>0&&(d+=10),d}(b,d);a>0&&e.push({entry:b,score:a})}return e.sort((a,b)=>b.score-a.score||aZ(a.entry.path)-aZ(b.entry.path)||a.entry.path.localeCompare(b.entry.path)),e.slice(0,c).map(a=>a.entry)}(bK.entries,cA):[],[cA,bK,Y]),cC=!!(cA&&bK?.clientTruncated&&bK.cwd===Y);(0,t.useEffect)(()=>{if(!cC||!Y||!cA)return;let a=setTimeout(()=>{fetch(`/api/file-index?cwd=${encodeURIComponent(Y)}&q=${encodeURIComponent(cA)}`).then(a=>{if(!a.ok)throw Error(`file search failed: ${a.status}`);return a.json()}).then(a=>bP({cwd:Y,query:cA,matches:a.matches??[]})).catch(()=>{})},150);return()=>clearTimeout(a)},[cC,cA,Y]);let cD=cC&&null!==bO&&bO.cwd===Y&&bO.query===cA,cE=cD?bO.matches:cB,cF=null===aP?null:`${aP.start}:${+!!aP.quoted}:${aP.query}`;(0,t.useEffect)(()=>{if(null===cF){a_(!1),a5(0);return}a_(!0),a5(0)},[cF]);let cG=null!==aP;(0,t.useEffect)(()=>{if(!cG||!Y)return;let a=ca.current;a&&a.cwd===Y&&Date.now()-a.fetchedAt<1e4||cb.current===Y||(cb.current=Y,bN(!0),fetch(`/api/file-index?cwd=${encodeURIComponent(Y)}`).then(a=>{if(!a.ok)throw Error(`file index failed: ${a.status}`);return a.json()}).then(a=>{bL({cwd:Y,entries:function(a){let b=new Set;for(let c of a){let a=c.indexOf("/");for(;-1!==a;)b.add(c.slice(0,a)),a=c.indexOf("/",a+1)}let c=[];for(let a of b)c.push({path:a,isDir:!0});for(let b of a)b&&c.push({path:b,isDir:!1});return c.sort((a,b)=>aZ(a.path)-aZ(b.path)||a.path.localeCompare(b.path)),c}(a.files??[]),clientTruncated:!!a.clientTruncated,serverHardTruncated:!!a.serverHardTruncated}),ca.current={cwd:Y,fetchedAt:Date.now()}}).catch(()=>{ca.current=null}).finally(()=>{cb.current=null,bN(!1)}))},[cG,Y]);let cH=(0,t.useCallback)(a=>{if(!aP)return;let b=bT.current,c=b?.selectionStart??am.length,d=am.slice(0,aP.start),e=am.slice(c);aP.quoted&&e.startsWith('"')&&(e=e.slice(1));let f=function(a,b,c=!1){let d=b?`${a}/`:a,e=c||d.includes(" ");if(b){let a=e?`@"${d}"`:`@${d}`;return{text:a,cursorOffset:e?a.length-1:a.length}}let f=e?`@"${d}" `:`@${d} `;return{text:f,cursorOffset:f.length}}(a.path,a.isDir,aP.quoted),g=d+f.text+e,h=d.length+f.cursorOffset;ce.current=g,an(g),aK(h),aQ(aY(g.slice(0,h))),bx(bT,h)},[aP,am]);(0,t.useEffect)(()=>{a3>=cE.length&&a5(Math.max(0,cE.length-1))},[cE.length,a3]),(0,t.useEffect)(()=>{b7.current.length=cE.length},[cE.length]),(0,t.useEffect)(()=>{aV&&b7.current[a3]?.scrollIntoView({block:"nearest",inline:"nearest"})},[a3,aV]),(0,t.useEffect)(()=>{bf>=J.length&&bg(Math.max(0,J.length-1))},[J.length,bf]),(0,t.useEffect)(()=>{b9.current.length=J.length},[J.length]),(0,t.useEffect)(()=>{ba&&b9.current[bf]?.scrollIntoView({block:"nearest",inline:"nearest"})},[bf,ba]);let cI=(0,t.useCallback)(()=>{let a=bi.current;bi.current=null,a&&(ce.current=a.text,an(a.text)),bb(!1)},[]),cJ=(0,t.useCallback)(a=>{bi.current=null,ce.current=a,an(a),aK(a.length),bb(!1),bg(0),aQ(null),bx(bT,a.length)},[]),cK=(0,t.useCallback)(a=>{let b=`/${a.name} `;ce.current=b,an(b),aK(b.length),aI(!1),aM(0),bx(bT,b.length)},[]),cL=(0,t.useCallback)(a=>{let b=am.trim();if(aB.length>10)return;let c=br(b,ay);if(!c&&!aB.length)return;if(R?.(),!aB.length&&O&&bq(b))return void cm(b);let f=aB.length?aB:void 0;if(b.startsWith("/")&&S){ck(),S(b,"steer"===a?"steer":"followUp",f);return}ck(),"steer"===a&&d?d(c,f):"followup"===a&&e&&e(c,f)},[am,aB,ay,O,S,d,e,ck,R,cm]),cM=(0,t.useCallback)(a=>{let b=a.nativeEvent,g=!ak&&!1,h="Enter"===a.key&&a.shiftKey===g&&(!ak||a.ctrlKey||a.metaKey),i=Date.now()-b2.current<100,j=b1.current||b.isComposing||229===b.keyCode;if(h&&(j||i)){i&&a.preventDefault();return}if(ba&&!j){if("ArrowDown"===a.key){a.preventDefault(),bg(a=>Math.min(Math.max(0,J.length-1),a+1));return}if("ArrowUp"===a.key){a.preventDefault(),bg(a=>Math.max(0,a-1));return}if("Escape"===a.key){a.preventDefault(),cI();return}if(("Tab"===a.key||h)&&J[bf]){a.preventDefault(),cJ(J[bf]);return}}if(aH&&null!==co&&!j){if("ArrowDown"===a.key){a.preventDefault(),aM(a=>0===cq.length?0:(a+1)%cq.length);return}if("ArrowUp"===a.key){a.preventDefault(),aM(a=>0===cq.length?0:(a-1+cq.length)%cq.length);return}if("Escape"===a.key){a.preventDefault(),aI(!1);return}let b=cq[aL];if("Tab"===a.key&&b){a.preventDefault(),cK(b);return}if(h&&b)return void((a.preventDefault(),f&&("builtin"!==b.source||!0!==b.availableWhileStreaming)||"builtin"!==b.source||am.trim()!==`/${b.name}`)?cK(b):(aI(!1),cn()))}if(aV&&null!==aP&&!j){if("ArrowDown"===a.key){a.preventDefault(),a5(a=>0===cE.length?0:(a+1)%cE.length);return}if("ArrowUp"===a.key){a.preventDefault(),a5(a=>0===cE.length?0:(a-1+cE.length)%cE.length);return}if("Escape"===a.key){a.preventDefault(),a_(!1);return}if(("Tab"===a.key||h)&&cE[a3]){a.preventDefault(),cH(cE[a3]);return}}if("ArrowUp"===a.key&&!am&&!j&&!f&&J.length>0){a.preventDefault(),aI(!1),a_(!1),bi.current={text:am},bg(J.length-1),bb(!0);return}if("Escape"===a.key&&au){a.preventDefault(),av(!1);return}if("Escape"===a.key&&!j&&f&&c){a.preventDefault(),c();return}h&&(a.preventDefault(),f&&(d||e)?cL(a.altKey&&e||!d?"followup":"steer"):cn())},[ak,f,d,e,c,au,aH,co,cq,aL,cK,cL,cn,aV,aP,cE,a3,cH,ba,J,bf,cJ,cI,am]),cN=(0,t.useCallback)(a=>{let b=Array.from(a.clipboardData?.items??[]).filter(a=>a.type.startsWith("image/"));if(!Z&&b.length){a.preventDefault(),ch(b.map(a=>a.getAsFile()).filter(a=>null!==a));return}let c=a.clipboardData.getData("text/html"),d=a.clipboardData.getData("text/plain");if(!c||!d)return;let e=new DOMParser().parseFromString(c,"text/html"),f=function(a,b){let c="",d=0,e=!1;for(let{label:f,href:g,occurrence:h}of b){if(!f||!g)continue;let b=0;for(let c=0;c<=h&&!((b=a.indexOf(f,c?b+f.length:0))<0);c++);if(b<d)continue;let i=f.replace(/([\\[\]])/g,"\\$1"),j=g.replace(/([\\()])/g,"\\$1");c+=`${a.slice(d,b)}[${i}](${j})`,d=b+f.length,e=!0}return e?c+a.slice(d):null}(d,Array.from(e.querySelectorAll("a[href]"),a=>{let b=a.textContent??"",c=e.createRange();return c.setStart(e.body,0),c.setEndBefore(a),{label:b,href:a.getAttribute("href")?.trim()??"",occurrence:b?c.toString().split(b).length-1:0}}));if(null===f)return;let g=a.currentTarget,h=g.selectionStart,i=g.value.slice(0,h)+f+g.value.slice(g.selectionEnd);a.preventDefault(),ce.current=i,an(i),bb(!1),cz(i,h+f.length),requestAnimationFrame(()=>{g.focus(),g.setSelectionRange(h+f.length,h+f.length)})},[Z,ch,cz]);(0,t.useEffect)(()=>{if(null===co){aI(!1),aM(0),b3.current=!1;return}aI(!0),aM(0),!b3.current&&N&&(b3.current=!0,Promise.resolve(N()).catch(()=>{b3.current=!1}))},[co,N]),(0,t.useEffect)(()=>{if(!aH||!Y)return;let a=!1;return bR({cwd:Y,values:{}}),fetch(`/api/skills?cwd=${encodeURIComponent(Y)}`).then(a=>{if(!a.ok)throw Error(`skills fetch failed: ${a.status}`);return a.json()}).then(b=>{if(a)return;let c={};for(let a of b.skills??[])c[a.name]=a.disableModelInvocation;bR({cwd:Y,values:c})}).catch(()=>{a||bR({cwd:Y,values:{}})}),()=>{a=!0}},[aH,Y]),(0,t.useEffect)(()=>{aL>=cq.length&&aM(Math.max(0,cq.length-1))},[cq.length,aL]),(0,t.useEffect)(()=>{b5.current.length=cq.length},[cq.length]),(0,t.useEffect)(()=>{aH&&b5.current[aL]?.scrollIntoView({block:"nearest",inline:"nearest"})},[aL,aH]),(0,t.useLayoutEffect)(()=>{if(!aH||null===co)return void aO(null);let a=b4.current;if(a)return bm(a,a=>{aO(b=>b===a?b:a)})},[aH,co]),(0,t.useLayoutEffect)(()=>{if(!aV||null===aP)return void a2(null);let a=b6.current;if(a)return bm(a,a=>{a2(b=>b===a?b:a)})},[aV,aP]);let cO=k&&k.length>0?k.map(a=>({provider:a.provider,modelId:a.id,name:a.name})):Object.entries(j??{}).map(([a,b])=>({provider:h?.provider??"unknown",modelId:a,name:b})),cP=w?Math.max(0,w.tokensBefore-w.estimatedTokensAfter):0,cQ=w?`${w.reason&&"manual"!==w.reason?`${w.reason[0].toUpperCase()}${w.reason.slice(1)} `:ai("chat.compacted")} ${be(w.tokensBefore)} -> ${be(w.estimatedTokensAfter)} tokens (${ai("chat.tokensSaved",{saved:be(cP)})})`:null,cR="auto"!==(ab=C??"auto")&&F?F[ab]??ab:ab,cS=Object.entries(bk).find(([,a])=>a===(x??bd.Q8))?.[0]??"configured",cT="chat-only"===cS?ai("chat.chatOnly"):cS,cU=z?.percent??null,cV=[cR,null!=cU&&cU>=70?`${Math.round(cU)}%`:null].filter(Boolean).join(" \xb7 ");(0,t.useEffect)(()=>{let a=a=>{let b=a.target;bU.current&&!bU.current.contains(b)&&ap(!1),bV.current&&!bV.current.contains(b)&&ar(!1),bW.current&&!bW.current.contains(b)&&av(!1),bX.current&&!bX.current.contains(b)&&ax(!1),b$.current&&!b$.current.contains(b)&&at(!1),!b4.current||b4.current.contains(b)||bT.current?.contains(b)||aI(!1),!b6.current||b6.current.contains(b)||bT.current?.contains(b)||a_(!1),!b_.current||b_.current.contains(b)||bT.current?.contains(b)||cI()};return document.addEventListener("pointerdown",a),()=>{document.removeEventListener("pointerdown",a)}},[cI]),(0,t.useEffect)(()=>{ak||ax(!1)},[ak]);let cW=a=>{if(!z||z.contextWindow<=0)return null;let b=z.contextWindow,c=z.tokens,d=z.percent??(null!==c?c/b*100:null),e=null!==d?Math.min(100,Math.max(0,d)):0,f=null!==d&&d>=85,g=null!==d&&d>=70&&d<85,h=null!==c?`${be(c)}/${be(b)}`:`?/${be(b)}`,i=null!==c?Math.max(0,b-c):null,j=[`${ai("chat.contextUsage")}: ${null!==c?be(c):"?"} / ${be(b)} (${null!==d?d.toFixed(1):"?"}%)`,null!==i?`${ai("chat.contextRemaining")}: ${be(i)}`:null,null!=A?`${ai("session.cacheHitRate")}: ${A.toFixed(1)}%`:null,f?`⚠️ ${ai("chat.contextHighWarning")}`:null].filter(Boolean).join("\n");return(0,s.jsxs)("button",{ref:b$,type:"button",onClick:()=>{at(a=>!a),B?.()},title:j,"aria-label":j,"data-top-panel-trigger":B?"session":void 0,"aria-controls":B?"workspace-top-panel":void 0,style:{display:"flex",alignItems:"center",justifyContent:"center",gap:4,padding:"0 4px",height:a?32:28,background:as?f?"rgba(239,68,68,0.12)":"var(--bg-hover)":f?"rgba(239,68,68,0.06)":"none",border:f?"1px solid rgba(239,68,68,0.25)":"none",borderRadius:4,color:f?"#ef4444":g?"rgba(234,179,8,0.95)":"var(--text-muted)",cursor:B?"pointer":"default",fontSize:a?11:12,lineHeight:1,fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",transition:"background 0.12s, color 0.12s, border-color 0.12s"},onMouseEnter:b=>{a||!B||as||(b.currentTarget.style.background=f?"rgba(239,68,68,0.12)":"var(--bg-hover)")},onMouseLeave:b=>{a||!B||as||(b.currentTarget.style.background=f?"rgba(239,68,68,0.06)":"none")},children:[(0,s.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",style:{display:"block",flexShrink:0,transform:"rotate(-90deg)"},children:[(0,s.jsx)("circle",{cx:"8",cy:"8",r:"5.5",stroke:"currentColor",strokeWidth:"1.5",opacity:"0.22"}),(0,s.jsx)("circle",{cx:"8",cy:"8",r:"5.5",pathLength:"100",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeDasharray:`${e} 100`,style:{transition:"stroke-dasharray 0.3s ease"}})]}),(0,s.jsx)("span",{style:{fontWeight:f?600:400,letterSpacing:"-0.01em",lineHeight:1},children:h}),null!=A&&(0,s.jsxs)("span",{style:{lineHeight:1},children:[A.toFixed(0),"%"]})]})};(0,t.useLayoutEffect)(()=>{if(!ak||!aw)return;let a=bZ.current;if(a)return a.style.height="32px",()=>{a.style.height=""}},[ak,aw]),(0,t.useEffect)(()=>{f&&(ar(!1),ap(!1),av(!1))},[f]);let cX=`${al}-history`,cY=`${al}-slash`,cZ=`${al}-files`,c$=ba&&J.length>0?cX:aH&&null!==co?cY:aV&&null!==aP?cZ:void 0,c_=c$===cX&&void 0!==J[bf]?`${cX}-${bf}`:c$===cY&&cq[aL]?`${cY}-${aL}`:c$===cZ&&cE[a3]?`${cZ}-${a3}`:void 0;return(0,s.jsxs)("fieldset",{disabled:a6,"aria-busy":a6,className:Z?"chat-input is-compact":"chat-input",style:{flexShrink:0,minWidth:0,margin:0,border:0,background:"transparent",padding:Z?0:"0 16px 8px",paddingRight:16*!Z,opacity:a6?.5:1,transition:"opacity 0.15s"},children:[!Z&&(0,s.jsx)("input",{ref:b0,type:"file",accept:"image/*",multiple:!0,disabled:g,style:{display:"none"},onChange:a=>{ch(Array.from(a.target.files??[])),a.target.value=""}}),(0,s.jsxs)("div",{style:{maxWidth:"var(--chat-content-max-width, 820px)",margin:"0 auto"},children:[(0,s.jsx)(bH,{error:l}),(0,s.jsx)(bI,{warnings:m}),cv&&(0,s.jsx)(bG,{tone:"error",title:ai("chat.tooManyImagesTitle"),body:ai("chat.tooManyImagesBody",{count:aB.length,max:10})}),cy&&(ac=k?.find(a=>a.provider===h?.provider&&a.id===h?.modelId),(0,s.jsx)(bG,{tone:"warning",title:ai("chat.imageNotSupportedTitle"),body:ai("chat.imageNotSupportedBody",{model:ac?.name||h?.modelId||""}),onClose:()=>a9(!0)})),(I?.steering.length??0)+(I?.followUp.length??0)>0&&(0,s.jsxs)("div",{style:{marginBottom:8,border:"1px solid var(--border)",borderRadius:4,background:"var(--bg-panel)",padding:"5px 0"},children:[(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"2px 8px 4px 10px"},children:[(0,s.jsx)("span",{style:{fontSize:10,fontFamily:"var(--font-mono)",color:"var(--text-dim)",textTransform:"uppercase",letterSpacing:.4},children:ai("chat.queued",{count:(I?.steering.length??0)+(I?.followUp.length??0)})}),K&&(0,s.jsxs)("button",{onClick:K,title:ai("chat.recallTitle"),style:{display:"flex",alignItems:"center",gap:6,padding:"4px 12px",fontSize:12,color:"var(--text)",background:"transparent",border:"1px solid var(--border)",borderRadius:4,cursor:"pointer",transition:"background 0.12s, border-color 0.12s",whiteSpace:"nowrap"},onMouseEnter:a=>{a.currentTarget.style.background="var(--bg-hover)",a.currentTarget.style.borderColor="color-mix(in srgb, var(--accent) 45%, var(--border))"},onMouseLeave:a=>{a.currentTarget.style.background="transparent",a.currentTarget.style.borderColor="var(--border)"},children:[(0,s.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("polyline",{points:"9 14 4 9 9 4"}),(0,s.jsx)("path",{d:"M20 20v-7a4 4 0 0 0-4-4H4"})]}),ai("chat.recall")]})]}),I?.steering.map((a,b)=>(0,s.jsx)(bF,{kind:"steer",text:a},`steer-${b}`)),I?.followUp.map((a,b)=>(0,s.jsx)(bF,{kind:"follow-up",text:a},`followup-${b}`))]}),H&&(0,s.jsxs)("div",{className:"chat-input-feedback chat-input-feedback-warning",children:[(0,s.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0},children:[(0,s.jsx)("path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}),(0,s.jsx)("path",{d:"M3 3v5h5"})]}),ai("chat.retrying",{attempt:H.attempt,max:H.maxAttempts}),H.errorMessage&&(0,s.jsxs)("span",{style:{opacity:.7,marginLeft:4},children:["— ",H.errorMessage]})]}),cQ&&(0,s.jsxs)("div",{className:"chat-input-feedback chat-input-feedback-success",children:[(0,s.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0},children:(0,s.jsx)("polyline",{points:"20 6 9 17 4 12"})}),cQ]}),v&&(0,s.jsx)("div",{role:"alert",className:"chat-input-feedback chat-input-feedback-error chat-input-feedback-detail",style:{whiteSpace:"pre-wrap"},children:v}),(bC||X)&&(0,s.jsx)("div",{role:"status",className:"chat-input-feedback chat-input-feedback-warning chat-input-feedback-draft",children:ai("chat.draftPageOnly")}),(aB.length>0||ay.length>0)&&(0,s.jsxs)("div",{style:{display:"flex",gap:8,marginBottom:8,flexWrap:"wrap",padding:"0 2px"},children:[ay.map(a=>(0,s.jsx)(aG,{path:a,cwd:Y??void 0,onRemove:()=>az(b=>b.filter(b=>b!==a))},a)),aB.map((a,b)=>(0,s.jsxs)("div",{className:"chat-input-image-preview",style:{position:"relative",flexShrink:0,borderRadius:6,overflow:"visible",border:"1px solid var(--border)",boxShadow:"0 1px 3px rgba(0,0,0,0.05)"},children:[(0,s.jsx)("img",{src:a.previewUrl,alt:"",style:{width:56,height:56,objectFit:"cover",display:"block"}}),(0,s.jsx)("button",{className:"chat-input-image-remove",onClick:()=>ci(b),title:ai("i18n.close"),"aria-label":ai("i18n.close"),style:{position:"absolute",top:3,right:3,width:18,height:18,borderRadius:"50%",background:"rgba(0, 0, 0, 0.55)",border:"none",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",padding:0,color:"var(--accent-contrast)",backdropFilter:"blur(4px)",transition:"background 0.12s"},onMouseEnter:a=>{a.currentTarget.style.background="rgba(0, 0, 0, 0.85)"},onMouseLeave:a=>{a.currentTarget.style.background="rgba(0, 0, 0, 0.55)"},children:(0,s.jsxs)("svg",{width:"9",height:"9",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",children:[(0,s.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,s.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},b))]}),(0,s.jsxs)("div",{ref:bY,style:{position:"relative",minWidth:0},children:[cs&&!aH&&(0,s.jsxs)("div",{style:{position:"absolute",left:0,bottom:"calc(100% + 6px)",zIndex:119,height:24,display:"inline-flex",alignItems:"center",gap:6,padding:"0 8px",background:"var(--bg)",border:"1px solid var(--border)",borderRadius:4,boxShadow:"0 2px 8px rgba(0,0,0,0.06)",fontFamily:"var(--font-mono)",fontSize:11.5,lineHeight:1,color:"var(--text-dim)",opacity:cs.hasArgument?.45:.85,pointerEvents:"none"},children:[(0,s.jsx)("span",{style:{color:"var(--text-muted)",fontWeight:500},children:"Usage:"}),(0,s.jsxs)("span",{style:{color:"var(--text)"},children:["/",cs.command]}),(0,s.jsx)("span",{children:cs.signature})]}),ba&&J.length>0&&(0,s.jsxs)("div",{ref:b_,style:{position:"absolute",left:0,right:0,bottom:"calc(100% + 8px)",zIndex:120,background:"var(--bg)",border:"1px solid var(--border)",borderRadius:4,boxShadow:"0 -6px 20px rgba(0,0,0,0.12)",overflow:"hidden",maxHeight:"min(44vh, 360px)"},children:[(0,s.jsx)("div",{title:ai("chat.inputHistory"),style:{height:30,padding:"0 10px",borderBottom:"1px solid var(--border)",display:"flex",alignItems:"center",color:"var(--text-dim)"},children:(0,s.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M3 12a9 9 0 1 0 3-6.7"}),(0,s.jsx)("path",{d:"M3 4v5h5"}),(0,s.jsx)("path",{d:"M12 7v5l3 2"})]})}),(0,s.jsx)("div",{id:cX,role:"listbox",style:{maxHeight:"calc(min(44vh, 360px) - 31px)",overflowY:"auto",padding:4},children:J.map((a,b)=>{let c=b===bf;return(0,s.jsxs)("button",{ref:a=>{b9.current[b]=a},type:"button",id:`${cX}-${b}`,role:"option","aria-selected":c,tabIndex:-1,onMouseDown:b=>{b.preventDefault(),cJ(a)},onMouseEnter:()=>bg(b),style:{width:"100%",display:"flex",alignItems:"flex-start",gap:8,padding:"7px 8px",border:"none",borderRadius:4,background:c?"var(--bg-selected)":"none",color:"var(--text)",cursor:"pointer",textAlign:"left",fontSize:12.5,lineHeight:1.45},children:[(0,s.jsx)("span",{style:{flexShrink:0,fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-dim)",paddingTop:1},children:b+1}),(0,s.jsx)("span",{style:{minWidth:0,display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:2,overflow:"hidden",overflowWrap:"anywhere"},children:a})]},`${b}:${a}`)})})]}),aH&&null!==co&&(0,s.jsxs)("div",{ref:b4,style:{position:"absolute",left:0,right:0,bottom:"calc(100% + 8px)",zIndex:120,background:"var(--bg)",border:"1px solid var(--border)",borderRadius:4,boxShadow:"0 -6px 20px rgba(0,0,0,0.12)",overflow:"hidden",boxSizing:"border-box",display:"flex",flexDirection:"column",maxHeight:null===aN?"min(72.8vh, 598px)":`min(72.8vh, 598px, ${aN}px)`},children:[(0,s.jsxs)("div",{style:{padding:"8px 10px",borderBottom:"1px solid var(--border)",display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,fontSize:11,color:"var(--text-dim)",flexShrink:0},children:[(0,s.jsx)("span",{children:M?ai("chat.loadingCommands"):ai("chat.slashCommands",{label:ct})}),(0,s.jsx)("span",{style:{fontFamily:"var(--font-mono)"},children:ai("chat.tabEnter")})]}),(0,s.jsx)("div",{id:cY,role:"listbox",style:{flex:"1 1 auto",minHeight:0,overflowY:"auto",padding:6},children:M||0!==cp.length?cr.map(a=>(0,s.jsxs)("section",{style:{marginBottom:8},children:[(0,s.jsxs)("div",{style:{position:"sticky",top:-6,zIndex:1,display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"4px 8px 3px",background:"var(--bg)",color:"var(--text-dim)",fontSize:10,fontWeight:600,letterSpacing:"0.04em",textTransform:"uppercase"},children:[(0,s.jsx)("span",{children:ai(bt[a.source])}),(0,s.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontWeight:500},children:a.items.length})]}),(0,s.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:1},children:a.items.map(({command:a,index:b})=>{let c=b===aL,d=bz(a,bS);return(0,s.jsxs)("button",{ref:a=>{b5.current[b]=a},type:"button",id:`${cY}-${b}`,role:"option","aria-selected":c,tabIndex:-1,onMouseDown:b=>{b.preventDefault(),cK(a)},onMouseEnter:()=>aM(b),style:{width:"100%",minWidth:0,height:30,display:"flex",alignItems:"center",gap:12,padding:"0 8px",border:"none",borderRadius:4,background:c?"var(--bg-selected)":"none",color:d?"var(--text-dim)":"var(--text)",cursor:"pointer",textAlign:"left",transition:"background 0.08s ease"},children:[(0,s.jsxs)("span",{style:{flexShrink:0,fontSize:12.5,fontFamily:"var(--font-mono)",whiteSpace:"nowrap",color:c?"var(--text)":d?"var(--text-dim)":"var(--text)",fontWeight:500},children:[function(a,b){if(!b)return`/${a}`;let c=a.toLocaleLowerCase().indexOf(b.toLocaleLowerCase());return c<0?`/${a}`:(0,s.jsxs)(s.Fragment,{children:[`/${a.slice(0,c)}`,(0,s.jsx)("span",{style:{color:"var(--accent)",fontWeight:600},children:a.slice(c,c+b.length)}),a.slice(c+b.length)]})}(a.name,co),"builtin"===a.source&&by[a.name]&&(0,s.jsx)("span",{style:{marginLeft:6,color:"var(--text-dim)",fontSize:11,fontWeight:400},children:by[a.name]}),d&&(0,s.jsx)("span",{style:{marginLeft:6,padding:"0 4px",border:"1px solid var(--border)",borderRadius:3,fontSize:9,color:"var(--text-dim)",whiteSpace:"nowrap"},children:ai("chat.dormant")})]}),(0,s.jsx)("span",{style:{flex:"1 1 auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:"var(--text-dim)",fontSize:12},children:bw(a,ai)})]},`${a.source}:${a.name}`)})})]},a.source)):(0,s.jsx)("div",{style:{padding:"4px 8px",fontSize:12,color:"var(--text-dim)"},children:ai("chat.noCommands")})})]}),aV&&null!==aP&&(ad=bM&&(!bK||bK.cwd!==Y),ae=1===cE.length?ai("chat.match"):ai("chat.matches",{count:cE.length}),af=bK?.serverHardTruncated?ai("chat.serverIndexTruncated"):bK?.clientTruncated&&!cD?aP.query?ai("chat.searchingAll"):ai("chat.indexTruncated"):"",(0,s.jsxs)("div",{ref:b6,style:{position:"absolute",left:0,right:0,bottom:"calc(100% + 8px)",zIndex:120,background:"var(--bg)",border:"1px solid var(--border)",borderRadius:4,boxShadow:"0 -6px 20px rgba(0,0,0,0.12)",overflow:"hidden",boxSizing:"border-box",display:"flex",flexDirection:"column",maxHeight:null===a1?"min(48vh, 400px)":`min(48vh, 400px, ${a1}px)`},children:[(0,s.jsxs)("div",{style:{padding:"8px 10px",borderBottom:"1px solid var(--border)",display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,fontSize:11,color:"var(--text-dim)",flexShrink:0},children:[(0,s.jsx)("span",{children:ad?ai("chat.loadingFiles"):ai("chat.files",{label:ae,hint:af})}),(0,s.jsx)("span",{style:{fontFamily:"var(--font-mono)"},children:ai("chat.tabEnter")})]}),(0,s.jsx)("div",{id:cZ,role:"listbox",style:{flex:"1 1 auto",minHeight:0,overflowY:"auto",padding:4},children:ad||0!==cE.length?cE.map((a,b)=>{let c=b===a3,d=a.path.split("/").pop()??a.path,e=a.path.slice(0,a.path.length-d.length);return(0,s.jsxs)("button",{ref:a=>{b7.current[b]=a},type:"button",id:`${cZ}-${b}`,role:"option","aria-selected":c,tabIndex:-1,onMouseDown:b=>{b.preventDefault(),cH(a)},onMouseEnter:()=>a5(b),style:{width:"100%",height:30,display:"flex",alignItems:"center",gap:8,padding:"0 8px",border:"none",borderRadius:4,background:c?"var(--bg-selected)":"none",color:"var(--text)",cursor:"pointer",textAlign:"left",fontSize:12.5,fontFamily:"var(--font-mono)",transition:"background 0.08s ease"},children:[(0,s.jsx)("span",{style:{flexShrink:0,display:"inline-flex",alignItems:"center",color:"var(--text-muted)"},children:a.isDir?(0,s.jsx)(T,{size:14}):W(d,14)}),(0,s.jsxs)("span",{style:{flexShrink:0,fontWeight:500,color:"var(--text)",whiteSpace:"nowrap"},children:[function(a,b){if(!b)return a;let c=a.toLocaleLowerCase().indexOf(b.toLocaleLowerCase());return c<0?a:(0,s.jsxs)(s.Fragment,{children:[a.slice(0,c),(0,s.jsx)("mark",{style:{padding:0,color:"var(--accent)",background:"transparent",fontWeight:700},children:a.slice(c,c+b.length)}),a.slice(c+b.length)]})}(d,aP?.query??null),a.isDir&&(0,s.jsx)("span",{style:{color:"var(--text-dim)"},children:"/"})]}),e&&(0,s.jsx)("span",{style:{minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:"var(--text-dim)",fontSize:11.5},children:e})]},`${a.isDir?"d":"f"}:${a.path}`)}):(0,s.jsx)("div",{style:{padding:"6px 8px",fontSize:12,color:"var(--text-dim)"},children:cC&&!cD?ai("chat.searching"):ai("chat.noMatchingFiles")})})]})),(0,s.jsxs)("div",{className:`chat-input-composer${aE?" is-bash-mode":""}`,style:{minWidth:0,display:"flex",flexDirection:Z?"column":"row",gap:8,alignItems:Z?"stretch":"center",background:aE?"color-mix(in srgb, var(--bg-panel) 75%, var(--bg))":"var(--bg)",border:Z?"none":`1px solid ${aE?aF?"rgba(100,116,139,0.45)":"color-mix(in srgb, var(--accent) 45%, var(--border))":f&&(d||e)?"color-mix(in srgb, var(--border) 80%, transparent)":"color-mix(in srgb, var(--border) 70%, transparent)"}`,borderRadius:6*!Z,padding:Z?0:"4px 6px 4px 10px",boxShadow:Z?"none":aE?"0 0 0 1px rgba(37,99,235,0.12)":"0 1px 2px rgba(15,23,42,0.04)",transition:"border-color 0.15s, background 0.15s, box-shadow 0.15s"},children:[aE&&(0,s.jsxs)("div",{style:{display:"inline-flex",alignItems:"center",gap:5,padding:"2px 6px",borderRadius:4,background:aF?"rgba(100,116,139,0.12)":"rgba(37,99,235,0.12)",color:aF?"var(--text-muted)":"var(--accent)",fontFamily:"var(--font-mono)",fontSize:11,fontWeight:600,flexShrink:0,userSelect:"none"},children:[(0,s.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",style:{display:"block",transform:"translateY(0.5px)"},"aria-hidden":"true",children:[(0,s.jsx)("polyline",{points:"4 17 10 11 4 5"}),(0,s.jsx)("line",{x1:"12",y1:"19",x2:"20",y2:"19"})]}),(0,s.jsx)("span",{style:{lineHeight:1},children:aF?"Local":"Shell"})]}),(0,s.jsx)("textarea",{ref:bT,className:"chat-input-textarea",role:"combobox","aria-autocomplete":"list","aria-haspopup":"listbox","aria-expanded":!!c$,"aria-controls":c$,"aria-activedescendant":c_,"aria-label":Z?ai("chat.quoteQuestion"):ai("chat.message"),disabled:g,placeholder:g?ai("agentSwitcher.status.queued"):void 0,value:am,onChange:a=>{ce.current=a.target.value,an(a.target.value),aK(a.target.selectionStart),bi.current=null,bb(!1),cz(a.target.value,a.target.selectionStart)},onSelect:a=>{let b=a.currentTarget;aK(b.selectionStart),cz(b.value,b.selectionStart)},onKeyDown:cM,onCompositionStart:()=>{b1.current=!0},onCompositionEnd:a=>{b1.current=!1,b2.current=Date.now();let b=a.currentTarget;aK(b.selectionStart),cz(b.value,b.selectionStart)},onPaste:cN,rows:1,style:{flex:Z?"none":1,minWidth:0,width:"100%",background:"none",border:"none",outline:"none",resize:"none",color:"var(--text)",fontSize:"var(--chat-content-font-size, 14px)",lineHeight:1.5,padding:0,fontFamily:aE?"var(--font-mono)":"var(--font-chat)",minHeight:Z?96:24,maxHeight:200}}),f?cw?(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,flexShrink:0,alignSelf:"flex-end"},children:[(0,s.jsx)("button",{type:"button",className:"chat-input-action","aria-label":ai("chat.stop"),title:ai("chat.stopAgent"),onClick:c,style:{display:"flex",alignItems:"center",justifyContent:"center",width:ak?32:28,height:ak?32:28,padding:0,background:"color-mix(in srgb, #ef4444 10%, transparent)",border:"1px solid color-mix(in srgb, #ef4444 24%, transparent)",borderRadius:5,color:"#ef4444",cursor:"pointer",transition:"background 0.15s, border-color 0.15s"},onMouseEnter:a=>{a.currentTarget.style.background="color-mix(in srgb, #ef4444 18%, transparent)",a.currentTarget.style.borderColor="color-mix(in srgb, #ef4444 40%, transparent)"},onMouseLeave:a=>{a.currentTarget.style.background="color-mix(in srgb, #ef4444 10%, transparent)",a.currentTarget.style.borderColor="color-mix(in srgb, #ef4444 24%, transparent)"},children:(0,s.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",style:{display:"block",flexShrink:0},children:(0,s.jsx)("rect",{x:"5.5",y:"5.5",width:"13",height:"13",rx:"2",fill:"currentColor"})})}),e&&(0,s.jsxs)("button",{className:"chat-input-action","aria-label":ai("chat.followUp"),onClick:()=>cL("followup"),title:`${ai("chat.followUpHint")} (${ak?"Ctrl/Cmd+":""}Alt/Option+Enter)`,"aria-keyshortcuts":ak?"Control+Alt+Enter Meta+Alt+Enter":"Alt+Enter",style:{display:"flex",alignItems:"center",gap:5,height:ak?32:28,padding:"0 10px",background:"color-mix(in srgb, var(--accent) 10%, transparent)",border:"1px solid color-mix(in srgb, var(--accent) 26%, transparent)",borderRadius:5,color:"var(--accent)",cursor:"pointer",fontSize:12.5,fontWeight:600,letterSpacing:"-0.01em",lineHeight:1,transition:"background 0.12s, color 0.12s, border-color 0.12s"},onMouseEnter:a=>{a.currentTarget.style.background="color-mix(in srgb, var(--accent) 16%, transparent)",a.currentTarget.style.borderColor="color-mix(in srgb, var(--accent) 40%, transparent)"},onMouseLeave:a=>{a.currentTarget.style.background="color-mix(in srgb, var(--accent) 10%, transparent)",a.currentTarget.style.borderColor="color-mix(in srgb, var(--accent) 26%, transparent)"},children:[(0,s.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",style:{display:"block",flexShrink:0},"aria-hidden":"true",children:(0,s.jsx)("path",{d:"M12 17V5m-6 6 6-6 6 6M5 21h14"})}),(0,s.jsx)("span",{className:"chat-input-action-label",children:ai("chat.followUp")})]}),d&&(0,s.jsxs)("button",{className:"chat-input-action","aria-label":ai("chat.steer"),onClick:()=>cL("steer"),title:ai("chat.steerHint"),style:{display:"flex",alignItems:"center",gap:5,height:ak?32:28,padding:"0 10px",background:"var(--accent)",border:"none",borderRadius:5,color:"#ffffff",cursor:"pointer",fontSize:12.5,fontWeight:600,letterSpacing:"-0.01em",lineHeight:1,transition:"background 0.12s, filter 0.12s"},onMouseEnter:a=>{a.currentTarget.style.filter="brightness(1.08)"},onMouseLeave:a=>{a.currentTarget.style.filter="none"},children:[(0,s.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",style:{display:"block",flexShrink:0},"aria-hidden":"true",children:(0,s.jsx)("path",{d:"M5 12h14m-6-6 6 6-6 6"})}),(0,s.jsx)("span",{className:"chat-input-action-label",children:ai("chat.steer")})]})]}):(0,s.jsxs)("button",{className:"chat-input-action","aria-label":ai("chat.stop"),title:ai("chat.stopAgent"),onClick:c,style:{flexShrink:0,alignSelf:"flex-end",display:"flex",alignItems:"center",gap:5,height:ak?32:28,padding:"0 10px",background:"color-mix(in srgb, #ef4444 12%, transparent)",border:"1px solid color-mix(in srgb, #ef4444 26%, transparent)",borderRadius:5,color:"#ef4444",cursor:"pointer",fontSize:12.5,fontWeight:600,letterSpacing:"-0.01em",lineHeight:1,transition:"background 0.15s, border-color 0.15s"},onMouseEnter:a=>{a.currentTarget.style.background="color-mix(in srgb, #ef4444 18%, transparent)",a.currentTarget.style.borderColor="color-mix(in srgb, #ef4444 40%, transparent)"},onMouseLeave:a=>{a.currentTarget.style.background="color-mix(in srgb, #ef4444 12%, transparent)",a.currentTarget.style.borderColor="color-mix(in srgb, #ef4444 26%, transparent)"},children:[(0,s.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",style:{display:"block",flexShrink:0},children:(0,s.jsx)("rect",{x:"5.5",y:"5.5",width:"13",height:"13",rx:"2",fill:"currentColor"})}),(0,s.jsx)("span",{className:"chat-input-action-label",children:ai("chat.stop")})]}):(0,s.jsxs)("button",{className:"chat-input-action","aria-label":ai("chat.send"),title:cv?ai("chat.tooManyImagesTitle"):ai("chat.send"),onClick:cn,disabled:!cx,style:{flexShrink:0,alignSelf:"flex-end",display:"flex",alignItems:"center",gap:5,height:ak?32:28,padding:"0 10px",background:cx?"var(--accent)":"none",border:"none",borderRadius:5,color:cx?"var(--accent-contrast)":"var(--text-dim)",opacity:cx?1:.45,cursor:cx?"pointer":"not-allowed",fontSize:12.5,fontWeight:600,letterSpacing:"-0.01em",lineHeight:1,transition:"background 0.15s, color 0.15s, opacity 0.15s, filter 0.15s"},onMouseEnter:a=>{cx&&(a.currentTarget.style.filter="brightness(1.08)")},onMouseLeave:a=>{cx&&(a.currentTarget.style.filter="none")},children:[(0,s.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",style:{display:"block",flexShrink:0},"aria-hidden":"true",children:(0,s.jsx)("path",{d:"M12 19V5m-7 7 7-7 7 7"})}),(0,s.jsx)("span",{className:"chat-input-action-label",children:ai("chat.send")})]})]})]}),aE&&(0,s.jsxs)("div",{className:"text-xs px-2 py-1",style:{color:aF?"var(--text-muted)":"var(--accent)",marginTop:4},children:[ai("chat.shell")," \xb7 ",aF?ai("chat.outputLocal"):ai("chat.outputModel")]}),!Z&&(0,s.jsxs)("div",{className:"chat-input-toolbar",style:{marginTop:4*!ak,padding:ak?0:"0 2px",display:ak?"grid":"flex",gridTemplateColumns:ak?"minmax(0, 1fr) auto":void 0,alignItems:"center",gap:4},children:[(0,s.jsxs)("div",{style:{flex:ak?"1 1 auto":"0 0 auto",minWidth:0,display:"flex",alignItems:"center",gap:1},children:[(0,s.jsxs)("div",{ref:bW,style:{position:"relative",display:"flex",alignItems:"center"},children:[(0,s.jsx)("button",{type:"button",disabled:g,onClick:()=>{b?av(a=>!a):b0.current?.click()},title:b?`${ai("chat.attachImage")} / ${ai("image.title")}`:ai("chat.attachImage"),"aria-label":b?`${ai("chat.attachImage")} / ${ai("image.title")}`:ai("chat.attachImage"),"aria-expanded":b?au:void 0,"aria-haspopup":b?"menu":void 0,style:{flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",height:ak?32:28,padding:"0 4px",background:au?"var(--bg-hover)":"none",border:"none",borderRadius:4,color:aB.length?"var(--accent)":au?"var(--text)":"var(--text-muted)",cursor:g?"not-allowed":"pointer",opacity:g?.45:1,lineHeight:1,transition:"background 0.12s, color 0.12s"},onMouseEnter:a=>{ak||(a.currentTarget.style.background="var(--bg-hover)",a.currentTarget.style.color=aB.length?"var(--accent)":"var(--text)")},onMouseLeave:a=>{ak||(a.currentTarget.style.background=au?"var(--bg-hover)":"none",a.currentTarget.style.color=aB.length?"var(--accent)":au?"var(--text)":"var(--text-muted)")},children:(0,s.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{display:"block",flexShrink:0},children:[(0,s.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),(0,s.jsx)("circle",{cx:"8.5",cy:"8.5",r:"1.5"}),(0,s.jsx)("polyline",{points:"21 15 16 10 5 21"})]})}),au&&b&&(0,s.jsxs)("div",{role:"menu",onKeyDown:a=>{"Escape"===a.key&&(a.stopPropagation(),av(!1))},style:{position:"absolute",bottom:"calc(100% + 6px)",left:0,zIndex:100,background:"var(--bg)",border:"1px solid var(--border)",borderRadius:4,boxShadow:"0 4px 20px rgba(0,0,0,0.15), 0 1px 4px rgba(0,0,0,0.08)",overflow:"hidden",minWidth:120},children:[(0,s.jsxs)("button",{type:"button",role:"menuitem",onClick:()=>{av(!1),b0.current?.click()},style:{display:"flex",alignItems:"center",gap:8,width:"100%",padding:"7px 12px",background:"none",border:"none",color:"var(--text)",cursor:"pointer",fontSize:12,textAlign:"left",whiteSpace:"nowrap"},onMouseEnter:a=>{a.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:a=>{a.currentTarget.style.background="none"},children:[(0,s.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{flexShrink:0},children:[(0,s.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),(0,s.jsx)("circle",{cx:"8.5",cy:"8.5",r:"1.5"}),(0,s.jsx)("polyline",{points:"21 15 16 10 5 21"})]}),(0,s.jsx)("span",{children:ai("chat.attachImage")})]}),(0,s.jsxs)("button",{type:"button",role:"menuitem",onClick:()=>{av(!1);let[a]=1===cf.current.length?cf.current:[];b(a?bB(a):void 0)},style:{display:"flex",alignItems:"center",gap:8,width:"100%",padding:"7px 12px",background:"none",border:"none",color:"var(--text)",cursor:"pointer",fontSize:12,textAlign:"left",whiteSpace:"nowrap"},onMouseEnter:a=>{a.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:a=>{a.currentTarget.style.background="none"},children:[(0,s.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{flexShrink:0},children:[(0,s.jsx)("path",{d:"m15 4 5 5L8 21l-5-5L15 4Z"}),(0,s.jsx)("path",{d:"m14 5 5 5M6 4v3M4.5 5.5h3M19 16v4M17 18h4"})]}),(0,s.jsx)("span",{children:ai("image.title")})]})]})]}),(cO.length>0||h||l)&&n&&(0,s.jsx)(bh,{options:cO,value:h,onChange:n,disabled:f,busy:o,isAutoSelection:i})]}),!ak&&(0,s.jsx)("div",{style:{flex:1}}),ak&&aw&&(0,s.jsx)("div",{style:{position:"fixed",inset:0,zIndex:55,background:"transparent"},onClick:()=>{ap(!1),ar(!1),ax(!1)}}),ak&&(aw||ao||aq||au)&&(0,s.jsx)("div",{style:{position:"fixed",inset:0,zIndex:55,background:"transparent",WebkitTapHighlightColor:"transparent"},onClick:()=>{ap(!1),ar(!1),av(!1),ax(!1),at(!1)},"aria-hidden":"true"}),(0,s.jsxs)("div",{ref:bX,style:{flex:"0 0 auto",display:"flex",alignItems:"center",justifyContent:"flex-end",position:"relative",marginLeft:ak?0:"auto",zIndex:ak&&aw?60:void 0},children:[ak&&cW(!0),ak&&(ag=!!(null!=cU&&cU>=85),(0,s.jsxs)("button",{type:"button",title:aw?ai("chat.collapseControls"):ai("chat.moreControls"),"aria-label":ai("chat.moreControls"),"aria-expanded":aw,onClick:()=>{aw?(ap(!1),ar(!1),ax(!1)):ax(!0)},style:{display:"flex",alignItems:"center",justifyContent:"center",gap:4,maxWidth:"min(48vw, 200px)",height:32,padding:"0 6px",background:aw?ag?"rgba(239,68,68,0.12)":"var(--bg-hover)":ag?"rgba(239,68,68,0.06)":"none",border:ag?"1px solid rgba(239,68,68,0.25)":"none",borderRadius:4,color:ag?"#ef4444":null!=cU&&cU>=70&&cU<85?"rgba(234,179,8,0.95)":"var(--text-muted)",cursor:"pointer",fontSize:12,fontWeight:400,lineHeight:1,transition:"background 0.12s, color 0.12s, border-color 0.12s"},children:[(0,s.jsx)(a0,{size:14,style:{display:"block"}}),(0,s.jsx)("span",{style:{minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:cV})]})),(0,s.jsxs)("div",{ref:bZ,className:"chat-input-toolbar-controls",style:{display:ak?aw?"flex":"none":"flex",alignItems:"center",gap:1,...ak?{position:"absolute",right:0,bottom:"100%",height:32,zIndex:60,boxSizing:"border-box",padding:"1px 2px",width:"max-content",maxWidth:"calc(100vw - 32px)",overflow:"visible",flexWrap:"wrap",justifyContent:"flex-end",border:"1px solid var(--border)",borderRadius:4,background:"var(--bg)",boxShadow:"0 4px 16px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.06)"}:null},children:[D&&(0,s.jsxs)("div",{ref:bV,style:{position:ak?"static":"relative",display:"flex",alignItems:"center"},children:[(0,s.jsxs)("button",{onClick:()=>!f&&(ap(!1),ar(a=>!a)),disabled:f,title:ai("chat.changeReasoning",{level:cR}),"aria-label":ai("chat.changeReasoningLabel"),style:{display:"flex",alignItems:"center",justifyContent:"center",gap:4,padding:"0 4px",width:ak?"auto":void 0,height:ak?32:28,background:aq?"var(--bg-hover)":"none",border:"none",borderRadius:4,color:"var(--text-muted)",cursor:f?"not-allowed":"pointer",fontSize:12,lineHeight:1,opacity:f?.5:1,transition:"background 0.12s, color 0.12s"},onMouseEnter:a=>{f||ak||(a.currentTarget.style.background="var(--bg-hover)",a.currentTarget.style.color="var(--text)")},onMouseLeave:a=>{ak||(a.currentTarget.style.background=aq?"var(--bg-hover)":"none",a.currentTarget.style.color="var(--text-muted)")},children:[(0,s.jsx)(a0,{size:14,style:{display:"block"}}),(!ak||aw)&&(0,s.jsx)("span",{style:{whiteSpace:"nowrap",lineHeight:1},children:cR})]}),aq&&(0,s.jsx)("div",{style:{position:"absolute",bottom:"calc(100% + 6px)",right:0,maxWidth:"calc(100vw - 24px)",zIndex:100,background:"var(--bg)",border:"1px solid var(--border)",borderRadius:4,boxShadow:"0 4px 20px rgba(0,0,0,0.15), 0 1px 4px rgba(0,0,0,0.08)",overflow:"hidden",minWidth:180},children:bn.filter(a=>!E||"auto"===a||E.includes(a)).map(a=>{let b=(C??"auto")===a,c=ai(bo[a]),d="auto"!==a&&F?F[a]:void 0,e=null!=d&&d!==a?d:a,f=null!=d&&d!==a;return(0,s.jsxs)("button",{onClick:()=>{ar(!1),ak&&ax(!1),b||D(a)},style:{display:"flex",alignItems:"center",gap:8,width:"100%",padding:"7px 12px",background:b?"var(--bg-selected)":"none",border:"none",color:b?"var(--text)":"var(--text-muted)",cursor:"pointer",fontSize:12,textAlign:"left",fontWeight:b?600:400,whiteSpace:"nowrap"},onMouseEnter:a=>{b||(a.currentTarget.style.background="var(--bg-hover)")},onMouseLeave:a=>{b||(a.currentTarget.style.background="none")},children:[b?(0,s.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",stroke:"var(--accent)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0},children:(0,s.jsx)("polyline",{points:"1.5 5 4 7.5 8.5 2.5"})}):(0,s.jsx)("span",{style:{width:10,flexShrink:0}}),(0,s.jsxs)("span",{style:{flex:1},children:[e,f&&(0,s.jsxs)("span",{style:{fontSize:10,color:"var(--text-dim)",fontFamily:"var(--font-mono)",marginLeft:5},children:["(",a,")"]})]}),(0,s.jsx)("span",{style:{fontSize:11,color:"var(--text-dim)",marginLeft:8},children:c})]},a)})})]}),!ak&&cW(!1),!f&&y&&(0,s.jsxs)("div",{ref:bU,style:{position:ak?"static":"relative",display:"flex",alignItems:"center"},children:[(0,s.jsxs)("button",{onClick:()=>!f&&(ar(!1),ap(a=>!a)),disabled:f,title:ai("chat.changeToolPreset")+`: ${cT}`,"aria-label":ai("chat.changeToolPreset"),style:{display:"flex",alignItems:"center",justifyContent:"center",gap:4,padding:"0 4px",width:ak?"auto":void 0,height:ak?32:28,background:ao?"var(--bg-hover)":"none",border:"none",borderRadius:4,color:"var(--text-muted)",cursor:f?"not-allowed":"pointer",fontSize:12,lineHeight:1,opacity:f?.5:1,transition:"background 0.12s, color 0.12s"},onMouseEnter:a=>{f||ak||(a.currentTarget.style.background="var(--bg-hover)",a.currentTarget.style.color="var(--text)")},onMouseLeave:a=>{ak||(a.currentTarget.style.background=ao?"var(--bg-hover)":"none",a.currentTarget.style.color="var(--text-muted)")},children:[(0,s.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{display:"block",flexShrink:0},children:(0,s.jsx)("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"})}),(!ak||aw)&&(0,s.jsx)("span",{style:{whiteSpace:"nowrap",lineHeight:1},children:cT})]}),ao&&(0,s.jsx)("div",{style:{position:"absolute",bottom:"calc(100% + 6px)",right:0,maxWidth:"calc(100vw - 24px)",zIndex:100,background:"var(--bg)",border:"1px solid var(--border)",borderRadius:4,boxShadow:"0 4px 20px rgba(0,0,0,0.15), 0 1px 4px rgba(0,0,0,0.08)",overflow:"hidden",minWidth:120},children:bj.map(a=>{let b,c=bk[a],d=(x??bd.Q8)===c;return b="configured"===a?ai("chat.configuredTools"):"chat-only"===a?ai("chat.chatOnly"):"read-only"===a?ai("chat.readOnlyTools",{count:4}):"default"===a?ai("chat.builtInTools",{count:4}):ai("chat.allBuiltInTools"),(0,s.jsxs)("button",{onClick:()=>{ap(!1),ak&&ax(!1),d||y(c)},style:{display:"flex",alignItems:"center",gap:8,width:"100%",padding:"7px 12px",background:d?"var(--bg-selected)":"none",border:"none",color:d?"var(--text)":"var(--text-muted)",cursor:"pointer",fontSize:12,textAlign:"left",fontWeight:d?600:400,whiteSpace:"nowrap"},onMouseEnter:a=>{d||(a.currentTarget.style.background="var(--bg-hover)")},onMouseLeave:a=>{d||(a.currentTarget.style.background="none")},children:[d?(0,s.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",stroke:"var(--accent)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0},children:(0,s.jsx)("polyline",{points:"1.5 5 4 7.5 8.5 2.5"})}):(0,s.jsx)("span",{style:{width:10,flexShrink:0}}),(0,s.jsx)("span",{style:{flex:1},children:a}),(0,s.jsx)("span",{style:{fontSize:11,color:"var(--text-dim)",marginLeft:8},children:b})]},a)})})]}),!f&&p&&(ah=!!(z?.percent&&z.percent>=85),(0,s.jsx)("div",{style:{display:"flex",alignItems:"center"},children:(0,s.jsx)("button",{onClick:()=>{ak&&ax(!1),r?q?.():p?.()},disabled:f&&!r,style:{display:"flex",alignItems:"center",justifyContent:"center",gap:4,padding:"0 4px",width:ak?"auto":void 0,height:ak?32:28,background:r?"rgba(239,68,68,0.08)":ah?"rgba(239,68,68,0.06)":"none",border:ah&&!r?"1px solid rgba(239,68,68,0.25)":"none",borderRadius:4,color:r||ah?"#ef4444":"var(--text-muted)",cursor:f&&!r?"not-allowed":"pointer",fontSize:12,lineHeight:1,opacity:f&&!r?.5:1,transition:"background 0.12s, color 0.12s, border-color 0.12s"},onMouseEnter:a=>{ak||f&&!r||(a.currentTarget.style.background=r?"rgba(239,68,68,0.16)":ah?"rgba(239,68,68,0.12)":"var(--bg-hover)",a.currentTarget.style.color=r||ah?"#ef4444":"var(--text)")},onMouseLeave:a=>{ak||(a.currentTarget.style.background=r?"rgba(239,68,68,0.08)":ah?"rgba(239,68,68,0.06)":"none",a.currentTarget.style.color=r||ah?"#ef4444":"var(--text-muted)")},title:r?ai("chat.stopCompaction"):ah?`${ai("chat.compactContext")} (${ai("chat.contextHighWarning")})`:ai("chat.compactContext"),"aria-label":r?ai("chat.stopCompaction"):ai("chat.compactContext"),children:r?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",style:{display:"block",flexShrink:0},children:(0,s.jsx)("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2",fill:"currentColor"})}),(!ak||aw)&&(0,s.jsx)("span",{style:{whiteSpace:"nowrap",lineHeight:1},children:ai("chat.compacting")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{display:"block",flexShrink:0},children:[(0,s.jsx)("polyline",{points:"4 14 10 14 10 20"}),(0,s.jsx)("polyline",{points:"20 10 14 10 14 4"}),(0,s.jsx)("line",{x1:"10",y1:"14",x2:"3",y2:"21"}),(0,s.jsx)("line",{x1:"21",y1:"3",x2:"14",y2:"10"})]}),(!ak||aw)&&(0,s.jsx)("span",{style:{whiteSpace:"nowrap",lineHeight:1},children:ai("chat.compact")})]})})})),void 0!==Q&&(0,s.jsx)("button",{onClick:()=>{ak&&ax(!1),Q?.()},title:P?ai("chat.disableSound"):ai("chat.enableSound"),"aria-label":P?ai("chat.disableSound"):ai("chat.enableSound"),style:{display:"flex",alignItems:"center",justifyContent:"center",height:ak?32:28,padding:"0 4px",background:"none",border:"none",borderRadius:4,color:P?"var(--text-muted)":"var(--text-dim)",cursor:"pointer",opacity:P?1:.55,transition:"background 0.12s, color 0.12s, opacity 0.12s"},onMouseEnter:a=>{ak||(a.currentTarget.style.background="var(--bg-hover)",a.currentTarget.style.color="var(--text)",a.currentTarget.style.opacity="1")},onMouseLeave:a=>{ak||(a.currentTarget.style.background="none",a.currentTarget.style.color=P?"var(--text-muted)":"var(--text-dim)",a.currentTarget.style.opacity=P?"1":"0.55")},children:P?(0,s.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{display:"block",flexShrink:0},children:[(0,s.jsx)("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"}),(0,s.jsx)("path",{d:"M15.54 8.46a5 5 0 0 1 0 7.07"}),(0,s.jsx)("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14"})]}):(0,s.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{display:"block",flexShrink:0},children:[(0,s.jsx)("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"}),(0,s.jsx)("line",{x1:"23",y1:"9",x2:"17",y2:"15"}),(0,s.jsx)("line",{x1:"17",y1:"9",x2:"23",y2:"15"})]})})]})]})]})]})]})});function bK(a,b,c,d){let e=a?.capabilities[b];if(d&&e?.includes(d))return d;let f=a?.defaults?.[c];return f&&e?.includes(f)?f:e?.includes("auto")?"auto":e?.[0]??""}function bL({value:a,label:b,onChange:c,children:d}){return(0,s.jsxs)("label",{className:"relative inline-flex flex-none items-center",children:[(0,s.jsx)("select",{"aria-label":b,value:a,onChange:a=>c(a.target.value),className:"image-generation-select appearance-none bg-transparent py-1 pl-1.5 pr-5 text-[12px] text-text-muted outline-none hover:text-text focus:text-text",children:d}),(0,s.jsx)("svg",{className:"pointer-events-none absolute right-0.5 top-1/2 -translate-y-1/2 text-text-dim",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round","aria-hidden":"true",children:(0,s.jsx)("path",{d:"m6 9 6 6 6-6"})})]})}function bM({config:a,edit:b,editPreviewUrl:c,initialSourceImage:d,onClose:e,onSubmit:f}){let{t:g}=(0,G.s)(),h=(0,t.useRef)(null),i=(0,t.useRef)(null),j=(0,t.useRef)(null),[k,l]=(0,t.useState)(""),m=a.connections.filter(a=>!0===a.capabilities.editing),[n,o]=(0,t.useState)(()=>b||!m.length?void 0:d),p=!!(b||n),q=p?m:a.connections,[r,u]=(0,t.useState)(()=>b?.connection&&a.connections.some(a=>a.id===b.connection)?b.connection:a.defaultConnection),v=q.find(a=>a.id===r)??q[0],w=!b&&m.length>0,x=a=>{let b=Array.from(a).find(a=>a.type.startsWith("image/"));return!!b&&(bA(b).then(o,a=>console.error("Failed to read source image:",a)),!0)},[y,z]=(0,t.useState)(()=>bK(v,"sizes","size",b?.size)),[A,B]=(0,t.useState)(()=>bK(v,"resolutions","resolution",b?.resolution)),[C,D]=(0,t.useState)(()=>bK(v,"qualities","quality",b?.quality)),E=v?.capabilities.sizes??[],F=v?.capabilities.resolutions??[],H=v?.capabilities.qualities??[],I=q.length>1,J=b?c:n?`data:${n.mimeType};base64,${n.data}`:void 0,K=()=>{if(!k.trim()||!v)return;let a={prompt:k.trim(),connection:v.id,...y?{size:y}:{},...A?{resolution:A}:{},...C?{quality:C}:{},...b?{target:b.path}:n?{}:{new_image:!0}};e(),f(a,b?void 0:n)};return(0,s.jsx)("div",{role:"presentation",className:"fixed inset-0 z-[1100] flex items-end justify-center bg-black/40 p-0 sm:items-center sm:p-4",onClick:a=>{a.target===a.currentTarget&&e()},children:(0,s.jsxs)("div",{ref:h,role:"dialog","aria-modal":"true","aria-labelledby":"image-generation-title",tabIndex:-1,onDragOver:a=>{w&&a.dataTransfer.types.includes("Files")&&a.preventDefault()},onDrop:a=>{w&&x(a.dataTransfer.files)&&a.preventDefault()},className:"flex max-h-[min(92dvh,100%)] w-full max-w-full flex-col overflow-hidden rounded-t-[16px] border border-border/80 bg-bg-panel shadow-2xl sm:max-h-[calc(100dvh-2rem)] sm:w-[480px] sm:rounded-[12px]",onKeyDown:a=>{if("Escape"===a.key){a.preventDefault(),e();return}if((a.metaKey||a.ctrlKey)&&"Enter"===a.key){a.preventDefault(),K();return}if("Tab"!==a.key)return;let b=Array.from(h.current?.querySelectorAll("button:not(:disabled), textarea:not(:disabled), select:not(:disabled), input:not(:disabled)")??[]).filter(a=>null!==a.offsetParent);if(!b.length)return;let c=b[0],d=b[b.length-1];a.shiftKey&&document.activeElement===c?(a.preventDefault(),d.focus()):a.shiftKey||document.activeElement!==d||(a.preventDefault(),c.focus())},children:[(0,s.jsx)("div",{className:"flex justify-center pt-2 sm:hidden","aria-hidden":"true",children:(0,s.jsx)("div",{className:"h-1 w-10 rounded-full bg-border"})}),(0,s.jsxs)("header",{className:"flex h-10 shrink-0 items-center px-4 sm:h-11",children:[(0,s.jsx)("h2",{id:"image-generation-title",className:"text-[14px] font-medium text-text",children:p?g("image.editTitle"):g("image.title")}),(0,s.jsx)("button",{type:"button",onClick:e,className:"ml-auto inline-flex h-7 w-7 items-center justify-center rounded-md border-0 bg-transparent text-text-muted hover:bg-bg-hover hover:text-text",title:g("trust.cancel"),"aria-label":g("trust.cancel"),children:(0,s.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M18 6 6 18M6 6l12 12"})})})]}),(0,s.jsx)("div",{className:"min-h-0 overflow-y-auto px-4",children:(0,s.jsxs)("div",{className:J?"flex flex-col gap-3 sm:flex-row sm:items-start":void 0,children:[J?(0,s.jsxs)("div",{className:"relative overflow-hidden rounded-[10px] sm:shrink-0",children:[(0,s.jsx)("img",{src:J,alt:b?.prompt??g("image.editSource"),className:"block h-auto w-full sm:h-28 sm:w-auto sm:max-w-[7.5rem]"}),b?null:(0,s.jsx)("button",{type:"button",onClick:()=>o(void 0),className:"absolute right-1 top-1 inline-flex h-6 w-6 items-center justify-center rounded-full border-0 bg-black/60 text-white hover:bg-black/80",title:g("image.removeSource"),"aria-label":g("image.removeSource"),children:(0,s.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M18 6 6 18M6 6l12 12"})})})]}):null,(0,s.jsx)("textarea",{ref:i,id:"image-prompt",rows:2,value:k,maxLength:32e3,"aria-label":g("image.prompt"),onChange:a=>l(a.target.value),onPaste:a=>{w&&x(a.clipboardData.files)&&a.preventDefault()},placeholder:p?g("image.editPromptPlaceholder"):g("image.promptPlaceholder"),className:`image-generation-prompt w-full resize-none rounded-[10px] border-0 bg-bg px-3 py-2.5 leading-[1.5] text-text outline-none ring-1 ring-inset ring-transparent placeholder:text-text-dim focus:ring-accent/50 ${J?"sm:min-h-28 sm:flex-1":""}`,style:{fontFamily:"var(--font-chat)",fontSize:"var(--chat-content-font-size, 14px)"}})]})}),(0,s.jsxs)("footer",{className:"flex shrink-0 items-center gap-2 px-3 pb-[max(0.75rem,env(safe-area-inset-bottom))] pt-3",children:[(0,s.jsxs)("div",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-x-1 gap-y-0.5",children:[w&&!n?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{type:"button",onClick:()=>j.current?.click(),className:"inline-flex h-7 w-7 flex-none items-center justify-center rounded-md border-0 bg-transparent text-text-muted hover:bg-bg-hover hover:text-text",title:g("image.addSource"),"aria-label":g("image.addSource"),children:(0,s.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),(0,s.jsx)("circle",{cx:"8.5",cy:"8.5",r:"1.5"}),(0,s.jsx)("polyline",{points:"21 15 16 10 5 21"})]})}),(0,s.jsx)("input",{ref:j,type:"file",accept:"image/*",hidden:!0,onChange:a=>{x(a.target.files??[]),a.target.value=""}})]}):null,I?(0,s.jsx)(bL,{value:r,label:g("image.connection"),onChange:u,children:a.connections.map(a=>(0,s.jsx)("option",{value:a.id,children:a.label},a.id))}):null,E.length?(0,s.jsx)(bL,{value:y,label:g("image.aspect"),onChange:z,children:E.map(a=>{let b,c,d;return(0,s.jsx)("option",{value:a,children:"auto"===(b="auto"===(d=a.trim())?"auto":(c=function(a){let b=/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?)$/.exec(a.trim())??/^(\d+)x(\d+)$/.exec(a.trim());if(!b)return null;let c=Number(b[1]),d=Number(b[2]);return!Number.isFinite(c)||!Number.isFinite(d)||c<=0||d<=0?null:{width:c,height:d}}(d))?c.width===c.height?"square":c.width>c.height?"landscape":"portrait":null)?g("image.aspectAuto"):"square"===b?`${g("image.aspectSquare")} ${a}`:"portrait"===b?`${g("image.aspectPortrait")} ${a}`:"landscape"===b?`${g("image.aspectLandscape")} ${a}`:a},a)})}):null,F.length?(0,s.jsx)(bL,{value:A,label:g("image.resolution"),onChange:B,children:F.map(a=>(0,s.jsx)("option",{value:a,children:a.toUpperCase()},a))}):null,H.length?(0,s.jsx)(bL,{value:C,label:g("image.quality"),onChange:D,children:H.map(a=>(0,s.jsx)("option",{value:a,children:"auto"===a?g("image.qualityAuto"):"low"===a?g("image.qualityLow"):"medium"===a?g("image.qualityMedium"):"high"===a?g("image.qualityHigh"):a},a))}):null]}),(0,s.jsx)("button",{type:"button",disabled:!k.trim(),onClick:K,className:"h-8 shrink-0 rounded-md border-0 bg-accent px-3 text-[12.5px] font-medium text-white disabled:cursor-not-allowed disabled:opacity-50",children:p?g("image.edit"):g("image.generate")})]})]})})}let bN=/\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~]|\][^\x07]*(?:\x07|\x1B\\))/g,bO=/^\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~]|\][^\x07]*(?:\x07|\x1B\\))/,bP=/\x1B_pi:c\x07/g;function bQ(a){return a.replace(bP,"").replace(bN,"")}function bR(a){let b=[],c=0;for(;c<a.length;){if(27===a.charCodeAt(c)){let b=a.slice(c).match(bO);if(b){c+=b[0].length;continue}}let d=a.codePointAt(c);if(void 0===d)break;let e=String.fromCodePoint(d);b.push({start:c,end:c+e.length,char:e}),c+=e.length}return b}function bS(a,b){let c=bR(a)[b];return c?a.slice(0,c.start)+a.slice(c.end):a}function bT(a){return bR(a)[0]?.char}let bU={ArrowUp:"\x1b[A",ArrowDown:"\x1b[B",ArrowRight:"\x1b[C",ArrowLeft:"\x1b[D",Home:"\x1b[H",End:"\x1b[F",Insert:"\x1b[2~",Delete:"\x1b[3~",PageUp:"\x1b[5~",PageDown:"\x1b[6~",Escape:"\x1b",Backspace:""},bV={ArrowLeft:"\x1bb",ArrowRight:"\x1bf",ArrowUp:"\x1bp",ArrowDown:"\x1bn"};function bW(a){return"user"===a.role||"custom"===a.role&&"compaction"===a.customType}function bX(a){return"custom"===a.role&&"pi-web:subagent-notification"===a.customType}function bY(a){return bW(a)||bX(a)}function bZ(a,b={}){return"thinking"===a.type&&!a.deferred&&!b.isStreaming&&""===a.thinking.trim()}function b$(a,b={}){return(a.content??[]).filter(a=>!bZ(a,b)&&!function(a,b={}){return"text"===a.type&&!b.isStreaming&&""===a.text.trim()}(a,b))}function b_(a,b={}){return b.isStreaming||"error"!==a.stopReason?null:a.errorMessage?.trim()||"Unknown provider error"}function b0(a,b={}){return"image"===a.type||"text"===a.type&&(b.isStreaming?a.text.length>0:a.text.trim().length>0)}function b1(a,b={}){let c=b$(a,b),d=c.findLastIndex(a=>!b0(a,b));return -1===d?{answerBlocks:c,processBlocks:[]}:{processBlocks:c.slice(0,d+1),answerBlocks:c.slice(d+1)}}function b2(a,b={}){return b1(a,b).answerBlocks.some(a=>b0(a,b))}function b3(a){return a.filter(a=>"toolCall"===a.type).length}function b4(a,b,c={}){let d={...a,content:b};return c.omitUsage&&(d.usage=void 0),c.omitError&&("error"===d.stopReason&&(d.stopReason="stop"),d.errorMessage=void 0),d}function b5(a,b={}){let c=function(a,b={}){let{processBlocks:c,answerBlocks:d}=b1(a,b),e=[],f=[];for(let a of c)"text"===a.type&&a.text.trim().length>400?f.push(a):e.push(a);return{answerBlocks:[...f,...d],processBlocks:e}}(a,b),d=b2(a,b),e=!!b_(a,b),f=c.answerBlocks.length>0?b4(a,c.answerBlocks,{omitError:!d}):null;return{processMessage:b$({...a,content:c.processBlocks},b).length>0||e&&!d?b4(a,c.processBlocks,{omitUsage:!!f&&!b.isStreaming,omitError:d}):null,answerMessage:f}}let b6=/^\*\*\* (Add|Update|Delete) File: (.+)$/,b7=/^\*\*\* Move to: (.+)$/;function b8(){return{lineNo:null,text:"",type:"empty"}}function b9(a){if(!a.includes("*** Begin Patch"))return null;let b=[],c=null,d=!1,e=[],f=[],g=()=>{if(!c){e=[],f=[];return}let a=Math.max(e.length,f.length);for(let b=0;b<a;b+=1){let a=e[b]?{lineNo:e[b].lineNo,text:e[b].text,type:"removed"}:b8(),d=f[b]?{lineNo:f[b].lineNo,text:f[b].text,type:"added"}:b8();c.rows.push({type:"line",left:a,right:d})}e=[],f=[]};for(let h of a.split(/\r?\n/)){if(h.startsWith("*** Begin Patch")||h.startsWith("*** End Patch")){g(),d=!1;continue}let a=h.match(b6);if(a){g(),d=!1;let e=a[1].toLowerCase();c={path:a[2].trim(),operation:e,rows:[]},b.push(c);continue}if(!c)continue;let i=h.match(b7);if(i){c.moveTo=i[1].trim();continue}if(h.startsWith("@@")){g(),d=!0,c.rows.push({type:"hunk",text:h});continue}if(h.startsWith("*** "))return null;if(""===h){g();continue}if(!d&&"update"===c.operation)continue;let j=h[0]??"",k=h.slice(1);"+"===j?f.push({lineNo:null,text:k}):"-"===j?e.push({lineNo:null,text:k}):" "===j&&(g(),c.rows.push({type:"line",left:{lineNo:null,text:k,type:"context"},right:{lineNo:null,text:k,type:"context"}}))}return g(),b.length>0?b:null}function ca(a){return!a.defaultPrevented&&0===a.button&&!a.shiftKey&&!a.altKey}function cb(a){try{return decodeURIComponent(a)}catch{return a}}function cc(a){return/^[a-zA-Z]:[\\/]/.test(a)||a.startsWith("\\\\")?a.replace(/\\/g,"/"):a}function cd(a){let b=cc(a),c=/^[a-zA-Z]:\//.test(b),d=b.startsWith("//"),e=b.startsWith("/")&&!c&&!d,f=[];for(let a of b.split("/"))if(a&&"."!==a){if(".."===a){f.length>0&&".."!==f[f.length-1]?f.pop():e||c||d||f.push(a);continue}f.push(a)}let g=f.join("/");return c?g:d?`//${g}`:e?`/${g}`:g}function ce(a,b,c=b){let d,e,f,g,h;if(!a)return null;let i=a.split("#",1)[0].split("?",1)[0].trim();if(!i)return null;let j=null,k=null,l=cb(i),m=l.startsWith("\\\\"),n=cc(l),o=n.toLowerCase();if(o.startsWith("/api/")||o.startsWith("/_next/")||!m&&n.startsWith("//")||/^[a-zA-Z][a-zA-Z0-9+.-]*:/i.test(n)&&!o.startsWith("file:")&&!/^[a-zA-Z]:\//.test(n))return null;if(o.startsWith("file:")?k=(j=function(a){try{let b=new URL(a);if("file:"!==b.protocol)return null;let c=cb(b.pathname);if(b.hostname)return`//${b.hostname}${c.startsWith("/")?c:`/${c}`}`;if(/^\/[a-zA-Z]:\//.test(c))return c.slice(1);return c}catch{return null}}(i))?"absolute":null:/^[a-zA-Z]:\//.test(n)||n.startsWith("/")?(j=n,k="absolute"):b&&!(n.startsWith("#")||n.startsWith("?"))&&(n.startsWith("./")||n.startsWith("../")||n.includes("/")||/(^|\/)\.?[^/]+\.[^/.]+$/.test(n))&&(j=`${cc(b).replace(/\/+$/,"")}/${n}`,k="relative"),!j)return null;let p=cd(j).replace(/:\d+(?::\d+)?$/,"");return"relative"===k&&c&&(d=cd(p).replace(/\/+$/,""),e=cd(c).replace(/\/+$/,""),g=(f=/^[a-zA-Z]:\//.test(d)||/^[a-zA-Z]:\//.test(e))?d.toLowerCase():d,!(g===(h=f?e.toLowerCase():e)||g.startsWith(`${h}/`)))?null:p}function cf(a){let b=a.toLowerCase();return"edit"===b||b.startsWith("edit_")||b.endsWith(".edit")||b.endsWith("_edit")||b.includes("str_replace")||b.includes("replace_editor")}function cg(a){let b=a.toLowerCase();return"apply_patch"===b||b.endsWith(".apply_patch")||b.endsWith("/apply_patch")||b.endsWith("_apply_patch")}function ch(a,b,c=50){let d=Math.max(0,a),e=Math.min(Math.max(0,b),Math.max(0,d-Math.min(c,d))),f=d-e;return{startIndex:Math.max(0,f-c),endIndex:f}}function ci(a,b,c,d=8){return a+b>=c-d}class cj extends Error{constructor(a,b){super(b),this.name="OutlineLocateError",this.reason=a}}async function ck(a,b,c,d){let e=b,f=new Set;for(;;){if(d.throwIfAborted(),e.entryIds.includes(a))return;let b=e.oldestEntryId;if(!e.hasMore||!b)throw new cj("exhausted","Question is no longer in this branch. Refresh the outline and try again.");if(f.has(b))throw new cj("stalled","History did not advance. Please try again.");f.add(b);let g=await c(b);if(d.throwIfAborted(),!g)throw new cj("load_failed","Could not load this question. Please try again.");if(g.entryIds.includes(a))return;if(g.oldestEntryId===b||null!==g.oldestEntryId&&f.has(g.oldestEntryId))throw new cj("stalled","History did not advance. Please try again.");e=g}}function cl(a){let b=[],c=String(a||""),d=c.indexOf(","),e=0,f=!1;for(;!f;){-1===d&&(d=c.length,f=!0);let a=c.slice(e,d).trim();(a||!f)&&b.push(a),e=d+1,d=c.indexOf(",",e)}return b}function cm(a,b){let c=b||{};return(""===a[a.length-1]?[...a,""]:a).join((c.padRight?" ":"")+","+(!1===c.padLeft?"":" ")).trim()}let cn=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,co=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cp={};function cq(a,b){return((b||cp).jsx?co:cn).test(a)}let cr=/[ \t\n\f\r]/g;function cs(a){return""===a.replace(cr,"")}class ct{constructor(a,b,c){this.normal=b,this.property=a,c&&(this.space=c)}}function cu(a,b){let c={},d={};for(let b of a)Object.assign(c,b.property),Object.assign(d,b.normal);return new ct(c,d,b)}function cv(a){return a.toLowerCase()}ct.prototype.normal={},ct.prototype.property={},ct.prototype.space=void 0;class cw{constructor(a,b){this.attribute=b,this.property=a}}cw.prototype.attribute="",cw.prototype.booleanish=!1,cw.prototype.boolean=!1,cw.prototype.commaOrSpaceSeparated=!1,cw.prototype.commaSeparated=!1,cw.prototype.defined=!1,cw.prototype.mustUseProperty=!1,cw.prototype.number=!1,cw.prototype.overloadedBoolean=!1,cw.prototype.property="",cw.prototype.spaceSeparated=!1,cw.prototype.space=void 0;let cx=0,cy=cF(),cz=cF(),cA=cF(),cB=cF(),cC=cF(),cD=cF(),cE=cF();function cF(){return 2**++cx}let cG=Object.keys(q);class cH extends cw{constructor(a,b,c,d){let e=-1;if(super(a,b),function(a,b,c){c&&(a[b]=c)}(this,"space",d),"number"==typeof c)for(;++e<cG.length;){const a=cG[e];!function(a,b,c){c&&(a[b]=c)}(this,cG[e],(c&q[a])===q[a])}}}function cI(a){let b={},c={};for(let[d,e]of Object.entries(a.properties)){let f=new cH(d,a.transform(a.attributes||{},d),e,a.space);a.mustUseProperty&&a.mustUseProperty.includes(d)&&(f.mustUseProperty=!0),b[d]=f,c[cv(d)]=d,c[cv(f.attribute)]=d}return new ct(b,c,a.space)}cH.prototype.defined=!0;let cJ=cI({properties:{ariaActiveDescendant:null,ariaAtomic:cz,ariaAutoComplete:null,ariaBusy:cz,ariaChecked:cz,ariaColCount:cB,ariaColIndex:cB,ariaColSpan:cB,ariaControls:cC,ariaCurrent:null,ariaDescribedBy:cC,ariaDetails:null,ariaDisabled:cz,ariaDropEffect:cC,ariaErrorMessage:null,ariaExpanded:cz,ariaFlowTo:cC,ariaGrabbed:cz,ariaHasPopup:null,ariaHidden:cz,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:cC,ariaLevel:cB,ariaLive:null,ariaModal:cz,ariaMultiLine:cz,ariaMultiSelectable:cz,ariaOrientation:null,ariaOwns:cC,ariaPlaceholder:null,ariaPosInSet:cB,ariaPressed:cz,ariaReadOnly:cz,ariaRelevant:null,ariaRequired:cz,ariaRoleDescription:cC,ariaRowCount:cB,ariaRowIndex:cB,ariaRowSpan:cB,ariaSelected:cz,ariaSetSize:cB,ariaSort:null,ariaValueMax:cB,ariaValueMin:cB,ariaValueNow:cB,ariaValueText:null,role:null},transform:(a,b)=>"role"===b?b:"aria-"+b.slice(4).toLowerCase()});function cK(a,b){return b in a?a[b]:b}function cL(a,b){return cK(a,b.toLowerCase())}let cM=cI({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:cD,acceptCharset:cC,accessKey:cC,action:null,allow:null,allowFullScreen:cy,allowPaymentRequest:cy,allowUserMedia:cy,alt:null,as:null,async:cy,autoCapitalize:null,autoComplete:cC,autoFocus:cy,autoPlay:cy,blocking:cC,capture:null,charSet:null,checked:cy,cite:null,className:cC,cols:cB,colSpan:null,content:null,contentEditable:cz,controls:cy,controlsList:cC,coords:cB|cD,crossOrigin:null,data:null,dateTime:null,decoding:null,default:cy,defer:cy,dir:null,dirName:null,disabled:cy,download:cA,draggable:cz,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:cy,formTarget:null,headers:cC,height:cB,hidden:cA,high:cB,href:null,hrefLang:null,htmlFor:cC,httpEquiv:cC,id:null,imageSizes:null,imageSrcSet:null,inert:cy,inputMode:null,integrity:null,is:null,isMap:cy,itemId:null,itemProp:cC,itemRef:cC,itemScope:cy,itemType:cC,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:cy,low:cB,manifest:null,max:null,maxLength:cB,media:null,method:null,min:null,minLength:cB,multiple:cy,muted:cy,name:null,nonce:null,noModule:cy,noValidate:cy,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:cy,optimum:cB,pattern:null,ping:cC,placeholder:null,playsInline:cy,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:cy,referrerPolicy:null,rel:cC,required:cy,reversed:cy,rows:cB,rowSpan:cB,sandbox:cC,scope:null,scoped:cy,seamless:cy,selected:cy,shadowRootClonable:cy,shadowRootDelegatesFocus:cy,shadowRootMode:null,shape:null,size:cB,sizes:null,slot:null,span:cB,spellCheck:cz,src:null,srcDoc:null,srcLang:null,srcSet:null,start:cB,step:null,style:null,tabIndex:cB,target:null,title:null,translate:null,type:null,typeMustMatch:cy,useMap:null,value:cz,width:cB,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:cC,axis:null,background:null,bgColor:null,border:cB,borderColor:null,bottomMargin:cB,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:cy,declare:cy,event:null,face:null,frame:null,frameBorder:null,hSpace:cB,leftMargin:cB,link:null,longDesc:null,lowSrc:null,marginHeight:cB,marginWidth:cB,noResize:cy,noHref:cy,noShade:cy,noWrap:cy,object:null,profile:null,prompt:null,rev:null,rightMargin:cB,rules:null,scheme:null,scrolling:cz,standby:null,summary:null,text:null,topMargin:cB,valueType:null,version:null,vAlign:null,vLink:null,vSpace:cB,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:cy,disableRemotePlayback:cy,prefix:null,property:null,results:cB,security:null,unselectable:null},space:"html",transform:cL}),cN=cI({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:cE,accentHeight:cB,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:cB,amplitude:cB,arabicForm:null,ascent:cB,attributeName:null,attributeType:null,azimuth:cB,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:cB,by:null,calcMode:null,capHeight:cB,className:cC,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:cB,diffuseConstant:cB,direction:null,display:null,dur:null,divisor:cB,dominantBaseline:null,download:cy,dx:null,dy:null,edgeMode:null,editable:null,elevation:cB,enableBackground:null,end:null,event:null,exponent:cB,externalResourcesRequired:null,fill:null,fillOpacity:cB,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:cD,g2:cD,glyphName:cD,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:cB,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:cB,horizOriginX:cB,horizOriginY:cB,id:null,ideographic:cB,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:cB,k:cB,k1:cB,k2:cB,k3:cB,k4:cB,kernelMatrix:cE,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:cB,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:cB,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:cB,overlineThickness:cB,paintOrder:null,panose1:null,path:null,pathLength:cB,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:cC,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:cB,pointsAtY:cB,pointsAtZ:cB,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:cE,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:cE,rev:cE,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:cE,requiredFeatures:cE,requiredFonts:cE,requiredFormats:cE,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:cB,specularExponent:cB,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:cB,strikethroughThickness:cB,string:null,stroke:null,strokeDashArray:cE,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:cB,strokeOpacity:cB,strokeWidth:null,style:null,surfaceScale:cB,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:cE,tabIndex:cB,tableValues:null,target:null,targetX:cB,targetY:cB,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:cE,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:cB,underlineThickness:cB,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:cB,values:null,vAlphabetic:cB,vMathematical:cB,vectorEffect:null,vHanging:cB,vIdeographic:cB,version:null,vertAdvY:cB,vertOriginX:cB,vertOriginY:cB,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:cB,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:cK}),cO=cI({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(a,b)=>"xlink:"+b.slice(5).toLowerCase()}),cP=cI({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:cL}),cQ=cI({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(a,b)=>"xml:"+b.slice(3).toLowerCase()}),cR=cu([cJ,cM,cO,cP,cQ],"html"),cS=cu([cJ,cN,cO,cP,cQ],"svg"),cT=/[A-Z]/g,cU=/-[a-z]/g,cV=/^data[-\w.:]+$/i;function cW(a,b){let c=cv(b),d=b,e=cw;if(c in a.normal)return a.property[a.normal[c]];if(c.length>4&&"data"===c.slice(0,4)&&cV.test(b)){if("-"===b.charAt(4)){let a=b.slice(5).replace(cU,cY);d="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{let a=b.slice(4);if(!cU.test(a)){let c=a.replace(cT,cX);"-"!==c.charAt(0)&&(c="-"+c),b="data"+c}}e=cH}return new e(d,b)}function cX(a){return"-"+a.toLowerCase()}function cY(a){return a.charAt(1).toUpperCase()}let cZ={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};function c$(a){let b=String(a||"").trim();return b?b.split(/[ \t\n\r\f]+/g):[]}function c_(a){return a.join(" ").trim()}var c0=c(32506);let c1=c3("end"),c2=c3("start");function c3(a){return function(b){let c=b&&b.position&&b.position[a]||{};if("number"==typeof c.line&&c.line>0&&"number"==typeof c.column&&c.column>0)return{line:c.line,column:c.column,offset:"number"==typeof c.offset&&c.offset>-1?c.offset:void 0}}}function c4(a){let b=c2(a),c=c1(a);if(b&&c)return{start:b,end:c}}function c5(a){return a&&"object"==typeof a?"position"in a||"type"in a?c7(a.position):"start"in a||"end"in a?c7(a):"line"in a||"column"in a?c6(a):"":""}function c6(a){return c8(a&&a.line)+":"+c8(a&&a.column)}function c7(a){return c6(a&&a.start)+"-"+c6(a&&a.end)}function c8(a){return a&&"number"==typeof a?a:1}class c9 extends Error{constructor(a,b,c){super(),"string"==typeof b&&(c=b,b=void 0);let d="",e={},f=!1;if(b&&(e="line"in b&&"column"in b||"start"in b&&"end"in b?{place:b}:"type"in b?{ancestors:[b],place:b.position}:{...b}),"string"==typeof a?d=a:!e.cause&&a&&(f=!0,d=a.message,e.cause=a),!e.ruleId&&!e.source&&"string"==typeof c){const a=c.indexOf(":");-1===a?e.ruleId=c:(e.source=c.slice(0,a),e.ruleId=c.slice(a+1))}if(!e.place&&e.ancestors&&e.ancestors){const a=e.ancestors[e.ancestors.length-1];a&&(e.place=a.position)}const g=e.place&&"start"in e.place?e.place.start:e.place;this.ancestors=e.ancestors||void 0,this.cause=e.cause||void 0,this.column=g?g.column:void 0,this.fatal=void 0,this.file="",this.message=d,this.line=g?g.line:void 0,this.name=c5(e.place)||"1:1",this.place=e.place||void 0,this.reason=this.message,this.ruleId=e.ruleId||void 0,this.source=e.source||void 0,this.stack=f&&e.cause&&"string"==typeof e.cause.stack?e.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}c9.prototype.file="",c9.prototype.name="",c9.prototype.reason="",c9.prototype.message="",c9.prototype.stack="",c9.prototype.column=void 0,c9.prototype.line=void 0,c9.prototype.ancestors=void 0,c9.prototype.cause=void 0,c9.prototype.fatal=void 0,c9.prototype.place=void 0,c9.prototype.ruleId=void 0,c9.prototype.source=void 0;let da={}.hasOwnProperty,db=new Map,dc=/[A-Z]/g,dd=new Set(["table","tbody","thead","tfoot","tr"]),de=new Set(["td","th"]),df="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function dg(a,b,c){var d,e,f,g,h,i,j,k,l;let m,n,o,p,q,r,s,t,u,v,w;return"element"===b.type?(d=a,e=b,f=c,n=m=d.schema,"svg"===e.tagName.toLowerCase()&&"html"===m.space&&(d.schema=cS),d.ancestors.push(e),o=dk(d,e.tagName,!1),p=function(a,b){let c,d,e={};for(d in b.properties)if("children"!==d&&da.call(b.properties,d)){let f=function(a,b,c){let d=cW(a.schema,b);if(!(null==c||"number"==typeof c&&Number.isNaN(c))){if(Array.isArray(c)&&(c=d.commaSeparated?cm(c):c_(c)),"style"===d.property){let b="object"==typeof c?c:function(a,b){try{return c0(b,{reactCompat:!0})}catch(c){if(a.ignoreInvalidStyle)return{};let b=new c9("Cannot parse `style` attribute",{ancestors:a.ancestors,cause:c,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw b.file=a.filePath||void 0,b.url=df+"#cannot-parse-style-attribute",b}}(a,String(c));return"css"===a.stylePropertyNameCase&&(b=function(a){let b,c={};for(b in a)da.call(a,b)&&(c[function(a){let b=a.replace(dc,dm);return"ms-"===b.slice(0,3)&&(b="-"+b),b}(b)]=a[b]);return c}(b)),["style",b]}return["react"===a.elementAttributeNameCase&&d.space?cZ[d.property]||d.property:d.attribute,c]}}(a,d,b.properties[d]);if(f){let[d,g]=f;a.tableCellAlignToStyle&&"align"===d&&"string"==typeof g&&de.has(b.tagName)?c=g:e[d]=g}}return c&&((e.style||(e.style={}))["css"===a.stylePropertyNameCase?"text-align":"textAlign"]=c),e}(d,e),q=dj(d,e),dd.has(e.tagName)&&(q=q.filter(function(a){return"string"!=typeof a||!("object"==typeof a?"text"===a.type&&cs(a.value):cs(a))})),dh(d,p,o,e),di(p,q),d.ancestors.pop(),d.schema=m,d.create(e,o,p,f)):"mdxFlowExpression"===b.type||"mdxTextExpression"===b.type?function(a,b){if(b.data&&b.data.estree&&a.evaluater){let c=b.data.estree.body[0];return c.type,a.evaluater.evaluateExpression(c.expression)}dl(a,b.position)}(a,b):"mdxJsxFlowElement"===b.type||"mdxJsxTextElement"===b.type?(g=a,h=b,i=c,s=r=g.schema,"svg"===h.name&&"html"===r.space&&(g.schema=cS),g.ancestors.push(h),t=null===h.name?g.Fragment:dk(g,h.name,!0),u=function(a,b){let c={};for(let d of b.attributes)if("mdxJsxExpressionAttribute"===d.type)if(d.data&&d.data.estree&&a.evaluater){let b=d.data.estree.body[0];b.type;let e=b.expression;e.type;let f=e.properties[0];f.type,Object.assign(c,a.evaluater.evaluateExpression(f.argument))}else dl(a,b.position);else{let e,f=d.name;if(d.value&&"object"==typeof d.value)if(d.value.data&&d.value.data.estree&&a.evaluater){let b=d.value.data.estree.body[0];b.type,e=a.evaluater.evaluateExpression(b.expression)}else dl(a,b.position);else e=null===d.value||d.value;c[f]=e}return c}(g,h),v=dj(g,h),dh(g,u,t,h),di(u,v),g.ancestors.pop(),g.schema=r,g.create(h,t,u,i)):"mdxjsEsm"===b.type?function(a,b){if(b.data&&b.data.estree&&a.evaluater)return a.evaluater.evaluateProgram(b.data.estree);dl(a,b.position)}(a,b):"root"===b.type?(j=a,k=b,l=c,di(w={},dj(j,k)),j.create(k,j.Fragment,w,l)):"text"===b.type?b.value:void 0}function dh(a,b,c,d){"string"!=typeof c&&c!==a.Fragment&&a.passNode&&(b.node=d)}function di(a,b){if(b.length>0){let c=b.length>1?b:b[0];c&&(a.children=c)}}function dj(a,b){let c=[],d=-1,e=a.passKeys?new Map:db;for(;++d<b.children.length;){let f,g=b.children[d];if(a.passKeys){let a="element"===g.type?g.tagName:"mdxJsxFlowElement"===g.type||"mdxJsxTextElement"===g.type?g.name:void 0;if(a){let b=e.get(a)||0;f=a+"-"+b,e.set(a,b+1)}}let h=dg(a,g,f);void 0!==h&&c.push(h)}return c}function dk(a,b,c){let d;if(c)if(b.includes(".")){let a,c=b.split("."),e=-1;for(;++e<c.length;){let b=cq(c[e])?{type:"Identifier",name:c[e]}:{type:"Literal",value:c[e]};a=a?{type:"MemberExpression",object:a,property:b,computed:!!(e&&"Literal"===b.type),optional:!1}:b}d=a}else d=cq(b)&&!/^[a-z]/.test(b)?{type:"Identifier",name:b}:{type:"Literal",value:b};else d={type:"Literal",value:b};if("Literal"===d.type){let b=d.value;return da.call(a.components,b)?a.components[b]:b}if(a.evaluater)return a.evaluater.evaluateExpression(d);dl(a)}function dl(a,b){let c=new c9("Cannot handle MDX estrees without `createEvaluater`",{ancestors:a.ancestors,place:b,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw c.file=a.filePath||void 0,c.url=df+"#cannot-handle-mdx-estrees-without-createevaluater",c}function dm(a){return"-"+a.toLowerCase()}let dn={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},dp={};function dq(a,b){let c=b||dp;return dr(a,"boolean"!=typeof c.includeImageAlt||c.includeImageAlt,"boolean"!=typeof c.includeHtml||c.includeHtml)}function dr(a,b,c){var d;if((d=a)&&"object"==typeof d){if("value"in a)return"html"!==a.type||c?a.value:"";if(b&&"alt"in a&&a.alt)return a.alt;if("children"in a)return ds(a.children,b,c)}return Array.isArray(a)?ds(a,b,c):""}function ds(a,b,c){let d=[],e=-1;for(;++e<a.length;)d[e]=dr(a[e],b,c);return d.join("")}function dt(a,b,c,d){let e,f=a.length,g=0;if(b=b<0?-b>f?0:f+b:b>f?f:b,c=c>0?c:0,d.length<1e4)(e=Array.from(d)).unshift(b,c),a.splice(...e);else for(c&&a.splice(b,c);g<d.length;)(e=d.slice(g,g+1e4)).unshift(b,0),a.splice(...e),g+=1e4,b+=1e4}function du(a,b){return a.length>0?(dt(a,a.length,0,b),a):b}class dv{constructor(a){this.left=a?[...a]:[],this.right=[]}get(a){if(a<0||a>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+a+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return a<this.left.length?this.left[a]:this.right[this.right.length-a+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(a,b){let c=null==b?1/0:b;return c<this.left.length?this.left.slice(a,c):a>this.left.length?this.right.slice(this.right.length-c+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-c+this.left.length).reverse())}splice(a,b,c){this.setCursor(Math.trunc(a));let d=this.right.splice(this.right.length-(b||0),1/0);return c&&dw(this.left,c),d.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(a){this.setCursor(1/0),this.left.push(a)}pushMany(a){this.setCursor(1/0),dw(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),dw(this.right,a.reverse())}setCursor(a){if(a!==this.left.length&&(!(a>this.left.length)||0!==this.right.length)&&(!(a<0)||0!==this.left.length))if(a<this.left.length){let b=this.left.splice(a,1/0);dw(this.right,b.reverse())}else{let b=this.right.splice(this.left.length+this.right.length-a,1/0);dw(this.left,b.reverse())}}}function dw(a,b){let c=0;if(b.length<1e4)a.push(...b);else for(;c<b.length;)a.push(...b.slice(c,c+1e4)),c+=1e4}function dx(a){let b,c,d,e,f,g,h,i={},j=-1,k=new dv(a);for(;++j<k.length;){for(;j in i;)j=i[j];if(b=k.get(j),j&&"chunkFlow"===b[1].type&&"listItemPrefix"===k.get(j-1)[1].type&&((d=0)<(g=b[1]._tokenizer.events).length&&"lineEndingBlank"===g[d][1].type&&(d+=2),d<g.length&&"content"===g[d][1].type))for(;++d<g.length&&"content"!==g[d][1].type;)"chunkText"===g[d][1].type&&(g[d][1]._isInFirstContentOfListItem=!0,d++);if("enter"===b[0])b[1].contentType&&(Object.assign(i,function(a,b){let c,d,e=a.get(b)[1],f=a.get(b)[2],g=b-1,h=[],i=e._tokenizer;!i&&(i=f.parser[e.contentType](e.start),e._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));let j=i.events,k=[],l={},m=-1,n=e,o=0,p=0,q=[0];for(;n;){for(;a.get(++g)[1]!==n;);h.push(g),!n._tokenizer&&(c=f.sliceStream(n),n.next||c.push(null),d&&i.defineSkip(n.start),n._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(c),n._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),d=n,n=n.next}for(n=e;++m<j.length;)"exit"===j[m][0]&&"enter"===j[m-1][0]&&j[m][1].type===j[m-1][1].type&&j[m][1].start.line!==j[m][1].end.line&&(p=m+1,q.push(p),n._tokenizer=void 0,n.previous=void 0,n=n.next);for(i.events=[],n?(n._tokenizer=void 0,n.previous=void 0):q.pop(),m=q.length;m--;){let b=j.slice(q[m],q[m+1]),c=h.pop();k.push([c,c+b.length-1]),a.splice(c,2,b)}for(k.reverse(),m=-1;++m<k.length;)l[o+k[m][0]]=o+k[m][1],o+=k[m][1]-k[m][0]-1;return l}(k,j)),j=i[j],h=!0);else if(b[1]._container){for(d=j,c=void 0;d--;)if("lineEnding"===(e=k.get(d))[1].type||"lineEndingBlank"===e[1].type)"enter"===e[0]&&(c&&(k.get(c)[1].type="lineEndingBlank"),e[1].type="lineEnding",c=d);else if("linePrefix"===e[1].type||"listItemIndent"===e[1].type);else break;c&&(b[1].end={...k.get(c)[1].start},(f=k.slice(c,j)).unshift(b),k.splice(c,j-c+1,f))}}return dt(a,0,1/0,k.slice(0)),!h}let dy={}.hasOwnProperty;function dz(a){let b={},c=-1;for(;++c<a.length;)!function(a,b){let c;for(c in b){let d,e=(dy.call(a,c)?a[c]:void 0)||(a[c]={}),f=b[c];if(f)for(d in f){dy.call(e,d)||(e[d]=[]);let a=f[d];!function(a,b){let c=-1,d=[];for(;++c<b.length;)("after"===b[c].add?a:d).push(b[c]);dt(a,0,0,d)}(e[d],Array.isArray(a)?a:a?[a]:[])}}}(b,a[c]);return b}let dA=dM(/[A-Za-z]/),dB=dM(/[\dA-Za-z]/),dC=dM(/[#-'*+\--9=?A-Z^-~]/);function dD(a){return null!==a&&(a<32||127===a)}let dE=dM(/\d/),dF=dM(/[\dA-Fa-f]/),dG=dM(/[!-/:-@[-`{-~]/);function dH(a){return null!==a&&a<-2}function dI(a){return null!==a&&(a<0||32===a)}function dJ(a){return -2===a||-1===a||32===a}let dK=dM(/\p{P}|\p{S}/u),dL=dM(/\s/);function dM(a){return function(b){return null!==b&&b>-1&&a.test(String.fromCharCode(b))}}function dN(a,b,c,d){let e=d?d-1:1/0,f=0;return function(d){return dJ(d)?(a.enter(c),function d(g){return dJ(g)&&f++<e?(a.consume(g),d):(a.exit(c),b(g))}(d)):b(d)}}let dO={tokenize:function(a){let b,c=a.attempt(this.parser.constructs.contentInitial,function(b){return null===b?void a.consume(b):(a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),dN(a,c,"linePrefix"))},function(c){return a.enter("paragraph"),function c(d){let e=a.enter("chunkText",{contentType:"text",previous:b});return b&&(b.next=e),b=e,function b(d){if(null===d){a.exit("chunkText"),a.exit("paragraph"),a.consume(d);return}return dH(d)?(a.consume(d),a.exit("chunkText"),c):(a.consume(d),b)}(d)}(c)});return c}},dP={tokenize:function(a){let b,c,d,e=this,f=[],g=0;return h;function h(b){if(g<f.length){let c=f[g];return e.containerState=c[1],a.attempt(c[0].continuation,i,j)(b)}return j(b)}function i(a){if(g++,e.containerState._closeFlow){let c;e.containerState._closeFlow=void 0,b&&r();let d=e.events.length,f=d;for(;f--;)if("exit"===e.events[f][0]&&"chunkFlow"===e.events[f][1].type){c=e.events[f][1].end;break}q(g);let h=d;for(;h<e.events.length;)e.events[h][1].end={...c},h++;return dt(e.events,f+1,0,e.events.slice(d)),e.events.length=h,j(a)}return h(a)}function j(c){if(g===f.length){if(!b)return m(c);if(b.currentConstruct&&b.currentConstruct.concrete)return o(c);e.interrupt=!!(b.currentConstruct&&!b._gfmTableDynamicInterruptHack)}return e.containerState={},a.check(dQ,k,l)(c)}function k(a){return b&&r(),q(g),m(a)}function l(a){return e.parser.lazy[e.now().line]=g!==f.length,d=e.now().offset,o(a)}function m(b){return e.containerState={},a.attempt(dQ,n,o)(b)}function n(a){return g++,f.push([e.currentConstruct,e.containerState]),m(a)}function o(d){if(null===d){b&&r(),q(0),a.consume(d);return}return b=b||e.parser.flow(e.now()),a.enter("chunkFlow",{_tokenizer:b,contentType:"flow",previous:c}),function b(c){if(null===c){p(a.exit("chunkFlow"),!0),q(0),a.consume(c);return}return dH(c)?(a.consume(c),p(a.exit("chunkFlow")),g=0,e.interrupt=void 0,h):(a.consume(c),b)}(d)}function p(a,f){let h=e.sliceStream(a);if(f&&h.push(null),a.previous=c,c&&(c.next=a),c=a,b.defineSkip(a.start),b.write(h),e.parser.lazy[a.start.line]){let a,c,f=b.events.length;for(;f--;)if(b.events[f][1].start.offset<d&&(!b.events[f][1].end||b.events[f][1].end.offset>d))return;let h=e.events.length,i=h;for(;i--;)if("exit"===e.events[i][0]&&"chunkFlow"===e.events[i][1].type){if(a){c=e.events[i][1].end;break}a=!0}for(q(g),f=h;f<e.events.length;)e.events[f][1].end={...c},f++;dt(e.events,i+1,0,e.events.slice(h)),e.events.length=f}}function q(b){let c=f.length;for(;c-- >b;){let b=f[c];e.containerState=b[1],b[0].exit.call(e,a)}f.length=b}function r(){b.write([null]),c=void 0,b=void 0,e.containerState._closeFlow=void 0}}},dQ={tokenize:function(a,b,c){return dN(a,a.attempt(this.parser.constructs.document,b,c),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},dR={partial:!0,tokenize:function(a,b,c){return function(b){return dJ(b)?dN(a,d,"linePrefix")(b):d(b)};function d(a){return null===a||dH(a)?b(a):c(a)}}},dS={resolve:function(a){return dx(a),a},tokenize:function(a,b){let c;return function(b){return a.enter("content"),c=a.enter("chunkContent",{contentType:"content"}),d(b)};function d(b){return null===b?e(b):dH(b)?a.check(dT,f,e)(b):(a.consume(b),d)}function e(c){return a.exit("chunkContent"),a.exit("content"),b(c)}function f(b){return a.consume(b),a.exit("chunkContent"),c.next=a.enter("chunkContent",{contentType:"content",previous:c}),c=c.next,d}}},dT={partial:!0,tokenize:function(a,b,c){let d=this;return function(b){return a.exit("chunkContent"),a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),dN(a,e,"linePrefix")};function e(e){if(null===e||dH(e))return c(e);let f=d.events[d.events.length-1];return!d.parser.constructs.disable.null.includes("codeIndented")&&f&&"linePrefix"===f[1].type&&f[2].sliceSerialize(f[1],!0).length>=4?b(e):a.interrupt(d.parser.constructs.flow,c,b)(e)}}},dU={tokenize:function(a){let b=this,c=a.attempt(dR,function(d){return null===d?void a.consume(d):(a.enter("lineEndingBlank"),a.consume(d),a.exit("lineEndingBlank"),b.currentConstruct=void 0,c)},a.attempt(this.parser.constructs.flowInitial,d,dN(a,a.attempt(this.parser.constructs.flow,d,a.attempt(dS,d)),"linePrefix")));return c;function d(d){return null===d?void a.consume(d):(a.enter("lineEnding"),a.consume(d),a.exit("lineEnding"),b.currentConstruct=void 0,c)}}},dV={resolveAll:dZ()},dW=dY("string"),dX=dY("text");function dY(a){return{resolveAll:dZ("text"===a?d$:void 0),tokenize:function(b){let c=this,d=this.parser.constructs[a],e=b.attempt(d,f,g);return f;function f(a){return i(a)?e(a):g(a)}function g(a){return null===a?void b.consume(a):(b.enter("data"),b.consume(a),h)}function h(a){return i(a)?(b.exit("data"),e(a)):(b.consume(a),h)}function i(a){if(null===a)return!0;let b=d[a],e=-1;if(b)for(;++e<b.length;){let a=b[e];if(!a.previous||a.previous.call(c,c.previous))return!0}return!1}}}}function dZ(a){return function(b,c){let d,e=-1;for(;++e<=b.length;)void 0===d?b[e]&&"data"===b[e][1].type&&(d=e,e++):b[e]&&"data"===b[e][1].type||(e!==d+2&&(b[d][1].end=b[e-1][1].end,b.splice(d+2,e-d-2),e=d+2),d=void 0);return a?a(b,c):b}}function d$(a,b){let c=0;for(;++c<=a.length;)if((c===a.length||"lineEnding"===a[c][1].type)&&"data"===a[c-1][1].type){let d,e=a[c-1][1],f=b.sliceStream(e),g=f.length,h=-1,i=0;for(;g--;){let a=f[g];if("string"==typeof a){for(h=a.length;32===a.charCodeAt(h-1);)i++,h--;if(h)break;h=-1}else if(-2===a)d=!0,i++;else if(-1===a);else{g++;break}}if(b._contentTypeTextTrailing&&c===a.length&&(i=0),i){let f={type:c===a.length||d||i<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:g?h:e.start._bufferIndex+h,_index:e.start._index+g,line:e.end.line,column:e.end.column-i,offset:e.end.offset-i},end:{...e.end}};e.end={...f.start},e.start.offset===e.end.offset?Object.assign(e,f):(a.splice(c,0,["enter",f,b],["exit",f,b]),c+=2)}c++}return a}let d_={name:"thematicBreak",tokenize:function(a,b,c){let d,e=0;return function(f){var g;return a.enter("thematicBreak"),d=g=f,function f(g){return g===d?(a.enter("thematicBreakSequence"),function b(c){return c===d?(a.consume(c),e++,b):(a.exit("thematicBreakSequence"),dJ(c)?dN(a,f,"whitespace")(c):f(c))}(g)):e>=3&&(null===g||dH(g))?(a.exit("thematicBreak"),b(g)):c(g)}(g)}}},d0={continuation:{tokenize:function(a,b,c){let d=this;return d.containerState._closeFlow=void 0,a.check(dR,function(c){return d.containerState.furtherBlankLines=d.containerState.furtherBlankLines||d.containerState.initialBlankLine,dN(a,b,"listItemIndent",d.containerState.size+1)(c)},function(c){return d.containerState.furtherBlankLines||!dJ(c)?(d.containerState.furtherBlankLines=void 0,d.containerState.initialBlankLine=void 0,e(c)):(d.containerState.furtherBlankLines=void 0,d.containerState.initialBlankLine=void 0,a.attempt(d2,b,e)(c))});function e(e){return d.containerState._closeFlow=!0,d.interrupt=void 0,dN(a,a.attempt(d0,b,c),"linePrefix",d.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(e)}}},exit:function(a){a.exit(this.containerState.type)},name:"list",tokenize:function(a,b,c){let d=this,e=d.events[d.events.length-1],f=e&&"linePrefix"===e[1].type?e[2].sliceSerialize(e[1],!0).length:0,g=0;return function(b){let e=d.containerState.type||(42===b||43===b||45===b?"listUnordered":"listOrdered");if("listUnordered"===e?!d.containerState.marker||b===d.containerState.marker:dE(b)){if(d.containerState.type||(d.containerState.type=e,a.enter(e,{_container:!0})),"listUnordered"===e)return a.enter("listItemPrefix"),42===b||45===b?a.check(d_,c,h)(b):h(b);if(!d.interrupt||49===b)return a.enter("listItemPrefix"),a.enter("listItemValue"),function b(e){return dE(e)&&++g<10?(a.consume(e),b):(!d.interrupt||g<2)&&(d.containerState.marker?e===d.containerState.marker:41===e||46===e)?(a.exit("listItemValue"),h(e)):c(e)}(b)}return c(b)};function h(b){return a.enter("listItemMarker"),a.consume(b),a.exit("listItemMarker"),d.containerState.marker=d.containerState.marker||b,a.check(dR,d.interrupt?c:i,a.attempt(d1,k,j))}function i(a){return d.containerState.initialBlankLine=!0,f++,k(a)}function j(b){return dJ(b)?(a.enter("listItemPrefixWhitespace"),a.consume(b),a.exit("listItemPrefixWhitespace"),k):c(b)}function k(c){return d.containerState.size=f+d.sliceSerialize(a.exit("listItemPrefix"),!0).length,b(c)}}},d1={partial:!0,tokenize:function(a,b,c){let d=this;return dN(a,function(a){let e=d.events[d.events.length-1];return!dJ(a)&&e&&"listItemPrefixWhitespace"===e[1].type?b(a):c(a)},"listItemPrefixWhitespace",d.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},d2={partial:!0,tokenize:function(a,b,c){let d=this;return dN(a,function(a){let e=d.events[d.events.length-1];return e&&"listItemIndent"===e[1].type&&e[2].sliceSerialize(e[1],!0).length===d.containerState.size?b(a):c(a)},"listItemIndent",d.containerState.size+1)}},d3={continuation:{tokenize:function(a,b,c){let d=this;return function(b){return dJ(b)?dN(a,e,"linePrefix",d.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):e(b)};function e(d){return a.attempt(d3,b,c)(d)}}},exit:function(a){a.exit("blockQuote")},name:"blockQuote",tokenize:function(a,b,c){let d=this;return function(b){if(62===b){let c=d.containerState;return c.open||(a.enter("blockQuote",{_container:!0}),c.open=!0),a.enter("blockQuotePrefix"),a.enter("blockQuoteMarker"),a.consume(b),a.exit("blockQuoteMarker"),e}return c(b)};function e(c){return dJ(c)?(a.enter("blockQuotePrefixWhitespace"),a.consume(c),a.exit("blockQuotePrefixWhitespace"),a.exit("blockQuotePrefix"),b):(a.exit("blockQuotePrefix"),b(c))}}};function d4(a,b,c,d,e,f,g,h,i){let j=i||1/0,k=0;return function(b){return 60===b?(a.enter(d),a.enter(e),a.enter(f),a.consume(b),a.exit(f),l):null===b||32===b||41===b||dD(b)?c(b):(a.enter(d),a.enter(g),a.enter(h),a.enter("chunkString",{contentType:"string"}),o(b))};function l(c){return 62===c?(a.enter(f),a.consume(c),a.exit(f),a.exit(e),a.exit(d),b):(a.enter(h),a.enter("chunkString",{contentType:"string"}),m(c))}function m(b){return 62===b?(a.exit("chunkString"),a.exit(h),l(b)):null===b||60===b||dH(b)?c(b):(a.consume(b),92===b?n:m)}function n(b){return 60===b||62===b||92===b?(a.consume(b),m):m(b)}function o(e){return!k&&(null===e||41===e||dI(e))?(a.exit("chunkString"),a.exit(h),a.exit(g),a.exit(d),b(e)):k<j&&40===e?(a.consume(e),k++,o):41===e?(a.consume(e),k--,o):null===e||32===e||40===e||dD(e)?c(e):(a.consume(e),92===e?p:o)}function p(b){return 40===b||41===b||92===b?(a.consume(b),o):o(b)}}function d5(a,b,c,d,e,f){let g,h=this,i=0;return function(b){return a.enter(d),a.enter(e),a.consume(b),a.exit(e),a.enter(f),j};function j(l){return i>999||null===l||91===l||93===l&&!g||94===l&&!i&&"_hiddenFootnoteSupport"in h.parser.constructs?c(l):93===l?(a.exit(f),a.enter(e),a.consume(l),a.exit(e),a.exit(d),b):dH(l)?(a.enter("lineEnding"),a.consume(l),a.exit("lineEnding"),j):(a.enter("chunkString",{contentType:"string"}),k(l))}function k(b){return null===b||91===b||93===b||dH(b)||i++>999?(a.exit("chunkString"),j(b)):(a.consume(b),g||(g=!dJ(b)),92===b?l:k)}function l(b){return 91===b||92===b||93===b?(a.consume(b),i++,k):k(b)}}function d6(a,b,c,d,e,f){let g;return function(b){return 34===b||39===b||40===b?(a.enter(d),a.enter(e),a.consume(b),a.exit(e),g=40===b?41:b,h):c(b)};function h(c){return c===g?(a.enter(e),a.consume(c),a.exit(e),a.exit(d),b):(a.enter(f),i(c))}function i(b){return b===g?(a.exit(f),h(g)):null===b?c(b):dH(b)?(a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),dN(a,i,"linePrefix")):(a.enter("chunkString",{contentType:"string"}),j(b))}function j(b){return b===g||null===b||dH(b)?(a.exit("chunkString"),i(b)):(a.consume(b),92===b?k:j)}function k(b){return b===g||92===b?(a.consume(b),j):j(b)}}function d7(a,b){let c;return function d(e){return dH(e)?(a.enter("lineEnding"),a.consume(e),a.exit("lineEnding"),c=!0,d):dJ(e)?dN(a,d,c?"linePrefix":"lineSuffix")(e):b(e)}}function d8(a){return a.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let d9={partial:!0,tokenize:function(a,b,c){return function(b){return dI(b)?d7(a,d)(b):c(b)};function d(b){return d6(a,e,c,"definitionTitle","definitionTitleMarker","definitionTitleString")(b)}function e(b){return dJ(b)?dN(a,f,"whitespace")(b):f(b)}function f(a){return null===a||dH(a)?b(a):c(a)}}},ea={name:"codeIndented",tokenize:function(a,b,c){let d=this;return function(b){return a.enter("codeIndented"),dN(a,e,"linePrefix",5)(b)};function e(b){let e=d.events[d.events.length-1];return e&&"linePrefix"===e[1].type&&e[2].sliceSerialize(e[1],!0).length>=4?function b(c){return null===c?f(c):dH(c)?a.attempt(eb,b,f)(c):(a.enter("codeFlowValue"),function c(d){return null===d||dH(d)?(a.exit("codeFlowValue"),b(d)):(a.consume(d),c)}(c))}(b):c(b)}function f(c){return a.exit("codeIndented"),b(c)}}},eb={partial:!0,tokenize:function(a,b,c){let d=this;return e;function e(b){return d.parser.lazy[d.now().line]?c(b):dH(b)?(a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),e):dN(a,f,"linePrefix",5)(b)}function f(a){let f=d.events[d.events.length-1];return f&&"linePrefix"===f[1].type&&f[2].sliceSerialize(f[1],!0).length>=4?b(a):dH(a)?e(a):c(a)}}},ec={name:"setextUnderline",resolveTo:function(a,b){let c,d,e,f=a.length;for(;f--;)if("enter"===a[f][0]){if("content"===a[f][1].type){c=f;break}"paragraph"===a[f][1].type&&(d=f)}else"content"===a[f][1].type&&a.splice(f,1),e||"definition"!==a[f][1].type||(e=f);let g={type:"setextHeading",start:{...a[c][1].start},end:{...a[a.length-1][1].end}};return a[d][1].type="setextHeadingText",e?(a.splice(d,0,["enter",g,b]),a.splice(e+1,0,["exit",a[c][1],b]),a[c][1].end={...a[e][1].end}):a[c][1]=g,a.push(["exit",g,b]),a},tokenize:function(a,b,c){let d,e=this;return function(b){var g;let h,i=e.events.length;for(;i--;)if("lineEnding"!==e.events[i][1].type&&"linePrefix"!==e.events[i][1].type&&"content"!==e.events[i][1].type){h="paragraph"===e.events[i][1].type;break}return!e.parser.lazy[e.now().line]&&(e.interrupt||h)?(a.enter("setextHeadingLine"),d=b,g=b,a.enter("setextHeadingLineSequence"),function b(c){return c===d?(a.consume(c),b):(a.exit("setextHeadingLineSequence"),dJ(c)?dN(a,f,"lineSuffix")(c):f(c))}(g)):c(b)};function f(d){return null===d||dH(d)?(a.exit("setextHeadingLine"),b(d)):c(d)}}},ed=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ee=["pre","script","style","textarea"],ef={partial:!0,tokenize:function(a,b,c){return function(d){return a.enter("lineEnding"),a.consume(d),a.exit("lineEnding"),a.attempt(dR,b,c)}}},eg={partial:!0,tokenize:function(a,b,c){let d=this;return function(b){return dH(b)?(a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),e):c(b)};function e(a){return d.parser.lazy[d.now().line]?c(a):b(a)}}},eh={partial:!0,tokenize:function(a,b,c){let d=this;return function(b){return null===b?c(b):(a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),e)};function e(a){return d.parser.lazy[d.now().line]?c(a):b(a)}}},ei={concrete:!0,name:"codeFenced",tokenize:function(a,b,c){let d,e=this,f={partial:!0,tokenize:function(a,b,c){let f=0;return function(b){return a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),g};function g(b){return a.enter("codeFencedFence"),dJ(b)?dN(a,i,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):i(b)}function i(b){return b===d?(a.enter("codeFencedFenceSequence"),function b(e){return e===d?(f++,a.consume(e),b):f>=h?(a.exit("codeFencedFenceSequence"),dJ(e)?dN(a,j,"whitespace")(e):j(e)):c(e)}(b)):c(b)}function j(d){return null===d||dH(d)?(a.exit("codeFencedFence"),b(d)):c(d)}}},g=0,h=0;return function(b){var f;let j;return f=b,g=(j=e.events[e.events.length-1])&&"linePrefix"===j[1].type?j[2].sliceSerialize(j[1],!0).length:0,d=f,a.enter("codeFenced"),a.enter("codeFencedFence"),a.enter("codeFencedFenceSequence"),function b(e){return e===d?(h++,a.consume(e),b):h<3?c(e):(a.exit("codeFencedFenceSequence"),dJ(e)?dN(a,i,"whitespace")(e):i(e))}(f)};function i(f){return null===f||dH(f)?(a.exit("codeFencedFence"),e.interrupt?b(f):a.check(eh,k,o)(f)):(a.enter("codeFencedFenceInfo"),a.enter("chunkString",{contentType:"string"}),function b(e){return null===e||dH(e)?(a.exit("chunkString"),a.exit("codeFencedFenceInfo"),i(e)):dJ(e)?(a.exit("chunkString"),a.exit("codeFencedFenceInfo"),dN(a,j,"whitespace")(e)):96===e&&e===d?c(e):(a.consume(e),b)}(f))}function j(b){return null===b||dH(b)?i(b):(a.enter("codeFencedFenceMeta"),a.enter("chunkString",{contentType:"string"}),function b(e){return null===e||dH(e)?(a.exit("chunkString"),a.exit("codeFencedFenceMeta"),i(e)):96===e&&e===d?c(e):(a.consume(e),b)}(b))}function k(b){return a.attempt(f,o,l)(b)}function l(b){return a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),m}function m(b){return g>0&&dJ(b)?dN(a,n,"linePrefix",g+1)(b):n(b)}function n(b){return null===b||dH(b)?a.check(eh,k,o)(b):(a.enter("codeFlowValue"),function b(c){return null===c||dH(c)?(a.exit("codeFlowValue"),n(c)):(a.consume(c),b)}(b))}function o(c){return a.exit("codeFenced"),b(c)}}},ej={AElig:"\xc6",AMP:"&",Aacute:"\xc1",Abreve:"Ă",Acirc:"\xc2",Acy:"А",Afr:"\uD835\uDD04",Agrave:"\xc0",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"\uD835\uDD38",ApplyFunction:"",Aring:"\xc5",Ascr:"\uD835\uDC9C",Assign:"≔",Atilde:"\xc3",Auml:"\xc4",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"\uD835\uDD05",Bopf:"\uD835\uDD39",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"\xa9",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"\xc7",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"\xb8",CenterDot:"\xb7",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"\uD835\uDC9E",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"\uD835\uDD07",DiacriticalAcute:"\xb4",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"\uD835\uDD3B",Dot:"\xa8",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"\xa8",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"\uD835\uDC9F",Dstrok:"Đ",ENG:"Ŋ",ETH:"\xd0",Eacute:"\xc9",Ecaron:"Ě",Ecirc:"\xca",Ecy:"Э",Edot:"Ė",Efr:"\uD835\uDD08",Egrave:"\xc8",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"\uD835\uDD3C",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"\xcb",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"\uD835\uDD09",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"\uD835\uDD3D",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"\uD835\uDD0A",Gg:"⋙",Gopf:"\uD835\uDD3E",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"\xcd",Icirc:"\xce",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"\xcc",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"\uD835\uDD40",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"\xcf",Jcirc:"Ĵ",Jcy:"Й",Jfr:"\uD835\uDD0D",Jopf:"\uD835\uDD41",Jscr:"\uD835\uDCA5",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"\uD835\uDD0E",Kopf:"\uD835\uDD42",Kscr:"\uD835\uDCA6",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"\uD835\uDD0F",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"\uD835\uDD43",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\uD835\uDD10",MinusPlus:"∓",Mopf:"\uD835\uDD44",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"\uD835\uDD11",NoBreak:"",NonBreakingSpace:"\xa0",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"\uD835\uDCA9",Ntilde:"\xd1",Nu:"Ν",OElig:"Œ",Oacute:"\xd3",Ocirc:"\xd4",Ocy:"О",Odblac:"Ő",Ofr:"\uD835\uDD12",Ograve:"\xd2",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"\uD835\uDD46",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"\uD835\uDCAA",Oslash:"\xd8",Otilde:"\xd5",Otimes:"⨷",Ouml:"\xd6",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"\uD835\uDD13",Phi:"Φ",Pi:"Π",PlusMinus:"\xb1",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"\uD835\uDCAB",Psi:"Ψ",QUOT:'"',Qfr:"\uD835\uDD14",Qopf:"ℚ",Qscr:"\uD835\uDCAC",RBarr:"⤐",REG:"\xae",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"\uD835\uDD16",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"\uD835\uDD4A",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"\uD835\uDCAE",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"\xde",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"\uD835\uDD17",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"\uD835\uDD4B",TripleDot:"⃛",Tscr:"\uD835\uDCAF",Tstrok:"Ŧ",Uacute:"\xda",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"\xdb",Ucy:"У",Udblac:"Ű",Ufr:"\uD835\uDD18",Ugrave:"\xd9",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"\uD835\uDD4C",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"\uD835\uDCB0",Utilde:"Ũ",Uuml:"\xdc",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"\uD835\uDD19",Vopf:"\uD835\uDD4D",Vscr:"\uD835\uDCB1",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"\uD835\uDD1A",Wopf:"\uD835\uDD4E",Wscr:"\uD835\uDCB2",Xfr:"\uD835\uDD1B",Xi:"Ξ",Xopf:"\uD835\uDD4F",Xscr:"\uD835\uDCB3",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"\xdd",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"\uD835\uDD1C",Yopf:"\uD835\uDD50",Yscr:"\uD835\uDCB4",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"\uD835\uDCB5",aacute:"\xe1",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"\xe2",acute:"\xb4",acy:"а",aelig:"\xe6",af:"",afr:"\uD835\uDD1E",agrave:"\xe0",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"\xc5",angzarr:"⍼",aogon:"ą",aopf:"\uD835\uDD52",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"\xe5",ascr:"\uD835\uDCB6",ast:"*",asymp:"≈",asympeq:"≍",atilde:"\xe3",auml:"\xe4",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"\xa6",bscr:"\uD835\uDCB7",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"\xe7",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"\xb8",cemptyv:"⦲",cent:"\xa2",centerdot:"\xb7",cfr:"\uD835\uDD20",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"\xae",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"\uD835\uDD54",coprod:"∐",copy:"\xa9",copysr:"℗",crarr:"↵",cross:"✗",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"\xa4",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"\xb0",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"\uD835\uDD21",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"\xa8",digamma:"ϝ",disin:"⋲",div:"\xf7",divide:"\xf7",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"\uD835\uDD55",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"\uD835\uDCB9",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"\xe9",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"\xea",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"\uD835\uDD22",eg:"⪚",egrave:"\xe8",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"\xf0",euml:"\xeb",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"\uD835\uDD23",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"\uD835\uDD57",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"\xbd",frac13:"⅓",frac14:"\xbc",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"\xbe",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"\uD835\uDCBB",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"\uD835\uDD24",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"\uD835\uDD58",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"\xbd",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"\uD835\uDD25",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"\uD835\uDD59",horbar:"―",hscr:"\uD835\uDCBD",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"\xed",ic:"",icirc:"\xee",icy:"и",iecy:"е",iexcl:"\xa1",iff:"⇔",ifr:"\uD835\uDD26",igrave:"\xec",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"\uD835\uDD5A",iota:"ι",iprod:"⨼",iquest:"\xbf",iscr:"\uD835\uDCBE",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",iuml:"\xef",jcirc:"ĵ",jcy:"й",jfr:"\uD835\uDD27",jmath:"ȷ",jopf:"\uD835\uDD5B",jscr:"\uD835\uDCBF",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"\uD835\uDD28",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"\uD835\uDD5C",kscr:"\uD835\uDCC0",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"\xab",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"\uD835\uDCC1",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"\xaf",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"\uD835\uDD2A",mho:"℧",micro:"\xb5",mid:"∣",midast:"*",midcir:"⫰",middot:"\xb7",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"\uD835\uDD5E",mp:"∓",mscr:"\uD835\uDCC2",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:"\xa0",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"\uD835\uDD2B",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"\uD835\uDD5F",not:"\xac",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"\uD835\uDCC3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"\xf1",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"\xf3",oast:"⊛",ocir:"⊚",ocirc:"\xf4",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"\uD835\uDD2C",ogon:"˛",ograve:"\xf2",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"\uD835\uDD60",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"\xaa",ordm:"\xba",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"\xf8",osol:"⊘",otilde:"\xf5",otimes:"⊗",otimesas:"⨶",ouml:"\xf6",ovbar:"⌽",par:"∥",para:"\xb6",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"\uD835\uDD2D",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"\xb1",plussim:"⨦",plustwo:"⨧",pm:"\xb1",pointint:"⨕",popf:"\uD835\uDD61",pound:"\xa3",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"\uD835\uDCC5",psi:"ψ",puncsp:" ",qfr:"\uD835\uDD2E",qint:"⨌",qopf:"\uD835\uDD62",qprime:"⁗",qscr:"\uD835\uDCC6",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"\xbb",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"\xae",rfisht:"⥽",rfloor:"⌋",rfr:"\uD835\uDD2F",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"\uD835\uDCC7",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"\xa7",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"\xad",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"\uD835\uDCC8",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"\xaf",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"\xdf",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"\uD835\uDD31",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"\xfe",tilde:"˜",times:"\xd7",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"\uD835\uDD65",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"\uD835\uDCC9",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"\xfa",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"\xfb",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"\uD835\uDD32",ugrave:"\xf9",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"\xa8",uogon:"ų",uopf:"\uD835\uDD66",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"\uD835\uDCCA",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"\xfc",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"\uD835\uDD33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"\uD835\uDD67",vprop:"∝",vrtri:"⊳",vscr:"\uD835\uDCCB",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"\uD835\uDD34",wopf:"\uD835\uDD68",wp:"℘",wr:"≀",wreath:"≀",wscr:"\uD835\uDCCC",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"\uD835\uDD35",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"\uD835\uDD69",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"\uD835\uDCCD",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"\xfd",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"\xa5",yfr:"\uD835\uDD36",yicy:"ї",yopf:"\uD835\uDD6A",yscr:"\uD835\uDCCE",yucy:"ю",yuml:"\xff",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"\uD835\uDD37",zhcy:"ж",zigrarr:"⇝",zopf:"\uD835\uDD6B",zscr:"\uD835\uDCCF",zwj:"",zwnj:""},ek={}.hasOwnProperty;function el(a){return!!ek.call(ej,a)&&ej[a]}let em={name:"characterReference",tokenize:function(a,b,c){let d,e,f=this,g=0;return function(b){return a.enter("characterReference"),a.enter("characterReferenceMarker"),a.consume(b),a.exit("characterReferenceMarker"),h};function h(b){return 35===b?(a.enter("characterReferenceMarkerNumeric"),a.consume(b),a.exit("characterReferenceMarkerNumeric"),i):(a.enter("characterReferenceValue"),d=31,e=dB,j(b))}function i(b){return 88===b||120===b?(a.enter("characterReferenceMarkerHexadecimal"),a.consume(b),a.exit("characterReferenceMarkerHexadecimal"),a.enter("characterReferenceValue"),d=6,e=dF,j):(a.enter("characterReferenceValue"),d=7,e=dE,j(b))}function j(h){if(59===h&&g){let d=a.exit("characterReferenceValue");return e!==dB||el(f.sliceSerialize(d))?(a.enter("characterReferenceMarker"),a.consume(h),a.exit("characterReferenceMarker"),a.exit("characterReference"),b):c(h)}return e(h)&&g++<d?(a.consume(h),j):c(h)}}},en={name:"characterEscape",tokenize:function(a,b,c){return function(b){return a.enter("characterEscape"),a.enter("escapeMarker"),a.consume(b),a.exit("escapeMarker"),d};function d(d){return dG(d)?(a.enter("characterEscapeValue"),a.consume(d),a.exit("characterEscapeValue"),a.exit("characterEscape"),b):c(d)}}},eo={name:"lineEnding",tokenize:function(a,b){return function(c){return a.enter("lineEnding"),a.consume(c),a.exit("lineEnding"),dN(a,b,"linePrefix")}}};function ep(a,b,c){let d=[],e=-1;for(;++e<a.length;){let f=a[e].resolveAll;f&&!d.includes(f)&&(b=f(b,c),d.push(f))}return b}let eq={name:"labelEnd",resolveAll:function(a){let b=-1,c=[];for(;++b<a.length;){let d=a[b][1];if(c.push(a[b]),"labelImage"===d.type||"labelLink"===d.type||"labelEnd"===d.type){let a="labelImage"===d.type?4:2;d.type="data",b+=a}}return a.length!==c.length&&dt(a,0,a.length,c),a},resolveTo:function(a,b){let c,d,e,f,g=a.length,h=0;for(;g--;)if(c=a[g][1],d){if("link"===c.type||"labelLink"===c.type&&c._inactive)break;"enter"===a[g][0]&&"labelLink"===c.type&&(c._inactive=!0)}else if(e){if("enter"===a[g][0]&&("labelImage"===c.type||"labelLink"===c.type)&&!c._balanced&&(d=g,"labelLink"!==c.type)){h=2;break}}else"labelEnd"===c.type&&(e=g);let i={type:"labelLink"===a[d][1].type?"link":"image",start:{...a[d][1].start},end:{...a[a.length-1][1].end}},j={type:"label",start:{...a[d][1].start},end:{...a[e][1].end}},k={type:"labelText",start:{...a[d+h+2][1].end},end:{...a[e-2][1].start}};return f=du(f=[["enter",i,b],["enter",j,b]],a.slice(d+1,d+h+3)),f=du(f,[["enter",k,b]]),f=du(f,ep(b.parser.constructs.insideSpan.null,a.slice(d+h+4,e-3),b)),f=du(f,[["exit",k,b],a[e-2],a[e-1],["exit",j,b]]),f=du(f,a.slice(e+1)),f=du(f,[["exit",i,b]]),dt(a,d,a.length,f),a},tokenize:function(a,b,c){let d,e,f=this,g=f.events.length;for(;g--;)if(("labelImage"===f.events[g][1].type||"labelLink"===f.events[g][1].type)&&!f.events[g][1]._balanced){d=f.events[g][1];break}return function(b){return d?d._inactive?k(b):(e=f.parser.defined.includes(d8(f.sliceSerialize({start:d.end,end:f.now()}))),a.enter("labelEnd"),a.enter("labelMarker"),a.consume(b),a.exit("labelMarker"),a.exit("labelEnd"),h):c(b)};function h(b){return 40===b?a.attempt(er,j,e?j:k)(b):91===b?a.attempt(es,j,e?i:k)(b):e?j(b):k(b)}function i(b){return a.attempt(et,j,k)(b)}function j(a){return b(a)}function k(a){return d._balanced=!0,c(a)}}},er={tokenize:function(a,b,c){return function(b){return a.enter("resource"),a.enter("resourceMarker"),a.consume(b),a.exit("resourceMarker"),d};function d(b){return dI(b)?d7(a,e)(b):e(b)}function e(b){return 41===b?j(b):d4(a,f,g,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(b)}function f(b){return dI(b)?d7(a,h)(b):j(b)}function g(a){return c(a)}function h(b){return 34===b||39===b||40===b?d6(a,i,c,"resourceTitle","resourceTitleMarker","resourceTitleString")(b):j(b)}function i(b){return dI(b)?d7(a,j)(b):j(b)}function j(d){return 41===d?(a.enter("resourceMarker"),a.consume(d),a.exit("resourceMarker"),a.exit("resource"),b):c(d)}}},es={tokenize:function(a,b,c){let d=this;return function(b){return d5.call(d,a,e,f,"reference","referenceMarker","referenceString")(b)};function e(a){return d.parser.defined.includes(d8(d.sliceSerialize(d.events[d.events.length-1][1]).slice(1,-1)))?b(a):c(a)}function f(a){return c(a)}}},et={tokenize:function(a,b,c){return function(b){return a.enter("reference"),a.enter("referenceMarker"),a.consume(b),a.exit("referenceMarker"),d};function d(d){return 93===d?(a.enter("referenceMarker"),a.consume(d),a.exit("referenceMarker"),a.exit("reference"),b):c(d)}}},eu={name:"labelStartImage",resolveAll:eq.resolveAll,tokenize:function(a,b,c){let d=this;return function(b){return a.enter("labelImage"),a.enter("labelImageMarker"),a.consume(b),a.exit("labelImageMarker"),e};function e(b){return 91===b?(a.enter("labelMarker"),a.consume(b),a.exit("labelMarker"),a.exit("labelImage"),f):c(b)}function f(a){return 94===a&&"_hiddenFootnoteSupport"in d.parser.constructs?c(a):b(a)}}};function ev(a){return null===a||dI(a)||dL(a)?1:dK(a)?2:void 0}let ew={name:"attention",resolveAll:function(a,b){let c,d,e,f,g,h,i,j,k=-1;for(;++k<a.length;)if("enter"===a[k][0]&&"attentionSequence"===a[k][1].type&&a[k][1]._close){for(c=k;c--;)if("exit"===a[c][0]&&"attentionSequence"===a[c][1].type&&a[c][1]._open&&b.sliceSerialize(a[c][1]).charCodeAt(0)===b.sliceSerialize(a[k][1]).charCodeAt(0)){if((a[c][1]._close||a[k][1]._open)&&(a[k][1].end.offset-a[k][1].start.offset)%3&&!((a[c][1].end.offset-a[c][1].start.offset+a[k][1].end.offset-a[k][1].start.offset)%3))continue;h=a[c][1].end.offset-a[c][1].start.offset>1&&a[k][1].end.offset-a[k][1].start.offset>1?2:1;let l={...a[c][1].end},m={...a[k][1].start};ex(l,-h),ex(m,h),f={type:h>1?"strongSequence":"emphasisSequence",start:l,end:{...a[c][1].end}},g={type:h>1?"strongSequence":"emphasisSequence",start:{...a[k][1].start},end:m},e={type:h>1?"strongText":"emphasisText",start:{...a[c][1].end},end:{...a[k][1].start}},d={type:h>1?"strong":"emphasis",start:{...f.start},end:{...g.end}},a[c][1].end={...f.start},a[k][1].start={...g.end},i=[],a[c][1].end.offset-a[c][1].start.offset&&(i=du(i,[["enter",a[c][1],b],["exit",a[c][1],b]])),i=du(i,[["enter",d,b],["enter",f,b],["exit",f,b],["enter",e,b]]),i=du(i,ep(b.parser.constructs.insideSpan.null,a.slice(c+1,k),b)),i=du(i,[["exit",e,b],["enter",g,b],["exit",g,b],["exit",d,b]]),a[k][1].end.offset-a[k][1].start.offset?(j=2,i=du(i,[["enter",a[k][1],b],["exit",a[k][1],b]])):j=0,dt(a,c-1,k-c+3,i),k=c+i.length-j-2;break}}for(k=-1;++k<a.length;)"attentionSequence"===a[k][1].type&&(a[k][1].type="data");return a},tokenize:function(a,b){let c,d=this.parser.constructs.attentionMarkers.null,e=this.previous,f=ev(e);return function(g){return c=g,a.enter("attentionSequence"),function g(h){if(h===c)return a.consume(h),g;let i=a.exit("attentionSequence"),j=ev(h),k=!j||2===j&&f||d.includes(h),l=!f||2===f&&j||d.includes(e);return i._open=!!(42===c?k:k&&(f||!l)),i._close=!!(42===c?l:l&&(j||!k)),b(h)}(g)}}};function ex(a,b){a.column+=b,a.offset+=b,a._bufferIndex+=b}let ey={name:"labelStartLink",resolveAll:eq.resolveAll,tokenize:function(a,b,c){let d=this;return function(b){return a.enter("labelLink"),a.enter("labelMarker"),a.consume(b),a.exit("labelMarker"),a.exit("labelLink"),e};function e(a){return 94===a&&"_hiddenFootnoteSupport"in d.parser.constructs?c(a):b(a)}}},ez={42:d0,43:d0,45:d0,48:d0,49:d0,50:d0,51:d0,52:d0,53:d0,54:d0,55:d0,56:d0,57:d0,62:d3},eA={91:{name:"definition",tokenize:function(a,b,c){let d,e=this;return function(b){var d;return a.enter("definition"),d=b,d5.call(e,a,f,c,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)};function f(b){return(d=d8(e.sliceSerialize(e.events[e.events.length-1][1]).slice(1,-1)),58===b)?(a.enter("definitionMarker"),a.consume(b),a.exit("definitionMarker"),g):c(b)}function g(b){return dI(b)?d7(a,h)(b):h(b)}function h(b){return d4(a,i,c,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function i(b){return a.attempt(d9,j,j)(b)}function j(b){return dJ(b)?dN(a,k,"whitespace")(b):k(b)}function k(f){return null===f||dH(f)?(a.exit("definition"),e.parser.defined.push(d),b(f)):c(f)}}}},eB={[-2]:ea,[-1]:ea,32:ea},eC={35:{name:"headingAtx",resolve:function(a,b){let c,d,e=a.length-2,f=3;return"whitespace"===a[3][1].type&&(f+=2),e-2>f&&"whitespace"===a[e][1].type&&(e-=2),"atxHeadingSequence"===a[e][1].type&&(f===e-1||e-4>f&&"whitespace"===a[e-2][1].type)&&(e-=f+1===e?2:4),e>f&&(c={type:"atxHeadingText",start:a[f][1].start,end:a[e][1].end},d={type:"chunkText",start:a[f][1].start,end:a[e][1].end,contentType:"text"},dt(a,f,e-f+1,[["enter",c,b],["enter",d,b],["exit",d,b],["exit",c,b]])),a},tokenize:function(a,b,c){let d=0;return function(e){var f;return a.enter("atxHeading"),f=e,a.enter("atxHeadingSequence"),function e(f){return 35===f&&d++<6?(a.consume(f),e):null===f||dI(f)?(a.exit("atxHeadingSequence"),function c(d){return 35===d?(a.enter("atxHeadingSequence"),function b(d){return 35===d?(a.consume(d),b):(a.exit("atxHeadingSequence"),c(d))}(d)):null===d||dH(d)?(a.exit("atxHeading"),b(d)):dJ(d)?dN(a,c,"whitespace")(d):(a.enter("atxHeadingText"),function b(d){return null===d||35===d||dI(d)?(a.exit("atxHeadingText"),c(d)):(a.consume(d),b)}(d))}(f)):c(f)}(f)}}},42:d_,45:[ec,d_],60:{concrete:!0,name:"htmlFlow",resolveTo:function(a){let b=a.length;for(;b--&&("enter"!==a[b][0]||"htmlFlow"!==a[b][1].type););return b>1&&"linePrefix"===a[b-2][1].type&&(a[b][1].start=a[b-2][1].start,a[b+1][1].start=a[b-2][1].start,a.splice(b-2,2)),a},tokenize:function(a,b,c){let d,e,f,g,h,i=this;return function(b){var c;return c=b,a.enter("htmlFlow"),a.enter("htmlFlowData"),a.consume(c),j};function j(g){return 33===g?(a.consume(g),k):47===g?(a.consume(g),e=!0,n):63===g?(a.consume(g),d=3,i.interrupt?b:G):dA(g)?(a.consume(g),f=String.fromCharCode(g),o):c(g)}function k(e){return 45===e?(a.consume(e),d=2,l):91===e?(a.consume(e),d=5,g=0,m):dA(e)?(a.consume(e),d=4,i.interrupt?b:G):c(e)}function l(d){return 45===d?(a.consume(d),i.interrupt?b:G):c(d)}function m(d){let e="CDATA[";return d===e.charCodeAt(g++)?(a.consume(d),g===e.length)?i.interrupt?b:y:m:c(d)}function n(b){return dA(b)?(a.consume(b),f=String.fromCharCode(b),o):c(b)}function o(g){if(null===g||47===g||62===g||dI(g)){let h=47===g,j=f.toLowerCase();return!h&&!e&&ee.includes(j)?(d=1,i.interrupt?b(g):y(g)):ed.includes(f.toLowerCase())?(d=6,h)?(a.consume(g),p):i.interrupt?b(g):y(g):(d=7,i.interrupt&&!i.parser.lazy[i.now().line]?c(g):e?function b(c){return dJ(c)?(a.consume(c),b):w(c)}(g):q(g))}return 45===g||dB(g)?(a.consume(g),f+=String.fromCharCode(g),o):c(g)}function p(d){return 62===d?(a.consume(d),i.interrupt?b:y):c(d)}function q(b){return 47===b?(a.consume(b),w):58===b||95===b||dA(b)?(a.consume(b),r):dJ(b)?(a.consume(b),q):w(b)}function r(b){return 45===b||46===b||58===b||95===b||dB(b)?(a.consume(b),r):s(b)}function s(b){return 61===b?(a.consume(b),t):dJ(b)?(a.consume(b),s):q(b)}function t(b){return null===b||60===b||61===b||62===b||96===b?c(b):34===b||39===b?(a.consume(b),h=b,u):dJ(b)?(a.consume(b),t):function b(c){return null===c||34===c||39===c||47===c||60===c||61===c||62===c||96===c||dI(c)?s(c):(a.consume(c),b)}(b)}function u(b){return b===h?(a.consume(b),h=null,v):null===b||dH(b)?c(b):(a.consume(b),u)}function v(a){return 47===a||62===a||dJ(a)?q(a):c(a)}function w(b){return 62===b?(a.consume(b),x):c(b)}function x(b){return null===b||dH(b)?y(b):dJ(b)?(a.consume(b),x):c(b)}function y(b){return 45===b&&2===d?(a.consume(b),C):60===b&&1===d?(a.consume(b),D):62===b&&4===d?(a.consume(b),H):63===b&&3===d?(a.consume(b),G):93===b&&5===d?(a.consume(b),F):dH(b)&&(6===d||7===d)?(a.exit("htmlFlowData"),a.check(ef,I,z)(b)):null===b||dH(b)?(a.exit("htmlFlowData"),z(b)):(a.consume(b),y)}function z(b){return a.check(eg,A,I)(b)}function A(b){return a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),B}function B(b){return null===b||dH(b)?z(b):(a.enter("htmlFlowData"),y(b))}function C(b){return 45===b?(a.consume(b),G):y(b)}function D(b){return 47===b?(a.consume(b),f="",E):y(b)}function E(b){if(62===b){let c=f.toLowerCase();return ee.includes(c)?(a.consume(b),H):y(b)}return dA(b)&&f.length<8?(a.consume(b),f+=String.fromCharCode(b),E):y(b)}function F(b){return 93===b?(a.consume(b),G):y(b)}function G(b){return 62===b?(a.consume(b),H):45===b&&2===d?(a.consume(b),G):y(b)}function H(b){return null===b||dH(b)?(a.exit("htmlFlowData"),I(b)):(a.consume(b),H)}function I(c){return a.exit("htmlFlow"),b(c)}}},61:ec,95:d_,96:ei,126:ei},eD={38:em,92:en},eE={[-5]:eo,[-4]:eo,[-3]:eo,33:eu,38:em,42:ew,60:[{name:"autolink",tokenize:function(a,b,c){let d=0;return function(b){return a.enter("autolink"),a.enter("autolinkMarker"),a.consume(b),a.exit("autolinkMarker"),a.enter("autolinkProtocol"),e};function e(b){return dA(b)?(a.consume(b),f):64===b?c(b):h(b)}function f(b){return 43===b||45===b||46===b||dB(b)?(d=1,function b(c){return 58===c?(a.consume(c),d=0,g):(43===c||45===c||46===c||dB(c))&&d++<32?(a.consume(c),b):(d=0,h(c))}(b)):h(b)}function g(d){return 62===d?(a.exit("autolinkProtocol"),a.enter("autolinkMarker"),a.consume(d),a.exit("autolinkMarker"),a.exit("autolink"),b):null===d||32===d||60===d||dD(d)?c(d):(a.consume(d),g)}function h(b){return 64===b?(a.consume(b),i):dC(b)?(a.consume(b),h):c(b)}function i(e){return dB(e)?function e(f){return 46===f?(a.consume(f),d=0,i):62===f?(a.exit("autolinkProtocol").type="autolinkEmail",a.enter("autolinkMarker"),a.consume(f),a.exit("autolinkMarker"),a.exit("autolink"),b):function b(f){if((45===f||dB(f))&&d++<63){let c=45===f?b:e;return a.consume(f),c}return c(f)}(f)}(e):c(e)}}},{name:"htmlText",tokenize:function(a,b,c){let d,e,f,g=this;return function(b){return a.enter("htmlText"),a.enter("htmlTextData"),a.consume(b),h};function h(b){return 33===b?(a.consume(b),i):47===b?(a.consume(b),u):63===b?(a.consume(b),s):dA(b)?(a.consume(b),w):c(b)}function i(b){return 45===b?(a.consume(b),j):91===b?(a.consume(b),e=0,n):dA(b)?(a.consume(b),r):c(b)}function j(b){return 45===b?(a.consume(b),m):c(b)}function k(b){return null===b?c(b):45===b?(a.consume(b),l):dH(b)?(f=k,E(b)):(a.consume(b),k)}function l(b){return 45===b?(a.consume(b),m):k(b)}function m(a){return 62===a?D(a):45===a?l(a):k(a)}function n(b){let d="CDATA[";return b===d.charCodeAt(e++)?(a.consume(b),e===d.length?o:n):c(b)}function o(b){return null===b?c(b):93===b?(a.consume(b),p):dH(b)?(f=o,E(b)):(a.consume(b),o)}function p(b){return 93===b?(a.consume(b),q):o(b)}function q(b){return 62===b?D(b):93===b?(a.consume(b),q):o(b)}function r(b){return null===b||62===b?D(b):dH(b)?(f=r,E(b)):(a.consume(b),r)}function s(b){return null===b?c(b):63===b?(a.consume(b),t):dH(b)?(f=s,E(b)):(a.consume(b),s)}function t(a){return 62===a?D(a):s(a)}function u(b){return dA(b)?(a.consume(b),v):c(b)}function v(b){return 45===b||dB(b)?(a.consume(b),v):function b(c){return dH(c)?(f=b,E(c)):dJ(c)?(a.consume(c),b):D(c)}(b)}function w(b){return 45===b||dB(b)?(a.consume(b),w):47===b||62===b||dI(b)?x(b):c(b)}function x(b){return 47===b?(a.consume(b),D):58===b||95===b||dA(b)?(a.consume(b),y):dH(b)?(f=x,E(b)):dJ(b)?(a.consume(b),x):D(b)}function y(b){return 45===b||46===b||58===b||95===b||dB(b)?(a.consume(b),y):function b(c){return 61===c?(a.consume(c),z):dH(c)?(f=b,E(c)):dJ(c)?(a.consume(c),b):x(c)}(b)}function z(b){return null===b||60===b||61===b||62===b||96===b?c(b):34===b||39===b?(a.consume(b),d=b,A):dH(b)?(f=z,E(b)):dJ(b)?(a.consume(b),z):(a.consume(b),B)}function A(b){return b===d?(a.consume(b),d=void 0,C):null===b?c(b):dH(b)?(f=A,E(b)):(a.consume(b),A)}function B(b){return null===b||34===b||39===b||60===b||61===b||96===b?c(b):47===b||62===b||dI(b)?x(b):(a.consume(b),B)}function C(a){return 47===a||62===a||dI(a)?x(a):c(a)}function D(d){return 62===d?(a.consume(d),a.exit("htmlTextData"),a.exit("htmlText"),b):c(d)}function E(b){return a.exit("htmlTextData"),a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),F}function F(b){return dJ(b)?dN(a,G,"linePrefix",g.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):G(b)}function G(b){return a.enter("htmlTextData"),f(b)}}}],91:ey,92:[{name:"hardBreakEscape",tokenize:function(a,b,c){return function(b){return a.enter("hardBreakEscape"),a.consume(b),d};function d(d){return dH(d)?(a.exit("hardBreakEscape"),b(d)):c(d)}}},en],93:eq,95:ew,96:{name:"codeText",previous:function(a){return 96!==a||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(a){let b,c,d=a.length-4,e=3;if(("lineEnding"===a[3][1].type||"space"===a[e][1].type)&&("lineEnding"===a[d][1].type||"space"===a[d][1].type)){for(b=e;++b<d;)if("codeTextData"===a[b][1].type){a[e][1].type="codeTextPadding",a[d][1].type="codeTextPadding",e+=2,d-=2;break}}for(b=e-1,d++;++b<=d;)void 0===c?b!==d&&"lineEnding"!==a[b][1].type&&(c=b):(b===d||"lineEnding"===a[b][1].type)&&(a[c][1].type="codeTextData",b!==c+2&&(a[c][1].end=a[b-1][1].end,a.splice(c+2,b-c-2),d-=b-c-2,b=c+2),c=void 0);return a},tokenize:function(a,b,c){let d,e,f=0;return function(b){return a.enter("codeText"),a.enter("codeTextSequence"),function b(c){return 96===c?(a.consume(c),f++,b):(a.exit("codeTextSequence"),g(c))}(b)};function g(i){return null===i?c(i):32===i?(a.enter("space"),a.consume(i),a.exit("space"),g):96===i?(e=a.enter("codeTextSequence"),d=0,function c(g){return 96===g?(a.consume(g),d++,c):d===f?(a.exit("codeTextSequence"),a.exit("codeText"),b(g)):(e.type="codeTextData",h(g))}(i)):dH(i)?(a.enter("lineEnding"),a.consume(i),a.exit("lineEnding"),g):(a.enter("codeTextData"),h(i))}function h(b){return null===b||32===b||96===b||dH(b)?(a.exit("codeTextData"),g(b)):(a.consume(b),h)}}}},eF={null:[ew,dV]},eG={null:[42,95]},eH={null:[]},eI=/[\0\t\n\r]/g;function eJ(a,b){let c=Number.parseInt(a,b);return c<9||11===c||c>13&&c<32||c>126&&c<160||c>55295&&c<57344||c>64975&&c<65008||(65535&c)==65535||(65535&c)==65534||c>1114111?"�":String.fromCodePoint(c)}let eK=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function eL(a,b,c){if(b)return b;if(35===c.charCodeAt(0)){let a=c.charCodeAt(1),b=120===a||88===a;return eJ(c.slice(b?2:1),b?16:10)}return el(c)||a}let eM={}.hasOwnProperty;function eN(a){return{line:a.line,column:a.column,offset:a.offset}}function eO(a,b){if(a)throw Error("Cannot close `"+a.type+"` ("+c5({start:a.start,end:a.end})+"): a different token (`"+b.type+"`, "+c5({start:b.start,end:b.end})+") is open");throw Error("Cannot close document, a token (`"+b.type+"`, "+c5({start:b.start,end:b.end})+") is still open")}function eP(a){let b=this;b.parser=function(c){var d,e;let f,g,h,i;return"object"==typeof(d={...b.data("settings"),...a,extensions:b.data("micromarkExtensions")||[],mdastExtensions:b.data("fromMarkdownExtensions")||[]})&&(e=d,d=void 0),(function(a){let b={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:d(r),autolinkProtocol:j,autolinkEmail:j,atxHeading:d(o),blockQuote:d(function(){return{type:"blockquote",children:[]}}),characterEscape:j,characterReference:j,codeFenced:d(n),codeFencedFenceInfo:e,codeFencedFenceMeta:e,codeIndented:d(n,e),codeText:d(function(){return{type:"inlineCode",value:""}},e),codeTextData:j,data:j,codeFlowValue:j,definition:d(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:e,definitionLabelString:e,definitionTitleString:e,emphasis:d(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:d(p),hardBreakTrailing:d(p),htmlFlow:d(q,e),htmlFlowData:j,htmlText:d(q,e),htmlTextData:j,image:d(function(){return{type:"image",title:null,url:"",alt:null}}),label:e,link:d(r),listItem:d(function(a){return{type:"listItem",spread:a._spread,checked:null,children:[]}}),listItemValue:function(a){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(a),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:d(s,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:d(s),paragraph:d(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:e,resourceDestinationString:e,resourceTitleString:e,setextHeading:d(o),strong:d(function(){return{type:"strong",children:[]}}),thematicBreak:d(function(){return{type:"thematicBreak"}})},exit:{atxHeading:g(),atxHeadingSequence:function(a){let b=this.stack[this.stack.length-1];b.depth||(b.depth=this.sliceSerialize(a).length)},autolink:g(),autolinkEmail:function(a){k.call(this,a),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(a)},autolinkProtocol:function(a){k.call(this,a),this.stack[this.stack.length-1].url=this.sliceSerialize(a)},blockQuote:g(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:m,characterReferenceMarkerNumeric:m,characterReferenceValue:function(a){let b,c=this.sliceSerialize(a),d=this.data.characterReferenceType;d?(b=eJ(c,"characterReferenceMarkerNumeric"===d?10:16),this.data.characterReferenceType=void 0):b=el(c);let e=this.stack[this.stack.length-1];e.value+=b},characterReference:function(a){this.stack.pop().position.end=eN(a.end)},codeFenced:g(function(){let a=this.resume();this.stack[this.stack.length-1].value=a.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let a=this.resume();this.stack[this.stack.length-1].lang=a},codeFencedFenceMeta:function(){let a=this.resume();this.stack[this.stack.length-1].meta=a},codeFlowValue:k,codeIndented:g(function(){let a=this.resume();this.stack[this.stack.length-1].value=a.replace(/(\r?\n|\r)$/g,"")}),codeText:g(function(){let a=this.resume();this.stack[this.stack.length-1].value=a}),codeTextData:k,data:k,definition:g(),definitionDestinationString:function(){let a=this.resume();this.stack[this.stack.length-1].url=a},definitionLabelString:function(a){let b=this.resume(),c=this.stack[this.stack.length-1];c.label=b,c.identifier=d8(this.sliceSerialize(a)).toLowerCase()},definitionTitleString:function(){let a=this.resume();this.stack[this.stack.length-1].title=a},emphasis:g(),hardBreakEscape:g(l),hardBreakTrailing:g(l),htmlFlow:g(function(){let a=this.resume();this.stack[this.stack.length-1].value=a}),htmlFlowData:k,htmlText:g(function(){let a=this.resume();this.stack[this.stack.length-1].value=a}),htmlTextData:k,image:g(function(){let a=this.stack[this.stack.length-1];if(this.data.inReference){let b=this.data.referenceType||"shortcut";a.type+="Reference",a.referenceType=b,delete a.url,delete a.title}else delete a.identifier,delete a.label;this.data.referenceType=void 0}),label:function(){let a=this.stack[this.stack.length-1],b=this.resume(),c=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===c.type?c.children=a.children:c.alt=b},labelText:function(a){let b=this.sliceSerialize(a),c=this.stack[this.stack.length-2];c.label=b.replace(eK,eL),c.identifier=d8(b).toLowerCase()},lineEnding:function(a){let c=this.stack[this.stack.length-1];if(this.data.atHardBreak){c.children[c.children.length-1].position.end=eN(a.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&b.canContainEols.includes(c.type)&&(j.call(this,a),k.call(this,a))},link:g(function(){let a=this.stack[this.stack.length-1];if(this.data.inReference){let b=this.data.referenceType||"shortcut";a.type+="Reference",a.referenceType=b,delete a.url,delete a.title}else delete a.identifier,delete a.label;this.data.referenceType=void 0}),listItem:g(),listOrdered:g(),listUnordered:g(),paragraph:g(),referenceString:function(a){let b=this.resume(),c=this.stack[this.stack.length-1];c.label=b,c.identifier=d8(this.sliceSerialize(a)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let a=this.resume();this.stack[this.stack.length-1].url=a},resourceTitleString:function(){let a=this.resume();this.stack[this.stack.length-1].title=a},resource:function(){this.data.inReference=void 0},setextHeading:g(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(a){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(a).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:g(),thematicBreak:g()}};!function a(b,c){let d=-1;for(;++d<c.length;){let e=c[d];Array.isArray(e)?a(b,e):function(a,b){let c;for(c in b)if(eM.call(b,c))switch(c){case"canContainEols":{let d=b[c];d&&a[c].push(...d);break}case"transforms":{let d=b[c];d&&a[c].push(...d);break}case"enter":case"exit":{let d=b[c];d&&Object.assign(a[c],d)}}}(b,e)}}(b,(a||{}).mdastExtensions||[]);let c={};return function(a){let d={type:"root",children:[]},g={stack:[d],tokenStack:[],config:b,enter:f,exit:h,buffer:e,resume:i,data:c},j=[],k=-1;for(;++k<a.length;)("listOrdered"===a[k][1].type||"listUnordered"===a[k][1].type)&&("enter"===a[k][0]?j.push(k):k=function(a,b,c){let d,e,f,g,h=b-1,i=-1,j=!1;for(;++h<=c;){let b=a[h];switch(b[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===b[0]?i++:i--,g=void 0;break;case"lineEndingBlank":"enter"===b[0]&&(!d||g||i||f||(f=h),g=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:g=void 0}if(!i&&"enter"===b[0]&&"listItemPrefix"===b[1].type||-1===i&&"exit"===b[0]&&("listUnordered"===b[1].type||"listOrdered"===b[1].type)){if(d){let g=h;for(e=void 0;g--;){let b=a[g];if("lineEnding"===b[1].type||"lineEndingBlank"===b[1].type){if("exit"===b[0])continue;e&&(a[e][1].type="lineEndingBlank",j=!0),b[1].type="lineEnding",e=g}else if("linePrefix"===b[1].type||"blockQuotePrefix"===b[1].type||"blockQuotePrefixWhitespace"===b[1].type||"blockQuoteMarker"===b[1].type||"listItemIndent"===b[1].type);else break}f&&(!e||f<e)&&(d._spread=!0),d.end=Object.assign({},e?a[e][1].start:b[1].end),a.splice(e||h,0,["exit",d,b[2]]),h++,c++}if("listItemPrefix"===b[1].type){let e={type:"listItem",_spread:!1,start:Object.assign({},b[1].start),end:void 0};d=e,a.splice(h,0,["enter",e,b[2]]),h++,c++,f=void 0,g=!0}}}return a[b][1]._spread=j,c}(a,j.pop(),k));for(k=-1;++k<a.length;){let c=b[a[k][0]];eM.call(c,a[k][1].type)&&c[a[k][1].type].call(Object.assign({sliceSerialize:a[k][2].sliceSerialize},g),a[k][1])}if(g.tokenStack.length>0){let a=g.tokenStack[g.tokenStack.length-1];(a[1]||eO).call(g,void 0,a[0])}for(d.position={start:eN(a.length>0?a[0][1].start:{line:1,column:1,offset:0}),end:eN(a.length>0?a[a.length-2][1].end:{line:1,column:1,offset:0})},k=-1;++k<b.transforms.length;)d=b.transforms[k](d)||d;return d};function d(a,b){return function(c){f.call(this,a(c),c),b&&b.call(this,c)}}function e(){this.stack.push({type:"fragment",children:[]})}function f(a,b,c){this.stack[this.stack.length-1].children.push(a),this.stack.push(a),this.tokenStack.push([b,c||void 0]),a.position={start:eN(b.start),end:void 0}}function g(a){return function(b){a&&a.call(this,b),h.call(this,b)}}function h(a,b){let c=this.stack.pop(),d=this.tokenStack.pop();if(d)d[0].type!==a.type&&(b?b.call(this,a,d[0]):(d[1]||eO).call(this,a,d[0]));else throw Error("Cannot close `"+a.type+"` ("+c5({start:a.start,end:a.end})+"): it’s not open");c.position.end=eN(a.end)}function i(){return dq(this.stack.pop())}function j(a){let b=this.stack[this.stack.length-1].children,c=b[b.length-1];c&&"text"===c.type||((c={type:"text",value:""}).position={start:eN(a.start),end:void 0},b.push(c)),this.stack.push(c)}function k(a){let b=this.stack.pop();b.value+=this.sliceSerialize(a),b.position.end=eN(a.end)}function l(){this.data.atHardBreak=!0}function m(a){this.data.characterReferenceType=a.type}function n(){return{type:"code",lang:null,meta:null,value:""}}function o(){return{type:"heading",depth:0,children:[]}}function p(){return{type:"break"}}function q(){return{type:"html",value:""}}function r(){return{type:"link",title:null,url:"",children:[]}}function s(a){return{type:"list",ordered:"listOrdered"===a.type,start:null,spread:a._spread,children:[]}}})(e)(function(a){for(;!dx(a););return a}((function(a){let b={constructs:dz([r,...(a||{}).extensions||[]]),content:c(dO),defined:[],document:c(dP),flow:c(dU),lazy:{},string:c(dW),text:c(dX)};return b;function c(a){return function(c){return function(a,b,c){let d={_bufferIndex:-1,_index:0,line:c&&c.line||1,column:c&&c.column||1,offset:c&&c.offset||0},e={},f=[],g=[],h=[],i={attempt:o(function(a,b){p(a,b.from)}),check:o(n),consume:function(a){dH(a)?(d.line++,d.column=1,d.offset+=-3===a?2:1,q()):-1!==a&&(d.column++,d.offset++),d._bufferIndex<0?d._index++:(d._bufferIndex++,d._bufferIndex===g[d._index].length&&(d._bufferIndex=-1,d._index++)),j.previous=a},enter:function(a,b){let c=b||{};return c.type=a,c.start=m(),j.events.push(["enter",c,j]),h.push(c),c},exit:function(a){let b=h.pop();return b.end=m(),j.events.push(["exit",b,j]),b},interrupt:o(n,{interrupt:!0})},j={code:null,containerState:{},defineSkip:function(a){e[a.line]=a.column,q()},events:[],now:m,parser:a,previous:null,sliceSerialize:function(a,b){return function(a,b){let c,d=-1,e=[];for(;++d<a.length;){let f,g=a[d];if("string"==typeof g)f=g;else switch(g){case -5:f="\r";break;case -4:f="\n";break;case -3:f="\r\n";break;case -2:f=b?" ":" ";break;case -1:if(!b&&c)continue;f=" ";break;default:f=String.fromCharCode(g)}c=-2===g,e.push(f)}return e.join("")}(l(a),b)},sliceStream:l,write:function(a){return(g=du(g,a),function(){let a;for(;d._index<g.length;){let c=g[d._index];if("string"==typeof c)for(a=d._index,d._bufferIndex<0&&(d._bufferIndex=0);d._index===a&&d._bufferIndex<c.length;){var b;b=c.charCodeAt(d._bufferIndex),k=k(b)}else k=k(c)}}(),null!==g[g.length-1])?[]:(p(b,0),j.events=ep(f,j.events,j),j.events)}},k=b.tokenize.call(j,i);return b.resolveAll&&f.push(b),j;function l(a){return function(a,b){let c,d=b.start._index,e=b.start._bufferIndex,f=b.end._index,g=b.end._bufferIndex;if(d===f)c=[a[d].slice(e,g)];else{if(c=a.slice(d,f),e>-1){let a=c[0];"string"==typeof a?c[0]=a.slice(e):c.shift()}g>0&&c.push(a[f].slice(0,g))}return c}(g,a)}function m(){let{_bufferIndex:a,_index:b,line:c,column:e,offset:f}=d;return{_bufferIndex:a,_index:b,line:c,column:e,offset:f}}function n(a,b){b.restore()}function o(a,b){return function(c,e,f){var g;let k,l,n,o;return Array.isArray(c)?p(c):"tokenize"in c?p([c]):(g=c,function(a){let b=null!==a&&g[a],c=null!==a&&g.null;return p([...Array.isArray(b)?b:b?[b]:[],...Array.isArray(c)?c:c?[c]:[]])(a)});function p(a){return(k=a,l=0,0===a.length)?f:r(a[l])}function r(a){return function(c){let e,f,g,k,l;return(e=m(),f=j.previous,g=j.currentConstruct,k=j.events.length,l=Array.from(h),o={from:k,restore:function(){d=e,j.previous=f,j.currentConstruct=g,j.events.length=k,h=l,q()}},n=a,a.partial||(j.currentConstruct=a),a.name&&j.parser.constructs.disable.null.includes(a.name))?t(c):a.tokenize.call(b?Object.assign(Object.create(j),b):j,i,s,t)(c)}}function s(b){return a(n,o),e}function t(a){return(o.restore(),++l<k.length)?r(k[l]):f}}}function p(a,b){a.resolveAll&&!f.includes(a)&&f.push(a),a.resolve&&dt(j.events,b,j.events.length-b,a.resolve(j.events.slice(b),j)),a.resolveTo&&(j.events=a.resolveTo(j.events,j))}function q(){d.line in e&&d.column<2&&(d.column=e[d.line],d.offset+=e[d.line]-1)}}(b,a,c)}}})(e).document().write((g=1,h="",i=!0,function(a,b,c){let d,e,j,k,l,m=[];for(a=h+("string"==typeof a?a.toString():new TextDecoder(b||void 0).decode(a)),j=0,h="",i&&(65279===a.charCodeAt(0)&&j++,i=void 0);j<a.length;){if(eI.lastIndex=j,k=(d=eI.exec(a))&&void 0!==d.index?d.index:a.length,l=a.charCodeAt(k),!d){h=a.slice(j);break}if(10===l&&j===k&&f)m.push(-3),f=void 0;else switch(f&&(m.push(-5),f=void 0),j<k&&(m.push(a.slice(j,k)),g+=k-j),l){case 0:m.push(65533),g++;break;case 9:for(e=4*Math.ceil(g/4),m.push(-2);g++<e;)m.push(-1);break;case 10:m.push(-4),g=1;break;default:f=!0,g=1}j=k+1}return c&&(f&&m.push(-5),h&&m.push(h),m.push(null)),m})(c,d,!0))))}}let eQ="object"==typeof self?self:globalThis,eR=a=>{var b;let c,d;return(b=new Map,c=(a,c)=>(b.set(c,a),a),d=e=>{if(b.has(e))return b.get(e);let[f,g]=a[e];switch(f){case 0:case -1:return c(g,e);case 1:{let a=c([],e);for(let b of g)a.push(d(b));return a}case 2:{let a=c({},e);for(let[b,c]of g)a[d(b)]=d(c);return a}case 3:return c(new Date(g),e);case 4:{let{source:a,flags:b}=g;return c(new RegExp(a,b),e)}case 5:{let a=c(new Map,e);for(let[b,c]of g)a.set(d(b),d(c));return a}case 6:{let a=c(new Set,e);for(let b of g)a.add(d(b));return a}case 7:{let{name:a,message:b}=g;return c(new eQ[a](b),e)}case 8:return c(BigInt(g),e);case"BigInt":return c(Object(BigInt(g)),e);case"ArrayBuffer":return c(new Uint8Array(g).buffer,g);case"DataView":{let{buffer:a}=new Uint8Array(g);return c(new DataView(a),g)}}return c(new eQ[f](g),e)})(0)},{toString:eS}={},{keys:eT}=Object,eU=a=>{let b=typeof a;if("object"!==b||!a)return[0,b];let c=eS.call(a).slice(8,-1);switch(c){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,c]}return c.includes("Array")?[1,c]:c.includes("Error")?[7,c]:[2,c]},eV=([a,b])=>0===a&&("function"===b||"symbol"===b),eW=(a,{json:b,lossy:c}={})=>{var d,e,f;let g,h,i=[];return(d=!(b||c),e=!!b,f=new Map,g=(a,b)=>{let c=i.push(a)-1;return f.set(b,c),c},h=a=>{if(f.has(a))return f.get(a);let[b,c]=eU(a);switch(b){case 0:{let e=a;switch(c){case"bigint":b=8,e=a.toString();break;case"function":case"symbol":if(d)throw TypeError("unable to serialize "+c);e=null;break;case"undefined":return g([-1],a)}return g([b,e],a)}case 1:{if(c){let b=a;return"DataView"===c?b=new Uint8Array(a.buffer):"ArrayBuffer"===c&&(b=new Uint8Array(a)),g([c,[...b]],a)}let d=[],e=g([b,d],a);for(let b of a)d.push(h(b));return e}case 2:{if(c)switch(c){case"BigInt":return g([c,a.toString()],a);case"Boolean":case"Number":case"String":return g([c,a.valueOf()],a)}if(e&&"toJSON"in a)return h(a.toJSON());let f=[],i=g([b,f],a);for(let b of eT(a))(d||!eV(eU(a[b])))&&f.push([h(b),h(a[b])]);return i}case 3:return g([b,a.toISOString()],a);case 4:{let{source:c,flags:d}=a;return g([b,{source:c,flags:d}],a)}case 5:{let c=[],e=g([b,c],a);for(let[b,e]of a)(d||!(eV(eU(b))||eV(eU(e))))&&c.push([h(b),h(e)]);return e}case 6:{let c=[],e=g([b,c],a);for(let b of a)(d||!eV(eU(b)))&&c.push(h(b));return e}}let{message:i}=a;return g([b,{name:c,message:i}],a)})(a),i},eX="function"==typeof structuredClone?(a,b)=>b&&("json"in b||"lossy"in b)?eR(eW(a,b)):structuredClone(a):(a,b)=>eR(eW(a,b));function eY(a){let b=[],c=-1,d=0,e=0;for(;++c<a.length;){let f=a.charCodeAt(c),g="";if(37===f&&dB(a.charCodeAt(c+1))&&dB(a.charCodeAt(c+2)))e=2;else if(f<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(f))||(g=String.fromCharCode(f));else if(f>55295&&f<57344){let b=a.charCodeAt(c+1);f<56320&&b>56319&&b<57344?(g=String.fromCharCode(f,b),e=1):g="�"}else g=String.fromCharCode(f);g&&(b.push(a.slice(d,c),encodeURIComponent(g)),d=c+e+1,g=""),e&&(c+=e,e=0)}return b.join("")+a.slice(d)}function eZ(a,b){let c=[{type:"text",value:"↩"}];return b>1&&c.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(b)}]}),c}function e$(a,b){return"Back to reference "+(a+1)+(b>1?"-"+b:"")}let e_=function(a){var b,c;if(null==a)return e1;if("function"==typeof a)return e0(a);if("object"==typeof a){return Array.isArray(a)?function(a){let b=[],c=-1;for(;++c<a.length;)b[c]=e_(a[c]);return e0(function(...a){let c=-1;for(;++c<b.length;)if(b[c].apply(this,a))return!0;return!1})}(a):(b=a,e0(function(a){let c;for(c in b)if(a[c]!==b[c])return!1;return!0}))}if("string"==typeof a){return c=a,e0(function(a){return a&&a.type===c})}throw Error("Expected function, string, or object as test")};function e0(a){return function(b,c,d){return!!(function(a){return null!==a&&"object"==typeof a&&"type"in a}(b)&&a.call(this,b,"number"==typeof c?c:void 0,d||void 0))}}function e1(){return!0}let e2=[],e3="skip";function e4(a,b,c,d){let e;"function"==typeof b&&"function"!=typeof c?(d=c,c=b):e=b;let f=e_(e),g=d?-1:1;(function a(e,h,i){let j=e&&"object"==typeof e?e:{};if("string"==typeof j.type){let a="string"==typeof j.tagName?j.tagName:"string"==typeof j.name?j.name:void 0;Object.defineProperty(k,"name",{value:"node (\x1b[33m"+e.type+(a?"<"+a+">":"")+"\x1b[39m)"})}return k;function k(){var j;let k,l,m,n=e2;if((!b||f(e,h,i[i.length-1]||void 0))&&!1===(n=Array.isArray(j=c(e,i))?j:"number"==typeof j?[!0,j]:null==j?e2:[j])[0])return n;if("children"in e&&e.children&&e.children&&n[0]!==e3)for(l=(d?e.children.length:-1)+g,m=i.concat(e);l>-1&&l<e.children.length;){if(!1===(k=a(e.children[l],l,m)())[0])return k;l="number"==typeof k[1]?k[1]:l+g}return n}})(a,void 0,[])()}function e5(a,b,c,d){let e,f,g;"function"==typeof b&&"function"!=typeof c?(f=void 0,g=b,e=c):(f=b,g=c,e=d),e4(a,f,function(a,b){let c=b[b.length-1],d=c?c.children.indexOf(a):void 0;return g(a,d,c)},e)}function e6(a,b){let c=b.referenceType,d="]";if("collapsed"===c?d+="[]":"full"===c&&(d+="["+(b.label||b.identifier)+"]"),"imageReference"===b.type)return[{type:"text",value:"!["+b.alt+d}];let e=a.all(b),f=e[0];f&&"text"===f.type?f.value="["+f.value:e.unshift({type:"text",value:"["});let g=e[e.length-1];return g&&"text"===g.type?g.value+=d:e.push({type:"text",value:d}),e}function e7(a){let b=a.spread;return null==b?a.children.length>1:b}function e8(a,b,c){let d=0,e=a.length;if(b){let b=a.codePointAt(d);for(;9===b||32===b;)d++,b=a.codePointAt(d)}if(c){let b=a.codePointAt(e-1);for(;9===b||32===b;)e--,b=a.codePointAt(e-1)}return e>d?a.slice(d,e):""}let e9={blockquote:function(a,b){let c={type:"element",tagName:"blockquote",properties:{},children:a.wrap(a.all(b),!0)};return a.patch(b,c),a.applyData(b,c)},break:function(a,b){let c={type:"element",tagName:"br",properties:{},children:[]};return a.patch(b,c),[a.applyData(b,c),{type:"text",value:"\n"}]},code:function(a,b){let c=b.value?b.value+"\n":"",d={},e=b.lang?b.lang.split(/\s+/):[];e.length>0&&(d.className=["language-"+e[0]]);let f={type:"element",tagName:"code",properties:d,children:[{type:"text",value:c}]};return b.meta&&(f.data={meta:b.meta}),a.patch(b,f),f={type:"element",tagName:"pre",properties:{},children:[f=a.applyData(b,f)]},a.patch(b,f),f},delete:function(a,b){let c={type:"element",tagName:"del",properties:{},children:a.all(b)};return a.patch(b,c),a.applyData(b,c)},emphasis:function(a,b){let c={type:"element",tagName:"em",properties:{},children:a.all(b)};return a.patch(b,c),a.applyData(b,c)},footnoteReference:function(a,b){let c,d="string"==typeof a.options.clobberPrefix?a.options.clobberPrefix:"user-content-",e=String(b.identifier).toUpperCase(),f=eY(e.toLowerCase()),g=a.footnoteOrder.indexOf(e),h=a.footnoteCounts.get(e);void 0===h?(h=0,a.footnoteOrder.push(e),c=a.footnoteOrder.length):c=g+1,h+=1,a.footnoteCounts.set(e,h);let i={type:"element",tagName:"a",properties:{href:"#"+d+"fn-"+f,id:d+"fnref-"+f+(h>1?"-"+h:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};a.patch(b,i);let j={type:"element",tagName:"sup",properties:{},children:[i]};return a.patch(b,j),a.applyData(b,j)},heading:function(a,b){let c={type:"element",tagName:"h"+b.depth,properties:{},children:a.all(b)};return a.patch(b,c),a.applyData(b,c)},html:function(a,b){if(a.options.allowDangerousHtml){let c={type:"raw",value:b.value};return a.patch(b,c),a.applyData(b,c)}},imageReference:function(a,b){let c=String(b.identifier).toUpperCase(),d=a.definitionById.get(c);if(!d)return e6(a,b);let e={src:eY(d.url||""),alt:b.alt};null!==d.title&&void 0!==d.title&&(e.title=d.title);let f={type:"element",tagName:"img",properties:e,children:[]};return a.patch(b,f),a.applyData(b,f)},image:function(a,b){let c={src:eY(b.url)};null!==b.alt&&void 0!==b.alt&&(c.alt=b.alt),null!==b.title&&void 0!==b.title&&(c.title=b.title);let d={type:"element",tagName:"img",properties:c,children:[]};return a.patch(b,d),a.applyData(b,d)},inlineCode:function(a,b){let c={type:"text",value:b.value.replace(/\r?\n|\r/g," ")};a.patch(b,c);let d={type:"element",tagName:"code",properties:{},children:[c]};return a.patch(b,d),a.applyData(b,d)},linkReference:function(a,b){let c=String(b.identifier).toUpperCase(),d=a.definitionById.get(c);if(!d)return e6(a,b);let e={href:eY(d.url||"")};null!==d.title&&void 0!==d.title&&(e.title=d.title);let f={type:"element",tagName:"a",properties:e,children:a.all(b)};return a.patch(b,f),a.applyData(b,f)},link:function(a,b){let c={href:eY(b.url)};null!==b.title&&void 0!==b.title&&(c.title=b.title);let d={type:"element",tagName:"a",properties:c,children:a.all(b)};return a.patch(b,d),a.applyData(b,d)},listItem:function(a,b,c){let d=a.all(b),e=c?function(a){let b=!1;if("list"===a.type){b=a.spread||!1;let c=a.children,d=-1;for(;!b&&++d<c.length;)b=e7(c[d])}return b}(c):e7(b),f={},g=[];if("boolean"==typeof b.checked){let a,c=d[0];c&&"element"===c.type&&"p"===c.tagName?a=c:(a={type:"element",tagName:"p",properties:{},children:[]},d.unshift(a)),a.children.length>0&&a.children.unshift({type:"text",value:" "}),a.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:b.checked,disabled:!0},children:[]}),f.className=["task-list-item"]}let h=-1;for(;++h<d.length;){let a=d[h];(e||0!==h||"element"!==a.type||"p"!==a.tagName)&&g.push({type:"text",value:"\n"}),"element"!==a.type||"p"!==a.tagName||e?g.push(a):g.push(...a.children)}let i=d[d.length-1];i&&(e||"element"!==i.type||"p"!==i.tagName)&&g.push({type:"text",value:"\n"});let j={type:"element",tagName:"li",properties:f,children:g};return a.patch(b,j),a.applyData(b,j)},list:function(a,b){let c={},d=a.all(b),e=-1;for("number"==typeof b.start&&1!==b.start&&(c.start=b.start);++e<d.length;){let a=d[e];if("element"===a.type&&"li"===a.tagName&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){c.className=["contains-task-list"];break}}let f={type:"element",tagName:b.ordered?"ol":"ul",properties:c,children:a.wrap(d,!0)};return a.patch(b,f),a.applyData(b,f)},paragraph:function(a,b){let c={type:"element",tagName:"p",properties:{},children:a.all(b)};return a.patch(b,c),a.applyData(b,c)},root:function(a,b){let c={type:"root",children:a.wrap(a.all(b))};return a.patch(b,c),a.applyData(b,c)},strong:function(a,b){let c={type:"element",tagName:"strong",properties:{},children:a.all(b)};return a.patch(b,c),a.applyData(b,c)},table:function(a,b){let c=a.all(b),d=c.shift(),e=[];if(d){let c={type:"element",tagName:"thead",properties:{},children:a.wrap([d],!0)};a.patch(b.children[0],c),e.push(c)}if(c.length>0){let d={type:"element",tagName:"tbody",properties:{},children:a.wrap(c,!0)},f=c2(b.children[1]),g=c1(b.children[b.children.length-1]);f&&g&&(d.position={start:f,end:g}),e.push(d)}let f={type:"element",tagName:"table",properties:{},children:a.wrap(e,!0)};return a.patch(b,f),a.applyData(b,f)},tableCell:function(a,b){let c={type:"element",tagName:"td",properties:{},children:a.all(b)};return a.patch(b,c),a.applyData(b,c)},tableRow:function(a,b,c){let d=c?c.children:void 0,e=0===(d?d.indexOf(b):1)?"th":"td",f=c&&"table"===c.type?c.align:void 0,g=f?f.length:b.children.length,h=-1,i=[];for(;++h<g;){let c=b.children[h],d={},g=f?f[h]:void 0;g&&(d.align=g);let j={type:"element",tagName:e,properties:d,children:[]};c&&(j.children=a.all(c),a.patch(c,j),j=a.applyData(c,j)),i.push(j)}let j={type:"element",tagName:"tr",properties:{},children:a.wrap(i,!0)};return a.patch(b,j),a.applyData(b,j)},text:function(a,b){let c={type:"text",value:function(a){let b=String(a),c=/\r?\n|\r/g,d=c.exec(b),e=0,f=[];for(;d;)f.push(e8(b.slice(e,d.index),e>0,!0),d[0]),e=d.index+d[0].length,d=c.exec(b);return f.push(e8(b.slice(e),e>0,!1)),f.join("")}(String(b.value))};return a.patch(b,c),a.applyData(b,c)},thematicBreak:function(a,b){let c={type:"element",tagName:"hr",properties:{},children:[]};return a.patch(b,c),a.applyData(b,c)},toml:fa,yaml:fa,definition:fa,footnoteDefinition:fa};function fa(){}let fb={}.hasOwnProperty,fc={};function fd(a,b){a.position&&(b.position=c4(a))}function fe(a,b){let c=b;if(a&&a.data){let b=a.data.hName,d=a.data.hChildren,e=a.data.hProperties;"string"==typeof b&&("element"===c.type?c.tagName=b:c={type:"element",tagName:b,properties:{},children:"children"in c?c.children:[c]}),"element"===c.type&&e&&Object.assign(c.properties,eX(e)),"children"in c&&c.children&&null!=d&&(c.children=d)}return c}function ff(a,b){let c=[],d=-1;for(b&&c.push({type:"text",value:"\n"});++d<a.length;)d&&c.push({type:"text",value:"\n"}),c.push(a[d]);return b&&a.length>0&&c.push({type:"text",value:"\n"}),c}function fg(a){let b=0,c=a.charCodeAt(b);for(;9===c||32===c;)b++,c=a.charCodeAt(b);return a.slice(b)}function fh(a,b){let c,d,e,f,g=(c=b||fc,d=new Map,e=new Map,f={all:function(a){let b=[];if("children"in a){let c=a.children,d=-1;for(;++d<c.length;){let e=f.one(c[d],a);if(e){if(d&&"break"===c[d-1].type&&(Array.isArray(e)||"text"!==e.type||(e.value=fg(e.value)),!Array.isArray(e)&&"element"===e.type)){let a=e.children[0];a&&"text"===a.type&&(a.value=fg(a.value))}Array.isArray(e)?b.push(...e):b.push(e)}}}return b},applyData:fe,definitionById:d,footnoteById:e,footnoteCounts:new Map,footnoteOrder:[],handlers:{...e9,...c.handlers},one:function(a,b){let c=a.type,d=f.handlers[c];if(fb.call(f.handlers,c)&&d)return d(f,a,b);if(f.options.passThrough&&f.options.passThrough.includes(c)){if("children"in a){let{children:b,...c}=a,d=eX(c);return d.children=f.all(a),d}return eX(a)}return(f.options.unknownHandler||function(a,b){let c=b.data||{},d="value"in b&&!(fb.call(c,"hProperties")||fb.call(c,"hChildren"))?{type:"text",value:b.value}:{type:"element",tagName:"div",properties:{},children:a.all(b)};return a.patch(b,d),a.applyData(b,d)})(f,a,b)},options:c,patch:fd,wrap:ff},e5(a,function(a){if("definition"===a.type||"footnoteDefinition"===a.type){let b="definition"===a.type?d:e,c=String(a.identifier).toUpperCase();b.has(c)||b.set(c,a)}}),f),h=g.one(a,void 0),i=function(a){let b="string"==typeof a.options.clobberPrefix?a.options.clobberPrefix:"user-content-",c=a.options.footnoteBackContent||eZ,d=a.options.footnoteBackLabel||e$,e=a.options.footnoteLabel||"Footnotes",f=a.options.footnoteLabelTagName||"h2",g=a.options.footnoteLabelProperties||{className:["sr-only"]},h=[],i=-1;for(;++i<a.footnoteOrder.length;){let e=a.footnoteById.get(a.footnoteOrder[i]);if(!e)continue;let f=a.all(e),g=String(e.identifier).toUpperCase(),j=eY(g.toLowerCase()),k=0,l=[],m=a.footnoteCounts.get(g);for(;void 0!==m&&++k<=m;){l.length>0&&l.push({type:"text",value:" "});let a="string"==typeof c?c:c(i,k);"string"==typeof a&&(a={type:"text",value:a}),l.push({type:"element",tagName:"a",properties:{href:"#"+b+"fnref-"+j+(k>1?"-"+k:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof d?d:d(i,k),className:["data-footnote-backref"]},children:Array.isArray(a)?a:[a]})}let n=f[f.length-1];if(n&&"element"===n.type&&"p"===n.tagName){let a=n.children[n.children.length-1];a&&"text"===a.type?a.value+=" ":n.children.push({type:"text",value:" "}),n.children.push(...l)}else f.push(...l);let o={type:"element",tagName:"li",properties:{id:b+"fn-"+j},children:a.wrap(f,!0)};a.patch(e,o),h.push(o)}if(0!==h.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:f,properties:{...eX(g),id:"footnote-label"},children:[{type:"text",value:e}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:a.wrap(h,!0)},{type:"text",value:"\n"}]}}(g),j=Array.isArray(h)?{type:"root",children:h}:h||{type:"root",children:[]};return i&&j.children.push({type:"text",value:"\n"},i),j}function fi(a,b){return a&&"run"in a?async function(c,d){let e=fh(c,{file:d,...b});await a.run(e,d)}:function(c,d){return fh(c,{file:d,...a||b})}}function fj(a){if(a)throw a}var fk=c(5827);function fl(a){if("object"!=typeof a||null===a)return!1;let b=Object.getPrototypeOf(a);return(null===b||b===Object.prototype||null===Object.getPrototypeOf(b))&&!(Symbol.toStringTag in a)&&!(Symbol.iterator in a)}var fm=c(76760);let fn=require("node:process");function fo(a){return!!(null!==a&&"object"==typeof a&&"href"in a&&a.href&&"protocol"in a&&a.protocol&&void 0===a.auth)}let fp=require("node:url"),fq=["history","path","basename","stem","extname","dirname"];class fr{constructor(a){let b,c;b=a?fo(a)?{path:a}:"string"==typeof a||function(a){return!!(a&&"object"==typeof a&&"byteLength"in a&&"byteOffset"in a)}(a)?{value:a}:a:{},this.cwd="cwd"in b?"":fn.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let d=-1;for(;++d<fq.length;){const a=fq[d];a in b&&void 0!==b[a]&&null!==b[a]&&(this[a]="history"===a?[...b[a]]:b[a])}for(c in b)fq.includes(c)||(this[c]=b[c])}get basename(){return"string"==typeof this.path?fm.basename(this.path):void 0}set basename(a){ft(a,"basename"),fs(a,"basename"),this.path=fm.join(this.dirname||"",a)}get dirname(){return"string"==typeof this.path?fm.dirname(this.path):void 0}set dirname(a){fu(this.basename,"dirname"),this.path=fm.join(a||"",this.basename)}get extname(){return"string"==typeof this.path?fm.extname(this.path):void 0}set extname(a){if(fs(a,"extname"),fu(this.dirname,"extname"),a){if(46!==a.codePointAt(0))throw Error("`extname` must start with `.`");if(a.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=fm.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){fo(a)&&(a=(0,fp.fileURLToPath)(a)),ft(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return"string"==typeof this.path?fm.basename(this.path,this.extname):void 0}set stem(a){ft(a,"stem"),fs(a,"stem"),this.path=fm.join(this.dirname||"",a+(this.extname||""))}fail(a,b,c){let d=this.message(a,b,c);throw d.fatal=!0,d}info(a,b,c){let d=this.message(a,b,c);return d.fatal=void 0,d}message(a,b,c){let d=new c9(a,b,c);return this.path&&(d.name=this.path+":"+d.name,d.file=this.path),d.fatal=!1,this.messages.push(d),d}toString(a){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(a||void 0).decode(this.value)}}function fs(a,b){if(a&&a.includes(fm.sep))throw Error("`"+b+"` cannot be a path: did not expect `"+fm.sep+"`")}function ft(a,b){if(!a)throw Error("`"+b+"` cannot be empty")}function fu(a,b){if(!a)throw Error("Setting `"+b+"` requires `path` to be set too")}let fv=function(a){let b=this.constructor.prototype,c=b[a],d=function(){return c.apply(d,arguments)};return Object.setPrototypeOf(d,b),d},fw={}.hasOwnProperty;class fx extends fv{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let a=[],b={run:function(...b){let c=-1,d=b.pop();if("function"!=typeof d)throw TypeError("Expected function as last argument, not "+d);!function e(f,...g){let h=a[++c],i=-1;if(f)return void d(f);for(;++i<b.length;)(null===g[i]||void 0===g[i])&&(g[i]=b[i]);b=g,h?(function(a,b){let c;return function(...b){let f,g=a.length>b.length;g&&b.push(d);try{f=a.apply(this,b)}catch(a){if(g&&c)throw a;return d(a)}g||(f&&f.then&&"function"==typeof f.then?f.then(e,d):f instanceof Error?d(f):e(f))};function d(a,...e){c||(c=!0,b(a,...e))}function e(a){d(null,a)}})(h,e)(...g):d(null,...g)}(null,...b)},use:function(c){if("function"!=typeof c)throw TypeError("Expected `middelware` to be a function, not "+c);return a.push(c),b}};return b}()}copy(){let a=new fx,b=-1;for(;++b<this.attachers.length;){let c=this.attachers[b];a.use(...c)}return a.data(fk(!0,{},this.namespace)),a}data(a,b){return"string"==typeof a?2==arguments.length?(fB("data",this.frozen),this.namespace[a]=b,this):fw.call(this.namespace,a)&&this.namespace[a]||void 0:a?(fB("data",this.frozen),this.namespace=a,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[a,...b]=this.attachers[this.freezeIndex];if(!1===b[0])continue;!0===b[0]&&(b[0]=void 0);let c=a.call(this,...b);"function"==typeof c&&this.transformers.use(c)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(a){this.freeze();let b=fE(a),c=this.parser||this.Parser;return fz("parse",c),c(String(b),b)}process(a,b){let c=this;return this.freeze(),fz("process",this.parser||this.Parser),fA("process",this.compiler||this.Compiler),b?d(void 0,b):new Promise(d);function d(d,e){let f=fE(a),g=c.parse(f);function h(a,c){a||!c?e(a):d?d(c):b(void 0,c)}c.run(g,f,function(a,b,d){var e,f;if(a||!b||!d)return h(a);let g=c.stringify(b,d);"string"==typeof(e=g)||(f=e)&&"object"==typeof f&&"byteLength"in f&&"byteOffset"in f?d.value=g:d.result=g,h(a,d)})}}processSync(a){let b,c=!1;return this.freeze(),fz("processSync",this.parser||this.Parser),fA("processSync",this.compiler||this.Compiler),this.process(a,function(a,d){c=!0,fj(a),b=d}),fD("processSync","process",c),b}run(a,b,c){fC(a),this.freeze();let d=this.transformers;return c||"function"!=typeof b||(c=b,b=void 0),c?e(void 0,c):new Promise(e);function e(e,f){let g=fE(b);d.run(a,g,function(b,d,g){let h=d||a;b?f(b):e?e(h):c(void 0,h,g)})}}runSync(a,b){let c,d=!1;return this.run(a,b,function(a,b){fj(a),c=b,d=!0}),fD("runSync","run",d),c}stringify(a,b){this.freeze();let c=fE(b),d=this.compiler||this.Compiler;return fA("stringify",d),fC(a),d(a,c)}use(a,...b){let c=this.attachers,d=this.namespace;if(fB("use",this.frozen),null==a);else if("function"==typeof a)g(a,b);else if("object"==typeof a)Array.isArray(a)?f(a):e(a);else throw TypeError("Expected usable value, not `"+a+"`");return this;function e(a){if(!("plugins"in a)&&!("settings"in a))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(a.plugins),a.settings&&(d.settings=fk(!0,d.settings,a.settings))}function f(a){let b=-1;if(null==a);else if(Array.isArray(a))for(;++b<a.length;)!function(a){if("function"==typeof a)g(a,[]);else if("object"==typeof a)if(Array.isArray(a)){let[b,...c]=a;g(b,c)}else e(a);else throw TypeError("Expected usable value, not `"+a+"`")}(a[b]);else throw TypeError("Expected a list of plugins, not `"+a+"`")}function g(a,b){let d=-1,e=-1;for(;++d<c.length;)if(c[d][0]===a){e=d;break}if(-1===e)c.push([a,...b]);else if(b.length>0){let[d,...f]=b,g=c[e][1];fl(g)&&fl(d)&&(d=fk(!0,g,d)),c[e]=[a,d,...f]}}}}let fy=new fx().freeze();function fz(a,b){if("function"!=typeof b)throw TypeError("Cannot `"+a+"` without `parser`")}function fA(a,b){if("function"!=typeof b)throw TypeError("Cannot `"+a+"` without `compiler`")}function fB(a,b){if(b)throw Error("Cannot call `"+a+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function fC(a){if(!fl(a)||"string"!=typeof a.type)throw TypeError("Expected node, got `"+a+"`")}function fD(a,b,c){if(!c)throw Error("`"+a+"` finished async. Use `"+b+"` instead")}function fE(a){var b;return(b=a)&&"object"==typeof b&&"message"in b&&"messages"in b?a:new fr(a)}let fF=[],fG={allowDangerousHtml:!0},fH=/^(https?|ircs?|mailto|xmpp)$/i,fI=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function fJ(a){var b;let c,d,e,f,g,h=(c=(b=a).rehypePlugins||fF,d=b.remarkPlugins||fF,e=b.remarkRehypeOptions?{...b.remarkRehypeOptions,...fG}:fG,fy().use(eP).use(d).use(fi,e).use(c)),i=(f=a.children||"",g=new fr,"string"==typeof f&&(g.value=f),g);return function(a,b){let c=b.allowedElements,d=b.allowElement,e=b.components,f=b.disallowedElements,g=b.skipHtml,h=b.unwrapDisallowed,i=b.urlTransform||fK;for(let a of fI)Object.hasOwn(b,a.from)&&(a.from,a.to&&a.to,a.id);return e5(a,function(a,b,e){if("raw"===a.type&&e&&"number"==typeof b)return g?e.children.splice(b,1):e.children[b]={type:"text",value:a.value},b;if("element"===a.type){let b;for(b in dn)if(Object.hasOwn(dn,b)&&Object.hasOwn(a.properties,b)){let c=a.properties[b],d=dn[b];(null===d||d.includes(a.tagName))&&(a.properties[b]=i(String(c||""),b,a))}}if("element"===a.type){let g=c?!c.includes(a.tagName):!!f&&f.includes(a.tagName);if(!g&&d&&"number"==typeof b&&(g=!d(a,b,e)),g&&e&&"number"==typeof b)return h&&a.children?e.children.splice(b,1,...a.children):e.children.splice(b,1),b}}),function(a,b){var c,d,e,f;let g;if(!b||void 0===b.Fragment)throw TypeError("Expected `Fragment` in options");let h=b.filePath||void 0;if(b.development){if("function"!=typeof b.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");c=h,d=b.jsxDEV,g=function(a,b,e,f){let g=Array.isArray(e.children),h=c2(a);return d(b,e,f,g,{columnNumber:h?h.column-1:void 0,fileName:c,lineNumber:h?h.line:void 0},void 0)}}else{if("function"!=typeof b.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof b.jsxs)throw TypeError("Expected `jsxs` in production options");e=b.jsx,f=b.jsxs,g=function(a,b,c,d){let g=Array.isArray(c.children)?f:e;return d?g(b,c,d):g(b,c)}}let i={Fragment:b.Fragment,ancestors:[],components:b.components||{},create:g,elementAttributeNameCase:b.elementAttributeNameCase||"react",evaluater:b.createEvaluater?b.createEvaluater():void 0,filePath:h,ignoreInvalidStyle:b.ignoreInvalidStyle||!1,passKeys:!1!==b.passKeys,passNode:b.passNode||!1,schema:"svg"===b.space?cS:cR,stylePropertyNameCase:b.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==b.tableCellAlignToStyle},j=dg(i,a,void 0);return j&&"string"!=typeof j?j:i.create(a,i.Fragment,{children:j||void 0},void 0)}(a,{Fragment:s.Fragment,components:e,ignoreInvalidStyle:!0,jsx:s.jsx,jsxs:s.jsxs,passKeys:!0,passNode:!0})}(h.runSync(h.parse(i),i),a)}function fK(a){let b=a.indexOf(":"),c=a.indexOf("?"),d=a.indexOf("#"),e=a.indexOf("/");return -1===b||-1!==e&&b>e||-1!==c&&b>c||-1!==d&&b>d||fH.test(a.slice(0,b))?a:""}let fL=/[#.]/g;function fM(a,b,c){let d=c?function(a){let b=new Map;for(let c of a)b.set(c.toLowerCase(),c);return b}(c):void 0;return function(c,e,...f){let g;if(null==c)g={type:"root",children:[]},f.unshift(e);else{let h=(g=function(a,b){let c,d,e=a||"",f={},g=0;for(;g<e.length;){fL.lastIndex=g;let a=fL.exec(e),b=e.slice(g,a?a.index:e.length);b&&(c?"#"===c?f.id=b:Array.isArray(f.className)?f.className.push(b):f.className=[b]:d=b,g+=b.length),a&&(c=a[0],g++)}return{type:"element",tagName:d||b||"div",properties:f,children:[]}}(c,b)).tagName.toLowerCase(),i=d?d.get(h):void 0;if(g.tagName=i||h,function(a){if(null===a||"object"!=typeof a||Array.isArray(a))return!0;if("string"!=typeof a.type)return!1;for(let b of Object.keys(a)){let c=a[b];if(c&&"object"==typeof c){if(!Array.isArray(c))return!0;for(let a of c)if("number"!=typeof a&&"string"!=typeof a)return!0}}return!!("children"in a&&Array.isArray(a.children))}(e))f.unshift(e);else for(let[b,c]of Object.entries(e))!function(a,b,c,d){let e,f=cW(a,c);if(null!=d){if("number"==typeof d){if(Number.isNaN(d))return;e=d}else e="boolean"==typeof d?d:"string"==typeof d?f.spaceSeparated?c$(d):f.commaSeparated?cl(d):f.commaOrSpaceSeparated?c$(cl(d).join(" ")):fN(f,f.property,d):Array.isArray(d)?[...d]:"style"===f.property?function(a){let b=[];for(let[c,d]of Object.entries(a))b.push([c,d].join(": "));return b.join("; ")}(d):String(d);if(Array.isArray(e)){let a=[];for(let b of e)a.push(fN(f,f.property,b));e=a}"className"===f.property&&Array.isArray(b.className)&&(e=b.className.concat(e)),b[f.property]=e}}(a,g.properties,b,c)}for(let a of f)!function a(b,c){if(null==c);else if("number"==typeof c||"string"==typeof c)b.push({type:"text",value:String(c)});else if(Array.isArray(c))for(let d of c)a(b,d);else if("object"==typeof c&&"type"in c)"root"===c.type?a(b,c.children):b.push(c);else throw Error("Expected node, nodes, or string, got `"+c+"`")}(g.children,a);return"element"===g.type&&"template"===g.tagName&&(g.content={type:"root",children:g.children},g.children=[]),g}}function fN(a,b,c){if("string"==typeof c){if(a.number&&c&&!Number.isNaN(Number(c)))return Number(c);if((a.boolean||a.overloadedBoolean)&&(""===c||cv(c)===cv(b)))return!0}return c}let fO=fM(cR,"div"),fP=fM(cS,"g",["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"]);function fQ(a,b){let c=a.indexOf("\r",b),d=a.indexOf("\n",b);return -1===d?c:-1===c||c+1===d?d:c<d?c:d}let fR={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/"},fS={}.hasOwnProperty,fT=Object.prototype;function fU(a,b){let c=b||{};return fV({file:c.file||void 0,location:!1,schema:"svg"===c.space?cS:cR,verbose:c.verbose||!1},a)}function fV(a,b){let c;switch(b.nodeName){case"#comment":return c={type:"comment",value:b.data},fX(a,b,c),c;case"#document":case"#document-fragment":{let d="mode"in b&&("quirks"===b.mode||"limited-quirks"===b.mode);if(c={type:"root",children:fW(a,b.childNodes),data:{quirksMode:d}},a.file&&a.location){let b,d,e=String(a.file),f=(b=String(e),d=[],{toOffset:function(a){if(a&&"number"==typeof a.line&&"number"==typeof a.column&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;d.length<a.line;){let a=d[d.length-1],c=fQ(b,a),e=-1===c?b.length+1:c+1;if(a===e)break;d.push(e)}let c=(a.line>1?d[a.line-2]:0)+a.column-1;if(c<d[a.line-1])return c}},toPoint:function(a){if("number"==typeof a&&a>-1&&a<=b.length){let c=0;for(;;){let e=d[c];if(void 0===e){let a=fQ(b,d[c-1]);e=-1===a?b.length+1:a+1,d[c]=e}if(e>a)return{line:c+1,column:a-(c>0?d[c-1]:0)+1,offset:a};c++}}}}),g=f.toPoint(0),h=f.toPoint(e.length);c.position={start:g,end:h}}return c}case"#documentType":return fX(a,b,c={type:"doctype"}),c;case"#text":return c={type:"text",value:b.value},fX(a,b,c),c;default:return function(a,b){let c=a.schema;a.schema=b.namespaceURI===fR.svg?cS:cR;let d=-1,e={};for(;++d<b.attrs.length;){let a=b.attrs[d],c=(a.prefix?a.prefix+":":"")+a.name;fS.call(fT,c)||(e[c]=a.value)}let f=("svg"===a.schema.space?fP:fO)(b.tagName,e,fW(a,b.childNodes));if(fX(a,b,f),"template"===f.tagName){let c=b.sourceCodeLocation,d=c&&c.startTag&&fY(c.startTag),e=c&&c.endTag&&fY(c.endTag),g=fV(a,b.content);d&&e&&a.file&&(g.position={start:d.end,end:e.start}),f.content=g}return a.schema=c,f}(a,b)}}function fW(a,b){let c=-1,d=[];for(;++c<b.length;){let e=fV(a,b[c]);d.push(e)}return d}function fX(a,b,c){if("sourceCodeLocation"in b&&b.sourceCodeLocation&&a.file){let d=function(a,b,c){let d=fY(c);if("element"===b.type){let e=b.children[b.children.length-1];if(d&&!c.endTag&&e&&e.position&&e.position.end&&(d.end=Object.assign({},e.position.end)),a.verbose){let d,e={};if(c.attrs)for(d in c.attrs)fS.call(c.attrs,d)&&(e[cW(a.schema,d).property]=fY(c.attrs[d]));c.startTag;let f=fY(c.startTag),g=c.endTag?fY(c.endTag):void 0,h={opening:f};g&&(h.closing=g),h.properties=e,b.data={position:h}}}return d}(a,c,b.sourceCodeLocation);d&&(a.location=!0,c.position=d)}}function fY(a){let b=fZ({line:a.startLine,column:a.startCol,offset:a.startOffset}),c=fZ({line:a.endLine,column:a.endCol,offset:a.endOffset});return b||c?{start:b,end:c}:void 0}function fZ(a){return a.line&&a.column?a:void 0}let f$=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]);(yR=zj||(zj={}))[yR.EOF=-1]="EOF",yR[yR.NULL=0]="NULL",yR[yR.TABULATION=9]="TABULATION",yR[yR.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",yR[yR.LINE_FEED=10]="LINE_FEED",yR[yR.FORM_FEED=12]="FORM_FEED",yR[yR.SPACE=32]="SPACE",yR[yR.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",yR[yR.QUOTATION_MARK=34]="QUOTATION_MARK",yR[yR.AMPERSAND=38]="AMPERSAND",yR[yR.APOSTROPHE=39]="APOSTROPHE",yR[yR.HYPHEN_MINUS=45]="HYPHEN_MINUS",yR[yR.SOLIDUS=47]="SOLIDUS",yR[yR.DIGIT_0=48]="DIGIT_0",yR[yR.DIGIT_9=57]="DIGIT_9",yR[yR.SEMICOLON=59]="SEMICOLON",yR[yR.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",yR[yR.EQUALS_SIGN=61]="EQUALS_SIGN",yR[yR.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",yR[yR.QUESTION_MARK=63]="QUESTION_MARK",yR[yR.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",yR[yR.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",yR[yR.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",yR[yR.GRAVE_ACCENT=96]="GRAVE_ACCENT",yR[yR.LATIN_SMALL_A=97]="LATIN_SMALL_A",yR[yR.LATIN_SMALL_Z=122]="LATIN_SMALL_Z";let f_="[CDATA[",f0="doctype",f1="script";function f2(a){return a>=55296&&a<=57343}function f3(a){return 32!==a&&10!==a&&13!==a&&9!==a&&12!==a&&a>=1&&a<=31||a>=127&&a<=159}function f4(a){return a>=64976&&a<=65007||f$.has(a)}(yS=zk||(zk={})).controlCharacterInInputStream="control-character-in-input-stream",yS.noncharacterInInputStream="noncharacter-in-input-stream",yS.surrogateInInputStream="surrogate-in-input-stream",yS.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",yS.endTagWithAttributes="end-tag-with-attributes",yS.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",yS.unexpectedSolidusInTag="unexpected-solidus-in-tag",yS.unexpectedNullCharacter="unexpected-null-character",yS.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",yS.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",yS.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",yS.missingEndTagName="missing-end-tag-name",yS.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",yS.unknownNamedCharacterReference="unknown-named-character-reference",yS.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",yS.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",yS.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",yS.eofBeforeTagName="eof-before-tag-name",yS.eofInTag="eof-in-tag",yS.missingAttributeValue="missing-attribute-value",yS.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",yS.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",yS.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",yS.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",yS.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",yS.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",yS.missingDoctypePublicIdentifier="missing-doctype-public-identifier",yS.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",yS.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",yS.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",yS.cdataInHtmlContent="cdata-in-html-content",yS.incorrectlyOpenedComment="incorrectly-opened-comment",yS.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",yS.eofInDoctype="eof-in-doctype",yS.nestedComment="nested-comment",yS.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",yS.eofInComment="eof-in-comment",yS.incorrectlyClosedComment="incorrectly-closed-comment",yS.eofInCdata="eof-in-cdata",yS.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",yS.nullCharacterReference="null-character-reference",yS.surrogateCharacterReference="surrogate-character-reference",yS.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",yS.controlCharacterReference="control-character-reference",yS.noncharacterCharacterReference="noncharacter-character-reference",yS.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",yS.missingDoctypeName="missing-doctype-name",yS.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",yS.duplicateAttribute="duplicate-attribute",yS.nonConformingDoctype="non-conforming-doctype",yS.missingDoctype="missing-doctype",yS.misplacedDoctype="misplaced-doctype",yS.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",yS.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",yS.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",yS.openElementsLeftAfterEof="open-elements-left-after-eof",yS.abandonedHeadElementChild="abandoned-head-element-child",yS.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",yS.nestedNoscriptInHead="nested-noscript-in-head",yS.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text";class f5{constructor(a){this.handler=a,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(a,b){let{line:c,col:d,offset:e}=this,f=d+b,g=e+b;return{code:a,startLine:c,endLine:c,startCol:f,endCol:f,startOffset:g,endOffset:g}}_err(a){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(a,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(a){if(this.pos!==this.html.length-1){let b=this.html.charCodeAt(this.pos+1);if(b>=56320&&b<=57343)return this.pos++,this._addGap(),(a-55296)*1024+9216+b}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,zj.EOF;return this._err(zk.surrogateInInputStream),a}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(a,b){this.html.length>0?this.html+=a:this.html=a,this.endOfChunkHit=!1,this.lastChunkWritten=b}insertHtmlAtCurrentPos(a){this.html=this.html.substring(0,this.pos+1)+a+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(a,b){if(this.pos+a.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(b)return this.html.startsWith(a,this.pos);for(let b=0;b<a.length;b++)if((32|this.html.charCodeAt(this.pos+b))!==a.charCodeAt(b))return!1;return!0}peek(a){let b=this.pos+a;if(b>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,zj.EOF;let c=this.html.charCodeAt(b);return c===zj.CARRIAGE_RETURN?zj.LINE_FEED:c}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,zj.EOF;let a=this.html.charCodeAt(this.pos);return a===zj.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,zj.LINE_FEED):a===zj.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,f2(a)&&(a=this._processSurrogate(a)),null===this.handler.onParseError||a>31&&a<127||a===zj.LINE_FEED||a===zj.CARRIAGE_RETURN||a>159&&a<64976||this._checkForProblematicCharacters(a),a)}_checkForProblematicCharacters(a){f3(a)?this._err(zk.controlCharacterInInputStream):f4(a)&&this._err(zk.noncharacterInInputStream)}retreat(a){for(this.pos-=a;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}function f6(a,b){for(let c=a.attrs.length-1;c>=0;c--)if(a.attrs[c].name===b)return a.attrs[c].value;return null}(yT=zl||(zl={}))[yT.CHARACTER=0]="CHARACTER",yT[yT.NULL_CHARACTER=1]="NULL_CHARACTER",yT[yT.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",yT[yT.START_TAG=3]="START_TAG",yT[yT.END_TAG=4]="END_TAG",yT[yT.COMMENT=5]="COMMENT",yT[yT.DOCTYPE=6]="DOCTYPE",yT[yT.EOF=7]="EOF",yT[yT.HIBERNATION=8]="HIBERNATION";let f7=new Uint16Array('ᵁ<\xd5ıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig耻\xc6䃆P耻&䀦cute耻\xc1䃁reve;䄂Āiyx}rc耻\xc2䃂;䐐r;쀀\uD835\uDD04rave耻\xc0䃀pha;䎑acr;䄀d;橓Āgp\x9d\xa1on;䄄f;쀀\uD835\uDD38plyFunction;恡ing耻\xc5䃅Ācs\xbe\xc3r;쀀\uD835\uDC9Cign;扔ilde耻\xc3䃃ml耻\xc4䃄Ѐaceforsu\xe5\xfb\xfeėĜĢħĪĀcr\xea\xf2kslash;或Ŷ\xf6\xf8;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀\uD835\uDD05pf;쀀\uD835\uDD39eve;䋘c\xf2ēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻\xa9䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻\xc7䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷\xf2ſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀\uD835\uDC9EpĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀\uD835\uDD07Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀\uD835\uDD3Bƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegra\xecȹoɴ\0\0ͻ\xbb͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔e\xe5ˊ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;쀀\uD835\uDC9Frok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻\xd0䃐cute耻\xc9䃉ƀaiyӒӗӜron;䄚rc耻\xca䃊;䐭ot;䄖r;쀀\uD835\uDD08rave耻\xc8䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀\uD835\uDD3Csilon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻\xcb䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀\uD835\uDD09lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀\uD835\uDD3DAll;戀riertrf;愱c\xf2JTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀\uD835\uDD0A;拙pf;쀀\uD835\uDD3Eeater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀\uD835\uDCA2;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅ\xf2کrok;䄦mpńېۘownHum\xf0įqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻\xcd䃍Āiyܓܘrc耻\xce䃎;䐘ot;䄰r;愑rave耻\xcc䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lie\xf3ϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀\uD835\uDD40a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻\xcf䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀\uD835\uDD0Dpf;쀀\uD835\uDD41ǣ߇\0ߌr;쀀\uD835\uDCA5rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀\uD835\uDD0Epf;쀀\uD835\uDD42cr;쀀\uD835\uDCA6րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\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\xe1Μs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀\uD835\uDD0FĀ;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊight\xe1οight\xe1ϊf;쀀\uD835\uDD43erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂ\xf2ࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀\uD835\uDD10nusPlus;戓pf;쀀\uD835\uDD44c\xf2੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦\xeberyThi\xeetedĀGLଆreaterGreate\xf2ٳessLes\xf3ੈLine;䀊r;쀀\uD835\uDD11ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀\uD835\uDCA9ilde耻\xd1䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻\xd3䃓Āiyීrc耻\xd4䃔;䐞blac;䅐r;쀀\uD835\uDD12rave耻\xd2䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀\uD835\uDD46enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀\uD835\uDCAAash耻\xd8䃘iŬืde耻\xd5䃕es;樷ml耻\xd6䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀\uD835\uDD13i;䎦;䎠usMinus;䂱Āipຢອncareplan\xe5ڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀\uD835\uDCAB;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀\uD835\uDD14pf;愚cr;쀀\uD835\uDCACBEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻\xae䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r\xbbཹ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;쀀\uD835\uDD16ortȀDLRUᄪᄴᄾᅉownArrow\xbbОeftArrow\xbb࢚ightArrow\xbbpArrow;憑gma;䎣allCircle;战pf;쀀\uD835\uDD4Aɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀\uD835\uDCAEar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Th\xe1ྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et\xbbሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻\xde䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀\uD835\uDD17ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀\uD835\uDD4BipleDot;惛Āctዖዛr;쀀\uD835\uDCAFrok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻\xda䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻\xdb䃛;䐣blac;䅰r;쀀\uD835\uDD18rave耻\xd9䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀\uD835\uDD4CЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥own\xe1ϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀\uD835\uDCB0ilde;䅨ml耻\xdc䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀\uD835\uDD19pf;쀀\uD835\uDD4Dcr;쀀\uD835\uDCB1dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀\uD835\uDD1Apf;쀀\uD835\uDD4Ecr;쀀\uD835\uDCB2Ȁfiosᓋᓐᓒᓘr;쀀\uD835\uDD1B;䎞pf;쀀\uD835\uDD4Fcr;쀀\uD835\uDCB3ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻\xdd䃝Āiyᔉᔍrc;䅶;䐫r;쀀\uD835\uDD1Cpf;쀀\uD835\uDD50cr;쀀\uD835\uDCB4ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidt\xe8a;䎖r;愨pf;愤cr;쀀\uD835\uDCB5ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻\xe1䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻\xe2䃢te肻\xb4̆;䐰lig耻\xe6䃦Ā;r\xb2ᖺ;쀀\uD835\uDD1Erave耻\xe0䃠ĀepᗊᗖĀfpᗏᗔsym;愵\xe8ᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e\xbbᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢\xbb\xb9arr;捼Āgpᙣᙧon;䄅f;쀀\uD835\uDD52;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒ\xf1ᚃing耻\xe5䃥ƀctyᚡᚦᚨr;쀀\uD835\uDCB6;䀪mpĀ;eᚯ\xf1ʈilde耻\xe3䃣ml耻\xe4䃤Āciᛂᛈonin\xf4ɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e\xbbᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰s\xe9ᜌno\xf5ēƀahwᝯᝳ;䎲;愶een;扬r;쀀\uD835\uDD1Fgcostuvwឍឝឳេ៕៛ƀaiuបពរ\xf0ݠrc;旯p\xbb፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄e\xe5ᑄ\xe5ᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀\uD835\uDD53Ā;tᏋᡣom\xbbᏌtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻\xa6䂦Ȁceioᥑᥖᥚᥠr;쀀\uD835\uDCB7mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t\xbbpƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁\xeeړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻\xe7䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻\xb8ƭptyv;榲t脀\xa2;eᨭᨮ䂢r\xe4Ʋr;쀀\uD835\uDD20ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark\xbbᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖\xbbཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it\xbb᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;q\xc7\xc6ɭ\0\0aĀ;t䀬;䁀ƀ;fl戁\xeeᅠeĀmxent\xbbe\xf3ɍǧ\0ᬇĀ;dኻᬂot;橭n\xf4Ɇƀfryᬐᬔᬗ;쀀\uD835\uDD54o\xe4ɔ脀\xa9;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀\uD835\uDCB8Ā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\xe3᭳u\xe3᭵ee;拎edge;拏en耻\xa4䂤earrowĀlrᯮ᯳eft\xbbᮀight\xbbᮽe\xe4ᯝĀciᰁᰇonin\xf4Ƿnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍r\xf2ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸\xf2ᄳhĀ;vᱚᱛ怐\xbbऊūᱡᱧarow;椏a\xe3̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻\xb0䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀\uD835\uDD21arĀlrᲳᲵ\xbbࣜ\xbbသʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀\xf7;o᳧ᳰntimes;拇n\xf8᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀\uD835\uDD55ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedg\xe5\xfanƀadhᄮᵝᵧownarrow\xf3ᲃarpoonĀlrᵲᵶef\xf4Ჴigh\xf4ᲶŢᵿᶅkaro\xf7གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀\uD835\uDCB9;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃r\xf2Щa\xf2ྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴo\xf4ĀcsḎḔute耻\xe9䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻\xea䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀\uD835\uDD22ƀ;rsṐṑṗ檚ave耻\xe8䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et\xbbẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀\uD835\uDD56ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on\xbbớ;䏵ȀcsuvỪỳἋἣĀioữḱrc\xbbḮɩỹ\0\0ỻ\xedՈantĀglἂἆtr\xbbṝess\xbbṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯o\xf4͒ĀahὉὋ;䎷耻\xf0䃰Āmrὓὗl耻\xeb䃫o;悬ƀcipὡὤὧl;䀡s\xf4ծĀeoὬὴctatio\xeeՙnential\xe5չৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotse\xf1Ṅy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀\uD835\uDD23lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀\uD835\uDD57ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻\xbd䂽;慓耻\xbc䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻\xbe䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀\uD835\uDCBBࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlan\xf4٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀\uD835\uDD24Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox\xbbℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀\uD835\uDD58Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0pro\xf8r;楸qĀlqؿ↖les\xf3₈i\xed٫Āen↣↭rtneqq;쀀≩︀\xc5↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽r\xf2ΠȀilmr⇐⇔⇗⇛rs\xf0ᒄf\xbb․il\xf4کĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it\xbb∊lip;怦con;抹r;쀀\uD835\uDD25sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀\uD835\uDD59bar;怕ƀclt≯≴≸r;쀀\uD835\uDCBDas\xe8⇴rok;䄧Ābp⊂⊇ull;恃hen\xbbᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻\xed䃭ƀ;iyݱ⊰⊵rc耻\xee䃮;䐸Ācx⊼⊿y;䐵cl耻\xa1䂡ĀfrΟ⋉;쀀\uD835\uDD26rave耻\xec䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓in\xe5ގar\xf4ܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝do\xf4⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙er\xf3ᕣ\xe3⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀\uD835\uDD5Aa;䎹uest耻\xbf䂿Āci⎊⎏r;쀀\uD835\uDCBEnʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻\xef䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀\uD835\uDD27ath;䈷pf;쀀\uD835\uDD5Bǣ⏬\0⏱r;쀀\uD835\uDCBFrcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀\uD835\uDD28reen;䄸cy;䑅cy;䑜pf;쀀\uD835\uDD5Ccr;쀀\uD835\uDCC0ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼r\xf2\xf2Εail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴ra\xeeࡌbda;䎻gƀ;dlࢎⓁⓃ;榑\xe5ࢎ;檅uo耻\xab䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝\xeb≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼\xecࢰ\xe2┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□a\xe9⓶arpoonĀdu▯▴own\xbbњp\xbb०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoon\xf3quigarro\xf7⇰hreetimes;拋ƀ;qs▋ও◺lan\xf4বʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋ppro\xf8Ⓠot;拖qĀgq♃♅\xf4উgt\xf2⒌\xf4ছi\xedলƀilr♕࣡♚sht;楼;쀀\uD835\uDD29Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖r\xf2◁orne\xf2ᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che\xbb⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox\xbb⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽r\xebࣁgƀlmr⛿✍✔eftĀar০✇ight\xe1৲apsto;柼ight\xe1৽parrowĀlr✥✩ef\xf4⓭ight;憬ƀafl✶✹✽r;榅;쀀\uD835\uDD5Dus;樭imes;樴š❋❏st;戗\xe1ፎƀ;ef❗❘᠀旊nge\xbb❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇r\xf2ࢨorne\xf2ᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀\uD835\uDCC1mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹re\xe5◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀\xc5⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻\xaf䂯Āet⡗⡙;時Ā;e⡞⡟朠se\xbb⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻ow\xeeҌef\xf4ए\xf0Ꮡker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle\xbbᘦr;쀀\uD835\uDD2Ao;愧ƀcdn⢯⢴⣉ro耻\xb5䂵Ȁ;acdᑤ⢽⣀⣄s\xf4ᚧir;櫰ot肻\xb7Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛\xf2−\xf0ઁĀdp⣩⣮els;抧f;쀀\uD835\uDD5EĀct⣸⣽r;쀀\uD835\uDCC2pos\xbbᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la\xbb˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉ro\xf8urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xa0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸ui\xf6ୣĀei⩊⩎ar;椨\xedistĀ;sடr;쀀\uD835\uDD2BȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lan\xf4i\xed௪Ā;rஶ⪁\xbbஷƀAap⪊⪍⪑r\xf2⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹r\xf2⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro\xf7⫁ightarro\xf7⪐ƀ;qs⪺⫪lan\xf4ౕĀ;sౕ⫴\xbbశi\xedౝĀ;rవ⫾iĀ;eచథi\xe4ඐĀpt⬌⬑f;쀀\uD835\uDD5F膀\xac;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lle\xecl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳u\xe5ಥĀ;cಘ⭸Ā;eಒ⭽\xf1ಘȀAait⮈⮋⮝⮧r\xf2⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow\xbb⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉u\xe5;쀀\uD835\uDCC3ortɭ⬅\0\0⯖ar\xe1⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭\xe5\xe5ഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗ\xf1സȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇ\xecௗlde耻\xf1䃱\xe7ృiangleĀlrⱒⱜeftĀ;eచⱚ\xf1దightĀ;eೋⱥ\xf1Ā;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耻\xf3䃳ĀiyⴼⵅrĀ;cⵂ耻\xf4䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀\uD835\uDD2Cͯ\0\0\0ⶂn;䋛ave耻\xf2䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨr\xf2᪀Āirⶠr;榾oss;榻n\xe5๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀\uD835\uDD60ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨r\xf2᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f\xbbⷿ耻\xaa䂪耻\xba䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧\xf2⸁ash耻\xf8䃸l;折iŬⸯ⸴de耻\xf5䃵esĀ;aǛ⸺s;樶ml耻\xf6䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀\xb6;l䂶le\xecЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀\uD835\uDD2Dƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕ma\xf4੶ne;明ƀ;tv⺿⻀⻈䏀chfork\xbb´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎\xf6⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻\xb1ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀\uD835\uDD61nd耻\xa3䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷u\xe5໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾ppro\xf8⽃urlye\xf1໙\xf1໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨i\xedໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺\xf0⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴\xefrel;抰Āci⿀⿅r;쀀\uD835\uDCC5;䏈ncsp;怈̀fiopsu⋢⿱r;쀀\uD835\uDD2Epf;쀀\uD835\uDD62rime;恗cr;쀀\uD835\uDCC6ƀaeo⿸〉〓tĀei々rnion\xf3ڰnt;樖stĀ;e【】䀿\xf1Ἑ\xf4༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがr\xf2Ⴓ\xf2ϝail;検ar\xf2ᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕i\xe3ᅮmptyv;榳gȀ;del࿑らるろ;榒;榥\xe5࿑uo耻\xbb䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞\xeb≝\xf0✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶al\xf3༞ƀabrョリヮr\xf2៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗\xec\xe2ヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜn\xe5Ⴛar\xf4ྩt;断ƀilrㅩဣㅮsht;楽;쀀\uD835\uDD2FĀaoㅷㆆrĀduㅽㅿ\xbbѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭa\xe9トarpoonĀduㆻㆿow\xeeㅾp\xbb႒eftĀah㇊㇐rrow\xf3arpoon\xf3Ցightarrows;應quigarro\xf7ニhreetimes;拌g;䋚ingdotse\xf1ἲƀahm㈍㈐㈓r\xf2a\xf2Ց;怏oustĀ;a㈞掱che\xbbmid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾r\xebဃƀafl㉇㉊㉎r;榆;쀀\uD835\uDD63us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒ar\xf2㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀\uD835\uDCC7Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠re\xe5ㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛qu\xef➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡u\xe5ᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓i\xedሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒\xeb∨Ā;oਸ਼t耻\xa7䂧i;䀻war;椩mĀin㍩\xf0nu\xf3\xf1t;朶rĀ;o㍶⁕쀀\uD835\uDD30Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜i\xe4ᑤara\xec耻\xad䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲ar\xf2ᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetm\xe9㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀\uD835\uDD64aĀdr㑍ЂesĀ;u㑔㑕晠it\xbb㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍\xf1ᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝\xf1ᆮƀ;afᅻ㒦ְrť㒫ֱ\xbbᅼar\xf2ᅈȀcemt㒹㒾㓂㓅r;쀀\uD835\uDCC8tm\xee\xf1i\xec㐕ar\xe6ᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psilo\xeeỠh\xe9⺯s\xbb⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦ppro\xf8㋺urlye\xf1ᇾ\xf1ᇳƀaes㖂㖈㌛ppro\xf8㌚q\xf1㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻\xb9䂹耻\xb2䂲耻\xb3䂳;櫆Ā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㘦㘨\xeb∮Ā;oਫwar;椪lig耻\xdf䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄r\xebƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀\uD835\uDD31Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮ppro\xf8im\xbbኬs\xf0ኞĀas㚺㚮\xf0rn耻\xfe䃾Ǭ̟㛆⋧es膀\xd7;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀\xe1⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀\uD835\uDD65rk;櫚\xe1㍢rime;怴ƀaip㜏㜒㝤d\xe5ቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own\xbbᶻeftĀ;e⠀㜾\xf1म;扜ightĀ;e㊪㝋\xf1ၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀\uD835\uDCC9;䑆cy;䑛rok;䅧Āio㞋㞎x\xf4headĀlr㞗㞠eftarro\xf7ࡏightarrow\xbbཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶r\xf2ϭar;楣Ācr㟜㟢ute耻\xfa䃺\xf2ᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻\xfb䃻;䑃ƀabh㠃㠆㠋r\xf2Ꭽlac;䅱a\xf2ᏃĀir㠓㠘sht;楾;쀀\uD835\uDD32rave耻\xf9䃹š㠧㠱rĀlr㠬㠮\xbbॗ\xbbႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r\xbb㡆op;挏ri;旸Āal㡖㡚cr;䅫肻\xa8͉Āgp㡢㡦on;䅳f;쀀\uD835\uDD66̀adhlsuᅋ㡸㡽፲㢑㢠own\xe1ᎳarpoonĀlr㢈㢌ef\xf4㠭igh\xf4㠯iƀ;hl㢙㢚㢜䏅\xbbᏺon\xbb㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r\xbb㢽op;挎ng;䅯ri;旹cr;쀀\uD835\uDCCAƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨\xbb᠓Āam㣯㣲r\xf2㢨l耻\xfc䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠r\xf2ϷarĀ;v㤦㤧櫨;櫩as\xe8ϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖app\xe1␕othin\xe7ẖƀhir㓫⻈㥙op\xf4⾵Ā;hᎷ㥢\xefㆍĀiu㥩㥭gm\xe1㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟et\xe1㚜iangleĀlr㦪㦯eft\xbbथight\xbbၑy;䐲ash\xbbံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨa\xf2ᑩr;쀀\uD835\uDD33tr\xe9㦮suĀbp㧯㧱\xbbജ\xbb൙pf;쀀\uD835\uDD67ro\xf0tr\xe9㦴Ācu㨆㨋r;쀀\uD835\uDCCBĀbp㨐㨘nĀEe㦀㨖\xbb㥾nĀEe㦒㨞\xbb㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀\uD835\uDD34pf;쀀\uD835\uDD68Ā;eᑹ㩦at\xe8ᑹcr;쀀\uD835\uDCCCૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtr\xe9៑r;쀀\uD835\uDD35ĀAa㪔㪗r\xf2σr\xf2৶;䎾ĀAa㪡㪤r\xf2θr\xf2৫a\xf0✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀\uD835\uDD69im\xe5ឲĀAa㫇㫊r\xf2ώr\xf2ਁĀcq㫒ីr;쀀\uD835\uDCCDĀpt៖㫜r\xe9។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻\xfd䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻\xa5䂥r;쀀\uD835\uDD36cy;䑗pf;쀀\uD835\uDD6Acr;쀀\uD835\uDCCEĀcm㬦㬩y;䑎l耻\xff䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡tr\xe6ᕟa;䎶r;쀀\uD835\uDD37cy;䐶grarr;懝pf;쀀\uD835\uDD6Bcr;쀀\uD835\uDCCFĀjn㮅㮇;怍j;怌'.split("").map(a=>a.charCodeAt(0))),f8=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 f9(a){return a>=zm.ZERO&&a<=zm.NINE}(yU=zm||(zm={}))[yU.NUM=35]="NUM",yU[yU.SEMI=59]="SEMI",yU[yU.EQUALS=61]="EQUALS",yU[yU.ZERO=48]="ZERO",yU[yU.NINE=57]="NINE",yU[yU.LOWER_A=97]="LOWER_A",yU[yU.LOWER_F=102]="LOWER_F",yU[yU.LOWER_X=120]="LOWER_X",yU[yU.LOWER_Z=122]="LOWER_Z",yU[yU.UPPER_A=65]="UPPER_A",yU[yU.UPPER_F=70]="UPPER_F",yU[yU.UPPER_Z=90]="UPPER_Z",(yV=zn||(zn={}))[yV.VALUE_LENGTH=49152]="VALUE_LENGTH",yV[yV.BRANCH_LENGTH=16256]="BRANCH_LENGTH",yV[yV.JUMP_TABLE=127]="JUMP_TABLE",(yW=zo||(zo={}))[yW.EntityStart=0]="EntityStart",yW[yW.NumericStart=1]="NumericStart",yW[yW.NumericDecimal=2]="NumericDecimal",yW[yW.NumericHex=3]="NumericHex",yW[yW.NamedEntity=4]="NamedEntity",(yX=zp||(zp={}))[yX.Legacy=0]="Legacy",yX[yX.Strict=1]="Strict",yX[yX.Attribute=2]="Attribute";class ga{constructor(a,b,c){this.decodeTree=a,this.emitCodePoint=b,this.errors=c,this.state=zo.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=zp.Strict}startEntity(a){this.decodeMode=a,this.state=zo.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(a,b){switch(this.state){case zo.EntityStart:if(a.charCodeAt(b)===zm.NUM)return this.state=zo.NumericStart,this.consumed+=1,this.stateNumericStart(a,b+1);return this.state=zo.NamedEntity,this.stateNamedEntity(a,b);case zo.NumericStart:return this.stateNumericStart(a,b);case zo.NumericDecimal:return this.stateNumericDecimal(a,b);case zo.NumericHex:return this.stateNumericHex(a,b);case zo.NamedEntity:return this.stateNamedEntity(a,b)}}stateNumericStart(a,b){return b>=a.length?-1:(32|a.charCodeAt(b))===zm.LOWER_X?(this.state=zo.NumericHex,this.consumed+=1,this.stateNumericHex(a,b+1)):(this.state=zo.NumericDecimal,this.stateNumericDecimal(a,b))}addToNumericResult(a,b,c,d){if(b!==c){let e=c-b;this.result=this.result*Math.pow(d,e)+Number.parseInt(a.substr(b,e),d),this.consumed+=e}}stateNumericHex(a,b){let c=b;for(;b<a.length;){var d;let e=a.charCodeAt(b);if(!f9(e)&&(!((d=e)>=zm.UPPER_A)||!(d<=zm.UPPER_F))&&(!(d>=zm.LOWER_A)||!(d<=zm.LOWER_F)))return this.addToNumericResult(a,c,b,16),this.emitNumericEntity(e,3);b+=1}return this.addToNumericResult(a,c,b,16),-1}stateNumericDecimal(a,b){let c=b;for(;b<a.length;){let d=a.charCodeAt(b);if(!f9(d))return this.addToNumericResult(a,c,b,10),this.emitNumericEntity(d,2);b+=1}return this.addToNumericResult(a,c,b,10),-1}emitNumericEntity(a,b){var c,d,e;if(this.consumed<=b)return null==(c=this.errors)||c.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(a===zm.SEMI)this.consumed+=1;else if(this.decodeMode===zp.Strict)return 0;return this.emitCodePoint((d=this.result)>=55296&&d<=57343||d>1114111?65533:null!=(e=f8.get(d))?e:d,this.consumed),this.errors&&(a!==zm.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(a,b){let{decodeTree:c}=this,d=c[this.treeIndex],e=(d&zn.VALUE_LENGTH)>>14;for(;b<a.length;b++,this.excess++){let f=a.charCodeAt(b);if(this.treeIndex=function(a,b,c,d){let e=(b&zn.BRANCH_LENGTH)>>7,f=b&zn.JUMP_TABLE;if(0===e)return 0!==f&&d===f?c:-1;if(f){let b=d-f;return b<0||b>=e?-1:a[c+b]-1}let g=c,h=g+e-1;for(;g<=h;){let b=g+h>>>1,c=a[b];if(c<d)g=b+1;else{if(!(c>d))return a[b+e];h=b-1}}return -1}(c,d,this.treeIndex+Math.max(1,e),f),this.treeIndex<0)return 0===this.result||this.decodeMode===zp.Attribute&&(0===e||function(a){var b;return a===zm.EQUALS||(b=a)>=zm.UPPER_A&&b<=zm.UPPER_Z||b>=zm.LOWER_A&&b<=zm.LOWER_Z||f9(b)}(f))?0:this.emitNotTerminatedNamedEntity();if(0!=(e=((d=c[this.treeIndex])&zn.VALUE_LENGTH)>>14)){if(f===zm.SEMI)return this.emitNamedEntityData(this.treeIndex,e,this.consumed+this.excess);this.decodeMode!==zp.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var a;let{result:b,decodeTree:c}=this,d=(c[b]&zn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(b,d,this.consumed),null==(a=this.errors)||a.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(a,b,c){let{decodeTree:d}=this;return this.emitCodePoint(1===b?d[a]&~zn.VALUE_LENGTH:d[a+1],c),3===b&&this.emitCodePoint(d[a+2],c),c}end(){var a;switch(this.state){case zo.NamedEntity:return 0!==this.result&&(this.decodeMode!==zp.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case zo.NumericDecimal:return this.emitNumericEntity(0,2);case zo.NumericHex:return this.emitNumericEntity(0,3);case zo.NumericStart:return null==(a=this.errors)||a.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case zo.EntityStart:return 0}}}(yY=zq||(zq={})).HTML="http://www.w3.org/1999/xhtml",yY.MATHML="http://www.w3.org/1998/Math/MathML",yY.SVG="http://www.w3.org/2000/svg",yY.XLINK="http://www.w3.org/1999/xlink",yY.XML="http://www.w3.org/XML/1998/namespace",yY.XMLNS="http://www.w3.org/2000/xmlns/",(yZ=zr||(zr={})).TYPE="type",yZ.ACTION="action",yZ.ENCODING="encoding",yZ.PROMPT="prompt",yZ.NAME="name",yZ.COLOR="color",yZ.FACE="face",yZ.SIZE="size",(y$=zs||(zs={})).NO_QUIRKS="no-quirks",y$.QUIRKS="quirks",y$.LIMITED_QUIRKS="limited-quirks",(y_=zt||(zt={})).A="a",y_.ADDRESS="address",y_.ANNOTATION_XML="annotation-xml",y_.APPLET="applet",y_.AREA="area",y_.ARTICLE="article",y_.ASIDE="aside",y_.B="b",y_.BASE="base",y_.BASEFONT="basefont",y_.BGSOUND="bgsound",y_.BIG="big",y_.BLOCKQUOTE="blockquote",y_.BODY="body",y_.BR="br",y_.BUTTON="button",y_.CAPTION="caption",y_.CENTER="center",y_.CODE="code",y_.COL="col",y_.COLGROUP="colgroup",y_.DD="dd",y_.DESC="desc",y_.DETAILS="details",y_.DIALOG="dialog",y_.DIR="dir",y_.DIV="div",y_.DL="dl",y_.DT="dt",y_.EM="em",y_.EMBED="embed",y_.FIELDSET="fieldset",y_.FIGCAPTION="figcaption",y_.FIGURE="figure",y_.FONT="font",y_.FOOTER="footer",y_.FOREIGN_OBJECT="foreignObject",y_.FORM="form",y_.FRAME="frame",y_.FRAMESET="frameset",y_.H1="h1",y_.H2="h2",y_.H3="h3",y_.H4="h4",y_.H5="h5",y_.H6="h6",y_.HEAD="head",y_.HEADER="header",y_.HGROUP="hgroup",y_.HR="hr",y_.HTML="html",y_.I="i",y_.IMG="img",y_.IMAGE="image",y_.INPUT="input",y_.IFRAME="iframe",y_.KEYGEN="keygen",y_.LABEL="label",y_.LI="li",y_.LINK="link",y_.LISTING="listing",y_.MAIN="main",y_.MALIGNMARK="malignmark",y_.MARQUEE="marquee",y_.MATH="math",y_.MENU="menu",y_.META="meta",y_.MGLYPH="mglyph",y_.MI="mi",y_.MO="mo",y_.MN="mn",y_.MS="ms",y_.MTEXT="mtext",y_.NAV="nav",y_.NOBR="nobr",y_.NOFRAMES="noframes",y_.NOEMBED="noembed",y_.NOSCRIPT="noscript",y_.OBJECT="object",y_.OL="ol",y_.OPTGROUP="optgroup",y_.OPTION="option",y_.P="p",y_.PARAM="param",y_.PLAINTEXT="plaintext",y_.PRE="pre",y_.RB="rb",y_.RP="rp",y_.RT="rt",y_.RTC="rtc",y_.RUBY="ruby",y_.S="s",y_.SCRIPT="script",y_.SEARCH="search",y_.SECTION="section",y_.SELECT="select",y_.SOURCE="source",y_.SMALL="small",y_.SPAN="span",y_.STRIKE="strike",y_.STRONG="strong",y_.STYLE="style",y_.SUB="sub",y_.SUMMARY="summary",y_.SUP="sup",y_.TABLE="table",y_.TBODY="tbody",y_.TEMPLATE="template",y_.TEXTAREA="textarea",y_.TFOOT="tfoot",y_.TD="td",y_.TH="th",y_.THEAD="thead",y_.TITLE="title",y_.TR="tr",y_.TRACK="track",y_.TT="tt",y_.U="u",y_.UL="ul",y_.SVG="svg",y_.VAR="var",y_.WBR="wbr",y_.XMP="xmp",(y0=zu||(zu={}))[y0.UNKNOWN=0]="UNKNOWN",y0[y0.A=1]="A",y0[y0.ADDRESS=2]="ADDRESS",y0[y0.ANNOTATION_XML=3]="ANNOTATION_XML",y0[y0.APPLET=4]="APPLET",y0[y0.AREA=5]="AREA",y0[y0.ARTICLE=6]="ARTICLE",y0[y0.ASIDE=7]="ASIDE",y0[y0.B=8]="B",y0[y0.BASE=9]="BASE",y0[y0.BASEFONT=10]="BASEFONT",y0[y0.BGSOUND=11]="BGSOUND",y0[y0.BIG=12]="BIG",y0[y0.BLOCKQUOTE=13]="BLOCKQUOTE",y0[y0.BODY=14]="BODY",y0[y0.BR=15]="BR",y0[y0.BUTTON=16]="BUTTON",y0[y0.CAPTION=17]="CAPTION",y0[y0.CENTER=18]="CENTER",y0[y0.CODE=19]="CODE",y0[y0.COL=20]="COL",y0[y0.COLGROUP=21]="COLGROUP",y0[y0.DD=22]="DD",y0[y0.DESC=23]="DESC",y0[y0.DETAILS=24]="DETAILS",y0[y0.DIALOG=25]="DIALOG",y0[y0.DIR=26]="DIR",y0[y0.DIV=27]="DIV",y0[y0.DL=28]="DL",y0[y0.DT=29]="DT",y0[y0.EM=30]="EM",y0[y0.EMBED=31]="EMBED",y0[y0.FIELDSET=32]="FIELDSET",y0[y0.FIGCAPTION=33]="FIGCAPTION",y0[y0.FIGURE=34]="FIGURE",y0[y0.FONT=35]="FONT",y0[y0.FOOTER=36]="FOOTER",y0[y0.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",y0[y0.FORM=38]="FORM",y0[y0.FRAME=39]="FRAME",y0[y0.FRAMESET=40]="FRAMESET",y0[y0.H1=41]="H1",y0[y0.H2=42]="H2",y0[y0.H3=43]="H3",y0[y0.H4=44]="H4",y0[y0.H5=45]="H5",y0[y0.H6=46]="H6",y0[y0.HEAD=47]="HEAD",y0[y0.HEADER=48]="HEADER",y0[y0.HGROUP=49]="HGROUP",y0[y0.HR=50]="HR",y0[y0.HTML=51]="HTML",y0[y0.I=52]="I",y0[y0.IMG=53]="IMG",y0[y0.IMAGE=54]="IMAGE",y0[y0.INPUT=55]="INPUT",y0[y0.IFRAME=56]="IFRAME",y0[y0.KEYGEN=57]="KEYGEN",y0[y0.LABEL=58]="LABEL",y0[y0.LI=59]="LI",y0[y0.LINK=60]="LINK",y0[y0.LISTING=61]="LISTING",y0[y0.MAIN=62]="MAIN",y0[y0.MALIGNMARK=63]="MALIGNMARK",y0[y0.MARQUEE=64]="MARQUEE",y0[y0.MATH=65]="MATH",y0[y0.MENU=66]="MENU",y0[y0.META=67]="META",y0[y0.MGLYPH=68]="MGLYPH",y0[y0.MI=69]="MI",y0[y0.MO=70]="MO",y0[y0.MN=71]="MN",y0[y0.MS=72]="MS",y0[y0.MTEXT=73]="MTEXT",y0[y0.NAV=74]="NAV",y0[y0.NOBR=75]="NOBR",y0[y0.NOFRAMES=76]="NOFRAMES",y0[y0.NOEMBED=77]="NOEMBED",y0[y0.NOSCRIPT=78]="NOSCRIPT",y0[y0.OBJECT=79]="OBJECT",y0[y0.OL=80]="OL",y0[y0.OPTGROUP=81]="OPTGROUP",y0[y0.OPTION=82]="OPTION",y0[y0.P=83]="P",y0[y0.PARAM=84]="PARAM",y0[y0.PLAINTEXT=85]="PLAINTEXT",y0[y0.PRE=86]="PRE",y0[y0.RB=87]="RB",y0[y0.RP=88]="RP",y0[y0.RT=89]="RT",y0[y0.RTC=90]="RTC",y0[y0.RUBY=91]="RUBY",y0[y0.S=92]="S",y0[y0.SCRIPT=93]="SCRIPT",y0[y0.SEARCH=94]="SEARCH",y0[y0.SECTION=95]="SECTION",y0[y0.SELECT=96]="SELECT",y0[y0.SOURCE=97]="SOURCE",y0[y0.SMALL=98]="SMALL",y0[y0.SPAN=99]="SPAN",y0[y0.STRIKE=100]="STRIKE",y0[y0.STRONG=101]="STRONG",y0[y0.STYLE=102]="STYLE",y0[y0.SUB=103]="SUB",y0[y0.SUMMARY=104]="SUMMARY",y0[y0.SUP=105]="SUP",y0[y0.TABLE=106]="TABLE",y0[y0.TBODY=107]="TBODY",y0[y0.TEMPLATE=108]="TEMPLATE",y0[y0.TEXTAREA=109]="TEXTAREA",y0[y0.TFOOT=110]="TFOOT",y0[y0.TD=111]="TD",y0[y0.TH=112]="TH",y0[y0.THEAD=113]="THEAD",y0[y0.TITLE=114]="TITLE",y0[y0.TR=115]="TR",y0[y0.TRACK=116]="TRACK",y0[y0.TT=117]="TT",y0[y0.U=118]="U",y0[y0.UL=119]="UL",y0[y0.SVG=120]="SVG",y0[y0.VAR=121]="VAR",y0[y0.WBR=122]="WBR",y0[y0.XMP=123]="XMP";let gb=new Map([[zt.A,zu.A],[zt.ADDRESS,zu.ADDRESS],[zt.ANNOTATION_XML,zu.ANNOTATION_XML],[zt.APPLET,zu.APPLET],[zt.AREA,zu.AREA],[zt.ARTICLE,zu.ARTICLE],[zt.ASIDE,zu.ASIDE],[zt.B,zu.B],[zt.BASE,zu.BASE],[zt.BASEFONT,zu.BASEFONT],[zt.BGSOUND,zu.BGSOUND],[zt.BIG,zu.BIG],[zt.BLOCKQUOTE,zu.BLOCKQUOTE],[zt.BODY,zu.BODY],[zt.BR,zu.BR],[zt.BUTTON,zu.BUTTON],[zt.CAPTION,zu.CAPTION],[zt.CENTER,zu.CENTER],[zt.CODE,zu.CODE],[zt.COL,zu.COL],[zt.COLGROUP,zu.COLGROUP],[zt.DD,zu.DD],[zt.DESC,zu.DESC],[zt.DETAILS,zu.DETAILS],[zt.DIALOG,zu.DIALOG],[zt.DIR,zu.DIR],[zt.DIV,zu.DIV],[zt.DL,zu.DL],[zt.DT,zu.DT],[zt.EM,zu.EM],[zt.EMBED,zu.EMBED],[zt.FIELDSET,zu.FIELDSET],[zt.FIGCAPTION,zu.FIGCAPTION],[zt.FIGURE,zu.FIGURE],[zt.FONT,zu.FONT],[zt.FOOTER,zu.FOOTER],[zt.FOREIGN_OBJECT,zu.FOREIGN_OBJECT],[zt.FORM,zu.FORM],[zt.FRAME,zu.FRAME],[zt.FRAMESET,zu.FRAMESET],[zt.H1,zu.H1],[zt.H2,zu.H2],[zt.H3,zu.H3],[zt.H4,zu.H4],[zt.H5,zu.H5],[zt.H6,zu.H6],[zt.HEAD,zu.HEAD],[zt.HEADER,zu.HEADER],[zt.HGROUP,zu.HGROUP],[zt.HR,zu.HR],[zt.HTML,zu.HTML],[zt.I,zu.I],[zt.IMG,zu.IMG],[zt.IMAGE,zu.IMAGE],[zt.INPUT,zu.INPUT],[zt.IFRAME,zu.IFRAME],[zt.KEYGEN,zu.KEYGEN],[zt.LABEL,zu.LABEL],[zt.LI,zu.LI],[zt.LINK,zu.LINK],[zt.LISTING,zu.LISTING],[zt.MAIN,zu.MAIN],[zt.MALIGNMARK,zu.MALIGNMARK],[zt.MARQUEE,zu.MARQUEE],[zt.MATH,zu.MATH],[zt.MENU,zu.MENU],[zt.META,zu.META],[zt.MGLYPH,zu.MGLYPH],[zt.MI,zu.MI],[zt.MO,zu.MO],[zt.MN,zu.MN],[zt.MS,zu.MS],[zt.MTEXT,zu.MTEXT],[zt.NAV,zu.NAV],[zt.NOBR,zu.NOBR],[zt.NOFRAMES,zu.NOFRAMES],[zt.NOEMBED,zu.NOEMBED],[zt.NOSCRIPT,zu.NOSCRIPT],[zt.OBJECT,zu.OBJECT],[zt.OL,zu.OL],[zt.OPTGROUP,zu.OPTGROUP],[zt.OPTION,zu.OPTION],[zt.P,zu.P],[zt.PARAM,zu.PARAM],[zt.PLAINTEXT,zu.PLAINTEXT],[zt.PRE,zu.PRE],[zt.RB,zu.RB],[zt.RP,zu.RP],[zt.RT,zu.RT],[zt.RTC,zu.RTC],[zt.RUBY,zu.RUBY],[zt.S,zu.S],[zt.SCRIPT,zu.SCRIPT],[zt.SEARCH,zu.SEARCH],[zt.SECTION,zu.SECTION],[zt.SELECT,zu.SELECT],[zt.SOURCE,zu.SOURCE],[zt.SMALL,zu.SMALL],[zt.SPAN,zu.SPAN],[zt.STRIKE,zu.STRIKE],[zt.STRONG,zu.STRONG],[zt.STYLE,zu.STYLE],[zt.SUB,zu.SUB],[zt.SUMMARY,zu.SUMMARY],[zt.SUP,zu.SUP],[zt.TABLE,zu.TABLE],[zt.TBODY,zu.TBODY],[zt.TEMPLATE,zu.TEMPLATE],[zt.TEXTAREA,zu.TEXTAREA],[zt.TFOOT,zu.TFOOT],[zt.TD,zu.TD],[zt.TH,zu.TH],[zt.THEAD,zu.THEAD],[zt.TITLE,zu.TITLE],[zt.TR,zu.TR],[zt.TRACK,zu.TRACK],[zt.TT,zu.TT],[zt.U,zu.U],[zt.UL,zu.UL],[zt.SVG,zu.SVG],[zt.VAR,zu.VAR],[zt.WBR,zu.WBR],[zt.XMP,zu.XMP]]);function gc(a){var b;return null!=(b=gb.get(a))?b:zu.UNKNOWN}let gd=zu,ge={[zq.HTML]:new Set([gd.ADDRESS,gd.APPLET,gd.AREA,gd.ARTICLE,gd.ASIDE,gd.BASE,gd.BASEFONT,gd.BGSOUND,gd.BLOCKQUOTE,gd.BODY,gd.BR,gd.BUTTON,gd.CAPTION,gd.CENTER,gd.COL,gd.COLGROUP,gd.DD,gd.DETAILS,gd.DIR,gd.DIV,gd.DL,gd.DT,gd.EMBED,gd.FIELDSET,gd.FIGCAPTION,gd.FIGURE,gd.FOOTER,gd.FORM,gd.FRAME,gd.FRAMESET,gd.H1,gd.H2,gd.H3,gd.H4,gd.H5,gd.H6,gd.HEAD,gd.HEADER,gd.HGROUP,gd.HR,gd.HTML,gd.IFRAME,gd.IMG,gd.INPUT,gd.LI,gd.LINK,gd.LISTING,gd.MAIN,gd.MARQUEE,gd.MENU,gd.META,gd.NAV,gd.NOEMBED,gd.NOFRAMES,gd.NOSCRIPT,gd.OBJECT,gd.OL,gd.P,gd.PARAM,gd.PLAINTEXT,gd.PRE,gd.SCRIPT,gd.SECTION,gd.SELECT,gd.SOURCE,gd.STYLE,gd.SUMMARY,gd.TABLE,gd.TBODY,gd.TD,gd.TEMPLATE,gd.TEXTAREA,gd.TFOOT,gd.TH,gd.THEAD,gd.TITLE,gd.TR,gd.TRACK,gd.UL,gd.WBR,gd.XMP]),[zq.MATHML]:new Set([gd.MI,gd.MO,gd.MN,gd.MS,gd.MTEXT,gd.ANNOTATION_XML]),[zq.SVG]:new Set([gd.TITLE,gd.FOREIGN_OBJECT,gd.DESC]),[zq.XLINK]:new Set,[zq.XML]:new Set,[zq.XMLNS]:new Set},gf=new Set([gd.H1,gd.H2,gd.H3,gd.H4,gd.H5,gd.H6]);zt.STYLE,zt.SCRIPT,zt.XMP,zt.IFRAME,zt.NOEMBED,zt.NOFRAMES,zt.PLAINTEXT,(y1=zv||(zv={}))[y1.DATA=0]="DATA",y1[y1.RCDATA=1]="RCDATA",y1[y1.RAWTEXT=2]="RAWTEXT",y1[y1.SCRIPT_DATA=3]="SCRIPT_DATA",y1[y1.PLAINTEXT=4]="PLAINTEXT",y1[y1.TAG_OPEN=5]="TAG_OPEN",y1[y1.END_TAG_OPEN=6]="END_TAG_OPEN",y1[y1.TAG_NAME=7]="TAG_NAME",y1[y1.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",y1[y1.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",y1[y1.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",y1[y1.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",y1[y1.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",y1[y1.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",y1[y1.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",y1[y1.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",y1[y1.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",y1[y1.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",y1[y1.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",y1[y1.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",y1[y1.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",y1[y1.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",y1[y1.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",y1[y1.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",y1[y1.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",y1[y1.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",y1[y1.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",y1[y1.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",y1[y1.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",y1[y1.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",y1[y1.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",y1[y1.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",y1[y1.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",y1[y1.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",y1[y1.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",y1[y1.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",y1[y1.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",y1[y1.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",y1[y1.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",y1[y1.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",y1[y1.BOGUS_COMMENT=40]="BOGUS_COMMENT",y1[y1.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",y1[y1.COMMENT_START=42]="COMMENT_START",y1[y1.COMMENT_START_DASH=43]="COMMENT_START_DASH",y1[y1.COMMENT=44]="COMMENT",y1[y1.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",y1[y1.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",y1[y1.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",y1[y1.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",y1[y1.COMMENT_END_DASH=49]="COMMENT_END_DASH",y1[y1.COMMENT_END=50]="COMMENT_END",y1[y1.COMMENT_END_BANG=51]="COMMENT_END_BANG",y1[y1.DOCTYPE=52]="DOCTYPE",y1[y1.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",y1[y1.DOCTYPE_NAME=54]="DOCTYPE_NAME",y1[y1.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",y1[y1.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",y1[y1.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",y1[y1.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",y1[y1.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",y1[y1.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",y1[y1.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",y1[y1.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",y1[y1.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",y1[y1.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",y1[y1.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",y1[y1.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",y1[y1.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",y1[y1.CDATA_SECTION=68]="CDATA_SECTION",y1[y1.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",y1[y1.CDATA_SECTION_END=70]="CDATA_SECTION_END",y1[y1.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",y1[y1.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND";let gg={DATA:zv.DATA,RCDATA:zv.RCDATA,RAWTEXT:zv.RAWTEXT,SCRIPT_DATA:zv.SCRIPT_DATA,PLAINTEXT:zv.PLAINTEXT,CDATA_SECTION:zv.CDATA_SECTION};function gh(a){return a>=zj.LATIN_CAPITAL_A&&a<=zj.LATIN_CAPITAL_Z}function gi(a){return a>=zj.LATIN_SMALL_A&&a<=zj.LATIN_SMALL_Z||gh(a)}function gj(a){return gi(a)||a>=zj.DIGIT_0&&a<=zj.DIGIT_9}function gk(a){return a===zj.SPACE||a===zj.LINE_FEED||a===zj.TABULATION||a===zj.FORM_FEED}function gl(a){return gk(a)||a===zj.SOLIDUS||a===zj.GREATER_THAN_SIGN}class gm{constructor(a,b){this.options=a,this.handler=b,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=zv.DATA,this.returnState=zv.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new f5(b),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new ga(f7,(a,b)=>{this.preprocessor.pos=this.entityStartPos+b-1,this._flushCodePointConsumedAsCharacterReference(a)},b.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(zk.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:a=>{this._err(zk.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+a)},validateNumericCharacterReference:a=>{let b=function(a){if(a===zj.NULL)return zk.nullCharacterReference;if(a>1114111)return zk.characterReferenceOutsideUnicodeRange;if(f2(a))return zk.surrogateCharacterReference;if(f4(a))return zk.noncharacterCharacterReference;if(f3(a)||a===zj.CARRIAGE_RETURN)return zk.controlCharacterReference;return null}(a);b&&this._err(b,1)}}:void 0)}_err(a,b=0){var c,d;null==(d=(c=this.handler).onParseError)||d.call(c,this.preprocessor.getError(a,b))}getCurrentLocation(a){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-a,startOffset:this.preprocessor.offset-a,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let a=this._consume();this._ensureHibernation()||this._callState(a)}this.inLoop=!1}}pause(){this.paused=!0}resume(a){if(!this.paused)throw Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||null==a||a())}write(a,b,c){this.active=!0,this.preprocessor.write(a,b),this._runParsingLoop(),this.paused||null==c||c()}insertHtmlAtCurrentPos(a){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(a),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(a){this.consumedAfterSnapshot+=a;for(let b=0;b<a;b++)this.preprocessor.advance()}_consumeSequenceIfMatch(a,b){return!!this.preprocessor.startsWith(a,b)&&(this._advanceBy(a.length-1),!0)}_createStartTagToken(){this.currentToken={type:zl.START_TAG,tagName:"",tagID:zu.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:zl.END_TAG,tagName:"",tagID:zu.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(a){this.currentToken={type:zl.COMMENT,data:"",location:this.getCurrentLocation(a)}}_createDoctypeToken(a){this.currentToken={type:zl.DOCTYPE,name:a,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(a,b){this.currentCharacterToken={type:a,chars:b,location:this.currentLocation}}_createAttr(a){this.currentAttr={name:a,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var a,b;let c=this.currentToken;null===f6(c,this.currentAttr.name)?(c.attrs.push(this.currentAttr),c.location&&this.currentLocation&&((null!=(a=(b=c.location).attrs)?a:b.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue())):this._err(zk.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(a){this._emitCurrentCharacterToken(a.location),this.currentToken=null,a.location&&(a.location.endLine=this.preprocessor.line,a.location.endCol=this.preprocessor.col+1,a.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){let a=this.currentToken;this.prepareToken(a),a.tagID=gc(a.tagName),a.type===zl.START_TAG?(this.lastStartTagName=a.tagName,this.handler.onStartTag(a)):(a.attrs.length>0&&this._err(zk.endTagWithAttributes),a.selfClosing&&this._err(zk.endTagWithTrailingSolidus),this.handler.onEndTag(a)),this.preprocessor.dropParsedChunk()}emitCurrentComment(a){this.prepareToken(a),this.handler.onComment(a),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(a){this.prepareToken(a),this.handler.onDoctype(a),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(a){if(this.currentCharacterToken){switch(a&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=a.startLine,this.currentCharacterToken.location.endCol=a.startCol,this.currentCharacterToken.location.endOffset=a.startOffset),this.currentCharacterToken.type){case zl.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case zl.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case zl.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){let a=this.getCurrentLocation(0);a&&(a.endLine=a.startLine,a.endCol=a.startCol,a.endOffset=a.startOffset),this._emitCurrentCharacterToken(a),this.handler.onEof({type:zl.EOF,location:a}),this.active=!1}_appendCharToCurrentCharacterToken(a,b){if(this.currentCharacterToken)if(this.currentCharacterToken.type===a){this.currentCharacterToken.chars+=b;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(a,b)}_emitCodePoint(a){let b=gk(a)?zl.WHITESPACE_CHARACTER:a===zj.NULL?zl.NULL_CHARACTER:zl.CHARACTER;this._appendCharToCurrentCharacterToken(b,String.fromCodePoint(a))}_emitChars(a){this._appendCharToCurrentCharacterToken(zl.CHARACTER,a)}_startCharacterReference(){this.returnState=this.state,this.state=zv.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?zp.Attribute:zp.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===zv.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===zv.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===zv.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(a){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(a):this._emitCodePoint(a)}_callState(a){switch(this.state){case zv.DATA:this._stateData(a);break;case zv.RCDATA:this._stateRcdata(a);break;case zv.RAWTEXT:this._stateRawtext(a);break;case zv.SCRIPT_DATA:this._stateScriptData(a);break;case zv.PLAINTEXT:this._statePlaintext(a);break;case zv.TAG_OPEN:this._stateTagOpen(a);break;case zv.END_TAG_OPEN:this._stateEndTagOpen(a);break;case zv.TAG_NAME:this._stateTagName(a);break;case zv.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(a);break;case zv.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(a);break;case zv.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(a);break;case zv.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(a);break;case zv.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(a);break;case zv.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(a);break;case zv.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(a);break;case zv.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(a);break;case zv.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(a);break;case zv.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(a);break;case zv.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(a);break;case zv.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(a);break;case zv.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(a);break;case zv.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(a);break;case zv.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(a);break;case zv.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(a);break;case zv.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(a);break;case zv.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(a);break;case zv.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(a);break;case zv.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(a);break;case zv.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(a);break;case zv.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(a);break;case zv.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(a);break;case zv.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(a);break;case zv.ATTRIBUTE_NAME:this._stateAttributeName(a);break;case zv.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(a);break;case zv.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(a);break;case zv.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(a);break;case zv.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(a);break;case zv.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(a);break;case zv.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(a);break;case zv.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(a);break;case zv.BOGUS_COMMENT:this._stateBogusComment(a);break;case zv.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(a);break;case zv.COMMENT_START:this._stateCommentStart(a);break;case zv.COMMENT_START_DASH:this._stateCommentStartDash(a);break;case zv.COMMENT:this._stateComment(a);break;case zv.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(a);break;case zv.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(a);break;case zv.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(a);break;case zv.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(a);break;case zv.COMMENT_END_DASH:this._stateCommentEndDash(a);break;case zv.COMMENT_END:this._stateCommentEnd(a);break;case zv.COMMENT_END_BANG:this._stateCommentEndBang(a);break;case zv.DOCTYPE:this._stateDoctype(a);break;case zv.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(a);break;case zv.DOCTYPE_NAME:this._stateDoctypeName(a);break;case zv.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(a);break;case zv.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(a);break;case zv.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(a);break;case zv.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(a);break;case zv.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(a);break;case zv.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(a);break;case zv.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(a);break;case zv.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(a);break;case zv.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(a);break;case zv.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(a);break;case zv.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(a);break;case zv.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(a);break;case zv.BOGUS_DOCTYPE:this._stateBogusDoctype(a);break;case zv.CDATA_SECTION:this._stateCdataSection(a);break;case zv.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(a);break;case zv.CDATA_SECTION_END:this._stateCdataSectionEnd(a);break;case zv.CHARACTER_REFERENCE:this._stateCharacterReference();break;case zv.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(a);break;default:throw Error("Unknown state")}}_stateData(a){switch(a){case zj.LESS_THAN_SIGN:this.state=zv.TAG_OPEN;break;case zj.AMPERSAND:this._startCharacterReference();break;case zj.NULL:this._err(zk.unexpectedNullCharacter),this._emitCodePoint(a);break;case zj.EOF:this._emitEOFToken();break;default:this._emitCodePoint(a)}}_stateRcdata(a){switch(a){case zj.AMPERSAND:this._startCharacterReference();break;case zj.LESS_THAN_SIGN:this.state=zv.RCDATA_LESS_THAN_SIGN;break;case zj.NULL:this._err(zk.unexpectedNullCharacter),this._emitChars("�");break;case zj.EOF:this._emitEOFToken();break;default:this._emitCodePoint(a)}}_stateRawtext(a){switch(a){case zj.LESS_THAN_SIGN:this.state=zv.RAWTEXT_LESS_THAN_SIGN;break;case zj.NULL:this._err(zk.unexpectedNullCharacter),this._emitChars("�");break;case zj.EOF:this._emitEOFToken();break;default:this._emitCodePoint(a)}}_stateScriptData(a){switch(a){case zj.LESS_THAN_SIGN:this.state=zv.SCRIPT_DATA_LESS_THAN_SIGN;break;case zj.NULL:this._err(zk.unexpectedNullCharacter),this._emitChars("�");break;case zj.EOF:this._emitEOFToken();break;default:this._emitCodePoint(a)}}_statePlaintext(a){switch(a){case zj.NULL:this._err(zk.unexpectedNullCharacter),this._emitChars("�");break;case zj.EOF:this._emitEOFToken();break;default:this._emitCodePoint(a)}}_stateTagOpen(a){if(gi(a))this._createStartTagToken(),this.state=zv.TAG_NAME,this._stateTagName(a);else switch(a){case zj.EXCLAMATION_MARK:this.state=zv.MARKUP_DECLARATION_OPEN;break;case zj.SOLIDUS:this.state=zv.END_TAG_OPEN;break;case zj.QUESTION_MARK:this._err(zk.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=zv.BOGUS_COMMENT,this._stateBogusComment(a);break;case zj.EOF:this._err(zk.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(zk.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=zv.DATA,this._stateData(a)}}_stateEndTagOpen(a){if(gi(a))this._createEndTagToken(),this.state=zv.TAG_NAME,this._stateTagName(a);else switch(a){case zj.GREATER_THAN_SIGN:this._err(zk.missingEndTagName),this.state=zv.DATA;break;case zj.EOF:this._err(zk.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(zk.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=zv.BOGUS_COMMENT,this._stateBogusComment(a)}}_stateTagName(a){let b=this.currentToken;switch(a){case zj.SPACE:case zj.LINE_FEED:case zj.TABULATION:case zj.FORM_FEED:this.state=zv.BEFORE_ATTRIBUTE_NAME;break;case zj.SOLIDUS:this.state=zv.SELF_CLOSING_START_TAG;break;case zj.GREATER_THAN_SIGN:this.state=zv.DATA,this.emitCurrentTagToken();break;case zj.NULL:this._err(zk.unexpectedNullCharacter),b.tagName+="�";break;case zj.EOF:this._err(zk.eofInTag),this._emitEOFToken();break;default:b.tagName+=String.fromCodePoint(gh(a)?a+32:a)}}_stateRcdataLessThanSign(a){a===zj.SOLIDUS?this.state=zv.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=zv.RCDATA,this._stateRcdata(a))}_stateRcdataEndTagOpen(a){gi(a)?(this.state=zv.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(a)):(this._emitChars("</"),this.state=zv.RCDATA,this._stateRcdata(a))}handleSpecialEndTag(a){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();switch(this._createEndTagToken(),this.currentToken.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case zj.SPACE:case zj.LINE_FEED:case zj.TABULATION:case zj.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=zv.BEFORE_ATTRIBUTE_NAME,!1;case zj.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=zv.SELF_CLOSING_START_TAG,!1;case zj.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=zv.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(a){this.handleSpecialEndTag(a)&&(this._emitChars("</"),this.state=zv.RCDATA,this._stateRcdata(a))}_stateRawtextLessThanSign(a){a===zj.SOLIDUS?this.state=zv.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=zv.RAWTEXT,this._stateRawtext(a))}_stateRawtextEndTagOpen(a){gi(a)?(this.state=zv.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(a)):(this._emitChars("</"),this.state=zv.RAWTEXT,this._stateRawtext(a))}_stateRawtextEndTagName(a){this.handleSpecialEndTag(a)&&(this._emitChars("</"),this.state=zv.RAWTEXT,this._stateRawtext(a))}_stateScriptDataLessThanSign(a){switch(a){case zj.SOLIDUS:this.state=zv.SCRIPT_DATA_END_TAG_OPEN;break;case zj.EXCLAMATION_MARK:this.state=zv.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=zv.SCRIPT_DATA,this._stateScriptData(a)}}_stateScriptDataEndTagOpen(a){gi(a)?(this.state=zv.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(a)):(this._emitChars("</"),this.state=zv.SCRIPT_DATA,this._stateScriptData(a))}_stateScriptDataEndTagName(a){this.handleSpecialEndTag(a)&&(this._emitChars("</"),this.state=zv.SCRIPT_DATA,this._stateScriptData(a))}_stateScriptDataEscapeStart(a){a===zj.HYPHEN_MINUS?(this.state=zv.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=zv.SCRIPT_DATA,this._stateScriptData(a))}_stateScriptDataEscapeStartDash(a){a===zj.HYPHEN_MINUS?(this.state=zv.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=zv.SCRIPT_DATA,this._stateScriptData(a))}_stateScriptDataEscaped(a){switch(a){case zj.HYPHEN_MINUS:this.state=zv.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case zj.LESS_THAN_SIGN:this.state=zv.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case zj.NULL:this._err(zk.unexpectedNullCharacter),this._emitChars("�");break;case zj.EOF:this._err(zk.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(a)}}_stateScriptDataEscapedDash(a){switch(a){case zj.HYPHEN_MINUS:this.state=zv.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case zj.LESS_THAN_SIGN:this.state=zv.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case zj.NULL:this._err(zk.unexpectedNullCharacter),this.state=zv.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case zj.EOF:this._err(zk.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=zv.SCRIPT_DATA_ESCAPED,this._emitCodePoint(a)}}_stateScriptDataEscapedDashDash(a){switch(a){case zj.HYPHEN_MINUS:this._emitChars("-");break;case zj.LESS_THAN_SIGN:this.state=zv.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case zj.GREATER_THAN_SIGN:this.state=zv.SCRIPT_DATA,this._emitChars(">");break;case zj.NULL:this._err(zk.unexpectedNullCharacter),this.state=zv.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case zj.EOF:this._err(zk.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=zv.SCRIPT_DATA_ESCAPED,this._emitCodePoint(a)}}_stateScriptDataEscapedLessThanSign(a){a===zj.SOLIDUS?this.state=zv.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:gi(a)?(this._emitChars("<"),this.state=zv.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(a)):(this._emitChars("<"),this.state=zv.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(a))}_stateScriptDataEscapedEndTagOpen(a){gi(a)?(this.state=zv.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(a)):(this._emitChars("</"),this.state=zv.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(a))}_stateScriptDataEscapedEndTagName(a){this.handleSpecialEndTag(a)&&(this._emitChars("</"),this.state=zv.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(a))}_stateScriptDataDoubleEscapeStart(a){if(this.preprocessor.startsWith(f1,!1)&&gl(this.preprocessor.peek(f1.length))){this._emitCodePoint(a);for(let a=0;a<f1.length;a++)this._emitCodePoint(this._consume());this.state=zv.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=zv.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(a))}_stateScriptDataDoubleEscaped(a){switch(a){case zj.HYPHEN_MINUS:this.state=zv.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case zj.LESS_THAN_SIGN:this.state=zv.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case zj.NULL:this._err(zk.unexpectedNullCharacter),this._emitChars("�");break;case zj.EOF:this._err(zk.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(a)}}_stateScriptDataDoubleEscapedDash(a){switch(a){case zj.HYPHEN_MINUS:this.state=zv.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case zj.LESS_THAN_SIGN:this.state=zv.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case zj.NULL:this._err(zk.unexpectedNullCharacter),this.state=zv.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case zj.EOF:this._err(zk.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=zv.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(a)}}_stateScriptDataDoubleEscapedDashDash(a){switch(a){case zj.HYPHEN_MINUS:this._emitChars("-");break;case zj.LESS_THAN_SIGN:this.state=zv.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case zj.GREATER_THAN_SIGN:this.state=zv.SCRIPT_DATA,this._emitChars(">");break;case zj.NULL:this._err(zk.unexpectedNullCharacter),this.state=zv.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case zj.EOF:this._err(zk.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=zv.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(a)}}_stateScriptDataDoubleEscapedLessThanSign(a){a===zj.SOLIDUS?(this.state=zv.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=zv.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(a))}_stateScriptDataDoubleEscapeEnd(a){if(this.preprocessor.startsWith(f1,!1)&&gl(this.preprocessor.peek(f1.length))){this._emitCodePoint(a);for(let a=0;a<f1.length;a++)this._emitCodePoint(this._consume());this.state=zv.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=zv.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(a))}_stateBeforeAttributeName(a){switch(a){case zj.SPACE:case zj.LINE_FEED:case zj.TABULATION:case zj.FORM_FEED:break;case zj.SOLIDUS:case zj.GREATER_THAN_SIGN:case zj.EOF:this.state=zv.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(a);break;case zj.EQUALS_SIGN:this._err(zk.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=zv.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=zv.ATTRIBUTE_NAME,this._stateAttributeName(a)}}_stateAttributeName(a){switch(a){case zj.SPACE:case zj.LINE_FEED:case zj.TABULATION:case zj.FORM_FEED:case zj.SOLIDUS:case zj.GREATER_THAN_SIGN:case zj.EOF:this._leaveAttrName(),this.state=zv.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(a);break;case zj.EQUALS_SIGN:this._leaveAttrName(),this.state=zv.BEFORE_ATTRIBUTE_VALUE;break;case zj.QUOTATION_MARK:case zj.APOSTROPHE:case zj.LESS_THAN_SIGN:this._err(zk.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(a);break;case zj.NULL:this._err(zk.unexpectedNullCharacter),this.currentAttr.name+="�";break;default:this.currentAttr.name+=String.fromCodePoint(gh(a)?a+32:a)}}_stateAfterAttributeName(a){switch(a){case zj.SPACE:case zj.LINE_FEED:case zj.TABULATION:case zj.FORM_FEED:break;case zj.SOLIDUS:this.state=zv.SELF_CLOSING_START_TAG;break;case zj.EQUALS_SIGN:this.state=zv.BEFORE_ATTRIBUTE_VALUE;break;case zj.GREATER_THAN_SIGN:this.state=zv.DATA,this.emitCurrentTagToken();break;case zj.EOF:this._err(zk.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=zv.ATTRIBUTE_NAME,this._stateAttributeName(a)}}_stateBeforeAttributeValue(a){switch(a){case zj.SPACE:case zj.LINE_FEED:case zj.TABULATION:case zj.FORM_FEED:break;case zj.QUOTATION_MARK:this.state=zv.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case zj.APOSTROPHE:this.state=zv.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case zj.GREATER_THAN_SIGN:this._err(zk.missingAttributeValue),this.state=zv.DATA,this.emitCurrentTagToken();break;default:this.state=zv.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(a)}}_stateAttributeValueDoubleQuoted(a){switch(a){case zj.QUOTATION_MARK:this.state=zv.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case zj.AMPERSAND:this._startCharacterReference();break;case zj.NULL:this._err(zk.unexpectedNullCharacter),this.currentAttr.value+="�";break;case zj.EOF:this._err(zk.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(a)}}_stateAttributeValueSingleQuoted(a){switch(a){case zj.APOSTROPHE:this.state=zv.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case zj.AMPERSAND:this._startCharacterReference();break;case zj.NULL:this._err(zk.unexpectedNullCharacter),this.currentAttr.value+="�";break;case zj.EOF:this._err(zk.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(a)}}_stateAttributeValueUnquoted(a){switch(a){case zj.SPACE:case zj.LINE_FEED:case zj.TABULATION:case zj.FORM_FEED:this._leaveAttrValue(),this.state=zv.BEFORE_ATTRIBUTE_NAME;break;case zj.AMPERSAND:this._startCharacterReference();break;case zj.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=zv.DATA,this.emitCurrentTagToken();break;case zj.NULL:this._err(zk.unexpectedNullCharacter),this.currentAttr.value+="�";break;case zj.QUOTATION_MARK:case zj.APOSTROPHE:case zj.LESS_THAN_SIGN:case zj.EQUALS_SIGN:case zj.GRAVE_ACCENT:this._err(zk.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(a);break;case zj.EOF:this._err(zk.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(a)}}_stateAfterAttributeValueQuoted(a){switch(a){case zj.SPACE:case zj.LINE_FEED:case zj.TABULATION:case zj.FORM_FEED:this._leaveAttrValue(),this.state=zv.BEFORE_ATTRIBUTE_NAME;break;case zj.SOLIDUS:this._leaveAttrValue(),this.state=zv.SELF_CLOSING_START_TAG;break;case zj.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=zv.DATA,this.emitCurrentTagToken();break;case zj.EOF:this._err(zk.eofInTag),this._emitEOFToken();break;default:this._err(zk.missingWhitespaceBetweenAttributes),this.state=zv.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(a)}}_stateSelfClosingStartTag(a){switch(a){case zj.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=zv.DATA,this.emitCurrentTagToken();break;case zj.EOF:this._err(zk.eofInTag),this._emitEOFToken();break;default:this._err(zk.unexpectedSolidusInTag),this.state=zv.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(a)}}_stateBogusComment(a){let b=this.currentToken;switch(a){case zj.GREATER_THAN_SIGN:this.state=zv.DATA,this.emitCurrentComment(b);break;case zj.EOF:this.emitCurrentComment(b),this._emitEOFToken();break;case zj.NULL:this._err(zk.unexpectedNullCharacter),b.data+="�";break;default:b.data+=String.fromCodePoint(a)}}_stateMarkupDeclarationOpen(a){this._consumeSequenceIfMatch("--",!0)?(this._createCommentToken(3),this.state=zv.COMMENT_START):this._consumeSequenceIfMatch(f0,!1)?(this.currentLocation=this.getCurrentLocation(f0.length+1),this.state=zv.DOCTYPE):this._consumeSequenceIfMatch(f_,!0)?this.inForeignNode?this.state=zv.CDATA_SECTION:(this._err(zk.cdataInHtmlContent),this._createCommentToken(f_.length+1),this.currentToken.data="[CDATA[",this.state=zv.BOGUS_COMMENT):this._ensureHibernation()||(this._err(zk.incorrectlyOpenedComment),this._createCommentToken(2),this.state=zv.BOGUS_COMMENT,this._stateBogusComment(a))}_stateCommentStart(a){switch(a){case zj.HYPHEN_MINUS:this.state=zv.COMMENT_START_DASH;break;case zj.GREATER_THAN_SIGN:{this._err(zk.abruptClosingOfEmptyComment),this.state=zv.DATA;let a=this.currentToken;this.emitCurrentComment(a);break}default:this.state=zv.COMMENT,this._stateComment(a)}}_stateCommentStartDash(a){let b=this.currentToken;switch(a){case zj.HYPHEN_MINUS:this.state=zv.COMMENT_END;break;case zj.GREATER_THAN_SIGN:this._err(zk.abruptClosingOfEmptyComment),this.state=zv.DATA,this.emitCurrentComment(b);break;case zj.EOF:this._err(zk.eofInComment),this.emitCurrentComment(b),this._emitEOFToken();break;default:b.data+="-",this.state=zv.COMMENT,this._stateComment(a)}}_stateComment(a){let b=this.currentToken;switch(a){case zj.HYPHEN_MINUS:this.state=zv.COMMENT_END_DASH;break;case zj.LESS_THAN_SIGN:b.data+="<",this.state=zv.COMMENT_LESS_THAN_SIGN;break;case zj.NULL:this._err(zk.unexpectedNullCharacter),b.data+="�";break;case zj.EOF:this._err(zk.eofInComment),this.emitCurrentComment(b),this._emitEOFToken();break;default:b.data+=String.fromCodePoint(a)}}_stateCommentLessThanSign(a){let b=this.currentToken;switch(a){case zj.EXCLAMATION_MARK:b.data+="!",this.state=zv.COMMENT_LESS_THAN_SIGN_BANG;break;case zj.LESS_THAN_SIGN:b.data+="<";break;default:this.state=zv.COMMENT,this._stateComment(a)}}_stateCommentLessThanSignBang(a){a===zj.HYPHEN_MINUS?this.state=zv.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=zv.COMMENT,this._stateComment(a))}_stateCommentLessThanSignBangDash(a){a===zj.HYPHEN_MINUS?this.state=zv.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=zv.COMMENT_END_DASH,this._stateCommentEndDash(a))}_stateCommentLessThanSignBangDashDash(a){a!==zj.GREATER_THAN_SIGN&&a!==zj.EOF&&this._err(zk.nestedComment),this.state=zv.COMMENT_END,this._stateCommentEnd(a)}_stateCommentEndDash(a){let b=this.currentToken;switch(a){case zj.HYPHEN_MINUS:this.state=zv.COMMENT_END;break;case zj.EOF:this._err(zk.eofInComment),this.emitCurrentComment(b),this._emitEOFToken();break;default:b.data+="-",this.state=zv.COMMENT,this._stateComment(a)}}_stateCommentEnd(a){let b=this.currentToken;switch(a){case zj.GREATER_THAN_SIGN:this.state=zv.DATA,this.emitCurrentComment(b);break;case zj.EXCLAMATION_MARK:this.state=zv.COMMENT_END_BANG;break;case zj.HYPHEN_MINUS:b.data+="-";break;case zj.EOF:this._err(zk.eofInComment),this.emitCurrentComment(b),this._emitEOFToken();break;default:b.data+="--",this.state=zv.COMMENT,this._stateComment(a)}}_stateCommentEndBang(a){let b=this.currentToken;switch(a){case zj.HYPHEN_MINUS:b.data+="--!",this.state=zv.COMMENT_END_DASH;break;case zj.GREATER_THAN_SIGN:this._err(zk.incorrectlyClosedComment),this.state=zv.DATA,this.emitCurrentComment(b);break;case zj.EOF:this._err(zk.eofInComment),this.emitCurrentComment(b),this._emitEOFToken();break;default:b.data+="--!",this.state=zv.COMMENT,this._stateComment(a)}}_stateDoctype(a){switch(a){case zj.SPACE:case zj.LINE_FEED:case zj.TABULATION:case zj.FORM_FEED:this.state=zv.BEFORE_DOCTYPE_NAME;break;case zj.GREATER_THAN_SIGN:this.state=zv.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(a);break;case zj.EOF:{this._err(zk.eofInDoctype),this._createDoctypeToken(null);let a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(zk.missingWhitespaceBeforeDoctypeName),this.state=zv.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(a)}}_stateBeforeDoctypeName(a){if(gh(a))this._createDoctypeToken(String.fromCharCode(a+32)),this.state=zv.DOCTYPE_NAME;else switch(a){case zj.SPACE:case zj.LINE_FEED:case zj.TABULATION:case zj.FORM_FEED:break;case zj.NULL:this._err(zk.unexpectedNullCharacter),this._createDoctypeToken("�"),this.state=zv.DOCTYPE_NAME;break;case zj.GREATER_THAN_SIGN:{this._err(zk.missingDoctypeName),this._createDoctypeToken(null);let a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=zv.DATA;break}case zj.EOF:{this._err(zk.eofInDoctype),this._createDoctypeToken(null);let a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(a)),this.state=zv.DOCTYPE_NAME}}_stateDoctypeName(a){let b=this.currentToken;switch(a){case zj.SPACE:case zj.LINE_FEED:case zj.TABULATION:case zj.FORM_FEED:this.state=zv.AFTER_DOCTYPE_NAME;break;case zj.GREATER_THAN_SIGN:this.state=zv.DATA,this.emitCurrentDoctype(b);break;case zj.NULL:this._err(zk.unexpectedNullCharacter),b.name+="�";break;case zj.EOF:this._err(zk.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:b.name+=String.fromCodePoint(gh(a)?a+32:a)}}_stateAfterDoctypeName(a){let b=this.currentToken;switch(a){case zj.SPACE:case zj.LINE_FEED:case zj.TABULATION:case zj.FORM_FEED:break;case zj.GREATER_THAN_SIGN:this.state=zv.DATA,this.emitCurrentDoctype(b);break;case zj.EOF:this._err(zk.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:this._consumeSequenceIfMatch("public",!1)?this.state=zv.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch("system",!1)?this.state=zv.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(zk.invalidCharacterSequenceAfterDoctypeName),b.forceQuirks=!0,this.state=zv.BOGUS_DOCTYPE,this._stateBogusDoctype(a))}}_stateAfterDoctypePublicKeyword(a){let b=this.currentToken;switch(a){case zj.SPACE:case zj.LINE_FEED:case zj.TABULATION:case zj.FORM_FEED:this.state=zv.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case zj.QUOTATION_MARK:this._err(zk.missingWhitespaceAfterDoctypePublicKeyword),b.publicId="",this.state=zv.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case zj.APOSTROPHE:this._err(zk.missingWhitespaceAfterDoctypePublicKeyword),b.publicId="",this.state=zv.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case zj.GREATER_THAN_SIGN:this._err(zk.missingDoctypePublicIdentifier),b.forceQuirks=!0,this.state=zv.DATA,this.emitCurrentDoctype(b);break;case zj.EOF:this._err(zk.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:this._err(zk.missingQuoteBeforeDoctypePublicIdentifier),b.forceQuirks=!0,this.state=zv.BOGUS_DOCTYPE,this._stateBogusDoctype(a)}}_stateBeforeDoctypePublicIdentifier(a){let b=this.currentToken;switch(a){case zj.SPACE:case zj.LINE_FEED:case zj.TABULATION:case zj.FORM_FEED:break;case zj.QUOTATION_MARK:b.publicId="",this.state=zv.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case zj.APOSTROPHE:b.publicId="",this.state=zv.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case zj.GREATER_THAN_SIGN:this._err(zk.missingDoctypePublicIdentifier),b.forceQuirks=!0,this.state=zv.DATA,this.emitCurrentDoctype(b);break;case zj.EOF:this._err(zk.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:this._err(zk.missingQuoteBeforeDoctypePublicIdentifier),b.forceQuirks=!0,this.state=zv.BOGUS_DOCTYPE,this._stateBogusDoctype(a)}}_stateDoctypePublicIdentifierDoubleQuoted(a){let b=this.currentToken;switch(a){case zj.QUOTATION_MARK:this.state=zv.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case zj.NULL:this._err(zk.unexpectedNullCharacter),b.publicId+="�";break;case zj.GREATER_THAN_SIGN:this._err(zk.abruptDoctypePublicIdentifier),b.forceQuirks=!0,this.emitCurrentDoctype(b),this.state=zv.DATA;break;case zj.EOF:this._err(zk.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:b.publicId+=String.fromCodePoint(a)}}_stateDoctypePublicIdentifierSingleQuoted(a){let b=this.currentToken;switch(a){case zj.APOSTROPHE:this.state=zv.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case zj.NULL:this._err(zk.unexpectedNullCharacter),b.publicId+="�";break;case zj.GREATER_THAN_SIGN:this._err(zk.abruptDoctypePublicIdentifier),b.forceQuirks=!0,this.emitCurrentDoctype(b),this.state=zv.DATA;break;case zj.EOF:this._err(zk.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:b.publicId+=String.fromCodePoint(a)}}_stateAfterDoctypePublicIdentifier(a){let b=this.currentToken;switch(a){case zj.SPACE:case zj.LINE_FEED:case zj.TABULATION:case zj.FORM_FEED:this.state=zv.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case zj.GREATER_THAN_SIGN:this.state=zv.DATA,this.emitCurrentDoctype(b);break;case zj.QUOTATION_MARK:this._err(zk.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),b.systemId="",this.state=zv.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case zj.APOSTROPHE:this._err(zk.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),b.systemId="",this.state=zv.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case zj.EOF:this._err(zk.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:this._err(zk.missingQuoteBeforeDoctypeSystemIdentifier),b.forceQuirks=!0,this.state=zv.BOGUS_DOCTYPE,this._stateBogusDoctype(a)}}_stateBetweenDoctypePublicAndSystemIdentifiers(a){let b=this.currentToken;switch(a){case zj.SPACE:case zj.LINE_FEED:case zj.TABULATION:case zj.FORM_FEED:break;case zj.GREATER_THAN_SIGN:this.emitCurrentDoctype(b),this.state=zv.DATA;break;case zj.QUOTATION_MARK:b.systemId="",this.state=zv.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case zj.APOSTROPHE:b.systemId="",this.state=zv.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case zj.EOF:this._err(zk.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:this._err(zk.missingQuoteBeforeDoctypeSystemIdentifier),b.forceQuirks=!0,this.state=zv.BOGUS_DOCTYPE,this._stateBogusDoctype(a)}}_stateAfterDoctypeSystemKeyword(a){let b=this.currentToken;switch(a){case zj.SPACE:case zj.LINE_FEED:case zj.TABULATION:case zj.FORM_FEED:this.state=zv.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case zj.QUOTATION_MARK:this._err(zk.missingWhitespaceAfterDoctypeSystemKeyword),b.systemId="",this.state=zv.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case zj.APOSTROPHE:this._err(zk.missingWhitespaceAfterDoctypeSystemKeyword),b.systemId="",this.state=zv.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case zj.GREATER_THAN_SIGN:this._err(zk.missingDoctypeSystemIdentifier),b.forceQuirks=!0,this.state=zv.DATA,this.emitCurrentDoctype(b);break;case zj.EOF:this._err(zk.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:this._err(zk.missingQuoteBeforeDoctypeSystemIdentifier),b.forceQuirks=!0,this.state=zv.BOGUS_DOCTYPE,this._stateBogusDoctype(a)}}_stateBeforeDoctypeSystemIdentifier(a){let b=this.currentToken;switch(a){case zj.SPACE:case zj.LINE_FEED:case zj.TABULATION:case zj.FORM_FEED:break;case zj.QUOTATION_MARK:b.systemId="",this.state=zv.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case zj.APOSTROPHE:b.systemId="",this.state=zv.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case zj.GREATER_THAN_SIGN:this._err(zk.missingDoctypeSystemIdentifier),b.forceQuirks=!0,this.state=zv.DATA,this.emitCurrentDoctype(b);break;case zj.EOF:this._err(zk.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:this._err(zk.missingQuoteBeforeDoctypeSystemIdentifier),b.forceQuirks=!0,this.state=zv.BOGUS_DOCTYPE,this._stateBogusDoctype(a)}}_stateDoctypeSystemIdentifierDoubleQuoted(a){let b=this.currentToken;switch(a){case zj.QUOTATION_MARK:this.state=zv.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case zj.NULL:this._err(zk.unexpectedNullCharacter),b.systemId+="�";break;case zj.GREATER_THAN_SIGN:this._err(zk.abruptDoctypeSystemIdentifier),b.forceQuirks=!0,this.emitCurrentDoctype(b),this.state=zv.DATA;break;case zj.EOF:this._err(zk.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:b.systemId+=String.fromCodePoint(a)}}_stateDoctypeSystemIdentifierSingleQuoted(a){let b=this.currentToken;switch(a){case zj.APOSTROPHE:this.state=zv.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case zj.NULL:this._err(zk.unexpectedNullCharacter),b.systemId+="�";break;case zj.GREATER_THAN_SIGN:this._err(zk.abruptDoctypeSystemIdentifier),b.forceQuirks=!0,this.emitCurrentDoctype(b),this.state=zv.DATA;break;case zj.EOF:this._err(zk.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:b.systemId+=String.fromCodePoint(a)}}_stateAfterDoctypeSystemIdentifier(a){let b=this.currentToken;switch(a){case zj.SPACE:case zj.LINE_FEED:case zj.TABULATION:case zj.FORM_FEED:break;case zj.GREATER_THAN_SIGN:this.emitCurrentDoctype(b),this.state=zv.DATA;break;case zj.EOF:this._err(zk.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:this._err(zk.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=zv.BOGUS_DOCTYPE,this._stateBogusDoctype(a)}}_stateBogusDoctype(a){let b=this.currentToken;switch(a){case zj.GREATER_THAN_SIGN:this.emitCurrentDoctype(b),this.state=zv.DATA;break;case zj.NULL:this._err(zk.unexpectedNullCharacter);break;case zj.EOF:this.emitCurrentDoctype(b),this._emitEOFToken()}}_stateCdataSection(a){switch(a){case zj.RIGHT_SQUARE_BRACKET:this.state=zv.CDATA_SECTION_BRACKET;break;case zj.EOF:this._err(zk.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(a)}}_stateCdataSectionBracket(a){a===zj.RIGHT_SQUARE_BRACKET?this.state=zv.CDATA_SECTION_END:(this._emitChars("]"),this.state=zv.CDATA_SECTION,this._stateCdataSection(a))}_stateCdataSectionEnd(a){switch(a){case zj.GREATER_THAN_SIGN:this.state=zv.DATA;break;case zj.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=zv.CDATA_SECTION,this._stateCdataSection(a)}}_stateCharacterReference(){let a=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(a<0)if(this.preprocessor.lastChunkWritten)a=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}0===a?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(zj.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&gj(this.preprocessor.peek(1))?zv.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(a){gj(a)?this._flushCodePointConsumedAsCharacterReference(a):(a===zj.SEMICOLON&&this._err(zk.unknownNamedCharacterReference),this.state=this.returnState,this._callState(a))}}let gn=new Set([zu.DD,zu.DT,zu.LI,zu.OPTGROUP,zu.OPTION,zu.P,zu.RB,zu.RP,zu.RT,zu.RTC]),go=new Set([...gn,zu.CAPTION,zu.COLGROUP,zu.TBODY,zu.TD,zu.TFOOT,zu.TH,zu.THEAD,zu.TR]),gp=new Set([zu.APPLET,zu.CAPTION,zu.HTML,zu.MARQUEE,zu.OBJECT,zu.TABLE,zu.TD,zu.TEMPLATE,zu.TH]),gq=new Set([...gp,zu.OL,zu.UL]),gr=new Set([...gp,zu.BUTTON]),gs=new Set([zu.ANNOTATION_XML,zu.MI,zu.MN,zu.MO,zu.MS,zu.MTEXT]),gt=new Set([zu.DESC,zu.FOREIGN_OBJECT,zu.TITLE]),gu=new Set([zu.TR,zu.TEMPLATE,zu.HTML]),gv=new Set([zu.TBODY,zu.TFOOT,zu.THEAD,zu.TEMPLATE,zu.HTML]),gw=new Set([zu.TABLE,zu.TEMPLATE,zu.HTML]),gx=new Set([zu.TD,zu.TH]);class gy{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(a,b,c){this.treeAdapter=b,this.handler=c,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=zu.UNKNOWN,this.current=a}_indexOf(a){return this.items.lastIndexOf(a,this.stackTop)}_isInTemplate(){return this.currentTagId===zu.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===zq.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(a,b){this.stackTop++,this.items[this.stackTop]=a,this.current=a,this.tagIDs[this.stackTop]=b,this.currentTagId=b,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(a,b,!0)}pop(){let a=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(a,!0)}replace(a,b){let c=this._indexOf(a);this.items[c]=b,c===this.stackTop&&(this.current=b)}insertAfter(a,b,c){let d=this._indexOf(a)+1;this.items.splice(d,0,b),this.tagIDs.splice(d,0,c),this.stackTop++,d===this.stackTop&&this._updateCurrentElement(),this.current&&void 0!==this.currentTagId&&this.handler.onItemPush(this.current,this.currentTagId,d===this.stackTop)}popUntilTagNamePopped(a){let b=this.stackTop+1;do b=this.tagIDs.lastIndexOf(a,b-1);while(b>0&&this.treeAdapter.getNamespaceURI(this.items[b])!==zq.HTML);this.shortenToLength(Math.max(b,0))}shortenToLength(a){for(;this.stackTop>=a;){let b=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(b,this.stackTop<a)}}popUntilElementPopped(a){let b=this._indexOf(a);this.shortenToLength(Math.max(b,0))}popUntilPopped(a,b){let c=this._indexOfTagNames(a,b);this.shortenToLength(Math.max(c,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(gf,zq.HTML)}popUntilTableCellPopped(){this.popUntilPopped(gx,zq.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(a,b){for(let c=this.stackTop;c>=0;c--)if(a.has(this.tagIDs[c])&&this.treeAdapter.getNamespaceURI(this.items[c])===b)return c;return -1}clearBackTo(a,b){let c=this._indexOfTagNames(a,b);this.shortenToLength(c+1)}clearBackToTableContext(){this.clearBackTo(gw,zq.HTML)}clearBackToTableBodyContext(){this.clearBackTo(gv,zq.HTML)}clearBackToTableRowContext(){this.clearBackTo(gu,zq.HTML)}remove(a){let b=this._indexOf(a);b>=0&&(b===this.stackTop?this.pop():(this.items.splice(b,1),this.tagIDs.splice(b,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(a,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===zu.BODY?this.items[1]:null}contains(a){return this._indexOf(a)>-1}getCommonAncestor(a){let b=this._indexOf(a)-1;return b>=0?this.items[b]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===zu.HTML}hasInDynamicScope(a,b){for(let c=this.stackTop;c>=0;c--){let d=this.tagIDs[c];switch(this.treeAdapter.getNamespaceURI(this.items[c])){case zq.HTML:if(d===a)return!0;if(b.has(d))return!1;break;case zq.SVG:if(gt.has(d))return!1;break;case zq.MATHML:if(gs.has(d))return!1}}return!0}hasInScope(a){return this.hasInDynamicScope(a,gp)}hasInListItemScope(a){return this.hasInDynamicScope(a,gq)}hasInButtonScope(a){return this.hasInDynamicScope(a,gr)}hasNumberedHeaderInScope(){for(let a=this.stackTop;a>=0;a--){let b=this.tagIDs[a];switch(this.treeAdapter.getNamespaceURI(this.items[a])){case zq.HTML:if(gf.has(b))return!0;if(gp.has(b))return!1;break;case zq.SVG:if(gt.has(b))return!1;break;case zq.MATHML:if(gs.has(b))return!1}}return!0}hasInTableScope(a){for(let b=this.stackTop;b>=0;b--)if(this.treeAdapter.getNamespaceURI(this.items[b])===zq.HTML)switch(this.tagIDs[b]){case a:return!0;case zu.TABLE:case zu.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let a=this.stackTop;a>=0;a--)if(this.treeAdapter.getNamespaceURI(this.items[a])===zq.HTML)switch(this.tagIDs[a]){case zu.TBODY:case zu.THEAD:case zu.TFOOT:return!0;case zu.TABLE:case zu.HTML:return!1}return!0}hasInSelectScope(a){for(let b=this.stackTop;b>=0;b--)if(this.treeAdapter.getNamespaceURI(this.items[b])===zq.HTML)switch(this.tagIDs[b]){case a:return!0;case zu.OPTION:case zu.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;void 0!==this.currentTagId&&gn.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;void 0!==this.currentTagId&&go.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(a){for(;void 0!==this.currentTagId&&this.currentTagId!==a&&go.has(this.currentTagId);)this.pop()}}(y2=zw||(zw={}))[y2.Marker=0]="Marker",y2[y2.Element=1]="Element";let gz={type:zw.Marker};class gA{constructor(a){this.treeAdapter=a,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(a,b){let c=[],d=b.length,e=this.treeAdapter.getTagName(a),f=this.treeAdapter.getNamespaceURI(a);for(let a=0;a<this.entries.length;a++){let b=this.entries[a];if(b.type===zw.Marker)break;let{element:g}=b;if(this.treeAdapter.getTagName(g)===e&&this.treeAdapter.getNamespaceURI(g)===f){let b=this.treeAdapter.getAttrList(g);b.length===d&&c.push({idx:a,attrs:b})}}return c}_ensureNoahArkCondition(a){if(this.entries.length<3)return;let b=this.treeAdapter.getAttrList(a),c=this._getNoahArkConditionCandidates(a,b);if(c.length<3)return;let d=new Map(b.map(a=>[a.name,a.value])),e=0;for(let a=0;a<c.length;a++){let b=c[a];b.attrs.every(a=>d.get(a.name)===a.value)&&(e+=1)>=3&&this.entries.splice(b.idx,1)}}insertMarker(){this.entries.unshift(gz)}pushElement(a,b){this._ensureNoahArkCondition(a),this.entries.unshift({type:zw.Element,element:a,token:b})}insertElementAfterBookmark(a,b){let c=this.entries.indexOf(this.bookmark);this.entries.splice(c,0,{type:zw.Element,element:a,token:b})}removeEntry(a){let b=this.entries.indexOf(a);-1!==b&&this.entries.splice(b,1)}clearToLastMarker(){let a=this.entries.indexOf(gz);-1===a?this.entries.length=0:this.entries.splice(0,a+1)}getElementEntryInScopeWithTagName(a){let b=this.entries.find(b=>b.type===zw.Marker||this.treeAdapter.getTagName(b.element)===a);return b&&b.type===zw.Element?b:null}getElementEntry(a){return this.entries.find(b=>b.type===zw.Element&&b.element===a)}}let gB={createDocument:()=>({nodeName:"#document",mode:zs.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(a,b,c)=>({nodeName:a,tagName:a,attrs:c,namespaceURI:b,childNodes:[],parentNode:null}),createCommentNode:a=>({nodeName:"#comment",data:a,parentNode:null}),createTextNode:a=>({nodeName:"#text",value:a,parentNode:null}),appendChild(a,b){a.childNodes.push(b),b.parentNode=a},insertBefore(a,b,c){let d=a.childNodes.indexOf(c);a.childNodes.splice(d,0,b),b.parentNode=a},setTemplateContent(a,b){a.content=b},getTemplateContent:a=>a.content,setDocumentType(a,b,c,d){let e=a.childNodes.find(a=>"#documentType"===a.nodeName);e?(e.name=b,e.publicId=c,e.systemId=d):gB.appendChild(a,{nodeName:"#documentType",name:b,publicId:c,systemId:d,parentNode:null})},setDocumentMode(a,b){a.mode=b},getDocumentMode:a=>a.mode,detachNode(a){if(a.parentNode){let b=a.parentNode.childNodes.indexOf(a);a.parentNode.childNodes.splice(b,1),a.parentNode=null}},insertText(a,b){if(a.childNodes.length>0){let c=a.childNodes[a.childNodes.length-1];if(gB.isTextNode(c)){c.value+=b;return}}gB.appendChild(a,gB.createTextNode(b))},insertTextBefore(a,b,c){let d=a.childNodes[a.childNodes.indexOf(c)-1];d&&gB.isTextNode(d)?d.value+=b:gB.insertBefore(a,gB.createTextNode(b),c)},adoptAttributes(a,b){let c=new Set(a.attrs.map(a=>a.name));for(let d=0;d<b.length;d++)c.has(b[d].name)||a.attrs.push(b[d])},getFirstChild:a=>a.childNodes[0],getChildNodes:a=>a.childNodes,getParentNode:a=>a.parentNode,getAttrList:a=>a.attrs,getTagName:a=>a.tagName,getNamespaceURI:a=>a.namespaceURI,getTextNodeContent:a=>a.value,getCommentNodeContent:a=>a.data,getDocumentTypeNodeName:a=>a.name,getDocumentTypeNodePublicId:a=>a.publicId,getDocumentTypeNodeSystemId:a=>a.systemId,isTextNode:a=>"#text"===a.nodeName,isCommentNode:a=>"#comment"===a.nodeName,isDocumentTypeNode:a=>"#documentType"===a.nodeName,isElementNode:a=>Object.prototype.hasOwnProperty.call(a,"tagName"),setNodeSourceCodeLocation(a,b){a.sourceCodeLocation=b},getNodeSourceCodeLocation:a=>a.sourceCodeLocation,updateNodeSourceCodeLocation(a,b){a.sourceCodeLocation={...a.sourceCodeLocation,...b}}},gC="html",gD=["+//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//"],gE=[...gD,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],gF=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),gG=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],gH=[...gG,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function gI(a,b){return b.some(b=>a.startsWith(b))}let gJ=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(a=>[a.toLowerCase(),a])),gK=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:zq.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:zq.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:zq.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:zq.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:zq.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:zq.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:zq.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:zq.XML}],["xml:space",{prefix:"xml",name:"space",namespace:zq.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:zq.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:zq.XMLNS}]]),gL=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(a=>[a.toLowerCase(),a])),gM=new Set([zu.B,zu.BIG,zu.BLOCKQUOTE,zu.BODY,zu.BR,zu.CENTER,zu.CODE,zu.DD,zu.DIV,zu.DL,zu.DT,zu.EM,zu.EMBED,zu.H1,zu.H2,zu.H3,zu.H4,zu.H5,zu.H6,zu.HEAD,zu.HR,zu.I,zu.IMG,zu.LI,zu.LISTING,zu.MENU,zu.META,zu.NOBR,zu.OL,zu.P,zu.PRE,zu.RUBY,zu.S,zu.SMALL,zu.SPAN,zu.STRONG,zu.STRIKE,zu.SUB,zu.SUP,zu.TABLE,zu.TT,zu.U,zu.UL,zu.VAR]);function gN(a){for(let b=0;b<a.attrs.length;b++)if("definitionurl"===a.attrs[b].name){a.attrs[b].name="definitionURL";break}}function gO(a){for(let b=0;b<a.attrs.length;b++){let c=gJ.get(a.attrs[b].name);null!=c&&(a.attrs[b].name=c)}}function gP(a){for(let b=0;b<a.attrs.length;b++){let c=gK.get(a.attrs[b].name);c&&(a.attrs[b].prefix=c.prefix,a.attrs[b].name=c.name,a.attrs[b].namespace=c.namespace)}}(y3=zx||(zx={}))[y3.INITIAL=0]="INITIAL",y3[y3.BEFORE_HTML=1]="BEFORE_HTML",y3[y3.BEFORE_HEAD=2]="BEFORE_HEAD",y3[y3.IN_HEAD=3]="IN_HEAD",y3[y3.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",y3[y3.AFTER_HEAD=5]="AFTER_HEAD",y3[y3.IN_BODY=6]="IN_BODY",y3[y3.TEXT=7]="TEXT",y3[y3.IN_TABLE=8]="IN_TABLE",y3[y3.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",y3[y3.IN_CAPTION=10]="IN_CAPTION",y3[y3.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",y3[y3.IN_TABLE_BODY=12]="IN_TABLE_BODY",y3[y3.IN_ROW=13]="IN_ROW",y3[y3.IN_CELL=14]="IN_CELL",y3[y3.IN_SELECT=15]="IN_SELECT",y3[y3.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",y3[y3.IN_TEMPLATE=17]="IN_TEMPLATE",y3[y3.AFTER_BODY=18]="AFTER_BODY",y3[y3.IN_FRAMESET=19]="IN_FRAMESET",y3[y3.AFTER_FRAMESET=20]="AFTER_FRAMESET",y3[y3.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",y3[y3.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET";let gQ={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},gR=new Set([zu.TABLE,zu.TBODY,zu.TFOOT,zu.THEAD,zu.TR]),gS={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:gB,onParseError:null};class gT{constructor(a,b,c=null,d=null){this.fragmentContext=c,this.scriptHandler=d,this.currentToken=null,this.stopped=!1,this.insertionMode=zx.INITIAL,this.originalInsertionMode=zx.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={...gS,...a},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=b?b:this.treeAdapter.createDocument(),this.tokenizer=new gm(this.options,this),this.activeFormattingElements=new gA(this.treeAdapter),this.fragmentContextID=c?gc(this.treeAdapter.getTagName(c)):zu.UNKNOWN,this._setContextModes(null!=c?c:this.document,this.fragmentContextID),this.openElements=new gy(this.document,this.treeAdapter,this)}static parse(a,b){let c=new this(b);return c.tokenizer.write(a,!0),c.document}static getFragmentParser(a,b){let c={...gS,...b};null!=a||(a=c.treeAdapter.createElement(zt.TEMPLATE,zq.HTML,[]));let d=c.treeAdapter.createElement("documentmock",zq.HTML,[]),e=new this(c,d,a);return e.fragmentContextID===zu.TEMPLATE&&e.tmplInsertionModeStack.unshift(zx.IN_TEMPLATE),e._initTokenizerForFragmentParsing(),e._insertFakeRootElement(),e._resetInsertionMode(),e._findFormInFragmentContext(),e}getFragment(){let a=this.treeAdapter.getFirstChild(this.document),b=this.treeAdapter.createDocumentFragment();return this._adoptNodes(a,b),b}_err(a,b,c){var d;if(!this.onParseError)return;let e=null!=(d=a.location)?d:gQ,f={code:b,startLine:e.startLine,startCol:e.startCol,startOffset:e.startOffset,endLine:c?e.startLine:e.endLine,endCol:c?e.startCol:e.endCol,endOffset:c?e.startOffset:e.endOffset};this.onParseError(f)}onItemPush(a,b,c){var d,e;null==(e=(d=this.treeAdapter).onItemPush)||e.call(d,a),c&&this.openElements.stackTop>0&&this._setContextModes(a,b)}onItemPop(a,b){var c,d;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(a,this.currentToken),null==(d=(c=this.treeAdapter).onItemPop)||d.call(c,a,this.openElements.current),b){let a,b;0===this.openElements.stackTop&&this.fragmentContext?(a=this.fragmentContext,b=this.fragmentContextID):{current:a,currentTagId:b}=this.openElements,this._setContextModes(a,b)}}_setContextModes(a,b){let c=a===this.document||a&&this.treeAdapter.getNamespaceURI(a)===zq.HTML;this.currentNotInHTML=!c,this.tokenizer.inForeignNode=!c&&void 0!==a&&void 0!==b&&!this._isIntegrationPoint(b,a)}_switchToTextParsing(a,b){this._insertElement(a,zq.HTML),this.tokenizer.state=b,this.originalInsertionMode=this.insertionMode,this.insertionMode=zx.TEXT}switchToPlaintextParsing(){this.insertionMode=zx.TEXT,this.originalInsertionMode=zx.IN_BODY,this.tokenizer.state=gg.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let a=this.fragmentContext;for(;a;){if(this.treeAdapter.getTagName(a)===zt.FORM){this.formElement=a;break}a=this.treeAdapter.getParentNode(a)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===zq.HTML)switch(this.fragmentContextID){case zu.TITLE:case zu.TEXTAREA:this.tokenizer.state=gg.RCDATA;break;case zu.STYLE:case zu.XMP:case zu.IFRAME:case zu.NOEMBED:case zu.NOFRAMES:case zu.NOSCRIPT:this.tokenizer.state=gg.RAWTEXT;break;case zu.SCRIPT:this.tokenizer.state=gg.SCRIPT_DATA;break;case zu.PLAINTEXT:this.tokenizer.state=gg.PLAINTEXT}}_setDocumentType(a){let b=a.name||"",c=a.publicId||"",d=a.systemId||"";if(this.treeAdapter.setDocumentType(this.document,b,c,d),a.location){let b=this.treeAdapter.getChildNodes(this.document).find(a=>this.treeAdapter.isDocumentTypeNode(a));b&&this.treeAdapter.setNodeSourceCodeLocation(b,a.location)}}_attachElementToTree(a,b){if(this.options.sourceCodeLocationInfo){let c=b&&{...b,startTag:b};this.treeAdapter.setNodeSourceCodeLocation(a,c)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(a);else{let b=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(null!=b?b:this.document,a)}}_appendElement(a,b){let c=this.treeAdapter.createElement(a.tagName,b,a.attrs);this._attachElementToTree(c,a.location)}_insertElement(a,b){let c=this.treeAdapter.createElement(a.tagName,b,a.attrs);this._attachElementToTree(c,a.location),this.openElements.push(c,a.tagID)}_insertFakeElement(a,b){let c=this.treeAdapter.createElement(a,zq.HTML,[]);this._attachElementToTree(c,null),this.openElements.push(c,b)}_insertTemplate(a){let b=this.treeAdapter.createElement(a.tagName,zq.HTML,a.attrs),c=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(b,c),this._attachElementToTree(b,a.location),this.openElements.push(b,a.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(c,null)}_insertFakeRootElement(){let a=this.treeAdapter.createElement(zt.HTML,zq.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,null),this.treeAdapter.appendChild(this.openElements.current,a),this.openElements.push(a,zu.HTML)}_appendCommentNode(a,b){let c=this.treeAdapter.createCommentNode(a.data);this.treeAdapter.appendChild(b,c),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(c,a.location)}_insertCharacters(a){let b,c;if(this._shouldFosterParentOnInsertion()?({parent:b,beforeElement:c}=this._findFosterParentingLocation(),c?this.treeAdapter.insertTextBefore(b,a.chars,c):this.treeAdapter.insertText(b,a.chars)):(b=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(b,a.chars)),!a.location)return;let d=this.treeAdapter.getChildNodes(b),e=c?d.lastIndexOf(c):d.length,f=d[e-1];if(this.treeAdapter.getNodeSourceCodeLocation(f)){let{endLine:b,endCol:c,endOffset:d}=a.location;this.treeAdapter.updateNodeSourceCodeLocation(f,{endLine:b,endCol:c,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(f,a.location)}_adoptNodes(a,b){for(let c=this.treeAdapter.getFirstChild(a);c;c=this.treeAdapter.getFirstChild(a))this.treeAdapter.detachNode(c),this.treeAdapter.appendChild(b,c)}_setEndLocation(a,b){if(this.treeAdapter.getNodeSourceCodeLocation(a)&&b.location){let c=b.location,d=this.treeAdapter.getTagName(a),e=b.type===zl.END_TAG&&d===b.tagName?{endTag:{...c},endLine:c.endLine,endCol:c.endCol,endOffset:c.endOffset}:{endLine:c.startLine,endCol:c.startCol,endOffset:c.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(a,e)}}shouldProcessStartTagTokenInForeignContent(a){let b,c;return!!this.currentNotInHTML&&(0===this.openElements.stackTop&&this.fragmentContext?(b=this.fragmentContext,c=this.fragmentContextID):{current:b,currentTagId:c}=this.openElements,(a.tagID!==zu.SVG||this.treeAdapter.getTagName(b)!==zt.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(b)!==zq.MATHML)&&(this.tokenizer.inForeignNode||(a.tagID===zu.MGLYPH||a.tagID===zu.MALIGNMARK)&&void 0!==c&&!this._isIntegrationPoint(c,b,zq.HTML)))}_processToken(a){switch(a.type){case zl.CHARACTER:this.onCharacter(a);break;case zl.NULL_CHARACTER:this.onNullCharacter(a);break;case zl.COMMENT:this.onComment(a);break;case zl.DOCTYPE:this.onDoctype(a);break;case zl.START_TAG:this._processStartTag(a);break;case zl.END_TAG:this.onEndTag(a);break;case zl.EOF:this.onEof(a);break;case zl.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(a)}}_isIntegrationPoint(a,b,c){let d=this.treeAdapter.getNamespaceURI(b),e=this.treeAdapter.getAttrList(b);return(!c||c===zq.HTML)&&function(a,b,c){if(b===zq.MATHML&&a===zu.ANNOTATION_XML){for(let a=0;a<c.length;a++)if(c[a].name===zr.ENCODING){let b=c[a].value.toLowerCase();return"text/html"===b||"application/xhtml+xml"===b}}return b===zq.SVG&&(a===zu.FOREIGN_OBJECT||a===zu.DESC||a===zu.TITLE)}(a,d,e)||(!c||c===zq.MATHML)&&d===zq.MATHML&&(a===zu.MI||a===zu.MO||a===zu.MN||a===zu.MS||a===zu.MTEXT)}_reconstructActiveFormattingElements(){let a=this.activeFormattingElements.entries.length;if(a){let b=this.activeFormattingElements.entries.findIndex(a=>a.type===zw.Marker||this.openElements.contains(a.element)),c=-1===b?a-1:b-1;for(let a=c;a>=0;a--){let b=this.activeFormattingElements.entries[a];this._insertElement(b.token,this.treeAdapter.getNamespaceURI(b.element)),b.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=zx.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(zu.P),this.openElements.popUntilTagNamePopped(zu.P)}_resetInsertionMode(){for(let a=this.openElements.stackTop;a>=0;a--)switch(0===a&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[a]){case zu.TR:this.insertionMode=zx.IN_ROW;return;case zu.TBODY:case zu.THEAD:case zu.TFOOT:this.insertionMode=zx.IN_TABLE_BODY;return;case zu.CAPTION:this.insertionMode=zx.IN_CAPTION;return;case zu.COLGROUP:this.insertionMode=zx.IN_COLUMN_GROUP;return;case zu.TABLE:this.insertionMode=zx.IN_TABLE;return;case zu.BODY:this.insertionMode=zx.IN_BODY;return;case zu.FRAMESET:this.insertionMode=zx.IN_FRAMESET;return;case zu.SELECT:return void this._resetInsertionModeForSelect(a);case zu.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case zu.HTML:this.insertionMode=this.headElement?zx.AFTER_HEAD:zx.BEFORE_HEAD;return;case zu.TD:case zu.TH:if(a>0){this.insertionMode=zx.IN_CELL;return}break;case zu.HEAD:if(a>0){this.insertionMode=zx.IN_HEAD;return}}this.insertionMode=zx.IN_BODY}_resetInsertionModeForSelect(a){if(a>0)for(let b=a-1;b>0;b--){let a=this.openElements.tagIDs[b];if(a===zu.TEMPLATE)break;if(a===zu.TABLE){this.insertionMode=zx.IN_SELECT_IN_TABLE;return}}this.insertionMode=zx.IN_SELECT}_isElementCausesFosterParenting(a){return gR.has(a)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&void 0!==this.openElements.currentTagId&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let a=this.openElements.stackTop;a>=0;a--){let b=this.openElements.items[a];switch(this.openElements.tagIDs[a]){case zu.TEMPLATE:if(this.treeAdapter.getNamespaceURI(b)===zq.HTML)return{parent:this.treeAdapter.getTemplateContent(b),beforeElement:null};break;case zu.TABLE:{let c=this.treeAdapter.getParentNode(b);if(c)return{parent:c,beforeElement:b};return{parent:this.openElements.items[a-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(a){let b=this._findFosterParentingLocation();b.beforeElement?this.treeAdapter.insertBefore(b.parent,a,b.beforeElement):this.treeAdapter.appendChild(b.parent,a)}_isSpecialElement(a,b){return ge[this.treeAdapter.getNamespaceURI(a)].has(b)}onCharacter(a){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){var b,c;return void(b=this,c=a,b._insertCharacters(c),b.framesetOk=!1)}switch(this.insertionMode){case zx.INITIAL:gX(this,a);break;case zx.BEFORE_HTML:gY(this,a);break;case zx.BEFORE_HEAD:gZ(this,a);break;case zx.IN_HEAD:g0(this,a);break;case zx.IN_HEAD_NO_SCRIPT:g1(this,a);break;case zx.AFTER_HEAD:g2(this,a);break;case zx.IN_BODY:case zx.IN_CAPTION:case zx.IN_CELL:case zx.IN_TEMPLATE:g5(this,a);break;case zx.TEXT:case zx.IN_SELECT:case zx.IN_SELECT_IN_TABLE:this._insertCharacters(a);break;case zx.IN_TABLE:case zx.IN_TABLE_BODY:case zx.IN_ROW:he(this,a);break;case zx.IN_TABLE_TEXT:hj(this,a);break;case zx.IN_COLUMN_GROUP:hn(this,a);break;case zx.AFTER_BODY:hw(this,a);break;case zx.AFTER_AFTER_BODY:hx(this,a)}}onNullCharacter(a){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){var b,c;return void(b=this,(c=a).chars="�",b._insertCharacters(c))}switch(this.insertionMode){case zx.INITIAL:gX(this,a);break;case zx.BEFORE_HTML:gY(this,a);break;case zx.BEFORE_HEAD:gZ(this,a);break;case zx.IN_HEAD:g0(this,a);break;case zx.IN_HEAD_NO_SCRIPT:g1(this,a);break;case zx.AFTER_HEAD:g2(this,a);break;case zx.TEXT:this._insertCharacters(a);break;case zx.IN_TABLE:case zx.IN_TABLE_BODY:case zx.IN_ROW:he(this,a);break;case zx.IN_COLUMN_GROUP:hn(this,a);break;case zx.AFTER_BODY:hw(this,a);break;case zx.AFTER_AFTER_BODY:hx(this,a)}}onComment(a){var b,c,d,e;if(this.skipNextNewLine=!1,this.currentNotInHTML)return void gV(this,a);switch(this.insertionMode){case zx.INITIAL:case zx.BEFORE_HTML:case zx.BEFORE_HEAD:case zx.IN_HEAD:case zx.IN_HEAD_NO_SCRIPT:case zx.AFTER_HEAD:case zx.IN_BODY:case zx.IN_TABLE:case zx.IN_CAPTION:case zx.IN_COLUMN_GROUP:case zx.IN_TABLE_BODY:case zx.IN_ROW:case zx.IN_CELL:case zx.IN_SELECT:case zx.IN_SELECT_IN_TABLE:case zx.IN_TEMPLATE:case zx.IN_FRAMESET:case zx.AFTER_FRAMESET:gV(this,a);break;case zx.IN_TABLE_TEXT:hk(this,a);break;case zx.AFTER_BODY:b=this,c=a,b._appendCommentNode(c,b.openElements.items[0]);break;case zx.AFTER_AFTER_BODY:case zx.AFTER_AFTER_FRAMESET:d=this,e=a,d._appendCommentNode(e,d.document)}}onDoctype(a){switch(this.skipNextNewLine=!1,this.insertionMode){case zx.INITIAL:!function(a,b){a._setDocumentType(b);let c=b.forceQuirks?zs.QUIRKS:function(a){if(a.name!==gC)return zs.QUIRKS;let{systemId:b}=a;if(b&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===b.toLowerCase())return zs.QUIRKS;let{publicId:c}=a;if(null!==c){if(c=c.toLowerCase(),gF.has(c))return zs.QUIRKS;let a=null===b?gE:gD;if(gI(c,a))return zs.QUIRKS;if(gI(c,a=null===b?gG:gH))return zs.LIMITED_QUIRKS}return zs.NO_QUIRKS}(b);(b.name!==gC||null!==b.publicId||null!==b.systemId&&"about:legacy-compat"!==b.systemId)&&a._err(b,zk.nonConformingDoctype),a.treeAdapter.setDocumentMode(a.document,c),a.insertionMode=zx.BEFORE_HTML}(this,a);break;case zx.BEFORE_HEAD:case zx.IN_HEAD:case zx.IN_HEAD_NO_SCRIPT:case zx.AFTER_HEAD:this._err(a,zk.misplacedDoctype);break;case zx.IN_TABLE_TEXT:hk(this,a)}}onStartTag(a){this.skipNextNewLine=!1,this.currentToken=a,this._processStartTag(a),a.selfClosing&&!a.ackSelfClosing&&this._err(a,zk.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(a){this.shouldProcessStartTagTokenInForeignContent(a)?function(a,b){let c;if((c=b.tagID)===zu.FONT&&b.attrs.some(({name:a})=>a===zr.COLOR||a===zr.SIZE||a===zr.FACE)||gM.has(c))hy(a),a._startTagOutsideForeignContent(b);else{let c=a._getAdjustedCurrentElement(),d=a.treeAdapter.getNamespaceURI(c);if(d===zq.MATHML)gN(b);else if(d===zq.SVG){let a;null!=(a=gL.get(b.tagName))&&(b.tagName=a,b.tagID=gc(b.tagName)),gO(b)}gP(b),b.selfClosing?a._appendElement(b,d):a._insertElement(b,d),b.ackSelfClosing=!0}}(this,a):this._startTagOutsideForeignContent(a)}_startTagOutsideForeignContent(a){switch(this.insertionMode){case zx.INITIAL:gX(this,a);break;case zx.BEFORE_HTML:b=this,(c=a).tagID===zu.HTML?(b._insertElement(c,zq.HTML),b.insertionMode=zx.BEFORE_HEAD):gY(b,c);break;case zx.BEFORE_HEAD:var b,c,d,e,f,g,h,i,j,k,l,m,n=this,o=a;switch(o.tagID){case zu.HTML:ha(n,o);break;case zu.HEAD:n._insertElement(o,zq.HTML),n.headElement=n.openElements.current,n.insertionMode=zx.IN_HEAD;break;default:gZ(n,o)}break;case zx.IN_HEAD:g$(this,a);break;case zx.IN_HEAD_NO_SCRIPT:var p=this,q=a;switch(q.tagID){case zu.HTML:ha(p,q);break;case zu.BASEFONT:case zu.BGSOUND:case zu.HEAD:case zu.LINK:case zu.META:case zu.NOFRAMES:case zu.STYLE:g$(p,q);break;case zu.NOSCRIPT:p._err(q,zk.nestedNoscriptInHead);break;default:g1(p,q)}break;case zx.AFTER_HEAD:var r=this,s=a;switch(s.tagID){case zu.HTML:ha(r,s);break;case zu.BODY:r._insertElement(s,zq.HTML),r.framesetOk=!1,r.insertionMode=zx.IN_BODY;break;case zu.FRAMESET:r._insertElement(s,zq.HTML),r.insertionMode=zx.IN_FRAMESET;break;case zu.BASE:case zu.BASEFONT:case zu.BGSOUND:case zu.LINK:case zu.META:case zu.NOFRAMES:case zu.SCRIPT:case zu.STYLE:case zu.TEMPLATE:case zu.TITLE:r._err(s,zk.abandonedHeadElementChild),r.openElements.push(r.headElement,zu.HEAD),g$(r,s),r.openElements.remove(r.headElement);break;case zu.HEAD:r._err(s,zk.misplacedStartTagForHeadElement);break;default:g2(r,s)}break;case zx.IN_BODY:ha(this,a);break;case zx.IN_TABLE:hf(this,a);break;case zx.IN_TABLE_TEXT:hk(this,a);break;case zx.IN_CAPTION:let t;d=this,t=(e=a).tagID,hl.has(t)?d.openElements.hasInTableScope(zu.CAPTION)&&(d.openElements.generateImpliedEndTags(),d.openElements.popUntilTagNamePopped(zu.CAPTION),d.activeFormattingElements.clearToLastMarker(),d.insertionMode=zx.IN_TABLE,hf(d,e)):ha(d,e);break;case zx.IN_COLUMN_GROUP:hm(this,a);break;case zx.IN_TABLE_BODY:ho(this,a);break;case zx.IN_ROW:hq(this,a);break;case zx.IN_CELL:let u;f=this,u=(g=a).tagID,hl.has(u)?(f.openElements.hasInTableScope(zu.TD)||f.openElements.hasInTableScope(zu.TH))&&(f._closeTableCell(),hq(f,g)):ha(f,g);break;case zx.IN_SELECT:hs(this,a);break;case zx.IN_SELECT_IN_TABLE:let v;h=this,(v=(i=a).tagID)===zu.CAPTION||v===zu.TABLE||v===zu.TBODY||v===zu.TFOOT||v===zu.THEAD||v===zu.TR||v===zu.TD||v===zu.TH?(h.openElements.popUntilTagNamePopped(zu.SELECT),h._resetInsertionMode(),h._processStartTag(i)):hs(h,i);break;case zx.IN_TEMPLATE:var w=this,x=a;switch(x.tagID){case zu.BASE:case zu.BASEFONT:case zu.BGSOUND:case zu.LINK:case zu.META:case zu.NOFRAMES:case zu.SCRIPT:case zu.STYLE:case zu.TEMPLATE:case zu.TITLE:g$(w,x);break;case zu.CAPTION:case zu.COLGROUP:case zu.TBODY:case zu.TFOOT:case zu.THEAD:w.tmplInsertionModeStack[0]=zx.IN_TABLE,w.insertionMode=zx.IN_TABLE,hf(w,x);break;case zu.COL:w.tmplInsertionModeStack[0]=zx.IN_COLUMN_GROUP,w.insertionMode=zx.IN_COLUMN_GROUP,hm(w,x);break;case zu.TR:w.tmplInsertionModeStack[0]=zx.IN_TABLE_BODY,w.insertionMode=zx.IN_TABLE_BODY,ho(w,x);break;case zu.TD:case zu.TH:w.tmplInsertionModeStack[0]=zx.IN_ROW,w.insertionMode=zx.IN_ROW,hq(w,x);break;default:w.tmplInsertionModeStack[0]=zx.IN_BODY,w.insertionMode=zx.IN_BODY,ha(w,x)}break;case zx.AFTER_BODY:j=this,(k=a).tagID===zu.HTML?ha(j,k):hw(j,k);break;case zx.IN_FRAMESET:var y=this,z=a;switch(z.tagID){case zu.HTML:ha(y,z);break;case zu.FRAMESET:y._insertElement(z,zq.HTML);break;case zu.FRAME:y._appendElement(z,zq.HTML),z.ackSelfClosing=!0;break;case zu.NOFRAMES:g$(y,z)}break;case zx.AFTER_FRAMESET:var A=this,B=a;switch(B.tagID){case zu.HTML:ha(A,B);break;case zu.NOFRAMES:g$(A,B)}break;case zx.AFTER_AFTER_BODY:l=this,(m=a).tagID===zu.HTML?ha(l,m):hx(l,m);break;case zx.AFTER_AFTER_FRAMESET:var C=this,D=a;switch(D.tagID){case zu.HTML:ha(C,D);break;case zu.NOFRAMES:g$(C,D)}}}onEndTag(a){this.skipNextNewLine=!1,this.currentToken=a,this.currentNotInHTML?function(a,b){if(b.tagID===zu.P||b.tagID===zu.BR){hy(a),a._endTagOutsideForeignContent(b);return}for(let c=a.openElements.stackTop;c>0;c--){let d=a.openElements.items[c];if(a.treeAdapter.getNamespaceURI(d)===zq.HTML){a._endTagOutsideForeignContent(b);break}let e=a.treeAdapter.getTagName(d);if(e.toLowerCase()===b.tagName){b.tagName=e,a.openElements.shortenToLength(c);break}}}(this,a):this._endTagOutsideForeignContent(a)}_endTagOutsideForeignContent(a){switch(this.insertionMode){case zx.INITIAL:gX(this,a);break;case zx.BEFORE_HTML:let b;d=this,((b=(e=a).tagID)===zu.HTML||b===zu.HEAD||b===zu.BODY||b===zu.BR)&&gY(d,e);break;case zx.BEFORE_HEAD:let c;f=this,(c=(g=a).tagID)===zu.HEAD||c===zu.BODY||c===zu.HTML||c===zu.BR?gZ(f,g):f._err(g,zk.endTagWithoutMatchingOpenElement);break;case zx.IN_HEAD:var d,e,f,g,h,i,j,k,l,m,n,o,p=this,q=a;switch(q.tagID){case zu.HEAD:p.openElements.pop(),p.insertionMode=zx.AFTER_HEAD;break;case zu.BODY:case zu.BR:case zu.HTML:g0(p,q);break;case zu.TEMPLATE:g_(p,q);break;default:p._err(q,zk.endTagWithoutMatchingOpenElement)}break;case zx.IN_HEAD_NO_SCRIPT:var r=this,s=a;switch(s.tagID){case zu.NOSCRIPT:r.openElements.pop(),r.insertionMode=zx.IN_HEAD;break;case zu.BR:g1(r,s);break;default:r._err(s,zk.endTagWithoutMatchingOpenElement)}break;case zx.AFTER_HEAD:var t=this,u=a;switch(u.tagID){case zu.BODY:case zu.HTML:case zu.BR:g2(t,u);break;case zu.TEMPLATE:g_(t,u);break;default:t._err(u,zk.endTagWithoutMatchingOpenElement)}break;case zx.IN_BODY:hc(this,a);break;case zx.TEXT:h=this,a.tagID===zu.SCRIPT&&(null==(i=h.scriptHandler)||i.call(h,h.openElements.current)),h.openElements.pop(),h.insertionMode=h.originalInsertionMode;break;case zx.IN_TABLE:hg(this,a);break;case zx.IN_TABLE_TEXT:hk(this,a);break;case zx.IN_CAPTION:var v=this,w=a;let x=w.tagID;switch(x){case zu.CAPTION:case zu.TABLE:v.openElements.hasInTableScope(zu.CAPTION)&&(v.openElements.generateImpliedEndTags(),v.openElements.popUntilTagNamePopped(zu.CAPTION),v.activeFormattingElements.clearToLastMarker(),v.insertionMode=zx.IN_TABLE,x===zu.TABLE&&hg(v,w));break;case zu.BODY:case zu.COL:case zu.COLGROUP:case zu.HTML:case zu.TBODY:case zu.TD:case zu.TFOOT:case zu.TH:case zu.THEAD:case zu.TR:break;default:hc(v,w)}break;case zx.IN_COLUMN_GROUP:var y=this,z=a;switch(z.tagID){case zu.COLGROUP:y.openElements.currentTagId===zu.COLGROUP&&(y.openElements.pop(),y.insertionMode=zx.IN_TABLE);break;case zu.TEMPLATE:g_(y,z);break;case zu.COL:break;default:hn(y,z)}break;case zx.IN_TABLE_BODY:hp(this,a);break;case zx.IN_ROW:hr(this,a);break;case zx.IN_CELL:var A=this,B=a;let C=B.tagID;switch(C){case zu.TD:case zu.TH:A.openElements.hasInTableScope(C)&&(A.openElements.generateImpliedEndTags(),A.openElements.popUntilTagNamePopped(C),A.activeFormattingElements.clearToLastMarker(),A.insertionMode=zx.IN_ROW);break;case zu.TABLE:case zu.TBODY:case zu.TFOOT:case zu.THEAD:case zu.TR:A.openElements.hasInTableScope(C)&&(A._closeTableCell(),hr(A,B));break;case zu.BODY:case zu.CAPTION:case zu.COL:case zu.COLGROUP:case zu.HTML:break;default:hc(A,B)}break;case zx.IN_SELECT:ht(this,a);break;case zx.IN_SELECT_IN_TABLE:let D;j=this,(D=(k=a).tagID)===zu.CAPTION||D===zu.TABLE||D===zu.TBODY||D===zu.TFOOT||D===zu.THEAD||D===zu.TR||D===zu.TD||D===zu.TH?j.openElements.hasInTableScope(D)&&(j.openElements.popUntilTagNamePopped(zu.SELECT),j._resetInsertionMode(),j.onEndTag(k)):ht(j,k);break;case zx.IN_TEMPLATE:l=this,(m=a).tagID===zu.TEMPLATE&&g_(l,m);break;case zx.AFTER_BODY:hv(this,a);break;case zx.IN_FRAMESET:n=this,a.tagID===zu.FRAMESET&&!n.openElements.isRootHtmlElementCurrent()&&(n.openElements.pop(),n.fragmentContext||n.openElements.currentTagId===zu.FRAMESET||(n.insertionMode=zx.AFTER_FRAMESET));break;case zx.AFTER_FRAMESET:o=this,a.tagID===zu.HTML&&(o.insertionMode=zx.AFTER_AFTER_FRAMESET);break;case zx.AFTER_AFTER_BODY:hx(this,a)}}onEof(a){switch(this.insertionMode){case zx.INITIAL:gX(this,a);break;case zx.BEFORE_HTML:gY(this,a);break;case zx.BEFORE_HEAD:gZ(this,a);break;case zx.IN_HEAD:g0(this,a);break;case zx.IN_HEAD_NO_SCRIPT:g1(this,a);break;case zx.AFTER_HEAD:g2(this,a);break;case zx.IN_BODY:case zx.IN_TABLE:case zx.IN_CAPTION:case zx.IN_COLUMN_GROUP:case zx.IN_TABLE_BODY:case zx.IN_ROW:case zx.IN_CELL:case zx.IN_SELECT:case zx.IN_SELECT_IN_TABLE:hd(this,a);break;case zx.TEXT:var b,c;b=this,c=a,b._err(c,zk.eofInElementThatCanContainOnlyText),b.openElements.pop(),b.insertionMode=b.originalInsertionMode,b.onEof(c);break;case zx.IN_TABLE_TEXT:hk(this,a);break;case zx.IN_TEMPLATE:hu(this,a);break;case zx.AFTER_BODY:case zx.IN_FRAMESET:case zx.AFTER_FRAMESET:case zx.AFTER_AFTER_BODY:case zx.AFTER_AFTER_FRAMESET:gW(this,a)}}onWhitespaceCharacter(a){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,a.chars.charCodeAt(0)===zj.LINE_FEED)){if(1===a.chars.length)return;a.chars=a.chars.substr(1)}if(this.tokenizer.inForeignNode)return void this._insertCharacters(a);switch(this.insertionMode){case zx.IN_HEAD:case zx.IN_HEAD_NO_SCRIPT:case zx.AFTER_HEAD:case zx.TEXT:case zx.IN_COLUMN_GROUP:case zx.IN_SELECT:case zx.IN_SELECT_IN_TABLE:case zx.IN_FRAMESET:case zx.AFTER_FRAMESET:this._insertCharacters(a);break;case zx.IN_BODY:case zx.IN_CAPTION:case zx.IN_CELL:case zx.IN_TEMPLATE:case zx.AFTER_BODY:case zx.AFTER_AFTER_BODY:case zx.AFTER_AFTER_FRAMESET:g4(this,a);break;case zx.IN_TABLE:case zx.IN_TABLE_BODY:case zx.IN_ROW:he(this,a);break;case zx.IN_TABLE_TEXT:hi(this,a)}}}function gU(a,b){for(let c=0;c<8;c++){let c=function(a,b){let c=a.activeFormattingElements.getElementEntryInScopeWithTagName(b.tagName);return c?a.openElements.contains(c.element)?a.openElements.hasInScope(b.tagID)||(c=null):(a.activeFormattingElements.removeEntry(c),c=null):hb(a,b),c}(a,b);if(!c)break;let d=function(a,b){let c=null,d=a.openElements.stackTop;for(;d>=0;d--){let e=a.openElements.items[d];if(e===b.element)break;a._isSpecialElement(e,a.openElements.tagIDs[d])&&(c=e)}return c||(a.openElements.shortenToLength(Math.max(d,0)),a.activeFormattingElements.removeEntry(b)),c}(a,c);if(!d)break;a.activeFormattingElements.bookmark=c;let e=function(a,b,c){let d=b,e=a.openElements.getCommonAncestor(b);for(let f=0,g=e;g!==c;f++,g=e){e=a.openElements.getCommonAncestor(g);let c=a.activeFormattingElements.getElementEntry(g),h=c&&f>=3;!c||h?(h&&a.activeFormattingElements.removeEntry(c),a.openElements.remove(g)):(g=function(a,b){let c=a.treeAdapter.getNamespaceURI(b.element),d=a.treeAdapter.createElement(b.token.tagName,c,b.token.attrs);return a.openElements.replace(b.element,d),b.element=d,d}(a,c),d===b&&(a.activeFormattingElements.bookmark=c),a.treeAdapter.detachNode(d),a.treeAdapter.appendChild(g,d),d=g)}return d}(a,d,c.element),f=a.openElements.getCommonAncestor(c.element);a.treeAdapter.detachNode(e),f&&function(a,b,c){let d=gc(a.treeAdapter.getTagName(b));if(a._isElementCausesFosterParenting(d))a._fosterParentElement(c);else{let e=a.treeAdapter.getNamespaceURI(b);d===zu.TEMPLATE&&e===zq.HTML&&(b=a.treeAdapter.getTemplateContent(b)),a.treeAdapter.appendChild(b,c)}}(a,f,e),function(a,b,c){let d=a.treeAdapter.getNamespaceURI(c.element),{token:e}=c,f=a.treeAdapter.createElement(e.tagName,d,e.attrs);a._adoptNodes(b,f),a.treeAdapter.appendChild(b,f),a.activeFormattingElements.insertElementAfterBookmark(f,e),a.activeFormattingElements.removeEntry(c),a.openElements.remove(c.element),a.openElements.insertAfter(b,f,e.tagID)}(a,d,c)}}function gV(a,b){a._appendCommentNode(b,a.openElements.currentTmplContentOrNode)}function gW(a,b){if(a.stopped=!0,b.location){let c=2*!a.fragmentContext;for(let d=a.openElements.stackTop;d>=c;d--)a._setEndLocation(a.openElements.items[d],b);if(!a.fragmentContext&&a.openElements.stackTop>=0){let c=a.openElements.items[0],d=a.treeAdapter.getNodeSourceCodeLocation(c);if(d&&!d.endTag&&(a._setEndLocation(c,b),a.openElements.stackTop>=1)){let c=a.openElements.items[1],d=a.treeAdapter.getNodeSourceCodeLocation(c);d&&!d.endTag&&a._setEndLocation(c,b)}}}}function gX(a,b){a._err(b,zk.missingDoctype,!0),a.treeAdapter.setDocumentMode(a.document,zs.QUIRKS),a.insertionMode=zx.BEFORE_HTML,a._processToken(b)}function gY(a,b){a._insertFakeRootElement(),a.insertionMode=zx.BEFORE_HEAD,a._processToken(b)}function gZ(a,b){a._insertFakeElement(zt.HEAD,zu.HEAD),a.headElement=a.openElements.current,a.insertionMode=zx.IN_HEAD,a._processToken(b)}function g$(a,b){switch(b.tagID){case zu.HTML:ha(a,b);break;case zu.BASE:case zu.BASEFONT:case zu.BGSOUND:case zu.LINK:case zu.META:a._appendElement(b,zq.HTML),b.ackSelfClosing=!0;break;case zu.TITLE:a._switchToTextParsing(b,gg.RCDATA);break;case zu.NOSCRIPT:a.options.scriptingEnabled?a._switchToTextParsing(b,gg.RAWTEXT):(a._insertElement(b,zq.HTML),a.insertionMode=zx.IN_HEAD_NO_SCRIPT);break;case zu.NOFRAMES:case zu.STYLE:a._switchToTextParsing(b,gg.RAWTEXT);break;case zu.SCRIPT:a._switchToTextParsing(b,gg.SCRIPT_DATA);break;case zu.TEMPLATE:a._insertTemplate(b),a.activeFormattingElements.insertMarker(),a.framesetOk=!1,a.insertionMode=zx.IN_TEMPLATE,a.tmplInsertionModeStack.unshift(zx.IN_TEMPLATE);break;case zu.HEAD:a._err(b,zk.misplacedStartTagForHeadElement);break;default:g0(a,b)}}function g_(a,b){a.openElements.tmplCount>0?(a.openElements.generateImpliedEndTagsThoroughly(),a.openElements.currentTagId!==zu.TEMPLATE&&a._err(b,zk.closingOfElementWithOpenChildElements),a.openElements.popUntilTagNamePopped(zu.TEMPLATE),a.activeFormattingElements.clearToLastMarker(),a.tmplInsertionModeStack.shift(),a._resetInsertionMode()):a._err(b,zk.endTagWithoutMatchingOpenElement)}function g0(a,b){a.openElements.pop(),a.insertionMode=zx.AFTER_HEAD,a._processToken(b)}function g1(a,b){let c=b.type===zl.EOF?zk.openElementsLeftAfterEof:zk.disallowedContentInNoscriptInHead;a._err(b,c),a.openElements.pop(),a.insertionMode=zx.IN_HEAD,a._processToken(b)}function g2(a,b){a._insertFakeElement(zt.BODY,zu.BODY),a.insertionMode=zx.IN_BODY,g3(a,b)}function g3(a,b){switch(b.type){case zl.CHARACTER:g5(a,b);break;case zl.WHITESPACE_CHARACTER:g4(a,b);break;case zl.COMMENT:gV(a,b);break;case zl.START_TAG:ha(a,b);break;case zl.END_TAG:hc(a,b);break;case zl.EOF:hd(a,b)}}function g4(a,b){a._reconstructActiveFormattingElements(),a._insertCharacters(b)}function g5(a,b){a._reconstructActiveFormattingElements(),a._insertCharacters(b),a.framesetOk=!1}function g6(a,b){a._reconstructActiveFormattingElements(),a._appendElement(b,zq.HTML),a.framesetOk=!1,b.ackSelfClosing=!0}function g7(a){let b=f6(a,zr.TYPE);return null!=b&&"hidden"===b.toLowerCase()}function g8(a,b){a._switchToTextParsing(b,gg.RAWTEXT)}function g9(a,b){a._reconstructActiveFormattingElements(),a._insertElement(b,zq.HTML)}function ha(a,b){switch(b.tagID){case zu.I:case zu.S:case zu.B:case zu.U:case zu.EM:case zu.TT:case zu.BIG:case zu.CODE:case zu.FONT:case zu.SMALL:case zu.STRIKE:case zu.STRONG:a._reconstructActiveFormattingElements(),a._insertElement(b,zq.HTML),a.activeFormattingElements.pushElement(a.openElements.current,b);break;case zu.A:let c;(c=a.activeFormattingElements.getElementEntryInScopeWithTagName(zt.A))&&(gU(a,b),a.openElements.remove(c.element),a.activeFormattingElements.removeEntry(c)),a._reconstructActiveFormattingElements(),a._insertElement(b,zq.HTML),a.activeFormattingElements.pushElement(a.openElements.current,b);break;case zu.H1:case zu.H2:case zu.H3:case zu.H4:case zu.H5:case zu.H6:a.openElements.hasInButtonScope(zu.P)&&a._closePElement(),void 0!==a.openElements.currentTagId&&gf.has(a.openElements.currentTagId)&&a.openElements.pop(),a._insertElement(b,zq.HTML);break;case zu.P:case zu.DL:case zu.OL:case zu.UL:case zu.DIV:case zu.DIR:case zu.NAV:case zu.MAIN:case zu.MENU:case zu.ASIDE:case zu.CENTER:case zu.FIGURE:case zu.FOOTER:case zu.HEADER:case zu.HGROUP:case zu.DIALOG:case zu.DETAILS:case zu.ADDRESS:case zu.ARTICLE:case zu.SEARCH:case zu.SECTION:case zu.SUMMARY:case zu.FIELDSET:case zu.BLOCKQUOTE:case zu.FIGCAPTION:a.openElements.hasInButtonScope(zu.P)&&a._closePElement(),a._insertElement(b,zq.HTML);break;case zu.LI:case zu.DD:case zu.DT:a.framesetOk=!1;let d=b.tagID;for(let b=a.openElements.stackTop;b>=0;b--){let c=a.openElements.tagIDs[b];if(d===zu.LI&&c===zu.LI||(d===zu.DD||d===zu.DT)&&(c===zu.DD||c===zu.DT)){a.openElements.generateImpliedEndTagsWithExclusion(c),a.openElements.popUntilTagNamePopped(c);break}if(c!==zu.ADDRESS&&c!==zu.DIV&&c!==zu.P&&a._isSpecialElement(a.openElements.items[b],c))break}a.openElements.hasInButtonScope(zu.P)&&a._closePElement(),a._insertElement(b,zq.HTML);break;case zu.BR:case zu.IMG:case zu.WBR:case zu.AREA:case zu.EMBED:case zu.KEYGEN:g6(a,b);break;case zu.HR:a.openElements.hasInButtonScope(zu.P)&&a._closePElement(),a._appendElement(b,zq.HTML),a.framesetOk=!1,b.ackSelfClosing=!0;break;case zu.RB:case zu.RTC:a.openElements.hasInScope(zu.RUBY)&&a.openElements.generateImpliedEndTags(),a._insertElement(b,zq.HTML);break;case zu.RT:case zu.RP:a.openElements.hasInScope(zu.RUBY)&&a.openElements.generateImpliedEndTagsWithExclusion(zu.RTC),a._insertElement(b,zq.HTML);break;case zu.PRE:case zu.LISTING:a.openElements.hasInButtonScope(zu.P)&&a._closePElement(),a._insertElement(b,zq.HTML),a.skipNextNewLine=!0,a.framesetOk=!1;break;case zu.XMP:a.openElements.hasInButtonScope(zu.P)&&a._closePElement(),a._reconstructActiveFormattingElements(),a.framesetOk=!1,a._switchToTextParsing(b,gg.RAWTEXT);break;case zu.SVG:a._reconstructActiveFormattingElements(),gO(b),gP(b),b.selfClosing?a._appendElement(b,zq.SVG):a._insertElement(b,zq.SVG),b.ackSelfClosing=!0;break;case zu.HTML:0===a.openElements.tmplCount&&a.treeAdapter.adoptAttributes(a.openElements.items[0],b.attrs);break;case zu.BASE:case zu.LINK:case zu.META:case zu.STYLE:case zu.TITLE:case zu.SCRIPT:case zu.BGSOUND:case zu.BASEFONT:case zu.TEMPLATE:g$(a,b);break;case zu.BODY:let e;(e=a.openElements.tryPeekProperlyNestedBodyElement())&&0===a.openElements.tmplCount&&(a.framesetOk=!1,a.treeAdapter.adoptAttributes(e,b.attrs));break;case zu.FORM:let f;f=a.openElements.tmplCount>0,(!a.formElement||f)&&(a.openElements.hasInButtonScope(zu.P)&&a._closePElement(),a._insertElement(b,zq.HTML),f||(a.formElement=a.openElements.current));break;case zu.NOBR:a._reconstructActiveFormattingElements(),a.openElements.hasInScope(zu.NOBR)&&(gU(a,b),a._reconstructActiveFormattingElements()),a._insertElement(b,zq.HTML),a.activeFormattingElements.pushElement(a.openElements.current,b);break;case zu.MATH:a._reconstructActiveFormattingElements(),gN(b),gP(b),b.selfClosing?a._appendElement(b,zq.MATHML):a._insertElement(b,zq.MATHML),b.ackSelfClosing=!0;break;case zu.TABLE:a.treeAdapter.getDocumentMode(a.document)!==zs.QUIRKS&&a.openElements.hasInButtonScope(zu.P)&&a._closePElement(),a._insertElement(b,zq.HTML),a.framesetOk=!1,a.insertionMode=zx.IN_TABLE;break;case zu.INPUT:a._reconstructActiveFormattingElements(),a._appendElement(b,zq.HTML),g7(b)||(a.framesetOk=!1),b.ackSelfClosing=!0;break;case zu.PARAM:case zu.TRACK:case zu.SOURCE:a._appendElement(b,zq.HTML),b.ackSelfClosing=!0;break;case zu.IMAGE:b.tagName=zt.IMG,b.tagID=zu.IMG,g6(a,b);break;case zu.BUTTON:a.openElements.hasInScope(zu.BUTTON)&&(a.openElements.generateImpliedEndTags(),a.openElements.popUntilTagNamePopped(zu.BUTTON)),a._reconstructActiveFormattingElements(),a._insertElement(b,zq.HTML),a.framesetOk=!1;break;case zu.APPLET:case zu.OBJECT:case zu.MARQUEE:a._reconstructActiveFormattingElements(),a._insertElement(b,zq.HTML),a.activeFormattingElements.insertMarker(),a.framesetOk=!1;break;case zu.IFRAME:a.framesetOk=!1,a._switchToTextParsing(b,gg.RAWTEXT);break;case zu.SELECT:a._reconstructActiveFormattingElements(),a._insertElement(b,zq.HTML),a.framesetOk=!1,a.insertionMode=a.insertionMode===zx.IN_TABLE||a.insertionMode===zx.IN_CAPTION||a.insertionMode===zx.IN_TABLE_BODY||a.insertionMode===zx.IN_ROW||a.insertionMode===zx.IN_CELL?zx.IN_SELECT_IN_TABLE:zx.IN_SELECT;break;case zu.OPTION:case zu.OPTGROUP:a.openElements.currentTagId===zu.OPTION&&a.openElements.pop(),a._reconstructActiveFormattingElements(),a._insertElement(b,zq.HTML);break;case zu.NOEMBED:case zu.NOFRAMES:g8(a,b);break;case zu.FRAMESET:let g;g=a.openElements.tryPeekProperlyNestedBodyElement(),a.framesetOk&&g&&(a.treeAdapter.detachNode(g),a.openElements.popAllUpToHtmlElement(),a._insertElement(b,zq.HTML),a.insertionMode=zx.IN_FRAMESET);break;case zu.TEXTAREA:a._insertElement(b,zq.HTML),a.skipNextNewLine=!0,a.tokenizer.state=gg.RCDATA,a.originalInsertionMode=a.insertionMode,a.framesetOk=!1,a.insertionMode=zx.TEXT;break;case zu.NOSCRIPT:a.options.scriptingEnabled?g8(a,b):g9(a,b);break;case zu.PLAINTEXT:a.openElements.hasInButtonScope(zu.P)&&a._closePElement(),a._insertElement(b,zq.HTML),a.tokenizer.state=gg.PLAINTEXT;break;case zu.COL:case zu.TH:case zu.TD:case zu.TR:case zu.HEAD:case zu.FRAME:case zu.TBODY:case zu.TFOOT:case zu.THEAD:case zu.CAPTION:case zu.COLGROUP:break;default:g9(a,b)}}function hb(a,b){let c=b.tagName,d=b.tagID;for(let b=a.openElements.stackTop;b>0;b--){let e=a.openElements.items[b],f=a.openElements.tagIDs[b];if(d===f&&(d!==zu.UNKNOWN||a.treeAdapter.getTagName(e)===c)){a.openElements.generateImpliedEndTagsWithExclusion(d),a.openElements.stackTop>=b&&a.openElements.shortenToLength(b);break}if(a._isSpecialElement(e,f))break}}function hc(a,b){switch(b.tagID){case zu.A:case zu.B:case zu.I:case zu.S:case zu.U:case zu.EM:case zu.TT:case zu.BIG:case zu.CODE:case zu.FONT:case zu.NOBR:case zu.SMALL:case zu.STRIKE:case zu.STRONG:gU(a,b);break;case zu.P:a.openElements.hasInButtonScope(zu.P)||a._insertFakeElement(zt.P,zu.P),a._closePElement();break;case zu.DL:case zu.UL:case zu.OL:case zu.DIR:case zu.DIV:case zu.NAV:case zu.PRE:case zu.MAIN:case zu.MENU:case zu.ASIDE:case zu.BUTTON:case zu.CENTER:case zu.FIGURE:case zu.FOOTER:case zu.HEADER:case zu.HGROUP:case zu.DIALOG:case zu.ADDRESS:case zu.ARTICLE:case zu.DETAILS:case zu.SEARCH:case zu.SECTION:case zu.SUMMARY:case zu.LISTING:case zu.FIELDSET:case zu.BLOCKQUOTE:case zu.FIGCAPTION:let c;c=b.tagID,a.openElements.hasInScope(c)&&(a.openElements.generateImpliedEndTags(),a.openElements.popUntilTagNamePopped(c));break;case zu.LI:a.openElements.hasInListItemScope(zu.LI)&&(a.openElements.generateImpliedEndTagsWithExclusion(zu.LI),a.openElements.popUntilTagNamePopped(zu.LI));break;case zu.DD:case zu.DT:let d;d=b.tagID,a.openElements.hasInScope(d)&&(a.openElements.generateImpliedEndTagsWithExclusion(d),a.openElements.popUntilTagNamePopped(d));break;case zu.H1:case zu.H2:case zu.H3:case zu.H4:case zu.H5:case zu.H6:a.openElements.hasNumberedHeaderInScope()&&(a.openElements.generateImpliedEndTags(),a.openElements.popUntilNumberedHeaderPopped());break;case zu.BR:a._reconstructActiveFormattingElements(),a._insertFakeElement(zt.BR,zu.BR),a.openElements.pop(),a.framesetOk=!1;break;case zu.BODY:if(a.openElements.hasInScope(zu.BODY)&&(a.insertionMode=zx.AFTER_BODY,a.options.sourceCodeLocationInfo)){let c=a.openElements.tryPeekProperlyNestedBodyElement();c&&a._setEndLocation(c,b)}break;case zu.HTML:a.openElements.hasInScope(zu.BODY)&&(a.insertionMode=zx.AFTER_BODY,hv(a,b));break;case zu.FORM:!function(a){let b=a.openElements.tmplCount>0,{formElement:c}=a;b||(a.formElement=null),(c||b)&&a.openElements.hasInScope(zu.FORM)&&(a.openElements.generateImpliedEndTags(),b?a.openElements.popUntilTagNamePopped(zu.FORM):c&&a.openElements.remove(c))}(a);break;case zu.APPLET:case zu.OBJECT:case zu.MARQUEE:let e;e=b.tagID,a.openElements.hasInScope(e)&&(a.openElements.generateImpliedEndTags(),a.openElements.popUntilTagNamePopped(e),a.activeFormattingElements.clearToLastMarker());break;case zu.TEMPLATE:g_(a,b);break;default:hb(a,b)}}function hd(a,b){a.tmplInsertionModeStack.length>0?hu(a,b):gW(a,b)}function he(a,b){if(void 0!==a.openElements.currentTagId&&gR.has(a.openElements.currentTagId))switch(a.pendingCharacterTokens.length=0,a.hasNonWhitespacePendingCharacterToken=!1,a.originalInsertionMode=a.insertionMode,a.insertionMode=zx.IN_TABLE_TEXT,b.type){case zl.CHARACTER:hj(a,b);break;case zl.WHITESPACE_CHARACTER:hi(a,b)}else hh(a,b)}function hf(a,b){switch(b.tagID){case zu.TD:case zu.TH:case zu.TR:a.openElements.clearBackToTableContext(),a._insertFakeElement(zt.TBODY,zu.TBODY),a.insertionMode=zx.IN_TABLE_BODY,ho(a,b);break;case zu.STYLE:case zu.SCRIPT:case zu.TEMPLATE:g$(a,b);break;case zu.COL:a.openElements.clearBackToTableContext(),a._insertFakeElement(zt.COLGROUP,zu.COLGROUP),a.insertionMode=zx.IN_COLUMN_GROUP,hm(a,b);break;case zu.FORM:a.formElement||0!==a.openElements.tmplCount||(a._insertElement(b,zq.HTML),a.formElement=a.openElements.current,a.openElements.pop());break;case zu.TABLE:a.openElements.hasInTableScope(zu.TABLE)&&(a.openElements.popUntilTagNamePopped(zu.TABLE),a._resetInsertionMode(),a._processStartTag(b));break;case zu.TBODY:case zu.TFOOT:case zu.THEAD:a.openElements.clearBackToTableContext(),a._insertElement(b,zq.HTML),a.insertionMode=zx.IN_TABLE_BODY;break;case zu.INPUT:g7(b)?a._appendElement(b,zq.HTML):hh(a,b),b.ackSelfClosing=!0;break;case zu.CAPTION:a.openElements.clearBackToTableContext(),a.activeFormattingElements.insertMarker(),a._insertElement(b,zq.HTML),a.insertionMode=zx.IN_CAPTION;break;case zu.COLGROUP:a.openElements.clearBackToTableContext(),a._insertElement(b,zq.HTML),a.insertionMode=zx.IN_COLUMN_GROUP;break;default:hh(a,b)}}function hg(a,b){switch(b.tagID){case zu.TABLE:a.openElements.hasInTableScope(zu.TABLE)&&(a.openElements.popUntilTagNamePopped(zu.TABLE),a._resetInsertionMode());break;case zu.TEMPLATE:g_(a,b);break;case zu.BODY:case zu.CAPTION:case zu.COL:case zu.COLGROUP:case zu.HTML:case zu.TBODY:case zu.TD:case zu.TFOOT:case zu.TH:case zu.THEAD:case zu.TR:break;default:hh(a,b)}}function hh(a,b){let c=a.fosterParentingEnabled;a.fosterParentingEnabled=!0,g3(a,b),a.fosterParentingEnabled=c}function hi(a,b){a.pendingCharacterTokens.push(b)}function hj(a,b){a.pendingCharacterTokens.push(b),a.hasNonWhitespacePendingCharacterToken=!0}function hk(a,b){let c=0;if(a.hasNonWhitespacePendingCharacterToken)for(;c<a.pendingCharacterTokens.length;c++)hh(a,a.pendingCharacterTokens[c]);else for(;c<a.pendingCharacterTokens.length;c++)a._insertCharacters(a.pendingCharacterTokens[c]);a.insertionMode=a.originalInsertionMode,a._processToken(b)}let hl=new Set([zu.CAPTION,zu.COL,zu.COLGROUP,zu.TBODY,zu.TD,zu.TFOOT,zu.TH,zu.THEAD,zu.TR]);function hm(a,b){switch(b.tagID){case zu.HTML:ha(a,b);break;case zu.COL:a._appendElement(b,zq.HTML),b.ackSelfClosing=!0;break;case zu.TEMPLATE:g$(a,b);break;default:hn(a,b)}}function hn(a,b){a.openElements.currentTagId===zu.COLGROUP&&(a.openElements.pop(),a.insertionMode=zx.IN_TABLE,a._processToken(b))}function ho(a,b){switch(b.tagID){case zu.TR:a.openElements.clearBackToTableBodyContext(),a._insertElement(b,zq.HTML),a.insertionMode=zx.IN_ROW;break;case zu.TH:case zu.TD:a.openElements.clearBackToTableBodyContext(),a._insertFakeElement(zt.TR,zu.TR),a.insertionMode=zx.IN_ROW,hq(a,b);break;case zu.CAPTION:case zu.COL:case zu.COLGROUP:case zu.TBODY:case zu.TFOOT:case zu.THEAD:a.openElements.hasTableBodyContextInTableScope()&&(a.openElements.clearBackToTableBodyContext(),a.openElements.pop(),a.insertionMode=zx.IN_TABLE,hf(a,b));break;default:hf(a,b)}}function hp(a,b){let c=b.tagID;switch(b.tagID){case zu.TBODY:case zu.TFOOT:case zu.THEAD:a.openElements.hasInTableScope(c)&&(a.openElements.clearBackToTableBodyContext(),a.openElements.pop(),a.insertionMode=zx.IN_TABLE);break;case zu.TABLE:a.openElements.hasTableBodyContextInTableScope()&&(a.openElements.clearBackToTableBodyContext(),a.openElements.pop(),a.insertionMode=zx.IN_TABLE,hg(a,b));break;case zu.BODY:case zu.CAPTION:case zu.COL:case zu.COLGROUP:case zu.HTML:case zu.TD:case zu.TH:case zu.TR:break;default:hg(a,b)}}function hq(a,b){switch(b.tagID){case zu.TH:case zu.TD:a.openElements.clearBackToTableRowContext(),a._insertElement(b,zq.HTML),a.insertionMode=zx.IN_CELL,a.activeFormattingElements.insertMarker();break;case zu.CAPTION:case zu.COL:case zu.COLGROUP:case zu.TBODY:case zu.TFOOT:case zu.THEAD:case zu.TR:a.openElements.hasInTableScope(zu.TR)&&(a.openElements.clearBackToTableRowContext(),a.openElements.pop(),a.insertionMode=zx.IN_TABLE_BODY,ho(a,b));break;default:hf(a,b)}}function hr(a,b){switch(b.tagID){case zu.TR:a.openElements.hasInTableScope(zu.TR)&&(a.openElements.clearBackToTableRowContext(),a.openElements.pop(),a.insertionMode=zx.IN_TABLE_BODY);break;case zu.TABLE:a.openElements.hasInTableScope(zu.TR)&&(a.openElements.clearBackToTableRowContext(),a.openElements.pop(),a.insertionMode=zx.IN_TABLE_BODY,hp(a,b));break;case zu.TBODY:case zu.TFOOT:case zu.THEAD:(a.openElements.hasInTableScope(b.tagID)||a.openElements.hasInTableScope(zu.TR))&&(a.openElements.clearBackToTableRowContext(),a.openElements.pop(),a.insertionMode=zx.IN_TABLE_BODY,hp(a,b));break;case zu.BODY:case zu.CAPTION:case zu.COL:case zu.COLGROUP:case zu.HTML:case zu.TD:case zu.TH:break;default:hg(a,b)}}function hs(a,b){switch(b.tagID){case zu.HTML:ha(a,b);break;case zu.OPTION:a.openElements.currentTagId===zu.OPTION&&a.openElements.pop(),a._insertElement(b,zq.HTML);break;case zu.OPTGROUP:a.openElements.currentTagId===zu.OPTION&&a.openElements.pop(),a.openElements.currentTagId===zu.OPTGROUP&&a.openElements.pop(),a._insertElement(b,zq.HTML);break;case zu.HR:a.openElements.currentTagId===zu.OPTION&&a.openElements.pop(),a.openElements.currentTagId===zu.OPTGROUP&&a.openElements.pop(),a._appendElement(b,zq.HTML),b.ackSelfClosing=!0;break;case zu.INPUT:case zu.KEYGEN:case zu.TEXTAREA:case zu.SELECT:a.openElements.hasInSelectScope(zu.SELECT)&&(a.openElements.popUntilTagNamePopped(zu.SELECT),a._resetInsertionMode(),b.tagID!==zu.SELECT&&a._processStartTag(b));break;case zu.SCRIPT:case zu.TEMPLATE:g$(a,b)}}function ht(a,b){switch(b.tagID){case zu.OPTGROUP:a.openElements.stackTop>0&&a.openElements.currentTagId===zu.OPTION&&a.openElements.tagIDs[a.openElements.stackTop-1]===zu.OPTGROUP&&a.openElements.pop(),a.openElements.currentTagId===zu.OPTGROUP&&a.openElements.pop();break;case zu.OPTION:a.openElements.currentTagId===zu.OPTION&&a.openElements.pop();break;case zu.SELECT:a.openElements.hasInSelectScope(zu.SELECT)&&(a.openElements.popUntilTagNamePopped(zu.SELECT),a._resetInsertionMode());break;case zu.TEMPLATE:g_(a,b)}}function hu(a,b){a.openElements.tmplCount>0?(a.openElements.popUntilTagNamePopped(zu.TEMPLATE),a.activeFormattingElements.clearToLastMarker(),a.tmplInsertionModeStack.shift(),a._resetInsertionMode(),a.onEof(b)):gW(a,b)}function hv(a,b){var c;if(b.tagID===zu.HTML){if(a.fragmentContext||(a.insertionMode=zx.AFTER_AFTER_BODY),a.options.sourceCodeLocationInfo&&a.openElements.tagIDs[0]===zu.HTML){a._setEndLocation(a.openElements.items[0],b);let d=a.openElements.items[1];!d||(null==(c=a.treeAdapter.getNodeSourceCodeLocation(d))?void 0:c.endTag)||a._setEndLocation(d,b)}}else hw(a,b)}function hw(a,b){a.insertionMode=zx.IN_BODY,g3(a,b)}function hx(a,b){a.insertionMode=zx.IN_BODY,g3(a,b)}function hy(a){for(;a.treeAdapter.getNamespaceURI(a.openElements.current)!==zq.HTML&&void 0!==a.openElements.currentTagId&&!a._isIntegrationPoint(a.openElements.currentTagId,a.openElements.current);)a.openElements.pop()}function hz(a,b){return gT.parse(a,b)}function hA(a,b,c){"string"==typeof a&&(c=b,b=a,a=null);let d=gT.getFragmentParser(a,c);return d.tokenizer.write(b,!0),d.getFragment()}String.prototype.codePointAt,zt.AREA,zt.BASE,zt.BASEFONT,zt.BGSOUND,zt.BR,zt.COL,zt.EMBED,zt.FRAME,zt.HR,zt.IMG,zt.INPUT,zt.KEYGEN,zt.LINK,zt.META,zt.PARAM,zt.SOURCE,zt.TRACK,zt.WBR;let hB={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `--\x3e` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:"Unexpected too big numeric character reference",description:"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},closingOfElementWithOpenChildElements:{reason:"Unexpected closing tag with open child elements",description:"Unexpectedly closing tag. Expected other tags to be closed first",url:!1},controlCharacterInInputStream:{reason:"Unexpected control character",description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:"Unexpected control character reference",description:"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:"Unexpected duplicate attribute",description:"Unexpectedly double attribute. Expected attributes to occur only once"},endTagWithAttributes:{reason:"Unexpected attribute on closing tag",description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:"Unexpected slash at end of closing tag",description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:"Unexpected unopened end tag",description:"Unexpected end tag. Expected no end tag or another end tag",url:!1},eofBeforeTagName:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected tag name instead"},eofInCdata:{reason:"Unexpected end of file in CDATA",description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:"Unexpected end of file in comment",description:"Unexpected end of file. Expected `--\x3e` to close the comment"},eofInDoctype:{reason:"Unexpected end of file in doctype",description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:"Unexpected end of file in element that can only contain text",description:"Unexpected end of file. Expected text or a closing tag",url:!1},eofInScriptHtmlCommentLikeText:{reason:"Unexpected end of file in comment inside script",description:"Unexpected end of file. Expected `--\x3e` to close the comment"},eofInTag:{reason:"Unexpected end of file in tag",description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:"Incorrectly closed comment",description:"Unexpected `%c-1`. Expected `--\x3e` to close the comment"},incorrectlyOpenedComment:{reason:"Incorrectly opened comment",description:"Unexpected `%c`. Expected `\x3c!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:"Invalid sequence after doctype name",description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:"Invalid first character in tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:"Misplaced doctype",description:"Unexpected doctype. Expected doctype before head",url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:"Missing attribute value",description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:"Missing doctype before other content",description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:"Missing doctype name",description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:"Missing public identifier in doctype",description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:"Missing system identifier in doctype",description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:"Missing name in end tag",description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:"Missing quote before public identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:"Missing quote before system identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:"Missing semicolon after character reference",description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:"Missing whitespace after public identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:"Missing whitespace after system identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:"Missing whitespace before doctype name",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:"Missing whitespace between attributes",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:"Missing whitespace between public and system identifiers in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:"Unexpected nested comment",description:"Unexpected `\x3c!--`. Expected `--\x3e`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:"Unexpected non-conforming doctype declaration",description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:"Unexpected trailing slash on start tag of non-void element",description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:"Unexpected noncharacter code point referenced by character reference",description:"Unexpected code point. Do not use noncharacters in HTML"},noncharacterInInputStream:{reason:"Unexpected noncharacter character",description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:"Unexpected NULL character referenced by character reference",description:"Unexpected code point. Do not use NULL characters in HTML"},openElementsLeftAfterEof:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected closing tag instead",url:!1},surrogateCharacterReference:{reason:"Unexpected surrogate character referenced by character reference",description:"Unexpected code point. Do not use lone surrogate characters in HTML"},surrogateInInputStream:{reason:"Unexpected surrogate character",description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:"Invalid character after system identifier in doctype",description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:"Unexpected character in attribute name",description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:"Unexpected character in unquoted attribute value",description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:"Unexpected equals sign before attribute name",description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:"Unexpected NULL character",description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:"Unexpected question mark instead of tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:"Unexpected slash in tag",description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:"Unexpected unknown named character reference",description:"Unexpected character reference. Expected known named character references"}},hC=/-[a-z]/g,hD=/%c(?:([-+])(\d+))?/g,hE=/%x/g,hF={2:!0,1:!1,0:null},hG={};function hH(a){return a.charAt(1).toUpperCase()}let hI=function(a,b,c){let d=e_(c);if(!a||!a.type||!a.children)throw Error("Expected parent node");if("number"==typeof b){if(b<0||b===1/0)throw Error("Expected positive finite number as index")}else if((b=a.children.indexOf(b))<0)throw Error("Expected child node or index");for(;++b<a.children.length;)if(d(a.children[b],b,a))return a.children[b]},hJ=function(a){if(null==a)return hL;if("string"==typeof a){var b;return b=a,hK(function(a){return a.tagName===b})}if("object"==typeof a){var c=a;let b=[],d=-1;for(;++d<c.length;)b[d]=hJ(c[d]);return hK(function(...a){let c=-1;for(;++c<b.length;)if(b[c].apply(this,a))return!0;return!1})}if("function"==typeof a)return hK(a);throw Error("Expected function, string, or array as `test`")};function hK(a){return function(b,c,d){var e;return!!(null!==(e=b)&&"object"==typeof e&&"type"in e&&"tagName"in e&&a.call(this,b,"number"==typeof c?c:void 0,d||void 0))}}function hL(a){return!!(a&&"object"==typeof a&&"type"in a&&"element"===a.type&&"tagName"in a&&"string"==typeof a.tagName)}let hM=/\n/g,hN=/[\t ]+/g,hO=hJ("br"),hP=hJ(function(a){return"td"===a.tagName||"th"===a.tagName}),hQ=hJ("p"),hR=hJ("tr"),hS=hJ(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(a){return!!(a.properties||{}).hidden},function(a){return"dialog"===a.tagName&&!(a.properties||{}).open}]),hT=hJ(["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 hU(a,b){let c,d=String(a.value),e=[],f=[],g=0;for(;g<=d.length;){hM.lastIndex=g;let a=hM.exec(d),c=a&&"index"in a?a.index:d.length;e.push(function(a,b,c){let d,e=[],f=0;for(;f<a.length;){hN.lastIndex=f;let c=hN.exec(a);d=c?c.index:a.length,f||d||!c||b||e.push(""),f!==d&&e.push(a.slice(f,d)),f=c?d+c[0].length:d}return f===d||c||e.push(""),e.join(" ")}(d.slice(g,c).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==g||b.breakBefore,c!==d.length||b.breakAfter)),g=c+1}let h=-1;for(;++h<e.length;)8203===e[h].charCodeAt(e[h].length-1)||h<e.length-1&&8203===e[h+1].charCodeAt(0)?(f.push(e[h]),c=void 0):e[h]?("number"==typeof c&&f.push(c),f.push(e[h]),c=0):(0===h||h===e.length-1)&&f.push(0);return f}function hV(a,b){if("element"===a.type){let c=a.properties||{};switch(a.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return c.wrap?"pre-wrap":"pre";case"td":case"th":return c.noWrap?"nowrap":b.whitespace;case"textarea":return"pre-wrap"}}return b.whitespace}var hW=c(86980);let hX={},hY=[];function hZ(a){let b=a||hX;return function(a,c){e4(a,"element",function(a,d){let e,f=Array.isArray(a.properties.className)?a.properties.className:hY,g=f.includes("language-math"),h=f.includes("math-display"),i=f.includes("math-inline"),j=h;if(!g&&!h&&!i)return;let k=d[d.length-1],l=a;if("code"===a.tagName&&g&&k&&"element"===k.type&&"pre"===k.tagName&&(l=k,k=d[d.length-2],j=!0),!k)return;let m=function(a,b){let c,d="children"in a?a.children:[],e=hT(a),f=hV(a,{whitespace:(b||{}).whitespace||"normal",breakBefore:!1,breakAfter:!1}),g=[];("text"===a.type||"comment"===a.type)&&g.push(...hU(a,{whitespace:f,breakBefore:!0,breakAfter:!0}));let h=-1;for(;++h<d.length;)g.push(...function a(b,c,d){return"element"===b.type?function(b,c,d){let e,f,g=hV(b,d),h=b.children||[],i=-1,j=[];if(hS(b))return j;for(hO(b)||hR(b)&&hI(c,b,hR)?f="\n":hQ(b)?(e=2,f=2):hT(b)&&(e=1,f=1);++i<h.length;)j=j.concat(a(h[i],b,{whitespace:g,breakBefore:i?void 0:e,breakAfter:i<h.length-1?hO(h[i+1]):f}));return hP(b)&&hI(c,b,hP)&&j.push(" "),e&&j.unshift(e),f&&j.push(f),j}(b,c,d):"text"===b.type?"normal"===d.whitespace?hU(b,d):[String(b.value)]:[]}(d[h],a,{whitespace:f,breakBefore:h?void 0:e,breakAfter:h<d.length-1?hO(d[h+1]):e}));let i=[];for(h=-1;++h<g.length;){let a=g[h];"number"==typeof a?void 0!==c&&a>c&&(c=a):a&&(void 0!==c&&c>-1&&i.push("\n".repeat(c)||" "),c=-1,i.push(a))}return i.join("")}(l,{whitespace:"pre"});try{e=hW.default.renderToString(m,{...b,displayMode:j,throwOnError:!0})}catch(g){let f=g.name.toLowerCase();c.message("Could not render math with KaTeX",{ancestors:[...d,a],cause:g,place:a.position,ruleId:f,source:"rehype-katex"});try{e=hW.default.renderToString(m,{...b,displayMode:j,strict:"ignore",throwOnError:!1})}catch{e=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(b.errorColor||"#cc0000"),title:String(g)},children:[{type:"text",value:m}]}]}}"string"==typeof e&&(e=function(a,b){let c,d,e,f,g,h=(d=(c=b||hG).onerror,e=a instanceof fr?a:new fr(a),f=c.fragment?hA:hz,fU(f(g=String(e),{sourceCodeLocationInfo:!0,onParseError:c.onerror?function(a){let b=a.code,f=b.replace(hC,hH),h=c[f],i=null==h||h,j="number"==typeof i?i:+!!i;if(j){let c=hB[f],g=new c9(k(c.reason),{place:{start:{line:a.startLine,column:a.startCol,offset:a.startOffset},end:{line:a.endLine,column:a.endCol,offset:a.endOffset}},ruleId:b,source:"hast-util-from-html"});e.path&&(g.file=e.path,g.name=e.path+":"+g.name),g.fatal=hF[j],g.note=k(c.description),g.url=!1===c.url?void 0:"https://html.spec.whatwg.org/multipage/parsing.html#parse-error-"+b,d(g)}function k(b){return b.replace(hD,function(b,c,d){var e;let f=(d?Number.parseInt(d,10):0)*("-"===c?-1:1);return"`"===(e=g.charAt(a.startOffset+f))?"` ` `":e}).replace(hE,function(){return"0x"+g.charCodeAt(a.startOffset).toString(16).toUpperCase()})}}:null,scriptingEnabled:!1}),{file:e,space:c.space,verbose:c.verbose}));return e5(h,function(a){delete a.position}),delete h.data,h}(e,{fragment:!0}).children);let n=k.children.indexOf(l);return k.children.splice(n,1,...e),e3})}}let h$={}.hasOwnProperty;function h_(a,b){let c=b||{};function d(b,...c){let e=d.invalid,f=d.handlers;if(b&&h$.call(b,a)){let c=String(b[a]);e=h$.call(f,c)?f[c]:d.unknown}if(e)return e.call(this,b,...c)}return d.handlers=c.handlers||{},d.invalid=c.invalid,d.unknown=c.unknown,d}let h0={}.hasOwnProperty,h1=h_("type",{handlers:{root:function(a,b){let c={nodeName:"#document",mode:(a.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return c.childNodes=h2(a.children,c,b),h3(a,c),c},element:function(a,b){var c,d;let e,f,g=b;"element"===a.type&&"svg"===a.tagName.toLowerCase()&&"html"===b.space&&(g=cS);let h=[];if(a.properties){for(e in a.properties)if("children"!==e&&h0.call(a.properties,e)){let b=function(a,b,c){let d=cW(a,b);if(!1===c||null==c||"number"==typeof c&&Number.isNaN(c)||!c&&d.boolean)return;Array.isArray(c)&&(c=d.commaSeparated?cm(c):c_(c));let e={name:d.attribute,value:!0===c?"":String(c)};if(d.space&&"html"!==d.space&&"svg"!==d.space){let a=e.name.indexOf(":");a<0?e.prefix="":(e.name=e.name.slice(a+1),e.prefix=d.attribute.slice(0,a)),e.namespace=fR[d.space]}return e}(g,e,a.properties[e]);b&&h.push(b)}}let i=g.space,j={nodeName:a.tagName,tagName:a.tagName,attrs:h,namespaceURI:fR[i],childNodes:[],parentNode:null};return j.childNodes=h2(a.children,j,g),h3(a,j),"template"===a.tagName&&a.content&&(c=a.content,d=g,(f={nodeName:"#document-fragment",childNodes:[]}).childNodes=h2(c.children,f,d),h3(c,f),j.content=f),j},text:function(a){let b={nodeName:"#text",value:a.value,parentNode:null};return h3(a,b),b},comment:function(a){let b={nodeName:"#comment",data:a.value,parentNode:null};return h3(a,b),b},doctype:function(a){let b={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return h3(a,b),b}}});function h2(a,b,c){let d=-1,e=[];if(a)for(;++d<a.length;){let f=h1(a[d],c);f.parentNode=b,e.push(f)}return e}function h3(a,b){let c=a.position;c&&c.start&&c.end&&(c.start.offset,c.end.offset,b.sourceCodeLocation={startLine:c.start.line,startCol:c.start.column,startOffset:c.start.offset,endLine:c.end.line,endCol:c.end.column,endOffset:c.end.offset})}let h4=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],h5=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]);(y4=zy||(zy={}))[y4.EOF=-1]="EOF",y4[y4.NULL=0]="NULL",y4[y4.TABULATION=9]="TABULATION",y4[y4.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",y4[y4.LINE_FEED=10]="LINE_FEED",y4[y4.FORM_FEED=12]="FORM_FEED",y4[y4.SPACE=32]="SPACE",y4[y4.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",y4[y4.QUOTATION_MARK=34]="QUOTATION_MARK",y4[y4.AMPERSAND=38]="AMPERSAND",y4[y4.APOSTROPHE=39]="APOSTROPHE",y4[y4.HYPHEN_MINUS=45]="HYPHEN_MINUS",y4[y4.SOLIDUS=47]="SOLIDUS",y4[y4.DIGIT_0=48]="DIGIT_0",y4[y4.DIGIT_9=57]="DIGIT_9",y4[y4.SEMICOLON=59]="SEMICOLON",y4[y4.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",y4[y4.EQUALS_SIGN=61]="EQUALS_SIGN",y4[y4.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",y4[y4.QUESTION_MARK=63]="QUESTION_MARK",y4[y4.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",y4[y4.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",y4[y4.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",y4[y4.GRAVE_ACCENT=96]="GRAVE_ACCENT",y4[y4.LATIN_SMALL_A=97]="LATIN_SMALL_A",y4[y4.LATIN_SMALL_Z=122]="LATIN_SMALL_Z";let h6="[CDATA[",h7="doctype",h8="script";function h9(a){return a>=55296&&a<=57343}function ia(a){return 32!==a&&10!==a&&13!==a&&9!==a&&12!==a&&a>=1&&a<=31||a>=127&&a<=159}function ib(a){return a>=64976&&a<=65007||h5.has(a)}(y5=zz||(zz={})).controlCharacterInInputStream="control-character-in-input-stream",y5.noncharacterInInputStream="noncharacter-in-input-stream",y5.surrogateInInputStream="surrogate-in-input-stream",y5.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",y5.endTagWithAttributes="end-tag-with-attributes",y5.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",y5.unexpectedSolidusInTag="unexpected-solidus-in-tag",y5.unexpectedNullCharacter="unexpected-null-character",y5.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",y5.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",y5.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",y5.missingEndTagName="missing-end-tag-name",y5.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",y5.unknownNamedCharacterReference="unknown-named-character-reference",y5.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",y5.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",y5.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",y5.eofBeforeTagName="eof-before-tag-name",y5.eofInTag="eof-in-tag",y5.missingAttributeValue="missing-attribute-value",y5.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",y5.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",y5.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",y5.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",y5.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",y5.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",y5.missingDoctypePublicIdentifier="missing-doctype-public-identifier",y5.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",y5.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",y5.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",y5.cdataInHtmlContent="cdata-in-html-content",y5.incorrectlyOpenedComment="incorrectly-opened-comment",y5.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",y5.eofInDoctype="eof-in-doctype",y5.nestedComment="nested-comment",y5.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",y5.eofInComment="eof-in-comment",y5.incorrectlyClosedComment="incorrectly-closed-comment",y5.eofInCdata="eof-in-cdata",y5.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",y5.nullCharacterReference="null-character-reference",y5.surrogateCharacterReference="surrogate-character-reference",y5.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",y5.controlCharacterReference="control-character-reference",y5.noncharacterCharacterReference="noncharacter-character-reference",y5.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",y5.missingDoctypeName="missing-doctype-name",y5.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",y5.duplicateAttribute="duplicate-attribute",y5.nonConformingDoctype="non-conforming-doctype",y5.missingDoctype="missing-doctype",y5.misplacedDoctype="misplaced-doctype",y5.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",y5.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",y5.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",y5.openElementsLeftAfterEof="open-elements-left-after-eof",y5.abandonedHeadElementChild="abandoned-head-element-child",y5.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",y5.nestedNoscriptInHead="nested-noscript-in-head",y5.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text";class ic{constructor(a){this.handler=a,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(a,b){let{line:c,col:d,offset:e}=this,f=d+b,g=e+b;return{code:a,startLine:c,endLine:c,startCol:f,endCol:f,startOffset:g,endOffset:g}}_err(a){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(a,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(a){if(this.pos!==this.html.length-1){let b=this.html.charCodeAt(this.pos+1);if(b>=56320&&b<=57343)return this.pos++,this._addGap(),(a-55296)*1024+9216+b}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,zy.EOF;return this._err(zz.surrogateInInputStream),a}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(a,b){this.html.length>0?this.html+=a:this.html=a,this.endOfChunkHit=!1,this.lastChunkWritten=b}insertHtmlAtCurrentPos(a){this.html=this.html.substring(0,this.pos+1)+a+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(a,b){if(this.pos+a.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(b)return this.html.startsWith(a,this.pos);for(let b=0;b<a.length;b++)if((32|this.html.charCodeAt(this.pos+b))!==a.charCodeAt(b))return!1;return!0}peek(a){let b=this.pos+a;if(b>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,zy.EOF;let c=this.html.charCodeAt(b);return c===zy.CARRIAGE_RETURN?zy.LINE_FEED:c}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,zy.EOF;let a=this.html.charCodeAt(this.pos);return a===zy.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,zy.LINE_FEED):a===zy.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,h9(a)&&(a=this._processSurrogate(a)),null===this.handler.onParseError||a>31&&a<127||a===zy.LINE_FEED||a===zy.CARRIAGE_RETURN||a>159&&a<64976||this._checkForProblematicCharacters(a),a)}_checkForProblematicCharacters(a){ia(a)?this._err(zz.controlCharacterInInputStream):ib(a)&&this._err(zz.noncharacterInInputStream)}retreat(a){for(this.pos-=a;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}function id(a,b){for(let c=a.attrs.length-1;c>=0;c--)if(a.attrs[c].name===b)return a.attrs[c].value;return null}(y6=zA||(zA={}))[y6.CHARACTER=0]="CHARACTER",y6[y6.NULL_CHARACTER=1]="NULL_CHARACTER",y6[y6.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",y6[y6.START_TAG=3]="START_TAG",y6[y6.END_TAG=4]="END_TAG",y6[y6.COMMENT=5]="COMMENT",y6[y6.DOCTYPE=6]="DOCTYPE",y6[y6.EOF=7]="EOF",y6[y6.HIBERNATION=8]="HIBERNATION",(y7=zB||(zB={})).HTML="http://www.w3.org/1999/xhtml",y7.MATHML="http://www.w3.org/1998/Math/MathML",y7.SVG="http://www.w3.org/2000/svg",y7.XLINK="http://www.w3.org/1999/xlink",y7.XML="http://www.w3.org/XML/1998/namespace",y7.XMLNS="http://www.w3.org/2000/xmlns/",(y8=zC||(zC={})).TYPE="type",y8.ACTION="action",y8.ENCODING="encoding",y8.PROMPT="prompt",y8.NAME="name",y8.COLOR="color",y8.FACE="face",y8.SIZE="size",(y9=zD||(zD={})).NO_QUIRKS="no-quirks",y9.QUIRKS="quirks",y9.LIMITED_QUIRKS="limited-quirks",(za=zE||(zE={})).A="a",za.ADDRESS="address",za.ANNOTATION_XML="annotation-xml",za.APPLET="applet",za.AREA="area",za.ARTICLE="article",za.ASIDE="aside",za.B="b",za.BASE="base",za.BASEFONT="basefont",za.BGSOUND="bgsound",za.BIG="big",za.BLOCKQUOTE="blockquote",za.BODY="body",za.BR="br",za.BUTTON="button",za.CAPTION="caption",za.CENTER="center",za.CODE="code",za.COL="col",za.COLGROUP="colgroup",za.DD="dd",za.DESC="desc",za.DETAILS="details",za.DIALOG="dialog",za.DIR="dir",za.DIV="div",za.DL="dl",za.DT="dt",za.EM="em",za.EMBED="embed",za.FIELDSET="fieldset",za.FIGCAPTION="figcaption",za.FIGURE="figure",za.FONT="font",za.FOOTER="footer",za.FOREIGN_OBJECT="foreignObject",za.FORM="form",za.FRAME="frame",za.FRAMESET="frameset",za.H1="h1",za.H2="h2",za.H3="h3",za.H4="h4",za.H5="h5",za.H6="h6",za.HEAD="head",za.HEADER="header",za.HGROUP="hgroup",za.HR="hr",za.HTML="html",za.I="i",za.IMG="img",za.IMAGE="image",za.INPUT="input",za.IFRAME="iframe",za.KEYGEN="keygen",za.LABEL="label",za.LI="li",za.LINK="link",za.LISTING="listing",za.MAIN="main",za.MALIGNMARK="malignmark",za.MARQUEE="marquee",za.MATH="math",za.MENU="menu",za.META="meta",za.MGLYPH="mglyph",za.MI="mi",za.MO="mo",za.MN="mn",za.MS="ms",za.MTEXT="mtext",za.NAV="nav",za.NOBR="nobr",za.NOFRAMES="noframes",za.NOEMBED="noembed",za.NOSCRIPT="noscript",za.OBJECT="object",za.OL="ol",za.OPTGROUP="optgroup",za.OPTION="option",za.P="p",za.PARAM="param",za.PLAINTEXT="plaintext",za.PRE="pre",za.RB="rb",za.RP="rp",za.RT="rt",za.RTC="rtc",za.RUBY="ruby",za.S="s",za.SCRIPT="script",za.SEARCH="search",za.SECTION="section",za.SELECT="select",za.SOURCE="source",za.SMALL="small",za.SPAN="span",za.STRIKE="strike",za.STRONG="strong",za.STYLE="style",za.SUB="sub",za.SUMMARY="summary",za.SUP="sup",za.TABLE="table",za.TBODY="tbody",za.TEMPLATE="template",za.TEXTAREA="textarea",za.TFOOT="tfoot",za.TD="td",za.TH="th",za.THEAD="thead",za.TITLE="title",za.TR="tr",za.TRACK="track",za.TT="tt",za.U="u",za.UL="ul",za.SVG="svg",za.VAR="var",za.WBR="wbr",za.XMP="xmp",(zb=zF||(zF={}))[zb.UNKNOWN=0]="UNKNOWN",zb[zb.A=1]="A",zb[zb.ADDRESS=2]="ADDRESS",zb[zb.ANNOTATION_XML=3]="ANNOTATION_XML",zb[zb.APPLET=4]="APPLET",zb[zb.AREA=5]="AREA",zb[zb.ARTICLE=6]="ARTICLE",zb[zb.ASIDE=7]="ASIDE",zb[zb.B=8]="B",zb[zb.BASE=9]="BASE",zb[zb.BASEFONT=10]="BASEFONT",zb[zb.BGSOUND=11]="BGSOUND",zb[zb.BIG=12]="BIG",zb[zb.BLOCKQUOTE=13]="BLOCKQUOTE",zb[zb.BODY=14]="BODY",zb[zb.BR=15]="BR",zb[zb.BUTTON=16]="BUTTON",zb[zb.CAPTION=17]="CAPTION",zb[zb.CENTER=18]="CENTER",zb[zb.CODE=19]="CODE",zb[zb.COL=20]="COL",zb[zb.COLGROUP=21]="COLGROUP",zb[zb.DD=22]="DD",zb[zb.DESC=23]="DESC",zb[zb.DETAILS=24]="DETAILS",zb[zb.DIALOG=25]="DIALOG",zb[zb.DIR=26]="DIR",zb[zb.DIV=27]="DIV",zb[zb.DL=28]="DL",zb[zb.DT=29]="DT",zb[zb.EM=30]="EM",zb[zb.EMBED=31]="EMBED",zb[zb.FIELDSET=32]="FIELDSET",zb[zb.FIGCAPTION=33]="FIGCAPTION",zb[zb.FIGURE=34]="FIGURE",zb[zb.FONT=35]="FONT",zb[zb.FOOTER=36]="FOOTER",zb[zb.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",zb[zb.FORM=38]="FORM",zb[zb.FRAME=39]="FRAME",zb[zb.FRAMESET=40]="FRAMESET",zb[zb.H1=41]="H1",zb[zb.H2=42]="H2",zb[zb.H3=43]="H3",zb[zb.H4=44]="H4",zb[zb.H5=45]="H5",zb[zb.H6=46]="H6",zb[zb.HEAD=47]="HEAD",zb[zb.HEADER=48]="HEADER",zb[zb.HGROUP=49]="HGROUP",zb[zb.HR=50]="HR",zb[zb.HTML=51]="HTML",zb[zb.I=52]="I",zb[zb.IMG=53]="IMG",zb[zb.IMAGE=54]="IMAGE",zb[zb.INPUT=55]="INPUT",zb[zb.IFRAME=56]="IFRAME",zb[zb.KEYGEN=57]="KEYGEN",zb[zb.LABEL=58]="LABEL",zb[zb.LI=59]="LI",zb[zb.LINK=60]="LINK",zb[zb.LISTING=61]="LISTING",zb[zb.MAIN=62]="MAIN",zb[zb.MALIGNMARK=63]="MALIGNMARK",zb[zb.MARQUEE=64]="MARQUEE",zb[zb.MATH=65]="MATH",zb[zb.MENU=66]="MENU",zb[zb.META=67]="META",zb[zb.MGLYPH=68]="MGLYPH",zb[zb.MI=69]="MI",zb[zb.MO=70]="MO",zb[zb.MN=71]="MN",zb[zb.MS=72]="MS",zb[zb.MTEXT=73]="MTEXT",zb[zb.NAV=74]="NAV",zb[zb.NOBR=75]="NOBR",zb[zb.NOFRAMES=76]="NOFRAMES",zb[zb.NOEMBED=77]="NOEMBED",zb[zb.NOSCRIPT=78]="NOSCRIPT",zb[zb.OBJECT=79]="OBJECT",zb[zb.OL=80]="OL",zb[zb.OPTGROUP=81]="OPTGROUP",zb[zb.OPTION=82]="OPTION",zb[zb.P=83]="P",zb[zb.PARAM=84]="PARAM",zb[zb.PLAINTEXT=85]="PLAINTEXT",zb[zb.PRE=86]="PRE",zb[zb.RB=87]="RB",zb[zb.RP=88]="RP",zb[zb.RT=89]="RT",zb[zb.RTC=90]="RTC",zb[zb.RUBY=91]="RUBY",zb[zb.S=92]="S",zb[zb.SCRIPT=93]="SCRIPT",zb[zb.SEARCH=94]="SEARCH",zb[zb.SECTION=95]="SECTION",zb[zb.SELECT=96]="SELECT",zb[zb.SOURCE=97]="SOURCE",zb[zb.SMALL=98]="SMALL",zb[zb.SPAN=99]="SPAN",zb[zb.STRIKE=100]="STRIKE",zb[zb.STRONG=101]="STRONG",zb[zb.STYLE=102]="STYLE",zb[zb.SUB=103]="SUB",zb[zb.SUMMARY=104]="SUMMARY",zb[zb.SUP=105]="SUP",zb[zb.TABLE=106]="TABLE",zb[zb.TBODY=107]="TBODY",zb[zb.TEMPLATE=108]="TEMPLATE",zb[zb.TEXTAREA=109]="TEXTAREA",zb[zb.TFOOT=110]="TFOOT",zb[zb.TD=111]="TD",zb[zb.TH=112]="TH",zb[zb.THEAD=113]="THEAD",zb[zb.TITLE=114]="TITLE",zb[zb.TR=115]="TR",zb[zb.TRACK=116]="TRACK",zb[zb.TT=117]="TT",zb[zb.U=118]="U",zb[zb.UL=119]="UL",zb[zb.SVG=120]="SVG",zb[zb.VAR=121]="VAR",zb[zb.WBR=122]="WBR",zb[zb.XMP=123]="XMP";let ie=new Map([[zE.A,zF.A],[zE.ADDRESS,zF.ADDRESS],[zE.ANNOTATION_XML,zF.ANNOTATION_XML],[zE.APPLET,zF.APPLET],[zE.AREA,zF.AREA],[zE.ARTICLE,zF.ARTICLE],[zE.ASIDE,zF.ASIDE],[zE.B,zF.B],[zE.BASE,zF.BASE],[zE.BASEFONT,zF.BASEFONT],[zE.BGSOUND,zF.BGSOUND],[zE.BIG,zF.BIG],[zE.BLOCKQUOTE,zF.BLOCKQUOTE],[zE.BODY,zF.BODY],[zE.BR,zF.BR],[zE.BUTTON,zF.BUTTON],[zE.CAPTION,zF.CAPTION],[zE.CENTER,zF.CENTER],[zE.CODE,zF.CODE],[zE.COL,zF.COL],[zE.COLGROUP,zF.COLGROUP],[zE.DD,zF.DD],[zE.DESC,zF.DESC],[zE.DETAILS,zF.DETAILS],[zE.DIALOG,zF.DIALOG],[zE.DIR,zF.DIR],[zE.DIV,zF.DIV],[zE.DL,zF.DL],[zE.DT,zF.DT],[zE.EM,zF.EM],[zE.EMBED,zF.EMBED],[zE.FIELDSET,zF.FIELDSET],[zE.FIGCAPTION,zF.FIGCAPTION],[zE.FIGURE,zF.FIGURE],[zE.FONT,zF.FONT],[zE.FOOTER,zF.FOOTER],[zE.FOREIGN_OBJECT,zF.FOREIGN_OBJECT],[zE.FORM,zF.FORM],[zE.FRAME,zF.FRAME],[zE.FRAMESET,zF.FRAMESET],[zE.H1,zF.H1],[zE.H2,zF.H2],[zE.H3,zF.H3],[zE.H4,zF.H4],[zE.H5,zF.H5],[zE.H6,zF.H6],[zE.HEAD,zF.HEAD],[zE.HEADER,zF.HEADER],[zE.HGROUP,zF.HGROUP],[zE.HR,zF.HR],[zE.HTML,zF.HTML],[zE.I,zF.I],[zE.IMG,zF.IMG],[zE.IMAGE,zF.IMAGE],[zE.INPUT,zF.INPUT],[zE.IFRAME,zF.IFRAME],[zE.KEYGEN,zF.KEYGEN],[zE.LABEL,zF.LABEL],[zE.LI,zF.LI],[zE.LINK,zF.LINK],[zE.LISTING,zF.LISTING],[zE.MAIN,zF.MAIN],[zE.MALIGNMARK,zF.MALIGNMARK],[zE.MARQUEE,zF.MARQUEE],[zE.MATH,zF.MATH],[zE.MENU,zF.MENU],[zE.META,zF.META],[zE.MGLYPH,zF.MGLYPH],[zE.MI,zF.MI],[zE.MO,zF.MO],[zE.MN,zF.MN],[zE.MS,zF.MS],[zE.MTEXT,zF.MTEXT],[zE.NAV,zF.NAV],[zE.NOBR,zF.NOBR],[zE.NOFRAMES,zF.NOFRAMES],[zE.NOEMBED,zF.NOEMBED],[zE.NOSCRIPT,zF.NOSCRIPT],[zE.OBJECT,zF.OBJECT],[zE.OL,zF.OL],[zE.OPTGROUP,zF.OPTGROUP],[zE.OPTION,zF.OPTION],[zE.P,zF.P],[zE.PARAM,zF.PARAM],[zE.PLAINTEXT,zF.PLAINTEXT],[zE.PRE,zF.PRE],[zE.RB,zF.RB],[zE.RP,zF.RP],[zE.RT,zF.RT],[zE.RTC,zF.RTC],[zE.RUBY,zF.RUBY],[zE.S,zF.S],[zE.SCRIPT,zF.SCRIPT],[zE.SEARCH,zF.SEARCH],[zE.SECTION,zF.SECTION],[zE.SELECT,zF.SELECT],[zE.SOURCE,zF.SOURCE],[zE.SMALL,zF.SMALL],[zE.SPAN,zF.SPAN],[zE.STRIKE,zF.STRIKE],[zE.STRONG,zF.STRONG],[zE.STYLE,zF.STYLE],[zE.SUB,zF.SUB],[zE.SUMMARY,zF.SUMMARY],[zE.SUP,zF.SUP],[zE.TABLE,zF.TABLE],[zE.TBODY,zF.TBODY],[zE.TEMPLATE,zF.TEMPLATE],[zE.TEXTAREA,zF.TEXTAREA],[zE.TFOOT,zF.TFOOT],[zE.TD,zF.TD],[zE.TH,zF.TH],[zE.THEAD,zF.THEAD],[zE.TITLE,zF.TITLE],[zE.TR,zF.TR],[zE.TRACK,zF.TRACK],[zE.TT,zF.TT],[zE.U,zF.U],[zE.UL,zF.UL],[zE.SVG,zF.SVG],[zE.VAR,zF.VAR],[zE.WBR,zF.WBR],[zE.XMP,zF.XMP]]);function ig(a){var b;return null!=(b=ie.get(a))?b:zF.UNKNOWN}let ih=zF,ii={[zB.HTML]:new Set([ih.ADDRESS,ih.APPLET,ih.AREA,ih.ARTICLE,ih.ASIDE,ih.BASE,ih.BASEFONT,ih.BGSOUND,ih.BLOCKQUOTE,ih.BODY,ih.BR,ih.BUTTON,ih.CAPTION,ih.CENTER,ih.COL,ih.COLGROUP,ih.DD,ih.DETAILS,ih.DIR,ih.DIV,ih.DL,ih.DT,ih.EMBED,ih.FIELDSET,ih.FIGCAPTION,ih.FIGURE,ih.FOOTER,ih.FORM,ih.FRAME,ih.FRAMESET,ih.H1,ih.H2,ih.H3,ih.H4,ih.H5,ih.H6,ih.HEAD,ih.HEADER,ih.HGROUP,ih.HR,ih.HTML,ih.IFRAME,ih.IMG,ih.INPUT,ih.LI,ih.LINK,ih.LISTING,ih.MAIN,ih.MARQUEE,ih.MENU,ih.META,ih.NAV,ih.NOEMBED,ih.NOFRAMES,ih.NOSCRIPT,ih.OBJECT,ih.OL,ih.P,ih.PARAM,ih.PLAINTEXT,ih.PRE,ih.SCRIPT,ih.SECTION,ih.SELECT,ih.SOURCE,ih.STYLE,ih.SUMMARY,ih.TABLE,ih.TBODY,ih.TD,ih.TEMPLATE,ih.TEXTAREA,ih.TFOOT,ih.TH,ih.THEAD,ih.TITLE,ih.TR,ih.TRACK,ih.UL,ih.WBR,ih.XMP]),[zB.MATHML]:new Set([ih.MI,ih.MO,ih.MN,ih.MS,ih.MTEXT,ih.ANNOTATION_XML]),[zB.SVG]:new Set([ih.TITLE,ih.FOREIGN_OBJECT,ih.DESC]),[zB.XLINK]:new Set,[zB.XML]:new Set,[zB.XMLNS]:new Set},ij=new Set([ih.H1,ih.H2,ih.H3,ih.H4,ih.H5,ih.H6]);zE.STYLE,zE.SCRIPT,zE.XMP,zE.IFRAME,zE.NOEMBED,zE.NOFRAMES,zE.PLAINTEXT,(zc=zG||(zG={}))[zc.DATA=0]="DATA",zc[zc.RCDATA=1]="RCDATA",zc[zc.RAWTEXT=2]="RAWTEXT",zc[zc.SCRIPT_DATA=3]="SCRIPT_DATA",zc[zc.PLAINTEXT=4]="PLAINTEXT",zc[zc.TAG_OPEN=5]="TAG_OPEN",zc[zc.END_TAG_OPEN=6]="END_TAG_OPEN",zc[zc.TAG_NAME=7]="TAG_NAME",zc[zc.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",zc[zc.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",zc[zc.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",zc[zc.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",zc[zc.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",zc[zc.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",zc[zc.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",zc[zc.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",zc[zc.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",zc[zc.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",zc[zc.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",zc[zc.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",zc[zc.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",zc[zc.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",zc[zc.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",zc[zc.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",zc[zc.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",zc[zc.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",zc[zc.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",zc[zc.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",zc[zc.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",zc[zc.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",zc[zc.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",zc[zc.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",zc[zc.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",zc[zc.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",zc[zc.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",zc[zc.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",zc[zc.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",zc[zc.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",zc[zc.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",zc[zc.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",zc[zc.BOGUS_COMMENT=40]="BOGUS_COMMENT",zc[zc.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",zc[zc.COMMENT_START=42]="COMMENT_START",zc[zc.COMMENT_START_DASH=43]="COMMENT_START_DASH",zc[zc.COMMENT=44]="COMMENT",zc[zc.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",zc[zc.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",zc[zc.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",zc[zc.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",zc[zc.COMMENT_END_DASH=49]="COMMENT_END_DASH",zc[zc.COMMENT_END=50]="COMMENT_END",zc[zc.COMMENT_END_BANG=51]="COMMENT_END_BANG",zc[zc.DOCTYPE=52]="DOCTYPE",zc[zc.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",zc[zc.DOCTYPE_NAME=54]="DOCTYPE_NAME",zc[zc.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",zc[zc.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",zc[zc.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",zc[zc.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",zc[zc.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",zc[zc.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",zc[zc.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",zc[zc.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",zc[zc.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",zc[zc.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",zc[zc.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",zc[zc.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",zc[zc.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",zc[zc.CDATA_SECTION=68]="CDATA_SECTION",zc[zc.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",zc[zc.CDATA_SECTION_END=70]="CDATA_SECTION_END",zc[zc.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",zc[zc.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND";let ik={DATA:zG.DATA,RCDATA:zG.RCDATA,RAWTEXT:zG.RAWTEXT,SCRIPT_DATA:zG.SCRIPT_DATA,PLAINTEXT:zG.PLAINTEXT,CDATA_SECTION:zG.CDATA_SECTION};function il(a){return a>=zy.LATIN_CAPITAL_A&&a<=zy.LATIN_CAPITAL_Z}function im(a){return a>=zy.LATIN_SMALL_A&&a<=zy.LATIN_SMALL_Z||il(a)}function io(a){return im(a)||a>=zy.DIGIT_0&&a<=zy.DIGIT_9}function ip(a){return a===zy.SPACE||a===zy.LINE_FEED||a===zy.TABULATION||a===zy.FORM_FEED}function iq(a){return ip(a)||a===zy.SOLIDUS||a===zy.GREATER_THAN_SIGN}class ir{constructor(a,b){this.options=a,this.handler=b,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=zG.DATA,this.returnState=zG.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new ic(b),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new ga(f7,(a,b)=>{this.preprocessor.pos=this.entityStartPos+b-1,this._flushCodePointConsumedAsCharacterReference(a)},b.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(zz.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:a=>{this._err(zz.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+a)},validateNumericCharacterReference:a=>{let b=function(a){if(a===zy.NULL)return zz.nullCharacterReference;if(a>1114111)return zz.characterReferenceOutsideUnicodeRange;if(h9(a))return zz.surrogateCharacterReference;if(ib(a))return zz.noncharacterCharacterReference;if(ia(a)||a===zy.CARRIAGE_RETURN)return zz.controlCharacterReference;return null}(a);b&&this._err(b,1)}}:void 0)}_err(a,b=0){var c,d;null==(d=(c=this.handler).onParseError)||d.call(c,this.preprocessor.getError(a,b))}getCurrentLocation(a){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-a,startOffset:this.preprocessor.offset-a,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let a=this._consume();this._ensureHibernation()||this._callState(a)}this.inLoop=!1}}pause(){this.paused=!0}resume(a){if(!this.paused)throw Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||null==a||a())}write(a,b,c){this.active=!0,this.preprocessor.write(a,b),this._runParsingLoop(),this.paused||null==c||c()}insertHtmlAtCurrentPos(a){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(a),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(a){this.consumedAfterSnapshot+=a;for(let b=0;b<a;b++)this.preprocessor.advance()}_consumeSequenceIfMatch(a,b){return!!this.preprocessor.startsWith(a,b)&&(this._advanceBy(a.length-1),!0)}_createStartTagToken(){this.currentToken={type:zA.START_TAG,tagName:"",tagID:zF.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:zA.END_TAG,tagName:"",tagID:zF.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(a){this.currentToken={type:zA.COMMENT,data:"",location:this.getCurrentLocation(a)}}_createDoctypeToken(a){this.currentToken={type:zA.DOCTYPE,name:a,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(a,b){this.currentCharacterToken={type:a,chars:b,location:this.currentLocation}}_createAttr(a){this.currentAttr={name:a,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var a,b;let c=this.currentToken;null===id(c,this.currentAttr.name)?(c.attrs.push(this.currentAttr),c.location&&this.currentLocation&&((null!=(a=(b=c.location).attrs)?a:b.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue())):this._err(zz.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(a){this._emitCurrentCharacterToken(a.location),this.currentToken=null,a.location&&(a.location.endLine=this.preprocessor.line,a.location.endCol=this.preprocessor.col+1,a.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){let a=this.currentToken;this.prepareToken(a),a.tagID=ig(a.tagName),a.type===zA.START_TAG?(this.lastStartTagName=a.tagName,this.handler.onStartTag(a)):(a.attrs.length>0&&this._err(zz.endTagWithAttributes),a.selfClosing&&this._err(zz.endTagWithTrailingSolidus),this.handler.onEndTag(a)),this.preprocessor.dropParsedChunk()}emitCurrentComment(a){this.prepareToken(a),this.handler.onComment(a),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(a){this.prepareToken(a),this.handler.onDoctype(a),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(a){if(this.currentCharacterToken){switch(a&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=a.startLine,this.currentCharacterToken.location.endCol=a.startCol,this.currentCharacterToken.location.endOffset=a.startOffset),this.currentCharacterToken.type){case zA.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case zA.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case zA.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){let a=this.getCurrentLocation(0);a&&(a.endLine=a.startLine,a.endCol=a.startCol,a.endOffset=a.startOffset),this._emitCurrentCharacterToken(a),this.handler.onEof({type:zA.EOF,location:a}),this.active=!1}_appendCharToCurrentCharacterToken(a,b){if(this.currentCharacterToken)if(this.currentCharacterToken.type===a){this.currentCharacterToken.chars+=b;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(a,b)}_emitCodePoint(a){let b=ip(a)?zA.WHITESPACE_CHARACTER:a===zy.NULL?zA.NULL_CHARACTER:zA.CHARACTER;this._appendCharToCurrentCharacterToken(b,String.fromCodePoint(a))}_emitChars(a){this._appendCharToCurrentCharacterToken(zA.CHARACTER,a)}_startCharacterReference(){this.returnState=this.state,this.state=zG.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?zp.Attribute:zp.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===zG.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===zG.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===zG.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(a){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(a):this._emitCodePoint(a)}_callState(a){switch(this.state){case zG.DATA:this._stateData(a);break;case zG.RCDATA:this._stateRcdata(a);break;case zG.RAWTEXT:this._stateRawtext(a);break;case zG.SCRIPT_DATA:this._stateScriptData(a);break;case zG.PLAINTEXT:this._statePlaintext(a);break;case zG.TAG_OPEN:this._stateTagOpen(a);break;case zG.END_TAG_OPEN:this._stateEndTagOpen(a);break;case zG.TAG_NAME:this._stateTagName(a);break;case zG.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(a);break;case zG.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(a);break;case zG.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(a);break;case zG.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(a);break;case zG.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(a);break;case zG.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(a);break;case zG.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(a);break;case zG.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(a);break;case zG.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(a);break;case zG.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(a);break;case zG.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(a);break;case zG.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(a);break;case zG.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(a);break;case zG.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(a);break;case zG.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(a);break;case zG.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(a);break;case zG.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(a);break;case zG.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(a);break;case zG.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(a);break;case zG.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(a);break;case zG.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(a);break;case zG.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(a);break;case zG.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(a);break;case zG.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(a);break;case zG.ATTRIBUTE_NAME:this._stateAttributeName(a);break;case zG.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(a);break;case zG.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(a);break;case zG.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(a);break;case zG.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(a);break;case zG.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(a);break;case zG.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(a);break;case zG.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(a);break;case zG.BOGUS_COMMENT:this._stateBogusComment(a);break;case zG.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(a);break;case zG.COMMENT_START:this._stateCommentStart(a);break;case zG.COMMENT_START_DASH:this._stateCommentStartDash(a);break;case zG.COMMENT:this._stateComment(a);break;case zG.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(a);break;case zG.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(a);break;case zG.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(a);break;case zG.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(a);break;case zG.COMMENT_END_DASH:this._stateCommentEndDash(a);break;case zG.COMMENT_END:this._stateCommentEnd(a);break;case zG.COMMENT_END_BANG:this._stateCommentEndBang(a);break;case zG.DOCTYPE:this._stateDoctype(a);break;case zG.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(a);break;case zG.DOCTYPE_NAME:this._stateDoctypeName(a);break;case zG.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(a);break;case zG.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(a);break;case zG.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(a);break;case zG.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(a);break;case zG.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(a);break;case zG.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(a);break;case zG.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(a);break;case zG.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(a);break;case zG.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(a);break;case zG.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(a);break;case zG.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(a);break;case zG.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(a);break;case zG.BOGUS_DOCTYPE:this._stateBogusDoctype(a);break;case zG.CDATA_SECTION:this._stateCdataSection(a);break;case zG.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(a);break;case zG.CDATA_SECTION_END:this._stateCdataSectionEnd(a);break;case zG.CHARACTER_REFERENCE:this._stateCharacterReference();break;case zG.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(a);break;default:throw Error("Unknown state")}}_stateData(a){switch(a){case zy.LESS_THAN_SIGN:this.state=zG.TAG_OPEN;break;case zy.AMPERSAND:this._startCharacterReference();break;case zy.NULL:this._err(zz.unexpectedNullCharacter),this._emitCodePoint(a);break;case zy.EOF:this._emitEOFToken();break;default:this._emitCodePoint(a)}}_stateRcdata(a){switch(a){case zy.AMPERSAND:this._startCharacterReference();break;case zy.LESS_THAN_SIGN:this.state=zG.RCDATA_LESS_THAN_SIGN;break;case zy.NULL:this._err(zz.unexpectedNullCharacter),this._emitChars("�");break;case zy.EOF:this._emitEOFToken();break;default:this._emitCodePoint(a)}}_stateRawtext(a){switch(a){case zy.LESS_THAN_SIGN:this.state=zG.RAWTEXT_LESS_THAN_SIGN;break;case zy.NULL:this._err(zz.unexpectedNullCharacter),this._emitChars("�");break;case zy.EOF:this._emitEOFToken();break;default:this._emitCodePoint(a)}}_stateScriptData(a){switch(a){case zy.LESS_THAN_SIGN:this.state=zG.SCRIPT_DATA_LESS_THAN_SIGN;break;case zy.NULL:this._err(zz.unexpectedNullCharacter),this._emitChars("�");break;case zy.EOF:this._emitEOFToken();break;default:this._emitCodePoint(a)}}_statePlaintext(a){switch(a){case zy.NULL:this._err(zz.unexpectedNullCharacter),this._emitChars("�");break;case zy.EOF:this._emitEOFToken();break;default:this._emitCodePoint(a)}}_stateTagOpen(a){if(im(a))this._createStartTagToken(),this.state=zG.TAG_NAME,this._stateTagName(a);else switch(a){case zy.EXCLAMATION_MARK:this.state=zG.MARKUP_DECLARATION_OPEN;break;case zy.SOLIDUS:this.state=zG.END_TAG_OPEN;break;case zy.QUESTION_MARK:this._err(zz.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=zG.BOGUS_COMMENT,this._stateBogusComment(a);break;case zy.EOF:this._err(zz.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(zz.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=zG.DATA,this._stateData(a)}}_stateEndTagOpen(a){if(im(a))this._createEndTagToken(),this.state=zG.TAG_NAME,this._stateTagName(a);else switch(a){case zy.GREATER_THAN_SIGN:this._err(zz.missingEndTagName),this.state=zG.DATA;break;case zy.EOF:this._err(zz.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(zz.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=zG.BOGUS_COMMENT,this._stateBogusComment(a)}}_stateTagName(a){let b=this.currentToken;switch(a){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:this.state=zG.BEFORE_ATTRIBUTE_NAME;break;case zy.SOLIDUS:this.state=zG.SELF_CLOSING_START_TAG;break;case zy.GREATER_THAN_SIGN:this.state=zG.DATA,this.emitCurrentTagToken();break;case zy.NULL:this._err(zz.unexpectedNullCharacter),b.tagName+="�";break;case zy.EOF:this._err(zz.eofInTag),this._emitEOFToken();break;default:b.tagName+=String.fromCodePoint(il(a)?a+32:a)}}_stateRcdataLessThanSign(a){a===zy.SOLIDUS?this.state=zG.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=zG.RCDATA,this._stateRcdata(a))}_stateRcdataEndTagOpen(a){im(a)?(this.state=zG.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(a)):(this._emitChars("</"),this.state=zG.RCDATA,this._stateRcdata(a))}handleSpecialEndTag(a){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();switch(this._createEndTagToken(),this.currentToken.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=zG.BEFORE_ATTRIBUTE_NAME,!1;case zy.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=zG.SELF_CLOSING_START_TAG,!1;case zy.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=zG.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(a){this.handleSpecialEndTag(a)&&(this._emitChars("</"),this.state=zG.RCDATA,this._stateRcdata(a))}_stateRawtextLessThanSign(a){a===zy.SOLIDUS?this.state=zG.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=zG.RAWTEXT,this._stateRawtext(a))}_stateRawtextEndTagOpen(a){im(a)?(this.state=zG.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(a)):(this._emitChars("</"),this.state=zG.RAWTEXT,this._stateRawtext(a))}_stateRawtextEndTagName(a){this.handleSpecialEndTag(a)&&(this._emitChars("</"),this.state=zG.RAWTEXT,this._stateRawtext(a))}_stateScriptDataLessThanSign(a){switch(a){case zy.SOLIDUS:this.state=zG.SCRIPT_DATA_END_TAG_OPEN;break;case zy.EXCLAMATION_MARK:this.state=zG.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=zG.SCRIPT_DATA,this._stateScriptData(a)}}_stateScriptDataEndTagOpen(a){im(a)?(this.state=zG.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(a)):(this._emitChars("</"),this.state=zG.SCRIPT_DATA,this._stateScriptData(a))}_stateScriptDataEndTagName(a){this.handleSpecialEndTag(a)&&(this._emitChars("</"),this.state=zG.SCRIPT_DATA,this._stateScriptData(a))}_stateScriptDataEscapeStart(a){a===zy.HYPHEN_MINUS?(this.state=zG.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=zG.SCRIPT_DATA,this._stateScriptData(a))}_stateScriptDataEscapeStartDash(a){a===zy.HYPHEN_MINUS?(this.state=zG.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=zG.SCRIPT_DATA,this._stateScriptData(a))}_stateScriptDataEscaped(a){switch(a){case zy.HYPHEN_MINUS:this.state=zG.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case zy.LESS_THAN_SIGN:this.state=zG.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case zy.NULL:this._err(zz.unexpectedNullCharacter),this._emitChars("�");break;case zy.EOF:this._err(zz.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(a)}}_stateScriptDataEscapedDash(a){switch(a){case zy.HYPHEN_MINUS:this.state=zG.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case zy.LESS_THAN_SIGN:this.state=zG.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case zy.NULL:this._err(zz.unexpectedNullCharacter),this.state=zG.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case zy.EOF:this._err(zz.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=zG.SCRIPT_DATA_ESCAPED,this._emitCodePoint(a)}}_stateScriptDataEscapedDashDash(a){switch(a){case zy.HYPHEN_MINUS:this._emitChars("-");break;case zy.LESS_THAN_SIGN:this.state=zG.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case zy.GREATER_THAN_SIGN:this.state=zG.SCRIPT_DATA,this._emitChars(">");break;case zy.NULL:this._err(zz.unexpectedNullCharacter),this.state=zG.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case zy.EOF:this._err(zz.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=zG.SCRIPT_DATA_ESCAPED,this._emitCodePoint(a)}}_stateScriptDataEscapedLessThanSign(a){a===zy.SOLIDUS?this.state=zG.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:im(a)?(this._emitChars("<"),this.state=zG.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(a)):(this._emitChars("<"),this.state=zG.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(a))}_stateScriptDataEscapedEndTagOpen(a){im(a)?(this.state=zG.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(a)):(this._emitChars("</"),this.state=zG.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(a))}_stateScriptDataEscapedEndTagName(a){this.handleSpecialEndTag(a)&&(this._emitChars("</"),this.state=zG.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(a))}_stateScriptDataDoubleEscapeStart(a){if(this.preprocessor.startsWith(h8,!1)&&iq(this.preprocessor.peek(h8.length))){this._emitCodePoint(a);for(let a=0;a<h8.length;a++)this._emitCodePoint(this._consume());this.state=zG.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=zG.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(a))}_stateScriptDataDoubleEscaped(a){switch(a){case zy.HYPHEN_MINUS:this.state=zG.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case zy.LESS_THAN_SIGN:this.state=zG.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case zy.NULL:this._err(zz.unexpectedNullCharacter),this._emitChars("�");break;case zy.EOF:this._err(zz.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(a)}}_stateScriptDataDoubleEscapedDash(a){switch(a){case zy.HYPHEN_MINUS:this.state=zG.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case zy.LESS_THAN_SIGN:this.state=zG.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case zy.NULL:this._err(zz.unexpectedNullCharacter),this.state=zG.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case zy.EOF:this._err(zz.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=zG.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(a)}}_stateScriptDataDoubleEscapedDashDash(a){switch(a){case zy.HYPHEN_MINUS:this._emitChars("-");break;case zy.LESS_THAN_SIGN:this.state=zG.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case zy.GREATER_THAN_SIGN:this.state=zG.SCRIPT_DATA,this._emitChars(">");break;case zy.NULL:this._err(zz.unexpectedNullCharacter),this.state=zG.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case zy.EOF:this._err(zz.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=zG.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(a)}}_stateScriptDataDoubleEscapedLessThanSign(a){a===zy.SOLIDUS?(this.state=zG.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=zG.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(a))}_stateScriptDataDoubleEscapeEnd(a){if(this.preprocessor.startsWith(h8,!1)&&iq(this.preprocessor.peek(h8.length))){this._emitCodePoint(a);for(let a=0;a<h8.length;a++)this._emitCodePoint(this._consume());this.state=zG.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=zG.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(a))}_stateBeforeAttributeName(a){switch(a){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:break;case zy.SOLIDUS:case zy.GREATER_THAN_SIGN:case zy.EOF:this.state=zG.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(a);break;case zy.EQUALS_SIGN:this._err(zz.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=zG.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=zG.ATTRIBUTE_NAME,this._stateAttributeName(a)}}_stateAttributeName(a){switch(a){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:case zy.SOLIDUS:case zy.GREATER_THAN_SIGN:case zy.EOF:this._leaveAttrName(),this.state=zG.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(a);break;case zy.EQUALS_SIGN:this._leaveAttrName(),this.state=zG.BEFORE_ATTRIBUTE_VALUE;break;case zy.QUOTATION_MARK:case zy.APOSTROPHE:case zy.LESS_THAN_SIGN:this._err(zz.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(a);break;case zy.NULL:this._err(zz.unexpectedNullCharacter),this.currentAttr.name+="�";break;default:this.currentAttr.name+=String.fromCodePoint(il(a)?a+32:a)}}_stateAfterAttributeName(a){switch(a){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:break;case zy.SOLIDUS:this.state=zG.SELF_CLOSING_START_TAG;break;case zy.EQUALS_SIGN:this.state=zG.BEFORE_ATTRIBUTE_VALUE;break;case zy.GREATER_THAN_SIGN:this.state=zG.DATA,this.emitCurrentTagToken();break;case zy.EOF:this._err(zz.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=zG.ATTRIBUTE_NAME,this._stateAttributeName(a)}}_stateBeforeAttributeValue(a){switch(a){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:break;case zy.QUOTATION_MARK:this.state=zG.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case zy.APOSTROPHE:this.state=zG.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case zy.GREATER_THAN_SIGN:this._err(zz.missingAttributeValue),this.state=zG.DATA,this.emitCurrentTagToken();break;default:this.state=zG.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(a)}}_stateAttributeValueDoubleQuoted(a){switch(a){case zy.QUOTATION_MARK:this.state=zG.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case zy.AMPERSAND:this._startCharacterReference();break;case zy.NULL:this._err(zz.unexpectedNullCharacter),this.currentAttr.value+="�";break;case zy.EOF:this._err(zz.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(a)}}_stateAttributeValueSingleQuoted(a){switch(a){case zy.APOSTROPHE:this.state=zG.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case zy.AMPERSAND:this._startCharacterReference();break;case zy.NULL:this._err(zz.unexpectedNullCharacter),this.currentAttr.value+="�";break;case zy.EOF:this._err(zz.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(a)}}_stateAttributeValueUnquoted(a){switch(a){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:this._leaveAttrValue(),this.state=zG.BEFORE_ATTRIBUTE_NAME;break;case zy.AMPERSAND:this._startCharacterReference();break;case zy.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=zG.DATA,this.emitCurrentTagToken();break;case zy.NULL:this._err(zz.unexpectedNullCharacter),this.currentAttr.value+="�";break;case zy.QUOTATION_MARK:case zy.APOSTROPHE:case zy.LESS_THAN_SIGN:case zy.EQUALS_SIGN:case zy.GRAVE_ACCENT:this._err(zz.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(a);break;case zy.EOF:this._err(zz.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(a)}}_stateAfterAttributeValueQuoted(a){switch(a){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:this._leaveAttrValue(),this.state=zG.BEFORE_ATTRIBUTE_NAME;break;case zy.SOLIDUS:this._leaveAttrValue(),this.state=zG.SELF_CLOSING_START_TAG;break;case zy.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=zG.DATA,this.emitCurrentTagToken();break;case zy.EOF:this._err(zz.eofInTag),this._emitEOFToken();break;default:this._err(zz.missingWhitespaceBetweenAttributes),this.state=zG.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(a)}}_stateSelfClosingStartTag(a){switch(a){case zy.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=zG.DATA,this.emitCurrentTagToken();break;case zy.EOF:this._err(zz.eofInTag),this._emitEOFToken();break;default:this._err(zz.unexpectedSolidusInTag),this.state=zG.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(a)}}_stateBogusComment(a){let b=this.currentToken;switch(a){case zy.GREATER_THAN_SIGN:this.state=zG.DATA,this.emitCurrentComment(b);break;case zy.EOF:this.emitCurrentComment(b),this._emitEOFToken();break;case zy.NULL:this._err(zz.unexpectedNullCharacter),b.data+="�";break;default:b.data+=String.fromCodePoint(a)}}_stateMarkupDeclarationOpen(a){this._consumeSequenceIfMatch("--",!0)?(this._createCommentToken(3),this.state=zG.COMMENT_START):this._consumeSequenceIfMatch(h7,!1)?(this.currentLocation=this.getCurrentLocation(h7.length+1),this.state=zG.DOCTYPE):this._consumeSequenceIfMatch(h6,!0)?this.inForeignNode?this.state=zG.CDATA_SECTION:(this._err(zz.cdataInHtmlContent),this._createCommentToken(h6.length+1),this.currentToken.data="[CDATA[",this.state=zG.BOGUS_COMMENT):this._ensureHibernation()||(this._err(zz.incorrectlyOpenedComment),this._createCommentToken(2),this.state=zG.BOGUS_COMMENT,this._stateBogusComment(a))}_stateCommentStart(a){switch(a){case zy.HYPHEN_MINUS:this.state=zG.COMMENT_START_DASH;break;case zy.GREATER_THAN_SIGN:{this._err(zz.abruptClosingOfEmptyComment),this.state=zG.DATA;let a=this.currentToken;this.emitCurrentComment(a);break}default:this.state=zG.COMMENT,this._stateComment(a)}}_stateCommentStartDash(a){let b=this.currentToken;switch(a){case zy.HYPHEN_MINUS:this.state=zG.COMMENT_END;break;case zy.GREATER_THAN_SIGN:this._err(zz.abruptClosingOfEmptyComment),this.state=zG.DATA,this.emitCurrentComment(b);break;case zy.EOF:this._err(zz.eofInComment),this.emitCurrentComment(b),this._emitEOFToken();break;default:b.data+="-",this.state=zG.COMMENT,this._stateComment(a)}}_stateComment(a){let b=this.currentToken;switch(a){case zy.HYPHEN_MINUS:this.state=zG.COMMENT_END_DASH;break;case zy.LESS_THAN_SIGN:b.data+="<",this.state=zG.COMMENT_LESS_THAN_SIGN;break;case zy.NULL:this._err(zz.unexpectedNullCharacter),b.data+="�";break;case zy.EOF:this._err(zz.eofInComment),this.emitCurrentComment(b),this._emitEOFToken();break;default:b.data+=String.fromCodePoint(a)}}_stateCommentLessThanSign(a){let b=this.currentToken;switch(a){case zy.EXCLAMATION_MARK:b.data+="!",this.state=zG.COMMENT_LESS_THAN_SIGN_BANG;break;case zy.LESS_THAN_SIGN:b.data+="<";break;default:this.state=zG.COMMENT,this._stateComment(a)}}_stateCommentLessThanSignBang(a){a===zy.HYPHEN_MINUS?this.state=zG.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=zG.COMMENT,this._stateComment(a))}_stateCommentLessThanSignBangDash(a){a===zy.HYPHEN_MINUS?this.state=zG.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=zG.COMMENT_END_DASH,this._stateCommentEndDash(a))}_stateCommentLessThanSignBangDashDash(a){a!==zy.GREATER_THAN_SIGN&&a!==zy.EOF&&this._err(zz.nestedComment),this.state=zG.COMMENT_END,this._stateCommentEnd(a)}_stateCommentEndDash(a){let b=this.currentToken;switch(a){case zy.HYPHEN_MINUS:this.state=zG.COMMENT_END;break;case zy.EOF:this._err(zz.eofInComment),this.emitCurrentComment(b),this._emitEOFToken();break;default:b.data+="-",this.state=zG.COMMENT,this._stateComment(a)}}_stateCommentEnd(a){let b=this.currentToken;switch(a){case zy.GREATER_THAN_SIGN:this.state=zG.DATA,this.emitCurrentComment(b);break;case zy.EXCLAMATION_MARK:this.state=zG.COMMENT_END_BANG;break;case zy.HYPHEN_MINUS:b.data+="-";break;case zy.EOF:this._err(zz.eofInComment),this.emitCurrentComment(b),this._emitEOFToken();break;default:b.data+="--",this.state=zG.COMMENT,this._stateComment(a)}}_stateCommentEndBang(a){let b=this.currentToken;switch(a){case zy.HYPHEN_MINUS:b.data+="--!",this.state=zG.COMMENT_END_DASH;break;case zy.GREATER_THAN_SIGN:this._err(zz.incorrectlyClosedComment),this.state=zG.DATA,this.emitCurrentComment(b);break;case zy.EOF:this._err(zz.eofInComment),this.emitCurrentComment(b),this._emitEOFToken();break;default:b.data+="--!",this.state=zG.COMMENT,this._stateComment(a)}}_stateDoctype(a){switch(a){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:this.state=zG.BEFORE_DOCTYPE_NAME;break;case zy.GREATER_THAN_SIGN:this.state=zG.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(a);break;case zy.EOF:{this._err(zz.eofInDoctype),this._createDoctypeToken(null);let a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(zz.missingWhitespaceBeforeDoctypeName),this.state=zG.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(a)}}_stateBeforeDoctypeName(a){if(il(a))this._createDoctypeToken(String.fromCharCode(a+32)),this.state=zG.DOCTYPE_NAME;else switch(a){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:break;case zy.NULL:this._err(zz.unexpectedNullCharacter),this._createDoctypeToken("�"),this.state=zG.DOCTYPE_NAME;break;case zy.GREATER_THAN_SIGN:{this._err(zz.missingDoctypeName),this._createDoctypeToken(null);let a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=zG.DATA;break}case zy.EOF:{this._err(zz.eofInDoctype),this._createDoctypeToken(null);let a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(a)),this.state=zG.DOCTYPE_NAME}}_stateDoctypeName(a){let b=this.currentToken;switch(a){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:this.state=zG.AFTER_DOCTYPE_NAME;break;case zy.GREATER_THAN_SIGN:this.state=zG.DATA,this.emitCurrentDoctype(b);break;case zy.NULL:this._err(zz.unexpectedNullCharacter),b.name+="�";break;case zy.EOF:this._err(zz.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:b.name+=String.fromCodePoint(il(a)?a+32:a)}}_stateAfterDoctypeName(a){let b=this.currentToken;switch(a){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:break;case zy.GREATER_THAN_SIGN:this.state=zG.DATA,this.emitCurrentDoctype(b);break;case zy.EOF:this._err(zz.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:this._consumeSequenceIfMatch("public",!1)?this.state=zG.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch("system",!1)?this.state=zG.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(zz.invalidCharacterSequenceAfterDoctypeName),b.forceQuirks=!0,this.state=zG.BOGUS_DOCTYPE,this._stateBogusDoctype(a))}}_stateAfterDoctypePublicKeyword(a){let b=this.currentToken;switch(a){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:this.state=zG.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case zy.QUOTATION_MARK:this._err(zz.missingWhitespaceAfterDoctypePublicKeyword),b.publicId="",this.state=zG.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case zy.APOSTROPHE:this._err(zz.missingWhitespaceAfterDoctypePublicKeyword),b.publicId="",this.state=zG.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case zy.GREATER_THAN_SIGN:this._err(zz.missingDoctypePublicIdentifier),b.forceQuirks=!0,this.state=zG.DATA,this.emitCurrentDoctype(b);break;case zy.EOF:this._err(zz.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:this._err(zz.missingQuoteBeforeDoctypePublicIdentifier),b.forceQuirks=!0,this.state=zG.BOGUS_DOCTYPE,this._stateBogusDoctype(a)}}_stateBeforeDoctypePublicIdentifier(a){let b=this.currentToken;switch(a){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:break;case zy.QUOTATION_MARK:b.publicId="",this.state=zG.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case zy.APOSTROPHE:b.publicId="",this.state=zG.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case zy.GREATER_THAN_SIGN:this._err(zz.missingDoctypePublicIdentifier),b.forceQuirks=!0,this.state=zG.DATA,this.emitCurrentDoctype(b);break;case zy.EOF:this._err(zz.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:this._err(zz.missingQuoteBeforeDoctypePublicIdentifier),b.forceQuirks=!0,this.state=zG.BOGUS_DOCTYPE,this._stateBogusDoctype(a)}}_stateDoctypePublicIdentifierDoubleQuoted(a){let b=this.currentToken;switch(a){case zy.QUOTATION_MARK:this.state=zG.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case zy.NULL:this._err(zz.unexpectedNullCharacter),b.publicId+="�";break;case zy.GREATER_THAN_SIGN:this._err(zz.abruptDoctypePublicIdentifier),b.forceQuirks=!0,this.emitCurrentDoctype(b),this.state=zG.DATA;break;case zy.EOF:this._err(zz.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:b.publicId+=String.fromCodePoint(a)}}_stateDoctypePublicIdentifierSingleQuoted(a){let b=this.currentToken;switch(a){case zy.APOSTROPHE:this.state=zG.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case zy.NULL:this._err(zz.unexpectedNullCharacter),b.publicId+="�";break;case zy.GREATER_THAN_SIGN:this._err(zz.abruptDoctypePublicIdentifier),b.forceQuirks=!0,this.emitCurrentDoctype(b),this.state=zG.DATA;break;case zy.EOF:this._err(zz.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:b.publicId+=String.fromCodePoint(a)}}_stateAfterDoctypePublicIdentifier(a){let b=this.currentToken;switch(a){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:this.state=zG.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case zy.GREATER_THAN_SIGN:this.state=zG.DATA,this.emitCurrentDoctype(b);break;case zy.QUOTATION_MARK:this._err(zz.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),b.systemId="",this.state=zG.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case zy.APOSTROPHE:this._err(zz.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),b.systemId="",this.state=zG.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case zy.EOF:this._err(zz.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:this._err(zz.missingQuoteBeforeDoctypeSystemIdentifier),b.forceQuirks=!0,this.state=zG.BOGUS_DOCTYPE,this._stateBogusDoctype(a)}}_stateBetweenDoctypePublicAndSystemIdentifiers(a){let b=this.currentToken;switch(a){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:break;case zy.GREATER_THAN_SIGN:this.emitCurrentDoctype(b),this.state=zG.DATA;break;case zy.QUOTATION_MARK:b.systemId="",this.state=zG.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case zy.APOSTROPHE:b.systemId="",this.state=zG.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case zy.EOF:this._err(zz.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:this._err(zz.missingQuoteBeforeDoctypeSystemIdentifier),b.forceQuirks=!0,this.state=zG.BOGUS_DOCTYPE,this._stateBogusDoctype(a)}}_stateAfterDoctypeSystemKeyword(a){let b=this.currentToken;switch(a){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:this.state=zG.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case zy.QUOTATION_MARK:this._err(zz.missingWhitespaceAfterDoctypeSystemKeyword),b.systemId="",this.state=zG.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case zy.APOSTROPHE:this._err(zz.missingWhitespaceAfterDoctypeSystemKeyword),b.systemId="",this.state=zG.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case zy.GREATER_THAN_SIGN:this._err(zz.missingDoctypeSystemIdentifier),b.forceQuirks=!0,this.state=zG.DATA,this.emitCurrentDoctype(b);break;case zy.EOF:this._err(zz.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:this._err(zz.missingQuoteBeforeDoctypeSystemIdentifier),b.forceQuirks=!0,this.state=zG.BOGUS_DOCTYPE,this._stateBogusDoctype(a)}}_stateBeforeDoctypeSystemIdentifier(a){let b=this.currentToken;switch(a){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:break;case zy.QUOTATION_MARK:b.systemId="",this.state=zG.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case zy.APOSTROPHE:b.systemId="",this.state=zG.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case zy.GREATER_THAN_SIGN:this._err(zz.missingDoctypeSystemIdentifier),b.forceQuirks=!0,this.state=zG.DATA,this.emitCurrentDoctype(b);break;case zy.EOF:this._err(zz.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:this._err(zz.missingQuoteBeforeDoctypeSystemIdentifier),b.forceQuirks=!0,this.state=zG.BOGUS_DOCTYPE,this._stateBogusDoctype(a)}}_stateDoctypeSystemIdentifierDoubleQuoted(a){let b=this.currentToken;switch(a){case zy.QUOTATION_MARK:this.state=zG.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case zy.NULL:this._err(zz.unexpectedNullCharacter),b.systemId+="�";break;case zy.GREATER_THAN_SIGN:this._err(zz.abruptDoctypeSystemIdentifier),b.forceQuirks=!0,this.emitCurrentDoctype(b),this.state=zG.DATA;break;case zy.EOF:this._err(zz.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:b.systemId+=String.fromCodePoint(a)}}_stateDoctypeSystemIdentifierSingleQuoted(a){let b=this.currentToken;switch(a){case zy.APOSTROPHE:this.state=zG.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case zy.NULL:this._err(zz.unexpectedNullCharacter),b.systemId+="�";break;case zy.GREATER_THAN_SIGN:this._err(zz.abruptDoctypeSystemIdentifier),b.forceQuirks=!0,this.emitCurrentDoctype(b),this.state=zG.DATA;break;case zy.EOF:this._err(zz.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:b.systemId+=String.fromCodePoint(a)}}_stateAfterDoctypeSystemIdentifier(a){let b=this.currentToken;switch(a){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:break;case zy.GREATER_THAN_SIGN:this.emitCurrentDoctype(b),this.state=zG.DATA;break;case zy.EOF:this._err(zz.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:this._err(zz.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=zG.BOGUS_DOCTYPE,this._stateBogusDoctype(a)}}_stateBogusDoctype(a){let b=this.currentToken;switch(a){case zy.GREATER_THAN_SIGN:this.emitCurrentDoctype(b),this.state=zG.DATA;break;case zy.NULL:this._err(zz.unexpectedNullCharacter);break;case zy.EOF:this.emitCurrentDoctype(b),this._emitEOFToken()}}_stateCdataSection(a){switch(a){case zy.RIGHT_SQUARE_BRACKET:this.state=zG.CDATA_SECTION_BRACKET;break;case zy.EOF:this._err(zz.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(a)}}_stateCdataSectionBracket(a){a===zy.RIGHT_SQUARE_BRACKET?this.state=zG.CDATA_SECTION_END:(this._emitChars("]"),this.state=zG.CDATA_SECTION,this._stateCdataSection(a))}_stateCdataSectionEnd(a){switch(a){case zy.GREATER_THAN_SIGN:this.state=zG.DATA;break;case zy.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=zG.CDATA_SECTION,this._stateCdataSection(a)}}_stateCharacterReference(){let a=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(a<0)if(this.preprocessor.lastChunkWritten)a=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}0===a?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(zy.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&io(this.preprocessor.peek(1))?zG.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(a){io(a)?this._flushCodePointConsumedAsCharacterReference(a):(a===zy.SEMICOLON&&this._err(zz.unknownNamedCharacterReference),this.state=this.returnState,this._callState(a))}}let is=new Set([zF.DD,zF.DT,zF.LI,zF.OPTGROUP,zF.OPTION,zF.P,zF.RB,zF.RP,zF.RT,zF.RTC]),it=new Set([...is,zF.CAPTION,zF.COLGROUP,zF.TBODY,zF.TD,zF.TFOOT,zF.TH,zF.THEAD,zF.TR]),iu=new Set([zF.APPLET,zF.CAPTION,zF.HTML,zF.MARQUEE,zF.OBJECT,zF.TABLE,zF.TD,zF.TEMPLATE,zF.TH]),iv=new Set([...iu,zF.OL,zF.UL]),iw=new Set([...iu,zF.BUTTON]),ix=new Set([zF.ANNOTATION_XML,zF.MI,zF.MN,zF.MO,zF.MS,zF.MTEXT]),iy=new Set([zF.DESC,zF.FOREIGN_OBJECT,zF.TITLE]),iz=new Set([zF.TR,zF.TEMPLATE,zF.HTML]),iA=new Set([zF.TBODY,zF.TFOOT,zF.THEAD,zF.TEMPLATE,zF.HTML]),iB=new Set([zF.TABLE,zF.TEMPLATE,zF.HTML]),iC=new Set([zF.TD,zF.TH]);class iD{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(a,b,c){this.treeAdapter=b,this.handler=c,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=zF.UNKNOWN,this.current=a}_indexOf(a){return this.items.lastIndexOf(a,this.stackTop)}_isInTemplate(){return this.currentTagId===zF.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===zB.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(a,b){this.stackTop++,this.items[this.stackTop]=a,this.current=a,this.tagIDs[this.stackTop]=b,this.currentTagId=b,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(a,b,!0)}pop(){let a=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(a,!0)}replace(a,b){let c=this._indexOf(a);this.items[c]=b,c===this.stackTop&&(this.current=b)}insertAfter(a,b,c){let d=this._indexOf(a)+1;this.items.splice(d,0,b),this.tagIDs.splice(d,0,c),this.stackTop++,d===this.stackTop&&this._updateCurrentElement(),this.current&&void 0!==this.currentTagId&&this.handler.onItemPush(this.current,this.currentTagId,d===this.stackTop)}popUntilTagNamePopped(a){let b=this.stackTop+1;do b=this.tagIDs.lastIndexOf(a,b-1);while(b>0&&this.treeAdapter.getNamespaceURI(this.items[b])!==zB.HTML);this.shortenToLength(Math.max(b,0))}shortenToLength(a){for(;this.stackTop>=a;){let b=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(b,this.stackTop<a)}}popUntilElementPopped(a){let b=this._indexOf(a);this.shortenToLength(Math.max(b,0))}popUntilPopped(a,b){let c=this._indexOfTagNames(a,b);this.shortenToLength(Math.max(c,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(ij,zB.HTML)}popUntilTableCellPopped(){this.popUntilPopped(iC,zB.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(a,b){for(let c=this.stackTop;c>=0;c--)if(a.has(this.tagIDs[c])&&this.treeAdapter.getNamespaceURI(this.items[c])===b)return c;return -1}clearBackTo(a,b){let c=this._indexOfTagNames(a,b);this.shortenToLength(c+1)}clearBackToTableContext(){this.clearBackTo(iB,zB.HTML)}clearBackToTableBodyContext(){this.clearBackTo(iA,zB.HTML)}clearBackToTableRowContext(){this.clearBackTo(iz,zB.HTML)}remove(a){let b=this._indexOf(a);b>=0&&(b===this.stackTop?this.pop():(this.items.splice(b,1),this.tagIDs.splice(b,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(a,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===zF.BODY?this.items[1]:null}contains(a){return this._indexOf(a)>-1}getCommonAncestor(a){let b=this._indexOf(a)-1;return b>=0?this.items[b]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===zF.HTML}hasInDynamicScope(a,b){for(let c=this.stackTop;c>=0;c--){let d=this.tagIDs[c];switch(this.treeAdapter.getNamespaceURI(this.items[c])){case zB.HTML:if(d===a)return!0;if(b.has(d))return!1;break;case zB.SVG:if(iy.has(d))return!1;break;case zB.MATHML:if(ix.has(d))return!1}}return!0}hasInScope(a){return this.hasInDynamicScope(a,iu)}hasInListItemScope(a){return this.hasInDynamicScope(a,iv)}hasInButtonScope(a){return this.hasInDynamicScope(a,iw)}hasNumberedHeaderInScope(){for(let a=this.stackTop;a>=0;a--){let b=this.tagIDs[a];switch(this.treeAdapter.getNamespaceURI(this.items[a])){case zB.HTML:if(ij.has(b))return!0;if(iu.has(b))return!1;break;case zB.SVG:if(iy.has(b))return!1;break;case zB.MATHML:if(ix.has(b))return!1}}return!0}hasInTableScope(a){for(let b=this.stackTop;b>=0;b--)if(this.treeAdapter.getNamespaceURI(this.items[b])===zB.HTML)switch(this.tagIDs[b]){case a:return!0;case zF.TABLE:case zF.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let a=this.stackTop;a>=0;a--)if(this.treeAdapter.getNamespaceURI(this.items[a])===zB.HTML)switch(this.tagIDs[a]){case zF.TBODY:case zF.THEAD:case zF.TFOOT:return!0;case zF.TABLE:case zF.HTML:return!1}return!0}hasInSelectScope(a){for(let b=this.stackTop;b>=0;b--)if(this.treeAdapter.getNamespaceURI(this.items[b])===zB.HTML)switch(this.tagIDs[b]){case a:return!0;case zF.OPTION:case zF.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;void 0!==this.currentTagId&&is.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;void 0!==this.currentTagId&&it.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(a){for(;void 0!==this.currentTagId&&this.currentTagId!==a&&it.has(this.currentTagId);)this.pop()}}(zd=zH||(zH={}))[zd.Marker=0]="Marker",zd[zd.Element=1]="Element";let iE={type:zH.Marker};class iF{constructor(a){this.treeAdapter=a,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(a,b){let c=[],d=b.length,e=this.treeAdapter.getTagName(a),f=this.treeAdapter.getNamespaceURI(a);for(let a=0;a<this.entries.length;a++){let b=this.entries[a];if(b.type===zH.Marker)break;let{element:g}=b;if(this.treeAdapter.getTagName(g)===e&&this.treeAdapter.getNamespaceURI(g)===f){let b=this.treeAdapter.getAttrList(g);b.length===d&&c.push({idx:a,attrs:b})}}return c}_ensureNoahArkCondition(a){if(this.entries.length<3)return;let b=this.treeAdapter.getAttrList(a),c=this._getNoahArkConditionCandidates(a,b);if(c.length<3)return;let d=new Map(b.map(a=>[a.name,a.value])),e=0;for(let a=0;a<c.length;a++){let b=c[a];b.attrs.every(a=>d.get(a.name)===a.value)&&(e+=1)>=3&&this.entries.splice(b.idx,1)}}insertMarker(){this.entries.unshift(iE)}pushElement(a,b){this._ensureNoahArkCondition(a),this.entries.unshift({type:zH.Element,element:a,token:b})}insertElementAfterBookmark(a,b){let c=this.entries.indexOf(this.bookmark);this.entries.splice(c,0,{type:zH.Element,element:a,token:b})}removeEntry(a){let b=this.entries.indexOf(a);-1!==b&&this.entries.splice(b,1)}clearToLastMarker(){let a=this.entries.indexOf(iE);-1===a?this.entries.length=0:this.entries.splice(0,a+1)}getElementEntryInScopeWithTagName(a){let b=this.entries.find(b=>b.type===zH.Marker||this.treeAdapter.getTagName(b.element)===a);return b&&b.type===zH.Element?b:null}getElementEntry(a){return this.entries.find(b=>b.type===zH.Element&&b.element===a)}}let iG={createDocument:()=>({nodeName:"#document",mode:zD.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(a,b,c)=>({nodeName:a,tagName:a,attrs:c,namespaceURI:b,childNodes:[],parentNode:null}),createCommentNode:a=>({nodeName:"#comment",data:a,parentNode:null}),createTextNode:a=>({nodeName:"#text",value:a,parentNode:null}),appendChild(a,b){a.childNodes.push(b),b.parentNode=a},insertBefore(a,b,c){let d=a.childNodes.indexOf(c);a.childNodes.splice(d,0,b),b.parentNode=a},setTemplateContent(a,b){a.content=b},getTemplateContent:a=>a.content,setDocumentType(a,b,c,d){let e=a.childNodes.find(a=>"#documentType"===a.nodeName);e?(e.name=b,e.publicId=c,e.systemId=d):iG.appendChild(a,{nodeName:"#documentType",name:b,publicId:c,systemId:d,parentNode:null})},setDocumentMode(a,b){a.mode=b},getDocumentMode:a=>a.mode,detachNode(a){if(a.parentNode){let b=a.parentNode.childNodes.indexOf(a);a.parentNode.childNodes.splice(b,1),a.parentNode=null}},insertText(a,b){if(a.childNodes.length>0){let c=a.childNodes[a.childNodes.length-1];if(iG.isTextNode(c)){c.value+=b;return}}iG.appendChild(a,iG.createTextNode(b))},insertTextBefore(a,b,c){let d=a.childNodes[a.childNodes.indexOf(c)-1];d&&iG.isTextNode(d)?d.value+=b:iG.insertBefore(a,iG.createTextNode(b),c)},adoptAttributes(a,b){let c=new Set(a.attrs.map(a=>a.name));for(let d=0;d<b.length;d++)c.has(b[d].name)||a.attrs.push(b[d])},getFirstChild:a=>a.childNodes[0],getChildNodes:a=>a.childNodes,getParentNode:a=>a.parentNode,getAttrList:a=>a.attrs,getTagName:a=>a.tagName,getNamespaceURI:a=>a.namespaceURI,getTextNodeContent:a=>a.value,getCommentNodeContent:a=>a.data,getDocumentTypeNodeName:a=>a.name,getDocumentTypeNodePublicId:a=>a.publicId,getDocumentTypeNodeSystemId:a=>a.systemId,isTextNode:a=>"#text"===a.nodeName,isCommentNode:a=>"#comment"===a.nodeName,isDocumentTypeNode:a=>"#documentType"===a.nodeName,isElementNode:a=>Object.prototype.hasOwnProperty.call(a,"tagName"),setNodeSourceCodeLocation(a,b){a.sourceCodeLocation=b},getNodeSourceCodeLocation:a=>a.sourceCodeLocation,updateNodeSourceCodeLocation(a,b){a.sourceCodeLocation={...a.sourceCodeLocation,...b}}},iH="html",iI=["+//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//"],iJ=[...iI,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],iK=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),iL=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],iM=[...iL,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function iN(a,b){return b.some(b=>a.startsWith(b))}let iO=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(a=>[a.toLowerCase(),a])),iP=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:zB.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:zB.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:zB.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:zB.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:zB.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:zB.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:zB.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:zB.XML}],["xml:space",{prefix:"xml",name:"space",namespace:zB.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:zB.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:zB.XMLNS}]]),iQ=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(a=>[a.toLowerCase(),a])),iR=new Set([zF.B,zF.BIG,zF.BLOCKQUOTE,zF.BODY,zF.BR,zF.CENTER,zF.CODE,zF.DD,zF.DIV,zF.DL,zF.DT,zF.EM,zF.EMBED,zF.H1,zF.H2,zF.H3,zF.H4,zF.H5,zF.H6,zF.HEAD,zF.HR,zF.I,zF.IMG,zF.LI,zF.LISTING,zF.MENU,zF.META,zF.NOBR,zF.OL,zF.P,zF.PRE,zF.RUBY,zF.S,zF.SMALL,zF.SPAN,zF.STRONG,zF.STRIKE,zF.SUB,zF.SUP,zF.TABLE,zF.TT,zF.U,zF.UL,zF.VAR]);function iS(a){for(let b=0;b<a.attrs.length;b++)if("definitionurl"===a.attrs[b].name){a.attrs[b].name="definitionURL";break}}function iT(a){for(let b=0;b<a.attrs.length;b++){let c=iO.get(a.attrs[b].name);null!=c&&(a.attrs[b].name=c)}}function iU(a){for(let b=0;b<a.attrs.length;b++){let c=iP.get(a.attrs[b].name);c&&(a.attrs[b].prefix=c.prefix,a.attrs[b].name=c.name,a.attrs[b].namespace=c.namespace)}}(ze=zI||(zI={}))[ze.INITIAL=0]="INITIAL",ze[ze.BEFORE_HTML=1]="BEFORE_HTML",ze[ze.BEFORE_HEAD=2]="BEFORE_HEAD",ze[ze.IN_HEAD=3]="IN_HEAD",ze[ze.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",ze[ze.AFTER_HEAD=5]="AFTER_HEAD",ze[ze.IN_BODY=6]="IN_BODY",ze[ze.TEXT=7]="TEXT",ze[ze.IN_TABLE=8]="IN_TABLE",ze[ze.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",ze[ze.IN_CAPTION=10]="IN_CAPTION",ze[ze.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",ze[ze.IN_TABLE_BODY=12]="IN_TABLE_BODY",ze[ze.IN_ROW=13]="IN_ROW",ze[ze.IN_CELL=14]="IN_CELL",ze[ze.IN_SELECT=15]="IN_SELECT",ze[ze.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",ze[ze.IN_TEMPLATE=17]="IN_TEMPLATE",ze[ze.AFTER_BODY=18]="AFTER_BODY",ze[ze.IN_FRAMESET=19]="IN_FRAMESET",ze[ze.AFTER_FRAMESET=20]="AFTER_FRAMESET",ze[ze.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",ze[ze.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET";let iV={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},iW=new Set([zF.TABLE,zF.TBODY,zF.TFOOT,zF.THEAD,zF.TR]),iX={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:iG,onParseError:null};class iY{constructor(a,b,c=null,d=null){this.fragmentContext=c,this.scriptHandler=d,this.currentToken=null,this.stopped=!1,this.insertionMode=zI.INITIAL,this.originalInsertionMode=zI.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={...iX,...a},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=b?b:this.treeAdapter.createDocument(),this.tokenizer=new ir(this.options,this),this.activeFormattingElements=new iF(this.treeAdapter),this.fragmentContextID=c?ig(this.treeAdapter.getTagName(c)):zF.UNKNOWN,this._setContextModes(null!=c?c:this.document,this.fragmentContextID),this.openElements=new iD(this.document,this.treeAdapter,this)}static parse(a,b){let c=new this(b);return c.tokenizer.write(a,!0),c.document}static getFragmentParser(a,b){let c={...iX,...b};null!=a||(a=c.treeAdapter.createElement(zE.TEMPLATE,zB.HTML,[]));let d=c.treeAdapter.createElement("documentmock",zB.HTML,[]),e=new this(c,d,a);return e.fragmentContextID===zF.TEMPLATE&&e.tmplInsertionModeStack.unshift(zI.IN_TEMPLATE),e._initTokenizerForFragmentParsing(),e._insertFakeRootElement(),e._resetInsertionMode(),e._findFormInFragmentContext(),e}getFragment(){let a=this.treeAdapter.getFirstChild(this.document),b=this.treeAdapter.createDocumentFragment();return this._adoptNodes(a,b),b}_err(a,b,c){var d;if(!this.onParseError)return;let e=null!=(d=a.location)?d:iV,f={code:b,startLine:e.startLine,startCol:e.startCol,startOffset:e.startOffset,endLine:c?e.startLine:e.endLine,endCol:c?e.startCol:e.endCol,endOffset:c?e.startOffset:e.endOffset};this.onParseError(f)}onItemPush(a,b,c){var d,e;null==(e=(d=this.treeAdapter).onItemPush)||e.call(d,a),c&&this.openElements.stackTop>0&&this._setContextModes(a,b)}onItemPop(a,b){var c,d;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(a,this.currentToken),null==(d=(c=this.treeAdapter).onItemPop)||d.call(c,a,this.openElements.current),b){let a,b;0===this.openElements.stackTop&&this.fragmentContext?(a=this.fragmentContext,b=this.fragmentContextID):{current:a,currentTagId:b}=this.openElements,this._setContextModes(a,b)}}_setContextModes(a,b){let c=a===this.document||a&&this.treeAdapter.getNamespaceURI(a)===zB.HTML;this.currentNotInHTML=!c,this.tokenizer.inForeignNode=!c&&void 0!==a&&void 0!==b&&!this._isIntegrationPoint(b,a)}_switchToTextParsing(a,b){this._insertElement(a,zB.HTML),this.tokenizer.state=b,this.originalInsertionMode=this.insertionMode,this.insertionMode=zI.TEXT}switchToPlaintextParsing(){this.insertionMode=zI.TEXT,this.originalInsertionMode=zI.IN_BODY,this.tokenizer.state=ik.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let a=this.fragmentContext;for(;a;){if(this.treeAdapter.getTagName(a)===zE.FORM){this.formElement=a;break}a=this.treeAdapter.getParentNode(a)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===zB.HTML)switch(this.fragmentContextID){case zF.TITLE:case zF.TEXTAREA:this.tokenizer.state=ik.RCDATA;break;case zF.STYLE:case zF.XMP:case zF.IFRAME:case zF.NOEMBED:case zF.NOFRAMES:case zF.NOSCRIPT:this.tokenizer.state=ik.RAWTEXT;break;case zF.SCRIPT:this.tokenizer.state=ik.SCRIPT_DATA;break;case zF.PLAINTEXT:this.tokenizer.state=ik.PLAINTEXT}}_setDocumentType(a){let b=a.name||"",c=a.publicId||"",d=a.systemId||"";if(this.treeAdapter.setDocumentType(this.document,b,c,d),a.location){let b=this.treeAdapter.getChildNodes(this.document).find(a=>this.treeAdapter.isDocumentTypeNode(a));b&&this.treeAdapter.setNodeSourceCodeLocation(b,a.location)}}_attachElementToTree(a,b){if(this.options.sourceCodeLocationInfo){let c=b&&{...b,startTag:b};this.treeAdapter.setNodeSourceCodeLocation(a,c)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(a);else{let b=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(null!=b?b:this.document,a)}}_appendElement(a,b){let c=this.treeAdapter.createElement(a.tagName,b,a.attrs);this._attachElementToTree(c,a.location)}_insertElement(a,b){let c=this.treeAdapter.createElement(a.tagName,b,a.attrs);this._attachElementToTree(c,a.location),this.openElements.push(c,a.tagID)}_insertFakeElement(a,b){let c=this.treeAdapter.createElement(a,zB.HTML,[]);this._attachElementToTree(c,null),this.openElements.push(c,b)}_insertTemplate(a){let b=this.treeAdapter.createElement(a.tagName,zB.HTML,a.attrs),c=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(b,c),this._attachElementToTree(b,a.location),this.openElements.push(b,a.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(c,null)}_insertFakeRootElement(){let a=this.treeAdapter.createElement(zE.HTML,zB.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,null),this.treeAdapter.appendChild(this.openElements.current,a),this.openElements.push(a,zF.HTML)}_appendCommentNode(a,b){let c=this.treeAdapter.createCommentNode(a.data);this.treeAdapter.appendChild(b,c),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(c,a.location)}_insertCharacters(a){let b,c;if(this._shouldFosterParentOnInsertion()?({parent:b,beforeElement:c}=this._findFosterParentingLocation(),c?this.treeAdapter.insertTextBefore(b,a.chars,c):this.treeAdapter.insertText(b,a.chars)):(b=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(b,a.chars)),!a.location)return;let d=this.treeAdapter.getChildNodes(b),e=c?d.lastIndexOf(c):d.length,f=d[e-1];if(this.treeAdapter.getNodeSourceCodeLocation(f)){let{endLine:b,endCol:c,endOffset:d}=a.location;this.treeAdapter.updateNodeSourceCodeLocation(f,{endLine:b,endCol:c,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(f,a.location)}_adoptNodes(a,b){for(let c=this.treeAdapter.getFirstChild(a);c;c=this.treeAdapter.getFirstChild(a))this.treeAdapter.detachNode(c),this.treeAdapter.appendChild(b,c)}_setEndLocation(a,b){if(this.treeAdapter.getNodeSourceCodeLocation(a)&&b.location){let c=b.location,d=this.treeAdapter.getTagName(a),e=b.type===zA.END_TAG&&d===b.tagName?{endTag:{...c},endLine:c.endLine,endCol:c.endCol,endOffset:c.endOffset}:{endLine:c.startLine,endCol:c.startCol,endOffset:c.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(a,e)}}shouldProcessStartTagTokenInForeignContent(a){let b,c;return!!this.currentNotInHTML&&(0===this.openElements.stackTop&&this.fragmentContext?(b=this.fragmentContext,c=this.fragmentContextID):{current:b,currentTagId:c}=this.openElements,(a.tagID!==zF.SVG||this.treeAdapter.getTagName(b)!==zE.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(b)!==zB.MATHML)&&(this.tokenizer.inForeignNode||(a.tagID===zF.MGLYPH||a.tagID===zF.MALIGNMARK)&&void 0!==c&&!this._isIntegrationPoint(c,b,zB.HTML)))}_processToken(a){switch(a.type){case zA.CHARACTER:this.onCharacter(a);break;case zA.NULL_CHARACTER:this.onNullCharacter(a);break;case zA.COMMENT:this.onComment(a);break;case zA.DOCTYPE:this.onDoctype(a);break;case zA.START_TAG:this._processStartTag(a);break;case zA.END_TAG:this.onEndTag(a);break;case zA.EOF:this.onEof(a);break;case zA.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(a)}}_isIntegrationPoint(a,b,c){let d=this.treeAdapter.getNamespaceURI(b),e=this.treeAdapter.getAttrList(b);return(!c||c===zB.HTML)&&function(a,b,c){if(b===zB.MATHML&&a===zF.ANNOTATION_XML){for(let a=0;a<c.length;a++)if(c[a].name===zC.ENCODING){let b=c[a].value.toLowerCase();return"text/html"===b||"application/xhtml+xml"===b}}return b===zB.SVG&&(a===zF.FOREIGN_OBJECT||a===zF.DESC||a===zF.TITLE)}(a,d,e)||(!c||c===zB.MATHML)&&d===zB.MATHML&&(a===zF.MI||a===zF.MO||a===zF.MN||a===zF.MS||a===zF.MTEXT)}_reconstructActiveFormattingElements(){let a=this.activeFormattingElements.entries.length;if(a){let b=this.activeFormattingElements.entries.findIndex(a=>a.type===zH.Marker||this.openElements.contains(a.element)),c=-1===b?a-1:b-1;for(let a=c;a>=0;a--){let b=this.activeFormattingElements.entries[a];this._insertElement(b.token,this.treeAdapter.getNamespaceURI(b.element)),b.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=zI.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(zF.P),this.openElements.popUntilTagNamePopped(zF.P)}_resetInsertionMode(){for(let a=this.openElements.stackTop;a>=0;a--)switch(0===a&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[a]){case zF.TR:this.insertionMode=zI.IN_ROW;return;case zF.TBODY:case zF.THEAD:case zF.TFOOT:this.insertionMode=zI.IN_TABLE_BODY;return;case zF.CAPTION:this.insertionMode=zI.IN_CAPTION;return;case zF.COLGROUP:this.insertionMode=zI.IN_COLUMN_GROUP;return;case zF.TABLE:this.insertionMode=zI.IN_TABLE;return;case zF.BODY:this.insertionMode=zI.IN_BODY;return;case zF.FRAMESET:this.insertionMode=zI.IN_FRAMESET;return;case zF.SELECT:return void this._resetInsertionModeForSelect(a);case zF.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case zF.HTML:this.insertionMode=this.headElement?zI.AFTER_HEAD:zI.BEFORE_HEAD;return;case zF.TD:case zF.TH:if(a>0){this.insertionMode=zI.IN_CELL;return}break;case zF.HEAD:if(a>0){this.insertionMode=zI.IN_HEAD;return}}this.insertionMode=zI.IN_BODY}_resetInsertionModeForSelect(a){if(a>0)for(let b=a-1;b>0;b--){let a=this.openElements.tagIDs[b];if(a===zF.TEMPLATE)break;if(a===zF.TABLE){this.insertionMode=zI.IN_SELECT_IN_TABLE;return}}this.insertionMode=zI.IN_SELECT}_isElementCausesFosterParenting(a){return iW.has(a)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&void 0!==this.openElements.currentTagId&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let a=this.openElements.stackTop;a>=0;a--){let b=this.openElements.items[a];switch(this.openElements.tagIDs[a]){case zF.TEMPLATE:if(this.treeAdapter.getNamespaceURI(b)===zB.HTML)return{parent:this.treeAdapter.getTemplateContent(b),beforeElement:null};break;case zF.TABLE:{let c=this.treeAdapter.getParentNode(b);if(c)return{parent:c,beforeElement:b};return{parent:this.openElements.items[a-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(a){let b=this._findFosterParentingLocation();b.beforeElement?this.treeAdapter.insertBefore(b.parent,a,b.beforeElement):this.treeAdapter.appendChild(b.parent,a)}_isSpecialElement(a,b){return ii[this.treeAdapter.getNamespaceURI(a)].has(b)}onCharacter(a){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){var b,c;return void(b=this,c=a,b._insertCharacters(c),b.framesetOk=!1)}switch(this.insertionMode){case zI.INITIAL:i0(this,a);break;case zI.BEFORE_HTML:i1(this,a);break;case zI.BEFORE_HEAD:i2(this,a);break;case zI.IN_HEAD:i5(this,a);break;case zI.IN_HEAD_NO_SCRIPT:i6(this,a);break;case zI.AFTER_HEAD:i7(this,a);break;case zI.IN_BODY:case zI.IN_CAPTION:case zI.IN_CELL:case zI.IN_TEMPLATE:ja(this,a);break;case zI.TEXT:case zI.IN_SELECT:case zI.IN_SELECT_IN_TABLE:this._insertCharacters(a);break;case zI.IN_TABLE:case zI.IN_TABLE_BODY:case zI.IN_ROW:jj(this,a);break;case zI.IN_TABLE_TEXT:jo(this,a);break;case zI.IN_COLUMN_GROUP:js(this,a);break;case zI.AFTER_BODY:jB(this,a);break;case zI.AFTER_AFTER_BODY:jC(this,a)}}onNullCharacter(a){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){var b,c;return void(b=this,(c=a).chars="�",b._insertCharacters(c))}switch(this.insertionMode){case zI.INITIAL:i0(this,a);break;case zI.BEFORE_HTML:i1(this,a);break;case zI.BEFORE_HEAD:i2(this,a);break;case zI.IN_HEAD:i5(this,a);break;case zI.IN_HEAD_NO_SCRIPT:i6(this,a);break;case zI.AFTER_HEAD:i7(this,a);break;case zI.TEXT:this._insertCharacters(a);break;case zI.IN_TABLE:case zI.IN_TABLE_BODY:case zI.IN_ROW:jj(this,a);break;case zI.IN_COLUMN_GROUP:js(this,a);break;case zI.AFTER_BODY:jB(this,a);break;case zI.AFTER_AFTER_BODY:jC(this,a)}}onComment(a){var b,c,d,e;if(this.skipNextNewLine=!1,this.currentNotInHTML)return void i$(this,a);switch(this.insertionMode){case zI.INITIAL:case zI.BEFORE_HTML:case zI.BEFORE_HEAD:case zI.IN_HEAD:case zI.IN_HEAD_NO_SCRIPT:case zI.AFTER_HEAD:case zI.IN_BODY:case zI.IN_TABLE:case zI.IN_CAPTION:case zI.IN_COLUMN_GROUP:case zI.IN_TABLE_BODY:case zI.IN_ROW:case zI.IN_CELL:case zI.IN_SELECT:case zI.IN_SELECT_IN_TABLE:case zI.IN_TEMPLATE:case zI.IN_FRAMESET:case zI.AFTER_FRAMESET:i$(this,a);break;case zI.IN_TABLE_TEXT:jp(this,a);break;case zI.AFTER_BODY:b=this,c=a,b._appendCommentNode(c,b.openElements.items[0]);break;case zI.AFTER_AFTER_BODY:case zI.AFTER_AFTER_FRAMESET:d=this,e=a,d._appendCommentNode(e,d.document)}}onDoctype(a){switch(this.skipNextNewLine=!1,this.insertionMode){case zI.INITIAL:!function(a,b){a._setDocumentType(b);let c=b.forceQuirks?zD.QUIRKS:function(a){if(a.name!==iH)return zD.QUIRKS;let{systemId:b}=a;if(b&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===b.toLowerCase())return zD.QUIRKS;let{publicId:c}=a;if(null!==c){if(c=c.toLowerCase(),iK.has(c))return zD.QUIRKS;let a=null===b?iJ:iI;if(iN(c,a))return zD.QUIRKS;if(iN(c,a=null===b?iL:iM))return zD.LIMITED_QUIRKS}return zD.NO_QUIRKS}(b);(b.name!==iH||null!==b.publicId||null!==b.systemId&&"about:legacy-compat"!==b.systemId)&&a._err(b,zz.nonConformingDoctype),a.treeAdapter.setDocumentMode(a.document,c),a.insertionMode=zI.BEFORE_HTML}(this,a);break;case zI.BEFORE_HEAD:case zI.IN_HEAD:case zI.IN_HEAD_NO_SCRIPT:case zI.AFTER_HEAD:this._err(a,zz.misplacedDoctype);break;case zI.IN_TABLE_TEXT:jp(this,a)}}onStartTag(a){this.skipNextNewLine=!1,this.currentToken=a,this._processStartTag(a),a.selfClosing&&!a.ackSelfClosing&&this._err(a,zz.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(a){this.shouldProcessStartTagTokenInForeignContent(a)?function(a,b){let c;if((c=b.tagID)===zF.FONT&&b.attrs.some(({name:a})=>a===zC.COLOR||a===zC.SIZE||a===zC.FACE)||iR.has(c))jD(a),a._startTagOutsideForeignContent(b);else{let c=a._getAdjustedCurrentElement(),d=a.treeAdapter.getNamespaceURI(c);if(d===zB.MATHML)iS(b);else if(d===zB.SVG){let a;null!=(a=iQ.get(b.tagName))&&(b.tagName=a,b.tagID=ig(b.tagName)),iT(b)}iU(b),b.selfClosing?a._appendElement(b,d):a._insertElement(b,d),b.ackSelfClosing=!0}}(this,a):this._startTagOutsideForeignContent(a)}_startTagOutsideForeignContent(a){switch(this.insertionMode){case zI.INITIAL:i0(this,a);break;case zI.BEFORE_HTML:b=this,(c=a).tagID===zF.HTML?(b._insertElement(c,zB.HTML),b.insertionMode=zI.BEFORE_HEAD):i1(b,c);break;case zI.BEFORE_HEAD:var b,c,d,e,f,g,h,i,j,k,l,m,n=this,o=a;switch(o.tagID){case zF.HTML:jf(n,o);break;case zF.HEAD:n._insertElement(o,zB.HTML),n.headElement=n.openElements.current,n.insertionMode=zI.IN_HEAD;break;default:i2(n,o)}break;case zI.IN_HEAD:i3(this,a);break;case zI.IN_HEAD_NO_SCRIPT:var p=this,q=a;switch(q.tagID){case zF.HTML:jf(p,q);break;case zF.BASEFONT:case zF.BGSOUND:case zF.HEAD:case zF.LINK:case zF.META:case zF.NOFRAMES:case zF.STYLE:i3(p,q);break;case zF.NOSCRIPT:p._err(q,zz.nestedNoscriptInHead);break;default:i6(p,q)}break;case zI.AFTER_HEAD:var r=this,s=a;switch(s.tagID){case zF.HTML:jf(r,s);break;case zF.BODY:r._insertElement(s,zB.HTML),r.framesetOk=!1,r.insertionMode=zI.IN_BODY;break;case zF.FRAMESET:r._insertElement(s,zB.HTML),r.insertionMode=zI.IN_FRAMESET;break;case zF.BASE:case zF.BASEFONT:case zF.BGSOUND:case zF.LINK:case zF.META:case zF.NOFRAMES:case zF.SCRIPT:case zF.STYLE:case zF.TEMPLATE:case zF.TITLE:r._err(s,zz.abandonedHeadElementChild),r.openElements.push(r.headElement,zF.HEAD),i3(r,s),r.openElements.remove(r.headElement);break;case zF.HEAD:r._err(s,zz.misplacedStartTagForHeadElement);break;default:i7(r,s)}break;case zI.IN_BODY:jf(this,a);break;case zI.IN_TABLE:jk(this,a);break;case zI.IN_TABLE_TEXT:jp(this,a);break;case zI.IN_CAPTION:let t;d=this,t=(e=a).tagID,jq.has(t)?d.openElements.hasInTableScope(zF.CAPTION)&&(d.openElements.generateImpliedEndTags(),d.openElements.popUntilTagNamePopped(zF.CAPTION),d.activeFormattingElements.clearToLastMarker(),d.insertionMode=zI.IN_TABLE,jk(d,e)):jf(d,e);break;case zI.IN_COLUMN_GROUP:jr(this,a);break;case zI.IN_TABLE_BODY:jt(this,a);break;case zI.IN_ROW:jv(this,a);break;case zI.IN_CELL:let u;f=this,u=(g=a).tagID,jq.has(u)?(f.openElements.hasInTableScope(zF.TD)||f.openElements.hasInTableScope(zF.TH))&&(f._closeTableCell(),jv(f,g)):jf(f,g);break;case zI.IN_SELECT:jx(this,a);break;case zI.IN_SELECT_IN_TABLE:let v;h=this,(v=(i=a).tagID)===zF.CAPTION||v===zF.TABLE||v===zF.TBODY||v===zF.TFOOT||v===zF.THEAD||v===zF.TR||v===zF.TD||v===zF.TH?(h.openElements.popUntilTagNamePopped(zF.SELECT),h._resetInsertionMode(),h._processStartTag(i)):jx(h,i);break;case zI.IN_TEMPLATE:var w=this,x=a;switch(x.tagID){case zF.BASE:case zF.BASEFONT:case zF.BGSOUND:case zF.LINK:case zF.META:case zF.NOFRAMES:case zF.SCRIPT:case zF.STYLE:case zF.TEMPLATE:case zF.TITLE:i3(w,x);break;case zF.CAPTION:case zF.COLGROUP:case zF.TBODY:case zF.TFOOT:case zF.THEAD:w.tmplInsertionModeStack[0]=zI.IN_TABLE,w.insertionMode=zI.IN_TABLE,jk(w,x);break;case zF.COL:w.tmplInsertionModeStack[0]=zI.IN_COLUMN_GROUP,w.insertionMode=zI.IN_COLUMN_GROUP,jr(w,x);break;case zF.TR:w.tmplInsertionModeStack[0]=zI.IN_TABLE_BODY,w.insertionMode=zI.IN_TABLE_BODY,jt(w,x);break;case zF.TD:case zF.TH:w.tmplInsertionModeStack[0]=zI.IN_ROW,w.insertionMode=zI.IN_ROW,jv(w,x);break;default:w.tmplInsertionModeStack[0]=zI.IN_BODY,w.insertionMode=zI.IN_BODY,jf(w,x)}break;case zI.AFTER_BODY:j=this,(k=a).tagID===zF.HTML?jf(j,k):jB(j,k);break;case zI.IN_FRAMESET:var y=this,z=a;switch(z.tagID){case zF.HTML:jf(y,z);break;case zF.FRAMESET:y._insertElement(z,zB.HTML);break;case zF.FRAME:y._appendElement(z,zB.HTML),z.ackSelfClosing=!0;break;case zF.NOFRAMES:i3(y,z)}break;case zI.AFTER_FRAMESET:var A=this,B=a;switch(B.tagID){case zF.HTML:jf(A,B);break;case zF.NOFRAMES:i3(A,B)}break;case zI.AFTER_AFTER_BODY:l=this,(m=a).tagID===zF.HTML?jf(l,m):jC(l,m);break;case zI.AFTER_AFTER_FRAMESET:var C=this,D=a;switch(D.tagID){case zF.HTML:jf(C,D);break;case zF.NOFRAMES:i3(C,D)}}}onEndTag(a){this.skipNextNewLine=!1,this.currentToken=a,this.currentNotInHTML?function(a,b){if(b.tagID===zF.P||b.tagID===zF.BR){jD(a),a._endTagOutsideForeignContent(b);return}for(let c=a.openElements.stackTop;c>0;c--){let d=a.openElements.items[c];if(a.treeAdapter.getNamespaceURI(d)===zB.HTML){a._endTagOutsideForeignContent(b);break}let e=a.treeAdapter.getTagName(d);if(e.toLowerCase()===b.tagName){b.tagName=e,a.openElements.shortenToLength(c);break}}}(this,a):this._endTagOutsideForeignContent(a)}_endTagOutsideForeignContent(a){switch(this.insertionMode){case zI.INITIAL:i0(this,a);break;case zI.BEFORE_HTML:let b;d=this,((b=(e=a).tagID)===zF.HTML||b===zF.HEAD||b===zF.BODY||b===zF.BR)&&i1(d,e);break;case zI.BEFORE_HEAD:let c;f=this,(c=(g=a).tagID)===zF.HEAD||c===zF.BODY||c===zF.HTML||c===zF.BR?i2(f,g):f._err(g,zz.endTagWithoutMatchingOpenElement);break;case zI.IN_HEAD:var d,e,f,g,h,i,j,k,l,m,n,o,p=this,q=a;switch(q.tagID){case zF.HEAD:p.openElements.pop(),p.insertionMode=zI.AFTER_HEAD;break;case zF.BODY:case zF.BR:case zF.HTML:i5(p,q);break;case zF.TEMPLATE:i4(p,q);break;default:p._err(q,zz.endTagWithoutMatchingOpenElement)}break;case zI.IN_HEAD_NO_SCRIPT:var r=this,s=a;switch(s.tagID){case zF.NOSCRIPT:r.openElements.pop(),r.insertionMode=zI.IN_HEAD;break;case zF.BR:i6(r,s);break;default:r._err(s,zz.endTagWithoutMatchingOpenElement)}break;case zI.AFTER_HEAD:var t=this,u=a;switch(u.tagID){case zF.BODY:case zF.HTML:case zF.BR:i7(t,u);break;case zF.TEMPLATE:i4(t,u);break;default:t._err(u,zz.endTagWithoutMatchingOpenElement)}break;case zI.IN_BODY:jh(this,a);break;case zI.TEXT:h=this,a.tagID===zF.SCRIPT&&(null==(i=h.scriptHandler)||i.call(h,h.openElements.current)),h.openElements.pop(),h.insertionMode=h.originalInsertionMode;break;case zI.IN_TABLE:jl(this,a);break;case zI.IN_TABLE_TEXT:jp(this,a);break;case zI.IN_CAPTION:var v=this,w=a;let x=w.tagID;switch(x){case zF.CAPTION:case zF.TABLE:v.openElements.hasInTableScope(zF.CAPTION)&&(v.openElements.generateImpliedEndTags(),v.openElements.popUntilTagNamePopped(zF.CAPTION),v.activeFormattingElements.clearToLastMarker(),v.insertionMode=zI.IN_TABLE,x===zF.TABLE&&jl(v,w));break;case zF.BODY:case zF.COL:case zF.COLGROUP:case zF.HTML:case zF.TBODY:case zF.TD:case zF.TFOOT:case zF.TH:case zF.THEAD:case zF.TR:break;default:jh(v,w)}break;case zI.IN_COLUMN_GROUP:var y=this,z=a;switch(z.tagID){case zF.COLGROUP:y.openElements.currentTagId===zF.COLGROUP&&(y.openElements.pop(),y.insertionMode=zI.IN_TABLE);break;case zF.TEMPLATE:i4(y,z);break;case zF.COL:break;default:js(y,z)}break;case zI.IN_TABLE_BODY:ju(this,a);break;case zI.IN_ROW:jw(this,a);break;case zI.IN_CELL:var A=this,B=a;let C=B.tagID;switch(C){case zF.TD:case zF.TH:A.openElements.hasInTableScope(C)&&(A.openElements.generateImpliedEndTags(),A.openElements.popUntilTagNamePopped(C),A.activeFormattingElements.clearToLastMarker(),A.insertionMode=zI.IN_ROW);break;case zF.TABLE:case zF.TBODY:case zF.TFOOT:case zF.THEAD:case zF.TR:A.openElements.hasInTableScope(C)&&(A._closeTableCell(),jw(A,B));break;case zF.BODY:case zF.CAPTION:case zF.COL:case zF.COLGROUP:case zF.HTML:break;default:jh(A,B)}break;case zI.IN_SELECT:jy(this,a);break;case zI.IN_SELECT_IN_TABLE:let D;j=this,(D=(k=a).tagID)===zF.CAPTION||D===zF.TABLE||D===zF.TBODY||D===zF.TFOOT||D===zF.THEAD||D===zF.TR||D===zF.TD||D===zF.TH?j.openElements.hasInTableScope(D)&&(j.openElements.popUntilTagNamePopped(zF.SELECT),j._resetInsertionMode(),j.onEndTag(k)):jy(j,k);break;case zI.IN_TEMPLATE:l=this,(m=a).tagID===zF.TEMPLATE&&i4(l,m);break;case zI.AFTER_BODY:jA(this,a);break;case zI.IN_FRAMESET:n=this,a.tagID===zF.FRAMESET&&!n.openElements.isRootHtmlElementCurrent()&&(n.openElements.pop(),n.fragmentContext||n.openElements.currentTagId===zF.FRAMESET||(n.insertionMode=zI.AFTER_FRAMESET));break;case zI.AFTER_FRAMESET:o=this,a.tagID===zF.HTML&&(o.insertionMode=zI.AFTER_AFTER_FRAMESET);break;case zI.AFTER_AFTER_BODY:jC(this,a)}}onEof(a){switch(this.insertionMode){case zI.INITIAL:i0(this,a);break;case zI.BEFORE_HTML:i1(this,a);break;case zI.BEFORE_HEAD:i2(this,a);break;case zI.IN_HEAD:i5(this,a);break;case zI.IN_HEAD_NO_SCRIPT:i6(this,a);break;case zI.AFTER_HEAD:i7(this,a);break;case zI.IN_BODY:case zI.IN_TABLE:case zI.IN_CAPTION:case zI.IN_COLUMN_GROUP:case zI.IN_TABLE_BODY:case zI.IN_ROW:case zI.IN_CELL:case zI.IN_SELECT:case zI.IN_SELECT_IN_TABLE:ji(this,a);break;case zI.TEXT:var b,c;b=this,c=a,b._err(c,zz.eofInElementThatCanContainOnlyText),b.openElements.pop(),b.insertionMode=b.originalInsertionMode,b.onEof(c);break;case zI.IN_TABLE_TEXT:jp(this,a);break;case zI.IN_TEMPLATE:jz(this,a);break;case zI.AFTER_BODY:case zI.IN_FRAMESET:case zI.AFTER_FRAMESET:case zI.AFTER_AFTER_BODY:case zI.AFTER_AFTER_FRAMESET:i_(this,a)}}onWhitespaceCharacter(a){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,a.chars.charCodeAt(0)===zy.LINE_FEED)){if(1===a.chars.length)return;a.chars=a.chars.substr(1)}if(this.tokenizer.inForeignNode)return void this._insertCharacters(a);switch(this.insertionMode){case zI.IN_HEAD:case zI.IN_HEAD_NO_SCRIPT:case zI.AFTER_HEAD:case zI.TEXT:case zI.IN_COLUMN_GROUP:case zI.IN_SELECT:case zI.IN_SELECT_IN_TABLE:case zI.IN_FRAMESET:case zI.AFTER_FRAMESET:this._insertCharacters(a);break;case zI.IN_BODY:case zI.IN_CAPTION:case zI.IN_CELL:case zI.IN_TEMPLATE:case zI.AFTER_BODY:case zI.AFTER_AFTER_BODY:case zI.AFTER_AFTER_FRAMESET:i9(this,a);break;case zI.IN_TABLE:case zI.IN_TABLE_BODY:case zI.IN_ROW:jj(this,a);break;case zI.IN_TABLE_TEXT:jn(this,a)}}}function iZ(a,b){for(let c=0;c<8;c++){let c=function(a,b){let c=a.activeFormattingElements.getElementEntryInScopeWithTagName(b.tagName);return c?a.openElements.contains(c.element)?a.openElements.hasInScope(b.tagID)||(c=null):(a.activeFormattingElements.removeEntry(c),c=null):jg(a,b),c}(a,b);if(!c)break;let d=function(a,b){let c=null,d=a.openElements.stackTop;for(;d>=0;d--){let e=a.openElements.items[d];if(e===b.element)break;a._isSpecialElement(e,a.openElements.tagIDs[d])&&(c=e)}return c||(a.openElements.shortenToLength(Math.max(d,0)),a.activeFormattingElements.removeEntry(b)),c}(a,c);if(!d)break;a.activeFormattingElements.bookmark=c;let e=function(a,b,c){let d=b,e=a.openElements.getCommonAncestor(b);for(let f=0,g=e;g!==c;f++,g=e){e=a.openElements.getCommonAncestor(g);let c=a.activeFormattingElements.getElementEntry(g),h=c&&f>=3;!c||h?(h&&a.activeFormattingElements.removeEntry(c),a.openElements.remove(g)):(g=function(a,b){let c=a.treeAdapter.getNamespaceURI(b.element),d=a.treeAdapter.createElement(b.token.tagName,c,b.token.attrs);return a.openElements.replace(b.element,d),b.element=d,d}(a,c),d===b&&(a.activeFormattingElements.bookmark=c),a.treeAdapter.detachNode(d),a.treeAdapter.appendChild(g,d),d=g)}return d}(a,d,c.element),f=a.openElements.getCommonAncestor(c.element);a.treeAdapter.detachNode(e),f&&function(a,b,c){let d=ig(a.treeAdapter.getTagName(b));if(a._isElementCausesFosterParenting(d))a._fosterParentElement(c);else{let e=a.treeAdapter.getNamespaceURI(b);d===zF.TEMPLATE&&e===zB.HTML&&(b=a.treeAdapter.getTemplateContent(b)),a.treeAdapter.appendChild(b,c)}}(a,f,e),function(a,b,c){let d=a.treeAdapter.getNamespaceURI(c.element),{token:e}=c,f=a.treeAdapter.createElement(e.tagName,d,e.attrs);a._adoptNodes(b,f),a.treeAdapter.appendChild(b,f),a.activeFormattingElements.insertElementAfterBookmark(f,e),a.activeFormattingElements.removeEntry(c),a.openElements.remove(c.element),a.openElements.insertAfter(b,f,e.tagID)}(a,d,c)}}function i$(a,b){a._appendCommentNode(b,a.openElements.currentTmplContentOrNode)}function i_(a,b){if(a.stopped=!0,b.location){let c=2*!a.fragmentContext;for(let d=a.openElements.stackTop;d>=c;d--)a._setEndLocation(a.openElements.items[d],b);if(!a.fragmentContext&&a.openElements.stackTop>=0){let c=a.openElements.items[0],d=a.treeAdapter.getNodeSourceCodeLocation(c);if(d&&!d.endTag&&(a._setEndLocation(c,b),a.openElements.stackTop>=1)){let c=a.openElements.items[1],d=a.treeAdapter.getNodeSourceCodeLocation(c);d&&!d.endTag&&a._setEndLocation(c,b)}}}}function i0(a,b){a._err(b,zz.missingDoctype,!0),a.treeAdapter.setDocumentMode(a.document,zD.QUIRKS),a.insertionMode=zI.BEFORE_HTML,a._processToken(b)}function i1(a,b){a._insertFakeRootElement(),a.insertionMode=zI.BEFORE_HEAD,a._processToken(b)}function i2(a,b){a._insertFakeElement(zE.HEAD,zF.HEAD),a.headElement=a.openElements.current,a.insertionMode=zI.IN_HEAD,a._processToken(b)}function i3(a,b){switch(b.tagID){case zF.HTML:jf(a,b);break;case zF.BASE:case zF.BASEFONT:case zF.BGSOUND:case zF.LINK:case zF.META:a._appendElement(b,zB.HTML),b.ackSelfClosing=!0;break;case zF.TITLE:a._switchToTextParsing(b,ik.RCDATA);break;case zF.NOSCRIPT:a.options.scriptingEnabled?a._switchToTextParsing(b,ik.RAWTEXT):(a._insertElement(b,zB.HTML),a.insertionMode=zI.IN_HEAD_NO_SCRIPT);break;case zF.NOFRAMES:case zF.STYLE:a._switchToTextParsing(b,ik.RAWTEXT);break;case zF.SCRIPT:a._switchToTextParsing(b,ik.SCRIPT_DATA);break;case zF.TEMPLATE:a._insertTemplate(b),a.activeFormattingElements.insertMarker(),a.framesetOk=!1,a.insertionMode=zI.IN_TEMPLATE,a.tmplInsertionModeStack.unshift(zI.IN_TEMPLATE);break;case zF.HEAD:a._err(b,zz.misplacedStartTagForHeadElement);break;default:i5(a,b)}}function i4(a,b){a.openElements.tmplCount>0?(a.openElements.generateImpliedEndTagsThoroughly(),a.openElements.currentTagId!==zF.TEMPLATE&&a._err(b,zz.closingOfElementWithOpenChildElements),a.openElements.popUntilTagNamePopped(zF.TEMPLATE),a.activeFormattingElements.clearToLastMarker(),a.tmplInsertionModeStack.shift(),a._resetInsertionMode()):a._err(b,zz.endTagWithoutMatchingOpenElement)}function i5(a,b){a.openElements.pop(),a.insertionMode=zI.AFTER_HEAD,a._processToken(b)}function i6(a,b){let c=b.type===zA.EOF?zz.openElementsLeftAfterEof:zz.disallowedContentInNoscriptInHead;a._err(b,c),a.openElements.pop(),a.insertionMode=zI.IN_HEAD,a._processToken(b)}function i7(a,b){a._insertFakeElement(zE.BODY,zF.BODY),a.insertionMode=zI.IN_BODY,i8(a,b)}function i8(a,b){switch(b.type){case zA.CHARACTER:ja(a,b);break;case zA.WHITESPACE_CHARACTER:i9(a,b);break;case zA.COMMENT:i$(a,b);break;case zA.START_TAG:jf(a,b);break;case zA.END_TAG:jh(a,b);break;case zA.EOF:ji(a,b)}}function i9(a,b){a._reconstructActiveFormattingElements(),a._insertCharacters(b)}function ja(a,b){a._reconstructActiveFormattingElements(),a._insertCharacters(b),a.framesetOk=!1}function jb(a,b){a._reconstructActiveFormattingElements(),a._appendElement(b,zB.HTML),a.framesetOk=!1,b.ackSelfClosing=!0}function jc(a){let b=id(a,zC.TYPE);return null!=b&&"hidden"===b.toLowerCase()}function jd(a,b){a._switchToTextParsing(b,ik.RAWTEXT)}function je(a,b){a._reconstructActiveFormattingElements(),a._insertElement(b,zB.HTML)}function jf(a,b){switch(b.tagID){case zF.I:case zF.S:case zF.B:case zF.U:case zF.EM:case zF.TT:case zF.BIG:case zF.CODE:case zF.FONT:case zF.SMALL:case zF.STRIKE:case zF.STRONG:a._reconstructActiveFormattingElements(),a._insertElement(b,zB.HTML),a.activeFormattingElements.pushElement(a.openElements.current,b);break;case zF.A:let c;(c=a.activeFormattingElements.getElementEntryInScopeWithTagName(zE.A))&&(iZ(a,b),a.openElements.remove(c.element),a.activeFormattingElements.removeEntry(c)),a._reconstructActiveFormattingElements(),a._insertElement(b,zB.HTML),a.activeFormattingElements.pushElement(a.openElements.current,b);break;case zF.H1:case zF.H2:case zF.H3:case zF.H4:case zF.H5:case zF.H6:a.openElements.hasInButtonScope(zF.P)&&a._closePElement(),void 0!==a.openElements.currentTagId&&ij.has(a.openElements.currentTagId)&&a.openElements.pop(),a._insertElement(b,zB.HTML);break;case zF.P:case zF.DL:case zF.OL:case zF.UL:case zF.DIV:case zF.DIR:case zF.NAV:case zF.MAIN:case zF.MENU:case zF.ASIDE:case zF.CENTER:case zF.FIGURE:case zF.FOOTER:case zF.HEADER:case zF.HGROUP:case zF.DIALOG:case zF.DETAILS:case zF.ADDRESS:case zF.ARTICLE:case zF.SEARCH:case zF.SECTION:case zF.SUMMARY:case zF.FIELDSET:case zF.BLOCKQUOTE:case zF.FIGCAPTION:a.openElements.hasInButtonScope(zF.P)&&a._closePElement(),a._insertElement(b,zB.HTML);break;case zF.LI:case zF.DD:case zF.DT:a.framesetOk=!1;let d=b.tagID;for(let b=a.openElements.stackTop;b>=0;b--){let c=a.openElements.tagIDs[b];if(d===zF.LI&&c===zF.LI||(d===zF.DD||d===zF.DT)&&(c===zF.DD||c===zF.DT)){a.openElements.generateImpliedEndTagsWithExclusion(c),a.openElements.popUntilTagNamePopped(c);break}if(c!==zF.ADDRESS&&c!==zF.DIV&&c!==zF.P&&a._isSpecialElement(a.openElements.items[b],c))break}a.openElements.hasInButtonScope(zF.P)&&a._closePElement(),a._insertElement(b,zB.HTML);break;case zF.BR:case zF.IMG:case zF.WBR:case zF.AREA:case zF.EMBED:case zF.KEYGEN:jb(a,b);break;case zF.HR:a.openElements.hasInButtonScope(zF.P)&&a._closePElement(),a._appendElement(b,zB.HTML),a.framesetOk=!1,b.ackSelfClosing=!0;break;case zF.RB:case zF.RTC:a.openElements.hasInScope(zF.RUBY)&&a.openElements.generateImpliedEndTags(),a._insertElement(b,zB.HTML);break;case zF.RT:case zF.RP:a.openElements.hasInScope(zF.RUBY)&&a.openElements.generateImpliedEndTagsWithExclusion(zF.RTC),a._insertElement(b,zB.HTML);break;case zF.PRE:case zF.LISTING:a.openElements.hasInButtonScope(zF.P)&&a._closePElement(),a._insertElement(b,zB.HTML),a.skipNextNewLine=!0,a.framesetOk=!1;break;case zF.XMP:a.openElements.hasInButtonScope(zF.P)&&a._closePElement(),a._reconstructActiveFormattingElements(),a.framesetOk=!1,a._switchToTextParsing(b,ik.RAWTEXT);break;case zF.SVG:a._reconstructActiveFormattingElements(),iT(b),iU(b),b.selfClosing?a._appendElement(b,zB.SVG):a._insertElement(b,zB.SVG),b.ackSelfClosing=!0;break;case zF.HTML:0===a.openElements.tmplCount&&a.treeAdapter.adoptAttributes(a.openElements.items[0],b.attrs);break;case zF.BASE:case zF.LINK:case zF.META:case zF.STYLE:case zF.TITLE:case zF.SCRIPT:case zF.BGSOUND:case zF.BASEFONT:case zF.TEMPLATE:i3(a,b);break;case zF.BODY:let e;(e=a.openElements.tryPeekProperlyNestedBodyElement())&&0===a.openElements.tmplCount&&(a.framesetOk=!1,a.treeAdapter.adoptAttributes(e,b.attrs));break;case zF.FORM:let f;f=a.openElements.tmplCount>0,(!a.formElement||f)&&(a.openElements.hasInButtonScope(zF.P)&&a._closePElement(),a._insertElement(b,zB.HTML),f||(a.formElement=a.openElements.current));break;case zF.NOBR:a._reconstructActiveFormattingElements(),a.openElements.hasInScope(zF.NOBR)&&(iZ(a,b),a._reconstructActiveFormattingElements()),a._insertElement(b,zB.HTML),a.activeFormattingElements.pushElement(a.openElements.current,b);break;case zF.MATH:a._reconstructActiveFormattingElements(),iS(b),iU(b),b.selfClosing?a._appendElement(b,zB.MATHML):a._insertElement(b,zB.MATHML),b.ackSelfClosing=!0;break;case zF.TABLE:a.treeAdapter.getDocumentMode(a.document)!==zD.QUIRKS&&a.openElements.hasInButtonScope(zF.P)&&a._closePElement(),a._insertElement(b,zB.HTML),a.framesetOk=!1,a.insertionMode=zI.IN_TABLE;break;case zF.INPUT:a._reconstructActiveFormattingElements(),a._appendElement(b,zB.HTML),jc(b)||(a.framesetOk=!1),b.ackSelfClosing=!0;break;case zF.PARAM:case zF.TRACK:case zF.SOURCE:a._appendElement(b,zB.HTML),b.ackSelfClosing=!0;break;case zF.IMAGE:b.tagName=zE.IMG,b.tagID=zF.IMG,jb(a,b);break;case zF.BUTTON:a.openElements.hasInScope(zF.BUTTON)&&(a.openElements.generateImpliedEndTags(),a.openElements.popUntilTagNamePopped(zF.BUTTON)),a._reconstructActiveFormattingElements(),a._insertElement(b,zB.HTML),a.framesetOk=!1;break;case zF.APPLET:case zF.OBJECT:case zF.MARQUEE:a._reconstructActiveFormattingElements(),a._insertElement(b,zB.HTML),a.activeFormattingElements.insertMarker(),a.framesetOk=!1;break;case zF.IFRAME:a.framesetOk=!1,a._switchToTextParsing(b,ik.RAWTEXT);break;case zF.SELECT:a._reconstructActiveFormattingElements(),a._insertElement(b,zB.HTML),a.framesetOk=!1,a.insertionMode=a.insertionMode===zI.IN_TABLE||a.insertionMode===zI.IN_CAPTION||a.insertionMode===zI.IN_TABLE_BODY||a.insertionMode===zI.IN_ROW||a.insertionMode===zI.IN_CELL?zI.IN_SELECT_IN_TABLE:zI.IN_SELECT;break;case zF.OPTION:case zF.OPTGROUP:a.openElements.currentTagId===zF.OPTION&&a.openElements.pop(),a._reconstructActiveFormattingElements(),a._insertElement(b,zB.HTML);break;case zF.NOEMBED:case zF.NOFRAMES:jd(a,b);break;case zF.FRAMESET:let g;g=a.openElements.tryPeekProperlyNestedBodyElement(),a.framesetOk&&g&&(a.treeAdapter.detachNode(g),a.openElements.popAllUpToHtmlElement(),a._insertElement(b,zB.HTML),a.insertionMode=zI.IN_FRAMESET);break;case zF.TEXTAREA:a._insertElement(b,zB.HTML),a.skipNextNewLine=!0,a.tokenizer.state=ik.RCDATA,a.originalInsertionMode=a.insertionMode,a.framesetOk=!1,a.insertionMode=zI.TEXT;break;case zF.NOSCRIPT:a.options.scriptingEnabled?jd(a,b):je(a,b);break;case zF.PLAINTEXT:a.openElements.hasInButtonScope(zF.P)&&a._closePElement(),a._insertElement(b,zB.HTML),a.tokenizer.state=ik.PLAINTEXT;break;case zF.COL:case zF.TH:case zF.TD:case zF.TR:case zF.HEAD:case zF.FRAME:case zF.TBODY:case zF.TFOOT:case zF.THEAD:case zF.CAPTION:case zF.COLGROUP:break;default:je(a,b)}}function jg(a,b){let c=b.tagName,d=b.tagID;for(let b=a.openElements.stackTop;b>0;b--){let e=a.openElements.items[b],f=a.openElements.tagIDs[b];if(d===f&&(d!==zF.UNKNOWN||a.treeAdapter.getTagName(e)===c)){a.openElements.generateImpliedEndTagsWithExclusion(d),a.openElements.stackTop>=b&&a.openElements.shortenToLength(b);break}if(a._isSpecialElement(e,f))break}}function jh(a,b){switch(b.tagID){case zF.A:case zF.B:case zF.I:case zF.S:case zF.U:case zF.EM:case zF.TT:case zF.BIG:case zF.CODE:case zF.FONT:case zF.NOBR:case zF.SMALL:case zF.STRIKE:case zF.STRONG:iZ(a,b);break;case zF.P:a.openElements.hasInButtonScope(zF.P)||a._insertFakeElement(zE.P,zF.P),a._closePElement();break;case zF.DL:case zF.UL:case zF.OL:case zF.DIR:case zF.DIV:case zF.NAV:case zF.PRE:case zF.MAIN:case zF.MENU:case zF.ASIDE:case zF.BUTTON:case zF.CENTER:case zF.FIGURE:case zF.FOOTER:case zF.HEADER:case zF.HGROUP:case zF.DIALOG:case zF.ADDRESS:case zF.ARTICLE:case zF.DETAILS:case zF.SEARCH:case zF.SECTION:case zF.SUMMARY:case zF.LISTING:case zF.FIELDSET:case zF.BLOCKQUOTE:case zF.FIGCAPTION:let c;c=b.tagID,a.openElements.hasInScope(c)&&(a.openElements.generateImpliedEndTags(),a.openElements.popUntilTagNamePopped(c));break;case zF.LI:a.openElements.hasInListItemScope(zF.LI)&&(a.openElements.generateImpliedEndTagsWithExclusion(zF.LI),a.openElements.popUntilTagNamePopped(zF.LI));break;case zF.DD:case zF.DT:let d;d=b.tagID,a.openElements.hasInScope(d)&&(a.openElements.generateImpliedEndTagsWithExclusion(d),a.openElements.popUntilTagNamePopped(d));break;case zF.H1:case zF.H2:case zF.H3:case zF.H4:case zF.H5:case zF.H6:a.openElements.hasNumberedHeaderInScope()&&(a.openElements.generateImpliedEndTags(),a.openElements.popUntilNumberedHeaderPopped());break;case zF.BR:a._reconstructActiveFormattingElements(),a._insertFakeElement(zE.BR,zF.BR),a.openElements.pop(),a.framesetOk=!1;break;case zF.BODY:if(a.openElements.hasInScope(zF.BODY)&&(a.insertionMode=zI.AFTER_BODY,a.options.sourceCodeLocationInfo)){let c=a.openElements.tryPeekProperlyNestedBodyElement();c&&a._setEndLocation(c,b)}break;case zF.HTML:a.openElements.hasInScope(zF.BODY)&&(a.insertionMode=zI.AFTER_BODY,jA(a,b));break;case zF.FORM:!function(a){let b=a.openElements.tmplCount>0,{formElement:c}=a;b||(a.formElement=null),(c||b)&&a.openElements.hasInScope(zF.FORM)&&(a.openElements.generateImpliedEndTags(),b?a.openElements.popUntilTagNamePopped(zF.FORM):c&&a.openElements.remove(c))}(a);break;case zF.APPLET:case zF.OBJECT:case zF.MARQUEE:let e;e=b.tagID,a.openElements.hasInScope(e)&&(a.openElements.generateImpliedEndTags(),a.openElements.popUntilTagNamePopped(e),a.activeFormattingElements.clearToLastMarker());break;case zF.TEMPLATE:i4(a,b);break;default:jg(a,b)}}function ji(a,b){a.tmplInsertionModeStack.length>0?jz(a,b):i_(a,b)}function jj(a,b){if(void 0!==a.openElements.currentTagId&&iW.has(a.openElements.currentTagId))switch(a.pendingCharacterTokens.length=0,a.hasNonWhitespacePendingCharacterToken=!1,a.originalInsertionMode=a.insertionMode,a.insertionMode=zI.IN_TABLE_TEXT,b.type){case zA.CHARACTER:jo(a,b);break;case zA.WHITESPACE_CHARACTER:jn(a,b)}else jm(a,b)}function jk(a,b){switch(b.tagID){case zF.TD:case zF.TH:case zF.TR:a.openElements.clearBackToTableContext(),a._insertFakeElement(zE.TBODY,zF.TBODY),a.insertionMode=zI.IN_TABLE_BODY,jt(a,b);break;case zF.STYLE:case zF.SCRIPT:case zF.TEMPLATE:i3(a,b);break;case zF.COL:a.openElements.clearBackToTableContext(),a._insertFakeElement(zE.COLGROUP,zF.COLGROUP),a.insertionMode=zI.IN_COLUMN_GROUP,jr(a,b);break;case zF.FORM:a.formElement||0!==a.openElements.tmplCount||(a._insertElement(b,zB.HTML),a.formElement=a.openElements.current,a.openElements.pop());break;case zF.TABLE:a.openElements.hasInTableScope(zF.TABLE)&&(a.openElements.popUntilTagNamePopped(zF.TABLE),a._resetInsertionMode(),a._processStartTag(b));break;case zF.TBODY:case zF.TFOOT:case zF.THEAD:a.openElements.clearBackToTableContext(),a._insertElement(b,zB.HTML),a.insertionMode=zI.IN_TABLE_BODY;break;case zF.INPUT:jc(b)?a._appendElement(b,zB.HTML):jm(a,b),b.ackSelfClosing=!0;break;case zF.CAPTION:a.openElements.clearBackToTableContext(),a.activeFormattingElements.insertMarker(),a._insertElement(b,zB.HTML),a.insertionMode=zI.IN_CAPTION;break;case zF.COLGROUP:a.openElements.clearBackToTableContext(),a._insertElement(b,zB.HTML),a.insertionMode=zI.IN_COLUMN_GROUP;break;default:jm(a,b)}}function jl(a,b){switch(b.tagID){case zF.TABLE:a.openElements.hasInTableScope(zF.TABLE)&&(a.openElements.popUntilTagNamePopped(zF.TABLE),a._resetInsertionMode());break;case zF.TEMPLATE:i4(a,b);break;case zF.BODY:case zF.CAPTION:case zF.COL:case zF.COLGROUP:case zF.HTML:case zF.TBODY:case zF.TD:case zF.TFOOT:case zF.TH:case zF.THEAD:case zF.TR:break;default:jm(a,b)}}function jm(a,b){let c=a.fosterParentingEnabled;a.fosterParentingEnabled=!0,i8(a,b),a.fosterParentingEnabled=c}function jn(a,b){a.pendingCharacterTokens.push(b)}function jo(a,b){a.pendingCharacterTokens.push(b),a.hasNonWhitespacePendingCharacterToken=!0}function jp(a,b){let c=0;if(a.hasNonWhitespacePendingCharacterToken)for(;c<a.pendingCharacterTokens.length;c++)jm(a,a.pendingCharacterTokens[c]);else for(;c<a.pendingCharacterTokens.length;c++)a._insertCharacters(a.pendingCharacterTokens[c]);a.insertionMode=a.originalInsertionMode,a._processToken(b)}let jq=new Set([zF.CAPTION,zF.COL,zF.COLGROUP,zF.TBODY,zF.TD,zF.TFOOT,zF.TH,zF.THEAD,zF.TR]);function jr(a,b){switch(b.tagID){case zF.HTML:jf(a,b);break;case zF.COL:a._appendElement(b,zB.HTML),b.ackSelfClosing=!0;break;case zF.TEMPLATE:i3(a,b);break;default:js(a,b)}}function js(a,b){a.openElements.currentTagId===zF.COLGROUP&&(a.openElements.pop(),a.insertionMode=zI.IN_TABLE,a._processToken(b))}function jt(a,b){switch(b.tagID){case zF.TR:a.openElements.clearBackToTableBodyContext(),a._insertElement(b,zB.HTML),a.insertionMode=zI.IN_ROW;break;case zF.TH:case zF.TD:a.openElements.clearBackToTableBodyContext(),a._insertFakeElement(zE.TR,zF.TR),a.insertionMode=zI.IN_ROW,jv(a,b);break;case zF.CAPTION:case zF.COL:case zF.COLGROUP:case zF.TBODY:case zF.TFOOT:case zF.THEAD:a.openElements.hasTableBodyContextInTableScope()&&(a.openElements.clearBackToTableBodyContext(),a.openElements.pop(),a.insertionMode=zI.IN_TABLE,jk(a,b));break;default:jk(a,b)}}function ju(a,b){let c=b.tagID;switch(b.tagID){case zF.TBODY:case zF.TFOOT:case zF.THEAD:a.openElements.hasInTableScope(c)&&(a.openElements.clearBackToTableBodyContext(),a.openElements.pop(),a.insertionMode=zI.IN_TABLE);break;case zF.TABLE:a.openElements.hasTableBodyContextInTableScope()&&(a.openElements.clearBackToTableBodyContext(),a.openElements.pop(),a.insertionMode=zI.IN_TABLE,jl(a,b));break;case zF.BODY:case zF.CAPTION:case zF.COL:case zF.COLGROUP:case zF.HTML:case zF.TD:case zF.TH:case zF.TR:break;default:jl(a,b)}}function jv(a,b){switch(b.tagID){case zF.TH:case zF.TD:a.openElements.clearBackToTableRowContext(),a._insertElement(b,zB.HTML),a.insertionMode=zI.IN_CELL,a.activeFormattingElements.insertMarker();break;case zF.CAPTION:case zF.COL:case zF.COLGROUP:case zF.TBODY:case zF.TFOOT:case zF.THEAD:case zF.TR:a.openElements.hasInTableScope(zF.TR)&&(a.openElements.clearBackToTableRowContext(),a.openElements.pop(),a.insertionMode=zI.IN_TABLE_BODY,jt(a,b));break;default:jk(a,b)}}function jw(a,b){switch(b.tagID){case zF.TR:a.openElements.hasInTableScope(zF.TR)&&(a.openElements.clearBackToTableRowContext(),a.openElements.pop(),a.insertionMode=zI.IN_TABLE_BODY);break;case zF.TABLE:a.openElements.hasInTableScope(zF.TR)&&(a.openElements.clearBackToTableRowContext(),a.openElements.pop(),a.insertionMode=zI.IN_TABLE_BODY,ju(a,b));break;case zF.TBODY:case zF.TFOOT:case zF.THEAD:(a.openElements.hasInTableScope(b.tagID)||a.openElements.hasInTableScope(zF.TR))&&(a.openElements.clearBackToTableRowContext(),a.openElements.pop(),a.insertionMode=zI.IN_TABLE_BODY,ju(a,b));break;case zF.BODY:case zF.CAPTION:case zF.COL:case zF.COLGROUP:case zF.HTML:case zF.TD:case zF.TH:break;default:jl(a,b)}}function jx(a,b){switch(b.tagID){case zF.HTML:jf(a,b);break;case zF.OPTION:a.openElements.currentTagId===zF.OPTION&&a.openElements.pop(),a._insertElement(b,zB.HTML);break;case zF.OPTGROUP:a.openElements.currentTagId===zF.OPTION&&a.openElements.pop(),a.openElements.currentTagId===zF.OPTGROUP&&a.openElements.pop(),a._insertElement(b,zB.HTML);break;case zF.HR:a.openElements.currentTagId===zF.OPTION&&a.openElements.pop(),a.openElements.currentTagId===zF.OPTGROUP&&a.openElements.pop(),a._appendElement(b,zB.HTML),b.ackSelfClosing=!0;break;case zF.INPUT:case zF.KEYGEN:case zF.TEXTAREA:case zF.SELECT:a.openElements.hasInSelectScope(zF.SELECT)&&(a.openElements.popUntilTagNamePopped(zF.SELECT),a._resetInsertionMode(),b.tagID!==zF.SELECT&&a._processStartTag(b));break;case zF.SCRIPT:case zF.TEMPLATE:i3(a,b)}}function jy(a,b){switch(b.tagID){case zF.OPTGROUP:a.openElements.stackTop>0&&a.openElements.currentTagId===zF.OPTION&&a.openElements.tagIDs[a.openElements.stackTop-1]===zF.OPTGROUP&&a.openElements.pop(),a.openElements.currentTagId===zF.OPTGROUP&&a.openElements.pop();break;case zF.OPTION:a.openElements.currentTagId===zF.OPTION&&a.openElements.pop();break;case zF.SELECT:a.openElements.hasInSelectScope(zF.SELECT)&&(a.openElements.popUntilTagNamePopped(zF.SELECT),a._resetInsertionMode());break;case zF.TEMPLATE:i4(a,b)}}function jz(a,b){a.openElements.tmplCount>0?(a.openElements.popUntilTagNamePopped(zF.TEMPLATE),a.activeFormattingElements.clearToLastMarker(),a.tmplInsertionModeStack.shift(),a._resetInsertionMode(),a.onEof(b)):i_(a,b)}function jA(a,b){var c;if(b.tagID===zF.HTML){if(a.fragmentContext||(a.insertionMode=zI.AFTER_AFTER_BODY),a.options.sourceCodeLocationInfo&&a.openElements.tagIDs[0]===zF.HTML){a._setEndLocation(a.openElements.items[0],b);let d=a.openElements.items[1];!d||(null==(c=a.treeAdapter.getNodeSourceCodeLocation(d))?void 0:c.endTag)||a._setEndLocation(d,b)}}else jB(a,b)}function jB(a,b){a.insertionMode=zI.IN_BODY,i8(a,b)}function jC(a,b){a.insertionMode=zI.IN_BODY,i8(a,b)}function jD(a){for(;a.treeAdapter.getNamespaceURI(a.openElements.current)!==zB.HTML&&void 0!==a.openElements.currentTagId&&!a._isIntegrationPoint(a.openElements.currentTagId,a.openElements.current);)a.openElements.pop()}zE.AREA,zE.BASE,zE.BASEFONT,zE.BGSOUND,zE.BR,zE.COL,zE.EMBED,zE.FRAME,zE.HR,zE.IMG,zE.INPUT,zE.KEYGEN,zE.LINK,zE.META,zE.PARAM,zE.SOURCE,zE.TRACK,zE.WBR;let jE=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,jF=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),jG={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function jH(a,b){var c;let d,e=!!((d="root"===(c=a).type?c.children[0]:c)&&("doctype"===d.type||"element"===d.type&&"html"===d.tagName.toLowerCase())),f=h_("type",{handlers:{root:jJ,element:jK,text:jL,comment:jN,doctype:jM,raw:jO},unknown:jP}),g={parser:e?new iY(jG):iY.getFragmentParser(void 0,jG),handle(a){f(a,g)},stitches:!1,options:b||{}};f(a,g),jQ(g,c2());let h=fU(e?g.parser.document:g.parser.getFragment(),{file:g.options.file});return(g.stitches&&e5(h,"comment",function(a,b,c){if(a.value.stitch&&c&&void 0!==b)return c.children[b]=a.value.stitch,b}),"root"===h.type&&1===h.children.length&&h.children[0].type===a.type)?h.children[0]:h}function jI(a,b){let c=-1;if(a)for(;++c<a.length;)b.handle(a[c])}function jJ(a,b){jI(a.children,b)}function jK(a,b){(function(a,b){let c=a.tagName.toLowerCase();if(b.parser.tokenizer.state===ik.PLAINTEXT)return;jQ(b,c2(a));let d=b.parser.openElements.current,e="namespaceURI"in d?d.namespaceURI:fR.html;e===fR.html&&"svg"===c&&(e=fR.svg);let f=h1({...a,children:[]},"svg"===({space:e===fR.svg?"svg":"html"}).space?cS:cR),g={type:zA.START_TAG,tagName:c,tagID:ig(c),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in f?f.attrs:[],location:jS(a)};b.parser.currentToken=g,b.parser._processToken(b.parser.currentToken),b.parser.tokenizer.lastStartTagName=c})(a,b),jI(a.children,b),function(a,b){let c=a.tagName.toLowerCase();if(!b.parser.tokenizer.inForeignNode&&h4.includes(c)||b.parser.tokenizer.state===ik.PLAINTEXT)return;jQ(b,c1(a));let d={type:zA.END_TAG,tagName:c,tagID:ig(c),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:jS(a)};b.parser.currentToken=d,b.parser._processToken(b.parser.currentToken),c===b.parser.tokenizer.lastStartTagName&&(b.parser.tokenizer.state===ik.RCDATA||b.parser.tokenizer.state===ik.RAWTEXT||b.parser.tokenizer.state===ik.SCRIPT_DATA)&&(b.parser.tokenizer.state=ik.DATA)}(a,b)}function jL(a,b){b.parser.tokenizer.state>4&&(b.parser.tokenizer.state=0);let c={type:zA.CHARACTER,chars:a.value,location:jS(a)};jQ(b,c2(a)),b.parser.currentToken=c,b.parser._processToken(b.parser.currentToken)}function jM(a,b){let c={type:zA.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:jS(a)};jQ(b,c2(a)),b.parser.currentToken=c,b.parser._processToken(b.parser.currentToken)}function jN(a,b){let c=a.value,d={type:zA.COMMENT,data:c,location:jS(a)};jQ(b,c2(a)),b.parser.currentToken=d,b.parser._processToken(b.parser.currentToken)}function jO(a,b){if(b.parser.tokenizer.preprocessor.html="",b.parser.tokenizer.preprocessor.pos=-1,b.parser.tokenizer.preprocessor.lastGapPos=-2,b.parser.tokenizer.preprocessor.gapStack=[],b.parser.tokenizer.preprocessor.skipNextNewLine=!1,b.parser.tokenizer.preprocessor.lastChunkWritten=!1,b.parser.tokenizer.preprocessor.endOfChunkHit=!1,b.parser.tokenizer.preprocessor.isEol=!1,jR(b,c2(a)),b.parser.tokenizer.write(b.options.tagfilter?a.value.replace(jE,"<$1$2"):a.value,!1),b.parser.tokenizer._runParsingLoop(),72===b.parser.tokenizer.state||78===b.parser.tokenizer.state){b.parser.tokenizer.preprocessor.lastChunkWritten=!0;let a=b.parser.tokenizer._consume();b.parser.tokenizer._callState(a)}}function jP(a,b){if(b.options.passThrough&&b.options.passThrough.includes(a.type)){var c;let d;b.stitches=!0,d="children"in(c=a)?eX({...c,children:[]}):eX(c),"children"in a&&"children"in d&&(d.children=jH({type:"root",children:a.children},b.options).children),jN({type:"comment",value:{stitch:d}},b)}else{let b="";throw jF.has(a.type)&&(b=". 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"),Error("Cannot compile `"+a.type+"` node"+b)}}function jQ(a,b){jR(a,b);let c=a.parser.tokenizer.currentCharacterToken;c&&c.location&&(c.location.endLine=a.parser.tokenizer.preprocessor.line,c.location.endCol=a.parser.tokenizer.preprocessor.col+1,c.location.endOffset=a.parser.tokenizer.preprocessor.offset+1,a.parser.currentToken=c,a.parser._processToken(a.parser.currentToken)),a.parser.tokenizer.paused=!1,a.parser.tokenizer.inLoop=!1,a.parser.tokenizer.active=!1,a.parser.tokenizer.returnState=ik.DATA,a.parser.tokenizer.charRefCode=-1,a.parser.tokenizer.consumedAfterSnapshot=-1,a.parser.tokenizer.currentLocation=null,a.parser.tokenizer.currentCharacterToken=null,a.parser.tokenizer.currentToken=null,a.parser.tokenizer.currentAttr={name:"",value:""}}function jR(a,b){if(b&&void 0!==b.offset){let c={startLine:b.line,startCol:b.column,startOffset:b.offset,endLine:-1,endCol:-1,endOffset:-1};a.parser.tokenizer.preprocessor.lineStartPos=-b.column+1,a.parser.tokenizer.preprocessor.droppedBufferSize=b.offset,a.parser.tokenizer.preprocessor.line=b.line,a.parser.tokenizer.currentLocation=c}}function jS(a){let b=c2(a)||{line:void 0,column:void 0,offset:void 0},c=c1(a)||{line:void 0,column:void 0,offset:void 0};return{startLine:b.line,startCol:b.column,startOffset:b.offset,endLine:c.line,endCol:c.column,endOffset:c.offset}}function jT(a){return function(b,c){return jH(b,{...a,file:c})}}let jU=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],jV={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...jU,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...jU],h2:[["className","sr-only"]],img:[...jU,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...jU,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...jU],table:[...jU],ul:[...jU,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},jW={}.hasOwnProperty;function jX(a,b){if(b&&"object"==typeof b)switch("string"==typeof b.type?b.type:""){case"comment":var c,d,e=a,f=b;if(e.schema.allowComments){let a="string"==typeof f.value?f.value:"",b=a.indexOf("--\x3e"),c={type:"comment",value:b<0?a:a.slice(0,b)};return j_(c,f),c}return;case"doctype":var g=a,h=b;if(g.schema.allowDoctypes){let a={type:"doctype"};return j_(a,h),a}return;case"element":return function(a,b){let c="string"==typeof b.tagName?b.tagName:"";a.stack.push(c);let d=jY(a,b.children),e=function(a,b){let c,d=a.stack[a.stack.length-1],e=a.schema.attributes,f=a.schema.required,g=e&&jW.call(e,d)?e[d]:void 0,h=e&&jW.call(e,"*")?e["*"]:void 0,i=b&&"object"==typeof b?b:{},j={};for(c in i)if(jW.call(i,c)){let b=i[c],d=jZ(a,j0(g,c),c,b);null==d&&(d=jZ(a,j0(h,c),c,b)),null!=d&&(j[c]=d)}if(f&&jW.call(f,d)){let a=f[d];for(c in a)jW.call(a,c)&&!jW.call(j,c)&&(j[c]=a[c])}return j}(a,b.properties);a.stack.pop();let f=!1;if(c&&"*"!==c&&(!a.schema.tagNames||a.schema.tagNames.includes(c))&&(f=!0,a.schema.ancestors&&jW.call(a.schema.ancestors,c))){let b=a.schema.ancestors[c],d=-1;for(f=!1;++d<b.length;)a.stack.includes(b[d])&&(f=!0)}if(!f)return a.schema.strip&&!a.schema.strip.includes(c)?d:void 0;let g={type:"element",tagName:c,properties:e,children:d};return j_(g,b),g}(a,b);case"root":let i;return j_(i={type:"root",children:jY(a,(c=b).children)},c),i;case"text":let j;return j_(j={type:"text",value:"string"==typeof(d=b).value?d.value:""},d),j}}function jY(a,b){let c=[];if(Array.isArray(b)){let d=-1;for(;++d<b.length;){let e=jX(a,b[d]);e&&(Array.isArray(e)?c.push(...e):c.push(e))}}return c}function jZ(a,b,c,d){return b?Array.isArray(d)?function(a,b,c,d){let e=-1,f=[];for(;++e<d.length;){let g=j$(a,b,c,d[e]);("number"==typeof g||"string"==typeof g)&&f.push(g)}return f}(a,b,c,d):j$(a,b,c,d):void 0}function j$(a,b,c,d){if(("boolean"==typeof d||"number"==typeof d||"string"==typeof d)&&function(a,b,c){let d=a.schema.protocols&&jW.call(a.schema.protocols,b)?a.schema.protocols[b]:void 0;if(!d||0===d.length)return!0;let e=String(c),f=e.indexOf(":"),g=e.indexOf("?"),h=e.indexOf("#"),i=e.indexOf("/");if(f<0||i>-1&&f>i||g>-1&&f>g||h>-1&&f>h)return!0;let j=-1;for(;++j<d.length;){let a=d[j];if(f===a.length&&e.slice(0,a.length)===a)return!0}return!1}(a,c,d)){if("object"==typeof b&&b.length>1){let a=!1,c=0;for(;++c<b.length;){let e=b[c];if(e&&"object"==typeof e&&"flags"in e){if(e.test(String(d))){a=!0;break}}else if(e===d){a=!0;break}}if(!a)return}return a.schema.clobber&&a.schema.clobberPrefix&&a.schema.clobber.includes(c)?a.schema.clobberPrefix+d:d}}function j_(a,b){let c=c4(b);b.data&&(a.data=eX(b.data)),c&&(a.position=c)}function j0(a,b){let c,d=-1;if(a)for(;++d<a.length;){let e=a[d],f="string"==typeof e?e:e[0];if(f===b)return e;"data*"===f&&(c=e)}if(b.length>4&&"data"===b.slice(0,4).toLowerCase())return c}function j1(a){return function(b){let c,d;return c={type:"root",children:[]},(d=jX({schema:a?{...jV,...a}:jV,stack:[]},b))&&(Array.isArray(d)?1===d.length?c=d[0]:c.children=d:c=d),c}}let j2="emphasisSequence",j3="strongSequence";var j4=class{cachedValue=void 0;constructor(a,b,c){this.previousCode=a,this.nowPoint=b,this.sliceSerialize=c}value(){return void 0===this.cachedValue&&(this.cachedValue=function(a,b,c){let d=a>=65536?2:1;if(b._bufferIndex<1+d)return null;let e=b._bufferIndex-d-2,f=c({start:{...b,_bufferIndex:e>=0?e:0},end:{...b,_bufferIndex:b._bufferIndex-d}}),g=f.charCodeAt(f.length-1);if(Number.isNaN(g))return null;if(f.length<2||g<56320||57343<g)return g;let h=f.codePointAt(0);return h&&h>=65536?h:g}(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};let j5=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],j6=[12288,12288,65281,65376,65504,65510],j7=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],j8=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],j9=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],ka=(a,b)=>{let c=0,d=Math.floor(a.length/2)-1;for(;c<=d;){let e=Math.floor((c+d)/2),f=2*e;if(b<a[f])d=e-1;else{if(!(b>a[f+1]))return!0;c=e+1}}return!1},[kb,kc]=function(a){let b=a[0],c=a[1];for(let d=0;d<a.length;d+=2){let e=a[d],f=a[d+1];if(19968>=e&&19968<=f)return[e,f];f-e>c-b&&(b=e,c=f)}return[b,c]}(j9),kd=kf(/\p{P}|\p{S}/u),ke=kf(/\s/);function kf(a){return function(b){return null!==b&&b>-1&&a.test(String.fromCodePoint(b))}}function kg(a){return(a&d.cjkPunctuation)==2}function kh(a){return!!(a&d.cjkOrIvs)}function ki(a){return a===d.nonEmojiGeneralUseVS}function kj(a){return!!(a&d.spaceOrPunctuation)}function kk(a){if(null===a||dI(a)||ke(a))return 1;let b=0;if(a>=4352){if(null!==a&&a>=65024&&a<=65038)return d.nonEmojiGeneralUseVS;switch(function(a){if(!a||a<4352)return!1;switch(function(a){if(!Number.isSafeInteger(a))throw TypeError(`Expected a code point, got \`${typeof a}\`.`);return function(a){return!(a<161)&&!(a>1114109)&&ka(j5,a)?"ambiguous":!(a<12288)&&!(a>65510)&&ka(j6,a)?"fullwidth":!(a<8361)&&!(a>65518)&&ka(j7,a)?"halfwidth":!(a<32)&&!(a>10630)&&ka(j8,a)?"narrow":a>=kb&&a<=kc||!(a<4352)&&!(a>262141)&&ka(j9,a)?"wide":"neutral"}(a)}(a)){case"fullwidth":case"halfwidth":return!0;case"wide":return!/^\p{Emoji_Presentation}/u.test(String.fromCodePoint(a));case"narrow":return!1;case"ambiguous":return 917760<=a&&a<=917999&&null;case"neutral":return/^\p{sc=Hangul}/u.test(String.fromCodePoint(a))}}(a)){case null:return d.ivs;case!0:b|=d.cjk}}return kd(a)&&(b|=2),b}function kl(a,b,c){if(!ki(a))return a;let e=b(),f=kk(e);return!e||1&f?a:65025===c&&e&&!(e<8216)&&(8216===e||8217===e||8220===e||8221===e)?d.cjkPunctuation:f&~d.ivs}(zf=d||(d={})).spaceOrPunctuation=3,zf.cjk=4096,zf.cjkPunctuation=4098,zf.ivs=8192,zf.cjkOrIvs=12288,zf.nonEmojiGeneralUseVS=16384,zf.variationSelector=24576,zf.ivsToCjkRightShift=1;let km={name:"attention",resolveAll:function(a,b){let c,d,e,f,g,h,i,j,k=-1;for(;++k<a.length;)if("enter"===a[k][0]&&"attentionSequence"===a[k][1].type&&a[k][1]._close){for(c=k;c--;)if("exit"===a[c][0]&&"attentionSequence"===a[c][1].type&&a[c][1]._open&&b.sliceSerialize(a[c][1]).charCodeAt(0)===b.sliceSerialize(a[k][1]).charCodeAt(0)){if((a[c][1]._close||a[k][1]._open)&&(a[k][1].end.offset-a[k][1].start.offset)%3&&!((a[c][1].end.offset-a[c][1].start.offset+a[k][1].end.offset-a[k][1].start.offset)%3))continue;h=a[c][1].end.offset-a[c][1].start.offset>1&&a[k][1].end.offset-a[k][1].start.offset>1?2:1;let l={...a[c][1].end},m={...a[k][1].start};kn(l,-h),kn(m,h),f={type:h>1?j3:j2,start:l,end:{...a[c][1].end}},g={type:h>1?j3:j2,start:{...a[k][1].start},end:m},e={type:h>1?"strongText":"emphasisText",start:{...a[c][1].end},end:{...a[k][1].start}},d={type:h>1?"strong":"emphasis",start:{...f.start},end:{...g.end}},a[c][1].end={...f.start},a[k][1].start={...g.end},i=[],a[c][1].end.offset-a[c][1].start.offset&&(i=du(i,[["enter",a[c][1],b],["exit",a[c][1],b]])),i=du(i,[["enter",d,b],["enter",f,b],["exit",f,b],["enter",e,b]]),b.parser.constructs.insideSpan.null,i=du(i,ep(b.parser.constructs.insideSpan.null,a.slice(c+1,k),b)),i=du(i,[["exit",e,b],["enter",g,b],["exit",g,b],["exit",d,b]]),a[k][1].end.offset-a[k][1].start.offset?(j=2,i=du(i,[["enter",a[k][1],b],["exit",a[k][1],b]])):j=0,dt(a,c-1,k-c+3,i),k=c+i.length-j-2;break}}for(k=-1;++k<a.length;)"attentionSequence"===a[k][1].type&&(a[k][1].type="data");return a},tokenize:function(a,b){let c,e=this.parser.constructs.attentionMarkers.null,{now:f,sliceSerialize:g,previous:h}=this,i=h&&h>=56320&&h<=57343?function(a,b,c){if(b._bufferIndex<2)return a;let d=c({start:{...b,_bufferIndex:b._bufferIndex-2},end:b}).codePointAt(0);return d&&d>=65536?d:a}(h,f(),g):h,j=kk(i),k=new j4(i,f(),g),l=kl(j,k.value.bind(k),i);return function(h){return c=h,a.enter("attentionSequence"),function h(j){var k;let m;if(j===c)return a.consume(j),h;let n=a.exit("attentionSequence"),o=kk(j&&j>=55296&&j<=56319?(m=g({start:k=f(),end:{...k,_bufferIndex:k._bufferIndex+2}}).codePointAt(0))&&m>=65536?m:j:j),p=kg(l),q=p||!!(1&l),r=kg(o),s=r||!!(1&o),t=kh(l),u=!s||r&&(q||t)||e.includes(j),v=!q||p&&(s||!!(o&d.cjk))||e.includes(i);return n._open=!!(42===c?u:u&&(kj(l)||!v)),n._close=!!(42===c?v:v&&(kj(o)||!u)),b(j)}(h)}}};function kn(a,b){a.column+=b,a.offset+=b,a._bufferIndex+=b}function ko(){let a=this.data();(a.micromarkExtensions||(a.micromarkExtensions=[])).push({text:{42:km,95:km},insideSpan:{null:[km]}})}function kp(a,b,c,d){return kt(a,b,c,d,kr(a,b,c),1)}function kq(a,b,c,d){return kt(a,b,c,d,ks(a,b,c),2)}function kr(a,b,c){return c.options.emphasis||"*"}function ks(a,b,c){return c.options.strong||"*"}function kt(a,b,c,d,e,f){let g,h,i=e.repeat(f),j=c.enter(1===f?"emphasis":"strong"),k=c.createTracker(d),l=k.move(i),m=k.move(c.containerPhrasing(a,{after:e,before:l,...k.current()})),n=function(a,b,c,d){var e,f,g;let h=kE(d),i=kC(d);if(null!==(e=h)&&56320<=e&&e<=57343||(f=h,g=i,ki(kk(f))&&(null===g||null===g))){let d=kA(a,b,c,-1);d&&(h=kE(d),i=kC(d))}return{current:h,previous:i}}(a,b,c,d.before),o=function(a,b,c,d){var e;let f=kD(d);if(!(null!==(e=f)&&55296<=e&&e<=56319))return f;let g=kA(a,b,c,1);return g?kD(g):f}(a,b,c,d.after),p=kv(n,kD(m),e,"open");p.inside&&m&&(m=function(a){let[b=""]=[...a];return kB(b.codePointAt(0)??null)+a.slice(b.length)}(m));let q=kv({current:kE(m),previous:kC(m)},o,e,"close");q.inside&&m&&(h=(g=[...m]).pop(),m=`${g.join("")}${kB(h?.codePointAt(0)??null)}`);let r=k.move(i);j();let s=q.outside&&function(a,b){if(!a)return!1;let c=b.indexStack.at(-1);if("number"!=typeof c)return!1;let d=a.children[c+1];return d?.type==="text"&&(kD(d.value)??0)>65535}(b,c);return c.attentionEncodeSurroundingInfo={after:q.outside&&!s,before:p.outside},c.cjkFriendlyEncodeAfterSupplementaryText=s,l+m+r}function ku(a,b,c,d){if(!c.cjkFriendlyEncodeAfterSupplementaryText)return c.safe(a.value,d);c.cjkFriendlyEncodeAfterSupplementaryText=!1;let[e=""]=[...a.value],f=a.value.slice(e.length);return`${kB(e.codePointAt(0)??null)}${c.safe(f,{...d,before:";"})}`}function kv(a,b,c,d){let e=kz(a),f=kk(b);if(!kh(e)&&!kh(f))return"open"===d?kw(e,f,c):kw(f,e,c);let g={inside:!0,outside:!0};for(let e of[{inside:!1,outside:!1},{inside:!0,outside:!1},{inside:!1,outside:!0},g]){let f="open"===d?e.outside?kF:a:e.inside?kF:a,g="open"===d?e.inside?kG:b:e.outside?kG:b;if("open"===d?function(a,b,c){let d=kz(b),{close:e,open:f}=kx(d,kk(c));return"_"===a?f&&(kj(d)||!e):f}(c,f,g):function(a,b,c){let d=kk(c),{close:e,open:f}=kx(kz(b),d);return"_"===a?e&&(kj(d)||!f):e}(c,f,g))return e}return g}function kw(a,b,c){return ky(a)?ky(b)?"_"===c?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1&b?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1&a?ky(b)?{inside:!1,outside:!1}:1&b?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1&b?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function kx(a,b){let c=kg(a),e=c||!!(1&a),f=kg(b),g=f||!!(1&b);return{open:!g||f&&(e||kh(a)),close:!e||c&&(g||!!(b&d.cjk))}}function ky(a){return!(1&a)&&!kg(a)}function kz(a){let b=kk(a.current);return null!==a.current&&ki(b)?kl(b,()=>a.previous,a.current):b}function kA(a,b,c,d){if(!b)return;let e=c.indexStack.at(-1),f=b.children,g="number"==typeof e?e:f.indexOf(a);if(!(g<0))return function a(b){return b&&"object"==typeof b?"value"in b&&"string"==typeof b.value?b.value:"alt"in b&&"string"==typeof b.alt?b.alt:"children"in b&&Array.isArray(b.children)?b.children.map(a).join(""):"":""}(f[g+d])||void 0}kp.peek=kr,kq.peek=ks;function kB(a){return`&#x${(a??0).toString(16).toUpperCase()};`}function kC(a){let b=[...a];return b.pop(),b.at(-1)?.codePointAt(0)??null}function kD(a){return a.codePointAt(0)??null}function kE(a){return[...a].at(-1)?.codePointAt(0)??null}let kF={current:59,previous:null},kG=38;function kH(){let a=this.data();(a.toMarkdownExtensions||(a.toMarkdownExtensions=[])).push({handlers:{emphasis:kp,strong:kq,text:ku}})}var kI=function(){ko.call(this),kH.call(this)},kJ=c(82236);let kK=Object.assign(kL(Error),{eval:kL(EvalError),range:kL(RangeError),reference:kL(ReferenceError),syntax:kL(SyntaxError),type:kL(TypeError),uri:kL(URIError)});function kL(a){return b.displayName=a.displayName||a.name,b;function b(c,...d){return new a(c?kJ(c,...d):c)}}let kM={}.hasOwnProperty,kN={yaml:"-",toml:"+"};function kO(a){let b=[],c=-1,d=Array.isArray(a)?a:a?[a]:["yaml"];for(;++c<d.length;)b[c]=function(a){let b=a;if("string"==typeof b){if(!kM.call(kN,b))throw kK("Missing matter definition for `%s`",b);b={type:b,marker:kN[b]}}else if("object"!=typeof b)throw kK("Expected matter to be an object, not `%j`",b);if(!kM.call(b,"type"))throw kK("Missing `type` in matter `%j`",b);if(!kM.call(b,"fence")&&!kM.call(b,"marker"))throw kK("Missing `marker` or `fence` in matter `%j`",b);return b}(d[c]);return b}function kP(a){let b=this.resume(),c=this.stack[this.stack.length-1];this.exit(a),c.value=b.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function kQ(a){this.config.enter.data.call(this,a),this.config.exit.data.call(this,a)}function kR(a,b){return a.marker?kS(a.marker,b).repeat(3):kS(a.fence,b)}function kS(a,b){return"string"==typeof a?a:a[b]}function kT(a,b){return a.marker?kU(a.marker,b).repeat(3):kU(a.fence,b)}function kU(a,b){return"string"==typeof a?a:a[b]}function kV(a){let b=a||"yaml",c=this.data(),d=c.micromarkExtensions||(c.micromarkExtensions=[]),e=c.fromMarkdownExtensions||(c.fromMarkdownExtensions=[]),f=c.toMarkdownExtensions||(c.toMarkdownExtensions=[]);d.push(function(a){let b=kO(a),c={},d=-1;for(;++d<b.length;){let a=b[d],e=kT(a,"open").charCodeAt(0),f=function(a){let b,c=a.anywhere,d=a.type,e=d+"Fence",f=e+"Sequence",g=d+"Value",h={tokenize:function(a,c,d){let g=0;return function(c){return c===b.charCodeAt(g)?(a.enter(e),a.enter(f),function c(e){return g===b.length?(a.exit(f),dJ(e))?(a.enter("whitespace"),function b(c){return dJ(c)?(a.consume(c),b):(a.exit("whitespace"),h(c))}(e)):h(e):e===b.charCodeAt(g++)?(a.consume(e),c):d(e)}(c)):d(c)};function h(b){return null===b||dH(b)?(a.exit(e),c(b)):d(b)}},partial:!0},i=0;return{tokenize:function(j,k,l){let m=this;return function(g){let h=m.now();return 1===h.column&&(1===h.line||c)&&(b=kT(a,"open"),i=0,g===b.charCodeAt(i))?(j.enter(d),j.enter(e),j.enter(f),function a(c){return i===b.length?(j.exit(f),dJ(c))?(j.enter("whitespace"),function a(b){return dJ(b)?(j.consume(b),a):(j.exit("whitespace"),n(b))}(c)):n(c):c===b.charCodeAt(i++)?(j.consume(c),a):l(c)}(g)):l(g)};function n(c){return dH(c)?(j.exit(e),j.enter("lineEnding"),j.consume(c),j.exit("lineEnding"),b=kT(a,"close"),i=0,j.attempt(h,q,o)):l(c)}function o(a){return null===a||dH(a)?p(a):(j.enter(g),function a(b){return null===b||dH(b)?(j.exit(g),p(b)):(j.consume(b),a)}(a))}function p(a){return null===a?l(a):(j.enter("lineEnding"),j.consume(a),j.exit("lineEnding"),j.attempt(h,q,o))}function q(a){return j.exit(d),k(a)}},concrete:!0}}(a),g=c[e];Array.isArray(g)?g.push(f):c[e]=[f]}return{flow:c}}(b)),e.push(function(a){let b=kO(a),c={},d={},e=-1;for(;++e<b.length;){let a=b[e];c[a.type]=function(a){return function(b){this.enter({type:a.type,value:""},b),this.buffer()}}(a),d[a.type]=kP,d[a.type+"Value"]=kQ}return{enter:c,exit:d}}(b)),f.push(function(a){let b=[],c={},d=kO(a),e=-1;for(;++e<d.length;){let a=d[e];c[a.type]=function(a){let b=kR(a,"open"),c=kR(a,"close");return function(a){return b+(a.value?"\n"+a.value:"")+"\n"+c}}(a);let f=kR(a,"open");b.push({atBreak:!0,character:f.charAt(0),after:function(a){if("string"!=typeof a)throw TypeError("Expected a string");return a.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(f.charAt(1))})}return{unsafe:b,handlers:c}}(b))}function kW(a,b){let c=String(a);if("string"!=typeof b)throw TypeError("Expected character");let d=0,e=c.indexOf(b);for(;-1!==e;)d++,e=c.indexOf(b,e+b.length);return d}let kX="phrasing",kY=["autolink","link","image","label"];function kZ(a){this.enter({type:"link",title:null,url:"",children:[]},a)}function k$(a){this.config.enter.autolinkProtocol.call(this,a)}function k_(a){this.config.exit.autolinkProtocol.call(this,a)}function k0(a){this.config.exit.data.call(this,a);let b=this.stack[this.stack.length-1];b.type,b.url="http://"+this.sliceSerialize(a)}function k1(a){this.config.exit.autolinkEmail.call(this,a)}function k2(a){this.exit(a)}function k3(a){!function(a,b,c){let d=e_((c||{}).ignore||[]),e=function(a){let b=[];if(!Array.isArray(a))throw TypeError("Expected find and replace tuple or list of tuples");let c=!a[0]||Array.isArray(a[0])?a:[a],d=-1;for(;++d<c.length;){var e;let a=c[d];b.push(["string"==typeof(e=a[0])?RegExp(function(a){if("string"!=typeof a)throw TypeError("Expected a string");return a.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e,function(a){return"function"==typeof a?a:function(){return a}}(a[1])])}return b}(b),f=-1;for(;++f<e.length;)e4(a,"text",g);function g(a,b){let c,g=-1;for(;++g<b.length;){let a=b[g],e=c?c.children:void 0;if(d(a,e?e.indexOf(a):void 0,c))return;c=a}if(c)return function(a,b){let c=b[b.length-1],d=e[f][0],g=e[f][1],h=0,i=c.children.indexOf(a),j=!1,k=[];d.lastIndex=0;let l=d.exec(a.value);for(;l;){let c=l.index,e={index:l.index,input:l.input,stack:[...b,a]},f=g(...l,e);if("string"==typeof f&&(f=f.length>0?{type:"text",value:f}:void 0),!1===f?d.lastIndex=c+1:(h!==c&&k.push({type:"text",value:a.value.slice(h,c)}),Array.isArray(f)?k.push(...f):f&&k.push(f),h=c+l[0].length,j=!0),!d.global)break;l=d.exec(a.value)}return j?(h<a.value.length&&k.push({type:"text",value:a.value.slice(h)}),c.children.splice(i,1,...k)):k=[a],i+k.length}(a,b)}}(a,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,k4],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,k5]],{ignore:["link","linkReference"]})}function k4(a,b,c,d,e){let f,g="";if(!k6(e))return!1;if(/^w/i.test(b)&&(c=b+c,b="",g="http://"),(f=c.split(".")).length<2||f[f.length-1]&&(/_/.test(f[f.length-1])||!/[a-zA-Z\d]/.test(f[f.length-1]))||f[f.length-2]&&(/_/.test(f[f.length-2])||!/[a-zA-Z\d]/.test(f[f.length-2])))return!1;let h=function(a){let b=/[!"&'),.:;<>?\]}]+$/.exec(a);if(!b)return[a,void 0];a=a.slice(0,b.index);let c=b[0],d=c.indexOf(")"),e=kW(a,"("),f=kW(a,")");for(;-1!==d&&e>f;)a+=c.slice(0,d+1),d=(c=c.slice(d+1)).indexOf(")"),f++;return[a,c]}(c+d);if(!h[0])return!1;let i={type:"link",title:null,url:g+b+h[0],children:[{type:"text",value:b+h[0]}]};return h[1]?[i,{type:"text",value:h[1]}]:i}function k5(a,b,c,d){return!(!k6(d,!0)||/[-\d_]$/.test(c))&&{type:"link",title:null,url:"mailto:"+b+"@"+c,children:[{type:"text",value:b+"@"+c}]}}function k6(a,b){let c=a.input.charCodeAt(a.index-1);return(0===a.index||dL(c)||dK(c))&&(!b||47!==c)}function k7(){this.buffer()}function k8(a){this.enter({type:"footnoteReference",identifier:"",label:""},a)}function k9(){this.buffer()}function la(a){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},a)}function lb(a){let b=this.resume(),c=this.stack[this.stack.length-1];c.type,c.identifier=d8(this.sliceSerialize(a)).toLowerCase(),c.label=b}function lc(a){this.exit(a)}function ld(a){let b=this.resume(),c=this.stack[this.stack.length-1];c.type,c.identifier=d8(this.sliceSerialize(a)).toLowerCase(),c.label=b}function le(a){this.exit(a)}function lf(a,b,c,d){let e=c.createTracker(d),f=e.move("[^"),g=c.enter("footnoteReference"),h=c.enter("reference");return f+=e.move(c.safe(c.associationId(a),{after:"]",before:f})),h(),g(),f+=e.move("]")}function lg(a,b,c){return 0===b?a:lh(a,b,c)}function lh(a,b,c){return(c?"":" ")+a}lf.peek=function(){return"["};let li=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function lj(a){this.enter({type:"delete",children:[]},a)}function lk(a){this.exit(a)}function ll(a,b,c,d){let e=c.createTracker(d),f=c.enter("strikethrough"),g=e.move("~~");return g+=c.containerPhrasing(a,{...e.current(),before:g,after:"~"}),g+=e.move("~~"),f(),g}function lm(a){return a.length}function ln(a){let b="string"==typeof a?a.codePointAt(0):0;return 67===b||99===b?99:76===b||108===b?108:114*(82===b||114===b)}ll.peek=function(){return"~"};function lo(a,b,c){let d=a.value||"",e="`",f=-1;for(;RegExp("(^|[^`])"+e+"([^`]|$)").test(d);)e+="`";for(/[^ \r\n]/.test(d)&&(/^[ \r\n]/.test(d)&&/[ \r\n]$/.test(d)||/^`|`$/.test(d))&&(d=" "+d+" ");++f<c.unsafe.length;){let a,b=c.unsafe[f],e=c.compilePattern(b);if(b.atBreak)for(;a=e.exec(d);){let b=a.index;10===d.charCodeAt(b)&&13===d.charCodeAt(b-1)&&b--,d=d.slice(0,b)+" "+d.slice(a.index+1)}}return e+d+e}lo.peek=function(){return"`"};e_(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let lp=function(a,b,c,d){let e=function(a){let b=a.options.listItemIndent||"one";if("tab"!==b&&"one"!==b&&"mixed"!==b)throw Error("Cannot serialize items with `"+b+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return b}(c),f=c.bulletCurrent||function(a){let b=a.options.bullet||"*";if("*"!==b&&"+"!==b&&"-"!==b)throw Error("Cannot serialize items with `"+b+"` for `options.bullet`, expected `*`, `+`, or `-`");return b}(c);b&&"list"===b.type&&b.ordered&&(f=("number"==typeof b.start&&b.start>-1?b.start:1)+(!1===c.options.incrementListMarker?0:b.children.indexOf(a))+f);let g=f.length+1;("tab"===e||"mixed"===e&&(b&&"list"===b.type&&b.spread||a.spread))&&(g=4*Math.ceil(g/4));let h=c.createTracker(d);h.move(f+" ".repeat(g-f.length)),h.shift(g);let i=c.enter("listItem"),j=c.indentLines(c.containerFlow(a,h.current()),function(a,b,c){return b?(c?"":" ".repeat(g))+a:(c?f:f+" ".repeat(g-f.length))+a});return i(),j};function lq(a){let b=a._align;this.enter({type:"table",align:b.map(function(a){return"none"===a?null:a}),children:[]},a),this.data.inTable=!0}function lr(a){this.exit(a),this.data.inTable=void 0}function ls(a){this.enter({type:"tableRow",children:[]},a)}function lt(a){this.exit(a)}function lu(a){this.enter({type:"tableCell",children:[]},a)}function lv(a){let b=this.resume();this.data.inTable&&(b=b.replace(/\\([\\|])/g,lw));let c=this.stack[this.stack.length-1];c.type,c.value=b,this.exit(a)}function lw(a,b){return"|"===b?b:a}function lx(a){let b=this.stack[this.stack.length-2];b.type,b.checked="taskListCheckValueChecked"===a.type}function ly(a){let b=this.stack[this.stack.length-2];if(b&&"listItem"===b.type&&"boolean"==typeof b.checked){let a=this.stack[this.stack.length-1];a.type;let c=a.children[0];if(c&&"text"===c.type){let d,e=b.children,f=-1;for(;++f<e.length;){let a=e[f];if("paragraph"===a.type){d=a;break}}d===a&&(c.value=c.value.slice(1),0===c.value.length?a.children.shift():a.position&&c.position&&"number"==typeof c.position.start.offset&&(c.position.start.column++,c.position.start.offset++,a.position.start=Object.assign({},c.position.start)))}}this.exit(a)}function lz(a,b,c,d){let e=a.children[0],f="boolean"==typeof a.checked&&e&&"paragraph"===e.type,g="["+(a.checked?"x":" ")+"] ",h=c.createTracker(d);f&&h.move(g);let i=lp(a,b,c,{...d,...h.current()});return f&&(i=i.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(a){return a+g})),i}let lA={tokenize:function(a,b,c){let d=0;return function b(f){return(87===f||119===f)&&d<3?(d++,a.consume(f),b):46===f&&3===d?(a.consume(f),e):c(f)};function e(a){return null===a?c(a):b(a)}},partial:!0},lB={tokenize:function(a,b,c){let d,e,f;return g;function g(b){return 46===b||95===b?a.check(lD,i,h)(b):null===b||dI(b)||dL(b)||45!==b&&dK(b)?i(b):(f=!0,a.consume(b),g)}function h(b){return 95===b?d=!0:(e=d,d=void 0),a.consume(b),g}function i(a){return e||d||!f?c(a):b(a)}},partial:!0},lC={tokenize:function(a,b){let c=0,d=0;return e;function e(g){return 40===g?(c++,a.consume(g),e):41===g&&d<c?f(g):33===g||34===g||38===g||39===g||41===g||42===g||44===g||46===g||58===g||59===g||60===g||63===g||93===g||95===g||126===g?a.check(lD,b,f)(g):null===g||dI(g)||dL(g)?b(g):(a.consume(g),e)}function f(b){return 41===b&&d++,a.consume(b),e}},partial:!0},lD={tokenize:function(a,b,c){return d;function d(g){return 33===g||34===g||39===g||41===g||42===g||44===g||46===g||58===g||59===g||63===g||95===g||126===g?(a.consume(g),d):38===g?(a.consume(g),f):93===g?(a.consume(g),e):60===g||null===g||dI(g)||dL(g)?b(g):c(g)}function e(a){return null===a||40===a||91===a||dI(a)||dL(a)?b(a):d(a)}function f(b){return dA(b)?function b(e){return 59===e?(a.consume(e),d):dA(e)?(a.consume(e),b):c(e)}(b):c(b)}},partial:!0},lE={tokenize:function(a,b,c){return function(b){return a.consume(b),d};function d(a){return dB(a)?c(a):b(a)}},partial:!0},lF={name:"wwwAutolink",tokenize:function(a,b,c){let d=this;return function(b){return 87!==b&&119!==b||!lK.call(d,d.previous)||lO(d.events)?c(b):(a.enter("literalAutolink"),a.enter("literalAutolinkWww"),a.check(lA,a.attempt(lB,a.attempt(lC,e),c),c)(b))};function e(c){return a.exit("literalAutolinkWww"),a.exit("literalAutolink"),b(c)}},previous:lK},lG={name:"protocolAutolink",tokenize:function(a,b,c){let d=this,e="",f=!1;return function(b){return(72===b||104===b)&&lL.call(d,d.previous)&&!lO(d.events)?(a.enter("literalAutolink"),a.enter("literalAutolinkHttp"),e+=String.fromCodePoint(b),a.consume(b),g):c(b)};function g(b){if(dA(b)&&e.length<5)return e+=String.fromCodePoint(b),a.consume(b),g;if(58===b){let c=e.toLowerCase();if("http"===c||"https"===c)return a.consume(b),h}return c(b)}function h(b){return 47===b?(a.consume(b),f)?i:(f=!0,h):c(b)}function i(b){return null===b||dD(b)||dI(b)||dL(b)||dK(b)?c(b):a.attempt(lB,a.attempt(lC,j),c)(b)}function j(c){return a.exit("literalAutolinkHttp"),a.exit("literalAutolink"),b(c)}},previous:lL},lH={name:"emailAutolink",tokenize:function(a,b,c){let d,e,f=this;return function(b){return!lN(b)||!lM.call(f,f.previous)||lO(f.events)?c(b):(a.enter("literalAutolink"),a.enter("literalAutolinkEmail"),function b(d){return lN(d)?(a.consume(d),b):64===d?(a.consume(d),g):c(d)}(b))};function g(b){return 46===b?a.check(lE,i,h)(b):45===b||95===b||dB(b)?(e=!0,a.consume(b),g):i(b)}function h(b){return a.consume(b),d=!0,g}function i(g){return e&&d&&dA(f.previous)?(a.exit("literalAutolinkEmail"),a.exit("literalAutolink"),b(g)):c(g)}},previous:lM},lI={},lJ=48;for(;lJ<123;)lI[lJ]=lH,58==++lJ?lJ=65:91===lJ&&(lJ=97);function lK(a){return null===a||40===a||42===a||95===a||91===a||93===a||126===a||dI(a)}function lL(a){return!dA(a)}function lM(a){return!(47===a||lN(a))}function lN(a){return 43===a||45===a||46===a||95===a||dB(a)}function lO(a){let b=a.length,c=!1;for(;b--;){let d=a[b][1];if(("labelLink"===d.type||"labelImage"===d.type)&&!d._balanced){c=!0;break}if(d._gfmAutolinkLiteralWalkedInto){c=!1;break}}return a.length>0&&!c&&(a[a.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),c}lI[43]=lH,lI[45]=lH,lI[46]=lH,lI[95]=lH,lI[72]=[lH,lG],lI[104]=[lH,lG],lI[87]=[lH,lF],lI[119]=[lH,lF];let lP={tokenize:function(a,b,c){let d=this;return dN(a,function(a){let e=d.events[d.events.length-1];return e&&"gfmFootnoteDefinitionIndent"===e[1].type&&4===e[2].sliceSerialize(e[1],!0).length?b(a):c(a)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function lQ(a,b,c){let d,e=this,f=e.events.length,g=e.parser.gfmFootnotes||(e.parser.gfmFootnotes=[]);for(;f--;){let a=e.events[f][1];if("labelImage"===a.type){d=a;break}if("gfmFootnoteCall"===a.type||"labelLink"===a.type||"label"===a.type||"image"===a.type||"link"===a.type)break}return function(f){if(!d||!d._balanced)return c(f);let h=d8(e.sliceSerialize({start:d.end,end:e.now()}));return 94===h.codePointAt(0)&&g.includes(h.slice(1))?(a.enter("gfmFootnoteCallLabelMarker"),a.consume(f),a.exit("gfmFootnoteCallLabelMarker"),b(f)):c(f)}}function lR(a,b){let c=a.length;for(;c--;)if("labelImage"===a[c][1].type&&"enter"===a[c][0]){a[c][1];break}a[c+1][1].type="data",a[c+3][1].type="gfmFootnoteCallLabelMarker";let d={type:"gfmFootnoteCall",start:Object.assign({},a[c+3][1].start),end:Object.assign({},a[a.length-1][1].end)},e={type:"gfmFootnoteCallMarker",start:Object.assign({},a[c+3][1].end),end:Object.assign({},a[c+3][1].end)};e.end.column++,e.end.offset++,e.end._bufferIndex++;let f={type:"gfmFootnoteCallString",start:Object.assign({},e.end),end:Object.assign({},a[a.length-1][1].start)},g={type:"chunkString",contentType:"string",start:Object.assign({},f.start),end:Object.assign({},f.end)},h=[a[c+1],a[c+2],["enter",d,b],a[c+3],a[c+4],["enter",e,b],["exit",e,b],["enter",f,b],["enter",g,b],["exit",g,b],["exit",f,b],a[a.length-2],a[a.length-1],["exit",d,b]];return a.splice(c,a.length-c+1,...h),a}function lS(a,b,c){let d,e=this,f=e.parser.gfmFootnotes||(e.parser.gfmFootnotes=[]),g=0;return function(b){return a.enter("gfmFootnoteCall"),a.enter("gfmFootnoteCallLabelMarker"),a.consume(b),a.exit("gfmFootnoteCallLabelMarker"),h};function h(b){return 94!==b?c(b):(a.enter("gfmFootnoteCallMarker"),a.consume(b),a.exit("gfmFootnoteCallMarker"),a.enter("gfmFootnoteCallString"),a.enter("chunkString").contentType="string",i)}function i(h){if(g>999||93===h&&!d||null===h||91===h||dI(h))return c(h);if(93===h){a.exit("chunkString");let d=a.exit("gfmFootnoteCallString");return f.includes(d8(e.sliceSerialize(d)))?(a.enter("gfmFootnoteCallLabelMarker"),a.consume(h),a.exit("gfmFootnoteCallLabelMarker"),a.exit("gfmFootnoteCall"),b):c(h)}return dI(h)||(d=!0),g++,a.consume(h),92===h?j:i}function j(b){return 91===b||92===b||93===b?(a.consume(b),g++,i):i(b)}}function lT(a,b,c){let d,e,f=this,g=f.parser.gfmFootnotes||(f.parser.gfmFootnotes=[]),h=0;return function(b){return a.enter("gfmFootnoteDefinition")._container=!0,a.enter("gfmFootnoteDefinitionLabel"),a.enter("gfmFootnoteDefinitionLabelMarker"),a.consume(b),a.exit("gfmFootnoteDefinitionLabelMarker"),i};function i(b){return 94===b?(a.enter("gfmFootnoteDefinitionMarker"),a.consume(b),a.exit("gfmFootnoteDefinitionMarker"),a.enter("gfmFootnoteDefinitionLabelString"),a.enter("chunkString").contentType="string",j):c(b)}function j(b){if(h>999||93===b&&!e||null===b||91===b||dI(b))return c(b);if(93===b){a.exit("chunkString");let c=a.exit("gfmFootnoteDefinitionLabelString");return d=d8(f.sliceSerialize(c)),a.enter("gfmFootnoteDefinitionLabelMarker"),a.consume(b),a.exit("gfmFootnoteDefinitionLabelMarker"),a.exit("gfmFootnoteDefinitionLabel"),l}return dI(b)||(e=!0),h++,a.consume(b),92===b?k:j}function k(b){return 91===b||92===b||93===b?(a.consume(b),h++,j):j(b)}function l(b){return 58===b?(a.enter("definitionMarker"),a.consume(b),a.exit("definitionMarker"),g.includes(d)||g.push(d),dN(a,m,"gfmFootnoteDefinitionWhitespace")):c(b)}function m(a){return b(a)}}function lU(a,b,c){return a.check(dR,b,a.attempt(lP,b,c))}function lV(a){a.exit("gfmFootnoteDefinition")}class lW{constructor(){this.map=[]}add(a,b,c){!function(a,b,c,d){let e=0;if(0!==c||0!==d.length){for(;e<a.map.length;){if(a.map[e][0]===b){a.map[e][1]+=c,a.map[e][2].push(...d);return}e+=1}a.map.push([b,c,d])}}(this,a,b,c)}consume(a){if(this.map.sort(function(a,b){return a[0]-b[0]}),0===this.map.length)return;let b=this.map.length,c=[];for(;b>0;)b-=1,c.push(a.slice(this.map[b][0]+this.map[b][1]),this.map[b][2]),a.length=this.map[b][0];c.push(a.slice()),a.length=0;let d=c.pop();for(;d;){for(let b of d)a.push(b);d=c.pop()}this.map.length=0}}function lX(a,b,c){let d,e=this,f=0,g=0;return function(a){let b=e.events.length-1;for(;b>-1;){let a=e.events[b][1].type;if("lineEnding"===a||"linePrefix"===a)b--;else break}let d=b>-1?e.events[b][1].type:null,f="tableHead"===d||"tableRow"===d?s:h;return f===s&&e.parser.lazy[e.now().line]?c(a):f(a)};function h(b){var c;return a.enter("tableHead"),a.enter("tableRow"),124===(c=b)||(d=!0,g+=1),i(c)}function i(b){return null===b?c(b):dH(b)?g>1?(g=0,e.interrupt=!0,a.exit("tableRow"),a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),l):c(b):dJ(b)?dN(a,i,"whitespace")(b):(g+=1,d&&(d=!1,f+=1),124===b)?(a.enter("tableCellDivider"),a.consume(b),a.exit("tableCellDivider"),d=!0,i):(a.enter("data"),j(b))}function j(b){return null===b||124===b||dI(b)?(a.exit("data"),i(b)):(a.consume(b),92===b?k:j)}function k(b){return 92===b||124===b?(a.consume(b),j):j(b)}function l(b){return(e.interrupt=!1,e.parser.lazy[e.now().line])?c(b):(a.enter("tableDelimiterRow"),d=!1,dJ(b))?dN(a,m,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):m(b)}function m(b){return 45===b||58===b?o(b):124===b?(d=!0,a.enter("tableCellDivider"),a.consume(b),a.exit("tableCellDivider"),n):c(b)}function n(b){return dJ(b)?dN(a,o,"whitespace")(b):o(b)}function o(b){return 58===b?(g+=1,d=!0,a.enter("tableDelimiterMarker"),a.consume(b),a.exit("tableDelimiterMarker"),p):45===b?(g+=1,p(b)):null===b||dH(b)?r(b):c(b)}function p(b){return 45===b?(a.enter("tableDelimiterFiller"),function b(c){return 45===c?(a.consume(c),b):58===c?(d=!0,a.exit("tableDelimiterFiller"),a.enter("tableDelimiterMarker"),a.consume(c),a.exit("tableDelimiterMarker"),q):(a.exit("tableDelimiterFiller"),q(c))}(b)):c(b)}function q(b){return dJ(b)?dN(a,r,"whitespace")(b):r(b)}function r(e){if(124===e)return m(e);if(null===e||dH(e))return d&&f===g?(a.exit("tableDelimiterRow"),a.exit("tableHead"),b(e)):c(e);return c(e)}function s(b){return a.enter("tableRow"),t(b)}function t(c){return 124===c?(a.enter("tableCellDivider"),a.consume(c),a.exit("tableCellDivider"),t):null===c||dH(c)?(a.exit("tableRow"),b(c)):dJ(c)?dN(a,t,"whitespace")(c):(a.enter("data"),u(c))}function u(b){return null===b||124===b||dI(b)?(a.exit("data"),t(b)):(a.consume(b),92===b?v:u)}function v(b){return 92===b||124===b?(a.consume(b),u):u(b)}}function lY(a,b){let c,d,e,f=-1,g=!0,h=0,i=[0,0,0,0],j=[0,0,0,0],k=!1,l=0,m=new lW;for(;++f<a.length;){let n=a[f],o=n[1];"enter"===n[0]?"tableHead"===o.type?(k=!1,0!==l&&(l$(m,b,l,c,d),d=void 0,l=0),c={type:"table",start:Object.assign({},o.start),end:Object.assign({},o.end)},m.add(f,0,[["enter",c,b]])):"tableRow"===o.type||"tableDelimiterRow"===o.type?(g=!0,e=void 0,i=[0,0,0,0],j=[0,f+1,0,0],k&&(k=!1,d={type:"tableBody",start:Object.assign({},o.start),end:Object.assign({},o.end)},m.add(f,0,[["enter",d,b]])),h="tableDelimiterRow"===o.type?2:d?3:1):h&&("data"===o.type||"tableDelimiterMarker"===o.type||"tableDelimiterFiller"===o.type)?(g=!1,0===j[2]&&(0!==i[1]&&(j[0]=j[1],e=lZ(m,b,i,h,void 0,e),i=[0,0,0,0]),j[2]=f)):"tableCellDivider"===o.type&&(g?g=!1:(0!==i[1]&&(j[0]=j[1],e=lZ(m,b,i,h,void 0,e)),j=[(i=j)[1],f,0,0])):"tableHead"===o.type?(k=!0,l=f):"tableRow"===o.type||"tableDelimiterRow"===o.type?(l=f,0!==i[1]?(j[0]=j[1],e=lZ(m,b,i,h,f,e)):0!==j[1]&&(e=lZ(m,b,j,h,f,e)),h=0):h&&("data"===o.type||"tableDelimiterMarker"===o.type||"tableDelimiterFiller"===o.type)&&(j[3]=f)}for(0!==l&&l$(m,b,l,c,d),m.consume(b.events),f=-1;++f<b.events.length;){let a=b.events[f];"enter"===a[0]&&"table"===a[1].type&&(a[1]._align=function(a,b){let c=!1,d=[];for(;b<a.length;){let e=a[b];if(c){if("enter"===e[0])"tableContent"===e[1].type&&d.push("tableDelimiterMarker"===a[b+1][1].type?"left":"none");else if("tableContent"===e[1].type){if("tableDelimiterMarker"===a[b-1][1].type){let a=d.length-1;d[a]="left"===d[a]?"center":"right"}}else if("tableDelimiterRow"===e[1].type)break}else"enter"===e[0]&&"tableDelimiterRow"===e[1].type&&(c=!0);b+=1}return d}(b.events,f))}return a}function lZ(a,b,c,d,e,f){0!==c[0]&&(f.end=Object.assign({},l_(b.events,c[0])),a.add(c[0],0,[["exit",f,b]]));let g=l_(b.events,c[1]);if(f={type:1===d?"tableHeader":2===d?"tableDelimiter":"tableData",start:Object.assign({},g),end:Object.assign({},g)},a.add(c[1],0,[["enter",f,b]]),0!==c[2]){let e=l_(b.events,c[2]),f=l_(b.events,c[3]),g={type:"tableContent",start:Object.assign({},e),end:Object.assign({},f)};if(a.add(c[2],0,[["enter",g,b]]),2!==d){let d=b.events[c[2]],e=b.events[c[3]];if(d[1].end=Object.assign({},e[1].end),d[1].type="chunkText",d[1].contentType="text",c[3]>c[2]+1){let b=c[2]+1,d=c[3]-c[2]-1;a.add(b,d,[])}}a.add(c[3]+1,0,[["exit",g,b]])}return void 0!==e&&(f.end=Object.assign({},l_(b.events,e)),a.add(e,0,[["exit",f,b]]),f=void 0),f}function l$(a,b,c,d,e){let f=[],g=l_(b.events,c);e&&(e.end=Object.assign({},g),f.push(["exit",e,b])),d.end=Object.assign({},g),f.push(["exit",d,b]),a.add(c+1,0,f)}function l_(a,b){let c=a[b],d="enter"===c[0]?"start":"end";return c[1][d]}let l0={name:"tasklistCheck",tokenize:function(a,b,c){let d=this;return function(b){return null===d.previous&&d._gfmTasklistFirstContentOfListItem?(a.enter("taskListCheck"),a.enter("taskListCheckMarker"),a.consume(b),a.exit("taskListCheckMarker"),e):c(b)};function e(b){return dI(b)?(a.enter("taskListCheckValueUnchecked"),a.consume(b),a.exit("taskListCheckValueUnchecked"),f):88===b||120===b?(a.enter("taskListCheckValueChecked"),a.consume(b),a.exit("taskListCheckValueChecked"),f):c(b)}function f(b){return 93===b?(a.enter("taskListCheckMarker"),a.consume(b),a.exit("taskListCheckMarker"),a.exit("taskListCheck"),g):c(b)}function g(d){return dH(d)?b(d):dJ(d)?a.check({tokenize:l1},b,c)(d):c(d)}}};function l1(a,b,c){return dN(a,function(a){return null===a?c(a):b(a)},"whitespace")}let l2={};function l3(a){let b,c,d,e=a||l2,f=this.data(),g=f.micromarkExtensions||(f.micromarkExtensions=[]),h=f.fromMarkdownExtensions||(f.fromMarkdownExtensions=[]),i=f.toMarkdownExtensions||(f.toMarkdownExtensions=[]);g.push(dz([{text:lI},{document:{91:{name:"gfmFootnoteDefinition",tokenize:lT,continuation:{tokenize:lU},exit:lV}},text:{91:{name:"gfmFootnoteCall",tokenize:lS},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:lQ,resolveTo:lR}}},(b=(e||{}).singleTilde,c={name:"strikethrough",tokenize:function(a,c,d){let e=this.previous,f=this.events,g=0;return function(h){return 126===e&&"characterEscape"!==f[f.length-1][1].type?d(h):(a.enter("strikethroughSequenceTemporary"),function f(h){let i=ev(e);if(126===h)return g>1?d(h):(a.consume(h),g++,f);if(g<2&&!b)return d(h);let j=a.exit("strikethroughSequenceTemporary"),k=ev(h);return j._open=!k||2===k&&!!i,j._close=!i||2===i&&!!k,c(h)}(h))}},resolveAll:function(a,b){let c=-1;for(;++c<a.length;)if("enter"===a[c][0]&&"strikethroughSequenceTemporary"===a[c][1].type&&a[c][1]._close){let d=c;for(;d--;)if("exit"===a[d][0]&&"strikethroughSequenceTemporary"===a[d][1].type&&a[d][1]._open&&a[c][1].end.offset-a[c][1].start.offset==a[d][1].end.offset-a[d][1].start.offset){a[c][1].type="strikethroughSequence",a[d][1].type="strikethroughSequence";let e={type:"strikethrough",start:Object.assign({},a[d][1].start),end:Object.assign({},a[c][1].end)},f={type:"strikethroughText",start:Object.assign({},a[d][1].end),end:Object.assign({},a[c][1].start)},g=[["enter",e,b],["enter",a[d][1],b],["exit",a[d][1],b],["enter",f,b]],h=b.parser.constructs.insideSpan.null;h&&dt(g,g.length,0,ep(h,a.slice(d+1,c),b)),dt(g,g.length,0,[["exit",f,b],["enter",a[c][1],b],["exit",a[c][1],b],["exit",e,b]]),dt(a,d-1,c-d+3,g),c=d+g.length-2;break}}for(c=-1;++c<a.length;)"strikethroughSequenceTemporary"===a[c][1].type&&(a[c][1].type="data");return a}},null==b&&(b=!0),{text:{126:c},insideSpan:{null:[c]},attentionMarkers:{null:[126]}}),{flow:{null:{name:"table",tokenize:lX,resolveAll:lY}}},{text:{91:l0}}])),h.push([{transforms:[k3],enter:{literalAutolink:kZ,literalAutolinkEmail:k$,literalAutolinkHttp:k$,literalAutolinkWww:k$},exit:{literalAutolink:k2,literalAutolinkEmail:k1,literalAutolinkHttp:k_,literalAutolinkWww:k0}},{enter:{gfmFootnoteCallString:k7,gfmFootnoteCall:k8,gfmFootnoteDefinitionLabelString:k9,gfmFootnoteDefinition:la},exit:{gfmFootnoteCallString:lb,gfmFootnoteCall:lc,gfmFootnoteDefinitionLabelString:ld,gfmFootnoteDefinition:le}},{canContainEols:["delete"],enter:{strikethrough:lj},exit:{strikethrough:lk}},{enter:{table:lq,tableData:lu,tableHeader:lu,tableRow:ls},exit:{codeText:lv,table:lr,tableData:lt,tableHeader:lt,tableRow:lt}},{exit:{taskListCheckValueChecked:lx,taskListCheckValueUnchecked:lx,paragraph:ly}}]),i.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:kX,notInConstruct:kY},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:kX,notInConstruct:kY},{character:":",before:"[ps]",after:"\\/",inConstruct:kX,notInConstruct:kY}]},(d=!1,e&&e.firstLineBlank&&(d=!0),{handlers:{footnoteDefinition:function(a,b,c,e){let f=c.createTracker(e),g=f.move("[^"),h=c.enter("footnoteDefinition"),i=c.enter("label");return g+=f.move(c.safe(c.associationId(a),{before:g,after:"]"})),i(),g+=f.move("]:"),a.children&&a.children.length>0&&(f.shift(4),g+=f.move((d?"\n":" ")+c.indentLines(c.containerFlow(a,f.current()),d?lh:lg))),h(),g},footnoteReference:lf},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:li}],handlers:{delete:ll}},function(a){let b=a||{},c=b.tableCellPadding,d=b.tablePipeAlign,e=b.stringLength,f=c?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(a,b,c){let d=lo(a,b,c);return c.stack.includes("tableCell")&&(d=d.replace(/\|/g,"\\$&")),d},table:function(a,b,c,d){return h(function(a,b,c){let d=a.children,e=-1,f=[],g=b.enter("table");for(;++e<d.length;)f[e]=i(d[e],b,c);return g(),f}(a,c,d),a.align)},tableCell:g,tableRow:function(a,b,c,d){let e=h([i(a,c,d)]);return e.slice(0,e.indexOf("\n"))}}};function g(a,b,c,d){let e=c.enter("tableCell"),g=c.enter("phrasing"),h=c.containerPhrasing(a,{...d,before:f,after:f});return g(),e(),h}function h(a,b){return function(a,b){let c=b||{},d=(c.align||[]).concat(),e=c.stringLength||lm,f=[],g=[],h=[],i=[],j=0,k=-1;for(;++k<a.length;){let b=[],d=[],f=-1;for(a[k].length>j&&(j=a[k].length);++f<a[k].length;){var l;let g=null==(l=a[k][f])?"":String(l);if(!1!==c.alignDelimiters){let a=e(g);d[f]=a,(void 0===i[f]||a>i[f])&&(i[f]=a)}b.push(g)}g[k]=b,h[k]=d}let m=-1;if("object"==typeof d&&"length"in d)for(;++m<j;)f[m]=ln(d[m]);else{let a=ln(d);for(;++m<j;)f[m]=a}m=-1;let n=[],o=[];for(;++m<j;){let a=f[m],b="",d="";99===a?(b=":",d=":"):108===a?b=":":114===a&&(d=":");let e=!1===c.alignDelimiters?1:Math.max(1,i[m]-b.length-d.length),g=b+"-".repeat(e)+d;!1!==c.alignDelimiters&&((e=b.length+e+d.length)>i[m]&&(i[m]=e),o[m]=e),n[m]=g}g.splice(1,0,n),h.splice(1,0,o),k=-1;let p=[];for(;++k<g.length;){let a=g[k],b=h[k];m=-1;let d=[];for(;++m<j;){let e=a[m]||"",g="",h="";if(!1!==c.alignDelimiters){let a=i[m]-(b[m]||0),c=f[m];114===c?g=" ".repeat(a):99===c?a%2?(g=" ".repeat(a/2+.5),h=" ".repeat(a/2-.5)):h=g=" ".repeat(a/2):h=" ".repeat(a)}!1===c.delimiterStart||m||d.push("|"),!1!==c.padding&&(!1!==c.alignDelimiters||""!==e)&&(!1!==c.delimiterStart||m)&&d.push(" "),!1!==c.alignDelimiters&&d.push(g),d.push(e),!1!==c.alignDelimiters&&d.push(h),!1!==c.padding&&d.push(" "),(!1!==c.delimiterEnd||m!==j-1)&&d.push("|")}p.push(!1===c.delimiterEnd?d.join("").replace(/ +$/,""):d.join(""))}return p.join("\n")}(a,{align:b,alignDelimiters:d,padding:c,stringLength:e})}function i(a,b,c){let d=a.children,e=-1,f=[],h=b.enter("tableRow");for(;++e<d.length;)f[e]=g(d[e],a,b,c);return h(),f}}(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:lz}}]})}let l4={tokenize:function(a,b,c){let d=this,e=d.events[d.events.length-1],f=e&&"linePrefix"===e[1].type?e[2].sliceSerialize(e[1],!0).length:0,g=0;return function(b){return a.enter("mathFlow"),a.enter("mathFlowFence"),a.enter("mathFlowFenceSequence"),function b(d){return 36===d?(a.consume(d),g++,b):g<2?c(d):(a.exit("mathFlowFenceSequence"),dN(a,h,"whitespace")(d))}(b)};function h(b){return null===b||dH(b)?i(b):(a.enter("mathFlowFenceMeta"),a.enter("chunkString",{contentType:"string"}),function b(d){return null===d||dH(d)?(a.exit("chunkString"),a.exit("mathFlowFenceMeta"),i(d)):36===d?c(d):(a.consume(d),b)}(b))}function i(c){return(a.exit("mathFlowFence"),d.interrupt)?b(c):a.attempt(l5,j,m)(c)}function j(b){return a.attempt({tokenize:n,partial:!0},m,k)(b)}function k(b){return(f?dN(a,l,"linePrefix",f+1):l)(b)}function l(b){return null===b?m(b):dH(b)?a.attempt(l5,j,m)(b):(a.enter("mathFlowValue"),function b(c){return null===c||dH(c)?(a.exit("mathFlowValue"),l(c)):(a.consume(c),b)}(b))}function m(c){return a.exit("mathFlow"),b(c)}function n(a,b,c){let e=0;return dN(a,function(b){return a.enter("mathFlowFence"),a.enter("mathFlowFenceSequence"),function b(d){return 36===d?(e++,a.consume(d),b):e<g?c(d):(a.exit("mathFlowFenceSequence"),dN(a,f,"whitespace")(d))}(b)},"linePrefix",d.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function f(d){return null===d||dH(d)?(a.exit("mathFlowFence"),b(d)):c(d)}}},concrete:!0,name:"mathFlow"},l5={tokenize:function(a,b,c){let d=this;return function(c){return null===c?b(c):(a.enter("lineEnding"),a.consume(c),a.exit("lineEnding"),e)};function e(a){return d.parser.lazy[d.now().line]?c(a):b(a)}},partial:!0};function l6(a){let b,c,d=a.length-4,e=3;if(("lineEnding"===a[3][1].type||"space"===a[e][1].type)&&("lineEnding"===a[d][1].type||"space"===a[d][1].type)){for(b=e;++b<d;)if("mathTextData"===a[b][1].type){a[d][1].type="mathTextPadding",a[e][1].type="mathTextPadding",e+=2,d-=2;break}}for(b=e-1,d++;++b<=d;)void 0===c?b!==d&&"lineEnding"!==a[b][1].type&&(c=b):(b===d||"lineEnding"===a[b][1].type)&&(a[c][1].type="mathTextData",b!==c+2&&(a[c][1].end=a[b-1][1].end,a.splice(c+2,b-c-2),d-=b-c-2,b=c+2),c=void 0);return a}function l7(a){return 36!==a||"characterEscape"===this.events[this.events.length-1][1].type}let l8={};function l9(a){let b,c=a||l8,d=this.data(),e=d.micromarkExtensions||(d.micromarkExtensions=[]),f=d.fromMarkdownExtensions||(d.fromMarkdownExtensions=[]),g=d.toMarkdownExtensions||(d.toMarkdownExtensions=[]);e.push({flow:{36:l4},text:{36:(null==(b=(c||{}).singleDollarTextMath)&&(b=!0),{tokenize:function(a,c,d){let e,f,g=0;return function(c){return a.enter("mathText"),a.enter("mathTextSequence"),function c(e){return 36===e?(a.consume(e),g++,c):g<2&&!b?d(e):(a.exit("mathTextSequence"),h(e))}(c)};function h(b){return null===b?d(b):36===b?(f=a.enter("mathTextSequence"),e=0,function b(d){return 36===d?(a.consume(d),e++,b):e===g?(a.exit("mathTextSequence"),a.exit("mathText"),c(d)):(f.type="mathTextData",i(d))}(b)):32===b?(a.enter("space"),a.consume(b),a.exit("space"),h):dH(b)?(a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),h):(a.enter("mathTextData"),i(b))}function i(b){return null===b||32===b||36===b||dH(b)?(a.exit("mathTextData"),h(b)):(a.consume(b),i)}},resolve:l6,previous:l7,name:"mathText"})}}),f.push(function(){return{enter:{mathFlow:function(a){this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[{type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]}]}},a)},mathFlowFenceMeta:function(){this.buffer()},mathText:function(a){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},a),this.buffer()}},exit:{mathFlow:function(a){let b=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c=this.stack[this.stack.length-1];c.type,this.exit(a),c.value=b;let d=c.data.hChildren[0];d.type,d.tagName,d.children.push({type:"text",value:b}),this.data.mathFlowInside=void 0},mathFlowFence:function(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)},mathFlowFenceMeta:function(){let a=this.resume(),b=this.stack[this.stack.length-1];b.type,b.meta=a},mathFlowValue:a,mathText:function(a){let b=this.resume(),c=this.stack[this.stack.length-1];c.type,this.exit(a),c.value=b,c.data.hChildren.push({type:"text",value:b})},mathTextData:a}};function a(a){this.config.enter.data.call(this,a),this.config.exit.data.call(this,a)}}()),g.push(function(a){let b=(a||{}).singleDollarTextMath;return null==b&&(b=!0),c.peek=function(){return"$"},{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:"\n",inConstruct:"mathFlowMeta"},{character:"$",after:b?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:function(a,b,c,d){let e=a.value||"",f=c.createTracker(d),g="$".repeat(Math.max(function(a){let b=String(a),c=b.indexOf("$"),d=c,e=0,f=0;!1;for(;-1!==c;)c===d?++e>f&&(f=e):e=1,d=c+1,c=b.indexOf("$",d);return f}(e)+1,2)),h=c.enter("mathFlow"),i=f.move(g);if(a.meta){let b=c.enter("mathFlowMeta");i+=f.move(c.safe(a.meta,{after:"\n",before:i,encode:["$"],...f.current()})),b()}return i+=f.move("\n"),e&&(i+=f.move(e+"\n")),i+=f.move(g),h(),i},inlineMath:c}};function c(a,c,d){let e=a.value||"",f=1;for(!b&&f++;RegExp("(^|[^$])"+"\\$".repeat(f)+"([^$]|$)").test(e);)f++;let g="$".repeat(f);/[^ \r\n]/.test(e)&&(/^[ \r\n]/.test(e)&&/[ \r\n]$/.test(e)||/^\$|\$$/.test(e))&&(e=" "+e+" ");let h=-1;for(;++h<d.unsafe.length;){let a,b=d.unsafe[h];if(!b.atBreak)continue;let c=d.compilePattern(b);for(;a=c.exec(e);){let b=a.index;10===e.codePointAt(b)&&13===e.codePointAt(b-1)&&b--,e=e.slice(0,b)+" "+e.slice(a.index+1)}}return g+e+g}}(c))}let ma={...jV,attributes:{...jV.attributes,code:[["className",/^language-./,"math-inline","math-display"]]},protocols:{...jV.protocols,href:[...jV.protocols?.href??[],"file"]},strip:[...jV.strip||[],"iframe","object","style","form"]};function mb(a){return/^file:/i.test(a)?a:fK(a)}let mc=/(?<![\\`])`((?:[^`\n]|\\`)+?)(?<![\\`])`(?!`)/g;function md(a){let b=a.includes("\r\n")?"\r\n":"\n",c=a.split(/\r?\n/),d=[],e=null,f=0,g=null,h=new Map,i=new Set;for(let a=0;a<c.length;a++){var j,k;let b=c[a];if(g){d.push(b),RegExp(`</${g}\\s*>`,"i").test(b)&&(g=null);continue}let l=b.match(/^ {0,3}(`{3,}|~{3,})/);if(l){let a=l[1][0],c=l[1].length;e?a===e.marker&&c>=e.size&&(e=null):e={marker:a,size:c},f=0,d.push(b);continue}if(e){d.push(b);continue}let m=b.match(/<(code|pre|script|style)\b/i);if(m){let a=m[1].toLowerCase(),c=b.slice((m.index??0)+m[0].length);RegExp(`</${a}\\s*>`,"i").test(c)||(g=a),f=0,d.push(b);continue}if(""===b.trim()||/^(?: {4}|\t)/.test(b)&&!/^[ \t]*\$\$/.test(b)||i.has(a)){f=0,d.push(b);continue}if(f||(b=b.replace(mc,(a,b)=>{let c=b.replace(/\\`/g,"`");if(c===b)return a;let d="`".repeat(Math.max(...c.match(/`+/g)?.map(a=>a.length)??[0])+1);return`${d}${c}${d}`})),f||b.includes("`")){f=function(a,b){let c=b;for(let b=0;b<a.length;){if("`"!==a[b]){b++;continue}let d=b+1;for(;"`"===a[d];)d++;let e=d-b;0===c?c=e:e===c&&(c=0),b=d}return c}(b,f),d.push(b);continue}let n=b.match(/^([ ]{0,3})\\\[[ \t]*(.+?)[ \t]*\\\][ \t]*$/);if(n){let a=n[2].trim();if(a){d.push(`${n[1]}$$`,`${n[1]}${a}`,`${n[1]}$$`);continue}}let o=b.match(/^([ ]{0,3})\[[ \t]*(.+?)[ \t]*\][ \t]*$/);if(o){let a=o[2].trim();if(j=a,/\\[A-Za-z]+/.test(j)&&!/\b(?:https?|file|mailto):|\b[A-Za-z]:\\|^\\\\/i.test(j)){d.push(`${o[1]}$$`,`${o[1]}${a}`,`${o[1]}$$`);continue}}let p=b.match(/^([ ]{0,3})\\\[[ \t]*$/);if(p){let b=function(a,b){for(let c=b;c<a.length;c++){let b=a[c];if(/^ {0,3}\\\][ \t]*$/.test(b))return c;if(/^ {0,3}(`{3,}|~{3,})/.test(b)||/^ {0,3}\\\[[ \t]*$/.test(b)||/<(code|pre|script|style)\b/i.test(b))break}return -1}(c,a+1);if(-1!==b){d.push(`${p[1]}$$`,...c.slice(a+1,b).map(a=>mh(a,p[1])),`${p[1]}$$`),a=b;continue}}let q=b.match(/^([ \t]*)\$\$(.+)\$\$[ \t]*$/);if(q){let a=q[2].trim();if(a){d.push(`${q[1]}$$`,`${q[1]}${a}`,`${q[1]}$$`);continue}}let r=b.match(/^([ \t]*)\$\$(.+)$/);if(r){let e=r[1],f=r[2].trimEnd();if(f&&!f.includes("$$")){let g=me(c,a+1,e,h);if(g){d.push(`${e}$$`,`${e}${f}`);for(let b=a+1;b<g.index;b++)d.push(mh(c[b],e));g.content&&d.push(`${e}${g.content}`),d.push(`${e}$$`),a=g.index;continue}d.push(mf(b));continue}}let s=b.match(/^([ \t]*)\$\$\s*$/);if(s){let e=s[1],f=me(c,a+1,e,h);if(f&&(f.glued||""!==e)){d.push(`${e}$$`);for(let b=a+1;b<f.index;b++)d.push(mh(c[b],e));f.content&&d.push(`${e}${f.content}`),d.push(`${e}$$`),a=f.index;continue}if(f){i.add(f.index),d.push(b);continue}d.push(mf(b));continue}d.push((k=b,/^\s{0,3}\[[^\]]+\]:/.test(k)||/]\s*\(/.test(k)||/<(?:!--|\/?[A-Za-z][^>]*>)/.test(k)||/\b(?:https?|file|mailto):/i.test(k)||/\b[A-Za-z]:\\/.test(k)?k:k.replace(/(?<!\\)\\\(([^`\r\n$]+?)(?<!\\)\\\)/g,(a,b)=>b.trim()?`$${b}$`:a)))}return d.join(b)}function me(a,b,c,d){let e=d.get(c);if(void 0!==e&&b<e)return null;for(let e=b;e<a.length;e++){var f,g;let b=a[e];if(function(a,b){if(""===b)return/^ {0,3}\$\$\s*$/.test(a);let c=mg(a,b);return null!==c&&/^\$\$\s*$/.test(c)}(b,c))return{index:e,content:"",glued:!1};if(f=b,/^ {0,3}(`{3,}|~{3,})/.test(f)||/^[ \t]*(?:[-+*]|\d{1,9}[.)])(?:[ \t]+|$)/.test(f)||/^ {0,3}#{1,6}(?:[ \t]+|$)/.test(f)||/^ {0,3}>/.test(f)||/<(code|pre|script|style)\b/i.test(f)||(g=b,/^[ \t]*\$\$(?:\S|[ \t]+\S)/.test(g)))return d.set(c,e),null;let h=function(a,b){let c=mg(a,b);if(null===c)return null;let d=c.match(/^(.+?)\$\$\s*$/);if(!d)return null;let e=d[1].trimEnd();return e&&!e.includes("$$")?e:null}(b,c);if(null!==h)return{index:e,content:h,glued:!0}}return d.set(c,a.length),null}function mf(a){return a.replace(/^([ \t]*)\$\$/,(a,b)=>`${b}\\$\\$`)}function mg(a,b){if(a.startsWith(b))return a.slice(b.length);let c=a.match(/^[ \t]*/)?.[0]??"";return b&&c.length<b.length?a.slice(c.length):null}function mh(a,b){if(!b||!a||a.startsWith(" "))return a;let c=a.match(/^ */)?.[0].length??0;return c>=b.length?a:`${b.slice(c)}${a}`}let mi={singleTilde:!1},mj=[[kV,["yaml"]],[l3,mi],l9,kI],mk=[[kV,["yaml"]],[l3,mi],l9,kI],ml=[jT,[j1,ma],[hZ,{throwOnError:!1,strict:!1}]],mm=[jT,[j1,ma],[hZ,{throwOnError:!1,strict:!1}]];var mn=c(74042);let mo=["light","dark","auto"],mp={preference:"auto",theme:"light"},mq=new Set,mr={light:"#f5f5f5",dark:"#242424"};function ms(a,b,c){if("u">typeof document&&(document.documentElement.classList.toggle("dark","dark"===b),function(a){if("u"<typeof document)return;let b=mr[a],c=document.querySelectorAll('meta[name="theme-color"]');if(0===c.length){let a=document.createElement("meta");a.name="theme-color",a.content=b,document.head.appendChild(a);return}for(let a of c)a.removeAttribute("media"),a.content=b}(b)),c)try{localStorage.setItem("pi-theme",a)}catch{}mq.forEach(a=>a())}function mt(a){return mq.add(a),!function(){if("auto"!==mp.preference)return;let a="light";a!==mp.theme&&ms("auto",a,!1)}(),()=>{mq.delete(a)}}function mu(){return mp}function mv(){return mp}function mw(){let a=(0,t.useSyncExternalStore)(mt,mu,mv),b=(0,t.useCallback)((a,b)=>{if(mp.preference===a)return;let c="auto"===a?"light":a,d=()=>{ms(a,c,!0)},e=window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;if("function"!=typeof document.startViewTransition||e)return void d();let f=b?.x??window.innerWidth/2,g=b?.y??window.innerHeight/2,h=Math.hypot(Math.max(f,window.innerWidth-f),Math.max(g,window.innerHeight-g));document.startViewTransition(d).ready.then(()=>{document.documentElement.animate({clipPath:[`circle(0px at ${f}px ${g}px)`,`circle(${h}px at ${f}px ${g}px)`]},{duration:450,easing:"cubic-bezier(0.22, 0.61, 0.36, 1)",pseudoElement:"::view-transition-new(root)"})}).catch(()=>{})},[]),c=(0,t.useCallback)(a=>{var c;let d;b((c=mp.preference,d=mo.indexOf(c),mo[(d+1)%mo.length]),a)},[b]);return{theme:a.theme,preference:a.preference,setThemePreference:b,toggleTheme:c,isDark:"dark"===a.theme}}function mx(a){if(navigator.clipboard?.writeText)return navigator.clipboard.writeText(a);try{let b=document.createElement("textarea");return b.value=a,b.style.position="fixed",b.style.opacity="0",document.body.appendChild(b),b.select(),document.execCommand("copy"),document.body.removeChild(b),Promise.resolve()}catch{return Promise.reject()}}var my=c(91721),mz=c.n(my),mA=c(18922),mB=c.n(mA),mC=c(22027),mD=c.n(mC),mE=c(58620),mF=c.n(mE);function mG(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function mH(a){for(var b=1;b<arguments.length;b++){var c=null!=arguments[b]?arguments[b]:{};b%2?mG(Object(c),!0).forEach(function(b){mD()(a,b,c[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(c)):mG(Object(c)).forEach(function(b){Object.defineProperty(a,b,Object.getOwnPropertyDescriptor(c,b))})}return a}var mI={};function mJ(a){var b=a.node,c=a.stylesheet,d=a.style,e=a.useInlineStyles,f=a.key,g=b.properties,h=b.type,i=b.tagName,j=b.value;if("text"===h)return j;if(i){var k,l,m=(k=0,function(a){return k+=1,a.map(function(a,b){return mJ({node:a,stylesheet:c,useInlineStyles:e,key:"code-segment-".concat(k,"-").concat(b)})})});if(e){var n=Object.keys(c).reduce(function(a,b){return b.split(".").forEach(function(b){a.includes(b)||a.push(b)}),a},[]),o=g.className&&g.className.includes("token")?["token"]:[],p=g.className&&o.concat(g.className.filter(function(a){return!n.includes(a)}));l=mH(mH({},g),{},{className:p.join(" ")||void 0,style:function(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2?arguments[2]:void 0;return(function(a){if(0===a.length||1===a.length)return a;var b,c=a.join(".");return mI[c]||(mI[c]=0===(b=a.length)||1===b?a:2===b?[a[0],a[1],"".concat(a[0],".").concat(a[1]),"".concat(a[1],".").concat(a[0])]:3===b?[a[0],a[1],a[2],"".concat(a[0],".").concat(a[1]),"".concat(a[0],".").concat(a[2]),"".concat(a[1],".").concat(a[0]),"".concat(a[1],".").concat(a[2]),"".concat(a[2],".").concat(a[0]),"".concat(a[2],".").concat(a[1]),"".concat(a[0],".").concat(a[1],".").concat(a[2]),"".concat(a[0],".").concat(a[2],".").concat(a[1]),"".concat(a[1],".").concat(a[0],".").concat(a[2]),"".concat(a[1],".").concat(a[2],".").concat(a[0]),"".concat(a[2],".").concat(a[0],".").concat(a[1]),"".concat(a[2],".").concat(a[1],".").concat(a[0])]:b>=4?[a[0],a[1],a[2],a[3],"".concat(a[0],".").concat(a[1]),"".concat(a[0],".").concat(a[2]),"".concat(a[0],".").concat(a[3]),"".concat(a[1],".").concat(a[0]),"".concat(a[1],".").concat(a[2]),"".concat(a[1],".").concat(a[3]),"".concat(a[2],".").concat(a[0]),"".concat(a[2],".").concat(a[1]),"".concat(a[2],".").concat(a[3]),"".concat(a[3],".").concat(a[0]),"".concat(a[3],".").concat(a[1]),"".concat(a[3],".").concat(a[2]),"".concat(a[0],".").concat(a[1],".").concat(a[2]),"".concat(a[0],".").concat(a[1],".").concat(a[3]),"".concat(a[0],".").concat(a[2],".").concat(a[1]),"".concat(a[0],".").concat(a[2],".").concat(a[3]),"".concat(a[0],".").concat(a[3],".").concat(a[1]),"".concat(a[0],".").concat(a[3],".").concat(a[2]),"".concat(a[1],".").concat(a[0],".").concat(a[2]),"".concat(a[1],".").concat(a[0],".").concat(a[3]),"".concat(a[1],".").concat(a[2],".").concat(a[0]),"".concat(a[1],".").concat(a[2],".").concat(a[3]),"".concat(a[1],".").concat(a[3],".").concat(a[0]),"".concat(a[1],".").concat(a[3],".").concat(a[2]),"".concat(a[2],".").concat(a[0],".").concat(a[1]),"".concat(a[2],".").concat(a[0],".").concat(a[3]),"".concat(a[2],".").concat(a[1],".").concat(a[0]),"".concat(a[2],".").concat(a[1],".").concat(a[3]),"".concat(a[2],".").concat(a[3],".").concat(a[0]),"".concat(a[2],".").concat(a[3],".").concat(a[1]),"".concat(a[3],".").concat(a[0],".").concat(a[1]),"".concat(a[3],".").concat(a[0],".").concat(a[2]),"".concat(a[3],".").concat(a[1],".").concat(a[0]),"".concat(a[3],".").concat(a[1],".").concat(a[2]),"".concat(a[3],".").concat(a[2],".").concat(a[0]),"".concat(a[3],".").concat(a[2],".").concat(a[1]),"".concat(a[0],".").concat(a[1],".").concat(a[2],".").concat(a[3]),"".concat(a[0],".").concat(a[1],".").concat(a[3],".").concat(a[2]),"".concat(a[0],".").concat(a[2],".").concat(a[1],".").concat(a[3]),"".concat(a[0],".").concat(a[2],".").concat(a[3],".").concat(a[1]),"".concat(a[0],".").concat(a[3],".").concat(a[1],".").concat(a[2]),"".concat(a[0],".").concat(a[3],".").concat(a[2],".").concat(a[1]),"".concat(a[1],".").concat(a[0],".").concat(a[2],".").concat(a[3]),"".concat(a[1],".").concat(a[0],".").concat(a[3],".").concat(a[2]),"".concat(a[1],".").concat(a[2],".").concat(a[0],".").concat(a[3]),"".concat(a[1],".").concat(a[2],".").concat(a[3],".").concat(a[0]),"".concat(a[1],".").concat(a[3],".").concat(a[0],".").concat(a[2]),"".concat(a[1],".").concat(a[3],".").concat(a[2],".").concat(a[0]),"".concat(a[2],".").concat(a[0],".").concat(a[1],".").concat(a[3]),"".concat(a[2],".").concat(a[0],".").concat(a[3],".").concat(a[1]),"".concat(a[2],".").concat(a[1],".").concat(a[0],".").concat(a[3]),"".concat(a[2],".").concat(a[1],".").concat(a[3],".").concat(a[0]),"".concat(a[2],".").concat(a[3],".").concat(a[0],".").concat(a[1]),"".concat(a[2],".").concat(a[3],".").concat(a[1],".").concat(a[0]),"".concat(a[3],".").concat(a[0],".").concat(a[1],".").concat(a[2]),"".concat(a[3],".").concat(a[0],".").concat(a[2],".").concat(a[1]),"".concat(a[3],".").concat(a[1],".").concat(a[0],".").concat(a[2]),"".concat(a[3],".").concat(a[1],".").concat(a[2],".").concat(a[0]),"".concat(a[3],".").concat(a[2],".").concat(a[0],".").concat(a[1]),"".concat(a[3],".").concat(a[2],".").concat(a[1],".").concat(a[0])]:void 0),mI[c]})(a.filter(function(a){return"token"!==a})).reduce(function(a,b){return mH(mH({},a),c[b])},b)}(g.className,Object.assign({},g.style,void 0===d?{}:d),c)})}else l=mH(mH({},g),{},{className:g.className.join(" ")});var q=m(b.children);return u().createElement(i,mF()({key:f},l),q)}}var mK=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function mL(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function mM(a){for(var b=1;b<arguments.length;b++){var c=null!=arguments[b]?arguments[b]:{};b%2?mL(Object(c),!0).forEach(function(b){mD()(a,b,c[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(c)):mL(Object(c)).forEach(function(b){Object.defineProperty(a,b,Object.getOwnPropertyDescriptor(c,b))})}return a}var mN=/\n/g;function mO(a){var b,c,d,e,f=a.codeString,g=a.codeStyle,h=a.containerStyle,i=a.numberStyle,j=a.startingLineNumber;return u().createElement("code",{style:Object.assign({},g,void 0===h?{float:"left",paddingRight:"10px"}:h)},(c=(b={lines:f.replace(/\n$/,"").split("\n"),style:void 0===i?{}:i,startingLineNumber:j}).lines,d=b.startingLineNumber,e=b.style,c.map(function(a,b){var c=b+d;return u().createElement("span",{key:"line-".concat(b),className:"react-syntax-highlighter-line-number",style:"function"==typeof e?e(c):e},"".concat(c,"\n"))})))}function mP(a,b){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(a),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:b},children:[{type:"text",value:a}]}}function mQ(a,b,c){var d={display:"inline-block",minWidth:"".concat(c.toString().length,".25em"),paddingRight:"1em",textAlign:"right",userSelect:"none"},e="function"==typeof a?a(b):a;return mM(mM({},d),e)}function mR(a){var b=a.children,c=a.lineNumber,d=a.lineNumberStyle,e=a.largestLineNumber,f=a.showInlineLineNumbers,g=a.lineProps,h=void 0===g?{}:g,i=a.className,j=void 0===i?[]:i,k=a.showLineNumbers,l=a.wrapLongLines,m=a.wrapLines,n=void 0!==m&&m?mM({},"function"==typeof h?h(c):h):{};if(n.className=n.className?[].concat(mB()(n.className.trim().split(/\s+/)),mB()(j)):j,c&&f){var o=mQ(d,c,e);b.unshift(mP(c,o))}return l&k&&(n.style=mM({display:"flex"},n.style)),{type:"element",tagName:"span",properties:n,children:b}}function mS(a){var b=a.rows,c=a.stylesheet,d=a.useInlineStyles;return b.map(function(a,b){return mJ({node:a,stylesheet:c,useInlineStyles:d,key:"code-segment-".concat(b)})})}function mT(a){return a&&void 0!==a.highlightAuto}function mU(a){a.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},a.languages.markup.tag.inside["attr-value"].inside.entity=a.languages.markup.entity,a.languages.markup.doctype.inside["internal-subset"].inside=a.languages.markup,a.hooks.add("wrap",function(a){"entity"===a.type&&(a.attributes.title=a.content.value.replace(/&/,"&"))}),Object.defineProperty(a.languages.markup.tag,"addInlined",{value:function(b,c){var d={};d["language-"+c]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:a.languages[c]},d.cdata=/^<!\[CDATA\[|\]\]>$/i;var e={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:d}};e["language-"+c]={pattern:/[\s\S]+/,inside:a.languages[c]};var f={};f[b]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return b}),"i"),lookbehind:!0,greedy:!0,inside:e},a.languages.insertBefore("markup","cdata",f)}}),Object.defineProperty(a.languages.markup.tag,"addAttribute",{value:function(b,c){a.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+b+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[c,"language-"+c],inside:a.languages[c]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),a.languages.html=a.languages.markup,a.languages.mathml=a.languages.markup,a.languages.svg=a.languages.markup,a.languages.xml=a.languages.extend("markup",{}),a.languages.ssml=a.languages.xml,a.languages.atom=a.languages.xml,a.languages.rss=a.languages.xml}function mV(a){var b,c;b=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,a.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+b.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+b.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+b.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+b.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:b,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},a.languages.css.atrule.inside.rest=a.languages.css,(c=a.languages.markup)&&(c.tag.addInlined("style","css"),c.tag.addAttribute("style","css"))}function mW(a){a.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}function mX(a){var b,c,d,e,f;b={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},e=RegExp((d="(?:[^\\\\-]|"+(c=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/).source+")")+"-"+d),f={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"},a.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:e,inside:{escape:c,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":b,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:c}},"special-escape":b,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":f}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:c,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":f}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}function mY(a){a.register(mW),a.languages.javascript=a.languages.extend("clike",{"class-name":[a.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source)+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),a.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,a.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:a.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:a.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:a.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:a.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:a.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),a.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:a.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),a.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),a.languages.markup&&(a.languages.markup.tag.addInlined("script","javascript"),a.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),a.languages.js=a.languages.javascript}function mZ(a){a.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:\*-INPUT|\?TO|ABAP-SOURCE|ABBREVIATED|ABS|ABSTRACT|ACCEPT|ACCEPTING|ACCESSPOLICY|ACCORDING|ACOS|ACTIVATION|ACTUAL|ADD|ADD-CORRESPONDING|ADJACENT|AFTER|ALIAS|ALIASES|ALIGN|ALL|ALLOCATE|ALPHA|ANALYSIS|ANALYZER|AND|ANY|APPEND|APPENDAGE|APPENDING|APPLICATION|ARCHIVE|AREA|ARITHMETIC|AS|ASCENDING|ASIN|ASPECT|ASSERT|ASSIGN|ASSIGNED|ASSIGNING|ASSOCIATION|ASYNCHRONOUS|AT|ATAN|ATTRIBUTES|AUTHORITY|AUTHORITY-CHECK|AVG|BACK|BACKGROUND|BACKUP|BACKWARD|BADI|BASE|BEFORE|BEGIN|BETWEEN|BIG|BINARY|BINDING|BIT|BIT-AND|BIT-NOT|BIT-OR|BIT-XOR|BLACK|BLANK|BLANKS|BLOB|BLOCK|BLOCKS|BLUE|BOUND|BOUNDARIES|BOUNDS|BOXED|BREAK-POINT|BT|BUFFER|BY|BYPASSING|BYTE|BYTE-CA|BYTE-CN|BYTE-CO|BYTE-CS|BYTE-NA|BYTE-NS|BYTE-ORDER|C|CA|CALL|CALLING|CASE|CAST|CASTING|CATCH|CEIL|CENTER|CENTERED|CHAIN|CHAIN-INPUT|CHAIN-REQUEST|CHANGE|CHANGING|CHANNELS|CHAR-TO-HEX|CHARACTER|CHARLEN|CHECK|CHECKBOX|CIRCULAR|CI_|CLASS|CLASS-CODING|CLASS-DATA|CLASS-EVENTS|CLASS-METHODS|CLASS-POOL|CLEANUP|CLEAR|CLIENT|CLOB|CLOCK|CLOSE|CN|CNT|CO|COALESCE|CODE|CODING|COLLECT|COLOR|COLUMN|COLUMNS|COL_BACKGROUND|COL_GROUP|COL_HEADING|COL_KEY|COL_NEGATIVE|COL_NORMAL|COL_POSITIVE|COL_TOTAL|COMMENT|COMMENTS|COMMIT|COMMON|COMMUNICATION|COMPARING|COMPONENT|COMPONENTS|COMPRESSION|COMPUTE|CONCAT|CONCATENATE|COND|CONDENSE|CONDITION|CONNECT|CONNECTION|CONSTANTS|CONTEXT|CONTEXTS|CONTINUE|CONTROL|CONTROLS|CONV|CONVERSION|CONVERT|COPIES|COPY|CORRESPONDING|COS|COSH|COUNT|COUNTRY|COVER|CP|CPI|CREATE|CREATING|CRITICAL|CS|CURRENCY|CURRENCY_CONVERSION|CURRENT|CURSOR|CURSOR-SELECTION|CUSTOMER|CUSTOMER-FUNCTION|DANGEROUS|DATA|DATABASE|DATAINFO|DATASET|DATE|DAYLIGHT|DBMAXLEN|DD\/MM\/YY|DD\/MM\/YYYY|DDMMYY|DEALLOCATE|DECIMALS|DECIMAL_SHIFT|DECLARATIONS|DEEP|DEFAULT|DEFERRED|DEFINE|DEFINING|DEFINITION|DELETE|DELETING|DEMAND|DEPARTMENT|DESCENDING|DESCRIBE|DESTINATION|DETAIL|DIALOG|DIRECTORY|DISCONNECT|DISPLAY|DISPLAY-MODE|DISTANCE|DISTINCT|DIV|DIVIDE|DIVIDE-CORRESPONDING|DIVISION|DO|DUMMY|DUPLICATE|DUPLICATES|DURATION|DURING|DYNAMIC|DYNPRO|E|EACH|EDIT|EDITOR-CALL|ELSE|ELSEIF|EMPTY|ENABLED|ENABLING|ENCODING|END|END-ENHANCEMENT-SECTION|END-LINES|END-OF-DEFINITION|END-OF-FILE|END-OF-PAGE|END-OF-SELECTION|ENDAT|ENDCASE|ENDCATCH|ENDCHAIN|ENDCLASS|ENDDO|ENDENHANCEMENT|ENDEXEC|ENDFOR|ENDFORM|ENDFUNCTION|ENDIAN|ENDIF|ENDING|ENDINTERFACE|ENDLOOP|ENDMETHOD|ENDMODULE|ENDON|ENDPROVIDE|ENDSELECT|ENDTRY|ENDWHILE|ENGINEERING|ENHANCEMENT|ENHANCEMENT-POINT|ENHANCEMENT-SECTION|ENHANCEMENTS|ENTRIES|ENTRY|ENVIRONMENT|EQ|EQUAL|EQUIV|ERRORMESSAGE|ERRORS|ESCAPE|ESCAPING|EVENT|EVENTS|EXACT|EXCEPT|EXCEPTION|EXCEPTION-TABLE|EXCEPTIONS|EXCLUDE|EXCLUDING|EXEC|EXECUTE|EXISTS|EXIT|EXIT-COMMAND|EXP|EXPAND|EXPANDING|EXPIRATION|EXPLICIT|EXPONENT|EXPORT|EXPORTING|EXTEND|EXTENDED|EXTENSION|EXTRACT|FAIL|FETCH|FIELD|FIELD-GROUPS|FIELD-SYMBOL|FIELD-SYMBOLS|FIELDS|FILE|FILTER|FILTER-TABLE|FILTERS|FINAL|FIND|FIRST|FIRST-LINE|FIXED-POINT|FKEQ|FKGE|FLOOR|FLUSH|FONT|FOR|FORM|FORMAT|FORWARD|FOUND|FRAC|FRAME|FRAMES|FREE|FRIENDS|FROM|FUNCTION|FUNCTION-POOL|FUNCTIONALITY|FURTHER|GAPS|GE|GENERATE|GET|GIVING|GKEQ|GKGE|GLOBAL|GRANT|GREATER|GREEN|GROUP|GROUPS|GT|HANDLE|HANDLER|HARMLESS|HASHED|HAVING|HDB|HEAD-LINES|HEADER|HEADERS|HEADING|HELP-ID|HELP-REQUEST|HIDE|HIGH|HINT|HOLD|HOTSPOT|I|ICON|ID|IDENTIFICATION|IDENTIFIER|IDS|IF|IGNORE|IGNORING|IMMEDIATELY|IMPLEMENTATION|IMPLEMENTATIONS|IMPLEMENTED|IMPLICIT|IMPORT|IMPORTING|IN|INACTIVE|INCL|INCLUDE|INCLUDES|INCLUDING|INCREMENT|INDEX|INDEX-LINE|INFOTYPES|INHERITING|INIT|INITIAL|INITIALIZATION|INNER|INOUT|INPUT|INSERT|INSTANCES|INTENSIFIED|INTERFACE|INTERFACE-POOL|INTERFACES|INTERNAL|INTERVALS|INTO|INVERSE|INVERTED-DATE|IS|ISO|ITERATOR|ITNO|JOB|JOIN|KEEP|KEEPING|KERNEL|KEY|KEYS|KEYWORDS|KIND|LANGUAGE|LAST|LATE|LAYOUT|LE|LEADING|LEAVE|LEFT|LEFT-JUSTIFIED|LEFTPLUS|LEFTSPACE|LEGACY|LENGTH|LESS|LET|LEVEL|LEVELS|LIKE|LINE|LINE-COUNT|LINE-SELECTION|LINE-SIZE|LINEFEED|LINES|LIST|LIST-PROCESSING|LISTBOX|LITTLE|LLANG|LOAD|LOAD-OF-PROGRAM|LOB|LOCAL|LOCALE|LOCATOR|LOG|LOG-POINT|LOG10|LOGFILE|LOGICAL|LONG|LOOP|LOW|LOWER|LPAD|LPI|LT|M|MAIL|MAIN|MAJOR-ID|MAPPING|MARGIN|MARK|MASK|MATCH|MATCHCODE|MAX|MAXIMUM|MEDIUM|MEMBERS|MEMORY|MESH|MESSAGE|MESSAGE-ID|MESSAGES|MESSAGING|METHOD|METHODS|MIN|MINIMUM|MINOR-ID|MM\/DD\/YY|MM\/DD\/YYYY|MMDDYY|MOD|MODE|MODIF|MODIFIER|MODIFY|MODULE|MOVE|MOVE-CORRESPONDING|MULTIPLY|MULTIPLY-CORRESPONDING|NA|NAME|NAMETAB|NATIVE|NB|NE|NESTED|NESTING|NEW|NEW-LINE|NEW-PAGE|NEW-SECTION|NEXT|NO|NO-DISPLAY|NO-EXTENSION|NO-GAP|NO-GAPS|NO-GROUPING|NO-HEADING|NO-SCROLLING|NO-SIGN|NO-TITLE|NO-TOPOFPAGE|NO-ZERO|NODE|NODES|NON-UNICODE|NON-UNIQUE|NOT|NP|NS|NULL|NUMBER|NUMOFCHAR|O|OBJECT|OBJECTS|OBLIGATORY|OCCURRENCE|OCCURRENCES|OCCURS|OF|OFF|OFFSET|OLE|ON|ONLY|OPEN|OPTION|OPTIONAL|OPTIONS|OR|ORDER|OTHER|OTHERS|OUT|OUTER|OUTPUT|OUTPUT-LENGTH|OVERFLOW|OVERLAY|PACK|PACKAGE|PAD|PADDING|PAGE|PAGES|PARAMETER|PARAMETER-TABLE|PARAMETERS|PART|PARTIALLY|PATTERN|PERCENTAGE|PERFORM|PERFORMING|PERSON|PF|PF-STATUS|PINK|PLACES|POOL|POSITION|POS_HIGH|POS_LOW|PRAGMAS|PRECOMPILED|PREFERRED|PRESERVING|PRIMARY|PRINT|PRINT-CONTROL|PRIORITY|PRIVATE|PROCEDURE|PROCESS|PROGRAM|PROPERTY|PROTECTED|PROVIDE|PUBLIC|PUSHBUTTON|PUT|QUEUE-ONLY|QUICKINFO|RADIOBUTTON|RAISE|RAISING|RANGE|RANGES|RAW|READ|READ-ONLY|READER|RECEIVE|RECEIVED|RECEIVER|RECEIVING|RED|REDEFINITION|REDUCE|REDUCED|REF|REFERENCE|REFRESH|REGEX|REJECT|REMOTE|RENAMING|REPLACE|REPLACEMENT|REPLACING|REPORT|REQUEST|REQUESTED|RESERVE|RESET|RESOLUTION|RESPECTING|RESPONSIBLE|RESULT|RESULTS|RESUMABLE|RESUME|RETRY|RETURN|RETURNCODE|RETURNING|RIGHT|RIGHT-JUSTIFIED|RIGHTPLUS|RIGHTSPACE|RISK|RMC_COMMUNICATION_FAILURE|RMC_INVALID_STATUS|RMC_SYSTEM_FAILURE|ROLE|ROLLBACK|ROUND|ROWS|RTTI|RUN|SAP|SAP-SPOOL|SAVING|SCALE_PRESERVING|SCALE_PRESERVING_SCIENTIFIC|SCAN|SCIENTIFIC|SCIENTIFIC_WITH_LEADING_ZERO|SCREEN|SCROLL|SCROLL-BOUNDARY|SCROLLING|SEARCH|SECONDARY|SECONDS|SECTION|SELECT|SELECT-OPTIONS|SELECTION|SELECTION-SCREEN|SELECTION-SET|SELECTION-SETS|SELECTION-TABLE|SELECTIONS|SELECTOR|SEND|SEPARATE|SEPARATED|SET|SHARED|SHIFT|SHORT|SHORTDUMP-ID|SIGN|SIGN_AS_POSTFIX|SIMPLE|SIN|SINGLE|SINH|SIZE|SKIP|SKIPPING|SMART|SOME|SORT|SORTABLE|SORTED|SOURCE|SPACE|SPECIFIED|SPLIT|SPOOL|SPOTS|SQL|SQLSCRIPT|SQRT|STABLE|STAMP|STANDARD|START-OF-SELECTION|STARTING|STATE|STATEMENT|STATEMENTS|STATIC|STATICS|STATUSINFO|STEP-LOOP|STOP|STRLEN|STRUCTURE|STRUCTURES|STYLE|SUBKEY|SUBMATCHES|SUBMIT|SUBROUTINE|SUBSCREEN|SUBSTRING|SUBTRACT|SUBTRACT-CORRESPONDING|SUFFIX|SUM|SUMMARY|SUMMING|SUPPLIED|SUPPLY|SUPPRESS|SWITCH|SWITCHSTATES|SYMBOL|SYNCPOINTS|SYNTAX|SYNTAX-CHECK|SYNTAX-TRACE|SYSTEM-CALL|SYSTEM-EXCEPTIONS|SYSTEM-EXIT|TAB|TABBED|TABLE|TABLES|TABLEVIEW|TABSTRIP|TAN|TANH|TARGET|TASK|TASKS|TEST|TESTING|TEXT|TEXTPOOL|THEN|THROW|TIME|TIMES|TIMESTAMP|TIMEZONE|TITLE|TITLE-LINES|TITLEBAR|TO|TOKENIZATION|TOKENS|TOP-LINES|TOP-OF-PAGE|TRACE-FILE|TRACE-TABLE|TRAILING|TRANSACTION|TRANSFER|TRANSFORMATION|TRANSLATE|TRANSPORTING|TRMAC|TRUNC|TRUNCATE|TRUNCATION|TRY|TYPE|TYPE-POOL|TYPE-POOLS|TYPES|ULINE|UNASSIGN|UNDER|UNICODE|UNION|UNIQUE|UNIT|UNIT_CONVERSION|UNIX|UNPACK|UNTIL|UNWIND|UP|UPDATE|UPPER|USER|USER-COMMAND|USING|UTF-8|VALID|VALUE|VALUE-REQUEST|VALUES|VARY|VARYING|VERIFICATION-MESSAGE|VERSION|VIA|VIEW|VISIBLE|WAIT|WARNING|WHEN|WHENEVER|WHERE|WHILE|WIDTH|WINDOW|WINDOWS|WITH|WITH-HEADING|WITH-TITLE|WITHOUT|WORD|WORK|WRITE|WRITER|X|XML|XOR|XSD|XSTRLEN|YELLOW|YES|YYMMDD|Z|ZERO|ZONE)(?![\w-])/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}function m$(a){a.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)|<(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)>)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}}function m_(a){a.register(mY),a.languages.actionscript=a.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),a.languages.actionscript["class-name"].alias="function",delete a.languages.actionscript.parameter,delete a.languages.actionscript["literal-property"],a.languages.markup&&a.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:a.languages.markup}})}function m0(a){a.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|or|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}function m1(a){a.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}}function m2(a){a.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}function m3(a){a.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},a.languages.g4=a.languages.antlr4}function m4(a){a.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}function m5(a){a.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}function m6(a){a.register(mW),a.register(m5);var b=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,c=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return b.source});function d(a){return RegExp(a.replace(/<CLASS-NAME>/g,function(){return c}),"i")}var e={keyword:b,punctuation:/[()\[\]{};,:.<>]/};a.languages.apex={comment:a.languages.clike.comment,string:a.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:a.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:d(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:e},{pattern:d(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:e},{pattern:d(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:e}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:b,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<<?=?|>{1,3}=?/,punctuation:/[()\[\]{};,.]/}}function m7(a){a.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}function m8(a){a.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}function m9(a){a.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}function na(a){a.register(mW),a.languages.c=a.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),a.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),a.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},a.languages.c.string],char:a.languages.c.char,comment:a.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:a.languages.c}}}}),a.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete a.languages.c.boolean}function nb(a){var b,c;a.register(na),b=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,c=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return b.source}),a.languages.cpp=a.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return b.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:b,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),a.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return c})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),a.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:a.languages.cpp}}}}),a.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),a.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:a.languages.extend("cpp",{})}}),a.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},a.languages.cpp["base-clause"])}function nc(a){a.register(nb),a.languages.arduino=a.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),a.languages.ino=a.languages.arduino}function nd(a){a.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}function ne(a){a.languages.armasm={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"/,greedy:!0,inside:{variable:{pattern:/((?:^|[^$])(?:\${2})*)\$\w+/,lookbehind:!0}}},char:{pattern:/'(?:[^'\r\n]{0,4}|'')'/,greedy:!0},"version-symbol":{pattern:/\|[\w@]+\|/,greedy:!0,alias:"property"},boolean:/\b(?:FALSE|TRUE)\b/,directive:{pattern:/\b(?:ALIAS|ALIGN|AREA|ARM|ASSERT|ATTR|CN|CODE|CODE16|CODE32|COMMON|CP|DATA|DCB|DCD|DCDO|DCDU|DCFD|DCFDU|DCI|DCQ|DCQU|DCW|DCWU|DN|ELIF|ELSE|END|ENDFUNC|ENDIF|ENDP|ENTRY|EQU|EXPORT|EXPORTAS|EXTERN|FIELD|FILL|FN|FUNCTION|GBLA|GBLL|GBLS|GET|GLOBAL|IF|IMPORT|INCBIN|INCLUDE|INFO|KEEP|LCLA|LCLL|LCLS|LTORG|MACRO|MAP|MEND|MEXIT|NOFP|OPT|PRESERVE8|PROC|QN|READONLY|RELOC|REQUIRE|REQUIRE8|RLIST|ROUT|SETA|SETL|SETS|SN|SPACE|SUBT|THUMB|THUMBX|TTL|WEND|WHILE)\b/,alias:"property"},instruction:{pattern:/((?:^|(?:^|[^\\])(?:\r\n?|\n))[ \t]*(?:(?:[A-Z][A-Z0-9_]*[a-z]\w*|[a-z]\w*|\d+)[ \t]+)?)\b[A-Z.]+\b/,lookbehind:!0,alias:"keyword"},variable:/\$\w+/,number:/(?:\b[2-9]_\d+|(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e-?\d+)?|\b0(?:[fd]_|x)[0-9a-f]+|&[0-9a-f]+)\b/i,register:{pattern:/\b(?:r\d|lr)\b/,alias:"symbol"},operator:/<>|<<|>>|&&|\|\||[=!<>/]=?|[+\-*%#?&|^]|:[A-Z]+:/,punctuation:/[()[\],]/},a.languages["arm-asm"]=a.languages.armasm}function nf(a){!function(a){var b="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",c={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},d={bash:c,environment:{pattern:RegExp("\\$"+b),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+b),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};a.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+b),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:d},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:c}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:d},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:d.entity}}],environment:{pattern:RegExp("\\$?"+b),alias:"constant"},variable:d.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},c.inside=a.languages.bash;for(var e=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],f=d.variable[1].inside,g=0;g<e.length;g++)f[e[g]]=a.languages.bash[e[g]];a.languages.sh=a.languages.bash,a.languages.shell=a.languages.bash}(a)}function ng(a){!function(a){var b=/[*&][^\s[\]{},]+/,c=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,d="(?:"+c.source+"(?:[ ]+"+b.source+")?|"+b.source+"(?:[ ]+"+c.source+")?)",e=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),f=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function g(a,b){return b=(b||"").replace(/m/g,"")+"m",RegExp(/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return d}).replace(/<<value>>/g,function(){return a}),b)}a.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return d})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return d}).replace(/<<key>>/g,function(){return"(?:"+e+"|"+f+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:g(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:g(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:g(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:g(f),lookbehind:!0,greedy:!0},number:{pattern:g(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:c,important:b,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},a.languages.yml=a.languages.yaml}(a)}function nh(a){a.register(mU),function(a){var b=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function c(a){return a=a.replace(/<inner>/g,function(){return b}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+a+")")}var d=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,e=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return d}),f=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;a.languages.markdown=a.languages.extend("markup",{}),a.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:a.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+e+f+"(?:"+e+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+e+f+")(?:"+e+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(d),inside:a.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+e+")"+f+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+e+"$"),inside:{"table-header":{pattern:RegExp(d),alias:"important",inside:a.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:c(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:c(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:c(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:c(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(b){["url","bold","italic","strike","code-snippet"].forEach(function(c){b!==c&&(a.languages.markdown[b].inside.content.inside[c]=a.languages.markdown[c])})}),a.hooks.add("after-tokenize",function(a){("markdown"===a.language||"md"===a.language)&&function a(b){if(b&&"string"!=typeof b)for(var c=0,d=b.length;c<d;c++){var e=b[c];if("code"!==e.type){a(e.content);continue}var f=e.content[1],g=e.content[3];if(f&&g&&"code-language"===f.type&&"code-block"===g.type&&"string"==typeof f.content){var h=f.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),i="language-"+(h=(/[a-z][\w-]*/i.exec(h)||[""])[0].toLowerCase());g.alias?"string"==typeof g.alias?g.alias=[g.alias,i]:g.alias.push(i):g.alias=[i]}}}(a.tokens)}),a.hooks.add("wrap",function(b){if("code-block"===b.type){for(var c="",d=0,e=b.classes.length;d<e;d++){var f=b.classes[d],g=/language-(.+)/.exec(f);if(g){c=g[1];break}}var h=a.languages[c];if(h)b.content=a.highlight(b.content.value,h,c);else if(c&&"none"!==c&&a.plugins.autoloader){var i="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());b.attributes.id=i,a.plugins.autoloader.loadLanguages(c,function(){var b=document.getElementById(i);b&&(b.innerHTML=a.highlight(b.textContent,a.languages[c],c))})}}}),RegExp(a.languages.markup.tag.pattern.source,"gi"),a.languages.md=a.languages.markdown}(a)}function ni(a){var b;b=function(b,c){return{pattern:RegExp(/\{!/.source+"(?:"+(c||b)+")"+/$[\s\S]*\}/.source,"m"),greedy:!0,inside:{embedded:{pattern:/(^\{!\w+\b)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-"+b,inside:a.languages[b]},string:/[\s\S]+/}}},a.languages.arturo={comment:{pattern:/;.*/,greedy:!0},character:{pattern:/`.`/,alias:"char",greedy:!0},number:{pattern:/\b\d+(?:\.\d+(?:\.\d+(?:-[\w+-]+)?)?)?\b/},string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},regex:{pattern:/\{\/.*?\/\}/,greedy:!0},"html-string":b("html"),"css-string":b("css"),"js-string":b("js"),"md-string":b("md"),"sql-string":b("sql"),"sh-string":b("shell","sh"),multistring:{pattern:/».*|\{:[\s\S]*?:\}|\{[\s\S]*?\}|^-{6}$[\s\S]*/m,alias:"string",greedy:!0},label:{pattern:/\w+\b\??:/,alias:"property"},literal:{pattern:/'(?:\w+\b\??:?)/,alias:"constant"},type:{pattern:/:(?:\w+\b\??:?)/,alias:"class-name"},color:/#\w+/,predicate:{pattern:/\b(?:all|and|any|ascii|attr|attribute|attributeLabel|binary|block|char|contains|database|date|dictionary|empty|equal|even|every|exists|false|floating|function|greater|greaterOrEqual|if|in|inline|integer|is|key|label|leap|less|lessOrEqual|literal|logical|lower|nand|negative|nor|not|notEqual|null|numeric|odd|or|path|pathLabel|positive|prefix|prime|regex|same|set|some|sorted|standalone|string|subset|suffix|superset|symbol|symbolLiteral|true|try|type|unless|upper|when|whitespace|word|xnor|xor|zero)\?/,alias:"keyword"},"builtin-function":{pattern:/\b(?:abs|acos|acosh|acsec|acsech|actan|actanh|add|after|alert|alias|and|angle|append|arg|args|arity|array|as|asec|asech|asin|asinh|atan|atan2|atanh|attr|attrs|average|before|benchmark|blend|break|call|capitalize|case|ceil|chop|clear|clip|close|color|combine|conj|continue|copy|cos|cosh|crc|csec|csech|ctan|ctanh|cursor|darken|dec|decode|define|delete|desaturate|deviation|dialog|dictionary|difference|digest|digits|div|do|download|drop|dup|e|else|empty|encode|ensure|env|escape|execute|exit|exp|extend|extract|factors|fdiv|filter|first|flatten|floor|fold|from|function|gamma|gcd|get|goto|hash|hypot|if|inc|indent|index|infinity|info|input|insert|inspect|intersection|invert|jaro|join|keys|kurtosis|last|let|levenshtein|lighten|list|ln|log|loop|lower|mail|map|match|max|median|min|mod|module|mul|nand|neg|new|nor|normalize|not|now|null|open|or|outdent|pad|palette|panic|path|pause|permissions|permutate|pi|pop|popup|pow|powerset|powmod|prefix|print|prints|process|product|query|random|range|read|relative|remove|rename|render|repeat|replace|request|return|reverse|round|sample|saturate|script|sec|sech|select|serve|set|shl|shr|shuffle|sin|sinh|size|skewness|slice|sort|spin|split|sqrt|squeeze|stack|strip|sub|suffix|sum|switch|symbols|symlink|sys|take|tan|tanh|terminal|terminate|to|truncate|try|type|unclip|union|unique|unless|until|unzip|upper|values|var|variance|volume|webview|while|with|wordwrap|write|xnor|xor|zip)\b/,alias:"keyword"},sugar:{pattern:/->|=>|\||::/,alias:"operator"},punctuation:/[()[\],]/,symbol:{pattern:/<:|-:|ø|@|#|\+|\||\*|\$|---|-|%|\/|\.\.|\^|~|=|<|>|\\/},boolean:{pattern:/\b(?:false|maybe|true)\b/}},a.languages.art=a.languages.arturo}function nj(a){var b={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},c=a.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:b,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)<?\d*>/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:b.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:b,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function d(a){a=a.split(" ");for(var b={},d=0,e=a.length;d<e;d++)b[a[d]]=c[a[d]];return b}b.inside.interpreted.inside.rest=d("macro inline replacement entity"),c["passthrough-block"].inside.rest=d("macro"),c["literal-block"].inside.rest=d("callout"),c.table.inside.rest=d("comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation"),c["other-block"].inside.rest=d("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),c.title.inside.rest=d("macro inline replacement entity"),a.hooks.add("wrap",function(a){"entity"===a.type&&(a.attributes.title=a.content.value.replace(/&/,"&"))}),a.languages.adoc=a.languages.asciidoc}function nk(a){a.register(mW),function(a){function b(a,b){return a.replace(/<<(\d+)>>/g,function(a,c){return"(?:"+b[+c]+")"})}function c(a,c,d){return RegExp(b(a,c),d||"")}function d(a,b){for(var c=0;c<b;c++)a=a.replace(/<<self>>/g,function(){return"(?:"+a+")"});return a.replace(/<<self>>/g,"[^\\s\\S]")}var e="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",f="class enum interface record struct",g="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",h="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function i(a){return"\\b(?:"+a.trim().replace(/ /g,"|")+")\\b"}var j=i(f),k=RegExp(i(e+" "+f+" "+g+" "+h)),l=i(f+" "+g+" "+h),m=i(e+" "+f+" "+h),n=d(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),o=d(/\((?:[^()]|<<self>>)*\)/.source,2),p=/@?\b[A-Za-z_]\w*\b/.source,q=b(/<<0>>(?:\s*<<1>>)?/.source,[p,n]),r=b(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[l,q]),s=/\[\s*(?:,\s*)*\]/.source,t=b(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[r,s]),u=b(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[n,o,s]),v=b(/\(<<0>>+(?:,<<0>>+)+\)/.source,[u]),w=b(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[v,r,s]),x={keyword:k,punctuation:/[<>()?,.:[\]]/},y=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,z=/"(?:\\.|[^\\"\r\n])*"/.source,A=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;a.languages.csharp=a.languages.extend("clike",{string:[{pattern:c(/(^|[^$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:c(/(^|[^@$\\])<<0>>/.source,[z]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:c(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[r]),lookbehind:!0,inside:x},{pattern:c(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[p,w]),lookbehind:!0,inside:x},{pattern:c(/(\busing\s+)<<0>>(?=\s*=)/.source,[p]),lookbehind:!0},{pattern:c(/(\b<<0>>\s+)<<1>>/.source,[j,q]),lookbehind:!0,inside:x},{pattern:c(/(\bcatch\s*\(\s*)<<0>>/.source,[r]),lookbehind:!0,inside:x},{pattern:c(/(\bwhere\s+)<<0>>/.source,[p]),lookbehind:!0},{pattern:c(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[t]),lookbehind:!0,inside:x},{pattern:c(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[w,m,p]),inside:x}],keyword:k,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),a.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),a.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:c(/([(,]\s*)<<0>>(?=\s*:)/.source,[p]),lookbehind:!0,alias:"punctuation"}}),a.languages.insertBefore("csharp","class-name",{namespace:{pattern:c(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[p]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:c(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[o]),lookbehind:!0,alias:"class-name",inside:x},"return-type":{pattern:c(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[w,r]),inside:x,alias:"class-name"},"constructor-invocation":{pattern:c(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[w]),lookbehind:!0,inside:x,alias:"class-name"},"generic-method":{pattern:c(/<<0>>\s*<<1>>(?=\s*\()/.source,[p,n]),inside:{function:c(/^<<0>>/.source,[p]),generic:{pattern:RegExp(n),alias:"class-name",inside:x}}},"type-list":{pattern:c(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[j,q,p,w,k.source,o,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:c(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[q,o]),lookbehind:!0,greedy:!0,inside:a.languages.csharp},keyword:k,"class-name":{pattern:RegExp(w),greedy:!0,inside:x},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var B=z+"|"+y,C=b(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[B]),D=d(b(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[C]),2),E=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,F=b(/<<0>>(?:\s*\(<<1>>*\))?/.source,[r,D]);a.languages.insertBefore("csharp","class-name",{attribute:{pattern:c(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[E,F]),lookbehind:!0,greedy:!0,inside:{target:{pattern:c(/^<<0>>(?=\s*:)/.source,[E]),alias:"keyword"},"attribute-arguments":{pattern:c(/\(<<0>>*\)/.source,[D]),inside:a.languages.csharp},"class-name":{pattern:RegExp(r),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var G=/:[^}\r\n]+/.source,H=d(b(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[C]),2),I=b(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[H,G]),J=d(b(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[B]),2),K=b(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[J,G]);function L(b,d){return{interpolation:{pattern:c(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[b]),lookbehind:!0,inside:{"format-string":{pattern:c(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[d,G]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:a.languages.csharp}}},string:/[\s\S]+/}}a.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:c(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[I]),lookbehind:!0,greedy:!0,inside:L(I,H)},{pattern:c(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[K]),lookbehind:!0,greedy:!0,inside:L(K,J)}],char:{pattern:RegExp(y),greedy:!0}}),a.languages.dotnet=a.languages.cs=a.languages.csharp}(a)}function nl(a){a.register(nk),a.register(mU),a.languages.aspnet=a.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:a.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:a.languages.csharp}}}),a.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,a.languages.insertBefore("inside","punctuation",{directive:a.languages.aspnet.directive},a.languages.aspnet.tag.inside["attr-value"]),a.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),a.languages.insertBefore("aspnet",a.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:a.languages.csharp||{}}})}function nm(a){a.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}function nn(a){a.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&[&=]?|\|[\|=]?|[-+*/%^!=<>?]=?/,punctuation:/[(),:]/}}function no(a){a.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,command:{pattern:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,alias:"selector"},constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,directive:{pattern:/#[a-z]+\b/i,alias:"important"},keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}function np(a){a.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}function nq(a){function b(a,b,c){return RegExp(a.replace(/<<(\d+)>>/g,function(a,c){return b[+c]}),c||"")}var c=/bool|clip|float|int|string|val/.source,d=[[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|")].join("|");a.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:b(/\b(?:<<0>>)\s+("?)\w+\1/.source,[c],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:b(/\b(?:<<0>>)\b/.source,[d],"i"),alias:"function"},"type-cast":{pattern:b(/\b(?:<<0>>)(?=\s*\()/.source,[c],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},a.languages.avs=a.languages.avisynth}function nr(a){a.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},a.languages.avdl=a.languages["avro-idl"]}function ns(a){a.languages.awk={hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\\"\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},regex:{pattern:/((?:^|[^\w\s)])\s*)\/(?:[^\/\\\r\n]|\\.)*\//,lookbehind:!0,greedy:!0},variable:/\$\w+/,keyword:/\b(?:BEGIN|BEGINFILE|END|ENDFILE|break|case|continue|default|delete|do|else|exit|for|function|getline|if|in|next|nextfile|printf?|return|switch|while)\b|@(?:include|load)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[a-fA-F0-9]+)\b/,operator:/--|\+\+|!?~|>&|>>|<<|(?:\*\*|[<>!=+\-*/%^])=?|&&|\|[|&]|[?:]/,punctuation:/[()[\]{},;]/},a.languages.gawk=a.languages.awk}function nt(a){a.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}function nu(a){var b,c,d,e;b=/%%?[~:\w]+%?|!\S+!/,c={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},d=/"(?:[\\"]"|[^"])*"(?!")/,e=/(?:\b|-)\d+\b/,a.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:d,parameter:c,variable:b,number:e,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:d,parameter:c,variable:b,number:e,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:d,parameter:c,variable:[b,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:e,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:d,parameter:c,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:b,number:e,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}}function nv(a){a.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},a.languages.shortcode=a.languages.bbcode}function nw(a){a.languages.bbj={comment:{pattern:/(^|[^\\:])rem\s+.*/i,lookbehind:!0,greedy:!0},string:{pattern:/(['"])(?:(?!\1|\\).|\\.)*\1/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:abstract|all|argc|begin|bye|callback|case|chn|class|classend|ctl|day|declare|delete|dim|dom|dread|dsz|else|end|endif|err|exitto|extends|fi|field|for|from|gosub|goto|if|implements|interface|interfaceend|iol|iolist|let|list|load|method|methodend|methodret|on|opts|pfx|print|private|process_events|protected|psz|public|read|read_resource|release|remove_callback|repeat|restore|return|rev|seterr|setesc|sqlchn|sqlunt|ssn|start|static|swend|switch|sys|then|tim|unt|until|use|void|wend|where|while)\b/i,function:/\b\w+(?=\()/,boolean:/\b(?:BBjAPI\.TRUE|BBjAPI\.FALSE)\b/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:and|not|or|xor)\b/i,punctuation:/[.,;:()]/}}function nx(a){a.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},a.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=a.languages.bicep}function ny(a){a.register(mW),a.languages.birb=a.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),a.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}function nz(a){a.register(na),a.languages.bison=a.languages.extend("c",{}),a.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:a.languages.c}},comment:a.languages.c.comment,string:a.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}function nA(a){a.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},a.languages.rbnf=a.languages.bnf}function nB(a){a.languages.bqn={shebang:{pattern:/^#![ \t]*\/.*/,alias:"important",greedy:!0},comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/"(?:[^"]|"")*"/,greedy:!0,alias:"string"},"character-literal":{pattern:/'(?:[\s\S]|[\uD800-\uDBFF][\uDC00-\uDFFF])'/,greedy:!0,alias:"char"},function:/•[\w¯.∞π]+[\w¯.∞π]*/,"dot-notation-on-brackets":{pattern:/\{(?=.*\}\.)|\}\./,alias:"namespace"},"special-name":{pattern:/(?:𝕨|𝕩|𝕗|𝕘|𝕤|𝕣|𝕎|𝕏|𝔽|𝔾|𝕊|_𝕣_|_𝕣)/,alias:"keyword"},"dot-notation-on-name":{pattern:/[A-Za-z_][\w¯∞π]*\./,alias:"namespace"},"word-number-scientific":{pattern:/\d+(?:\.\d+)?[eE]¯?\d+/,alias:"number"},"word-name":{pattern:/[A-Za-z_][\w¯∞π]*/,alias:"symbol"},"word-number":{pattern:/[¯∞π]?(?:\d*\.?\b\d+(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π))?/,alias:"number"},"null-literal":{pattern:/@/,alias:"char"},"primitive-functions":{pattern:/[-+×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍⋈↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!]/,alias:"operator"},"primitive-1-operators":{pattern:/[`˜˘¨⁼⌜´˝˙]/,alias:"operator"},"primitive-2-operators":{pattern:/[∘⊸⟜○⌾⎉⚇⍟⊘◶⎊]/,alias:"operator"},punctuation:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}function nC(a){a.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}function nD(a){a.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},a.languages.brightscript["directive-statement"].inside.expression.inside=a.languages.brightscript}function nE(a){a.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}function nF(a){a.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},a.languages.oscript=a.languages.bsl}function nG(a){a.register(mW),a.languages.cfscript=a.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|:/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),a.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete a.languages.cfscript["class-name"],a.languages.cfc=a.languages.cfscript}function nH(a){a.register(mW),a.register(nb),a.languages.chaiscript=a.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[a.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),a.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),a.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:a.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}function nI(a){a.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}function nJ(a){a.register(na),a.languages.cilkc=a.languages.insertBefore("c","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),a.languages["cilk-c"]=a.languages.cilkc}function nK(a){a.register(nb),a.languages.cilkcpp=a.languages.insertBefore("cpp","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),a.languages["cilk-cpp"]=a.languages.cilkcpp,a.languages.cilk=a.languages.cilkcpp}function nL(a){a.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}function nM(a){a.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}function nN(a){a.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}function nO(a){var b,c;a.register(mY),b=/#(?!\{).+/,c={pattern:/#\{[^}]+\}/,alias:"variable"},a.languages.coffeescript=a.languages.extend("javascript",{comment:b,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:c}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),a.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:b,interpolation:c}}}),a.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:a.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:c}}]}),a.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete a.languages.coffeescript["template-string"],a.languages.coffee=a.languages.coffeescript}function nP(a){a.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},a.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:a.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:a.languages.concurnas},string:/[\s\S]+/}}}),a.languages.conc=a.languages.concurnas}function nQ(a){function b(a){return RegExp(/([ \t])/.source+"(?:"+a+")"+/(?=[\s;]|$)/.source,"i")}a.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:b(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:b(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:b(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:b(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:b(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:b(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:b(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}}function nR(a){var b,c,d,e;b=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,d=(c=/[^{}@#]+/.source)+/\{[^}#@]*\}/.source,e=/(?:h|hours|hrs|m|min|minutes)/.source,a.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:RegExp("#(?:"+d+"|"+b+")"),inside:{cookware:{pattern:RegExp("(^#)(?:"+c+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+c),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:RegExp("@(?:"+d+"|"+b+")"),inside:{ingredient:{pattern:RegExp("(^@)(?:"+c+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":{pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}}}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+e+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}}function nS(a){for(var b=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,c=0;c<2;c++)b=b.replace(/<self>/g,function(){return b});b=b.replace(/<self>/g,"[]"),a.languages.coq={comment:RegExp(b),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return b})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(b),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}}function nT(a){var b,c,d;a.register(mW),a.languages.ruby=a.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),a.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),b={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:a.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}},delete a.languages.ruby.function,c="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",d=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source,a.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+c+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:b,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:b,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+d),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+d+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),a.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+c),greedy:!0,inside:{interpolation:b,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:b,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:b,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+c),greedy:!0,inside:{interpolation:b,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:b,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete a.languages.ruby.string,a.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),a.languages.rb=a.languages.ruby}function nU(a){a.register(nT),a.languages.crystal=a.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,a.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),a.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:a.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:a.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}function nV(a){var b,c,d,e;a.register(mV),c=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,a.languages.css.selector={pattern:a.languages.css.selector.pattern,lookbehind:!0,inside:b={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+c.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[c,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},a.languages.css.atrule.inside["selector-function-argument"].inside=b,a.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),d={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},e={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},a.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:d,number:e,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:d,number:e})}function nW(a){a.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}function nX(a){var b,c;b=/\\(?:(?!\2)|\2(?:[^()\r\n]|\([^()]*\)))/.source,c="(?:"+(/"""(?:[^\\"]|"(?!""\2)|<esc>)*"""/.source+"|"+/'''(?:[^\\']|'(?!''\2)|<esc>)*'''/.source+"|"+/"(?:[^\\\r\n"]|"(?!\2)|<esc>)*"/.source+"|"+/'(?:[^\\\r\n']|'(?!\2)|<esc>)*'/.source).replace(/<esc>/g,b)+")",a.languages.cue={comment:{pattern:/\/\/.*/,greedy:!0},"string-literal":{pattern:RegExp(/(^|[^#"'\\])(#*)/.source+c+/(?!["'])\2/.source),lookbehind:!0,greedy:!0,inside:{escape:{pattern:/(?=[\s\S]*["'](#*)$)\\\1(?:U[a-fA-F0-9]{1,8}|u[a-fA-F0-9]{1,4}|x[a-fA-F0-9]{1,2}|\d{2,3}|[^(])/,greedy:!0,alias:"string"},interpolation:{pattern:/(?=[\s\S]*["'](#*)$)\\\1\([^()]*\)/,greedy:!0,inside:{punctuation:/^\\#*\(|\)$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:{pattern:/(^|[^\w$])(?:for|if|import|in|let|null|package)(?![\w$])/,lookbehind:!0},boolean:{pattern:/(^|[^\w$])(?:false|true)(?![\w$])/,lookbehind:!0},builtin:{pattern:/(^|[^\w$])(?:bool|bytes|float|float(?:32|64)|u?int(?:8|16|32|64|128)?|number|rune|string)(?![\w$])/,lookbehind:!0},attribute:{pattern:/@[\w$]+(?=\s*\()/,alias:"function"},function:{pattern:/(^|[^\w$])[a-z_$][\w$]*(?=\s*\()/i,lookbehind:!0},number:{pattern:/(^|[^\w$.])(?:0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|0[xX][0-9A-Fa-f]+(?:_[0-9A-Fa-f]+)*|(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[eE][+-]?\d+(?:_\d+)*)?(?:[KMGTP]i?)?)(?![\w$])/,lookbehind:!0},operator:/\.{3}|_\|_|&&?|\|\|?|[=!]~|[<>=!]=?|[+\-*/?]/,punctuation:/[()[\]{},.:]/},a.languages.cue["string-literal"].inside.interpolation.inside.expression.inside=a.languages.cue}function nY(a){a.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}function nZ(a){a.register(mW),a.languages.d=a.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),a.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),a.languages.insertBefore("d","keyword",{property:/\B@\w*/}),a.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}function n$(a){var b,c,d;a.register(mW),b=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],d={pattern:RegExp((c=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source)+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}},a.languages.dart=a.languages.extend("clike",{"class-name":[d,{pattern:RegExp(c+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:d.inside}],keyword:b,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),a.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:a.languages.dart}}},string:/[\s\S]+/}},string:void 0}),a.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),a.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":d,keyword:b,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}function n_(a){a.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}}function n0(a){a.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}function n1(a){a.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},a.languages.dhall.string.inside.interpolation.inside.expression.inside=a.languages.dhall}function n2(a){var b;a.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]},Object.keys(b={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"}).forEach(function(c){var d=b[c],e=[];/^\w+$/.test(c)||e.push(/\w+/.exec(c)[0]),"diff"===c&&e.push("bold"),a.languages.diff[c]={pattern:RegExp("^(?:["+d+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:e,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(c)[0]}}}}),Object.defineProperty(a.languages.diff,"PREFIXES",{value:b})}function n3(a){a.register(mU);function b(a,b){return"___"+a.toUpperCase()+b+"___"}Object.defineProperties(a.languages["markup-templating"]={},{buildPlaceholders:{value:function(c,d,e,f){if(c.language===d){var g=c.tokenStack=[];c.code=c.code.replace(e,function(a){if("function"==typeof f&&!f(a))return a;for(var e,h=g.length;-1!==c.code.indexOf(e=b(d,h));)++h;return g[h]=a,e}),c.grammar=a.languages.markup}}},tokenizePlaceholders:{value:function(c,d){if(c.language===d&&c.tokenStack){c.grammar=a.languages[d];var e=0,f=Object.keys(c.tokenStack);!function g(h){for(var i=0;i<h.length&&!(e>=f.length);i++){var j=h[i];if("string"==typeof j||j.content&&"string"==typeof j.content){var k=f[e],l=c.tokenStack[k],m="string"==typeof j?j:j.content,n=b(d,k),o=m.indexOf(n);if(o>-1){++e;var p=m.substring(0,o),q=new a.Token(d,a.tokenize(l,c.grammar),"language-"+d,l),r=m.substring(o+n.length),s=[];p&&s.push.apply(s,g([p])),s.push(q),r&&s.push.apply(s,g([r])),"string"==typeof j?h.splice.apply(h,[i,1].concat(s)):j.content=s}}else j.content&&g(j.content)}return h}(c.tokens)}}}})}function n4(a){var b,c;a.register(n3),a.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/},b=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,c=a.languages["markup-templating"],a.hooks.add("before-tokenize",function(a){c.buildPlaceholders(a,"django",b)}),a.hooks.add("after-tokenize",function(a){c.tokenizePlaceholders(a,"django")}),a.languages.jinja2=a.languages.django,a.hooks.add("before-tokenize",function(a){c.buildPlaceholders(a,"jinja2",b)}),a.hooks.add("after-tokenize",function(a){c.tokenizePlaceholders(a,"jinja2")})}function n5(a){a.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},a.languages["dns-zone"]=a.languages["dns-zone-file"]}function n6(a){!function(a){var b=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,c=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return b}),d=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,e=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return d}),f={pattern:RegExp(d),greedy:!0},g={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function h(a,b){return RegExp(a=a.replace(/<OPT>/g,function(){return e}).replace(/<SP>/g,function(){return c}),b)}a.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:h(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[f,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:h(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:h(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:h(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:g,string:f,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:g},a.languages.dockerfile=a.languages.docker}(a)}function n7(a){var b="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",c={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:a.languages.markup}};function d(a,c){return RegExp(a.replace(/<ID>/g,function(){return b}),c)}a.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:d(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:c},"attr-value":{pattern:d(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:c},"attr-name":{pattern:d(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:c},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:d(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:c},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},a.languages.gv=a.languages.dot}function n8(a){a.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}function n9(a){a.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}function oa(a){a.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}function ob(a){a.register(mY),a.register(n3),a.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:a.languages.javascript}},a.hooks.add("before-tokenize",function(b){a.languages["markup-templating"].buildPlaceholders(b,"ejs",/<%(?!%)[\s\S]+?%>/g)}),a.hooks.add("after-tokenize",function(b){a.languages["markup-templating"].tokenizePlaceholders(b,"ejs")}),a.languages.eta=a.languages.ejs}function oc(a){a.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},a.languages.elixir.string.forEach(function(b){b.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:a.languages.elixir}}}})}function od(a){a.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}function oe(a){a.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}function of(a){a.register(oe),a.register(n3),a.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:a.languages.lua}},a.hooks.add("before-tokenize",function(b){a.languages["markup-templating"].buildPlaceholders(b,"etlua",/<%[\s\S]+?%>/g)}),a.hooks.add("after-tokenize",function(b){a.languages["markup-templating"].tokenizePlaceholders(b,"etlua")})}function og(a){a.register(n3),a.register(nT),a.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:a.languages.ruby}},a.hooks.add("before-tokenize",function(b){a.languages["markup-templating"].buildPlaceholders(b,"erb",/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g)}),a.hooks.add("after-tokenize",function(b){a.languages["markup-templating"].tokenizePlaceholders(b,"erb")})}function oh(a){a.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|begin|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}function oi(a){a.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"builtin"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"selector",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"selector"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},a.languages.xlsx=a.languages.xls=a.languages["excel-formula"]}function oj(a){a.register(mW),a.languages.fsharp=a.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|<?\|{1,3}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),a.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),a.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),a.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:a.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}function ok(a){var b,c,d,e,f,g;d={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:b={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/}},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:b},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:b}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:(c={number:/\\[^\s']|%\w/}).number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:c},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:c}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:c}},e=function(a){return(a+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},f=function(a){return RegExp("(^|\\s)(?:"+a.map(e).join("|")+")(?=\\s|$)")},Object.keys(g={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","<wrapper>","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated","<PRIVATE",">>>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","<slice>","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","<iota>","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","<reversed>","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","<repetition>","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","<fp-nan>","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]}).forEach(function(a){d[a].pattern=f(g[a])}),d.combinators.pattern=f(["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","input<sequence","append-outputs","drop-inputs","inputs","smart-2reduce","drop-outputs","smart-reduce","preserving","smart-when","outputs","append-outputs-as","smart-unless","smart-if*","sum-outputs","input<sequence-unsafe","output>sequence"]),a.languages.factor=d}function ol(a){a.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()<BDO®]/,alias:"bold"}}}function om(a){a.register(mW),a.languages["firestore-security-rules"]=a.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete a.languages["firestore-security-rules"]["class-name"],a.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}function on(a){a.register(mY),a.languages.flow=a.languages.extend("javascript",{}),a.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),a.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete a.languages.flow.parameter,a.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(a.languages.flow.keyword)||(a.languages.flow.keyword=[a.languages.flow.keyword]),a.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}function oo(a){a.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}function op(a){a.register(n3);for(var b=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,c=0;c<2;c++)b=b.replace(/<expr>/g,function(){return b});b=b.replace(/<expr>/g,/[^\s\S]/.source);var d={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return b})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return b})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};d.string[1].inside.interpolation.inside.rest=d,a.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:d}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:d}}}},a.hooks.add("before-tokenize",function(c){var d=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return b}),"gi");a.languages["markup-templating"].buildPlaceholders(c,"ftl",d)}),a.hooks.add("after-tokenize",function(b){a.languages["markup-templating"].tokenizePlaceholders(b,"ftl")})}function oq(a){a.register(mW),a.languages.gamemakerlanguage=a.languages.gml=a.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}function or(a){a.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},a.languages.gap.shell.inside.gap.inside=a.languages.gap}function os(a){a.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}function ot(a){a.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}function ou(a){a.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},record:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"tag"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}function ov(a){a.languages.gettext={comment:[{pattern:/# .*/,greedy:!0,alias:"translator-comment"},{pattern:/#\..*/,greedy:!0,alias:"extracted-comment"},{pattern:/#:.*/,greedy:!0,alias:"reference-comment"},{pattern:/#,.*/,greedy:!0,alias:"flag-comment"},{pattern:/#\|.*/,greedy:!0,alias:"previously-untranslated-comment"},{pattern:/#.*/,greedy:!0}],string:{pattern:/(^|[^\\])"(?:[^"\\]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/^msg(?:ctxt|id|id_plural|str)\b/m,number:/\b\d+\b/,punctuation:/[\[\]]/},a.languages.po=a.languages.gettext}function ow(a){var b;b=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source,a.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+b+")(?:"+b+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(b),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}}function ox(a){a.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}function oy(a){a.register(na),a.languages.glsl=a.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}function oz(a){a.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},a.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=a.languages.gn,a.languages.gni=a.languages.gn}function oA(a){a.languages["linker-script"]={comment:{pattern:/(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,lookbehind:!0,greedy:!0},identifier:{pattern:/"[^"\r\n]*"/,greedy:!0},"location-counter":{pattern:/\B\.\B/,alias:"important"},section:{pattern:/(^|[^\w*])\.\w+\b/,lookbehind:!0,alias:"keyword"},function:/\b[A-Z][A-Z_]*(?=\s*\()/,number:/\b(?:0[xX][a-fA-F0-9]+|\d+)[KM]?\b/,operator:/>>=?|<<=?|->|\+\+|--|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?/,punctuation:/[(){},;]/},a.languages.ld=a.languages["linker-script"]}function oB(a){a.register(mW),a.languages.go=a.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),a.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete a.languages.go["class-name"]}function oC(a){a.languages["go-mod"]=a.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}function oD(a){var b;a.register(mW),b={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},a.languages.gradle=a.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),a.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:b,string:/[\s\S]+/}}}),a.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),a.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),b.inside.expression.inside=a.languages.gradle}function oE(a){a.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:a.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},a.hooks.add("after-tokenize",function(a){if("graphql"===a.language)for(var b=a.tokens.filter(function(a){return"string"!=typeof a&&"comment"!==a.type&&"scalar"!==a.type}),c=0;c<b.length;){var d=b[c++];if("keyword"===d.type&&"mutation"===d.content){var e=[];if(k(["definition-mutation","punctuation"])&&"("===b[c+1].content){c+=2;var f=l(/^\($/,/^\)$/);if(-1===f)continue;for(;c<f;c++){var g=b[c+0];"variable"===g.type&&(m(g,"variable-input"),e.push(g.content))}c=f+1}if(k(["punctuation","property-query"])&&"{"===b[c+0].content&&(m(b[++c+0],"property-mutation"),e.length>0)){var h=l(/^\{$/,/^\}$/);if(-1===h)continue;for(var i=c;i<h;i++){var j=b[i];"variable"===j.type&&e.indexOf(j.content)>=0&&m(j,"variable-input")}}}}function k(a,d){d=d||0;for(var e=0;e<a.length;e++){var f=b[c+(e+d)];if(!f||f.type!==a[e])return!1}return!0}function l(a,d){for(var e=1,f=c;f<b.length;f++){var g=b[f],h=g.content;if("punctuation"===g.type&&"string"==typeof h){if(a.test(h))e++;else if(d.test(h)&&0==--e)return f}}return -1}function m(a,b){var c=a.alias;c?Array.isArray(c)||(a.alias=c=[c]):a.alias=c=[],c.push(b)}})}function oF(a){var b;a.register(mW),b={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},a.languages.groovy=a.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),a.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:b,string:/[\s\S]+/}}}),a.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),a.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),b.inside.expression.inside=a.languages.groovy}function oG(a){a.register(mV),a.languages.less=a.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),a.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}function oH(a){a.register(mV),a.languages.scss=a.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),a.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),a.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),a.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),a.languages.scss.atrule.inside.rest=a.languages.scss}function oI(a){a.register(mU),function(a){var b=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,c=/\)|\((?![^|()\n]+\))/.source;function d(a,d){return RegExp(a.replace(/<MOD>/g,function(){return"(?:"+b+")"}).replace(/<PAR>/g,function(){return"(?:"+c+")"}),d||"")}var e={css:{pattern:/\{[^{}]+\}/,inside:{rest:a.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},f=a.languages.textile=a.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:d(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:d(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:e},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:d(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:d(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:e},punctuation:/^[*#]+/}},table:{pattern:d(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:d(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:e},punctuation:/\||^\./}},inline:{pattern:d(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:d(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:d(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:d(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:d(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:d(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:d(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:d(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:d(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:e},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:d(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:d(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:d(/(^")<MOD>+/.source),lookbehind:!0,inside:e},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:d(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:d(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:d(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:e},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),g=f.phrase.inside,h={inline:g.inline,link:g.link,image:g.image,footnote:g.footnote,acronym:g.acronym,mark:g.mark};f.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var i=g.inline.inside;i.bold.inside=h,i.italic.inside=h,i.inserted.inside=h,i.deleted.inside=h,i.span.inside=h;var j=g.table.inside;j.inline=h.inline,j.link=h.link,j.image=h.image,j.footnote=h.footnote,j.acronym=h.acronym,j.mark=h.mark}(a)}function oJ(a){a.register(nT),function(a){a.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:a.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:a.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:a.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:a.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:a.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:a.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:a.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var b=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],c={},d=0,e=b.length;d<e;d++){var f=b[d];f="string"==typeof f?{filter:f,language:f}:f,a.languages[f.language]&&(c["filter-"+f.filter]={pattern:RegExp("((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+".replace("{{filter_name}}",function(){return f.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[f.language,"language-"+f.language],inside:a.languages[f.language]}}})}a.languages.insertBefore("haml","filter",c)}(a)}function oK(a){a.register(n3),a.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},a.hooks.add("before-tokenize",function(b){a.languages["markup-templating"].buildPlaceholders(b,"handlebars",/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g)}),a.hooks.add("after-tokenize",function(b){a.languages["markup-templating"].tokenizePlaceholders(b,"handlebars")}),a.languages.hbs=a.languages.handlebars,a.languages.mustache=a.languages.handlebars}function oL(a){a.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},a.languages.hs=a.languages.haskell}function oM(a){a.register(mW),a.languages.haxe=a.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<<?|>{1,3}|[-+*/%!=&|^])=?|[?:~]/}),a.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:a.languages.haxe}}},string:/[\s\S]+/}}}),a.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:a.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),a.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}function oN(a){a.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}function oO(a){a.register(na),a.languages.hlsl=a.languages.extend("c",{"class-name":[a.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}function oP(a){a.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}function oQ(a){a.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}function oR(a){a.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}function oS(a){a.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},a.languages.webmanifest=a.languages.json}function oT(a){a.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|")+/[\w\-.~!$&'()*+,;=%]*/.source+")"+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},a.languages.url=a.languages.uri}function oU(a){!function(a){function b(a){return RegExp("(^(?:"+a+"):[ ]*(?![ ]))[^]+","i")}a.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:a.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:b(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:a.languages.csp},{pattern:b(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:a.languages.hpkp},{pattern:b(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:a.languages.hsts},{pattern:b(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var c,d=a.languages,e={"application/javascript":d.javascript,"application/json":d.json||d.javascript,"application/xml":d.xml,"text/xml":d.xml,"text/html":d.html,"text/css":d.css,"text/plain":d.plain},f={"application/json":!0,"application/xml":!0};for(var g in e)if(e[g]){c=c||{};var h=f[g]?function(a){var b=a.replace(/^[a-z]+\//,"");return"(?:"+a+"|\\w+/(?:[\\w.-]+\\+)+"+b+"(?![+\\w.-]))"}(g):g;c[g.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+h+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:e[g]}}c&&a.languages.insertBefore("http","header",c)}(a)}function oV(a){a.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}function oW(a){a.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|<?=?)|>>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}function oX(a){!function(a){function b(a,c){return c<=0?/[]/.source:a.replace(/<SELF>/g,function(){return b(a,c-1)})}var c=/'[{}:=,](?:[^']|'')*'(?!')/,d={pattern:/''/,greedy:!0,alias:"operator"},e=b(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return c.source}),8),f={pattern:RegExp(e),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};a.languages["icu-message-format"]={argument:{pattern:RegExp(e),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":f,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":f,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+b(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:d,string:{pattern:c,greedy:!0,inside:{escape:d}}},f.inside.message.inside=a.languages["icu-message-format"],a.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=a.languages["icu-message-format"]}(a)}function oY(a){a.register(oL),a.languages.idris=a.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),a.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),a.languages.idr=a.languages.idris}function oZ(a){a.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},a.languages.gitignore=a.languages.ignore,a.languages.hgignore=a.languages.ignore,a.languages.npmignore=a.languages.ignore}function o$(a){a.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},a.languages.inform7.string.inside.substitution.inside.rest=a.languages.inform7,a.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}function o_(a){a.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}function o0(a){a.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<<?=?|:?:?=|\+\+?|--?|\*\*?|\/\/?|%|\|\|?|&&?|\b(?:and|not|or|return)\b|@@?|\?\??|\.\./,punctuation:/[{}[\];(),.:]/}}function o1(a){a.languages.j={comment:{pattern:/\bNB\..*/,greedy:!0},string:{pattern:/'(?:''|[^'\r\n])*'/,greedy:!0},keyword:/\b(?:(?:CR|LF|adverb|conjunction|def|define|dyad|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)\.)/,verb:{pattern:/(?!\^:|;\.|[=!][.:])(?:\{(?:\.|::?)?|p(?:\.\.?|:)|[=!\]]|[<>+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}function o2(a){var b,c,d;a.register(mW),b=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,c=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,d={pattern:RegExp(/(^|[^\w.])/.source+c+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}},a.languages.java=a.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[d,{pattern:RegExp(/(^|[^\w.])/.source+c+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:d.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+c+/[A-Z]\w*\b/.source),lookbehind:!0,inside:d.inside}],keyword:b,function:[a.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),a.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),a.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":d,keyword:b,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+c+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:d.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+c+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:d.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return b.source})),lookbehind:!0,inside:{punctuation:/\./}}})}function o3(a){var b,c,d,e,f,g,h;a.register(n3),b=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,c=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],d=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,e=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,f=/[{}\[\](),:;]/,a.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:b,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:c,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:d,operator:e,punctuation:f},h=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:g={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:a.languages.php}}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:g}}],a.languages.insertBefore("php","variable",{string:h,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:b,string:h,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:c,number:d,operator:e,punctuation:f}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),a.hooks.add("before-tokenize",function(b){/<\?/.test(b.code)&&a.languages["markup-templating"].buildPlaceholders(b,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}),a.hooks.add("after-tokenize",function(b){a.languages["markup-templating"].tokenizePlaceholders(b,"php")})}function o4(a){var b;Object.defineProperty(b=a.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/},"addSupport",{value:function(b,c){"string"==typeof b&&(b=[b]),b.forEach(function(b){!function(b,c){var d="doc-comment",e=a.languages[b];if(e){var f=e[d];if(!f){var g={};g[d]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},f=(e=a.languages.insertBefore(b,"comment",g))[d]}if(f instanceof RegExp&&(f=e[d]={pattern:f}),Array.isArray(f))for(var h=0,i=f.length;h<i;h++)f[h]instanceof RegExp&&(f[h]={pattern:f[h]}),c(f[h]);else c(f)}}(b,function(a){a.inside||(a.inside={}),a.inside.rest=c})})}}),b.addSupport(["java","javascript","php"],b)}function o5(a){a.register(o2),a.languages.scala=a.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),a.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:a.languages.scala}}},string:/[\s\S]+/}}}),delete a.languages.scala["class-name"],delete a.languages.scala.function,delete a.languages.scala.constant}function o6(a){var b,c,d;a.register(o2),a.register(o4),a.register(mU),b=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,c=/#\s*\w+(?:\s*\([^()]*\))?/.source,d=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return c}),a.languages.javadoc=a.languages.extend("javadoclike",{}),a.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+d+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:a.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:b,lookbehind:!0,inside:a.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:b,lookbehind:!0,inside:{tag:a.languages.markup.tag,entity:a.languages.markup.entity,code:{pattern:/.+/,inside:a.languages.java,alias:"language-java"}}}}}],tag:a.languages.markup.tag,entity:a.languages.markup.entity}),a.languages.javadoclike.addSupport("java",a.languages.javadoc)}function o7(a){a.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:<init>)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:<init>|[\w$]+)\()/,function:/(?:<init>|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}function o8(a){a.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}function o9(a){a.register(mW),a.languages.jolie=a.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),a.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}function pa(a){var b,c,d,e;b=/\\\((?:[^()]|\([^()]*\))*\)/.source,c=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return b})),d={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+b),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},e=a.languages.jq={comment:/#.*/,property:{pattern:RegExp(c.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:d},string:{pattern:c,lookbehind:!0,greedy:!0,inside:d},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}},d.interpolation.inside.content.inside=e}function pb(a){a.register(mY),function(a){var b=a.languages.javascript["template-string"],c=b.pattern.source,d=b.inside.interpolation,e=d.inside["interpolation-punctuation"],f=d.pattern.source;function g(b,d){if(a.languages[b])return{pattern:RegExp("((?:"+d+")\\s*)"+c),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:b}}}}function h(b,c,d){var e={code:b,grammar:c,language:d};return a.hooks.run("before-tokenize",e),e.tokens=a.tokenize(e.code,e.grammar),a.hooks.run("after-tokenize",e),e.tokens}a.languages.javascript["template-string"]=[g("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),g("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),g("svg",/\bsvg/.source),g("markdown",/\b(?:markdown|md)/.source),g("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),g("sql",/\bsql/.source),b].filter(Boolean);var i={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};a.hooks.add("after-tokenize",function(b){b.language in i&&function b(c){for(var g=0,i=c.length;g<i;g++){var j=c[g];if("string"!=typeof j){var k=j.content;if(!Array.isArray(k)){"string"!=typeof k&&b([k]);continue}if("template-string"===j.type){var l=k[1];if(3===k.length&&"string"!=typeof l&&"embedded-code"===l.type){var m=function a(b){return"string"==typeof b?b:Array.isArray(b)?b.map(a).join(""):a(b.content)}(l),n=l.alias,o=Array.isArray(n)?n[0]:n,p=a.languages[o];if(!p)continue;k[1]=function(b,c,g){var i=a.tokenize(b,{interpolation:{pattern:RegExp(f),lookbehind:!0}}),j=0,k={},l=h(i.map(function(a){if("string"==typeof a)return a;for(var c,d,e=a.content;-1!==b.indexOf((c=j++,d="___"+g.toUpperCase()+"_"+c+"___")););return k[d]=e,d}).join(""),c,g),m=Object.keys(k);return j=0,!function b(c){for(var f=0;f<c.length;f++){if(j>=m.length)return;var g=c[f];if("string"==typeof g||"string"==typeof g.content){var i=m[j],l="string"==typeof g?g:g.content,n=l.indexOf(i);if(-1!==n){++j;var o=l.substring(0,n),p=function(b){var c={};c["interpolation-punctuation"]=e;var f=a.tokenize(b,c);if(3===f.length){var g=[1,1];g.push.apply(g,h(f[1],a.languages.javascript,"javascript")),f.splice.apply(f,g)}return new a.Token("interpolation",f,d.alias,b)}(k[i]),q=l.substring(n+i.length),r=[];if(o&&r.push(o),r.push(p),q){var s=[q];b(s),r.push.apply(r,s)}"string"==typeof g?(c.splice.apply(c,[f,1].concat(r)),f+=r.length-1):g.content=r}}else{var t=g.content;Array.isArray(t)?b(t):b([t])}}}(l),new a.Token(g,l,"language-"+g,b)}(m,p,o)}}else b(k)}}}(b.tokens)})}(a)}function pc(a){var b;a.register(mY),a.languages.typescript=a.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),a.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete a.languages.typescript.parameter,delete a.languages.typescript["literal-property"],b=a.languages.extend("typescript",{}),delete b["class-name"],a.languages.typescript["class-name"].inside=b,a.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:b}}}}),a.languages.ts=a.languages.typescript}function pd(a){var b,c,d;a.register(o4),a.register(mY),a.register(pc),b=a.languages.javascript,d="(@(?:arg|argument|param|property)\\s+(?:"+(c=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source)+"\\s+)?)",a.languages.jsdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp(d+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),a.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(d+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:b,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return c})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+c),lookbehind:!0,inside:{string:b.string,number:b.number,boolean:b.boolean,keyword:a.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:b,alias:"language-javascript"}}}}),a.languages.javadoclike.addSupport("javascript",a.languages.jsdoc)}function pe(a){a.register(mY),a.languages.n4js=a.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),a.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),a.languages.n4jsd=a.languages.n4js}function pf(a){a.register(mY),function(a){function b(a,b){return RegExp(a.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),b)}a.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+a.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),a.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+a.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),a.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),a.languages.insertBefore("javascript","keyword",{imports:{pattern:b(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:a.languages.javascript},exports:{pattern:b(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:a.languages.javascript}}),a.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),a.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),a.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:b(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var c=["function","function-variable","method","method-variable","property-access"],d=0;d<c.length;d++){var e=c[d],f=a.languages.javascript[e];"RegExp"===a.util.type(f)&&(f=a.languages.javascript[e]={pattern:f});var g=f.inside||{};f.inside=g,g["maybe-class-name"]=/^[A-Z][\s\S]*/}}(a)}function pg(a){var b;a.register(oS),b=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/,a.languages.json5=a.languages.extend("json",{property:[{pattern:RegExp(b.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:b,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}function ph(a){a.register(oS),a.languages.jsonp=a.languages.extend("json",{punctuation:/[{}[\]();,.]/}),a.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}function pi(a){a.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js|<unknown>|.*(?:node_modules|\(<anonymous>\)|\(<unknown>|<anonymous>$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}function pj(a){a.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}function pk(a){a.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}<ipv4>|(?:[\da-f]{1,4}:){0,5}:<ipv4>|::(?:[\da-f]{1,4}:){0,5}<ipv4>|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|<ipv4>(?:\/\d{1,2})?)\b/.source.replace(/<ipv4>/g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}function pl(a){a.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|newcontext|nomatch|postkeystroke|readonly|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}function pm(a){var b;a.register(mW),a.languages.kotlin=a.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete a.languages.kotlin["class-name"],b={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:a.languages.kotlin}},a.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:b},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:b},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete a.languages.kotlin.string,a.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),a.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),a.languages.kt=a.languages.kotlin,a.languages.kts=a.languages.kotlin}function pn(a){var b=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function c(a,c){return RegExp(a.replace(/<nonId>/g,b),c)}a.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:c(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:c(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:c(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:c(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:c(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:c(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:c(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:c(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},a.languages.kum=a.languages.kumir}function po(a){a.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}function pp(a){var b,c;c={"equation-command":{pattern:b=/\\(?:[^a-z()[\]]|[a-z*]+)/i,alias:"regex"}},a.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:c,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:c,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:b,alias:"selector"},punctuation:/[[\]{}&]/},a.languages.tex=a.languages.latex,a.languages.context=a.languages.latex}function pq(a){var b;a.register(mW),a.register(n3),a.register(o3),a.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:a.languages.php}},b=a.languages.extend("markup",{}),a.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:a.languages.php}}}}}},b.tag),a.hooks.add("before-tokenize",function(c){"latte"===c.language&&(a.languages["markup-templating"].buildPlaceholders(c,"latte",/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g),c.grammar=b)}),a.hooks.add("after-tokenize",function(b){a.languages["markup-templating"].tokenizePlaceholders(b,"latte")})}function pr(a){a.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(function(a){for(var b in a)a[b]=a[b].replace(/<[\w\s]+>/g,function(b){return"(?:"+a[b].trim()+")"});return a[b]}({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/}}function ps(a){a.register(pr);for(var b=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,c=0;c<5;c++)b=b.replace(/<expr>/g,function(){return b});b=b.replace(/<expr>/g,/[^\s\S]/.source);var d=a.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return b}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:a.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};d["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=d,a.languages.ly=d}function pt(a){a.register(n3),a.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},a.hooks.add("before-tokenize",function(b){var c=!1;a.languages["markup-templating"].buildPlaceholders(b,"liquid",/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,function(a){var b=/^\{%-?\s*(\w+)/.exec(a);if(b){var d=b[1];if("raw"===d&&!c)return c=!0,!0;if("endraw"===d)return c=!1,!0}return!c})}),a.hooks.add("after-tokenize",function(b){a.languages["markup-templating"].tokenizePlaceholders(b,"liquid")})}function pu(a){!function(a){function b(a){return RegExp(/(\()/.source+"(?:"+a+")"+/(?=[\s\)])/.source)}function c(a){return RegExp(/([\s([])/.source+"(?:"+a+")"+/(?=[\s)])/.source)}var d=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,e="&"+d,f="(\\()",g="(?=\\s)",h=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,i={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+d+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+d),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+d),alias:"property"},splice:{pattern:RegExp(",@?"+d),alias:["symbol","variable"]},keyword:[{pattern:RegExp(f+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+g),lookbehind:!0},{pattern:RegExp(f+"(?:append|by|collect|concat|do|finally|for|in|return)"+g),lookbehind:!0}],declare:{pattern:b(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:b(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:c(/nil|t/.source),lookbehind:!0},number:{pattern:c(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(f+"def(?:const|custom|group|var)\\s+"+d),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(d)}},defun:{pattern:RegExp(f+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+d+/\s+\(/.source+h+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+d),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(f+"lambda\\s+\\(\\s*(?:&?"+d+"(?:\\s+&?"+d+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(f+d),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},j={"lisp-marker":RegExp(e),varform:{pattern:RegExp(/\(/.source+d+/\s+(?=\S)/.source+h+/\)/.source),inside:i},argument:{pattern:RegExp(/(^|[\s(])/.source+d),lookbehind:!0,alias:"variable"},rest:i},k="\\S+(?:\\s+\\S+)*",l={pattern:RegExp(f+h+"(?=\\))"),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+k),inside:j},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+k),inside:j},keys:{pattern:RegExp("&key\\s+"+k+"(?:\\s+&allow-other-keys)?"),inside:j},argument:{pattern:RegExp(d),alias:"variable"},punctuation:/[()]/}};i.lambda.inside.arguments=l,i.defun.inside.arguments=a.util.clone(l),i.defun.inside.arguments.inside.sublist=l,a.languages.lisp=i,a.languages.elisp=i,a.languages.emacs=i,a.languages["emacs-lisp"]=i}(a)}function pv(a){a.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<<?<?|--?!?|~~?!?|[|=?])?|>[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},a.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=a.languages.livescript}function pw(a){a.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}}function px(a){a.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:a.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}function py(a){a.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}function pz(a){a.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}function pA(a){a.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}function pB(a){var b,c;b=/\b(?:(?:col|row)?vector|matrix|scalar)\b/.source,c=/\bvoid\b|<org>|\b(?:complex|numeric|pointer(?:\s*\([^()]*\))?|real|string|(?:class|struct)\s+\w+|transmorphic)(?:\s*<org>)?/.source.replace(/<org>/g,b),a.languages.mata={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|struct)\s+)\w+(?=\s*(?:\{|\bextends\b))/,lookbehind:!0},type:{pattern:RegExp(c),alias:"class-name",inside:{punctuation:/[()]/,keyword:/\b(?:class|function|struct|void)\b/}},keyword:/\b(?:break|class|continue|do|else|end|extends|external|final|for|function|goto|if|pragma|private|protected|public|return|static|struct|unset|unused|version|virtual|while)\b/,constant:/\bNULL\b/,number:{pattern:/(^|[^\w.])(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|\d[a-f0-9]*(?:\.[a-f0-9]+)?x[+-]?\d+)i?(?![\w.])/i,lookbehind:!0},missing:{pattern:/(^|[^\w.])(?:\.[a-z]?)(?![\w.])/,lookbehind:!0,alias:"symbol"},function:/\b[a-z_]\w*(?=\s*\()/i,operator:/\.\.|\+\+|--|&&|\|\||:?(?:[!=<>]=|[+\-*/^<>&|:])|[!?=\\#’`']/,punctuation:/[()[\]{},;.]/}}function pC(a){a.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}function pD(a){var b;b=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i,a.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source)+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source+")[ ]*)(?!"+b.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+b.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source)+"|"+/[({'"$@#?]/.source+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:b,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}}function pE(a){a.languages.mel={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},code:{pattern:/`(?:\\.|[^\\`])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},statement:{pattern:/[\s\S]+/,inside:null}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:{pattern:/((?:^|[{;])[ \t]*)[a-z_]\w*\b(?!\s*(?:\.(?!\.)|[[{=]))|\b[a-z_]\w*(?=[ \t]*\()/im,lookbehind:!0,greedy:!0},"tensor-punctuation":{pattern:/<<|>>/,alias:"punctuation"},operator:/\+[+=]?|-[-=]?|&&|\|\||[<>]=?|[*\/!=]=?|[%^]/,punctuation:/[.,:;?\[\](){}]/},a.languages.mel.code.inside.statement.inside=a.languages.mel}function pF(a){a.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[<ox](?:==+|--+|-\.*-)[>ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}function pG(a){a.languages.metafont={comment:{pattern:/%.*/,greedy:!0},string:{pattern:/"[^\r\n"]*"/,greedy:!0},number:/\d*\.?\d+/,boolean:/\b(?:false|true)\b/,punctuation:[/[,;()]/,{pattern:/(^|[^{}])(?:\{|\})(?![{}])/,lookbehind:!0},{pattern:/(^|[^[])\[(?!\[)/,lookbehind:!0},{pattern:/(^|[^\]])\](?!\])/,lookbehind:!0}],constant:[{pattern:/(^|[^!?])\?\?\?(?![!?])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\\|\\\\)(?![/*\\])/,lookbehind:!0},/\b(?:_|blankpicture|bp|cc|cm|dd|ditto|down|eps|epsilon|fullcircle|halfcircle|identity|in|infinity|left|mm|nullpen|nullpicture|origin|pc|penrazor|penspeck|pensquare|penstroke|proof|pt|quartercircle|relax|right|smoke|unitpixel|unitsquare|up)\b/],quantity:{pattern:/\b(?:autorounding|blacker|boundarychar|charcode|chardp|chardx|chardy|charext|charht|charic|charwd|currentwindow|day|designsize|displaying|fillin|fontmaking|granularity|hppp|join_radius|month|o_correction|pausing|pen_(?:bot|lft|rt|top)|pixels_per_inch|proofing|showstopping|smoothing|time|tolerance|tracingcapsules|tracingchoices|tracingcommands|tracingedges|tracingequations|tracingmacros|tracingonline|tracingoutput|tracingpens|tracingrestores|tracingspecs|tracingstats|tracingtitles|turningcheck|vppp|warningcheck|xoffset|year|yoffset)\b/,alias:"keyword"},command:{pattern:/\b(?:addto|batchmode|charlist|cull|display|errhelp|errmessage|errorstopmode|everyjob|extensible|fontdimen|headerbyte|inner|interim|let|ligtable|message|newinternal|nonstopmode|numspecial|openwindow|outer|randomseed|save|scrollmode|shipout|show|showdependencies|showstats|showtoken|showvariable|special)\b/,alias:"builtin"},operator:[{pattern:/(^|[^>=<:|])(?:<|<=|=|=:|\|=:|\|=:>|=:\|>|=:\||\|=:\||\|=:\|>|\|=:\|>>|>|>=|:|:=|<>|::|\|\|:)(?![>=<:|])/,lookbehind:!0},{pattern:/(^|[^+-])(?:\+|\+\+|-{1,3}|\+-\+)(?![+-])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\*|\*\*|\/)(?![/*\\])/,lookbehind:!0},{pattern:/(^|[^.])(?:\.{2,3})(?!\.)/,lookbehind:!0},{pattern:/(^|[^@#&$])&(?![@#&$])/,lookbehind:!0},/\b(?:and|not|or)\b/],macro:{pattern:/\b(?:abs|beginchar|bot|byte|capsule_def|ceiling|change_width|clear_pen_memory|clearit|clearpen|clearxy|counterclockwise|cullit|cutdraw|cutoff|decr|define_blacker_pixels|define_corrected_pixels|define_good_x_pixels|define_good_y_pixels|define_horizontal_corrected_pixels|define_pixels|define_whole_blacker_pixels|define_whole_pixels|define_whole_vertical_blacker_pixels|define_whole_vertical_pixels|dir|direction|directionpoint|div|dotprod|downto|draw|drawdot|endchar|erase|fill|filldraw|fix_units|flex|font_coding_scheme|font_extra_space|font_identifier|font_normal_shrink|font_normal_space|font_normal_stretch|font_quad|font_size|font_slant|font_x_height|gfcorners|gobble|gobbled|good\.(?:bot|lft|rt|top|x|y)|grayfont|hide|hround|imagerules|incr|interact|interpath|intersectionpoint|inverse|italcorr|killtext|labelfont|labels|lft|loggingall|lowres_fix|makegrid|makelabel(?:\.(?:bot|lft|rt|top)(?:\.nodot)?)?|max|min|mod|mode_def|mode_setup|nodisplays|notransforms|numtok|openit|penlabels|penpos|pickup|proofoffset|proofrule|proofrulethickness|range|reflectedabout|rotatedabout|rotatedaround|round|rt|savepen|screenchars|screenrule|screenstrokes|shipit|showit|slantfont|softjoin|solve|stop|superellipse|tensepath|thru|titlefont|top|tracingall|tracingnone|undraw|undrawdot|unfill|unfilldraw|upto|vround)\b/,alias:"function"},builtin:/\b(?:ASCII|angle|char|cosd|decimal|directiontime|floor|hex|intersectiontimes|jobname|known|length|makepath|makepen|mexp|mlog|normaldeviate|oct|odd|pencircle|penoffset|point|postcontrol|precontrol|reverse|rotated|sind|sqrt|str|subpath|substring|totalweight|turningnumber|uniformdeviate|unknown|xpart|xxpart|xypart|ypart|yxpart|yypart)\b/,keyword:/\b(?:also|at|atleast|begingroup|charexists|contour|controls|curl|cycle|def|delimiters|doublepath|dropping|dump|else|elseif|end|enddef|endfor|endgroup|endinput|exitif|exitunless|expandafter|fi|for|forever|forsuffixes|from|if|input|inwindow|keeping|kern|of|primarydef|quote|readstring|scaled|scantokens|secondarydef|shifted|skipto|slanted|step|tension|tertiarydef|to|transformed|until|vardef|withpen|withweight|xscaled|yscaled|zscaled)\b/,type:{pattern:/\b(?:boolean|expr|numeric|pair|path|pen|picture|primary|secondary|string|suffix|tertiary|text|transform)\b/,alias:"property"},variable:{pattern:/(^|[^@#&$])(?:@#|#@|#|@)(?![@#&$])|\b(?:aspect_ratio|currentpen|currentpicture|currenttransform|d|extra_beginchar|extra_endchar|extra_setup|h|localfont|mag|mode|screen_cols|screen_rows|w|whatever|x|y|z)\b/,lookbehind:!0}}}function pH(a){a.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}function pI(a){var b;a.register(mY),b="(?:"+["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"].map(function(a){return a.replace("$","\\$")}).join("|")+")\\b",a.languages.mongodb=a.languages.extend("javascript",{}),a.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp("^(['\"])?"+b+"(?:\\1)?$")}}}),a.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},a.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:ObjectId|Code|BinData|DBRef|Timestamp|NumberLong|NumberDecimal|MaxKey|MinKey|RegExp|ISODate|UUID)\\b"),alias:"keyword"}})}function pJ(a){a.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}function pK(a){a.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},a.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=a.languages.moonscript,a.languages.moon=a.languages.moonscript}function pL(a){a.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}function pM(a){a.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}function pN(a){var b,c;c={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:b=/\{[^\r\n\[\]{}]*\}/,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]},a.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:b,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:c}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:b,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:c},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},a.languages.nani=a.languages.naniscript,a.hooks.add("after-tokenize",function(a){a.tokens.forEach(function(a){if("string"!=typeof a&&"generic-text"===a.type){var b=function a(b){return"string"==typeof b?b:Array.isArray(b)?b.map(a).join(""):a(b.content)}(a);!function(a){for(var b=[],c=0;c<a.length;c++){var d=a[c],e="[]{}".indexOf(d);if(-1!==e){if(e%2==0)b.push(e+1);else if(b.pop()!==e)return!1}}return 0===b.length}(b)&&(a.type="bad-line",a.content=b)}})})}function pO(a){a.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-\/%<>=&|$!]/}}function pP(a){a.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"property"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}function pQ(a){a.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}function pR(a){var b;b=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i,a.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:b}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:b}},punctuation:/[{};]/}}function pS(a){a.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}function pT(a){a.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},a.languages.nix.string.inside.interpolation.inside=a.languages.nix}function pU(a){a.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|KnownFolderPath|LabelAddress|TempFileName|WinVer)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|RtlLanguage|ShellVarContextAll|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|Target|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}function pV(a){a.register(na),a.languages.objectivec=a.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete a.languages.objectivec["class-name"],a.languages.objc=a.languages.objectivec}function pW(a){a.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}function pX(a){var b;b=/\\(?:["'\\abefnrtv]|0[0-7]{2}|U[\dA-Fa-f]{6}|u[\dA-Fa-f]{4}|x[\dA-Fa-f]{2})/,a.languages.odin={comment:[{pattern:/\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:\*(?!\/)|[^*])*(?:\*\/|$))*(?:\*\/|$)/,greedy:!0},{pattern:/#![^\n\r]*/,greedy:!0},{pattern:/\/\/[^\n\r]*/,greedy:!0}],char:{pattern:/'(?:\\(?:.|[0Uux][0-9A-Fa-f]{1,6})|[^\n\r'\\])'/,greedy:!0,inside:{symbol:b}},string:[{pattern:/`[^`]*`/,greedy:!0},{pattern:/"(?:\\.|[^\n\r"\\])*"/,greedy:!0,inside:{symbol:b}}],directive:{pattern:/#\w+/,alias:"property"},number:/\b0(?:b[01_]+|d[\d_]+|h_*(?:(?:(?:[\dA-Fa-f]_*){8}){1,2}|(?:[\dA-Fa-f]_*){4})|o[0-7_]+|x[\dA-F_a-f]+|z[\dAB_ab]+)\b|(?:\b\d+(?:\.(?!\.)\d*)?|\B\.\d+)(?:[Ee][+-]?\d*)?[ijk]?(?!\w)/,discard:{pattern:/\b_\b/,alias:"keyword"},"procedure-definition":{pattern:/\b\w+(?=[ \t]*(?::\s*){2}proc\b)/,alias:"function"},keyword:/\b(?:asm|auto_cast|bit_set|break|case|cast|context|continue|defer|distinct|do|dynamic|else|enum|fallthrough|for|foreign|if|import|in|map|matrix|not_in|or_else|or_return|package|proc|return|struct|switch|transmute|typeid|union|using|when|where)\b/,"procedure-name":{pattern:/\b\w+(?=[ \t]*\()/,alias:"function"},boolean:/\b(?:false|nil|true)\b/,"constant-parameter-sign":{pattern:/\$/,alias:"important"},undefined:{pattern:/---/,alias:"operator"},arrow:{pattern:/->/,alias:"punctuation"},operator:/\+\+|--|\.\.[<=]?|(?:&~|[-!*+/=~]|[%&<>|]{1,2})=?|[?^]/,punctuation:/[(),.:;@\[\]{}]/}}function pY(a){var b;a.register(na),a.languages.opencl=a.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),a.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}}),b={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}},a.languages.insertBefore("c","keyword",b),a.languages.cpp&&(b["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},a.languages.insertBefore("cpp","keyword",b))}function pZ(a){a.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},a.languages.qasm=a.languages.openqasm}function p$(a){a.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|<?:?)|>=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}function p_(a){a.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:RegExp("\\b(?:"+["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"].map(function(a){return a.split("").join(" *")}).join("|")+")\\b"),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}function p0(a){var b;a.register(mU),b=a.languages.parser=a.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/}),b=a.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:b.keyword,variable:b.variable,function:b.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:b.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:b.punctuation}}}),a.languages.insertBefore("inside","punctuation",{expression:b.expression,keyword:b.keyword,variable:b.variable,function:b.function,escape:b.escape,"parser-punctuation":{pattern:b.punctuation,alias:"punctuation"}},b.tag.inside["attr-value"])}function p1(a){a.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},a.languages.pascal.asm.inside=a.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),a.languages.objectpascal=a.languages.pascal}function p2(a){var b,c,d,e;b=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,c=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return b}),d=a.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)<type>/.source.replace(/<type>/g,function(){return c}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return c}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return c})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},e=["comment","keyword","builtin","operator","punctuation"].reduce(function(a,b){return a[b]=d[b],a},{}),d["class-name"].forEach(function(a){a.inside=e})}function p3(a){a.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}function p4(a){a.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},a.languages.px=a.languages.pcaxis}function p5(a){a.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},a.languages.pcode=a.languages.peoplecode}function p6(a){var b;b=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source,a.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,b].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,b].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,b+/\s*/.source+b].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}}function p7(a){var b;a.register(o4),a.register(o3),b=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source,a.languages.phpdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+b+"\\s+)?)\\$\\w+"),lookbehind:!0}}),a.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+b),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),a.languages.javadoclike.addSupport("php",a.languages.phpdoc)}function p8(a){a.register(o3),a.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}function p9(a){var b,c,d,e,f,g,h;b=/\$\w+|%[a-z]+%/,e="(?:-+"+(d=/(?:[drlu]|do|down|le|left|ri|right|up)/.source)+"-+|\\.+"+d+"\\.+|-+(?:"+(c=/\[[^[\]]*\]/.source)+"-*)?|"+c+"-+|\\.+(?:"+c+"\\.*)?|"+c+"\\.+)",f=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,g=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,h=/[[?]?[ox]?/.source+"(?:"+e+g+"|"+f+e+"(?:"+g+")?)"+/[ox]?[\]?]?/.source,a.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:b}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+h+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:b,punctuation:/[:,;()[\]{}]|\.{3}/},a.languages["plant-uml"].arrow.inside.expression.inside=a.languages["plant-uml"],a.languages.plantuml=a.languages["plant-uml"]}function qa(a){a.register(m5),a.languages.plsql=a.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),a.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}function qb(a){a.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},a.languages.pq=a.languages.powerquery,a.languages.mscript=a.languages.powerquery}function qc(a){var b;(b=a.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/}).string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:b},boolean:b.boolean,variable:b.variable}}function qd(a){a.register(mW),a.languages.processing=a.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),a.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}function qe(a){a.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}function qf(a){var b,c;c=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"].concat(b=["on","ignoring","group_right","group_left","by","without"],["offset"]),a.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:RegExp("((?:"+b.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:RegExp("\\b(?:"+c.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}}function qg(a){a.languages.properties={comment:/^[ \t]*[#!].*$/m,value:{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0,alias:"attr-value"},key:{pattern:/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,alias:"attr-name"},punctuation:/[=:]/}}function qh(a){var b;a.register(mW),b=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/,a.languages.protobuf=a.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),a.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:b}},builtin:b,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}function qi(a){var b,c,d;(d={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:b={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},number:c={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:b,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:c,punctuation:/[{}()\[\];:,]/}).interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:d}},d.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:d}},a.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:d}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:d}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:d}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:d.interpolation}},rest:d}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:d.interpolation,comment:d.comment,punctuation:/[{},]/}},func:d.func,string:d.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:d.interpolation,punctuation:/[{}()\[\];:.]/}}function qj(a){a.register(n3),a.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},a.hooks.add("before-tokenize",function(b){"twig"===b.language&&a.languages["markup-templating"].buildPlaceholders(b,"twig",/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g)}),a.hooks.add("after-tokenize",function(b){a.languages["markup-templating"].tokenizePlaceholders(b,"twig")})}function qk(a){a.register(mY),a.register(mU),function(a){a.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:a.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:a.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:a.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:a.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:a.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:a.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:a.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:a.languages.javascript}],punctuation:/[.\-!=|]+/};for(var b=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,c=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],d={},e=0,f=c.length;e<f;e++){var g=c[e];g="string"==typeof g?{filter:g,language:g}:g,a.languages[g.language]&&(d["filter-"+g.filter]={pattern:RegExp(b.replace("<filter_name>",function(){return g.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[g.language,"language-"+g.language],inside:a.languages[g.language]}}})}a.languages.insertBefore("pug","filter",d)}(a)}function ql(a){var b;a.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/},b=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:a.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}],a.languages.puppet.heredoc[0].inside.interpolation=b,a.languages.puppet.string.inside["double-quoted"].inside.interpolation=b}function qm(a){var b;a.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/},b=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source,["c",{lang:"c++",alias:"cpp"},"fortran"].forEach(function(c){var d=c;if("string"!=typeof c&&(d=c.alias,c=c.lang),a.languages[d]){var e={};e["inline-lang-"+d]={pattern:RegExp(b.replace("<lang>",c.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:a.util.clone(a.languages.pure["inline-lang"].inside)},e["inline-lang-"+d].inside.rest=a.util.clone(a.languages[d]),a.languages.insertBefore("pure","inline-lang",e)}}),a.languages.c&&(a.languages.pure["inline-lang"].inside.rest=a.util.clone(a.languages.c))}function qn(a){a.register(mW),a.languages.purebasic=a.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+\$?|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),a.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete a.languages.purebasic["class-name"],delete a.languages.purebasic.boolean,a.languages.pbfasm=a.languages.purebasic}function qo(a){a.register(oL),a.languages.purescript=a.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[a.languages.haskell.operator[0],a.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),a.languages.purs=a.languages.purescript}function qp(a){a.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},a.languages.python["string-interpolation"].inside.interpolation.inside.rest=a.languages.python,a.languages.py=a.languages.python}function qq(a){a.register(mW),function(a){function b(a,b){return a.replace(/<<(\d+)>>/g,function(a,c){return"(?:"+b[+c]+")"})}function c(a,c,d){return RegExp(b(a,c),d||"")}var d=RegExp("\\b(?:"+"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within".trim().replace(/ /g,"|")+")\\b"),e=/\b[A-Za-z_]\w*\b/.source,f=b(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[e]),g={keyword:d,punctuation:/[<>()?,.:[\]]/},h=/"(?:\\.|[^\\"])*"/.source;a.languages.qsharp=a.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:c(/(^|[^$\\])<<0>>/.source,[h]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:c(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[f]),lookbehind:!0,inside:g},{pattern:c(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[f]),lookbehind:!0,inside:g}],keyword:d,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),a.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var i=function(a){for(var b=0;b<2;b++)a=a.replace(/<<self>>/g,function(){return"(?:"+a+")"});return a.replace(/<<self>>/g,"[^\\s\\S]")}(b(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[h]));a.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:c(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[i]),greedy:!0,inside:{interpolation:{pattern:c(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[i]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:a.languages.qsharp}}},string:/[\s\S]+/}}})}(a),a.languages.qs=a.languages.qsharp}function qr(a){a.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}function qs(a){a.register(mY);for(var b=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,c=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,d=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return b}).replace(/<comment>/g,function(){return c}),e=0;e<2;e++)d=d.replace(/<expr>/g,function(){return d});d=d.replace(/<expr>/g,"[^\\s\\S]"),a.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(<js>*\)\s*\{<js>*\}/.source.replace(/<js>/g,function(){return d}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:a.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}])<js>)+/.source.replace(/<js>/g,function(){return d}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:a.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}function qt(a){a.register(mW),a.languages.qore=a.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}function qu(a){a.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}function qv(a){a.register(pr),a.languages.racket=a.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),a.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),a.languages.rkt=a.languages.racket}function qw(a){a.register(nk),a.register(mU),function(a){var b=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,c=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function d(a,d){for(var e=0;e<d;e++)a=a.replace(/<self>/g,function(){return"(?:"+a+")"});return a.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+c+")").replace(/<comment>/g,"(?:"+b+")")}var e=d(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),f=d(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,1),g=d(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),h=d(/<(?:[^<>'"@/]|<comment>|<self>)*>/.source,1),i=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+e+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+h+")?"+e+"|"+f+")*"+/(?![?!\.(\[]|<(?!\/))/.source,j=/@(?![\w()])/.source+"|"+i,k="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+"|[\"'][^\"'@]*(?:(?:"+j+")[^\"'@]*)+[\"'])",l=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*<tagAttrValue>|(?=[\s/>])))+)?/.source.replace(/<tagAttrValue>/,k),m=/(?!\d)[^\s>\/=$<%]+/.source+l+/\s*\/?>/.source,n=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+l+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+m)+"|"+d(/<\1/.source+l+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source)+m+"|<self>)*"+/<\/\1\s*>/.source,2)+")*"+/<\/\1\s*>/.source+"|"+/</.source+m+")";a.languages.cshtml=a.languages.extend("markup",{});var o={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:a.languages.insertBefore("csharp","string",{html:{pattern:RegExp(n),greedy:!0,inside:a.languages.cshtml}},{csharp:a.languages.extend("csharp",{})})},p={pattern:RegExp(/(^|[^@])/.source+i),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:o}};a.languages.cshtml.tag.pattern=RegExp(/<\/?/.source+m),a.languages.cshtml.tag.inside["attr-value"].pattern=RegExp(/=\s*/.source+k),a.languages.insertBefore("inside","punctuation",{value:p},a.languages.cshtml.tag.inside["attr-value"]),a.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[g,/(?:code|functions)\s*/.source+g,/(?:for|foreach|lock|switch|using|while)\s*/.source+e+/\s*/.source+g,/do\s*/.source+g+/\s*while\s*/.source+e+/(?:\s*;)?/.source,/try\s*/.source+g+/\s*catch\s*/.source+e+/\s*/.source+g+/\s*finally\s*/.source+g,/if\s*/.source+e+/\s*/.source+g+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+e+")?"+/\s*/.source+g+")*",/helper\s+\w+\s*/.source+e+/\s*/.source+g].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:o}},directive:{pattern:/^([ \t]*)@(?:addTagHelper|attribute|implements|inherits|inject|layout|model|namespace|page|preservewhitespace|removeTagHelper|section|tagHelperPrefix|using)(?=\s).*/m,lookbehind:!0,greedy:!0,inside:{keyword:/^@\w+/,csharp:o}},value:p,"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),a.languages.razor=a.languages.cshtml}(a)}function qx(a){a.register(mY),a.register(mU),function(a){var b=a.util.clone(a.languages.javascript),c=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,d=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,e=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function f(a,b){return RegExp(a=a.replace(/<S>/g,function(){return c}).replace(/<BRACES>/g,function(){return d}).replace(/<SPREAD>/g,function(){return e}),b)}e=f(e).source,a.languages.jsx=a.languages.extend("markup",b),a.languages.jsx.tag.pattern=f(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),a.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,a.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,a.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,a.languages.jsx.tag.inside.comment=b.comment,a.languages.insertBefore("inside","attr-name",{spread:{pattern:f(/<SPREAD>/.source),inside:a.languages.jsx}},a.languages.jsx.tag),a.languages.insertBefore("inside","special-attr",{script:{pattern:f(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:a.languages.jsx}}},a.languages.jsx.tag);var g=function(a){return a?"string"==typeof a?a:"string"==typeof a.content?a.content:a.content.map(g).join(""):""},h=function(b){for(var c=[],d=0;d<b.length;d++){var e=b[d],f=!1;if("string"!=typeof e&&("tag"===e.type&&e.content[0]&&"tag"===e.content[0].type?"</"===e.content[0].content[0].content?c.length>0&&c[c.length-1].tagName===g(e.content[0].content[1])&&c.pop():"/>"===e.content[e.content.length-1].content||c.push({tagName:g(e.content[0].content[1]),openedBraces:0}):c.length>0&&"punctuation"===e.type&&"{"===e.content?c[c.length-1].openedBraces++:c.length>0&&c[c.length-1].openedBraces>0&&"punctuation"===e.type&&"}"===e.content?c[c.length-1].openedBraces--:f=!0),(f||"string"==typeof e)&&c.length>0&&0===c[c.length-1].openedBraces){var i=g(e);d<b.length-1&&("string"==typeof b[d+1]||"plain-text"===b[d+1].type)&&(i+=g(b[d+1]),b.splice(d+1,1)),d>0&&("string"==typeof b[d-1]||"plain-text"===b[d-1].type)&&(i=g(b[d-1])+i,b.splice(d-1,1),d--),b[d]=new a.Token("plain-text",i,null,i)}e.content&&"string"!=typeof e.content&&h(e.content)}};a.hooks.add("after-tokenize",function(a){("jsx"===a.language||"tsx"===a.language)&&h(a.tokens)})}(a)}function qy(a){var b,c;a.register(qx),a.register(pc),b=a.util.clone(a.languages.typescript),a.languages.tsx=a.languages.extend("jsx",b),delete a.languages.tsx.parameter,delete a.languages.tsx["literal-property"],(c=a.languages.tsx.tag).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+c.pattern.source+")",c.pattern.flags),c.lookbehind=!0}function qz(a){a.register(mW),a.languages.reason=a.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),a.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete a.languages.reason.function}function qA(a){a.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}function qB(a){a.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},a.languages.rpy=a.languages.renpy}function qC(a){a.languages.rescript={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},char:{pattern:/'(?:[^\r\n\\]|\\(?:.|\w+))'/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*|@[a-z.]*|#[A-Za-z]\w*|#\d/,function:{pattern:/[a-zA-Z]\w*(?=\()|(\.)[a-z]\w*/,lookbehind:!0},number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,boolean:/\b(?:false|true)\b/,"attr-value":/[A-Za-z]\w*(?==)/,constant:{pattern:/(\btype\s+)[a-z]\w*/,lookbehind:!0},tag:{pattern:/(<)[a-z]\w*|(?:<\/)[a-z]\w*/,lookbehind:!0,inside:{operator:/<|>|\//}},keyword:/\b(?:and|as|assert|begin|bool|class|constraint|do|done|downto|else|end|exception|external|float|for|fun|function|if|in|include|inherit|initializer|int|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|string|switch|then|to|try|type|when|while|with)\b/,operator:/\.{3}|:[:=]?|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/,punctuation:/[(){}[\],;.]/},a.languages.insertBefore("rescript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"tag"},rest:a.languages.rescript}},string:/[\s\S]+/}}}),a.languages.res=a.languages.rescript}function qD(a){a.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}function qE(a){a.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}function qF(a){a.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}function qG(a){!function(a){var b={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},c={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function d(a,d){var e={};for(var f in e["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"},d)e[f]=d[f];return e.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},e.variable=c,e.comment=b,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return a}),"im"),alias:"section",inside:e}}var e={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},f={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:c}},g={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:c}};a.languages.robotframework={settings:d("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:d("Variables"),"test-cases":d("Test Cases",{"test-name":f,documentation:e,property:g}),keywords:d("Keywords",{"keyword-name":f,documentation:e,property:g}),tasks:d("Tasks",{"task-name":f,documentation:e,property:g}),comment:b},a.languages.robot=a.languages.robotframework}(a)}function qH(a){for(var b=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,c=0;c<2;c++)b=b.replace(/<self>/g,function(){return b});b=b.replace(/<self>/g,function(){return/[^\s\S]/.source}),a.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+b),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},a.languages.rust["closure-params"].inside.rest=a.languages.rust,a.languages.rust.attribute.inside.string=a.languages.rust.string}function qI(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s;b=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,c=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,d={pattern:RegExp(b+"[bx]"),alias:"number"},f={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},g={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},h=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],l={function:k={pattern:/%?\b\w+(?=\()/,alias:"keyword"},"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":e={pattern:/&[a-z_]\w*/i},arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:c,"numeric-constant":d,punctuation:j=/[$%@.(){}\[\];,\\]/,string:i={pattern:RegExp(b),greedy:!0}},m={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},n={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},o={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},p={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},q=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,r={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return q}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return q}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:h,function:k,"arg-value":l["arg-value"],operator:l.operator,argument:l.arg,number:c,"numeric-constant":d,punctuation:j,string:i}},s={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0},a.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:<str>|[^;"'])+;/.source.replace(/<str>/g,function(){return b}),"im"),alias:"language-sql",inside:a.languages.sql},"global-statements":o,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:c,"numeric-constant":d,punctuation:j,string:i}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:h,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return b}),"im"),lookbehind:!0,alias:"language-groovy",inside:a.languages.groovy},keyword:s,"submit-statement":p,"global-statements":o,number:c,"numeric-constant":d,punctuation:j,string:i}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:h,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return b}),"im"),lookbehind:!0,alias:"language-lua",inside:a.languages.lua},keyword:s,"submit-statement":p,"global-statements":o,number:c,"numeric-constant":d,punctuation:j,string:i}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:h,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:l}},"cas-actions":r,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:l},step:g,keyword:s,function:k,format:m,altformat:n,"global-statements":o,number:c,"numeric-constant":d,punctuation:j,string:i}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return b}),"im"),lookbehind:!0,inside:l},"macro-keyword":f,"macro-variable":e,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":f,"macro-variable":e,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:j}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:h,number:c,"numeric-constant":d}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:l},"cas-actions":r,comment:h,function:k,format:m,altformat:n,"numeric-constant":d,datetime:{pattern:RegExp(b+"(?:dt?|t)"),alias:"number"},string:i,step:g,keyword:s,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:c,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:j}}function qJ(a){var b,c;a.register(mV),a.languages.sass=a.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),a.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete a.languages.sass.atrule,b=/\$[-\w]+|#\{\$[-\w]+\}/,c=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],a.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:b,operator:c}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:b,operator:c,important:a.languages.sass.important}}}),delete a.languages.sass.property,delete a.languages.sass.important,a.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}function qK(a){var b;a.register(nf),b=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|"),a.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return b}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:a.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},a.languages["sh-session"]=a.languages.shellsession=a.languages["shell-session"]}function qL(a){a.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}function qM(a){a.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}function qN(a){var b,c;a.register(n3),a.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:a.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},a.languages.smarty["embedded-php"].inside.smarty.inside=a.languages.smarty,a.languages.smarty.string[0].inside.interpolation.inside.expression.inside=a.languages.smarty,b=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,c=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return b.source}),"g"),a.hooks.add("before-tokenize",function(b){var d=!1;a.languages["markup-templating"].buildPlaceholders(b,"smarty",c,function(a){return"{/literal}"===a&&(d=!1),!d&&("{literal}"===a&&(d=!0),!0)})}),a.hooks.add("after-tokenize",function(b){a.languages["markup-templating"].tokenizePlaceholders(b,"smarty")})}function qO(a){var b;b=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i,a.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)<TERMINAL>(?:\s*(?:(?:\*|->)\s*<TERMINAL>|,\s*<TERMINAL>(?:(?=<NOT-LAST>)|(?!<NOT-LAST>)\s+<LONG-ID>)))*/.source.replace(/<NOT-LAST>/g,function(){return/\s*(?:[*,]|->)/.source}).replace(/<TERMINAL>/g,function(){return/(?:'[\w']*|<LONG-ID>|\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+<LONG-ID>)*/.source}).replace(/<LONG-ID>/g,function(){return/(?!<KEYWORD>)[a-z\d_][\w'.]*/.source}).replace(/<KEYWORD>/g,function(){return b.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:b,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},a.languages.sml["class-name"][0].inside=a.languages.sml,a.languages.smlnj=a.languages.sml}function qP(a){a.register(mW),a.languages.solidity=a.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),a.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),a.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),a.languages.sol=a.languages.solidity}function qQ(a){var b;b={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}},a.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:b}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:b}},guid:b,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},a.languages.sln=a.languages["solution-file"]}function qR(a){var b,c;a.register(n3),b=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,c=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/,a.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:b,greedy:!0},number:c,punctuation:/[\[\].?]/}},string:{pattern:b,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:c,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},a.hooks.add("before-tokenize",function(b){var c=!1;a.languages["markup-templating"].buildPlaceholders(b,"soy",/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,function(a){return"{/literal}"===a&&(c=!1),!c&&("{literal}"===a&&(c=!0),!0)})}),a.hooks.add("after-tokenize",function(b){a.languages["markup-templating"].tokenizePlaceholders(b,"soy")})}function qS(a){a.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},a.languages.trig=a.languages.turtle}function qT(a){a.register(qS),a.languages.sparql=a.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),a.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),a.languages.rq=a.languages.sparql}function qU(a){a.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}function qV(a){a.register(mW),a.languages.sqf=a.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),a.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:a.languages.sqf.comment}}}),delete a.languages.sqf["class-name"]}function qW(a){a.register(mW),a.languages.squirrel=a.languages.extend("clike",{comment:[a.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),a.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),a.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}function qX(a){var b;b=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/,a.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+b.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,b],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},a.languages.stan.constraint.inside.expression.inside=a.languages.stan}function qY(a){a.register(o2),a.register(pB),a.register(qp),a.languages.stata={comment:[{pattern:/(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|\s)\/\/.*|\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0}],"string-literal":{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}|[‘`']\w[^’`'\r\n]*[’`']/,inside:{punctuation:/^\$\{|\}$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},mata:{pattern:/(^[ \t]*mata[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-mata",inside:a.languages.mata},java:{pattern:/(^[ \t]*java[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-java",inside:a.languages.java},python:{pattern:/(^[ \t]*python[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-python",inside:a.languages.python},command:{pattern:/(^[ \t]*(?:\.[ \t]+)?(?:(?:bayes|bootstrap|by|bysort|capture|collect|fmm|fp|frame|jackknife|mfp|mi|nestreg|noisily|permute|quietly|rolling|simulate|statsby|stepwise|svy|version|xi)\b[^:\r\n]*:[ \t]*|(?:capture|noisily|quietly|version)[ \t]+)?)[a-zA-Z]\w*/m,lookbehind:!0,greedy:!0,alias:"keyword"},variable:/\$\w+|[‘`']\w[^’`'\r\n]*[’`']/,keyword:/\b(?:bayes|bootstrap|by|bysort|capture|clear|collect|fmm|fp|frame|if|in|jackknife|mi[ \t]+estimate|mfp|nestreg|noisily|of|permute|quietly|rolling|simulate|sort|statsby|stepwise|svy|varlist|version|xi)\b/,boolean:/\b(?:off|on)\b/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+/,function:/\b[a-z_]\w*(?=\()/i,operator:/\+\+|--|##?|[<>!=~]=?|[+\-*^&|/]/,punctuation:/[(){}[\],:]/},a.languages.stata["string-literal"].inside.interpolation.inside.expression.inside=a.languages.stata}function qZ(a){a.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}function q$(a){a.languages.supercollider={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^"\\]|\\[\s\S])*"/,lookbehind:!0,greedy:!0},char:{pattern:/\$(?:[^\\\r\n]|\\.)/,greedy:!0},symbol:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'|\\\w+/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|arg|classvar|const|nil|var|while)\b/,boolean:/\b(?:false|true)\b/,label:{pattern:/\b[a-z_]\w*(?=\s*:)/,alias:"property"},number:/\b(?:inf|pi|0x[0-9a-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(?:pi)?|\d+r[0-9a-zA-Z]+(?:\.[0-9a-zA-Z]+)?|\d+[sb]{1,4}\d*)\b/,"class-name":/\b[A-Z]\w*\b/,operator:/\.{2,3}|#(?![[{])|&&|[!=]==?|\+>>|\+{1,3}|-[->]|=>|>>|\?\?|@\|?@|\|(?:@|[!=]=)?\||!\?|<[!=>]|\*{1,2}|<{2,3}\*?|[-!%&/<>?@|=`]/,punctuation:/[{}()[\].:,;]|#[[{]/},a.languages.sclang=a.languages.supercollider}function q_(a){a.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*")+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},a.languages.swift["string-literal"].forEach(function(b){b.inside.interpolation.inside=a.languages.swift})}function q0(a){var b,c;b={pattern:/^[;#].*/m,greedy:!0},c=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source,a.languages.systemd={comment:b,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+c+'|(?=[^"\r\n]))(?:'+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+c)+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:b,quoted:{pattern:RegExp(/(^|\s)/.source+c),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}}function q1(a){function b(a,b,c){return{pattern:RegExp("<#"+a+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+a+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:b,alias:c}}}}a.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:function(c){var d=a.languages[c],e="language-"+c;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:b("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:b("=",d,e),"class-feature":b("\\+",d,e),standard:b("",d,e)}}}}})}function q2(a){a.register(nk),a.register(q1),a.languages.t4=a.languages["t4-cs"]=a.languages["t4-templating"].createT4("csharp")}function q3(a){a.register(nt),a.languages.vbnet=a.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}function q4(a){a.register(q1),a.register(q3),a.languages["t4-vb"]=a.languages["t4-templating"].createT4("vbnet")}function q5(a){a.register(ng),a.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:a.languages.yaml,alias:"language-yaml"}}}function q6(a){a.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}function q7(a){a.register(mW),a.register(n3),a.languages.tt2=a.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),a.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),a.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),a.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete a.languages.tt2.string,a.hooks.add("before-tokenize",function(b){a.languages["markup-templating"].buildPlaceholders(b,"tt2",/\[%[\s\S]+?%\]/g)}),a.hooks.add("after-tokenize",function(b){a.languages["markup-templating"].tokenizePlaceholders(b,"tt2")})}function q8(a){var b=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function c(a){return a.replace(/__/g,function(){return b})}a.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(c(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(c(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}}function q9(a){var b;a.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/},b=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source,a.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+b+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+b+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(b),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:a.languages.tremor}}},string:/[\s\S]+/}},a.languages.troy=a.languages.tremor,a.languages.trickle=a.languages.tremor}function ra(a){var b;b=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/,a.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern:/<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:b}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:b,number:/^\d+$/,punctuation:/[,|:]/}},keyword:b,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},a.languages.tsconfig=a.languages.typoscript}function rb(a){a.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},a.languages.uc=a.languages.uscript=a.languages.unrealscript}function rc(a){a.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}function rd(a){var b;a.register(mW),b={pattern:/[\s\S]+/,inside:null},a.languages.v=a.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":b}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),b.inside=a.languages.v,a.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),a.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),a.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:a.languages.v.generic.inside}}}})}function re(a){a.register(mW),a.languages.vala=a.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),a.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:a.languages.vala}},string:/[\s\S]+/}}}),a.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:a.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}function rf(a){var b;a.register(mU),a.languages.velocity=a.languages.extend("markup",{}),(b={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/}).variable.inside={string:b.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:b.number,boolean:b.boolean,punctuation:b.punctuation},a.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:b}},variable:b.variable}),a.languages.velocity.tag.inside["attr-value"].inside.rest=a.languages.velocity}function rg(a){a.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}function rh(a){a.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|private|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|view|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}function ri(a){a.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}function rj(a){a.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},a.languages.vb=a.languages["visual-basic"],a.languages.vba=a.languages["visual-basic"]}function rk(a){a.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}function rl(a){a.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\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|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\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/,punctuation:/[()]/}}function rm(a){var b=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,c="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+b+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,d={};for(var e in a.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+b),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:d},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+c),lookbehind:!0,inside:d},{pattern:RegExp("("+/\bcallback\s+/.source+b+/\s*=\s*/.source+")"+c),lookbehind:!0,inside:d},{pattern:RegExp(/(\btypedef\b\s*)/.source+c),lookbehind:!0,inside:d},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+b),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+b),lookbehind:!0},RegExp(b+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+b),lookbehind:!0},{pattern:RegExp(c+"(?="+/\s*(?:\.{3}\s*)?/.source+b+/\s*[(),;=]/.source+")"),inside:d}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/},a.languages["web-idl"])"class-name"!==e&&(d[e]=a.languages["web-idl"][e]);a.languages.webidl=a.languages["web-idl"]}function rn(a){a.languages.wgsl={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"builtin-attribute":{pattern:/(@)builtin\(.*?\)/,lookbehind:!0,inside:{attribute:{pattern:/^builtin/,alias:"attr-name"},punctuation:/[(),]/,"built-in-values":{pattern:/\b(?:frag_depth|front_facing|global_invocation_id|instance_index|local_invocation_id|local_invocation_index|num_workgroups|position|sample_index|sample_mask|vertex_index|workgroup_id)\b/,alias:"attr-value"}}},attributes:{pattern:/(@)(?:align|binding|compute|const|fragment|group|id|interpolate|invariant|location|size|vertex|workgroup_size)/i,lookbehind:!0,alias:"attr-name"},functions:{pattern:/\b(fn\s+)[_a-zA-Z]\w*(?=[(<])/,lookbehind:!0,alias:"function"},keyword:/\b(?:bitcast|break|case|const|continue|continuing|default|discard|else|enable|fallthrough|fn|for|function|if|let|loop|private|return|storage|struct|switch|type|uniform|var|while|workgroup)\b/,builtin:/\b(?:abs|acos|acosh|all|any|array|asin|asinh|atan|atan2|atanh|atomic|atomicAdd|atomicAnd|atomicCompareExchangeWeak|atomicExchange|atomicLoad|atomicMax|atomicMin|atomicOr|atomicStore|atomicSub|atomicXor|bool|ceil|clamp|cos|cosh|countLeadingZeros|countOneBits|countTrailingZeros|cross|degrees|determinant|distance|dot|dpdx|dpdxCoarse|dpdxFine|dpdy|dpdyCoarse|dpdyFine|exp|exp2|extractBits|f32|f64|faceForward|firstLeadingBit|floor|fma|fract|frexp|fwidth|fwidthCoarse|fwidthFine|i32|i64|insertBits|inverseSqrt|ldexp|length|log|log2|mat[2-4]x[2-4]|max|min|mix|modf|normalize|override|pack2x16float|pack2x16snorm|pack2x16unorm|pack4x8snorm|pack4x8unorm|pow|ptr|quantizeToF16|radians|reflect|refract|reverseBits|round|sampler|sampler_comparison|select|shiftLeft|shiftRight|sign|sin|sinh|smoothstep|sqrt|staticAssert|step|storageBarrier|tan|tanh|textureDimensions|textureGather|textureGatherCompare|textureLoad|textureNumLayers|textureNumLevels|textureNumSamples|textureSample|textureSampleBias|textureSampleCompare|textureSampleCompareLevel|textureSampleGrad|textureSampleLevel|textureStore|texture_1d|texture_2d|texture_2d_array|texture_3d|texture_cube|texture_cube_array|texture_depth_2d|texture_depth_2d_array|texture_depth_cube|texture_depth_cube_array|texture_depth_multisampled_2d|texture_multisampled_2d|texture_storage_1d|texture_storage_2d|texture_storage_2d_array|texture_storage_3d|transpose|trunc|u32|u64|unpack2x16float|unpack2x16snorm|unpack2x16unorm|unpack4x8snorm|unpack4x8unorm|vec[2-4]|workgroupBarrier)\b/,"function-calls":{pattern:/\b[_a-z]\w*(?=\()/i,alias:"function"},"class-name":/\b(?:[A-Z][A-Za-z0-9]*)\b/,"bool-literal":{pattern:/\b(?:false|true)\b/,alias:"boolean"},"hex-int-literal":{pattern:/\b0[xX][0-9a-fA-F]+[iu]?\b(?![.pP])/,alias:"number"},"hex-float-literal":{pattern:/\b0[xX][0-9a-fA-F]*(?:\.[0-9a-fA-F]*)?(?:[pP][+-]?\d+[fh]?)?/,alias:"number"},"decimal-float-literal":[{pattern:/\d*\.\d+(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+\.\d*(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+[eE](?:\+|-)?\d+[fh]?/,alias:"number"},{pattern:/\b\d+[fh]\b/,alias:"number"}],"int-literal":{pattern:/\b\d+[iu]?\b/,alias:"number"},operator:[{pattern:/(?:\^|~|\|(?!\|)|\|\||&&|<<|>>|!)(?!=)/},{pattern:/&(?![&=])/},{pattern:/(?:\+=|-=|\*=|\/=|%=|\^=|&=|\|=|<<=|>>=)/},{pattern:/(^|[^<>=!])=(?![=>])/,lookbehind:!0},{pattern:/(?:==|!=|<=|\+\+|--|(^|[^=])>=)/,lookbehind:!0},{pattern:/(?:(?:[+%]|(?:\*(?!\w)))(?!=))|(?:-(?!>))|(?:\/(?!\/))/},{pattern:/->/}],punctuation:/[@(){}[\],;<>:.]/}}function ro(a){a.register(mU),a.languages.wiki=a.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:a.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),a.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:a.languages.markup.tag.inside}}}})}function rp(a){a.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},a.languages.mathematica=a.languages.wolfram,a.languages.wl=a.languages.wolfram,a.languages.nb=a.languages.wolfram}function rq(a){a.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},a.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:a.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}function rr(a){a.register(mU),a.languages.xeora=a.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),a.languages.insertBefore("inside","punctuation",{variable:a.languages.xeora["function-inline"].inside.variable},a.languages.xeora["function-block"]),a.languages.xeoracube=a.languages.xeora}function rs(a){a.register(mU);function b(b,c){a.languages[b]&&a.languages.insertBefore(b,"comment",{"doc-comment":c})}var c=a.languages.markup.tag,d={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:c}};b("csharp",d),b("fsharp",d),b("vbnet",{pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:c}})}function rt(a){a.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}function ru(a){var b,c;a.register(mU),a.languages.xquery=a.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),a.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,a.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,a.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,a.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:a.languages.xquery,alias:"language-xquery"},b=function(a){return"string"==typeof a?a:"string"==typeof a.content?a.content:a.content.map(b).join("")},c=function(d){for(var e=[],f=0;f<d.length;f++){var g=d[f],h=!1;if("string"!=typeof g&&("tag"===g.type&&g.content[0]&&"tag"===g.content[0].type?"</"===g.content[0].content[0].content?e.length>0&&e[e.length-1].tagName===b(g.content[0].content[1])&&e.pop():"/>"===g.content[g.content.length-1].content||e.push({tagName:b(g.content[0].content[1]),openedBraces:0}):!(e.length>0)||"punctuation"!==g.type||"{"!==g.content||d[f+1]&&"punctuation"===d[f+1].type&&"{"===d[f+1].content||d[f-1]&&"plain-text"===d[f-1].type&&"{"===d[f-1].content?e.length>0&&e[e.length-1].openedBraces>0&&"punctuation"===g.type&&"}"===g.content?e[e.length-1].openedBraces--:"comment"!==g.type&&(h=!0):e[e.length-1].openedBraces++),(h||"string"==typeof g)&&e.length>0&&0===e[e.length-1].openedBraces){var i=b(g);f<d.length-1&&("string"==typeof d[f+1]||"plain-text"===d[f+1].type)&&(i+=b(d[f+1]),d.splice(f+1,1)),f>0&&("string"==typeof d[f-1]||"plain-text"===d[f-1].type)&&(i=b(d[f-1])+i,d.splice(f-1,1),f--),/^\s+$/.test(i)?d[f]=i:d[f]=new a.Token("plain-text",i,null,i)}g.content&&"string"!=typeof g.content&&c(g.content)}},a.hooks.add("after-tokenize",function(a){"xquery"===a.language&&c(a.tokens)})}function rv(a){a.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}function rw(a){!function(a){function b(a){return function(){return a}}var c=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,d="\\b(?!"+c.source+")(?!\\d)\\w+\\b",e=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,f="(?!\\s)(?:!?\\s*(?:"+/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,b(e))+"\\s*)*"+/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,b(d))+")+";a.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?[=;,)])|<TYPE>(?=\s*(?:<ALIGN>\s*)?\{)/.source.replace(/<TYPE>/g,b(f)).replace(/<ALIGN>/g,b(e))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,b(f)).replace(/<ALIGN>/g,b(e))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:c,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},a.languages.zig["class-name"].forEach(function(b){null===b.inside&&(b.inside=a.languages.zig)})}(a)}mU.displayName="markup",mU.aliases=["atom","html","mathml","rss","ssml","svg","xml"],mV.displayName="css",mV.aliases=[],mW.displayName="clike",mW.aliases=[],mX.displayName="regex",mX.aliases=[],mY.displayName="javascript",mY.aliases=["js"],mZ.displayName="abap",mZ.aliases=[],m$.displayName="abnf",m$.aliases=[],m_.displayName="actionscript",m_.aliases=[],m0.displayName="ada",m0.aliases=[],m1.displayName="agda",m1.aliases=[],m2.displayName="al",m2.aliases=[],m3.displayName="antlr4",m3.aliases=["g4"],m4.displayName="apacheconf",m4.aliases=[],m5.displayName="sql",m5.aliases=[],m6.displayName="apex",m6.aliases=[],m7.displayName="apl",m7.aliases=[],m8.displayName="applescript",m8.aliases=[],m9.displayName="aql",m9.aliases=[],na.displayName="c",na.aliases=[],nb.displayName="cpp",nb.aliases=[],nc.displayName="arduino",nc.aliases=["ino"],nd.displayName="arff",nd.aliases=[],ne.displayName="armasm",ne.aliases=["arm-asm"],nf.displayName="bash",nf.aliases=["sh","shell"],ng.displayName="yaml",ng.aliases=["yml"],nh.displayName="markdown",nh.aliases=["md"],ni.displayName="arturo",ni.aliases=["art"],nj.displayName="asciidoc",nj.aliases=["adoc"],nk.displayName="csharp",nk.aliases=["cs","dotnet"],nl.displayName="aspnet",nl.aliases=[],nm.displayName="asm6502",nm.aliases=[],nn.displayName="asmatmel",nn.aliases=[],no.displayName="autohotkey",no.aliases=[],np.displayName="autoit",np.aliases=[],nq.displayName="avisynth",nq.aliases=["avs"],nr.displayName="avro-idl",nr.aliases=["avdl"],ns.displayName="awk",ns.aliases=["gawk"],nt.displayName="basic",nt.aliases=[],nu.displayName="batch",nu.aliases=[],nv.displayName="bbcode",nv.aliases=["shortcode"],nw.displayName="bbj",nw.aliases=[],nx.displayName="bicep",nx.aliases=[],ny.displayName="birb",ny.aliases=[],nz.displayName="bison",nz.aliases=[],nA.displayName="bnf",nA.aliases=["rbnf"],nB.displayName="bqn",nB.aliases=[],nC.displayName="brainfuck",nC.aliases=[],nD.displayName="brightscript",nD.aliases=[],nE.displayName="bro",nE.aliases=[],nF.displayName="bsl",nF.aliases=["oscript"],nG.displayName="cfscript",nG.aliases=["cfc"],nH.displayName="chaiscript",nH.aliases=[],nI.displayName="cil",nI.aliases=[],nJ.displayName="cilkc",nJ.aliases=["cilk-c"],nK.displayName="cilkcpp",nK.aliases=["cilk","cilk-cpp"],nL.displayName="clojure",nL.aliases=[],nM.displayName="cmake",nM.aliases=[],nN.displayName="cobol",nN.aliases=[],nO.displayName="coffeescript",nO.aliases=["coffee"],nP.displayName="concurnas",nP.aliases=["conc"],nQ.displayName="csp",nQ.aliases=[],nR.displayName="cooklang",nR.aliases=[],nS.displayName="coq",nS.aliases=[],nT.displayName="ruby",nT.aliases=["rb"],nU.displayName="crystal",nU.aliases=[],nV.displayName="css-extras",nV.aliases=[],nW.displayName="csv",nW.aliases=[],nX.displayName="cue",nX.aliases=[],nY.displayName="cypher",nY.aliases=[],nZ.displayName="d",nZ.aliases=[],n$.displayName="dart",n$.aliases=[],n_.displayName="dataweave",n_.aliases=[],n0.displayName="dax",n0.aliases=[],n1.displayName="dhall",n1.aliases=[],n2.displayName="diff",n2.aliases=[],n3.displayName="markup-templating",n3.aliases=[],n4.displayName="django",n4.aliases=["jinja2"],n5.displayName="dns-zone-file",n5.aliases=["dns-zone"],n6.displayName="docker",n6.aliases=["dockerfile"],n7.displayName="dot",n7.aliases=["gv"],n8.displayName="ebnf",n8.aliases=[],n9.displayName="editorconfig",n9.aliases=[],oa.displayName="eiffel",oa.aliases=[],ob.displayName="ejs",ob.aliases=["eta"],oc.displayName="elixir",oc.aliases=[],od.displayName="elm",od.aliases=[],oe.displayName="lua",oe.aliases=[],of.displayName="etlua",of.aliases=[],og.displayName="erb",og.aliases=[],oh.displayName="erlang",oh.aliases=[],oi.displayName="excel-formula",oi.aliases=["xls","xlsx"],oj.displayName="fsharp",oj.aliases=[],ok.displayName="factor",ok.aliases=[],ol.displayName="false",ol.aliases=[],om.displayName="firestore-security-rules",om.aliases=[],on.displayName="flow",on.aliases=[],oo.displayName="fortran",oo.aliases=[],op.displayName="ftl",op.aliases=[],oq.displayName="gml",oq.aliases=["gamemakerlanguage"],or.displayName="gap",or.aliases=[],os.displayName="gcode",os.aliases=[],ot.displayName="gdscript",ot.aliases=[],ou.displayName="gedcom",ou.aliases=[],ov.displayName="gettext",ov.aliases=["po"],ow.displayName="gherkin",ow.aliases=[],ox.displayName="git",ox.aliases=[],oy.displayName="glsl",oy.aliases=[],oz.displayName="gn",oz.aliases=["gni"],oA.displayName="linker-script",oA.aliases=["ld"],oB.displayName="go",oB.aliases=[],oC.displayName="go-module",oC.aliases=["go-mod"],oD.displayName="gradle",oD.aliases=[],oE.displayName="graphql",oE.aliases=[],oF.displayName="groovy",oF.aliases=[],oG.displayName="less",oG.aliases=[],oH.displayName="scss",oH.aliases=[],oI.displayName="textile",oI.aliases=[],oJ.displayName="haml",oJ.aliases=[],oK.displayName="handlebars",oK.aliases=["hbs","mustache"],oL.displayName="haskell",oL.aliases=["hs"],oM.displayName="haxe",oM.aliases=[],oN.displayName="hcl",oN.aliases=[],oO.displayName="hlsl",oO.aliases=[],oP.displayName="hoon",oP.aliases=[],oQ.displayName="hpkp",oQ.aliases=[],oR.displayName="hsts",oR.aliases=[],oS.displayName="json",oS.aliases=["webmanifest"],oT.displayName="uri",oT.aliases=["url"],oU.displayName="http",oU.aliases=[],oV.displayName="ichigojam",oV.aliases=[],oW.displayName="icon",oW.aliases=[],oX.displayName="icu-message-format",oX.aliases=[],oY.displayName="idris",oY.aliases=["idr"],oZ.displayName="ignore",oZ.aliases=["gitignore","hgignore","npmignore"],o$.displayName="inform7",o$.aliases=[],o_.displayName="ini",o_.aliases=[],o0.displayName="io",o0.aliases=[],o1.displayName="j",o1.aliases=[],o2.displayName="java",o2.aliases=[],o3.displayName="php",o3.aliases=[],o4.displayName="javadoclike",o4.aliases=[],o5.displayName="scala",o5.aliases=[],o6.displayName="javadoc",o6.aliases=[],o7.displayName="javastacktrace",o7.aliases=[],o8.displayName="jexl",o8.aliases=[],o9.displayName="jolie",o9.aliases=[],pa.displayName="jq",pa.aliases=[],pb.displayName="js-templates",pb.aliases=[],pc.displayName="typescript",pc.aliases=["ts"],pd.displayName="jsdoc",pd.aliases=[],pe.displayName="n4js",pe.aliases=["n4jsd"],pf.displayName="js-extras",pf.aliases=[],pg.displayName="json5",pg.aliases=[],ph.displayName="jsonp",ph.aliases=[],pi.displayName="jsstacktrace",pi.aliases=[],pj.displayName="julia",pj.aliases=[],pk.displayName="keepalived",pk.aliases=[],pl.displayName="keyman",pl.aliases=[],pm.displayName="kotlin",pm.aliases=["kt","kts"],pn.displayName="kumir",pn.aliases=["kum"],po.displayName="kusto",po.aliases=[],pp.displayName="latex",pp.aliases=["context","tex"],pq.displayName="latte",pq.aliases=[],pr.displayName="scheme",pr.aliases=[],ps.displayName="lilypond",ps.aliases=["ly"],pt.displayName="liquid",pt.aliases=[],pu.displayName="lisp",pu.aliases=["elisp","emacs","emacs-lisp"],pv.displayName="livescript",pv.aliases=[],pw.displayName="llvm",pw.aliases=[],px.displayName="log",px.aliases=[],py.displayName="lolcode",py.aliases=[],pz.displayName="magma",pz.aliases=[],pA.displayName="makefile",pA.aliases=[],pB.displayName="mata",pB.aliases=[],pC.displayName="matlab",pC.aliases=[],pD.displayName="maxscript",pD.aliases=[],pE.displayName="mel",pE.aliases=[],pF.displayName="mermaid",pF.aliases=[],pG.displayName="metafont",pG.aliases=[],pH.displayName="mizar",pH.aliases=[],pI.displayName="mongodb",pI.aliases=[],pJ.displayName="monkey",pJ.aliases=[],pK.displayName="moonscript",pK.aliases=["moon"],pL.displayName="n1ql",pL.aliases=[],pM.displayName="nand2tetris-hdl",pM.aliases=[],pN.displayName="naniscript",pN.aliases=["nani"],pO.displayName="nasm",pO.aliases=[],pP.displayName="neon",pP.aliases=[],pQ.displayName="nevod",pQ.aliases=[],pR.displayName="nginx",pR.aliases=[],pS.displayName="nim",pS.aliases=[],pT.displayName="nix",pT.aliases=[],pU.displayName="nsis",pU.aliases=[],pV.displayName="objectivec",pV.aliases=["objc"],pW.displayName="ocaml",pW.aliases=[],pX.displayName="odin",pX.aliases=[],pY.displayName="opencl",pY.aliases=[],pZ.displayName="openqasm",pZ.aliases=["qasm"],p$.displayName="oz",p$.aliases=[],p_.displayName="parigp",p_.aliases=[],p0.displayName="parser",p0.aliases=[],p1.displayName="pascal",p1.aliases=["objectpascal"],p2.displayName="pascaligo",p2.aliases=[],p3.displayName="psl",p3.aliases=[],p4.displayName="pcaxis",p4.aliases=["px"],p5.displayName="peoplecode",p5.aliases=["pcode"],p6.displayName="perl",p6.aliases=[],p7.displayName="phpdoc",p7.aliases=[],p8.displayName="php-extras",p8.aliases=[],p9.displayName="plant-uml",p9.aliases=["plantuml"],qa.displayName="plsql",qa.aliases=[],qb.displayName="powerquery",qb.aliases=["mscript","pq"],qc.displayName="powershell",qc.aliases=[],qd.displayName="processing",qd.aliases=[],qe.displayName="prolog",qe.aliases=[],qf.displayName="promql",qf.aliases=[],qg.displayName="properties",qg.aliases=[],qh.displayName="protobuf",qh.aliases=[],qi.displayName="stylus",qi.aliases=[],qj.displayName="twig",qj.aliases=[],qk.displayName="pug",qk.aliases=[],ql.displayName="puppet",ql.aliases=[],qm.displayName="pure",qm.aliases=[],qn.displayName="purebasic",qn.aliases=["pbfasm"],qo.displayName="purescript",qo.aliases=["purs"],qp.displayName="python",qp.aliases=["py"],qq.displayName="qsharp",qq.aliases=["qs"],qr.displayName="q",qr.aliases=[],qs.displayName="qml",qs.aliases=[],qt.displayName="qore",qt.aliases=[],qu.displayName="r",qu.aliases=[],qv.displayName="racket",qv.aliases=["rkt"],qw.displayName="cshtml",qw.aliases=["razor"],qx.displayName="jsx",qx.aliases=[],qy.displayName="tsx",qy.aliases=[],qz.displayName="reason",qz.aliases=[],qA.displayName="rego",qA.aliases=[],qB.displayName="renpy",qB.aliases=["rpy"],qC.displayName="rescript",qC.aliases=["res"],qD.displayName="rest",qD.aliases=[],qE.displayName="rip",qE.aliases=[],qF.displayName="roboconf",qF.aliases=[],qG.displayName="robotframework",qG.aliases=["robot"],qH.displayName="rust",qH.aliases=[],qI.displayName="sas",qI.aliases=[],qJ.displayName="sass",qJ.aliases=[],qK.displayName="shell-session",qK.aliases=["sh-session","shellsession"],qL.displayName="smali",qL.aliases=[],qM.displayName="smalltalk",qM.aliases=[],qN.displayName="smarty",qN.aliases=[],qO.displayName="sml",qO.aliases=["smlnj"],qP.displayName="solidity",qP.aliases=["sol"],qQ.displayName="solution-file",qQ.aliases=["sln"],qR.displayName="soy",qR.aliases=[],qS.displayName="turtle",qS.aliases=["trig"],qT.displayName="sparql",qT.aliases=["rq"],qU.displayName="splunk-spl",qU.aliases=[],qV.displayName="sqf",qV.aliases=[],qW.displayName="squirrel",qW.aliases=[],qX.displayName="stan",qX.aliases=[],qY.displayName="stata",qY.aliases=[],qZ.displayName="iecst",qZ.aliases=[],q$.displayName="supercollider",q$.aliases=["sclang"],q_.displayName="swift",q_.aliases=[],q0.displayName="systemd",q0.aliases=[],q1.displayName="t4-templating",q1.aliases=[],q2.displayName="t4-cs",q2.aliases=["t4"],q3.displayName="vbnet",q3.aliases=[],q4.displayName="t4-vb",q4.aliases=[],q5.displayName="tap",q5.aliases=[],q6.displayName="tcl",q6.aliases=[],q7.displayName="tt2",q7.aliases=[],q8.displayName="toml",q8.aliases=[],q9.displayName="tremor",q9.aliases=["trickle","troy"],ra.displayName="typoscript",ra.aliases=["tsconfig"],rb.displayName="unrealscript",rb.aliases=["uc","uscript"],rc.displayName="uorazor",rc.aliases=[],rd.displayName="v",rd.aliases=[],re.displayName="vala",re.aliases=[],rf.displayName="velocity",rf.aliases=[],rg.displayName="verilog",rg.aliases=[],rh.displayName="vhdl",rh.aliases=[],ri.displayName="vim",ri.aliases=[],rj.displayName="visual-basic",rj.aliases=["vb","vba"],rk.displayName="warpscript",rk.aliases=[],rl.displayName="wasm",rl.aliases=[],rm.displayName="web-idl",rm.aliases=["webidl"],rn.displayName="wgsl",rn.aliases=[],ro.displayName="wiki",ro.aliases=[],rp.displayName="wolfram",rp.aliases=["mathematica","nb","wl"],rq.displayName="wren",rq.aliases=[],rr.displayName="xeora",rr.aliases=["xeoracube"],rs.displayName="xml-doc",rs.aliases=[],rt.displayName="xojo",rt.aliases=[],ru.displayName="xquery",ru.aliases=[],rv.displayName="yang",rv.aliases=[],rw.displayName="zig",rw.aliases=[];let rx=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],ry={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function rz(a){let b="string"==typeof a?a.charCodeAt(0):a;return b>=48&&b<=57}function rA(a){let b="string"==typeof a?a.charCodeAt(0):a;return b>=97&&b<=102||b>=65&&b<=70||b>=48&&b<=57}function rB(a){let b;return(b="string"==typeof a?a.charCodeAt(0):a)>=97&&b<=122||b>=65&&b<=90||rz(a)}let rC=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];var rD=0,rE={},rF={util:{type:function(a){return Object.prototype.toString.call(a).slice(8,-1)},objId:function(a){return a.__id||Object.defineProperty(a,"__id",{value:++rD}),a.__id},clone:function a(b,c){var d,e;switch(c=c||{},rF.util.type(b)){case"Object":if(c[e=rF.util.objId(b)])return c[e];for(var f in d={},c[e]=d,b)b.hasOwnProperty(f)&&(d[f]=a(b[f],c));return d;case"Array":if(c[e=rF.util.objId(b)])return c[e];return d=[],c[e]=d,b.forEach(function(b,e){d[e]=a(b,c)}),d;default:return b}}},languages:{plain:rE,plaintext:rE,text:rE,txt:rE,extend:function(a,b){var c=rF.util.clone(rF.languages[a]);for(var d in b)c[d]=b[d];return c},insertBefore:function(a,b,c,d){var e=(d=d||rF.languages)[a],f={};for(var g in e)if(e.hasOwnProperty(g)){if(g==b)for(var h in c)c.hasOwnProperty(h)&&(f[h]=c[h]);c.hasOwnProperty(g)||(f[g]=e[g])}var i=d[a];return d[a]=f,rF.languages.DFS(rF.languages,function(b,c){c===i&&b!=a&&(this[b]=f)}),f},DFS:function a(b,c,d,e){e=e||{};var f=rF.util.objId;for(var g in b)if(b.hasOwnProperty(g)){c.call(b,g,b[g],d||g);var h=b[g],i=rF.util.type(h);"Object"!==i||e[f(h)]?"Array"!==i||e[f(h)]||(e[f(h)]=!0,a(h,c,g,e)):(e[f(h)]=!0,a(h,c,null,e))}}},plugins:{},highlight:function(a,b,c){var d={code:a,grammar:b,language:c};if(rF.hooks.run("before-tokenize",d),!d.grammar)throw Error('The language "'+d.language+'" has no grammar.');return d.tokens=rF.tokenize(d.code,d.grammar),rF.hooks.run("after-tokenize",d),rG.stringify(rF.util.encode(d.tokens),d.language)},tokenize:function(a,b){var c=b.rest;if(c){for(var d in c)b[d]=c[d];delete b.rest}var e=new rI;return rJ(e,e.head,a),function a(b,c,d,e,f,g){for(var h in d)if(d.hasOwnProperty(h)&&d[h]){var i=d[h];i=Array.isArray(i)?i:[i];for(var j=0;j<i.length;++j){if(g&&g.cause==h+","+j)return;var k=i[j],l=k.inside,m=!!k.lookbehind,n=!!k.greedy,o=k.alias;if(n&&!k.pattern.global){var p=k.pattern.toString().match(/[imsuy]*$/)[0];k.pattern=RegExp(k.pattern.source,p+"g")}for(var q=k.pattern||k,r=e.next,s=f;r!==c.tail&&(!g||!(s>=g.reach));s+=r.value.length,r=r.next){var t,u=r.value;if(c.length>b.length)return;if(!(u instanceof rG)){var v=1;if(n){if(!(t=rH(q,s,b,m))||t.index>=b.length)break;var w=t.index,x=t.index+t[0].length,y=s;for(y+=r.value.length;w>=y;)y+=(r=r.next).value.length;if(y-=r.value.length,s=y,r.value instanceof rG)continue;for(var z=r;z!==c.tail&&(y<x||"string"==typeof z.value);z=z.next)v++,y+=z.value.length;v--,u=b.slice(s,y),t.index-=s}else if(!(t=rH(q,0,u,m)))continue;var w=t.index,A=t[0],B=u.slice(0,w),C=u.slice(w+A.length),D=s+u.length;g&&D>g.reach&&(g.reach=D);var E=r.prev;if(B&&(E=rJ(c,E,B),s+=B.length),function(a,b,c){for(var d=b.next,e=0;e<c&&d!==a.tail;e++)d=d.next;b.next=d,d.prev=b,a.length-=e}(c,E,v),r=rJ(c,E,new rG(h,l?rF.tokenize(A,l):A,o,A)),C&&rJ(c,r,C),v>1){var F={cause:h+","+j,reach:D};a(b,c,d,r.prev,s,F),g&&F.reach>g.reach&&(g.reach=F.reach)}}}}}}(a,e,b,e.head,0),function(a){for(var b=[],c=a.head.next;c!==a.tail;)b.push(c.value),c=c.next;return b}(e)},hooks:{all:{},add:function(a,b){var c=rF.hooks.all;c[a]=c[a]||[],c[a].push(b)},run:function(a,b){var c=rF.hooks.all[a];if(c&&c.length)for(var d,e=0;d=c[e++];)d(b)}},Token:rG};function rG(a,b,c,d){this.type=a,this.content=b,this.alias=c,this.length=0|(d||"").length}function rH(a,b,c,d){a.lastIndex=b;var e=a.exec(c);if(e&&d&&e[1]){var f=e[1].length;e.index+=f,e[0]=e[0].slice(f)}return e}function rI(){var a={value:null,prev:null,next:null},b={value:null,prev:a,next:null};a.next=b,this.head=a,this.tail=b,this.length=0}function rJ(a,b,c){var d=b.next,e={value:c,prev:b,next:d};return b.next=e,d.prev=e,a.length++,e}function rK(){}rK.prototype=rF;let rL=new rK;rL.highlight=function(a,b){let c,d;if("string"!=typeof a)throw TypeError("Expected `string` for `value`, got `"+a+"`");if(b&&"object"==typeof b)c=b;else{if("string"!=typeof(d=b))throw TypeError("Expected `string` for `name`, got `"+d+"`");if(Object.hasOwn(rL.languages,d))c=rL.languages[d];else throw Error("Unknown language: `"+d+"` is not registered")}return{type:"root",children:rF.highlight.call(rL,a,c,d)}},rL.register=function(a){if("function"!=typeof a||!a.displayName)throw Error("Expected `function` for `syntax`, got `"+a+"`");Object.hasOwn(rL.languages,a.displayName)||a(rL)},rL.alias=function(a,b){let c,d=rL.languages,e={};for(c in"string"==typeof a?b&&(e[a]=b):e=a,e)if(Object.hasOwn(e,c)){let a=e[c],b="string"==typeof a?[a]:a,f=-1;for(;++f<b.length;)d[b[f]]=d[c]}},rL.registered=function(a){if("string"!=typeof a)throw TypeError("Expected `string` for `aliasOrLanguage`, got `"+a+"`");return Object.hasOwn(rL.languages,a)},rL.listLanguages=function(){let a,b=rL.languages,c=[];for(a in b)Object.hasOwn(b,a)&&"object"==typeof b[a]&&c.push(a);return c},rL.util.encode=function(a){return a},rL.Token.stringify=function a(b,c){if("string"==typeof b)return{type:"text",value:b};if(Array.isArray(b)){let d=[],e=-1;for(;++e<b.length;)null!==b[e]&&void 0!==b[e]&&""!==b[e]&&d.push(a(b[e],c));return d}let d={attributes:{},classes:["token",b.type],content:a(b.content,c),language:c,tag:"span",type:b.type};return b.alias&&d.classes.push(..."string"==typeof b.alias?[b.alias]:b.alias),rL.hooks.run("wrap",d),fO(d.tag+"."+d.classes.join("."),function(a){let b;for(b in a)Object.hasOwn(a,b)&&(a[b]=function(a){let b,c,d,e={},f="string"==typeof e.additional?e.additional.charCodeAt(0):e.additional,g=[],h=0,i=-1,j="";e.position&&("start"in e.position||"indent"in e.position?(c=e.position.indent,b=e.position.start):b=e.position);let k=(b?b.line:0)||1,l=(b?b.column:0)||1,m=p();for(h--;++h<=a.length;)if(10===d&&(l=(c?c[i]:0)||1),38===(d=a.charCodeAt(h))){let b,c=a.charCodeAt(h+1);if(9===c||10===c||12===c||32===c||38===c||60===c||Number.isNaN(c)||f&&c===f){j+=String.fromCharCode(d),l++;continue}let i=h+1,k=i,s=i;if(35===c){s=++k;let c=a.charCodeAt(s);88===c||120===c?(b="hexadecimal",s=++k):b="decimal"}else b="named";let t="",u="",v="",w="named"===b?rB:"decimal"===b?rz:rA;for(s--;++s<=a.length;){let c=a.charCodeAt(s);if(!w(c))break;v+=String.fromCharCode(c),"named"===b&&rx.includes(v)&&(t=v,u=el(v))}let x=59===a.charCodeAt(s);if(x){s++;let a="named"===b&&el(v);a&&(t=v,u=a)}let y=1+s-i,z="";if(x||!1!==e.nonTerminated)if(v)if("named"===b){if(x&&!u)q(5,1);else if(t!==v&&(y=1+(s=k+t.length)-k,x=!1),!x){let b=t?1:3;if(e.attribute){let c=a.charCodeAt(s);61===c?(q(b,y),u=""):rB(c)?u="":q(b,y)}else q(b,y)}z=u}else{var n,o;x||q(2,y);let a=Number.parseInt(v,"hexadecimal"===b?16:10);if((n=a)>=55296&&n<=57343||n>1114111)q(7,y),z=String.fromCharCode(65533);else if(a in ry)q(6,y),z=ry[a];else{let b="";((o=a)>=1&&o<=8||11===o||o>=13&&o<=31||o>=127&&o<=159||o>=64976&&o<=65007||(65535&o)==65535||(65535&o)==65534)&&q(6,y),a>65535&&(a-=65536,b+=String.fromCharCode(a>>>10|55296),a=56320|1023&a),z=b+String.fromCharCode(a)}}else"named"!==b&&q(4,y);if(z){r(),m=p(),h=s-1,l+=s-i+1,g.push(z);let b=p();b.offset++,e.reference&&e.reference.call(e.referenceContext||void 0,z,{start:m,end:b},a.slice(i-1,s)),m=b}else v=a.slice(i-1,s),j+=v,l+=v.length,h=s-1}else 10===d&&(k++,i++,l=0),Number.isNaN(d)?r():(j+=String.fromCharCode(d),l++);return g.join("");function p(){return{line:k,column:l,offset:h+((b?b.offset:0)||0)}}function q(a,b){let c;e.warning&&(c=p(),c.column+=b,c.offset+=b,e.warning.call(e.warningContext||void 0,rC[a],c,a))}function r(){j&&(g.push(j),e.text&&e.text.call(e.textContext||void 0,j,{start:m,end:p()}),j="")}}(a[b]));return a}(d.attributes),d.content)},rL.register(mU),rL.register(mV),rL.register(mW),rL.register(mX),rL.register(mY),rL.register(mZ),rL.register(m$),rL.register(m_),rL.register(m0),rL.register(m1),rL.register(m2),rL.register(m3),rL.register(m4),rL.register(m5),rL.register(m6),rL.register(m7),rL.register(m8),rL.register(m9),rL.register(na),rL.register(nb),rL.register(nc),rL.register(nd),rL.register(ne),rL.register(nf),rL.register(ng),rL.register(nh),rL.register(ni),rL.register(nj),rL.register(nk),rL.register(nl),rL.register(nm),rL.register(nn),rL.register(no),rL.register(np),rL.register(nq),rL.register(nr),rL.register(ns),rL.register(nt),rL.register(nu),rL.register(nv),rL.register(nw),rL.register(nx),rL.register(ny),rL.register(nz),rL.register(nA),rL.register(nB),rL.register(nC),rL.register(nD),rL.register(nE),rL.register(nF),rL.register(nG),rL.register(nH),rL.register(nI),rL.register(nJ),rL.register(nK),rL.register(nL),rL.register(nM),rL.register(nN),rL.register(nO),rL.register(nP),rL.register(nQ),rL.register(nR),rL.register(nS),rL.register(nT),rL.register(nU),rL.register(nV),rL.register(nW),rL.register(nX),rL.register(nY),rL.register(nZ),rL.register(n$),rL.register(n_),rL.register(n0),rL.register(n1),rL.register(n2),rL.register(n3),rL.register(n4),rL.register(n5),rL.register(n6),rL.register(n7),rL.register(n8),rL.register(n9),rL.register(oa),rL.register(ob),rL.register(oc),rL.register(od),rL.register(oe),rL.register(of),rL.register(og),rL.register(oh),rL.register(oi),rL.register(oj),rL.register(ok),rL.register(ol),rL.register(om),rL.register(on),rL.register(oo),rL.register(op),rL.register(oq),rL.register(or),rL.register(os),rL.register(ot),rL.register(ou),rL.register(ov),rL.register(ow),rL.register(ox),rL.register(oy),rL.register(oz),rL.register(oA),rL.register(oB),rL.register(oC),rL.register(oD),rL.register(oE),rL.register(oF),rL.register(oG),rL.register(oH),rL.register(oI),rL.register(oJ),rL.register(oK),rL.register(oL),rL.register(oM),rL.register(oN),rL.register(oO),rL.register(oP),rL.register(oQ),rL.register(oR),rL.register(oS),rL.register(oT),rL.register(oU),rL.register(oV),rL.register(oW),rL.register(oX),rL.register(oY),rL.register(oZ),rL.register(o$),rL.register(o_),rL.register(o0),rL.register(o1),rL.register(o2),rL.register(o3),rL.register(o4),rL.register(o5),rL.register(o6),rL.register(o7),rL.register(o8),rL.register(o9),rL.register(pa),rL.register(pb),rL.register(pc),rL.register(pd),rL.register(pe),rL.register(pf),rL.register(pg),rL.register(ph),rL.register(pi),rL.register(pj),rL.register(pk),rL.register(pl),rL.register(pm),rL.register(pn),rL.register(po),rL.register(pp),rL.register(pq),rL.register(pr),rL.register(ps),rL.register(pt),rL.register(pu),rL.register(pv),rL.register(pw),rL.register(px),rL.register(py),rL.register(pz),rL.register(pA),rL.register(pB),rL.register(pC),rL.register(pD),rL.register(pE),rL.register(pF),rL.register(pG),rL.register(pH),rL.register(pI),rL.register(pJ),rL.register(pK),rL.register(pL),rL.register(pM),rL.register(pN),rL.register(pO),rL.register(pP),rL.register(pQ),rL.register(pR),rL.register(pS),rL.register(pT),rL.register(pU),rL.register(pV),rL.register(pW),rL.register(pX),rL.register(pY),rL.register(pZ),rL.register(p$),rL.register(p_),rL.register(p0),rL.register(p1),rL.register(p2),rL.register(p3),rL.register(p4),rL.register(p5),rL.register(p6),rL.register(p7),rL.register(p8),rL.register(p9),rL.register(qa),rL.register(qb),rL.register(qc),rL.register(qd),rL.register(qe),rL.register(qf),rL.register(qg),rL.register(qh),rL.register(qi),rL.register(qj),rL.register(qk),rL.register(ql),rL.register(qm),rL.register(qn),rL.register(qo),rL.register(qp),rL.register(qq),rL.register(qr),rL.register(qs),rL.register(qt),rL.register(qu),rL.register(qv),rL.register(qw),rL.register(qx),rL.register(qy),rL.register(qz),rL.register(qA),rL.register(qB),rL.register(qC),rL.register(qD),rL.register(qE),rL.register(qF),rL.register(qG),rL.register(qH),rL.register(qI),rL.register(qJ),rL.register(qK),rL.register(qL),rL.register(qM),rL.register(qN),rL.register(qO),rL.register(qP),rL.register(qQ),rL.register(qR),rL.register(qS),rL.register(qT),rL.register(qU),rL.register(qV),rL.register(qW),rL.register(qX),rL.register(qY),rL.register(qZ),rL.register(q$),rL.register(q_),rL.register(q0),rL.register(q1),rL.register(q2),rL.register(q3),rL.register(q4),rL.register(q5),rL.register(q6),rL.register(q7),rL.register(q8),rL.register(q9),rL.register(ra),rL.register(rb),rL.register(rc),rL.register(rd),rL.register(re),rL.register(rf),rL.register(rg),rL.register(rh),rL.register(ri),rL.register(rj),rL.register(rk),rL.register(rl),rL.register(rm),rL.register(rn),rL.register(ro),rL.register(rp),rL.register(rq),rL.register(rr),rL.register(rs),rL.register(rt),rL.register(ru),rL.register(rv),rL.register(rw);var rM=(zg={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}},function(a){var b,c,d=a.language,e=a.children,f=a.style,g=void 0===f?zg:f,h=a.customStyle,i=void 0===h?{}:h,j=a.codeTagProps,k=void 0===j?{className:d?"language-".concat(d):void 0,style:mM(mM({},g['code[class*="language-"]']),g['code[class*="language-'.concat(d,'"]')])}:j,l=a.useInlineStyles,m=void 0===l||l,n=a.showLineNumbers,o=void 0!==n&&n,p=a.showInlineLineNumbers,q=void 0===p||p,r=a.startingLineNumber,s=void 0===r?1:r,t=a.lineNumberContainerStyle,v=a.lineNumberStyle,w=void 0===v?{}:v,x=a.wrapLines,y=a.wrapLongLines,z=void 0!==y&&y,A=a.lineProps,B=a.renderer,C=a.PreTag,D=void 0===C?"pre":C,E=a.CodeTag,F=void 0===E?"code":E,G=a.code,H=void 0===G?(Array.isArray(e)?e[0]:e)||"":G,I=a.astGenerator,J=mz()(a,mK);I=I||rL;var K=o?u().createElement(mO,{containerStyle:t,codeStyle:k.style||{},numberStyle:w,startingLineNumber:s,codeString:H}):null,L=g.hljs||g['pre[class*="language-"]']||{backgroundColor:"#fff"},M=mT(I)?"hljs":"prismjs",N=m?Object.assign({},J,{style:Object.assign({},L,i)}):Object.assign({},J,{className:J.className?"".concat(M," ").concat(J.className):M,style:Object.assign({},i)});if(z?k.style=mM({whiteSpace:"pre-wrap"},k.style):k.style=mM({whiteSpace:"pre"},k.style),!I)return u().createElement(D,N,K,u().createElement(F,k,H));(void 0===x&&B||z)&&(x=!0),B=B||mS;var O=[{type:"text",value:H}],P=function(a){var b=a.astGenerator,c=a.language,d=a.code,e=a.defaultCodeValue;if(mT(b)){var f=-1!==b.listLanguages().indexOf(c);return"text"===c?{value:e,language:"text"}:f?b.highlight(c,d):b.highlightAuto(d)}try{return c&&"text"!==c?{value:b.highlight(d,c)}:{value:e}}catch(a){return{value:e}}}({astGenerator:I,language:d,code:H,defaultCodeValue:O});null===P.language&&(P.value=O);var Q=s+(null!=(b=null==(c=H.match(/\n/g))?void 0:c.length)?b:0),R=function(a,b,c,d,e,f,g,h,i){var j,k=function a(b){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];void 0===b.length&&(b=[b]);for(var e=0;e<b.length;e++){var f=b[e];if("text"===f.type)d.push(mR({children:[f],className:mB()(new Set(c))}));else if(f.children){var g,h=c.concat((null==(g=f.properties)?void 0:g.className)||[]);a(f.children,h).forEach(function(a){return d.push(a)})}}return d}(a.value),l=[],m=-1,n=0;function o(a,f){var j=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return b||j.length>0?function(a,f){var j=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return mR({children:a,lineNumber:f,lineNumberStyle:h,largestLineNumber:g,showInlineLineNumbers:e,lineProps:c,className:j,showLineNumbers:d,wrapLongLines:i,wrapLines:b})}(a,f,j):function(a,b){if(d&&b&&e){var c=mQ(h,b,g);a.unshift(mP(b,c))}return a}(a,f)}for(;n<k.length;)!function(){var a=k[n],b=a.children[0].value;if(b.match(mN)){var c=b.split("\n");c.forEach(function(b,e){var g=d&&l.length+f,h={type:"text",value:"".concat(b,"\n")};if(0===e){var i=o(k.slice(m+1,n).concat(mR({children:[h],className:a.properties.className})),g);l.push(i)}else if(e===c.length-1){var j=k[n+1]&&k[n+1].children&&k[n+1].children[0],p={type:"text",value:"".concat(b)};if(j){var q=mR({children:[p],className:a.properties.className});k.splice(n+1,0,q)}else{var r=o([p],g,a.properties.className);l.push(r)}}else{var s=o([h],g,a.properties.className);l.push(s)}}),m=n}n++}();if(m!==k.length-1){var p=k.slice(m+1,k.length);if(p&&p.length){var q=o(p,d&&l.length+f);l.push(q)}}return b?l:(j=[]).concat.apply(j,l)}(P,x,void 0===A?{}:A,o,q,s,Q,w,z);return u().createElement(D,N,u().createElement(F,k,!q&&K,B({rows:R,stylesheet:g,useInlineStyles:m})))});function rN({code:a,isStreaming:b,defaultPreview:c=!1}){let{isDark:d}=mw(),{t:e}=(0,G.s)(),[f,g]=(0,t.useState)(c),[h,i]=(0,t.useState)(null),[j,k]=(0,t.useState)(!1),l=(0,t.useRef)(null),m=`${d?"dark":"light"}
|
|
5
|
-
${a}`,n=f&&!b,o=(0,t.useMemo)(()=>(0,s.jsx)("button",{type:"button",onClick:()=>g(a=>!a),disabled:b,title:b?e("i18n.previewAfterStreaming"):n?e("i18n.showMermaidSource"):e("i18n.previewMermaid"),className:["markdown-code-action",n?"is-active":""].filter(Boolean).join(" "),children:n?e("i18n.source"):e("i18n.preview")}),[b,n,e]);if(!n)return(0,s.jsx)(rP,{code:a,lang:"mermaid",headerAction:o,isStreaming:b});let p=h?.key===m&&"error"===h.status?(0,s.jsx)("div",{className:"mermaid-block mermaid-block-error",children:e("i18n.invalidMermaid")}):h?.key!==m||"ready"!==h.status?(0,s.jsx)("div",{className:"mermaid-block mermaid-block-loading","aria-label":e("i18n.renderingMermaid")}):(0,s.jsxs)(s.Fragment,{children:[!j&&(0,s.jsx)("button",{ref:l,type:"button",className:"mermaid-block mermaid-preview-button",title:e("i18n.openMermaidViewer"),"aria-label":e("i18n.openMermaidViewer"),onClick:()=>k(!0),dangerouslySetInnerHTML:{__html:h.svg}}),j&&(0,s.jsx)(rO,{svg:h.svg,onClose:()=>k(!1)})]});return(0,s.jsxs)("div",{className:"markdown-code-block",children:[(0,s.jsxs)("div",{className:"markdown-code-header",children:[(0,s.jsx)("span",{className:"markdown-code-lang",children:"mermaid"}),(0,s.jsxs)("div",{className:"markdown-code-actions",children:[h?.key===m&&"ready"===h.status&&(0,s.jsx)("button",{type:"button",className:"markdown-code-action",title:`${e("i18n.downloadFile")} (SVG)`,"aria-label":`${e("i18n.downloadFile")} (SVG)`,onClick:()=>{let a,b,c,d=l.current?.querySelector("svg");d&&(a=new XMLSerializer().serializeToString(d),b=URL.createObjectURL(new Blob([a],{type:"image/svg+xml;charset=utf-8"})),(c=document.createElement("a")).href=b,c.download="mermaid-diagram.svg",c.click(),setTimeout(()=>URL.revokeObjectURL(b),0))},children:"SVG"}),o]})]}),p]})}function rO({svg:a,onClose:b}){let{t:c}=(0,G.s)(),d=(0,t.useRef)(null),[e,f]=(0,t.useState)(1);return(0,s.jsx)("dialog",{ref:d,className:"mermaid-zoom-dialog","aria-label":c("i18n.mermaidViewer"),onCancel:a=>{a.preventDefault(),a.stopPropagation(),b()},onKeyDown:a=>{"Escape"===a.key&&(a.preventDefault(),a.stopPropagation(),b())},children:(0,s.jsxs)("div",{className:"mermaid-zoom-layout",children:[(0,s.jsxs)("div",{className:"mermaid-zoom-toolbar",children:[(0,s.jsx)("span",{className:"mermaid-zoom-title",children:c("i18n.mermaidDiagram")}),(0,s.jsxs)("div",{className:"mermaid-zoom-actions",children:[(0,s.jsxs)("div",{className:"mermaid-zoom-stepper",children:[(0,s.jsx)("button",{type:"button",onClick:()=>f(a=>Math.max(.5,a-.25)),disabled:e<=.5,title:c("i18n.zoomOut"),"aria-label":c("i18n.zoomOut"),children:(0,s.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M5 12h14"})})}),(0,s.jsxs)("span",{className:"mermaid-zoom-value",children:[Math.round(100*e),"%"]}),(0,s.jsx)("button",{type:"button",onClick:()=>f(a=>Math.min(3,a+.25)),disabled:e>=3,title:c("i18n.zoomIn"),"aria-label":c("i18n.zoomIn"),children:(0,s.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M12 5v14M5 12h14"})})})]}),(0,s.jsx)("button",{type:"button",className:"mermaid-zoom-icon-button",onClick:()=>f(1),title:c("i18n.fitToWidth"),"aria-label":c("i18n.fitToWidth"),children:(0,s.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M8 3H3v5M16 3h5v5M8 21H3v-5M16 21h5v-5"})})}),(0,s.jsx)("button",{type:"button",className:"mermaid-zoom-icon-button",onClick:b,title:c("i18n.close"),"aria-label":c("i18n.close"),children:(0,s.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M6 6l12 12M18 6 6 18"})})})]})]}),(0,s.jsx)("div",{className:"mermaid-zoom-viewport",onClick:a=>{a.target===a.currentTarget&&b()},children:(0,s.jsx)("div",{className:"mermaid-zoom-canvas",style:{width:`${100*e}%`},dangerouslySetInnerHTML:{__html:a}})})]})})}rM.supportedLanguages=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","armasm","arturo","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","awk","bash","basic","batch","bbcode","bbj","bicep","birb","bison","bnf","bqn","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","cilkc","cilkcpp","clike","clojure","cmake","cobol","coffeescript","concurnas","cooklang","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cue","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gettext","gherkin","git","glsl","gml","gn","go-module","go","gradle","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","linker-script","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","mata","matlab","maxscript","mel","mermaid","metafont","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","odin","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plant-uml","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rescript","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stata","stylus","supercollider","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wgsl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"];let rP=(0,t.memo)(function({code:a,lang:b,headerAction:c,isStreaming:d}){let{isDark:e}=mw(),{t:f}=(0,G.s)(),[g,h]=(0,t.useState)(!1);return(0,s.jsxs)("div",{className:"markdown-code-block",children:[(0,s.jsxs)("div",{className:"markdown-code-header",children:[(0,s.jsx)("span",{className:"markdown-code-lang",children:b||"text"}),(0,s.jsxs)("div",{className:"markdown-code-actions",children:[c,(0,s.jsxs)("button",{type:"button",onClick:()=>{mx(a).then(()=>{h(!0),setTimeout(()=>h(!1),1500)})},className:"markdown-code-action",title:f(g?"i18n.copied":"i18n.copy"),"aria-label":f(g?"i18n.copied":"i18n.copy"),children:[g?(0,s.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,s.jsx)("polyline",{points:"20 6 9 17 4 12"})}):(0,s.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),(0,s.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),(0,s.jsx)("span",{children:f(g?"i18n.copied":"i18n.copy")})]})]})]}),d?(0,s.jsx)("pre",{style:{margin:0,padding:"6px 10px",fontSize:"calc(13px + var(--chat-font-size-offset, 0px))",lineHeight:1.54,overflowX:"auto",scrollbarWidth:"thin",border:"none",borderRadius:0,background:"transparent",backgroundColor:"transparent"},children:(0,s.jsx)("code",{style:{fontFamily:"var(--font-mono)"},children:a})}):(0,s.jsx)(rM,{language:b||"text",style:e?mn.xJ:mn.vs,showLineNumbers:!0,lineNumberStyle:{color:"var(--text-dim)",fontStyle:"normal",opacity:.45,paddingRight:"0.8em",userSelect:"none"},customStyle:{margin:0,padding:"6px 10px",fontSize:"calc(13px + var(--chat-font-size-offset, 0px))",lineHeight:1.54,borderRadius:0,border:"none",boxShadow:"none",background:"transparent",backgroundColor:"transparent",overflowX:"auto",scrollbarWidth:"thin"},codeTagProps:{style:{fontFamily:"var(--font-mono)"}},children:a})]})});function rQ({children:a,className:b,isStreaming:c,cwd:d,onOpenFile:e}){let f=(0,t.useMemo)(()=>md(a),[a]),g=(0,t.useMemo)(()=>({code({className:a,children:b,...d}){let e=a?.replace("language-","").toLowerCase()??"",f=String(b);return a?.includes("language-")||f.includes("\n")?"mermaid"===e?(0,s.jsx)(rN,{code:f.replace(/\n$/,""),isStreaming:c,defaultPreview:!0}):(0,s.jsx)(rP,{code:f.replace(/\n$/,""),lang:e,isStreaming:c}):(0,s.jsx)("code",{className:"markdown-inline-code",...d,children:b})},pre:({children:a})=>(0,s.jsx)(s.Fragment,{children:a}),a({href:a,children:b,...c}){delete c.node;let f=e?ce(a,d):null;if(!f||!e)return(0,s.jsx)("a",{href:a,...c,target:"_blank",rel:"noopener noreferrer",children:b});let g=function(a){if(!a)return null;let b=a.split("#",2)[1];if(!b)return null;let c=new URLSearchParams(b).get("page");if(null===c||!/^\d+$/.test(c))return null;let d=Number(c);return Number.isSafeInteger(d)&&d>0?d:null}(a);return(0,s.jsx)("a",{href:a,...c,onClick:a=>{if(!ca(a))return;let b=a.currentTarget.getAttribute("target");b&&"_self"!==b||(a.preventDefault(),e(f,g??void 0))},children:b})},img({src:a,alt:b,...c}){delete c.node;let e="string"==typeof a?ce(a,d):null,f=e?`/api/files/${I(e)}?type=read`:a;return(0,s.jsx)("img",{src:f,alt:b??"",loading:"lazy",...c})},table:({children:a})=>(0,s.jsx)("div",{className:"markdown-table-wrap",children:(0,s.jsx)("table",{children:a})})}),[d,c,e]);return(0,s.jsx)("div",{className:["markdown-body",b].filter(Boolean).join(" "),children:(0,s.jsx)(fJ,{remarkPlugins:mj,rehypePlugins:ml,urlTransform:e?mb:void 0,components:g,children:f})})}function rR({toolName:a,isError:b,size:c=12}){if(b)return(0,s.jsxs)("svg",{width:c,height:c,viewBox:"0 0 24 24",fill:"none",stroke:"#ef4444",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",className:"shrink-0",style:{display:"block"},"aria-hidden":"true",children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,s.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),(0,s.jsx)("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]});let d=a.toLowerCase();return d.includes("bash")||d.includes("sh")||d.includes("terminal")||d.includes("powershell")||d.includes("command")?(0,s.jsxs)("svg",{width:c,height:c,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",className:"shrink-0 text-text-muted",style:{display:"block"},"aria-hidden":"true",children:[(0,s.jsx)("polyline",{points:"4 17 10 11 4 5"}),(0,s.jsx)("line",{x1:"12",y1:"19",x2:"20",y2:"19"})]}):"read"===d||d.includes("read_file")||d.includes("view")?(0,s.jsxs)("svg",{width:c,height:c,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",className:"shrink-0 text-text-muted",style:{display:"block"},"aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),(0,s.jsx)("polyline",{points:"14 2 14 8 20 8"}),(0,s.jsx)("line",{x1:"9",y1:"13",x2:"15",y2:"13"}),(0,s.jsx)("line",{x1:"9",y1:"17",x2:"13",y2:"17"})]}):d.includes("write")||d.includes("edit")||d.includes("patch")||d.includes("apply")?(0,s.jsxs)("svg",{width:c,height:c,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",className:"shrink-0 text-text-muted",style:{display:"block"},"aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),(0,s.jsx)("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]}):d.includes("todo")||d.includes("task")?(0,s.jsxs)("svg",{width:c,height:c,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",className:"shrink-0 text-text-muted",style:{display:"block"},"aria-hidden":"true",children:[(0,s.jsx)("rect",{x:"3",y:"5",width:"6",height:"6",rx:"1"}),(0,s.jsx)("path",{d:"m3 17 2 2 4-4"}),(0,s.jsx)("path",{d:"M13 6h8"}),(0,s.jsx)("path",{d:"M13 12h8"}),(0,s.jsx)("path",{d:"M13 18h8"})]}):d.includes("agent")||d.includes("subagent")?(0,s.jsx)(ai,{size:c,strokeWidth:2.2,className:"shrink-0 text-text-muted",style:{display:"block"}}):d.includes("search")||d.includes("fetch")||d.includes("web")||d.includes("browser")?(0,s.jsxs)("svg",{width:c,height:c,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",className:"shrink-0 text-text-muted",style:{display:"block"},"aria-hidden":"true",children:[(0,s.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,s.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}):(0,s.jsx)("svg",{width:c,height:c,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",className:"shrink-0 text-text-muted",style:{display:"block"},"aria-hidden":"true",children:(0,s.jsx)("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"})})}let rS=/<(read-files|modified-files)>\s*([\s\S]*?)\s*<\/\1>/g,rT=/(?:\r?\n){2,}((?:[ \t]*<(?:read-files|modified-files)>[ \t]*\r?\n[\s\S]*?\r?\n[ \t]*<\/(?:read-files|modified-files)>[ \t]*(?:\r?\n)?)+)\s*$/;function rU(a){let b,c=[],d=null,e=0,f=0,g=0,h=0,i=[],j=[],k=()=>({lineNo:null,text:"",type:"empty"}),l=()=>{if(!d){i=[],j=[];return}let a=Math.max(i.length,j.length);for(let b=0;b<a;b++){let a=i[b]?{lineNo:i[b].lineNo,text:i[b].text,type:"removed"}:k(),c=j[b]?{lineNo:j[b].lineNo,text:j[b].text,type:"added"}:k();d.rows.push({type:"line",left:a,right:c})}i=[],j=[]};for(let k of a.split(/\r?\n/)){if(!(g>0||h>0)){if(k.startsWith("--- ")){l(),b=rV(k.slice(4));continue}if(k.startsWith("+++ ")){l(),d={oldPath:b,newPath:rV(k.slice(4)),rows:[]},c.push(d);continue}}let a=k.match(/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/);if(a){d||(d={rows:[]},c.push(d)),l(),e=Number(a[1]),f=Number(a[3]),g=void 0===a[2]?1:Number(a[2]),h=void 0===a[4]?1:Number(a[4]),d.rows.push({type:"hunk",text:k});continue}if(!d)continue;if(k.startsWith("\\ ")){l(),d.rows.push({type:"hunk",text:k});continue}let m=k[0],n=k.slice(1);" "===m?(l(),d.rows.push({type:"line",left:{lineNo:e++,text:n,type:"context"},right:{lineNo:f++,text:n,type:"context"}}),g>0&&g--,h>0&&h--):"-"===m?(i.push({lineNo:e++,text:n}),g>0&&g--):"+"===m?(j.push({lineNo:f++,text:n}),h>0&&h--):""!==k&&(l(),d.rows.push({type:"hunk",text:k}))}l();let m=c.filter(a=>a.rows.some(a=>"line"===a.type));return m.length>0?m:null}function rV(a){return a.split(" ")[0].trim()}function rW(){return!1}function rX({files:a,onOpenFile:b}){let{t:c}=(0,G.s)();return 0===a.length?null:(0,s.jsx)("div",{"aria-label":c("chat.filesWritten"),style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:6,marginTop:6},children:a.map(({filePath:a})=>{let d=J(a);return(0,s.jsxs)("button",{type:"button",title:a,"aria-label":c("chat.openWrittenFile",{name:d}),onClick:()=>b?.(a),style:{display:"inline-flex",alignItems:"center",gap:5,padding:"2.5px 7px",minHeight:22,fontSize:"calc(11.5px + var(--chat-font-size-offset, 0px))",fontFamily:"var(--font-mono)",lineHeight:1,color:"var(--text-muted)",background:"color-mix(in srgb, var(--bg-subtle) 65%, var(--bg))",border:"1px solid color-mix(in srgb, var(--border) 70%, transparent)",borderRadius:5,cursor:"pointer",transition:"background 0.12s ease, color 0.12s ease"},onMouseEnter:a=>{a.currentTarget.style.background="var(--bg-hover)",a.currentTarget.style.color="var(--text)"},onMouseLeave:a=>{a.currentTarget.style.background="color-mix(in srgb, var(--bg-subtle) 65%, var(--bg))",a.currentTarget.style.color="var(--text-muted)"},children:[(0,s.jsx)("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,transform:"translateY(0.5px)"},children:W(d,12)}),(0,s.jsx)("span",{style:{lineHeight:1},children:d})]},a)})})}function rY({children:a,className:b,...c}){let{t:d}=(0,G.s)(),[e,f]=(0,t.useState)(!1);if(a.length<=1e5)return(0,s.jsx)(rQ,{className:b,...c,children:a});if(!e){var g;return(0,s.jsxs)("button",{onClick:()=>f(!0),style:{display:"block",width:"100%",margin:"4px 0",padding:"7px 10px",border:"1px solid var(--border)",borderRadius:6,background:"var(--bg-panel)",color:"var(--text-muted)",cursor:"pointer",fontSize:12,textAlign:"left"},children:["⚠ ",d("i18n.largeMessageReveal",{size:(g=a.length)>=1e6?`${(g/1e6).toFixed(1)} MB`:g>=1e3?`${Math.round(g/1e3)} KB`:`${g} B`})]})}return(0,s.jsx)("div",{className:b,style:{maxHeight:420,overflow:"auto",fontSize:"calc(12px + var(--chat-font-size-offset, 0px))",lineHeight:1.5},children:(0,s.jsx)("pre",{style:{margin:0,padding:"8px 10px",whiteSpace:"pre-wrap",wordBreak:"break-word",fontFamily:"var(--font-mono)",color:"var(--text-muted)"},children:a})})}function rZ(a,b){if("number"!=typeof a||"number"!=typeof b)return;let c=Math.round((b-a)/1e3);return c>0?c:void 0}function r$(a){if(!a)return null;let b=new Date(a),c=new Date,d=b.getFullYear()===c.getFullYear()&&b.getMonth()===c.getMonth()&&b.getDate()===c.getDate(),e=b.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});if(d)return e;let f=b.toLocaleDateString([],{month:"short",day:"numeric",year:b.getFullYear()!==c.getFullYear()?"numeric":void 0});return`${f} ${e}`}let r_=(0,t.memo)(function({message:a,modelName:b,isStreaming:c,toolResults:d,cwd:e,onOpenFile:f,onOpenSession:g,entryId:h,searchBlock:i,onFork:j,forking:k,onNavigate:l,prevAssistantEntryId:m,onEditContent:n,isTurnEnd:o,sessionId:p,writtenFiles:q,isProcess:r,runningToolIds:t}){return"user"===a.role?(0,s.jsx)(r2,{message:a,cwd:e,onOpenFile:f,entryId:h,onFork:j,forking:k,onNavigate:l,prevAssistantEntryId:m,onEditContent:n}):"assistant"===a.role?(0,s.jsx)(r3,{message:a,modelName:b,isStreaming:c,toolResults:d,cwd:e,onOpenFile:f,onOpenSession:g,isTurnEnd:o,sessionId:p,entryId:h,searchBlock:i,writtenFiles:q,isProcess:r,runningToolIds:t}):"toolResult"===a.role?null:"custom"===a.role?"compaction"===a.customType?(0,s.jsx)(sj,{message:a}):bX(a)?(0,s.jsx)(sm,{message:a,cwd:e,onOpenFile:f}):(0,s.jsx)(sn,{message:a,cwd:e,onOpenFile:f}):"bashExecution"===a.role?(0,s.jsx)(sr,{message:a,sessionId:p}):null},(a,b)=>a.message===b.message&&a.isStreaming===b.isStreaming&&function(a,b,c){if(b===c||"assistant"!==a.role)return!0;for(let d of a.content??[])if("toolCall"===d.type&&b?.get(d.toolCallId)!==c?.get(d.toolCallId))return!1;return!0}(a.message,a.toolResults,b.toolResults)&&a.cwd===b.cwd&&a.onOpenFile===b.onOpenFile&&a.onOpenSession===b.onOpenSession&&a.entryId===b.entryId&&a.searchBlock===b.searchBlock&&a.onFork===b.onFork&&a.forking===b.forking&&a.onNavigate===b.onNavigate&&a.prevAssistantEntryId===b.prevAssistantEntryId&&a.onEditContent===b.onEditContent&&a.isTurnEnd===b.isTurnEnd&&a.modelName===b.modelName&&a.writtenFiles===b.writtenFiles&&a.sessionId===b.sessionId&&a.isProcess===b.isProcess);function r0({text:a,cwd:b,onOpenFile:c}){let d=function(a){let b=[],c=0;for(let d of a.matchAll(az)){let e=function(a){let b=(a[1]??a[2]??"").replace(/[),.;]+$/,"");if(!(!aA.test(b)||b.split(/[\\/]/).includes("..")))return b}(d),f=d.index??0;e&&(f>c&&b.push({type:"text",value:a.slice(c,f)}),b.push({type:"mention",path:e}),c=f+d[0].length)}return c<a.length&&b.push({type:"text",value:a.slice(c)}),b.length?b:[{type:"text",value:a}]}(a),e=d.filter(a=>"mention"===a.type),f=d.filter(a=>"text"===a.type).map(a=>a.value).join("").trim();return e.length?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{style:{display:"flex",gap:6,flexWrap:"wrap",marginBottom:8*!!f},children:e.map(a=>(0,s.jsx)(aG,{path:a.path,cwd:b},a.path))}),f?(0,s.jsx)(rY,{className:"markdown-user-message",cwd:b,onOpenFile:c,children:f}):null]}):(0,s.jsx)(rY,{className:"markdown-user-message",cwd:b,onOpenFile:c,children:a})}let r1=/^\[Image(?:: original \d+x\d+, displayed at \d+x\d+\. Multiply coordinates by \d+\.\d{2} to map to original image\.| converted from \S+ to \S+\.)\]$/;function r2({message:a,cwd:b,onOpenFile:c,entryId:d,onFork:e,forking:f,onNavigate:g,prevAssistantEntryId:h,onEditContent:i}){let{t:j}=(0,G.s)(),[k,l]=(0,t.useState)(!1),[m,n]=(0,t.useState)(!1),[o,p]=(0,t.useState)(!1),q=function(a){let b=a.split("\n"),c=b.length;for(;c>0&&(""===b[c-1].trim()||r1.test(b[c-1].trim()));)c-=1;return b.slice(0,c).join("\n")}("string"==typeof a.content?a.content:a.content.filter(a=>"text"===a.type).map(a=>a.text).join("\n")),r="string"==typeof a.content?[]:a.content.filter(a=>"image"===a.type),u=z(q),v=u?.search(/\s/)??-1,w=u?-1===v?u:u.slice(0,v):"",x=u&&-1!==v?u.slice(v+1):"",y=r$(a.timestamp),A=!!d&&!!e,B=u??q,C=u?function(a,b){if("string"==typeof a.content)return{...a,content:b};let c=[],d=!1;for(let e of a.content){if("text"!==e.type){c.push(e);continue}d||(c.push({...e,text:b}),d=!0)}return d||c.unshift({type:"text",text:b}),{...a,content:c}}(a,u):a,D=r.length>0&&(0,s.jsx)("div",{style:{display:"flex",gap:6,flexWrap:"wrap",marginBottom:8*!!q},children:r.map((a,b)=>{let c=a.source?"base64"===a.source.type?`data:${a.source.media_type};base64,${a.source.data}`:a.source.url??"":a.data?`data:${a.mimeType};base64,${a.data}`:"";return(0,s.jsx)(au,{src:c,children:(0,s.jsx)("img",{src:c,alt:"",style:{maxWidth:240,maxHeight:240,borderRadius:8,objectFit:"contain",display:"block",border:"1px solid var(--border)"}})},b)})}),E=!!h&&!!g;return(0,s.jsxs)("div",{style:{marginBottom:10,display:"flex",flexDirection:"column",alignItems:"flex-end"},onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[(0,s.jsx)("div",{style:{display:"flex",alignItems:"flex-end",gap:6,maxWidth:"min(85%, 680px)"},children:(0,s.jsx)("div",{style:{flex:1,minWidth:0,background:"var(--user-bg)",border:"1px solid var(--user-border, var(--border))",borderRadius:6,padding:"6px 11px",fontSize:"calc(14px + var(--chat-font-size-offset, 0px))",lineHeight:1.58,color:"var(--text)",wordBreak:"break-word",maxHeight:480,overflowY:"auto"},children:u?(0,s.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6,minWidth:0},children:[D,(0,s.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:8,flexWrap:"wrap"},children:[(0,s.jsxs)("button",{onClick:()=>p(a=>!a),title:j(o?"i18n.collapse":"i18n.expand"),"aria-expanded":o,style:{display:"flex",alignItems:"center",gap:6,flexShrink:0,padding:0,background:"none",border:"none",cursor:"pointer",color:"var(--accent)",fontFamily:"var(--font-mono)",fontSize:"calc(13px + var(--chat-font-size-offset, 0px))",textAlign:"left"},children:[(0,s.jsx)("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:w}),(0,s.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0,opacity:.75,transform:o?"rotate(180deg)":"none",transition:"transform 0.15s"},"aria-hidden":"true",children:(0,s.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),x&&(0,s.jsx)("span",{style:{color:"var(--text)",fontSize:"calc(14px + var(--chat-font-size-offset, 0px))",lineHeight:1.58,whiteSpace:"pre-wrap",wordBreak:"break-word",flex:"1 0 auto",width:"max-content",maxWidth:"100%"},children:x})]}),o&&(0,s.jsx)(rQ,{className:"markdown-user-message",cwd:b,onOpenFile:c,children:q})]}):(0,s.jsxs)(s.Fragment,{children:[D,q&&(0,s.jsx)(r0,{text:q,cwd:b,onOpenFile:c})]})})}),(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:6,marginTop:2},children:[(0,s.jsx)("div",{className:"message-action-group",style:{opacity:+!!k,pointerEvents:k?"auto":"none"},children:(0,s.jsx)("button",{type:"button",className:"message-action-button","data-copied":m?"true":void 0,onClick:()=>{mx(B).then(()=>{n(!0),setTimeout(()=>n(!1),1500)})},title:j(m?"i18n.copied":"i18n.copyMessage"),"aria-label":j(m?"i18n.copied":"i18n.copy"),children:m?(0,s.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,s.jsx)("polyline",{points:"20 6 9 17 4 12"})}):(0,s.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),(0,s.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})}),(A||E)&&(0,s.jsxs)("div",{className:"message-action-group",style:{opacity:k||f?1:0,pointerEvents:k||f?"auto":"none"},children:[E&&(0,s.jsx)("button",{type:"button",className:"message-action-button",onClick:()=>{g(h),i?.(C)},title:j("i18n.editFromHereTitle"),"aria-label":j("i18n.editFromHere"),children:(0,s.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("polyline",{points:"15 10 20 15 15 20"}),(0,s.jsx)("path",{d:"M4 4v7a4 4 0 0 0 4 4h12"})]})}),A&&(0,s.jsx)("button",{type:"button",className:"message-action-button",onClick:()=>{e(d)},disabled:f,title:j(f?"i18n.creatingSession":"i18n.newSessionTitle"),"aria-label":j(f?"i18n.creating":"i18n.newSession"),children:(0,s.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("line",{x1:"6",y1:"3",x2:"6",y2:"15"}),(0,s.jsx)("circle",{cx:"18",cy:"6",r:"3"}),(0,s.jsx)("circle",{cx:"6",cy:"18",r:"3"}),(0,s.jsx)("path",{d:"M18 9a9 9 0 0 1-9 9"})]})})]}),y&&(0,s.jsx)("span",{style:{fontSize:10,color:"var(--text-dim)",fontFamily:"var(--font-mono)",userSelect:"none"},children:y})]})]})}function r3({message:a,modelName:b,isStreaming:c,toolResults:d,cwd:e,onOpenFile:f,onOpenSession:g,isTurnEnd:h,sessionId:i,entryId:j,searchBlock:k,writtenFiles:l,isProcess:m,runningToolIds:n}){let{t:o}=(0,G.s)(),[p,q]=(0,t.useState)(!1),r=(0,t.useMemo)(()=>(a.content??[]).map((a,b)=>({block:a,originalIndex:b})).filter(({block:a})=>!bZ(a,{isStreaming:c})),[a.content,c]),u=(0,t.useMemo)(()=>r.map(({block:a})=>a),[r]),v=a.completedAt??a.timestamp,w=(0,t.useMemo)(()=>{let b=new Map;if(!d||void 0===v)return b;for(let c of a.content){if("toolCall"!==c.type)continue;let a=d.get(c.toolCallId),e=rZ(v,a?.timestamp);void 0!==e&&b.set(c.toolCallId,e)}return b},[a.content,d,v]),x=b_(a,{isStreaming:c}),y=function(a,b={}){return!b.isStreaming&&"length"===a.stopReason}(a,{isStreaming:c}),z=u.filter(a=>"text"===a.type).map(a=>a.text).join("\n"),A=h&&!c?r$(a.timestamp):null,B=h&&!c&&(b||a.model)||null,C=h&&!c&&!!(B||z||A);return 0!==u.length||c||x||y?(0,s.jsxs)("div",{"data-message-role":"assistant","data-entry-id":j,style:{marginBottom:h?16:8},children:[(0,s.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:4},children:r.map(({block:b,originalIndex:h},l)=>{let m="thinking"===b.type?b:null,o=m?m.startedAt??a.timestamp:void 0,p=m?rZ(o,m.endedAt??a.completedAt):void 0,q=!!(c&&m&&l===r.length-1&&void 0===p&&"number"==typeof o);return(0,s.jsx)(r6,{block:b,searchTarget:b===k,toolResults:d,isStreaming:c,streamingDuration:p,startTime:"toolCall"===b.type?v:o,live:q||"toolCall"===b.type&&!!n?.has(b.toolCallId),toolCallDurations:w,cwd:e,onOpenFile:f,onOpenSession:g,sessionId:i,entryId:j,blockIndex:h},`${j??"stream"}-${h}`)})}),x&&(m?(0,s.jsx)("div",{style:{marginTop:4*(u.length>0)},children:(0,s.jsx)(r4,{error:x})}):(0,s.jsxs)("div",{role:"alert",style:{marginTop:8*(u.length>0),padding:"7px 10px",border:"1px solid rgba(239,68,68,0.3)",borderRadius:6,background:"rgba(239,68,68,0.07)",color:"#ef4444",fontFamily:"var(--font-mono)",fontSize:12,lineHeight:1.5,whiteSpace:"pre-wrap",overflowWrap:"anywhere"},children:["Error: ",x]})),y&&(0,s.jsx)("div",{role:"status",style:{marginTop:8*(u.length>0),padding:"7px 10px",border:"1px solid rgba(234,179,8,0.35)",borderRadius:6,background:"rgba(234,179,8,0.08)",color:"var(--text-muted)",fontSize:12,lineHeight:1.5},children:o("chat.truncatedByOutputLimit")}),l&&l.length>0&&(0,s.jsx)(rX,{files:l,onOpenFile:f}),C&&(0,s.jsxs)("div",{"data-answer-footer":!0,style:{display:"flex",alignItems:"center",gap:6,marginTop:2},children:[B&&(0,s.jsx)("div",{"data-answer-model":!0,style:{minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:"var(--text-dim)",fontSize:11,fontFamily:"var(--font-ui)"},children:B}),(z||A)&&(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,marginLeft:"auto",flexShrink:0},children:[z&&(0,s.jsx)("button",{type:"button",className:"answer-copy-button message-action-button","data-copied":p?"true":void 0,onClick:()=>{mx(z).then(()=>{q(!0),setTimeout(()=>q(!1),1500)})},title:o(p?"i18n.copied":"i18n.copyMessage"),"aria-label":o(p?"i18n.copied":"i18n.copy"),children:p?(0,s.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,s.jsx)("polyline",{points:"20 6 9 17 4 12"})}):(0,s.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),(0,s.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})}),A&&(0,s.jsx)("span",{style:{color:"var(--text-dim)",fontSize:10,fontFamily:"var(--font-mono)",userSelect:"none"},children:A})]})]})]}):null}function r4({error:a}){let{t:b}=(0,G.s)(),[c,d]=(0,t.useState)(!1),e=(0,t.useId)(),f=(0,t.useMemo)(()=>{let b=a.replace(/^(Error:\s*)+/i,"").trim();return b.split("\n")[0]||b},[a]);return(0,s.jsxs)("div",{"data-step-card":"",style:{borderRadius:6,overflow:"hidden",fontSize:"calc(11.5px + var(--chat-font-size-offset, 0px))",border:"1px solid rgba(248,113,113,0.35)",background:"rgba(248,113,113,0.05)"},children:[(0,s.jsx)("div",{style:{display:"flex",alignItems:"stretch",minWidth:0},children:(0,s.jsxs)("button",{type:"button","aria-expanded":c,"data-step-trigger":"","aria-controls":e,title:b(c?"chat.collapseProcess":"chat.expandProcess"),onClick:()=>d(a=>!a),style:{display:"flex",alignItems:"center",gap:6,flex:1,minWidth:0,padding:"3px 8px",minHeight:24,background:"none",border:"none",color:"var(--text-muted)",cursor:"pointer",fontSize:"inherit",textAlign:"left"},children:[(0,s.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:14,height:14,flexShrink:0,opacity:.85,transform:"translateY(0.5px)"},children:(0,s.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"#f87171",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,s.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),(0,s.jsx)("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),(0,s.jsx)("span",{style:{color:"#f87171",fontFamily:"var(--font-mono)",fontWeight:500,fontSize:11,lineHeight:1.35,flexShrink:0},children:b("chat.modelError")}),(0,s.jsx)("span",{style:{color:"var(--text-muted)",fontFamily:"var(--font-mono)",fontSize:11,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0,opacity:.85,lineHeight:1.35},children:f}),(0,s.jsx)("svg",{"data-step-chevron":"",width:"9",height:"9",viewBox:"0 0 10 10",fill:"none",stroke:"var(--text-dim)",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0,opacity:.4,display:"block",transform:c?"rotate(180deg)":"none",transition:"transform 0.15s, opacity 0.15s"},"aria-hidden":"true",children:(0,s.jsx)("polyline",{points:"2 3.5 5 6.5 8 3.5"})})]})}),c&&(0,s.jsxs)("div",{id:e,style:{padding:"8px 10px",background:"var(--bg)",borderTop:"1px solid rgba(248,113,113,0.2)",fontFamily:"var(--font-mono)",fontSize:"calc(11px + var(--chat-font-size-offset, 0px))",lineHeight:1.55,color:"#f87171",whiteSpace:"pre-wrap",overflowWrap:"anywhere"},children:["Error: ",a]})]})}function r5({seconds:a,startTime:b,live:c}){let{t:d}=(0,G.s)(),[e,f]=(0,t.useState)(Date.now),g=c&&void 0!==b?Math.max(0,Math.round((e-b)/1e3)):a;if(void 0===g)return null;let h=void 0!==b?d("chat.stepStartedAt",{time:new Date(b).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}):void 0;return(0,s.jsx)("span",{title:h,style:{fontSize:10,color:"var(--text-dim)",flexShrink:0,fontVariantNumeric:"tabular-nums",lineHeight:1.35},children:(0,F.a3)(g,d)})}function r6({block:a,searchTarget:b,toolResults:c,isStreaming:d,streamingDuration:e,startTime:f,live:g,toolCallDurations:h,cwd:i,onOpenFile:j,onOpenSession:k,sessionId:l,entryId:m,blockIndex:n}){if("text"===a.type){let c=a.text;return d||c&&""!==c.trim()?(0,s.jsx)("div",{"data-message-text":!0,"data-search-target":b||void 0,children:(0,s.jsx)(r7,{block:a,isStreaming:d,cwd:i,onOpenFile:j})}):null}if("image"===a.type){let c=sq(a);return c?(0,s.jsx)("div",{"data-search-target":b||void 0,style:{margin:"8px 0"},children:(0,s.jsx)(au,{src:c,children:(0,s.jsx)("img",{src:c,alt:"",style:{maxWidth:240,maxHeight:240,borderRadius:6,objectFit:"contain",display:"block",border:"1px solid var(--border)"}})})}):null}if("thinking"===a.type)return(0,s.jsx)(r8,{block:a,duration:e,startTime:f,live:g,sessionId:l,entryId:m,blockIndex:n});if("toolCall"===a.type){let b=c?.get(a.toolCallId),d=h?.get(a.toolCallId);return(0,s.jsx)(r9,{block:a,result:b,duration:d,startTime:f,live:g,onOpenSession:k})}return null}function r7({block:a,isStreaming:b,cwd:c,onOpenFile:d}){return(0,s.jsx)(rY,{className:"markdown-assistant-message",isStreaming:b,cwd:c,onOpenFile:d,children:a.text})}function r8({block:a,duration:b,startTime:c,live:d,sessionId:e,entryId:f,blockIndex:g}){var h;let{t:i}=(0,G.s)(),[j,k]=(0,t.useState)(rW),[l,m]=(0,t.useState)(null),[n,o]=(0,t.useState)(!1),[p,q]=(0,t.useState)(null);(0,t.useRef)(i).current=i;let r=(h=a.thinking,h.trimStart().match(/^[^\r\n]{0,240}/u)?.[0].trimEnd()??"");return(0,s.jsxs)("div",{"data-step-card":"",style:{borderRadius:6,overflow:"hidden",border:"1px solid var(--border)",background:"var(--bg-subtle)",transition:"border-color 0.15s ease"},children:[(0,s.jsx)("div",{style:{display:"flex",alignItems:"stretch",minWidth:0},children:(0,s.jsxs)("button",{type:"button","aria-expanded":j,"data-step-trigger":"","aria-label":`${i("i18n.thinking")}${r?`: ${r}`:""}`,title:i("i18n.thinking"),onClick:()=>k(a=>!a),style:{display:"flex",alignItems:"center",gap:6,flex:1,minWidth:0,padding:"3px 8px",minHeight:24,background:"none",border:"none",color:"var(--text-muted)",cursor:"pointer",textAlign:"left"},children:[(0,s.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:14,height:14,flexShrink:0,opacity:.85,transform:"translateY(0.5px)"},children:(0,s.jsx)(a0,{active:j,size:12})}),(0,s.jsx)("span",{style:{color:"var(--text)",fontFamily:"var(--font-ui)",fontWeight:500,fontSize:11.5,lineHeight:1.35,flexShrink:0},children:i("i18n.thinking")}),!j&&(0,s.jsx)("span",{style:{color:"var(--text-muted)",fontFamily:"var(--font-ui)",fontSize:11.5,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0,opacity:.85,lineHeight:1.35},children:r?(0,s.jsx)(fJ,{allowedElements:[],unwrapDisallowed:!0,skipHtml:!0,children:r}):"..."}),j&&(0,s.jsx)("div",{style:{flex:1}}),(0,s.jsx)(r5,{seconds:b,startTime:c,live:d}),(0,s.jsx)("svg",{"data-step-chevron":"",width:"9",height:"9",viewBox:"0 0 10 10",fill:"none",stroke:"var(--text-dim)",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0,opacity:.4,display:"block",transform:j?"rotate(180deg)":"none",transition:"transform 0.15s, opacity 0.15s"},"aria-hidden":"true",children:(0,s.jsx)("polyline",{points:"2 3.5 5 6.5 8 3.5"})})]})}),j&&(0,s.jsx)("div",{style:{padding:"8px 10px",background:"var(--bg)",borderTop:"1px solid color-mix(in srgb, var(--border) 80%, transparent)",fontFamily:"var(--font-mono)",fontSize:"calc(11px + var(--chat-font-size-offset, 0px))",lineHeight:1.55,color:p?"#f87171":"var(--text-muted)",whiteSpace:"pre-wrap",overflowWrap:"anywhere"},children:n?i("i18n.loadingThinking"):p??(a.deferred?l:a.thinking)})]})}function r9({block:a,result:b,duration:c,startTime:d,live:e,onOpenSession:f}){var g,h;let{t:i}=(0,G.s)(),[j,k]=(0,t.useState)(!1),l=(h=a).rawInput??JSON.stringify(h.input,null,2),m=void 0!==a.rawInput,n=cf(a.toolName),o=cg(a.toolName),p=o?"string"==typeof a.input?.patch?a.input.patch:function(a){if(!a)return;let b=/"patch"\s*:\s*"((?:[^"\\]|\\.)*)"/.exec(a);if(!b)return;let c=b[1];if(!c.endsWith("\\")||c.endsWith("\\\\"))try{return JSON.parse(`"${c}"`)}catch{return}}(a.rawInput):void 0,q=aD(a.toolName,a.input,b?.details),r="edit"===q?i("image.edit"):"generate"===q?i("image.generate"):a.toolName,u=b&&!b.isError?function(a){var b;let c=a.details;if(!("object"==typeof(b=c)&&null!==b&&!Array.isArray(b)))return null;let d="string"==typeof c.patch?c.patch:null;if(d)return{text:d};let e="string"==typeof c.diff?c.diff:null;return e?{text:e}:null}(b):null,v=b?b.content.filter(a=>"text"===a.type).map(a=>a.text).join("\n"):null,w=sp(b?.content??[]),x=null!==v&&("(no output)"===v.trim()||""===v.trim()),y=b?.isError??!1,z=(g=b?.details)&&"object"==typeof g&&"pi-web-subagent"===g.kind&&"string"==typeof g.sessionId?b.details:null;return(0,s.jsxs)("div",{"data-step-card":"",style:{borderRadius:6,overflow:"hidden",fontSize:"calc(11.5px + var(--chat-font-size-offset, 0px))",border:y?"1px solid rgba(248,113,113,0.45)":"1px solid var(--border)",background:y?"rgba(248,113,113,0.05)":"var(--bg-subtle)",transition:"border-color 0.15s ease"},children:[(0,s.jsxs)("div",{style:{display:"flex",alignItems:"stretch",minWidth:0},children:[(0,s.jsxs)("button",{type:"button","aria-expanded":j,"data-step-trigger":"",onClick:()=>k(a=>!a),style:{display:"flex",alignItems:"center",gap:6,flex:1,minWidth:0,padding:"3px 8px",minHeight:24,background:"none",border:"none",color:"var(--text-muted)",cursor:"pointer",fontSize:"inherit",textAlign:"left"},children:[(0,s.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:14,height:14,flexShrink:0,opacity:.85,transform:"translateY(0.5px)"},children:(0,s.jsx)(rR,{toolName:a.toolName,isError:y,size:12})}),(0,s.jsx)("span",{style:{color:y?"#f87171":"var(--text)",fontFamily:"var(--font-mono)",fontWeight:500,fontSize:11,lineHeight:1.35,flexShrink:0},children:r}),(0,s.jsx)("span",{style:{color:"var(--text-muted)",fontFamily:"var(--font-mono)",fontSize:11,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0,opacity:.85,lineHeight:1.35},children:m?i("chat.generatingToolInput"):function(a){let b=a.input;if(!b||"object"!=typeof b)return"";let c=Object.keys(b);return 0===c.length?"":"command"in b?String(b.command).slice(0,120):"path"in b?String(b.path).slice(0,120):"file_path"in b?String(b.file_path).slice(0,120):"pattern"in b?String(b.pattern).slice(0,120):"query"in b?String(b.query).slice(0,120):String(b[c[0]]).slice(0,120)}(a)}),(0,s.jsx)(r5,{seconds:c,startTime:d,live:e}),(0,s.jsx)("svg",{"data-step-chevron":"",width:"9",height:"9",viewBox:"0 0 10 10",fill:"none",stroke:"var(--text-dim)",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0,opacity:.4,display:"block",transform:j?"rotate(180deg)":"none",transition:"transform 0.15s, opacity 0.15s"},"aria-hidden":"true",children:(0,s.jsx)("polyline",{points:"2 3.5 5 6.5 8 3.5"})})]}),z&&f&&(0,s.jsx)("button",{type:"button",onClick:()=>f(z.sessionId),title:i("subagent.open"),"aria-label":i("subagent.open"),style:{width:30,display:"grid",placeItems:"center",border:"none",borderLeft:"1px solid var(--border)",background:"none",color:"var(--text-muted)",cursor:"pointer",flexShrink:0},children:(0,s.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M15 3h6v6"}),(0,s.jsx)("path",{d:"M10 14 21 3"}),(0,s.jsx)("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"})]})})]}),j&&(m||!n)&&!o&&(0,s.jsx)("pre",{style:{margin:0,padding:"8px 10px",color:"var(--text-muted)",fontSize:"calc(11.5px + var(--chat-font-size-offset, 0px))",lineHeight:1.5,overflow:"auto",background:"var(--bg)",borderTop:y?"1px solid rgba(239,68,68,0.25)":"1px solid color-mix(in srgb, var(--border) 80%, transparent)",whiteSpace:"pre-wrap",wordBreak:"break-all"},children:l}),j&&o&&void 0!==p&&(0,s.jsx)("div",{style:{borderTop:"1px solid color-mix(in srgb, var(--border) 80%, transparent)",background:"var(--bg)"},children:(0,s.jsx)(sd,{patch:p})}),j&&o&&void 0===p&&(0,s.jsx)("pre",{style:{margin:0,padding:"8px 10px",color:"var(--text-muted)",fontSize:"calc(11.5px + var(--chat-font-size-offset, 0px))",lineHeight:1.5,overflow:"auto",background:"var(--bg)",borderTop:"1px solid color-mix(in srgb, var(--border) 80%, transparent)",whiteSpace:"pre-wrap",wordBreak:"break-all"},children:i("chat.generatingToolInput")}),j&&b&&!(o&&void 0!==p)&&(u?(0,s.jsx)(sb,{diff:u}):(0,s.jsx)(si,{text:v??"",images:w,isEmpty:x,isError:y})),!j&&w.length>0&&(0,s.jsx)("div",{style:{padding:"6px 10px 8px",borderTop:y?"1px solid rgba(239,68,68,0.25)":"1px solid color-mix(in srgb, var(--border) 80%, transparent)",background:"var(--bg)"},children:(0,s.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:8},children:(0,s.jsx)(sa,{images:w,thumbnails:!0})})})]})}function sa({images:a,thumbnails:b=!1}){return(0,s.jsx)(s.Fragment,{children:a.map((a,c)=>{let d=sq(a);return d?(0,s.jsx)(au,{src:d,style:{maxWidth:"100%"},children:(0,s.jsx)("img",{src:d,alt:"",loading:"lazy",style:{display:"block",borderRadius:6,objectFit:"contain",border:"1px solid var(--border)",...b?{maxWidth:220,maxHeight:150}:{maxWidth:"min(100%, 720px)",maxHeight:520}}})},`${d}-${c}`):null})})}function sb({diff:a}){return(0,s.jsx)("div",{style:{borderTop:"1px solid rgba(34,197,94,0.15)",background:"var(--bg)"},children:(0,s.jsx)(sc,{text:a.text})})}function sc({text:a}){let b=(0,t.useMemo)(()=>rU(a),[a]);return b?(0,s.jsx)(se,{files:b}):(0,s.jsx)(sh,{text:a})}function sd({patch:a}){let b=(0,t.useMemo)(()=>b9(a),[a]);return b?(0,s.jsx)(se,{files:b.map(a=>({oldPath:"add"===a.operation?void 0:a.path,newPath:"delete"===a.operation?void 0:a.moveTo??a.path,rows:a.rows}))}):(0,s.jsx)(sh,{text:a})}function se({files:a}){let{t:b}=(0,G.s)(),c=a.length>1;return(0,s.jsx)("div",{style:{maxHeight:560,overflowY:"auto",overflowX:"hidden",background:"var(--bg)"},children:a.map((a,d)=>(0,s.jsxs)("div",{style:{minWidth:0,borderTop:0===d?"none":"1px solid var(--border)",fontFamily:"var(--font-mono)",fontSize:"calc(12px + var(--chat-font-size-offset, 0px))",lineHeight:1.55},children:[c&&(0,s.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"minmax(0, 1fr) minmax(0, 1fr)",position:"sticky",top:0,zIndex:1,background:"var(--bg-panel)",borderBottom:"1px solid var(--border)"},children:[(0,s.jsx)(sf,{title:a.oldPath||b("i18n.before"),side:"left"}),(0,s.jsx)(sf,{title:a.newPath||b("i18n.after"),side:"right"})]}),(0,s.jsx)("div",{style:{display:"grid",gridTemplateColumns:"minmax(0, 1fr) minmax(0, 1fr)"},children:a.rows.map((a,b)=>"hunk"===a.type?null:(0,s.jsxs)("div",{style:{display:"contents"},children:[(0,s.jsx)(sg,{cell:a.left,side:"left"}),(0,s.jsx)(sg,{cell:a.right,side:"right"})]},b))})]},d))})}function sf({title:a,side:b}){return(0,s.jsx)("div",{title:a,style:{padding:"5px 10px",color:"var(--text-dim)",borderRight:"left"===b?"1px solid var(--border)":"none",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:a})}function sg({cell:a,side:b}){let c="added"===a.type?"rgba(34,197,94,0.12)":"removed"===a.type?"rgba(248,113,113,0.13)":"empty"===a.type?"var(--bg-subtle)":"transparent",d="added"===a.type?"+":"removed"===a.type?"-":" ",e="added"===a.type?"#22c55e":"removed"===a.type?"#f87171":"var(--text-dim)";return(0,s.jsxs)("div",{style:{display:"flex",minWidth:0,background:c,borderRight:"left"===b?"1px solid var(--border)":"none"},children:[(0,s.jsx)("span",{style:{width:42,padding:"0 6px",textAlign:"right",color:"var(--text-dim)",userSelect:"none",background:"var(--bg-panel)",borderRight:"1px solid var(--border)",flexShrink:0},children:a.lineNo??""}),(0,s.jsx)("span",{style:{width:18,padding:"0 5px",color:e,userSelect:"none",fontWeight:"context"===a.type||"empty"===a.type?400:700,flexShrink:0},children:d}),(0,s.jsx)("span",{style:{flex:1,minWidth:0,padding:"0 10px 0 0",color:"empty"===a.type?"var(--text-dim)":"var(--text)",whiteSpace:"pre-wrap",overflowWrap:"anywhere"},children:a.text||"\xa0"})]})}function sh({text:a}){let b=a.split(/\r?\n/);return(0,s.jsx)("div",{style:{maxHeight:520,overflowY:"auto",overflowX:"hidden",fontFamily:"var(--font-mono)",fontSize:"calc(12px + var(--chat-font-size-offset, 0px))",lineHeight:1.55,minWidth:0},children:b.map((a,b)=>{let c=a.startsWith("@@")?"hunk":a.startsWith("+")&&!a.startsWith("+++")?"added":a.startsWith("-")&&!a.startsWith("---")?"removed":"context";return(0,s.jsxs)("div",{style:{display:"flex",background:"added"===c?"rgba(34,197,94,0.12)":"removed"===c?"rgba(248,113,113,0.13)":"hunk"===c?"rgba(96,165,250,0.12)":"transparent",borderLeft:"added"===c?"3px solid #22c55e":"removed"===c?"3px solid #f87171":"hunk"===c?"3px solid var(--accent)":"3px solid transparent"},children:[(0,s.jsx)("span",{style:{width:48,padding:"0 8px",color:"var(--text-dim)",background:"var(--bg-panel)",borderRight:"1px solid var(--border)",textAlign:"right",userSelect:"none",flexShrink:0},children:b+1}),(0,s.jsx)("span",{style:{padding:"0 10px",whiteSpace:"pre-wrap",overflowWrap:"anywhere",color:"added"===c?"#22c55e":"removed"===c?"#f87171":"hunk"===c?"var(--accent)":"var(--text)"},children:a||"\xa0"})]},b)})})}function si({text:a,images:b,isEmpty:c,isError:d}){let{t:e}=(0,G.s)(),f=!c||0===b.length;return(0,s.jsxs)("div",{style:{borderTop:`1px solid ${d?"rgba(248,113,113,0.3)":"rgba(34,197,94,0.15)"}`,background:d?"rgba(248,113,113,0.04)":"var(--bg-subtle)"},children:[b.length>0&&(0,s.jsx)("div",{style:{display:"flex",gap:8,flexWrap:"wrap",padding:"10px",background:"var(--bg)"},children:(0,s.jsx)(sa,{images:b})}),f&&(0,s.jsx)("pre",{style:{margin:0,padding:"8px 10px",color:d?"#f87171":c?"var(--text-dim)":"var(--text-muted)",fontSize:"calc(12px + var(--chat-font-size-offset, 0px))",lineHeight:1.5,overflow:"auto",maxHeight:400,background:"var(--bg)",whiteSpace:"pre-wrap",wordBreak:"break-all",fontStyle:c?"italic":"normal",opacity:c?.6:1},children:c?e("i18n.noOutput"):a})]})}function sj({message:a}){let{t:b}=(0,G.s)(),c=so(a.content),d=(0,t.useMemo)(()=>{let a,b,d,e,f;return a=[],b=[],d=c.match(rT),e=d?.[1]??"",f=d?.index===void 0?c:c.slice(0,d.index),e.replace(rS,(c,d,e)=>{let f=e.split(/\r?\n/).map(a=>a.trim()).filter(Boolean);return"read-files"===d?a.push(...f):b.push(...f),""}),{body:f.trim(),readFiles:a,modifiedFiles:b}},[c]),e=r$(a.timestamp);return(0,s.jsx)("div",{style:{marginBottom:16},children:(0,s.jsxs)("div",{style:{border:"1px solid var(--border)",borderRadius:8,overflow:"hidden",background:"var(--bg)"},children:[(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"7px 10px",borderBottom:"1px solid var(--border)",background:"var(--bg-panel)",color:"var(--text-muted)"},children:[(0,s.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,fontWeight:650},children:"compaction"}),e&&(0,s.jsx)("span",{style:{marginLeft:"auto",color:"var(--text-dim)",fontSize:10},children:e})]}),(0,s.jsxs)("div",{style:{padding:"11px 13px 12px"},children:[(0,s.jsx)("div",{style:{color:"var(--text)",fontSize:"calc(15px + var(--chat-font-size-offset, 0px))",fontWeight:700,lineHeight:1.35},children:b("i18n.conversationCompacted")}),(0,s.jsx)("div",{style:{marginTop:3,marginBottom:10,color:"var(--text)",fontSize:"calc(14px + var(--chat-font-size-offset, 0px))",lineHeight:1.5},children:b("i18n.compactionDescription")}),d.body?(0,s.jsx)(rQ,{className:"markdown-compaction-message",children:d.body}):(0,s.jsx)("span",{style:{color:"var(--text-dim)",fontSize:12},children:b("i18n.noSummary")}),(0,s.jsx)(sk,{readFiles:d.readFiles,modifiedFiles:d.modifiedFiles})]})]})})}function sk({readFiles:a,modifiedFiles:b}){let{t:c}=(0,G.s)();if(0===a.length+b.length)return null;let d=[];return a.length>0&&d.push(`${a.length} read`),b.length>0&&d.push(`${b.length} modified`),(0,s.jsxs)("details",{className:"compaction-file-details",children:[(0,s.jsx)("summary",{children:c("i18n.fileContext",{details:d.join(", ")})}),b.length>0&&(0,s.jsx)(sl,{title:c("i18n.modifiedFiles"),files:b}),a.length>0&&(0,s.jsx)(sl,{title:c("i18n.readFiles"),files:a})]})}function sl({title:a,files:b}){return(0,s.jsxs)("div",{className:"compaction-file-section",children:[(0,s.jsx)("div",{className:"compaction-file-title",children:a}),(0,s.jsx)("ul",{className:"compaction-file-list",children:b.map(a=>(0,s.jsx)("li",{children:a},a))})]})}function sm({message:a,cwd:b,onOpenFile:c}){let{t:d}=(0,G.s)(),[e,f]=(0,t.useState)(!1),g=(a.details?.sessionIds??[]).length||1,h=1===g?d("subagent.notificationSingle"):d("subagent.notificationMany",{count:g}),i=so(a.content);return(0,s.jsxs)("div",{"data-step-card":"",style:{overflow:"hidden",borderRadius:4},children:[(0,s.jsxs)("button",{type:"button","aria-expanded":e,"data-step-trigger":"",title:h,onClick:()=>f(a=>!a),style:{display:"flex",alignItems:"center",gap:6,width:"100%",minHeight:24,padding:"3px 8px",border:"none",background:"none",color:"var(--text-muted)",cursor:"pointer",textAlign:"left"},children:[(0,s.jsx)("span",{style:{width:14,height:14,display:"grid",placeItems:"center",flexShrink:0},children:(0,s.jsx)(ai,{size:12,strokeWidth:2})}),(0,s.jsx)("span",{style:{minWidth:0,flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:"var(--text)",fontFamily:"var(--font-mono)",fontSize:11,fontWeight:500},children:h}),(0,s.jsx)("svg",{"data-step-chevron":"",width:"9",height:"9",viewBox:"0 0 10 10",fill:"none",stroke:"var(--text-dim)",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0,opacity:.4,transform:e?"rotate(180deg)":"none",transition:"transform 0.15s"},"aria-hidden":"true",children:(0,s.jsx)("polyline",{points:"2 3.5 5 6.5 8 3.5"})})]}),e&&i&&(0,s.jsx)("div",{style:{padding:"7px 10px 8px 28px",borderTop:"1px solid color-mix(in srgb, var(--border) 65%, transparent)",color:"var(--text-muted)",fontSize:"calc(11px + var(--chat-font-size-offset, 0px))",lineHeight:1.48},children:(0,s.jsx)(rY,{className:"markdown-subagent-notification",cwd:b,onOpenFile:c,children:i})})]})}function sn({message:a,cwd:b,onOpenFile:c}){let d,{t:e}=(0,G.s)(),f=!1===a.display,[g,h]=(0,t.useState)(!f),[i,j]=(0,t.useState)(!1),[k,l]=(0,t.useState)(!1),m=so(a.content),n=sp(a.content),o=void 0!==a.details,p=o?function(a){try{return JSON.stringify(a,null,2)}catch{return String(a)}}(a.details):"",q=a.customType||"extension",r=r$(a.timestamp);return(0,s.jsx)("div",{style:{marginBottom:16},children:(0,s.jsxs)("div",{style:{border:"1px solid var(--border)",borderRadius:8,overflow:"hidden",background:f?"var(--bg-subtle)":"var(--bg)",opacity:f&&!g?.82:1},children:[(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"7px 10px",borderBottom:"1px solid var(--border)",background:"var(--bg-panel)",color:"var(--text-muted)",fontSize:12},children:[(0,s.jsx)("span",{style:{color:"var(--text-muted)",fontFamily:"var(--font-mono)",fontSize:11,fontWeight:650},children:q}),f&&(0,s.jsx)("span",{style:{color:"var(--text-dim)",fontSize:11},children:e("i18n.hiddenExtensionMessage")}),r&&(0,s.jsx)("span",{style:{marginLeft:"auto",color:"var(--text-dim)",fontSize:10},children:r})]}),g?(0,s.jsxs)("div",{style:{padding:"6px 9px"},children:[n.length>0&&(0,s.jsx)("div",{style:{display:"flex",gap:6,flexWrap:"wrap",marginBottom:8*!!m},children:n.map((a,b)=>{let c=sq(a);return c?(0,s.jsx)(au,{src:c,children:(0,s.jsx)("img",{src:c,alt:"",style:{maxWidth:240,maxHeight:240,borderRadius:6,objectFit:"contain",display:"block",border:"1px solid var(--border)"}})},b):null})}),m?(0,s.jsx)(rQ,{className:"markdown-custom-message",cwd:b,onOpenFile:c,children:m}):(0,s.jsx)("span",{style:{color:"var(--text-dim)",fontSize:12},children:e("i18n.noMessage")})]}):(0,s.jsx)("button",{onClick:()=>h(!0),style:{display:"block",width:"100%",padding:"8px 10px",border:"none",background:"transparent",color:"var(--text-dim)",cursor:"pointer",fontSize:12,textAlign:"left"},children:m?(d=m.replace(/\s+/g," ").trim())?d.length>140?`${d.slice(0,140)}...`:d:"Show extension message":e("i18n.showExtensionMessage")}),(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"4px 9px",borderTop:"1px solid var(--border)",background:"var(--bg-subtle)"},children:[m||p?(0,s.jsx)("button",{onClick:()=>{mx(m||p).then(()=>{l(!0),setTimeout(()=>l(!1),1500)})},style:{padding:"3px 7px",border:"none",background:"none",color:k?"var(--accent)":"var(--text-dim)",cursor:"pointer",fontSize:11},children:e(k?"i18n.copied":"i18n.copy")}):null,(o||f)&&(0,s.jsx)("button",{onClick:()=>{f?h(a=>!a):j(a=>!a)},style:{marginLeft:"auto",padding:"3px 7px",border:"none",background:"none",color:"var(--text-dim)",cursor:"pointer",fontSize:11},children:e(f?g?"i18n.collapse":"i18n.expand":i?"i18n.hideDetails":"i18n.showDetails")})]}),o&&(f&&g||!f&&i)&&(0,s.jsx)("pre",{style:{margin:0,padding:"9px 10px",borderTop:"1px solid var(--border)",background:"var(--bg)",color:"var(--text-muted)",fontSize:"calc(12px + var(--chat-font-size-offset, 0px))",lineHeight:1.5,whiteSpace:"pre-wrap",wordBreak:"break-word",maxHeight:360,overflow:"auto",fontFamily:"var(--font-mono)"},children:p})]})})}function so(a){return"string"==typeof a?a:a.filter(a=>"text"===a.type).map(a=>a.text).join("\n")}function sp(a){return"string"==typeof a?[]:a.filter(a=>"image"===a.type)}function sq(a){return a.source?"base64"===a.source.type?`data:${a.source.media_type};base64,${a.source.data}`:a.source.url??"":a.data?`data:${a.mimeType};base64,${a.data}`:""}function sr({message:a,sessionId:b}){let[c,d]=(0,t.useState)(null),[e,f]=(0,t.useState)(!1),[g,h]=(0,t.useState)(null),i=!a.output&&void 0===a.exitCode&&!a.cancelled,j=a.cancelled||void 0!==a.exitCode&&0!==a.exitCode,k=b&&a.fullOutputPath?`/api/agent/${encodeURIComponent(b)}/bash-output?path=${encodeURIComponent(a.fullOutputPath)}`:null,l=a.truncated&&k&&null===c,m=c??a.output;async function n(){if(k){f(!0),h(null);try{let a=await fetch(k),b=await a.json();b.success?d(b.data?.output??""):h(b.error??"failed")}catch(a){h(String(a))}finally{f(!1)}}}let o=a.excludeFromContext?"bash (local)":"bash",p={type:"toolCall",toolCallId:`bash-${a.timestamp??""}`,toolName:o,input:{command:a.command}},q=i?void 0:{role:"toolResult",toolCallId:p.toolCallId,toolName:o,content:m?[{type:"text",text:m}]:[],isError:j,timestamp:a.timestamp};return(0,s.jsxs)("div",{style:{margin:"6px 0"},children:[(0,s.jsx)(r9,{block:p,result:q}),a.truncated&&k&&(0,s.jsxs)("div",{style:{padding:"4px 10px",fontSize:11,marginTop:-1},children:[l&&(0,s.jsx)("button",{onClick:n,disabled:e,style:{background:"none",border:"none",color:"var(--accent)",cursor:e?"default":"pointer",fontSize:11,padding:0,textDecoration:"underline"},children:e?"loading…":"view full output"}),(0,s.jsx)("a",{href:`${k}&download=1`,style:{marginLeft:10*!!l,color:"var(--accent)",fontSize:11,textDecoration:"underline"},children:"download full output"}),g&&(0,s.jsxs)("span",{style:{marginLeft:6,color:"var(--text-dim)",fontSize:11},children:["(",g,")"]})]})]})}var ss=c(96201),st=c.n(ss);function su({items:a,activeEntryId:b,onJumpToEntry:c,label:d,left:e,top:f,maxHeight:g=360,width:h=310}){var i,j;let k,l,m,{t:n}=(0,G.s)(),o=(0,t.useRef)(null),p=(0,t.useRef)(null),[q,r]=(0,t.useState)(!1),[u,v]=(0,t.useState)(0),[w,x]=(0,t.useState)(0),[y,z]=(0,t.useState)(null),A=(0,t.useRef)(0),B=(0,t.useRef)(null);(0,t.useRef)(!1);let C=(0,t.useRef)(null),D=(0,t.useRef)(null),E=(0,t.useRef)(null),F=(0,t.useId)(),H=a.findIndex(a=>a.entryId===b),I={start:k=Math.max(0,Math.min(H-Math.floor(7.5),(i=a.length)-15)),end:Math.min(i,k+15)},J=Math.min(28*a.length,g-28*(y?.state==="error")),{start:K,end:L}=(j=a.length,l=Math.min(J,28*j),{start:Math.max(0,Math.floor((m=Math.max(0,Math.min(u,28*j-l)))/28)-1),end:Math.min(j,Math.ceil((m+l)/28)+1)}),M=(0,t.useCallback)(()=>{C.current&&clearTimeout(C.current),D.current&&clearTimeout(D.current),E.current&&clearTimeout(E.current),B.current=null,r(!1)},[]),N=(0,t.useCallback)(()=>{D.current&&(clearTimeout(D.current),D.current=null),q||(C.current=setTimeout(()=>{r(!0)},100))},[q]),O=(0,t.useCallback)(a=>{C.current&&(clearTimeout(C.current),C.current=null);let b=document.activeElement;b instanceof HTMLElement&&a.currentTarget.contains(b)&&b.matches(":focus-visible")||(D.current=setTimeout(()=>{M()},150))},[M]);async function P(a){let b=++A.current;z({entryId:a,state:"loading"});try{await c(a),A.current===b&&(z(null),E.current&&clearTimeout(E.current),E.current=setTimeout(()=>{M()},160))}catch(c){if(A.current!==b)return;if(c&&"object"==typeof c&&"name"in c&&"AbortError"===c.name)return void z(null);z({entryId:a,state:"error",message:c instanceof Error?c.message:String(c)})}}function Q(b){let c=Math.max(0,Math.min(a.length-1,b));B.current=c,x(c);let d=p.current;if(d){var e;let a;e=d.scrollTop,d.scrollTop=(a=28*c)<e?a:a+28>e+J?a+28-J:e,v(d.scrollTop);let b=d.querySelector(`[data-outline-index="${c}"]`);b&&(B.current=null,b.focus({preventScroll:!0}))}r(!0)}return a.length?(0,s.jsxs)("div",{className:st().minimap,style:{left:e,top:f},onMouseEnter:N,onMouseLeave:O,onBlur:a=>{a.currentTarget.contains(a.relatedTarget)||M()},onKeyDown:a=>{"Escape"===a.key&&(a.preventDefault(),a.stopPropagation(),M(),o.current?.focus({preventScroll:!0}))},children:[(0,s.jsx)("button",{ref:o,type:"button",className:st().trigger,style:{height:Math.min(g,Math.max(20,(I.end-I.start)*8+6))},"aria-label":d,"aria-expanded":q,"aria-controls":q?F:void 0,"aria-busy":y?.state==="loading"||void 0,onClick:a=>{0===a.detail?Q(Math.max(0,H)):(C.current&&clearTimeout(C.current),D.current&&clearTimeout(D.current),r(a=>!a))},onKeyDown:a=>{("ArrowDown"===a.key||"ArrowUp"===a.key)&&(a.preventDefault(),Q(Math.max(0,H)))},children:a.slice(I.start,I.end).map((a,c)=>(0,s.jsx)("span",{className:st().marker,"data-marker-index":I.start+c,"data-active":b===a.entryId?"true":void 0,"aria-hidden":"true"},a.entryId))}),q&&(0,s.jsx)("div",{className:st().panel,style:{width:h},children:(0,s.jsxs)("nav",{id:F,className:st().menu,"aria-label":d,children:[(0,s.jsx)("div",{ref:p,className:st().list,style:{height:J},onScroll:a=>v(a.currentTarget.scrollTop),children:(0,s.jsx)("div",{className:st().track,style:{height:28*a.length},children:a.slice(K,L).map((c,d)=>{let e=K+d;return(0,s.jsx)("button",{type:"button",className:st().row,style:{top:28*e},"data-outline-index":e,"aria-current":b===c.entryId?"location":void 0,"aria-label":c.preview,tabIndex:e===(w>=K&&w<L?w:K)?0:-1,onFocus:()=>x(e),onKeyDown:b=>{let c={ArrowDown:e+1,ArrowUp:e-1,Home:0,End:a.length-1,PageDown:e+Math.max(1,Math.floor(J/28)),PageUp:e-Math.max(1,Math.floor(J/28))};b.key in c&&(b.preventDefault(),Q(c[b.key]))},onClick:()=>{P(c.entryId)},children:(0,s.jsx)("span",{className:st().rowText,children:c.preview})},c.entryId)})})}),y?.state==="error"&&(0,s.jsxs)("div",{className:st().status,role:"status","aria-live":"polite",children:[(0,s.jsx)("span",{children:`${n("chatMinimap.jumpFailed")||"跳转失败:"}${y.message||"请重试"}`}),(0,s.jsx)("button",{type:"button",onClick:()=>{P(y.entryId)},children:n("chatMinimap.retry")||"重试"})]})]})})]}):null}function sv({items:a,scrollContainer:b,contentContainer:c,loadedEntryIds:d,onJumpToEntry:e,label:f}){let[g,h]=(0,t.useState)(null),[i,j]=(0,t.useState)(null);return((0,t.useMemo)(()=>(function(a,b){let c=new Set(a),d=new Map,e=b.find(a=>c.has(a)),f=void 0===e?a.length:a.indexOf(e),g=a[f-1]??null;for(let a of b)c.has(a)&&(g=a),null!==g&&d.set(a,g);for(let b of a)d.set(b,b);return d})(a.map(a=>a.entryId),d),[a,d]),!i||i.maxHeight<52||i.width<80)?null:(0,N.createPortal)((0,s.jsx)(su,{items:a,activeEntryId:g,onJumpToEntry:e,label:f,...i}),document.body)}function sw(a,b,c){let d=JSON.stringify([a,b]),[e,f]=(0,t.useState)(null);return a&&e?.key===d?e.items:[]}function sx({sessionId:a,leafId:b,outlineRevision:c,...d}){let{t:e}=(0,G.s)(),f=sw(a,b,c);return a&&f.length?(0,s.jsx)(sv,{...d,items:f,label:e("chatMinimap.userOutline")},JSON.stringify([a,b])):null}function sy({sessionId:a,leafId:b,outlineRevision:c,scrollContainer:d,contentContainer:e,loadedEntryIds:f,onJumpToEntry:g}){let{t:h}=(0,G.s)(),i=sw(a,b,c),[j,k]=(0,t.useState)(!1),[l,m]=(0,t.useState)(null),n=(0,t.useRef)(null);return j&&i.length&&!("u"<typeof document)?(0,N.createPortal)((0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"fixed inset-0 z-[120] bg-black/50 transition-opacity",onClick:()=>k(!1),"aria-hidden":"true"}),(0,s.jsx)("section",{className:"fixed bottom-0 left-0 right-0 z-[121] flex max-h-[72dvh] flex-col overflow-hidden rounded-t-[16px] border-t border-[var(--border)] bg-[var(--bg-panel)] shadow-2xl pb-[max(12px,env(safe-area-inset-bottom))]",role:"dialog","aria-modal":"true","aria-label":h("i18n.outline")||"目录",children:(0,s.jsx)("div",{className:"flex-1 overflow-y-auto overscroll-contain px-2 py-2.5 space-y-0.5",children:i.map((a,b)=>{let c=l===a.entryId;return(0,s.jsxs)("button",{ref:c?n:void 0,type:"button",className:`relative flex w-full items-start gap-2.5 rounded-[4px] py-2 pl-2.5 pr-2 text-left transition-colors [-webkit-tap-highlight-color:transparent] ${c?"bg-[var(--bg-selected)] font-medium text-[var(--text)] before:absolute before:left-0 before:top-1.5 before:bottom-1.5 before:w-[2.5px] before:rounded-r-[1.5px] before:bg-[var(--accent)]":"text-[var(--text)] hover:bg-[var(--bg-hover)] active:bg-[var(--bg-hover)]"}`,"aria-current":c?"location":void 0,onClick:()=>{k(!1),g(a.entryId)},children:[(0,s.jsx)("span",{className:`w-5 shrink-0 text-right tabular-nums text-[13px] leading-5 select-none ${c?"font-semibold text-[var(--accent)]":"text-[var(--text-dim)]"}`,"aria-hidden":"true",children:b+1}),(0,s.jsx)("span",{className:"flex-1 min-w-0 line-clamp-2 text-[13px] leading-5",style:{hangingPunctuation:"first"},children:a.preview})]},a.entryId)})})})]}),document.body):null}var sz=function(a,b){return Object.defineProperty?Object.defineProperty(a,"raw",{value:b}):a.raw=b,a};(zh=zJ||(zJ={}))[zh.EOS=0]="EOS",zh[zh.Text=1]="Text",zh[zh.Incomplete=2]="Incomplete",zh[zh.ESC=3]="ESC",zh[zh.Unknown=4]="Unknown",zh[zh.SGR=5]="SGR",zh[zh.OSCURL=6]="OSCURL";class sA{constructor(){this.VERSION="6.0.6",this.setup_palettes(),this._use_classes=!1,this.bold=!1,this.faint=!1,this.italic=!1,this.underline=!1,this.fg=this.bg=null,this._buffer="",this._url_allowlist={http:1,https:1},this._escape_html=!0,this.boldStyle="font-weight:bold",this.faintStyle="opacity:0.7",this.italicStyle="font-style:italic",this.underlineStyle="text-decoration:underline"}set use_classes(a){this._use_classes=a}get use_classes(){return this._use_classes}set url_allowlist(a){this._url_allowlist=a}get url_allowlist(){return this._url_allowlist}set escape_html(a){this._escape_html=a}get escape_html(){return this._escape_html}set boldStyle(a){this._boldStyle=a}get boldStyle(){return this._boldStyle}set faintStyle(a){this._faintStyle=a}get faintStyle(){return this._faintStyle}set italicStyle(a){this._italicStyle=a}get italicStyle(){return this._italicStyle}set underlineStyle(a){this._underlineStyle=a}get underlineStyle(){return this._underlineStyle}setup_palettes(){this.ansi_colors=[[{rgb:[0,0,0],class_name:"ansi-black"},{rgb:[187,0,0],class_name:"ansi-red"},{rgb:[0,187,0],class_name:"ansi-green"},{rgb:[187,187,0],class_name:"ansi-yellow"},{rgb:[0,0,187],class_name:"ansi-blue"},{rgb:[187,0,187],class_name:"ansi-magenta"},{rgb:[0,187,187],class_name:"ansi-cyan"},{rgb:[255,255,255],class_name:"ansi-white"}],[{rgb:[85,85,85],class_name:"ansi-bright-black"},{rgb:[255,85,85],class_name:"ansi-bright-red"},{rgb:[0,255,0],class_name:"ansi-bright-green"},{rgb:[255,255,85],class_name:"ansi-bright-yellow"},{rgb:[85,85,255],class_name:"ansi-bright-blue"},{rgb:[255,85,255],class_name:"ansi-bright-magenta"},{rgb:[85,255,255],class_name:"ansi-bright-cyan"},{rgb:[255,255,255],class_name:"ansi-bright-white"}]],this.palette_256=[],this.ansi_colors.forEach(a=>{a.forEach(a=>{this.palette_256.push(a)})});let a=[0,95,135,175,215,255];for(let b=0;b<6;++b)for(let c=0;c<6;++c)for(let d=0;d<6;++d){let e={rgb:[a[b],a[c],a[d]],class_name:"truecolor"};this.palette_256.push(e)}let b=8;for(let a=0;a<24;++a,b+=10){let a={rgb:[b,b,b],class_name:"truecolor"};this.palette_256.push(a)}}escape_txt_for_html(a){return this._escape_html?a.replace(/[&<>"']/gm,a=>"&"===a?"&":"<"===a?"<":">"===a?">":'"'===a?""":"'"===a?"'":void 0):a}append_buffer(a){var b=this._buffer+a;this._buffer=b}get_next_packet(){var a={kind:zJ.EOS,text:"",url:""},b=this._buffer.length;if(0==b)return a;var c=this._buffer.indexOf("\x1b");if(-1==c)return a.kind=zJ.Text,a.text=this._buffer,this._buffer="",a;if(c>0)return a.kind=zJ.Text,a.text=this._buffer.slice(0,c),this._buffer=this._buffer.slice(c),a;if(0==c){if(b<3)return a.kind=zJ.Incomplete,a;var d=this._buffer.charAt(1);if("["!=d&&"]"!=d&&"("!=d)return a.kind=zJ.ESC,a.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),a;if("["==d){this._csi_regex||(this._csi_regex=sB(zK||(zK=sz(["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \x1b[ # CSI\n ([<-?]?) # private-mode char\n ([d;]*) # any digits or semicolons\n ([ -/]? # an intermediate modifier\n [@-~]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \x1b[ # CSI\n [ -~]* # anything legal\n ([\0-\x1f:]) # anything illegal\n )\n "],["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \\x1b\\[ # CSI\n ([\\x3c-\\x3f]?) # private-mode char\n ([\\d;]*) # any digits or semicolons\n ([\\x20-\\x2f]? # an intermediate modifier\n [\\x40-\\x7e]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \\x1b\\[ # CSI\n [\\x20-\\x7e]* # anything legal\n ([\\x00-\\x1f:]) # anything illegal\n )\n "]))));let b=this._buffer.match(this._csi_regex);if(null===b)return a.kind=zJ.Incomplete,a;if(b[4])return a.kind=zJ.ESC,a.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),a;""!=b[1]||"m"!=b[3]?a.kind=zJ.Unknown:a.kind=zJ.SGR,a.text=b[2];var e=b[0].length;return this._buffer=this._buffer.slice(e),a}if("]"==d){if(b<4)return a.kind=zJ.Incomplete,a;if("8"!=this._buffer.charAt(2)||";"!=this._buffer.charAt(3))return a.kind=zJ.ESC,a.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),a;this._osc_st||(this._osc_st=RegExp((zL||(zL=sz(["\n (?: # legal sequence\n (\x1b\\) # ESC | # alternate\n (\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\0-\x06] # anything illegal\n | # alternate\n [\b-\x1a] # anything illegal\n | # alternate\n [\x1c-\x1f] # anything illegal\n )\n "],["\n (?: # legal sequence\n (\\x1b\\\\) # ESC \\\n | # alternate\n (\\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\\x00-\\x06] # anything illegal\n | # alternate\n [\\x08-\\x1a] # anything illegal\n | # alternate\n [\\x1c-\\x1f] # anything illegal\n )\n "]))).raw[0].replace(/^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm,""),"g")),this._osc_st.lastIndex=0;{let b=this._osc_st.exec(this._buffer);if(null===b)return a.kind=zJ.Incomplete,a;if(b[3])return a.kind=zJ.ESC,a.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),a}{let b=this._osc_st.exec(this._buffer);if(null===b)return a.kind=zJ.Incomplete,a;if(b[3])return a.kind=zJ.ESC,a.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),a}this._osc_regex||(this._osc_regex=sB(zM||(zM=sz(["\n ^ # beginning of line\n #\n \x1b]8; # OSC Hyperlink\n [ -:<-~]* # params (excluding ;)\n ; # end of params\n ([!-~]{0,512}) # URL capture\n (?: # ST\n (?:\x1b\\) # ESC | # alternate\n (?:\x07) # BEL (what xterm did)\n )\n ([ -~]+) # TEXT capture\n \x1b]8;; # OSC Hyperlink End\n (?: # ST\n (?:\x1b\\) # ESC | # alternate\n (?:\x07) # BEL (what xterm did)\n )\n "],["\n ^ # beginning of line\n #\n \\x1b\\]8; # OSC Hyperlink\n [\\x20-\\x3a\\x3c-\\x7e]* # params (excluding ;)\n ; # end of params\n ([\\x21-\\x7e]{0,512}) # URL capture\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n ([\\x20-\\x7e]+) # TEXT capture\n \\x1b\\]8;; # OSC Hyperlink End\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n "]))));let c=this._buffer.match(this._osc_regex);if(null===c)return a.kind=zJ.ESC,a.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),a;a.kind=zJ.OSCURL,a.url=c[1],a.text=c[2];var e=c[0].length;return this._buffer=this._buffer.slice(e),a}if("("==d)return a.kind=zJ.Unknown,this._buffer=this._buffer.slice(3),a}}ansi_to_html(a){this.append_buffer(a);for(var b=[];;){var c=this.get_next_packet();if(c.kind==zJ.EOS||c.kind==zJ.Incomplete)break;c.kind!=zJ.ESC&&c.kind!=zJ.Unknown&&(c.kind==zJ.Text?b.push(this.transform_to_html(this.with_state(c))):c.kind==zJ.SGR?this.process_ansi(c):c.kind==zJ.OSCURL&&b.push(this.process_hyperlink(c)))}return b.join("")}with_state(a){return{bold:this.bold,faint:this.faint,italic:this.italic,underline:this.underline,fg:this.fg,bg:this.bg,text:a.text}}process_ansi(a){let b=a.text.split(";");for(;b.length>0;){let a=parseInt(b.shift(),10);if(isNaN(a)||0===a)this.fg=null,this.bg=null,this.bold=!1,this.faint=!1,this.italic=!1,this.underline=!1;else if(1===a)this.bold=!0;else if(2===a)this.faint=!0;else if(3===a)this.italic=!0;else if(4===a)this.underline=!0;else if(21===a)this.bold=!1;else if(22===a)this.faint=!1,this.bold=!1;else if(23===a)this.italic=!1;else if(24===a)this.underline=!1;else if(39===a)this.fg=null;else if(49===a)this.bg=null;else if(a>=30&&a<38)this.fg=this.ansi_colors[0][a-30];else if(a>=40&&a<48)this.bg=this.ansi_colors[0][a-40];else if(a>=90&&a<98)this.fg=this.ansi_colors[1][a-90];else if(a>=100&&a<108)this.bg=this.ansi_colors[1][a-100];else if((38===a||48===a)&&b.length>0){let c=38===a,d=b.shift();if("5"===d&&b.length>0){let a=parseInt(b.shift(),10);a>=0&&a<=255&&(c?this.fg=this.palette_256[a]:this.bg=this.palette_256[a])}if("2"===d&&b.length>2){let a=parseInt(b.shift(),10),d=parseInt(b.shift(),10),e=parseInt(b.shift(),10);if(a>=0&&a<=255&&d>=0&&d<=255&&e>=0&&e<=255){let b={rgb:[a,d,e],class_name:"truecolor"};c?this.fg=b:this.bg=b}}}}}transform_to_html(a){let b=a.text;if(0===b.length||(b=this.escape_txt_for_html(b),!a.bold&&!a.italic&&!a.faint&&!a.underline&&null===a.fg&&null===a.bg))return b;let c=[],d=[],e=a.fg,f=a.bg;a.bold&&c.push(this._boldStyle),a.faint&&c.push(this._faintStyle),a.italic&&c.push(this._italicStyle),a.underline&&c.push(this._underlineStyle),this._use_classes?(e&&("truecolor"!==e.class_name?d.push(`${e.class_name}-fg`):c.push(`color:rgb(${e.rgb.join(",")})`)),f&&("truecolor"!==f.class_name?d.push(`${f.class_name}-bg`):c.push(`background-color:rgb(${f.rgb.join(",")})`))):(e&&c.push(`color:rgb(${e.rgb.join(",")})`),f&&c.push(`background-color:rgb(${f.rgb})`));let g="",h="";return d.length&&(g=` class="${d.join(" ")}"`),c.length&&(h=` style="${c.join(";")}"`),`<span${h}${g}>${b}</span>`}process_hyperlink(a){let b=a.url.split(":");return b.length<1||!this._url_allowlist[b[0]]?"":`<a href="${this.escape_txt_for_html(a.url)}">${this.escape_txt_for_html(a.text)}</a>`}}function sB(a){return new RegExp(a.raw[0].replace(/^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm,""))}function sC({text:a}){let b=(0,t.useMemo)(()=>new sA().ansi_to_html(a),[a]);return(0,s.jsx)("span",{dangerouslySetInnerHTML:{__html:b}})}let sD="/icons/icon-192.png";function sE(a=document){return"visible"!==a.visibilityState||!a.hasFocus()}function sF(a){switch(a.method){case"select":case"confirm":case"input":case"editor":return!0;case"custom":return!0!==a.closed;default:return!1}}async function sG(a,b={createWindowNotification:(a,b)=>new Notification(a,b),getServiceWorkerRegistration:"serviceWorker"in navigator?()=>navigator.serviceWorker.getRegistration():null}){let c={body:a.body,icon:sD,badge:sD,...a.tag?{tag:a.tag,renotify:!0}:{}};if(b.getServiceWorkerRegistration)try{let d=await b.getServiceWorkerRegistration();if(d)return await d.showNotification(a.title,{...c,data:{url:a.sessionUrl}}),"service-worker"}catch{}try{let d=b.createWindowNotification(a.title,c);return d.onclick=()=>{d.close(),a.onClick()},"window"}catch{return null}}function sH(a){return"object"==typeof a&&null!==a&&!Array.isArray(a)}function sI(a,b={}){if("assistant"!==a.role)return a;let c=a.content;if(!Array.isArray(c))return a;let d=c.map(a=>(function(a,b={}){if(!sH(a)||"toolCall"!==a.type)return null;let c={type:"toolCall",toolCallId:"string"==typeof a.toolCallId?a.toolCallId:"string"==typeof a.id?a.id:"",toolName:"string"==typeof a.toolName?a.toolName:"string"==typeof a.name?a.name:"",input:"object"!=typeof a.input||null===a.input||Array.isArray(a.input)?"object"!=typeof a.arguments||null===a.arguments||Array.isArray(a.arguments)?{}:a.arguments:a.input},d=b.includeStreamingRawInput?function(a){if("string"==typeof a.rawInput)return a.rawInput;if("string"==typeof a.partialJson)return a.partialJson;if("string"==typeof a.partialArgs)return a.partialArgs;let b=sH(a.customInput)?a.customInput:null,c=b&&"string"==typeof b.property?b.property:null,d=sH(a.arguments)?a.arguments:null;return c&&d&&"string"==typeof d[c]?d[c]:void 0}(a):void 0;return void 0===d?c:{...c,rawInput:d}})(a,b)??a);return{...a,content:d}}class sJ extends Error{constructor(a,b,c,d){super(a),this.status=b,this.code=c,this.accepted=d,this.name="AgentCommandError"}}function sK(a){return a instanceof sJ&&"prompt_rejected"===a.code&&!1===a.accepted}async function sL(a,b){let c=await fetch(`/api/agent/${encodeURIComponent(a)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(b)}),d=await c.json().catch(()=>({}));if(!c.ok||d.error)throw new sJ(d.error??`HTTP ${c.status}`,c.status,d.code,d.accepted);return d.data}let sM=["off","minimal","low","medium","high","xhigh","max"];function sN(a,b){b&&(a.tokens.input+=b.input??0,a.tokens.output+=b.output??0,a.tokens.cacheRead+=b.cacheRead??0,a.tokens.cacheWrite+=b.cacheWrite??0,a.cost+=b.cost?.total??0)}function sO(a){let b={userMessages:0,assistantMessages:0,toolCalls:0,toolResults:0,totalMessages:0,tokens:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0},cost:0};for(let c of a)"custom"!==c.role&&(b.totalMessages+=1,"user"===c.role?b.userMessages+=1:"toolResult"===c.role?(b.toolResults+=1,sN(b,c.usage)):"assistant"===c.role&&(b.assistantMessages+=1,Array.isArray(c.content)&&(b.toolCalls+=c.content.filter(a=>"toolCall"===a.type).length),sN(b,c.usage)));return b.tokens.total=b.tokens.input+b.tokens.output+b.tokens.cacheRead+b.tokens.cacheWrite,b}function sP(a){if(!a||"object"!=typeof a||"image"!==a.type)return"";let b=a.source;return b&&"object"==typeof b?["url"===b.type?"url":"base64","string"==typeof b.media_type?b.media_type:"","string"==typeof b.data?b.data:"","string"==typeof b.url?b.url:""].join(":"):["base64","string"==typeof a.mimeType?a.mimeType:"","string"==typeof a.data?a.data:"",""].join(":")}function sQ(a){let b,c=a.content;return"string"==typeof c?JSON.stringify({text:c,images:[]}):Array.isArray(c)?JSON.stringify({text:"string"==typeof(b=a.content)?b:Array.isArray(b)?b.map(a=>a&&"object"==typeof a&&"text"===a.type&&"string"==typeof a.text?a.text:"").filter(Boolean).join("\n"):"",images:c.map(sP).filter(Boolean)}):JSON.stringify({text:"",images:[]})}class sR extends Error{constructor(a,b){super(b??("ready_timeout"===a?"Timed out starting the agent session. Please try again.":"Failed to connect to the agent event stream. Please try again.")),this.status=a,this.name="AgentEventConnectionError"}}class sS{constructor(a){this.options=a,this.current=null,this.retry=null,this.retryGeneration=0,this.epoch=0}close(){this.epoch+=1,this.stopRetrying(),this.current&&this.discard(this.current,new sR("closed"))}maintain(a){if(!this.options.shouldMaintain(a))return;let b=this.retryGeneration;this.ensureConnected(a).catch(c=>{b===this.retryGeneration&&(c instanceof sR?"startup_error"===c.status?this.stopRetrying():this.scheduleRetry(a):this.options.onUnexpectedError?.(c))})}reconnect(a){return this.ensureConnected(a,!0)}async ensureConnected(a,b=!1){let c=this.epoch,d=b;for(;;){if(this.epoch!==c)throw new sR("closed");let b=this.current;if(!b||b.sessionId!==a||d)d=!1,b=this.open(a);else if(b.attempt.ready&&1===b.source.readyState)return;try{await b.attempt.promise}catch(d){if(this.epoch!==c)throw d;if(this.current!==b&&this.current?.sessionId===a)continue;throw d}if(this.epoch!==c)throw new sR("closed");if(this.current!==b){if(this.current?.sessionId===a)continue;throw new sR("closed")}if(1===b.source.readyState)return;this.discard(b,new sR("closed"))}}open(a){let b,c,d;this.current&&this.discard(this.current,new sR("closed"));try{b=this.options.createSource(a)}catch(a){throw new sR("closed",a instanceof Error?a.message:String(a))}let e=!1,f=new Promise((a,b)=>{c=a,d=b}),g=setTimeout(()=>{this.fail(i,new sR("ready_timeout"))},this.options.readinessTimeoutMs),h={promise:f,ready:!1,succeed(){e||(e=!0,clearTimeout(g),c())},fail(a){e||(e=!0,clearTimeout(g),d(a))}},i={sessionId:a,source:b,attempt:h};return this.current=i,b.onmessage=a=>{let b;if(this.current===i){try{b=JSON.parse(a.data)}catch{return}if("connected"===b.type)h.ready=!0,h.succeed(),this.stopRetrying();else if("startup_error"===b.type){let a="string"==typeof b.errorMessage?b.errorMessage:void 0;this.fail(i,new sR("startup_error",a));return}this.options.onEvent(b)}},b.onerror=()=>{this.fail(i,new sR("closed"))},i}fail(a,b){this.current===a&&(this.discard(a,b),"startup_error"===b.status?this.stopRetrying():this.scheduleRetry(a.sessionId))}discard(a,b){a.attempt.fail(b),a.source.close(),this.current===a&&(this.current=null)}scheduleRetry(a){if(!this.options.shouldMaintain(a)||this.retry?.sessionId===a)return;this.clearRetry();let b=setTimeout(()=>{this.retry?.timer===b&&(this.retry=null,this.maintain(a))},this.options.reconnectDelayMs);this.retry={sessionId:a,timer:b}}stopRetrying(){this.retryGeneration+=1,this.clearRetry()}clearRetry(){this.retry&&clearTimeout(this.retry.timer),this.retry=null}}function sT(a){var b;return("message_start"===a.type||"message_end"===a.type)&&"object"==typeof(b=a.message)&&null!==b&&!Array.isArray(b)&&"system"===a.message.role}let sU={isStreaming:!1,streamingMessage:null};function sV(a,b,c){let d=a.streamingMessage;if(!d||!Number.isInteger(b)||b<0)return a;let e=[...d.content],f=c(e[b]);return f?(e[b]=f,{isStreaming:!0,streamingMessage:{...d,content:e}}):a}function sW(a,b){switch(b.type){case"text_start":return sV(a,b.contentIndex,()=>({type:"text",text:""}));case"text_delta":return sV(a,b.contentIndex,a=>a?.type==="text"?{...a,text:a.text+b.delta}:null);case"text_end":return sV(a,b.contentIndex,a=>({...a?.type==="text"?a:{},type:"text",text:b.content}));case"thinking_start":{let c=Date.now(),d=a.streamingMessage;if(!d)return a;let e=[...d.content];for(let a=0;a<e.length;a++){let d=e[a];a!==b.contentIndex&&d?.type==="thinking"&&"number"!=typeof d.endedAt&&(e[a]={...d,endedAt:c})}return e[b.contentIndex]={type:"thinking",thinking:"",startedAt:c},{isStreaming:!0,streamingMessage:{...d,content:e}}}case"thinking_delta":return sV(a,b.contentIndex,a=>a?.type==="thinking"?{...a,thinking:a.thinking+b.delta,startedAt:a.startedAt??Date.now()}:null);case"thinking_end":return sV(a,b.contentIndex,a=>({...a?.type==="thinking"?a:{startedAt:Date.now()},type:"thinking",thinking:b.content,endedAt:Date.now()}));case"toolcall_start":return sV(a,b.contentIndex,a=>a?.type==="toolCall"?{...a,toolCallId:b.id??a.toolCallId,toolName:b.toolName??a.toolName,rawInput:""}:"string"!=typeof b.toolName?null:{type:"toolCall",toolCallId:b.id??"",toolName:b.toolName,input:{},rawInput:""});case"toolcall_delta":return sV(a,b.contentIndex,a=>a?.type==="toolCall"?{...a,toolCallId:b.id||a.toolCallId,toolName:b.toolName||a.toolName,rawInput:(a.rawInput??"")+b.delta}:null);case"toolcall_end":return sV(a,b.contentIndex,()=>({type:"toolCall",toolCallId:b.toolCall.id,toolName:b.toolCall.name,input:b.toolCall.arguments}));default:return a}}function sX(a,b){switch(b.type){case"start":return{isStreaming:!0,streamingMessage:null};case"resume":return{...a,isStreaming:!0};case"snapshot":{let c=sI(b.message,{includeStreamingRawInput:!0});if("assistant"!==c.role)return a;let d="number"==typeof c.timestamp?c.timestamp:Date.now(),e=a.streamingMessage,f=c.content.map((a,b)=>{if("thinking"!==a.type)return a;let c=e?.content[b],f=a.startedAt??(c?.type==="thinking"?c.startedAt:void 0)??d,g=a.endedAt??(c?.type==="thinking"?c.endedAt:void 0);return a.startedAt===f&&a.endedAt===g?a:{...a,startedAt:f,..."number"==typeof g?{endedAt:g}:{}}});return{isStreaming:!0,streamingMessage:{...c,timestamp:d,content:f}}}case"delta":return sW(a,b.event);case"deltas":return b.events.reduce(sW,a);case"end":return sU;default:return a}}class sY{begin(a){this.inFlight.add(a)}cancel(a){this.cancelled.add(a)}markDispatched(a){this.dispatched.add(a)}isCancelled(a){return this.cancelled.has(a)}wasDispatched(a){return this.dispatched.has(a)}isInFlight(a){return this.inFlight.has(a)}shouldAbandonUnsent(a){return this.isCancelled(a)&&!this.wasDispatched(a)}forget(a){this.cancelled.delete(a),this.dispatched.delete(a),this.inFlight.delete(a)}constructor(){this.cancelled=new Set,this.dispatched=new Set,this.inFlight=new Set}}function sZ(a,b,c,d){return a===b&&"string"==typeof c&&c.length>0&&c===d}async function s$(a){let{gate:b,runId:c}=a;b.begin(c);let d=()=>!(!b.isCancelled(c)||b.wasDispatched(c))&&(a.abandonUnsent(),!0),e=null,f=!1;try{if(d()||(e=await a.prepare(),d()))return{status:"abandoned"};if(!e)throw Error("No active session for the prompt");if(f=!0,b.markDispatched(c),a.onDispatched?.(),await a.send(e),!b.isCancelled(c))return{status:"sent",sessionId:e};if(a.promptPending()&&sZ(c,a.currentRunId(),e,a.currentSessionId()))return await a.abort(e),{status:"aborted",sessionId:e};return{status:"stale"}}catch(d){if(!b.isCancelled(c))return{status:"failed",sessionId:e,error:d,requestStarted:f};if(!f)return a.abandonUnsent(),{status:"abandoned"};if(a.promptPending()&&sZ(c,a.currentRunId(),e,a.currentSessionId()))return{status:"cancelled_after_dispatch",sessionId:e};return{status:"stale"}}finally{b.forget(c)}}async function s_(a){let b=null,c=!1;try{if(b=await a.prepare(),a.abortRequested())return a.restoreUnsent(),{status:"restored_unsent"};if(!b)throw Error("Unable to create a session for the shell command");return c=!0,await a.send(b),await a.loadResults(b),a.abortRequested()?{status:"cancelled_after_dispatch",sessionId:b}:{status:"completed",sessionId:b}}catch(d){if(!a.abortRequested())throw d;if(!c)return a.restoreUnsent(),{status:"restored_unsent"};if(b)try{await a.loadResults(b)}catch{}return{status:"cancelled_after_dispatch",sessionId:b}}}function s0(a){return(a??[]).map(a=>"string"==typeof a?{text:a,images:[]}:{text:"string"==typeof a.text?a.text:"",images:Array.isArray(a.images)?a.images.flatMap(a=>{let b=a&&"object"==typeof a&&"string"==typeof a.data&&0!==a.data.length&&"string"==typeof a.mimeType&&a.mimeType.startsWith("image/")?{data:a.data,mimeType:a.mimeType}:null;return b?[b]:[]}):[]})}let s1=new Map,s2=new Map;function s3(a){return"string"==typeof a?a:a?.text??""}function s4(a){return{steering:(a?.steering??[]).map(s3),followUp:(a?.followUp??[]).map(s3)}}function s5(a,b){return a===b||null!==a&&null!==b&&a.tokens===b.tokens&&a.percent===b.percent&&a.contextWindow===b.contextWindow?a:b}function s6(a){return new Promise(b=>setTimeout(b,a))}function s7(a){let b=a.findIndex(a=>!a.exiting);return -1===b?a:a.map((a,c)=>c===b?{...a,exiting:!0}:a)}function s8(a,b){switch(b.type){case"add":if(a.visible.some(a=>a.exiting)||a.visible.length>=5)return{visible:a.visible.some(a=>a.exiting)?a.visible:s7(a.visible),pending:[...a.pending,b.notice]};return{...a,visible:[...a.visible,b.notice]};case"mark_oldest_exiting":return{...a,visible:s7(a.visible)};case"remove":return function(a,b){let c=a,d=b;for(;d.length>0&&c.length<5;){let[a,...b]=d;c=[...c,a],d=b}return d.length>0&&!c.some(a=>a.exiting)&&(c=s7(c)),{visible:c,pending:d}}(a.visible.filter(a=>a.id!==b.id),a.pending);default:return a}}function s9(a,b){return a&&"object"==typeof a?"number"!=typeof a.tokensBefore||"number"!=typeof a.estimatedTokensAfter?null:{reason:b,tokensBefore:a.tokensBefore,estimatedTokensAfter:a.estimatedTokensAfter}:null}function ta(a){if(!a?.defaultModel)return null;let b=a.modelList?.find(b=>b.id===a.defaultModel?.modelId&&b.provider===a.defaultModel?.provider);return b?{provider:b.provider,modelId:b.id}:null}function tb({showCurrentVersion:a=!1}){let{t:b}=(0,G.s)(),[c,d]=(0,t.useState)(null),[e,f]=(0,t.useState)(!1),[g,h]=(0,t.useState)("idle"),[i,j]=(0,t.useState)(null),k=(0,t.useRef)(!1),l=async()=>{if(!k.current&&window.confirm(b("appUpdate.confirm"))){k.current=!0,j(null),h("requesting");try{let a=await fetch("/api/app-update",{method:"POST"});if(202!==a.status){let c=await a.json().catch(()=>null);throw Error(c?.error||b("appUpdate.failed"))}h("waiting")}catch(a){j(a instanceof Error?a.message:b("appUpdate.failed")),h("idle"),k.current=!1}}},m=c?.updateAvailable&&c.latestVersion&&c.releaseUrl;if(!a&&!m)return null;let n=b("appUpdate.releaseNotes",{version:c?.latestVersion??""});return(0,s.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:a?"flex-start":"center",gap:6},children:[a&&(0,s.jsxs)("p",{style:{fontSize:12},children:[b("appUpdate.currentVersion",{version:c?.currentVersion??"1.1.7"??"dev"}),!m&&(0,s.jsxs)("span",{role:"status",style:{color:"var(--text-muted)"},children:[" \xb7 ",b(e?"appUpdate.checkFailed":c?c.releaseUrl?"appUpdate.upToDate":"appUpdate.checkDisabled":"appUpdate.checking")]})]}),m&&c&&(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,s.jsxs)("a",{href:c.releaseUrl,target:"_blank",rel:"noopener noreferrer",title:n,"aria-label":n,onMouseEnter:a=>{a.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:a=>{a.currentTarget.style.background="transparent"},style:{display:"inline-flex",alignItems:"center",alignSelf:"center",gap:3,minHeight:32,minWidth:0,padding:"0 4px",background:"transparent",borderRadius:4,color:"var(--accent)",fontSize:12,fontWeight:600,lineHeight:1.2,textDecoration:"none",transition:"background 0.12s",whiteSpace:"nowrap"},children:[(0,s.jsxs)("span",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:["v",c.latestVersion]}),(0,s.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{flexShrink:0},children:[(0,s.jsx)("path",{d:"M7 17 17 7"}),(0,s.jsx)("path",{d:"M7 7h10v10"})]})]}),c.canUpdate&&(0,s.jsx)("button",{type:"button",disabled:"idle"!==g,onClick:()=>{l()},style:{color:"var(--accent)",fontSize:12,cursor:"idle"===g?"pointer":"default"},children:b("appUpdate.updateAndRestart")})]}),a&&m&&!c?.canUpdate&&(c?.manualCommand?(0,s.jsxs)("p",{style:{color:"var(--text-muted)",fontSize:12},children:[b("appUpdate.manualCommand"),(0,s.jsx)("br",{}),(0,s.jsx)("code",{children:c.manualCommand})]}):(0,s.jsx)("p",{style:{color:"var(--text-muted)",fontSize:12},children:b("appUpdate.manualUpdate")})),("requesting"===g||"waiting"===g)&&(0,s.jsx)("p",{role:"status",style:{color:"var(--text-muted)",fontSize:12},children:b("appUpdate.waiting")}),i&&(0,s.jsx)("p",{role:"alert",style:{color:"var(--text-muted)",fontSize:12},children:i}),"timeout"===g&&(0,s.jsxs)("div",{role:"alert",style:{color:"var(--text-muted)",fontSize:12,textAlign:"center"},children:[(0,s.jsx)("p",{children:b("appUpdate.timeout")}),(0,s.jsx)("code",{children:"npm install -g @calmabacus/pi-web@latest"}),(0,s.jsx)("p",{children:b("appUpdate.thenStart")}),(0,s.jsx)("code",{children:"pi-web"})]})]})}function tc({label:a}){return(0,s.jsx)("div",{role:"status","aria-label":a,className:"flex h-[28px] items-center",style:{marginBottom:8},children:(0,s.jsx)(ah,{size:12})})}function td({cwd:a,onChange:b,recentPaths:c,pinnedPaths:d,onTogglePinnedCwd:e,homeDir:f,worktreeInfo:g}){let{t:h}=(0,G.s)(),i=(0,t.useRef)(null),[j,k]=(0,t.useState)(!1),[l,m]=(0,t.useState)(!1),[n,o]=(0,t.useState)(!1),[p,q]=(0,t.useState)(!1),[r,u]=(0,t.useState)(null),v=[...d.map(a=>({path:a,pinned:!0})),...c.filter(a=>!d.includes(a)).map(a=>({path:a,pinned:!1}))],w=g&&(g.forCwd===a||g.projectRoot===a||g.currentWorktreePath===a||g.worktrees.some(b=>b.path===a))?g:null,x=w?.worktrees??[],y=x.find(b=>b.path===a||b.path===w?.currentWorktreePath)??x.find(a=>a.isMain),z=y?.branch??null,A=w?.projectRoot??a,B=f&&A.startsWith(f)?`~${A.slice(f.length)}`:A,C=()=>{k(!1),m(!1)},D=c=>{c===a?C():(q(!0),b(c).then(C).finally(()=>q(!1)))};return(0,s.jsxs)("div",{ref:i,style:{position:"relative",marginTop:10,maxWidth:"100%",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:6,flexWrap:"wrap"},children:[(0,s.jsx)("button",{type:"button",title:h("chat.changeWorkingDirectory"),"aria-label":`${h("chat.changeWorkingDirectory")}: ${A}`,"aria-expanded":j,onClick:()=>{k(a=>!a),m(!1)},onMouseEnter:a=>{a.currentTarget.style.color="var(--text)"},onMouseLeave:a=>{a.currentTarget.style.color="var(--text-muted)"},style:{maxWidth:"min(80vw, 360px)",border:"none",background:"none",color:"var(--text-muted)",fontFamily:"var(--font-mono)",fontSize:12,lineHeight:1.4,padding:0,cursor:"pointer"},children:(0,s.jsx)("span",{style:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",direction:"rtl",textAlign:"center"},children:(0,s.jsx)("span",{style:{unicodeBidi:"plaintext"},children:B})})}),z&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{"aria-hidden":"true",style:{color:"var(--text-dim)",fontSize:12,userSelect:"none"},children:"|"}),(0,s.jsx)("button",{type:"button",title:y?.path,"aria-label":`${h("sidebar.switchWorktree")}: ${z}`,"aria-expanded":l,onClick:()=>{m(a=>!a),k(!1)},onMouseEnter:a=>{a.currentTarget.style.color="var(--text)"},onMouseLeave:a=>{a.currentTarget.style.color="var(--text-muted)"},style:{maxWidth:220,border:"none",background:"none",color:"var(--text-muted)",fontFamily:"var(--font-mono)",fontSize:12,lineHeight:1.4,padding:0,cursor:"pointer",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:z})]}),j&&(0,s.jsxs)("div",{role:"listbox","aria-label":h("chat.changeWorkingDirectory"),style:{position:"absolute",top:"calc(100% + 6px)",left:"50%",transform:"translateX(-50%)",width:"max-content",minWidth:200,maxWidth:"min(90vw, 260px)",zIndex:50,background:"var(--bg)",border:"1px solid var(--border)",borderRadius:4,boxShadow:"0 6px 20px rgba(0,0,0,0.10)",overflow:"hidden",textAlign:"left"},children:[(0,s.jsx)("div",{style:{maxHeight:280,overflowY:"auto"},children:v.map(({path:b,pinned:c})=>{let d=b===a||!!(w?.projectRoot&&b===w.projectRoot);return(0,s.jsxs)("div",{className:"project-pin-row",style:{display:"flex",alignItems:"center",borderBottom:"1px solid var(--border)"},children:[(0,s.jsxs)("button",{type:"button",role:"option","aria-selected":d,disabled:p,onClick:()=>D(b),title:b,style:{display:"flex",alignItems:"center",gap:7,flex:1,minWidth:0,padding:"8px 10px",background:"var(--bg)",border:"none",color:d?"var(--text)":"var(--text-muted)",cursor:p?"default":"pointer",fontSize:11,fontFamily:"var(--font-mono)",textAlign:"left"},children:[d?(0,s.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",stroke:"var(--accent)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0},children:(0,s.jsx)("polyline",{points:"1.5 5 4 7.5 8.5 2.5"})}):(0,s.jsx)("span",{style:{width:10,flexShrink:0}}),(0,s.jsx)("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:f&&b.startsWith(f)?`~${b.slice(f.length)}`:b})]}),(0,s.jsx)("button",{type:"button",className:"project-pin-btn",title:h(c?"sidebar.unpinDirectory":"sidebar.pinDirectory"),"aria-label":h(c?"sidebar.unpinDirectory":"sidebar.pinDirectory"),"aria-pressed":c,onClick:()=>e?.(b),style:{display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24,marginRight:4,padding:0,background:"none",border:"none",borderRadius:4,cursor:"pointer",flexShrink:0},children:(0,s.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:c?"currentColor":"none",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("line",{x1:"12",y1:"17",x2:"12",y2:"22"}),(0,s.jsx)("path",{d:"M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z"})]})})]},b)})}),(0,s.jsx)("button",{type:"button",onClick:()=>{k(!1),o(!0),u(null)},style:{display:"block",width:"100%",padding:"8px 10px",background:"none",border:"none",color:"var(--text-muted)",cursor:"pointer",fontSize:11,textAlign:"left"},children:h("sidebar.customPath")})]}),l&&x.length>0&&(0,s.jsx)("div",{role:"listbox","aria-label":h("sidebar.switchWorktree"),style:{position:"absolute",top:"calc(100% + 6px)",left:"50%",transform:"translateX(-50%)",width:"max-content",minWidth:180,maxWidth:"min(90vw, 260px)",zIndex:50,background:"var(--bg)",border:"1px solid var(--border)",borderRadius:4,boxShadow:"0 6px 20px rgba(0,0,0,0.10)",overflow:"hidden",textAlign:"left"},children:(0,s.jsx)("div",{style:{maxHeight:280,overflowY:"auto"},children:x.map(b=>{let c=b.path===a||b.path===w?.currentWorktreePath;return(0,s.jsxs)("button",{type:"button",role:"option","aria-selected":!!c,disabled:p,onClick:()=>D(b.path),title:b.path,style:{display:"flex",alignItems:"center",gap:7,width:"100%",padding:"8px 10px",background:"var(--bg)",border:"none",borderBottom:"1px solid var(--border)",color:c?"var(--text)":"var(--text-muted)",cursor:p?"default":"pointer",fontSize:11,fontFamily:"var(--font-mono)",textAlign:"left"},children:[c?(0,s.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",stroke:"var(--accent)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0},children:(0,s.jsx)("polyline",{points:"1.5 5 4 7.5 8.5 2.5"})}):(0,s.jsx)("span",{style:{width:10,flexShrink:0}}),(0,s.jsx)("span",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:b.branch??b.path}),b.isMain&&(b.branch??"").toLowerCase()!==h("sidebar.main").toLowerCase()&&(0,s.jsx)("span",{style:{flexShrink:0,color:"var(--text-dim)",fontSize:10},children:h("sidebar.main")})]},b.path)})})}),n&&(0,s.jsx)(R,{initialPath:a,busy:p,error:r,onCancel:()=>{o(!1),u(null)},onSelect:a=>{q(!0),u(null),b(a).then(()=>o(!1),a=>u(a instanceof Error?a.message:String(a))).finally(()=>q(!1))}})]})}function te(a,b,c){for(let e=c-1;e>b;e--){var d;if("assistant"===(d=a[e]).role&&b2(d))return e}for(let d=c-1;d>b;d--)if(a[d]?.role==="assistant")return d;return -1}function tf(a){return a?.content.at(-1)}function tg(a,b,c,d,e=!1){if(!a)return!1;if(d?.kind==="running_tools")return!0;let f=tf(c);return!!b&&(f?.type==="thinking"||f?.type==="toolCall")||!e}function th(a,b,c){if(!a)return null;let d=aD(a,b);return"edit"===d?c("image.edit"):"generate"===d?c("image.generate"):null}function ti(a,b,c){if(b?.kind==="running_tools"){let a=b.tools[b.tools.length-1]?.name??null;return th(a,void 0,c)??a}let d=tf(a);return d?.type==="thinking"?c("chat.thinking"):d?.type==="toolCall"?th(d.toolName,d.input,c)??d.toolName??null:null}function tj(a,b,c,d){return b?(a&&(c.current=a),c.current??d):(c.current=null,null)}function tk(a,b){if("number"==typeof a&&"number"==typeof b&&Number.isFinite(a)&&Number.isFinite(b)&&!(b<=a))return Math.max(1,Math.round((b-a)/1e3))}function tl({startTime:a,t:b}){let[c,d]=(0,t.useState)(()=>Math.max(0,Math.round((Date.now()-a)/1e3)));return(0,s.jsx)("span",{style:{fontSize:11.5,color:"var(--accent)",fontVariantNumeric:"tabular-nums",flexShrink:0},children:(0,F.a3)(c,b)})}function tm({messageCount:a,toolCallCount:b,durationSeconds:c,startTime:d,defaultExpanded:e=!1,reveal:f=!1,isMobile:g=!1,activeStepSummary:h=null,isStreaming:i=!1,children:j,t:k}){let[l,m]=(0,t.useState)(e),n=(0,t.useRef)(null),o=(0,t.useRef)(!1),p=(0,t.useRef)(!1),q=l||f,r=k(1===b?"chat.step":"chat.steps"),u=void 0!==c&&c>0?(0,F.a3)(c,k):null,v=u?b>0?k("chat.workedForSteps",{duration:u,count:b,steps:r}):k("chat.workedFor",{duration:u}):b>0?`${b} ${r}`:k("chat.processDetails");return(0,s.jsxs)("div",{style:{marginBottom:q?8:2},children:[(0,s.jsxs)("button",{type:"button","aria-expanded":q,onClick:()=>{p.current=!0,m(a=>!a)},className:"process-details-summary",style:{display:"inline-flex",alignItems:"center",gap:5,maxWidth:"100%",minHeight:24,padding:"2px 0",border:"none",background:"none",color:"var(--text-dim)",cursor:"pointer",fontSize:11.5,fontFamily:"var(--font-ui)",fontWeight:400,textAlign:"left",transition:"color 0.12s ease"},title:k(q?"chat.collapseProcess":"chat.expandProcess"),children:[i?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ah,{size:12}),d&&(0,s.jsx)(tl,{startTime:d,t:k}),(0,s.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:5,minWidth:0,fontSize:11.5,color:"var(--accent)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:[d&&(0,s.jsx)("span",{style:{opacity:.5,color:"var(--text-dim)"},children:"\xb7"}),(0,s.jsx)("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:h||k("chat.thinking")})]})]}):(0,s.jsx)("span",{"data-summary-label":"",style:{minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:400,color:"inherit",lineHeight:1.35,transition:"color 0.12s ease"},children:v}),(0,s.jsx)("svg",{width:"9",height:"9",viewBox:"0 0 10 10",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0,opacity:.45,display:"block",transform:q?"rotate(90deg)":"none",transition:"transform 0.15s ease"},"aria-hidden":"true",children:(0,s.jsx)("polyline",{points:"3.5 2 6.5 5 3.5 8"})})]}),q&&(0,s.jsx)("div",{ref:n,onScroll:()=>{let a=n.current;a&&(o.current=!(a.scrollTop+a.clientHeight>=a.scrollHeight-20))},className:"process-details-list",style:{display:"flex",flexDirection:"column",gap:1,padding:"2px 0 4px 0",maxHeight:g?220:280,overflowY:"auto",overflowX:"hidden",overscrollBehavior:"contain",overflowAnchor:"none"},children:j})]})}function tn({session:a,searchTarget:b,onSearchTargetHandled:d,initialScrollPosition:e,onScrollPositionChange:f,sessionRunning:g,newSessionCwd:h,newSessionDraftKey:i,onDraftChange:j,onKeepTabOpen:k,onNewSessionCwdChange:l,recentProjectPaths:m=[],pinnedCwds:n=[],onTogglePinnedCwd:o,homeDir:p="",worktreeInfo:q=null,draftPersistenceWarning:r=!1,onAgentEnd:u,onAttentionNeeded:v,onSessionCreated:w,onSessionForked:x,modelsRefreshKey:y,chatInputRef:z,isFocusedPane:A=!1,isVisiblePane:B=A,onBranchDataChange:C,onSystemPromptChange:D,onSystemToolsChange:E,onSystemInfoLoaderChange:F,onSessionStatsChange:H,onSessionStatsPanelOpen:J,onContextUsageChange:K,onOpenFile:L,onOpenSession:O,onAskInNewChat:P,quoteSelectionEnabled:Q=!1,initialPrompt:R,onInitialPromptConsumed:S,soundEnabled:T=!0,onSoundToggle:U,playDoneSound:V=()=>{},unlockAudio:W}){var X;let Y,{t:Z}=(0,G.s)(),$=a4(),_=a?.relation?.kind!=="subagent",aa=(0,t.useRef)(V);aa.current=V;let ab=(0,t.useRef)(T);ab.current=T;let ac=(0,t.useRef)(a);ac.current=a;let ad=(0,t.useRef)(null),ae=(0,t.useCallback)(a=>{let b=ad.current;ad.current=a,z&&(a?z.current=a:z.current===b&&(z.current=null))},[z]);(0,t.useRef)(null);let af=(0,t.useCallback)(()=>{_&&ab.current&&aa.current(),u?.(ac.current)},[_,u]),ag=(0,t.useCallback)(a=>{v?.(a,ac.current)},[v]),ah=(0,t.useCallback)(a=>{x?.(a,ac.current?.id??null)},[x]),ai=(0,t.useCallback)((a,b)=>{L?.(a,ac.current?.id??null,b)},[L]),aj=(0,t.useCallback)(()=>{let a=ac.current?.id;a&&k?.(a)},[k]),ak=(0,t.useCallback)(a=>{ad.current?.replaceMessage(a)},[]),al=(0,t.useRef)(b?null:e??null),[am,an]=(0,t.useState)(()=>{let a=al.current;return a&&!a.atBottom?a:null}),[ao,ap]=(0,t.useState)(!1),{data:aq,loading:ar,error:as,messages:at,activeToolResults:au,entryIds:aw,historyCursor:ax,hasEarlierMessages:ay,streamState:az,agentRunning:aA,directImageRunning:aB,bashRunning:aD,pendingBash:aE,modelNames:aF,modelList:aG,modelError:aH,modelScopeWarnings:aK,modelThinkingLevels:aL,modelThinkingLevelMaps:aM,toolPreset:aN,thinkingLevel:aO,retryInfo:aP,contextUsage:aQ,forkingEntryId:aT,isCompacting:aU,compactError:aV,compactResult:aY,displayModel:aZ,modelSwitching:a$,sessionStats:a_,slashCommands:a0,slashCommandsLoading:a1,queuedMessages:a2,notices:a3,extensionDialog:a5,extensionCustomUi:a6,respondToExtensionUi:a7,sendExtensionCustomInput:a8,addNotice:a9,setNoticePaused:ba,isAutoModelSelection:bb,agentPhase:bc,isNew:be,sessionIdRef:bf,scrollContainerRef:bg,handleSend:bh,handleDirectImageGeneration:bi,abortDirectImageGeneration:bj,handleAbort:bk,handleFork:bl,handleNavigate:bm,handleModelChange:bn,handleCompact:bo,handleSteer:bp,handleFollowUp:bq,handlePromptWithStreamingBehavior:br,handleAbortCompaction:bs,handleRecallQueue:bt,handleBuiltinSlashCommand:bu,handleToolPresetChange:bv,handleThinkingLevelChange:bw,loadSlashCommands:bx,loadContext:by,activeLeafId:bz,scrollToBottom:bA,scrollToMessage:bB}=function(a){let{session:b,sessionRunning:d,newSessionCwd:e,newSessionDraftKey:f,onAgentEnd:g,onAttentionNeeded:h,onSessionCreated:i,onSessionForked:j,modelsRefreshKey:k,onBranchDataChange:l,onSystemPromptChange:m,onSystemToolsChange:n,onSystemInfoLoaderChange:o,onSessionStatsPanelOpen:p,isVisiblePane:q=!1}=a,r=null===b&&null!==e,s=e??b?.cwd??"",u=s?`/api/models?cwd=${encodeURIComponent(s)}`:"/api/models",v=s1.get(u)?.data,w=r?ta(v):null,x=w?v?.thinkingLevelPins?.[`${w.provider}/${w.modelId}`]:void 0,[y,z]=(0,t.useState)(null),[A,B]=(0,t.useState)(!r),[C,D]=(0,t.useState)(null),[E,F]=(0,t.useState)(null),[G,H]=(0,t.useState)([]),[I,J]=(0,t.useState)(new Map),[K,L]=(0,t.useState)([]),[M,N]=(0,t.useState)(null),[O,P]=(0,t.useState)(!1),Q=(0,t.useRef)({messages:G,entryIds:K,oldestEntryId:M,hasMore:O});Q.current={messages:G,entryIds:K,oldestEntryId:M,hasMore:O};let[R,S]=(0,t.useReducer)(sX,sU),T=(0,t.useRef)(R);T.current=R;let[U,V]=(0,t.useState)(!1),[W,X]=(0,t.useState)(!1),[Y,Z]=(0,t.useState)(null),[$,_]=(0,t.useState)(!1),aa=(0,t.useRef)(!1),ab=(0,t.useRef)(null),ac=(0,t.useRef)(!1),[ad,ae]=(0,t.useState)(()=>v?.models??{}),[af,ag]=(0,t.useState)(()=>v?.modelList??[]),[ah,ai]=(0,t.useState)(()=>v?.modelError??null),[aj,ak]=(0,t.useState)(()=>v?.modelScopeWarnings??[]),[al,am]=(0,t.useState)(()=>v?.thinkingLevels??{}),[an,ao]=(0,t.useState)(()=>v?.thinkingLevelMaps??{}),[ap,aq]=(0,t.useState)(()=>v?.thinkingLevelPins??{}),[ar,as]=(0,t.useState)(null),[at,au]=(0,t.useState)(w),[av,aw]=(0,t.useState)(bd.Q8),[ax,ay]=(0,t.useState)(x??"auto"),[az,aA]=(0,t.useState)(null),[aB,aC]=(0,t.useState)(null),[aD,aE]=(0,t.useState)(null),[aF,aG]=(0,t.useState)(null),[aH,aI]=(0,t.useState)(null),[aJ,aK]=(0,t.useState)(null),[aL,aM]=(0,t.useState)(!1),[aN,aO]=(0,t.useState)(!1),[aP,aQ]=(0,t.useState)(!0),[aT,aU]=(0,t.useState)(null),[aV,aY]=(0,t.useState)(null),[aZ,a$]=(0,t.useState)(null),[a_,a0]=(0,t.useState)([]),[a1,a2]=(0,t.useState)(!1),[a3,a4]=(0,t.useReducer)(s8,{visible:[],pending:[]}),[a5,a6]=(0,t.useState)(null),[a7,a8]=(0,t.useState)(null),[a9,ba]=(0,t.useState)(null),[bb,bc]=(0,t.useState)({steering:[],followUp:[]}),be=(0,t.useRef)(null),bf=(0,t.useRef)(null),bg=(0,t.useRef)(0),bh=(0,t.useRef)(!1),bi=(0,t.useRef)(!1),bj=(0,t.useRef)(b?.id??null),bk=(0,t.useRef)(b?.id??null),bl=(0,t.useRef)(!!d),bm=(0,t.useRef)(q),bn=(0,t.useRef)(!1),bo=(0,t.useRef)(!1),bp=(0,t.useRef)(!1),bq=(0,t.useRef)(-1),br=(0,t.useRef)(!1),bs=(0,t.useRef)(!1),bt=(0,t.useRef)(0),bu=(0,t.useRef)(null),bv=(0,t.useRef)(!!a.deferInitialScroll),bw=(0,t.useRef)(!1),bx=(0,t.useRef)(!0),by=(0,t.useRef)(0),bz=(0,t.useRef)(null),bA=(0,t.useRef)([]),bB=(0,t.useRef)(void 0),bC=(0,t.useRef)(null),bD=(0,t.useRef)(null),bE=(0,t.useRef)(!1),bF=(0,t.useRef)(null),bG=(0,t.useRef)(null),bH=(0,t.useRef)(0),bI=(0,t.useRef)(new sY),bJ=(0,t.useRef)(null),bK=(0,t.useRef)(!1),bL=(0,t.useRef)(null),bM=(0,t.useRef)(!1);(0,t.useRef)(k);let bN=(0,t.useRef)(new Map),bO=(0,t.useRef)(!0);bk.current=b?.id??null,bl.current=!!d,bm.current=q,be.current||(be.current=new sS({createSource:a=>new EventSource(`/api/agent/${encodeURIComponent(a)}/events`),onEvent:a=>bu.current?.(a),shouldMaintain:a=>bO.current&&bj.current===a&&(bm.current||bn.current||bh.current||bk.current===a&&bl.current),readinessTimeoutMs:6e4,reconnectDelayMs:1e3,onUnexpectedError:a=>{console.error("Failed to maintain the agent event stream:",a)}}));let bP=a.setToolPreset??aw;b?.id;let bQ=(0,t.useCallback)((a="instant")=>{let b=bC.current;b&&(bx.current=!0,b.scrollTo({top:Math.max(0,b.scrollHeight-b.clientHeight),behavior:a}),by.current=b.scrollTop)},[]),bR=aH??y?.context.model??aJ??null,bS=r?ar??at:bR,bT=b?.id??f??void 0,bU=(0,t.useCallback)(a=>{if(!a)return;let b=a,c=new Set;for(;!c.has(b);){c.add(b);let a=bN.current.get(b);if(!a)break;b=a}return b},[]),bV=(0,t.useCallback)((b,c,d)=>{let e=c?.map(({data:a,mimeType:b})=>({data:a,mimeType:b})),g=bU(d);if(!bO.current&&!bE.current&&d===f)return;let h=a.chatInputRef?.current;if(h)h.restoreSubmission(b,e,g);else{let a,c;g&&(c=aW(b,e,(a=aR(g)??{value:"",images:[]}).value,a.images),aS(g,c))}},[f,a.chatInputRef,bU]),bW=(0,t.useMemo)(()=>{if(a5)return{...a5,totalActiveMs:y?.totalActiveMs,...aB?{contextUsage:aB}:{}};let a=y?.stats,c=function(a,b,c){let d=sO(c);if(!a)return d;let e=sO(b),f=(a,b)=>Math.max(0,a-b),g={input:a.tokens.input+f(d.tokens.input,e.tokens.input),output:a.tokens.output+f(d.tokens.output,e.tokens.output),cacheRead:a.tokens.cacheRead+f(d.tokens.cacheRead,e.tokens.cacheRead),cacheWrite:a.tokens.cacheWrite+f(d.tokens.cacheWrite,e.tokens.cacheWrite),total:0};return g.total=g.input+g.output+g.cacheRead+g.cacheWrite,{userMessages:a.userMessages+f(d.userMessages,e.userMessages),assistantMessages:a.assistantMessages+f(d.assistantMessages,e.assistantMessages),toolCalls:a.toolCalls+f(d.toolCalls,e.toolCalls),toolResults:a.toolResults+f(d.toolResults,e.toolResults),totalMessages:a.totalMessages+f(d.totalMessages,e.totalMessages),tokens:g,cost:a.cost+f(d.cost,e.cost)}}(a,y?.context.messages??[],G);return 0!==c.tokens.total||0!==G.length||a?{sessionFile:y?.filePath||void 0,sessionId:bj.current??b?.id??"",sessionName:b?.name,...c,totalActiveMs:y?.totalActiveMs,...aB?{contextUsage:aB}:{}}:null},[G,a5,aB,y?.context.messages,y?.filePath,y?.totalActiveMs,y?.stats,b?.id,b?.name]),bX=(0,t.useCallback)(async(a,b=!1,c=!1)=>{let d=!1;try{b&&B(!0);let e=new URLSearchParams({deferThinking:"1",deferMedia:"1"});c&&e.set("force","1");let f=await fetch(`/api/sessions/${encodeURIComponent(a)}?${e}`);if(404===f.status)return b&&(z(null),F(null),H([]),L([]),N(null),P(!1),aC(null),D(null)),null;if(!f.ok)throw Error(`HTTP ${f.status}`);let g=await f.json();if(bj.current!==a)return null;let h={messages:g.context.messages,entryIds:g.context.entryIds??[],oldestEntryId:g.context.oldestEntryId,hasMore:g.context.hasMore},i=b?h:function(a,b){if(0===a.entryIds.length||0===b.entryIds.length)return b;let c=new Set(b.entryIds),d=a.entryIds.findIndex(a=>c.has(a));return d<=0?b:{messages:[...a.messages.slice(0,d),...b.messages],entryIds:[...a.entryIds.slice(0,d),...b.entryIds],oldestEntryId:a.oldestEntryId??a.entryIds[0]??b.oldestEntryId,hasMore:a.hasMore}}(Q.current,h);if(z({...g,context:{...g.context,...i}}),F(g.leafId),H(i.messages),L(i.entryIds),N(i.oldestEntryId),P(i.hasMore),bi.current=void 0!==g.toolNames,bP(void 0!==g.toolNames?(0,bd.YO)(g.toolNames):bd.Q8),aI(a=>bM.current?a:null),D(null),g.context.thinkingLevel&&"off"!==g.context.thinkingLevel&&ay(g.context.thinkingLevel),void 0!==g.contextUsage&&aC(g.contextUsage??null),d=!0,b&&B(!1),!c)return null;try{let b=await fetch(`/api/sessions/${encodeURIComponent(a)}/state`);if(!b.ok)throw Error(`HTTP ${b.status}`);let c=await b.json();if(bj.current!==a)return null;let d=c.state;return d?(void 0!==d.contextUsage&&aC(d.contextUsage??null),void 0!==d.systemPrompt&&aE(d.systemPrompt??null),void 0!==d.thinkingLevel&&ay(d.thinkingLevel??"auto"),void 0!==d.queuedMessages&&bc(s4(d.queuedMessages))):c.running||bc({steering:[],followUp:[]}),c}catch(a){return console.error("Failed to load agent state:",a),null}}catch(a){return D(String(a)),null}finally{b&&!d&&B(!1)}},[bP]),bY=(0,t.useCallback)(async(a,b,c,d)=>{try{let e=new URLSearchParams({deferThinking:"1",deferMedia:"1"});b&&e.set("leafId",b),c&&e.set("before",c),d?.tail&&e.set("tail",String(d.tail));let f=`/api/sessions/${encodeURIComponent(a)}/context?${e}`,g=await fetch(f,{signal:d?.signal});if(!g.ok)throw Error(`HTTP ${g.status}`);let h=await g.json();if(bj.current!==a||d?.signal?.aborted||!bO.current)return;return N(h.context.oldestEntryId),P(h.context.hasMore),z(b=>{if(!b||b.sessionId!==a)return b;let d=c?{...b.context,messages:[...h.context.messages,...b.context.messages],entryIds:[...h.context.entryIds,...b.context.entryIds],oldestEntryId:h.context.oldestEntryId,hasMore:h.context.hasMore}:h.context;return{...b,context:d}}),c?(H(a=>[...h.context.messages,...a]),L(a=>[...h.context.entryIds,...a])):(H(h.context.messages),L(h.context.entryIds??[])),h.context}catch(a){d?.signal?.aborted||console.error("Failed to load context:",a)}},[]),bZ=(0,t.useCallback)(async a=>{try{let b=await sL(a,{type:"get_tools"});if(!b||!bO.current||bj.current!==a)return null;let{getPresetFromTools:d}=await Promise.resolve().then(c.bind(c,29947));return bP(bi.current?d(b):bd.Q8),n?.(b),b}catch(a){return console.error("Failed to load tools:",a),null}},[n,bP]),b$=(0,t.useCallback)((b=0,c="(no messages)")=>{let d=bj.current;if(r&&e&&d&&!bE.current&&(bE.current=!0,f)){if(f!==d){bN.current.set(f,d);let b=a.chatInputRef?.current;b?b.rekeyDraft(f,d):aX(f,d)}i?.({id:d,path:"",cwd:e,name:void 0,created:new Date().toISOString(),modified:new Date().toISOString(),messageCount:b,firstMessage:c,transient:!0},f)}},[r,e,f,i,a.chatInputRef]),b_=(0,t.useCallback)(a=>{a instanceof sR||console.error("Failed to maintain the agent event stream:",a)},[]),b0=(0,t.useCallback)(async()=>{if(bj.current||!r||!e)return bj.current;if(bD.current)return bD.current;let a=(async()=>{let a=bF.current,b=bG.current;a&&aK(a);let c=(0,bd.xG)(av);bi.current=void 0!==c;let d=await fetch("/api/agent/new",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cwd:e,type:"ensure_session",...void 0!==c?{toolNames:c}:{},...a?{provider:a.provider,modelId:a.modelId}:{},...b?{thinkingLevel:b}:{}})});if(!d.ok)throw Error(`HTTP ${d.status}`);let f=await d.json(),g=f.sessionId;return bj.current=g,bm.current&&be.current?.ensureConnected(g).catch(b_),void 0!==f.contextUsage&&aC(f.contextUsage??null),f.model&&bF.current===a&&(aK(f.model),a||au(f.model)),f.thinkingLevel&&bG.current===b&&ay(f.thinkingLevel),g})();bD.current=a;try{return await a}finally{bD.current=null}},[b_,r,e,av]);(0,t.useCallback)(async()=>{let a=bj.current??await b0();if(!a)return;let[b]=await Promise.all([sL(a,{type:"get_state"}),bZ(a)]);bO.current&&bj.current===a&&aE(b.systemPrompt??"")},[b0,bZ]);let b1=(0,t.useCallback)(async()=>{let a=bj.current??await b0();if(!a)return a0([]),[];a2(!0);try{let b=await sL(a,{type:"get_commands"}),c=b?.commands??[];return a0(c),c}catch(a){return console.error("Failed to load slash commands:",a),a0([]),[]}finally{a2(!1)}},[b0]),b2=(0,t.useCallback)(()=>{bg.current+=1,bh.current=!1,bf.current&&(clearTimeout(bf.current),bf.current=null)},[]),b3=(0,t.useCallback)(()=>{be.current?.close()},[]),b4=(0,t.useCallback)(a=>be.current.ensureConnected(a),[]);(0,t.useCallback)(a=>{be.current.maintain(a)},[]);let b5=(0,t.useCallback)(a=>{be.current?.reconnect(a).catch(b_)},[b_]),b6=(0,t.useCallback)(async(a,b)=>{let c=bj.current;if(a8(b=>b?.id===a.id?null:b),c)try{await sL(c,{type:"extension_ui_response",id:a.id,...b})}catch(a){console.error("Failed to send extension UI response:",a)}},[]),b7=(0,t.useCallback)(async(a,b)=>{let c=bj.current;if(c)try{await sL(c,{type:"extension_ui_input",id:a.id,data:b})}catch(a){console.error("Failed to send extension custom UI input:",a)}},[]),b8=(0,t.useCallback)(a=>{let b=a.message.trim();b&&a4({type:"add",notice:{id:a.id??("u">typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():`${Date.now()}-${Math.random().toString(36).slice(2)}`),message:b,type:a.type??"info"}})},[]),b9=(0,t.useCallback)(b=>{switch(sF(b)&&h?.(b),b.method){case"select":case"confirm":case"input":case"editor":a8(b);break;case"notify":b8({id:b.id,message:b.message,type:b.notifyType??"info"});break;case"setTitle":b.title&&(document.title=b.title);break;case"set_editor_text":a.chatInputRef?.current?.insertText(b.text);break;case"custom":ba(a=>b.closed?a?.id===b.id?null:a:b)}},[b8,h,a.chatInputRef]),ca=(0,t.useCallback)(()=>{null!==bz.current&&(cancelAnimationFrame(bz.current),bz.current=null);let a=bA.current;0!==a.length&&(bA.current=[],S({type:"deltas",events:a}))},[]),cb=(0,t.useCallback)(a=>{bA.current.push(a),null===bz.current&&(bz.current=requestAnimationFrame(()=>{bz.current=null,ca()}))},[ca]),cc=(0,t.useCallback)(()=>{ca();let a=bn.current;return bn.current=!1,V(!1),a$(null),aA(null),J(new Map),S({type:"end"}),a},[ca]),cd=(0,t.useCallback)(a=>bq.current!==a&&(bq.current=a,g?.(),!0),[g]),ce=(0,t.useCallback)(a=>{if(bm.current&&bj.current===a)return void b2();b2(),bh.current=!0;let b=bg.current,c=async()=>{if(b===bg.current&&bj.current===a&&bh.current)try{let d=await fetch(`/api/agent/${encodeURIComponent(a)}`);if(!d.ok)throw Error(`HTTP ${d.status}`);let e=await d.json();if(b!==bg.current||bj.current!==a||!bh.current)return;let f=e.state;if(e.running&&f&&(f.isStreaming||f.isPromptRunning)){bh.current=!1,bf.current=null,bo.current=!!f?.isStreaming,bp.current=!!f?.isPromptRunning,bn.current=!0,V(!0),a$(f?.isStreaming?{kind:"waiting_model"}:{kind:"running_command"});return}if(e.running&&f?.isCompacting){aO(!0),bf.current=setTimeout(()=>void c(),600);return}bh.current=!1,bf.current=null,b3()}catch{if(b!==bg.current||bj.current!==a||!bh.current)return;bf.current=setTimeout(()=>void c(),600)}};bf.current=setTimeout(()=>void c(),3e4)},[b2,b3]),cf=(0,t.useCallback)(async(a=bj.current,b=bH.current)=>{if(bH.current===b)try{a&&await bX(a)}finally{if(bH.current!==b)return;let c=bp.current,d=bo.current;bp.current=!1,bo.current=!1,bL.current=null;let e=cc();c?cd(b):d&&e&&g?.(),a&&ce(a)}},[bX,cd,g,ce,cc]),cg=(0,t.useCallback)(async(a,b)=>{await s6(800);let c=Date.now();for(;bn.current&&Date.now()-c<2e4;){if(void 0!==b&&bH.current!==b)return;try{let c=await fetch(`/api/agent/${encodeURIComponent(a)}`);if(c.ok){let d=await c.json(),e=d.state;if(!d.running||!e||!e.isStreaming&&!e.isPromptRunning)return void await cf(a,b)}}catch{}await s6(600)}},[cf]);(0,t.useCallback)(async a=>{let b=bt.current+1;for(bt.current=b;br.current&&bt.current===b&&bj.current===a;){await s6(1e3);try{let c=await fetch(`/api/agent/${encodeURIComponent(a)}`);if(!c.ok)continue;let d=await c.json();if(d.state?.isBashRunning)continue;if(await bX(a),bt.current!==b||bj.current!==a)return;br.current=!1,X(!1),Z(null);return}catch{}}},[bX]);let ch=(0,t.useCallback)(async a=>{if(!bn.current||bj.current!==a)return;let b=bH.current;try{let c=await fetch(`/api/agent/${encodeURIComponent(a)}`);if(!c.ok)return;let d=await c.json();if(bj.current!==a||bH.current!==b)return;let e=d.state;if(aO(e?.isCompacting??!1),bc(s4(e?.queuedMessages)),"boolean"==typeof e?.autoCompactionEnabled&&aQ(e.autoCompactionEnabled),e?.contextUsage!==void 0&&aC(a=>s5(a,e.contextUsage??null)),d.running&&e&&(e.isStreaming||e.isPromptRunning||e.isCompacting)){bo.current=!!e.isStreaming,bp.current=!!e.isPromptRunning;return}if(!bn.current)return;e&&void 0!==e.systemPrompt&&aE(e.systemPrompt??null),await cf(a,b)}catch{}},[cf]);bu.current=(0,t.useCallback)(a=>{switch("message_update"!==a.type&&ca(),a.type){case"connected":{let b=bj.current;b&&bX(b),S({type:!0===a.isStreaming?"resume":"end"}),!0===a.isStreaming&&(b2(),bo.current=!0,bn.current=!0,V(!0),a$({kind:"waiting_model"}));break}case"agent_start":b2(),bo.current=!0,bn.current=!0,V(!0),a$({kind:"waiting_model"}),S({type:"start"});break;case"agent_end":if(!bn.current)break;a$(null),aA(null),S({type:"end"}),bj.current&&(bX(bj.current),fetch(`/api/agent/${encodeURIComponent(bj.current)}`).then(a=>a.json()).then(a=>{a.state?.contextUsage!==void 0&&aC(a.state.contextUsage??null),a.state?.systemPrompt!==void 0&&aE(a.state.systemPrompt??null),bc(s4(a.state?.queuedMessages))}).catch(()=>{}));break;case"agent_settled":{let a=bo.current;if(bo.current=!1,!a||bp.current)break;let b=bj.current,c=cc();aO(!1),b&&(bX(b),ce(b)),c&&g?.();break}case"prompt_done":{let a=bH.current,b=bp.current;bp.current=!1,bL.current=null;let c=cd(a);if(!b&&!c)break;let d=bj.current;d&&bX(d),!bo.current&&(cc(),d&&ce(d))}break;case"prompt_error":b8({type:"error",message:a.errorMessage??"Command failed"});break;case"extension_error":b8({type:"error",message:a.error??"Extension command failed"});break;case"message_start":case"message_update":if(!bn.current||sT(a))break;if("message_start"===a.type){let b=a.message;if(b?.role==="user")break;b?.role==="assistant"?(S({type:"snapshot",message:b}),b.content.length>0&&a$(null)):b&&a$(null)}else{let b=a.assistantMessageEvent;b&&(cb(b),"toolcall_start"!==b.type&&"toolcall_delta"!==b.type&&a$(null))}break;case"message_end":{if(!bn.current||sT(a))break;let b=a.message;if(b&&"user"===b.role){let a=sI(b),c=sQ(a),d=bL.current;bL.current=null,H(b=>{let e=b[b.length-1];return d&&e?.role==="user"&&sQ(e)===d?d===c?b:[...b.slice(0,-1),a]:[...b,a]})}else if(b){let a=sI(b);if("assistant"===a.role){let b=function(a){if("assistant"!==a.role||"aborted"===a.stopReason||"error"===a.stopReason)return null;let b=a.usage;if(!b)return null;let c=b.totalTokens,d=c&&c>0?c:b.input+b.output+b.cacheRead+b.cacheWrite;return d>0?d:null}(a);null!==b&&aC(a=>{let c=a?.contextWindow??0;return c<=0?a:s5(a,{tokens:b,contextWindow:c,percent:b/c*100})});let c=Date.now(),d=function(a,b,c){if(!b)return a;let d=!1,e=a.content.map((a,e)=>{if("thinking"!==a.type)return a;let f=b.content[e],g=(f?.type==="thinking"?f.startedAt:void 0)??a.startedAt??b.timestamp,h=(f?.type==="thinking"?f.endedAt:void 0)??a.endedAt??c;return a.startedAt===g&&a.endedAt===h?a:(d=!0,{...a,..."number"==typeof g?{startedAt:g}:{},..."number"==typeof h?{endedAt:h}:{}})});return d?{...a,content:e}:a}({...a,completedAt:c},T.current.streamingMessage,c);H(a=>[...a,d])}else"system"!==a.role&&H(b=>[...b,a])}S({type:"end"}),a$({kind:"waiting_model"});break}case"tool_execution_start":{let b=a.toolCallId,c=a.toolName;a$(a=>{let d=a?.kind==="running_tools"?[...a.tools]:[];return d.some(a=>a.id===b)||d.push({id:b,name:c}),{kind:"running_tools",tools:d}});break}case"tool_execution_update":{let b=a.toolCallId,c=a.toolName,d=a.partialResult,e=d?.content;("bash"===c||"powershell"===c)&&Array.isArray(e)&&J(a=>{let f=new Map(a);return f.set(b,{role:"toolResult",toolCallId:b,toolName:c,content:e,isError:d?.isError,details:d?.details}),f}),a$(a=>{let d=a?.kind==="running_tools"?a.tools:[],e=d.find(a=>a.id===b),f=c||e?.name||"tool";return e?.name===f?a:{kind:"running_tools",tools:[...d.filter(a=>a.id!==b),{id:b,name:f}]}});break}case"tool_execution_end":{let b=a.toolCallId;J(a=>{if(!a.has(b))return a;let c=new Map(a);return c.delete(b),c}),a$(a=>{if(a?.kind!=="running_tools")return a;let c=a.tools.filter(a=>a.id!==b);return 0===c.length?{kind:"waiting_model"}:{kind:"running_tools",tools:c}});break}case"queue_update":bc({steering:[...a.steering??[]],followUp:[...a.followUp??[]]});break;case"auto_retry_start":aA({attempt:a.attempt,maxAttempts:a.maxAttempts,errorMessage:a.errorMessage});break;case"auto_retry_end":aA(null);break;case"auto_compaction_start":case"compaction_start":aO(!0),aU(null),aY(null);break;case"auto_compaction_end":case"compaction_end":aO(!1),a.errorMessage?(aU(a.errorMessage),aY(null)):!a.aborted&&(aY(s9(a.result,a.reason??"auto")),bj.current&&bX(bj.current));break;case"extension_ui_request":b9(a);break;case"extension_ui_closed":a8(b=>b?.id===a.id?null:b)}},[b8,b2,ca,b9,bX,cd,g,cb,ce,cc]);let cj=(0,t.useCallback)(async(a,c)=>{let d=a.trim();if(!d&&!c?.length)return;if(bn.current||br.current)return void bV(a,c,bT);let f=!c?.length&&d.startsWith("/");if(!c?.length&&d.startsWith("!")){let b=d.startsWith("!!"),e=(b?d.slice(2):d.slice(1)).trim();return e?void await bB.current?.(e,b):void bV(a,c,bT)}let g=bH.current+1;b2(),bp.current=!0;let h=c?.map(a=>({type:"image",source:{type:"base64",media_type:a.mimeType,data:a.data}})),i={role:"user",content:h?.length?[...a.trim()?[{type:"text",text:a}]:[],...h]:a,timestamp:Date.now()};H(a=>[...a,i]),bL.current=sQ(i),bH.current=g,bn.current=!0,V(!0),a$(f?{kind:"running_command"}:{kind:"waiting_model"}),S({type:"start"}),bw.current=!0,bJ.current={runId:g,message:a,images:c,userMsg:i};let j=c?.map(a=>({type:"image",data:a.data,mimeType:a.mimeType})),k=!1;bI.current.begin(g);let l=async a=>{try{await sL(a,{type:"abort"})}catch(a){b8({type:"error",message:a instanceof Error?a.message:String(a)})}},m=await s$({gate:bI.current,runId:g,currentRunId:()=>bH.current,currentSessionId:()=>bj.current,promptPending:()=>bp.current,abandonUnsent:()=>{bJ.current?.runId===g&&(bJ.current=null,bp.current=!1,H(a=>{let b=a.lastIndexOf(i);return -1===b?a:[...a.slice(0,b),...a.slice(b+1)]}),bV(a,c,bT),bL.current=null,bH.current===g&&(bn.current=!1,V(!1),a$(null),S({type:"end"})))},onDispatched:()=>{bJ.current?.runId===g&&(bJ.current=null)},abort:l,prepare:async()=>{if(r&&e){let a=bj.current??await bD.current;if(bI.current.isCancelled(g))return null;let b=a??await b0();if(bI.current.isCancelled(g))return null;if(!b)throw Error("Unable to create a session for the prompt");if(ar&&(aK(ar),a)){let a=await sL(b,{type:"set_model",provider:ar.provider,modelId:ar.modelId});if(a?.thinkingLevel&&"off"!==a.thinkingLevel&&ay(a.thinkingLevel),bI.current.isCancelled(g))return null}return(await b4(b),bI.current.isCancelled(g))?null:b}if(b)return(await b4(b.id),bI.current.isCancelled(g))?null:b.id;throw Error("No active session for the prompt")},send:async b=>{let c=await sL(b,{type:"prompt",message:a,...j?.length?{images:j}:{}});k=c?.subagentAction==="steered"||c?.subagentAction==="resumed"}});if("abandoned"!==m.status&&"aborted"!==m.status&&"stale"!==m.status){if("cancelled_after_dispatch"===m.status)return void cg(m.sessionId,g);if("failed"===m.status){let b=m.error,d=m.sessionId,e=m.requestStarted;return(console.error("Failed to send message:",b),!(!e||sK(b))&&d)?void cg(d,g):(bp.current=!1,bJ.current?.runId===g&&(bJ.current=null),H(a=>{let b=a.lastIndexOf(i);return -1===b?a:[...a.slice(0,b),...a.slice(b+1)]}),b8({type:"error",message:b instanceof Error?b.message:String(b)}),bV(a,c,bT),bL.current=null,d)?void ch(d):(bn.current=!1,b3(),V(!1),a$(null),void S({type:"end"}))}if(r&&e&&b$(1,a),k&&m.sessionId){bp.current=!1,cg(m.sessionId,g);return}f&&m.sessionId&&cg(m.sessionId,g)}},[r,e,ar,b,b0,b4,b$,cg,b8,b2,b3,bT,ch,bV]),ck=(0,t.useCallback)(async(a,c)=>{if(bn.current||br.current||aa.current)throw Error("Cannot generate an image while the session is busy");let d=crypto.randomUUID();aa.current=!0,ab.current=d,ac.current=!1,_(!0);try{let f=b?.id??(r&&e?await b0():null);if(!f)throw Error("No active session for image generation");if(ac.current)throw new DOMException("Image generation cancelled","AbortError");let g=await sL(f,{type:"generate_image_direct",requestId:d,arguments:a,...c?{sourceImage:c}:{}});return await bX(f),r&&e&&b$(1,a.prompt),g}finally{ab.current===d&&(aa.current=!1,ab.current=null,ac.current=!1,_(!1))}},[b0,r,bX,e,b$,b?.id]),cl=(0,t.useCallback)(async()=>{ac.current=!0;let a=bj.current,b=ab.current;a&&b&&await sL(a,{type:"abort_image_generation",requestId:b})},[]);bB.current=(0,t.useCallback)(async(a,c)=>{if(bn.current||br.current)return;let d=`${c?"!!":"!"}${a}`;bK.current=!1,br.current=!0,Z({command:a,excludeFromContext:c}),X(!0);try{let e=await s_({abortRequested:()=>bK.current,prepare:async()=>bj.current??b?.id??await b0(),send:async b=>{await sL(b,{type:"bash",command:a,excludeFromContext:c})},loadResults:async a=>{bj.current===a&&await bX(a)},restoreUnsent:()=>bV(d,void 0,bT)});("completed"===e.status||"cancelled_after_dispatch"===e.status)&&b$(1,d)}catch(a){console.error("Failed to execute shell command:",a),b8({type:"error",message:a instanceof Error?a.message:String(a)}),bV(d,void 0,bT)}finally{br.current=!1,Z(null),X(!1)}},[b8,bT,b0,bX,b$,bV,b]);let cm=(0,t.useCallback)(async()=>{var a;let c=bH.current,d=bj.current,e=async a=>{if(d&&!bs.current){bs.current=!0;try{await sL(d,{type:a})}catch(a){console.error("Failed to abort:",a),b8({type:"error",message:a instanceof Error?a.message:String(a)})}finally{bs.current=!1}}};if(br.current){bK.current=!0,await e("abort_bash");return}let f=bJ.current;(bI.current.isInFlight(c)||f?.runId===c)&&bI.current.cancel(c);let g=!!(f&&f.runId===c&&bI.current.shouldAbandonUnsent(c));if(g&&f){bJ.current=null,bp.current=!1,H(a=>{let b=a.lastIndexOf(f.userMsg);return -1===b?a:[...a.slice(0,b),...a.slice(b+1)]}),bV(f.message,f.images,bT),bL.current=null,bn.current=!1,V(!1),a$(null),S({type:"end"});return}let h=(a={bashRunning:!1,hasSessionId:!!d,localUnsent:g,agentRunning:bn.current||bp.current}).bashRunning?a.hasSessionId?"abort_bash":"none":!a.agentRunning||a.localUnsent?"none":a.hasSessionId?"abort":"none";b?.relation?.kind==="subagent"&&"queued"===b.relation.status&&d?await e("abort"):"none"!==h&&d&&await e("abort_bash"===h?"abort_bash":"abort")},[b8,bT,bV,b]),cn=(0,t.useCallback)(async a=>{if(br.current)return;let b=bj.current;if(b){aG(a);try{let{cancelled:c,newSessionId:d}=await sL(b,{type:"fork",entryId:a})??{};!c&&d&&j?.(d)}catch(a){console.error("Fork failed:",a)}finally{aG(null)}}},[j]),co=(0,t.useCallback)(async a=>{if(br.current)return;let b=bj.current;b&&(sL(b,{type:"navigate_tree",targetId:a}).catch(()=>{}),F(a),await bY(b,a))},[bY]);(0,t.useCallback)(async a=>{if(br.current)return;F(a);let b=bj.current;b&&(await bY(b,a),a&&sL(b,{type:"navigate_tree",targetId:a}).catch(()=>{}))},[bY]);let cp=(0,t.useCallback)(async(a,b)=>{if(r){let c={provider:a,modelId:b};bF.current=c,as(c),aK(c);let d=bj.current??await bD.current;if(!d){let c=ap[`${a}/${b}`];c&&null===bG.current?ay(c):ay(function(a,b){if(!a?.length||a.includes(b)||"auto"===b)return b;let c=sM.indexOf(b);if(-1===c)return a[0];for(let b=c+1;b<sM.length;b++)if(a.includes(sM[b]))return sM[b];for(let b=c-1;b>=0;b--)if(a.includes(sM[b]))return sM[b];return a[0]}(al[`${a}:${b}`],ax));return}try{let c=await sL(d,{type:"set_model",provider:a,modelId:b});c?.thinkingLevel&&"off"!==c.thinkingLevel&&ay(c.thinkingLevel)}catch(a){console.error("Failed to set model:",a)}return}let c=bj.current;if(c&&!bM.current){bM.current=!0,aI({provider:a,modelId:b}),aM(!0);try{await sL(c,{type:"set_model",provider:a,modelId:b}),bM.current=!1,await bX(c)}catch(a){console.error("Failed to set model:",a),bM.current=!1,aI(aH),b8({type:"error",message:`Failed to switch model: ${a instanceof Error?a.message:String(a)}`}),await bX(c)}finally{bM.current=!1,aM(!1)}}},[b8,aH,r,bX,ap,al,as,ax]),cq=(0,t.useCallback)(async()=>{let a=bj.current;if(a&&!aN){aO(!0),aU(null),aY(null);try{let b=await sL(a,{type:"compact"});aY(s9(b,"manual")),await bX(a,!0)}catch(a){aU(a instanceof Error?a.message:String(a)),aY(null)}finally{aO(!1)}}},[aN,bX]),cr=(0,t.useCallback)(async(a,b=!1,c)=>{let d;try{d=await function(a,b,c={}){let d=s1.get(a);if(!c.force&&d&&d.loadedAt+6e4>Date.now())return Promise.resolve(d.data);let e=s2.get(a);if(e&&(!c.force||e.forced&&e.refreshToken===c.refreshToken))return e.promise;let f=(e?e.promise.catch(()=>void 0):Promise.resolve()).then(b).then(b=>{if(b.modelError&&(b.modelList?.length??0)===0)throw Error(b.modelError);for(s1.delete(a),s1.set(a,{data:b,loadedAt:Date.now()});s1.size>32;){let a=s1.keys().next().value;if(void 0===a)break;s1.delete(a)}return b}).finally(()=>{s2.get(a)?.promise===f&&s2.delete(a)});return s2.set(a,{promise:f,forced:!0===c.force,...void 0!==c.refreshToken?{refreshToken:c.refreshToken}:{}}),f}(u,async()=>{let a=await fetch(u);if(!a.ok){let b="";try{let c=await a.json();c&&"object"==typeof c&&"error"in c&&"string"==typeof c.error&&(b=c.error)}catch{}throw Error(b||`Failed to load models (HTTP ${a.status})`)}return a.json()},{force:b,refreshToken:c}),a?.throwIfAborted()}catch(b){throw a?.aborted||b instanceof DOMException&&"AbortError"===b.name||ai(b instanceof Error?b.message:String(b)),b}if(ae(d.models),ai(d.modelError??null),ak(d.modelScopeWarnings??[]),am(d.thinkingLevels??{}),ao(d.thinkingLevelMaps??{}),aq(d.thinkingLevelPins??{}),ag(d.modelList??[]),r&&!bj.current){let a=ta(d);au(a);let b=a&&d.thinkingLevelPins?.[`${a.provider}/${a.modelId}`];null===bG.current&&ay(b??"auto")}},[r,u]),cs=(0,t.useCallback)(async a=>{if(!a.startsWith("/"))return{handled:!1};let b=a.match(/^\/([^\s]+)(?:\s+([\s\S]*))?$/);if(!b)return{handled:!1};let[,c,d=""]=b,e=d.trim(),f=bj.current??await b0(),g=a=>(a.handled&&(a.error?b8({type:"error",message:a.error}):"openSessionStats"!==a.action&&b8({type:"success",message:a.message??"Command completed"})),a);try{switch(c){case"compact":{if(!f||aN)return g({handled:!0,error:"No active session to compact"});aO(!0),aU(null),aY(null);let a=await sL(f,{type:"compact",...e?{customInstructions:e}:{}});return aY(s9(a,"manual")),await bX(f,!0)&&b$(),g({handled:!0,message:"Compacted context"})}case"reload":if(!f)return g({handled:!0,error:"No active session to reload"});return await sL(f,{type:"reload"}),await Promise.all([bX(f,!1,!0),bZ(f),b1(),cr(void 0,!0)]),g({handled:!0,message:"Reloaded session resources"});case"name":if(!f)return g({handled:!0,error:"No active session to name"});if(!e)return g({handled:!0,error:"Usage: /name <name>"});return await sL(f,{type:"set_session_name",name:e}),await bX(f)&&b$(),g({handled:!0,message:`Session renamed to ${e}`});case"session":{if(!f)return g({handled:!0,error:"No active session"});let a=await sL(f,{type:"get_session_stats"});return a&&a6(a),p?.(),g({handled:!0,action:"openSessionStats"})}case"copy":{if(!f)return g({handled:!0,error:"No active session"});let a=await sL(f,{type:"get_last_assistant_text"}),b=a?.text??"";if(!b)return g({handled:!0,error:"No assistant message to copy"});return await navigator.clipboard.writeText(b),g({handled:!0,message:"Copied last assistant message"})}case"auto-compact":{if(!f)return g({handled:!0,error:"No active session"});let a=await sL(f,{type:"get_state"}),b=!("boolean"!=typeof a?.autoCompactionEnabled||a.autoCompactionEnabled);return await sL(f,{type:"set_auto_compaction",enabled:b}),aQ(b),g({handled:!0,message:b?"Auto-compaction enabled":"Auto-compaction disabled"})}case"clone":{if(!f)return g({handled:!0,error:"No active session to clone"});if(bn.current||br.current)return g({handled:!0,error:"Cannot clone while the session is running"});let a=await sL(f,{type:"clone",leafId:E});if(a?.cancelled||!a?.newSessionId)return g({handled:!0,error:"Cannot clone an empty or unsaved session"});let b=g({handled:!0,message:"Cloned current session branch"});return j?.(a.newSessionId),b}case"bug":{if(!f)return g({handled:!0,error:"No active session to report"});if(bn.current||br.current)return g({handled:!0,error:"Cannot report a bug while the session is running"});let a=await sL(f,{type:"bug_report",...e?{hint:e}:{}});if(!a)return g({handled:!0,error:"Bug report failed"});return g({handled:!0,message:"upload"===a.delivery?`Bug report uploaded. Report ID: ${a.id}`:`Upload failed (${a.error??"unknown error"}); exported to ${a.path}`})}default:return{handled:!1}}}catch(a){return g({handled:!0,error:a instanceof Error?a.message:String(a)})}finally{"compact"===c&&aO(!1)}},[E,b8,b0,aN,cr,bX,b1,bZ,b$,j,p]),ct=(0,t.useCallback)(async(a,b,c)=>{let d=bj.current;if(!d){bV(a,c,bT),b8({type:"error",message:"No active session for the queued message"});return}let e=c?.map(a=>({type:"image",data:a.data,mimeType:a.mimeType}));try{await sL(d,{type:"prompt",message:a,streamingBehavior:b,...e?.length?{images:e}:{}})}catch(b){console.error("Failed to submit streaming prompt:",b),sK(b)&&bV(a,c,bT),b8({type:"error",message:b instanceof Error?b.message:String(b)})}},[b8,bT,bV]),cu=(0,t.useCallback)(async(a,b)=>{await ct(a,"steer",b)},[ct]),cv=(0,t.useCallback)(async(a,b,c)=>{await ct(a,b,c)},[ct]),cw=(0,t.useCallback)(async(a,b)=>{await ct(a,"followUp",b)},[ct]),cx=(0,t.useCallback)(async()=>{let a=bj.current;if(a)try{await sL(a,{type:"abort_compaction"})}catch(a){console.error("Failed to abort compaction:",a)}},[]),cy=(0,t.useCallback)(async()=>{let a=bj.current;if(a)try{let b=await sL(a,{type:"clear_queue"});bc({steering:[],followUp:[]});let c=[...s0(b?.steering),...s0(b?.followUp)];if(0===c.length)return;bV(c.map(a=>a.text).filter(Boolean).join("\n\n"),c.flatMap(a=>a.images).map(a=>({...a,previewUrl:""})),bT)}catch(a){console.error("Failed to recall queued messages:",a),b8({type:"error",message:a instanceof Error?a.message:"Failed to recall queued messages"})}},[b8,bT,bV]),cz=(0,t.useCallback)(async a=>{if(ay(a),r&&!bj.current&&(bG.current="auto"===a?null:a),"auto"===a)return;let b=bj.current??await bD.current;if(b)try{await sL(b,{type:"set_thinking_level",level:a})}catch(a){console.error("Failed to set thinking level:",a)}},[r]),cA=(0,t.useCallback)(async a=>{let b=(0,bd.xG)(a);!function(a,b=null){if(b)try{b.setItem("pi-tool-preset",a)}catch{}}(a),bP(a);let c=bj.current??await bD.current;if(!c){bi.current=void 0!==b;return}try{let a=await sL(c,{type:"set_tools",...void 0!==b?{toolNames:b}:{}});bi.current=void 0!==b;let d=a?.sessionId??c,e=a?.recreated===!0;d!==c&&(b2(),b3(),bj.current=d),a0([]),bm.current&&(e||d!==c)&&b5(d);let[f]=await Promise.all([sL(d,{type:"get_state"}),bZ(d)]);bO.current&&bj.current===d&&aE(f.systemPrompt??"")}catch(a){console.error("Failed to set tools:",a)}},[b2,b3,bZ,b5,bP]),cB=(0,t.useCallback)((a,b=16)=>{let c=bC.current;c&&(bv.current=!0,bw.current=!1,bx.current=!1,c.scrollTo({top:a.getBoundingClientRect().top-c.getBoundingClientRect().top+c.scrollTop-b,behavior:"instant"}),by.current=c.scrollTop)},[]);(0,t.useCallback)(()=>{let a=bC.current;if(a){let{scrollTop:b,clientHeight:c,scrollHeight:d}=a,e=bn.current,f=bx.current,g=function(a,b,c,d,e,f=96){return!!ci(c,d,e)||!(c<b)&&(!!(!a&&c>b&&ci(c,d,e,f))||a)}(f,by.current,b,c,d,e?96:8);bx.current=g,by.current=b,!f&&g&&e&&bQ("instant")}},[bQ]);let[cC,cD]=(0,t.useState)(null);return(0,t.useRef)(5e3),(0,t.useRef)(null),(0,t.useRef)(null),{data:y,loading:A,error:C,activeLeafId:E,messages:G,activeToolResults:I,entryIds:K,historyCursor:M,hasEarlierMessages:O,streamState:R,agentRunning:U,directImageRunning:$,modelNames:ad,modelList:af,modelError:ah,modelScopeWarnings:aj,modelThinkingLevels:al,modelThinkingLevelMaps:an,newSessionModel:ar,toolPreset:av,thinkingLevel:ax,retryInfo:az,contextUsage:aB,systemPrompt:aD,forkingEntryId:aF,isCompacting:aN,autoCompactionEnabled:aP,compactError:aT,compactResult:aV,currentModel:bR,displayModel:bS,modelSwitching:aL,sessionStats:bW,slashCommands:a_,slashCommandsLoading:a1,queuedMessages:bb,notices:a3.visible,extensionDialog:a7,extensionCustomUi:a9,respondToExtensionUi:b6,sendExtensionCustomInput:b7,isAutoModelSelection:r&&null===ar,agentPhase:aZ,isNew:r,sessionIdRef:bj,scrollContainerRef:bC,initialScrollDoneRef:bv,handleSend:cj,handleDirectImageGeneration:ck,abortDirectImageGeneration:cl,handleAbort:cm,handleFork:cn,handleNavigate:co,handleModelChange:cp,handleCompact:cq,handleSteer:cu,handleFollowUp:cw,handlePromptWithStreamingBehavior:cv,handleAbortCompaction:cx,handleRecallQueue:cy,handleBuiltinSlashCommand:cs,addNotice:b8,setNoticePaused:cD,handleToolPresetChange:cA,handleThinkingLevelChange:cz,loadTools:bZ,loadSlashCommands:b1,setActiveLeafId:F,setData:z,setMessages:H,loadContext:bY,scrollToBottom:bQ,scrollToMessage:cB,dispatch:S,setAgentRunning:V,setForkingEntryId:aG,bashRunning:W,pendingBash:Y,handleAgentEventRef:bu}}({session:a,sessionRunning:g,newSessionCwd:h,newSessionDraftKey:i,onAgentEnd:af,onAttentionNeeded:ag,onSessionCreated:w,onSessionForked:ah,modelsRefreshKey:y,chatInputRef:ad,onBranchDataChange:C,onSystemPromptChange:D,onSystemToolsChange:E,onSystemInfoLoaderChange:F,onSessionStatsPanelOpen:J,deferInitialScroll:!!am,isVisiblePane:B}),bC=aA||aB||aD,bD=(0,t.useCallback)(()=>aB?bj():bk(),[bj,aB,bk]),bE=(0,t.useRef)(null),bF=a_?a_.tokens.input+a_.tokens.cacheRead+a_.tokens.cacheWrite:0,bG=a_&&bF>0?a_.tokens.cacheRead/bF*100:null,[bH,bI]=(0,t.useState)(null),bK=be&&0===at.length&&!az.isStreaming&&!bC&&null===bH,[bL,bN]=(0,t.useState)(!1),[bO,bP]=(0,t.useState)(null),[bQ,bR]=(0,t.useState)(!1),[bS,bT]=(0,t.useState)(null),[bU,bV]=(0,t.useState)(void 0),[bZ,b0]=(0,t.useState)(0),[b1,b2]=(0,t.useState)(null),[b4,b6]=(0,t.useState)(!1),[b7,b8]=(0,t.useState)(!1),[ca,cb]=(0,t.useState)(null),cc=(0,t.useRef)(null),ce=(0,t.useRef)(null),cl=(0,t.useRef)(null),cm=(0,t.useCallback)(async(b,c)=>{aj();let d=null;for(let a=at.length-1;a>=0;a--){let b=aC(at[a].details);if(b){d=b;break}}let e=a?.cwd??h,f=b.target,g=f&&(f.startsWith("/")||/^[a-zA-Z]:[\\/]/.test(f)?f:e?M(e,f):f);bI({prompt:b.prompt,size:b.size,width:c?void 0:d?.width,height:c?void 0:d?.height,previewUrl:c?`data:${c.mimeType};base64,${c.data}`:g?`/api/files/${I(g)}?type=read`:void 0});try{await bi(b,c),c&&ad.current?.removeAttachedImage(c.data)}catch(a){if(a instanceof DOMException&&"AbortError"===a.name)return;a9({type:"error",message:a instanceof Error?a.message:String(a)})}finally{bI(null)}},[a9,bi,aj,at,h,a?.cwd]),cn=(0,t.useCallback)(async a=>{let b=await bu(a);return!("error"in b)&&/^\/reload(?:\s|$)/.test(a.trim())&&b0(a=>a+1),b},[bu]),co=(0,t.useCallback)(()=>{b2(null),b6(!1),cb(null)},[]),cp=(0,t.useCallback)(a=>{let b=cl.current;if(b&&!(null!=a&&Math.hypot(a.clientX-b.x,a.clientY-b.y)>4)||!Q||b4)return;let c=window.getSelection(),d=c?.rangeCount?c.getRangeAt(0):null,e=cA.current;if(!c||c.isCollapsed||!d||!e||!e.contains(d.commonAncestorContainer))return void b2(null);let f=c.toString().trim();if(!f)return void b2(null);let g=d.getBoundingClientRect(),h=[d.commonAncestorContainer.nodeType===Node.ELEMENT_NODE?d.commonAncestorContainer:d.commonAncestorContainer.parentElement,d.startContainer.nodeType===Node.ELEMENT_NODE?d.startContainer:d.startContainer.parentElement,d.endContainer.nodeType===Node.ELEMENT_NODE?d.endContainer:d.endContainer.parentElement].map(a=>a?.closest('[data-message-role="assistant"]')?.dataset.entryId).find(a=>!!a);b2({text:f,top:Math.min(window.innerHeight-44,g.bottom+8),left:Math.max(64,Math.min(window.innerWidth-64,g.left+g.width/2)),sourceEntryId:h})},[Q,b4]),cq=(0,t.useCallback)(()=>{if(b1){var a,b,c;let d;ad.current?.insertText((a=b1.text,b=Z("chat.quoteIntro"),c=Z("chat.quoteQuestion"),d=a.trim().split("\n").map(a=>`> ${a}`).join("\n"),`${b}
|
|
5
|
+
${a}`,n=f&&!b,o=(0,t.useMemo)(()=>(0,s.jsx)("button",{type:"button",onClick:()=>g(a=>!a),disabled:b,title:b?e("i18n.previewAfterStreaming"):n?e("i18n.showMermaidSource"):e("i18n.previewMermaid"),className:["markdown-code-action",n?"is-active":""].filter(Boolean).join(" "),children:n?e("i18n.source"):e("i18n.preview")}),[b,n,e]);if(!n)return(0,s.jsx)(rP,{code:a,lang:"mermaid",headerAction:o,isStreaming:b});let p=h?.key===m&&"error"===h.status?(0,s.jsx)("div",{className:"mermaid-block mermaid-block-error",children:e("i18n.invalidMermaid")}):h?.key!==m||"ready"!==h.status?(0,s.jsx)("div",{className:"mermaid-block mermaid-block-loading","aria-label":e("i18n.renderingMermaid")}):(0,s.jsxs)(s.Fragment,{children:[!j&&(0,s.jsx)("button",{ref:l,type:"button",className:"mermaid-block mermaid-preview-button",title:e("i18n.openMermaidViewer"),"aria-label":e("i18n.openMermaidViewer"),onClick:()=>k(!0),dangerouslySetInnerHTML:{__html:h.svg}}),j&&(0,s.jsx)(rO,{svg:h.svg,onClose:()=>k(!1)})]});return(0,s.jsxs)("div",{className:"markdown-code-block",children:[(0,s.jsxs)("div",{className:"markdown-code-header",children:[(0,s.jsx)("span",{className:"markdown-code-lang",children:"mermaid"}),(0,s.jsxs)("div",{className:"markdown-code-actions",children:[h?.key===m&&"ready"===h.status&&(0,s.jsx)("button",{type:"button",className:"markdown-code-action",title:`${e("i18n.downloadFile")} (SVG)`,"aria-label":`${e("i18n.downloadFile")} (SVG)`,onClick:()=>{let a,b,c,d=l.current?.querySelector("svg");d&&(a=new XMLSerializer().serializeToString(d),b=URL.createObjectURL(new Blob([a],{type:"image/svg+xml;charset=utf-8"})),(c=document.createElement("a")).href=b,c.download="mermaid-diagram.svg",c.click(),setTimeout(()=>URL.revokeObjectURL(b),0))},children:"SVG"}),o]})]}),p]})}function rO({svg:a,onClose:b}){let{t:c}=(0,G.s)(),d=(0,t.useRef)(null),[e,f]=(0,t.useState)(1);return(0,s.jsx)("dialog",{ref:d,className:"mermaid-zoom-dialog","aria-label":c("i18n.mermaidViewer"),onCancel:a=>{a.preventDefault(),a.stopPropagation(),b()},onKeyDown:a=>{"Escape"===a.key&&(a.preventDefault(),a.stopPropagation(),b())},children:(0,s.jsxs)("div",{className:"mermaid-zoom-layout",children:[(0,s.jsxs)("div",{className:"mermaid-zoom-toolbar",children:[(0,s.jsx)("span",{className:"mermaid-zoom-title",children:c("i18n.mermaidDiagram")}),(0,s.jsxs)("div",{className:"mermaid-zoom-actions",children:[(0,s.jsxs)("div",{className:"mermaid-zoom-stepper",children:[(0,s.jsx)("button",{type:"button",onClick:()=>f(a=>Math.max(.5,a-.25)),disabled:e<=.5,title:c("i18n.zoomOut"),"aria-label":c("i18n.zoomOut"),children:(0,s.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M5 12h14"})})}),(0,s.jsxs)("span",{className:"mermaid-zoom-value",children:[Math.round(100*e),"%"]}),(0,s.jsx)("button",{type:"button",onClick:()=>f(a=>Math.min(3,a+.25)),disabled:e>=3,title:c("i18n.zoomIn"),"aria-label":c("i18n.zoomIn"),children:(0,s.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M12 5v14M5 12h14"})})})]}),(0,s.jsx)("button",{type:"button",className:"mermaid-zoom-icon-button",onClick:()=>f(1),title:c("i18n.fitToWidth"),"aria-label":c("i18n.fitToWidth"),children:(0,s.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M8 3H3v5M16 3h5v5M8 21H3v-5M16 21h5v-5"})})}),(0,s.jsx)("button",{type:"button",className:"mermaid-zoom-icon-button",onClick:b,title:c("i18n.close"),"aria-label":c("i18n.close"),children:(0,s.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M6 6l12 12M18 6 6 18"})})})]})]}),(0,s.jsx)("div",{className:"mermaid-zoom-viewport",onClick:a=>{a.target===a.currentTarget&&b()},children:(0,s.jsx)("div",{className:"mermaid-zoom-canvas",style:{width:`${100*e}%`},dangerouslySetInnerHTML:{__html:a}})})]})})}rM.supportedLanguages=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","armasm","arturo","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","awk","bash","basic","batch","bbcode","bbj","bicep","birb","bison","bnf","bqn","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","cilkc","cilkcpp","clike","clojure","cmake","cobol","coffeescript","concurnas","cooklang","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cue","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gettext","gherkin","git","glsl","gml","gn","go-module","go","gradle","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","linker-script","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","mata","matlab","maxscript","mel","mermaid","metafont","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","odin","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plant-uml","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rescript","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stata","stylus","supercollider","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wgsl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"];let rP=(0,t.memo)(function({code:a,lang:b,headerAction:c,isStreaming:d}){let{isDark:e}=mw(),{t:f}=(0,G.s)(),[g,h]=(0,t.useState)(!1);return(0,s.jsxs)("div",{className:"markdown-code-block",children:[(0,s.jsxs)("div",{className:"markdown-code-header",children:[(0,s.jsx)("span",{className:"markdown-code-lang",children:b||"text"}),(0,s.jsxs)("div",{className:"markdown-code-actions",children:[c,(0,s.jsxs)("button",{type:"button",onClick:()=>{mx(a).then(()=>{h(!0),setTimeout(()=>h(!1),1500)})},className:"markdown-code-action",title:f(g?"i18n.copied":"i18n.copy"),"aria-label":f(g?"i18n.copied":"i18n.copy"),children:[g?(0,s.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,s.jsx)("polyline",{points:"20 6 9 17 4 12"})}):(0,s.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),(0,s.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),(0,s.jsx)("span",{children:f(g?"i18n.copied":"i18n.copy")})]})]})]}),d?(0,s.jsx)("pre",{style:{margin:0,padding:"6px 10px",fontSize:"calc(13px + var(--chat-font-size-offset, 0px))",lineHeight:1.54,overflowX:"auto",scrollbarWidth:"thin",border:"none",borderRadius:0,background:"transparent",backgroundColor:"transparent"},children:(0,s.jsx)("code",{style:{fontFamily:"var(--font-mono)"},children:a})}):(0,s.jsx)(rM,{language:b||"text",style:e?mn.xJ:mn.vs,showLineNumbers:!0,lineNumberStyle:{color:"var(--text-dim)",fontStyle:"normal",opacity:.45,paddingRight:"0.8em",userSelect:"none"},customStyle:{margin:0,padding:"6px 10px",fontSize:"calc(13px + var(--chat-font-size-offset, 0px))",lineHeight:1.54,borderRadius:0,border:"none",boxShadow:"none",background:"transparent",backgroundColor:"transparent",overflowX:"auto",scrollbarWidth:"thin"},codeTagProps:{style:{fontFamily:"var(--font-mono)"}},children:a})]})});function rQ({children:a,className:b,isStreaming:c,cwd:d,onOpenFile:e}){let f=(0,t.useMemo)(()=>md(a),[a]),g=(0,t.useMemo)(()=>({code({className:a,children:b,...d}){let e=a?.replace("language-","").toLowerCase()??"",f=String(b);return a?.includes("language-")||f.includes("\n")?"mermaid"===e?(0,s.jsx)(rN,{code:f.replace(/\n$/,""),isStreaming:c,defaultPreview:!0}):(0,s.jsx)(rP,{code:f.replace(/\n$/,""),lang:e,isStreaming:c}):(0,s.jsx)("code",{className:"markdown-inline-code",...d,children:b})},pre:({children:a})=>(0,s.jsx)(s.Fragment,{children:a}),a({href:a,children:b,...c}){delete c.node;let f=e?ce(a,d):null;if(!f||!e)return(0,s.jsx)("a",{href:a,...c,target:"_blank",rel:"noopener noreferrer",children:b});let g=function(a){if(!a)return null;let b=a.split("#",2)[1];if(!b)return null;let c=new URLSearchParams(b).get("page");if(null===c||!/^\d+$/.test(c))return null;let d=Number(c);return Number.isSafeInteger(d)&&d>0?d:null}(a);return(0,s.jsx)("a",{href:a,...c,onClick:a=>{if(!ca(a))return;let b=a.currentTarget.getAttribute("target");b&&"_self"!==b||(a.preventDefault(),e(f,g??void 0))},children:b})},img({src:a,alt:b,...c}){delete c.node;let e="string"==typeof a?ce(a,d):null,f=e?`/api/files/${I(e)}?type=read`:a;return(0,s.jsx)("img",{src:f,alt:b??"",loading:"lazy",...c})},table:({children:a})=>(0,s.jsx)("div",{className:"markdown-table-wrap",children:(0,s.jsx)("table",{children:a})})}),[d,c,e]);return(0,s.jsx)("div",{className:["markdown-body",b].filter(Boolean).join(" "),children:(0,s.jsx)(fJ,{remarkPlugins:mj,rehypePlugins:ml,urlTransform:e?mb:void 0,components:g,children:f})})}function rR({toolName:a,isError:b,size:c=12}){if(b)return(0,s.jsxs)("svg",{width:c,height:c,viewBox:"0 0 24 24",fill:"none",stroke:"#ef4444",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",className:"shrink-0",style:{display:"block"},"aria-hidden":"true",children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,s.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),(0,s.jsx)("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]});let d=a.toLowerCase();return d.includes("bash")||d.includes("sh")||d.includes("terminal")||d.includes("powershell")||d.includes("command")?(0,s.jsxs)("svg",{width:c,height:c,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",className:"shrink-0 text-text-muted",style:{display:"block"},"aria-hidden":"true",children:[(0,s.jsx)("polyline",{points:"4 17 10 11 4 5"}),(0,s.jsx)("line",{x1:"12",y1:"19",x2:"20",y2:"19"})]}):"read"===d||d.includes("read_file")||d.includes("view")?(0,s.jsxs)("svg",{width:c,height:c,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",className:"shrink-0 text-text-muted",style:{display:"block"},"aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),(0,s.jsx)("polyline",{points:"14 2 14 8 20 8"}),(0,s.jsx)("line",{x1:"9",y1:"13",x2:"15",y2:"13"}),(0,s.jsx)("line",{x1:"9",y1:"17",x2:"13",y2:"17"})]}):d.includes("write")||d.includes("edit")||d.includes("patch")||d.includes("apply")?(0,s.jsxs)("svg",{width:c,height:c,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",className:"shrink-0 text-text-muted",style:{display:"block"},"aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),(0,s.jsx)("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]}):d.includes("todo")||d.includes("task")?(0,s.jsxs)("svg",{width:c,height:c,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",className:"shrink-0 text-text-muted",style:{display:"block"},"aria-hidden":"true",children:[(0,s.jsx)("rect",{x:"3",y:"5",width:"6",height:"6",rx:"1"}),(0,s.jsx)("path",{d:"m3 17 2 2 4-4"}),(0,s.jsx)("path",{d:"M13 6h8"}),(0,s.jsx)("path",{d:"M13 12h8"}),(0,s.jsx)("path",{d:"M13 18h8"})]}):d.includes("agent")||d.includes("subagent")?(0,s.jsx)(ai,{size:c,strokeWidth:2.2,className:"shrink-0 text-text-muted",style:{display:"block"}}):d.includes("search")||d.includes("fetch")||d.includes("web")||d.includes("browser")?(0,s.jsxs)("svg",{width:c,height:c,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",className:"shrink-0 text-text-muted",style:{display:"block"},"aria-hidden":"true",children:[(0,s.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,s.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}):(0,s.jsx)("svg",{width:c,height:c,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",className:"shrink-0 text-text-muted",style:{display:"block"},"aria-hidden":"true",children:(0,s.jsx)("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"})})}let rS=/<(read-files|modified-files)>\s*([\s\S]*?)\s*<\/\1>/g,rT=/(?:\r?\n){2,}((?:[ \t]*<(?:read-files|modified-files)>[ \t]*\r?\n[\s\S]*?\r?\n[ \t]*<\/(?:read-files|modified-files)>[ \t]*(?:\r?\n)?)+)\s*$/;function rU(a){let b,c=[],d=null,e=0,f=0,g=0,h=0,i=[],j=[],k=()=>({lineNo:null,text:"",type:"empty"}),l=()=>{if(!d){i=[],j=[];return}let a=Math.max(i.length,j.length);for(let b=0;b<a;b++){let a=i[b]?{lineNo:i[b].lineNo,text:i[b].text,type:"removed"}:k(),c=j[b]?{lineNo:j[b].lineNo,text:j[b].text,type:"added"}:k();d.rows.push({type:"line",left:a,right:c})}i=[],j=[]};for(let k of a.split(/\r?\n/)){if(!(g>0||h>0)){if(k.startsWith("--- ")){l(),b=rV(k.slice(4));continue}if(k.startsWith("+++ ")){l(),d={oldPath:b,newPath:rV(k.slice(4)),rows:[]},c.push(d);continue}}let a=k.match(/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/);if(a){d||(d={rows:[]},c.push(d)),l(),e=Number(a[1]),f=Number(a[3]),g=void 0===a[2]?1:Number(a[2]),h=void 0===a[4]?1:Number(a[4]),d.rows.push({type:"hunk",text:k});continue}if(!d)continue;if(k.startsWith("\\ ")){l(),d.rows.push({type:"hunk",text:k});continue}let m=k[0],n=k.slice(1);" "===m?(l(),d.rows.push({type:"line",left:{lineNo:e++,text:n,type:"context"},right:{lineNo:f++,text:n,type:"context"}}),g>0&&g--,h>0&&h--):"-"===m?(i.push({lineNo:e++,text:n}),g>0&&g--):"+"===m?(j.push({lineNo:f++,text:n}),h>0&&h--):""!==k&&(l(),d.rows.push({type:"hunk",text:k}))}l();let m=c.filter(a=>a.rows.some(a=>"line"===a.type));return m.length>0?m:null}function rV(a){return a.split(" ")[0].trim()}function rW(){return!1}function rX({files:a,onOpenFile:b}){let{t:c}=(0,G.s)();return 0===a.length?null:(0,s.jsx)("div",{"aria-label":c("chat.filesWritten"),style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:6,marginTop:6},children:a.map(({filePath:a})=>{let d=J(a);return(0,s.jsxs)("button",{type:"button",title:a,"aria-label":c("chat.openWrittenFile",{name:d}),onClick:()=>b?.(a),style:{display:"inline-flex",alignItems:"center",gap:5,padding:"2.5px 7px",minHeight:22,fontSize:"calc(11.5px + var(--chat-font-size-offset, 0px))",fontFamily:"var(--font-mono)",lineHeight:1,color:"var(--text-muted)",background:"color-mix(in srgb, var(--bg-subtle) 65%, var(--bg))",border:"1px solid color-mix(in srgb, var(--border) 70%, transparent)",borderRadius:5,cursor:"pointer",transition:"background 0.12s ease, color 0.12s ease"},onMouseEnter:a=>{a.currentTarget.style.background="var(--bg-hover)",a.currentTarget.style.color="var(--text)"},onMouseLeave:a=>{a.currentTarget.style.background="color-mix(in srgb, var(--bg-subtle) 65%, var(--bg))",a.currentTarget.style.color="var(--text-muted)"},children:[(0,s.jsx)("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,transform:"translateY(0.5px)"},children:W(d,12)}),(0,s.jsx)("span",{style:{lineHeight:1},children:d})]},a)})})}function rY({children:a,className:b,...c}){let{t:d}=(0,G.s)(),[e,f]=(0,t.useState)(!1);if(a.length<=1e5)return(0,s.jsx)(rQ,{className:b,...c,children:a});if(!e){var g;return(0,s.jsxs)("button",{onClick:()=>f(!0),style:{display:"block",width:"100%",margin:"4px 0",padding:"7px 10px",border:"1px solid var(--border)",borderRadius:6,background:"var(--bg-panel)",color:"var(--text-muted)",cursor:"pointer",fontSize:12,textAlign:"left"},children:["⚠ ",d("i18n.largeMessageReveal",{size:(g=a.length)>=1e6?`${(g/1e6).toFixed(1)} MB`:g>=1e3?`${Math.round(g/1e3)} KB`:`${g} B`})]})}return(0,s.jsx)("div",{className:b,style:{maxHeight:420,overflow:"auto",fontSize:"calc(12px + var(--chat-font-size-offset, 0px))",lineHeight:1.5},children:(0,s.jsx)("pre",{style:{margin:0,padding:"8px 10px",whiteSpace:"pre-wrap",wordBreak:"break-word",fontFamily:"var(--font-mono)",color:"var(--text-muted)"},children:a})})}function rZ(a,b){if("number"!=typeof a||"number"!=typeof b)return;let c=Math.round((b-a)/1e3);return c>0?c:void 0}function r$(a){if(!a)return null;let b=new Date(a),c=new Date,d=b.getFullYear()===c.getFullYear()&&b.getMonth()===c.getMonth()&&b.getDate()===c.getDate(),e=b.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});if(d)return e;let f=b.toLocaleDateString([],{month:"short",day:"numeric",year:b.getFullYear()!==c.getFullYear()?"numeric":void 0});return`${f} ${e}`}let r_=(0,t.memo)(function({message:a,modelName:b,isStreaming:c,toolResults:d,cwd:e,onOpenFile:f,onOpenSession:g,entryId:h,searchBlock:i,onFork:j,forking:k,onNavigate:l,prevAssistantEntryId:m,onEditContent:n,isTurnEnd:o,sessionId:p,writtenFiles:q,isProcess:r,runningToolIds:t}){return"user"===a.role?(0,s.jsx)(r2,{message:a,cwd:e,onOpenFile:f,entryId:h,onFork:j,forking:k,onNavigate:l,prevAssistantEntryId:m,onEditContent:n}):"assistant"===a.role?(0,s.jsx)(r3,{message:a,modelName:b,isStreaming:c,toolResults:d,cwd:e,onOpenFile:f,onOpenSession:g,isTurnEnd:o,sessionId:p,entryId:h,searchBlock:i,writtenFiles:q,isProcess:r,runningToolIds:t}):"toolResult"===a.role?null:"custom"===a.role?"compaction"===a.customType?(0,s.jsx)(sj,{message:a}):bX(a)?(0,s.jsx)(sm,{message:a,cwd:e,onOpenFile:f}):(0,s.jsx)(sn,{message:a,cwd:e,onOpenFile:f}):"bashExecution"===a.role?(0,s.jsx)(sr,{message:a,sessionId:p}):null},(a,b)=>a.message===b.message&&a.isStreaming===b.isStreaming&&function(a,b,c){if(b===c||"assistant"!==a.role)return!0;for(let d of a.content??[])if("toolCall"===d.type&&b?.get(d.toolCallId)!==c?.get(d.toolCallId))return!1;return!0}(a.message,a.toolResults,b.toolResults)&&a.cwd===b.cwd&&a.onOpenFile===b.onOpenFile&&a.onOpenSession===b.onOpenSession&&a.entryId===b.entryId&&a.searchBlock===b.searchBlock&&a.onFork===b.onFork&&a.forking===b.forking&&a.onNavigate===b.onNavigate&&a.prevAssistantEntryId===b.prevAssistantEntryId&&a.onEditContent===b.onEditContent&&a.isTurnEnd===b.isTurnEnd&&a.modelName===b.modelName&&a.writtenFiles===b.writtenFiles&&a.sessionId===b.sessionId&&a.isProcess===b.isProcess);function r0({text:a,cwd:b,onOpenFile:c}){let d=function(a){let b=[],c=0;for(let d of a.matchAll(az)){let e=function(a){let b=(a[1]??a[2]??"").replace(/[),.;]+$/,"");if(!(!aA.test(b)||b.split(/[\\/]/).includes("..")))return b}(d),f=d.index??0;e&&(f>c&&b.push({type:"text",value:a.slice(c,f)}),b.push({type:"mention",path:e}),c=f+d[0].length)}return c<a.length&&b.push({type:"text",value:a.slice(c)}),b.length?b:[{type:"text",value:a}]}(a),e=d.filter(a=>"mention"===a.type),f=d.filter(a=>"text"===a.type).map(a=>a.value).join("").trim();return e.length?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{style:{display:"flex",gap:6,flexWrap:"wrap",marginBottom:8*!!f},children:e.map(a=>(0,s.jsx)(aG,{path:a.path,cwd:b},a.path))}),f?(0,s.jsx)(rY,{className:"markdown-user-message",cwd:b,onOpenFile:c,children:f}):null]}):(0,s.jsx)(rY,{className:"markdown-user-message",cwd:b,onOpenFile:c,children:a})}let r1=/^\[Image(?:: original \d+x\d+, displayed at \d+x\d+\. Multiply coordinates by \d+\.\d{2} to map to original image\.| converted from \S+ to \S+\.)\]$/;function r2({message:a,cwd:b,onOpenFile:c,entryId:d,onFork:e,forking:f,onNavigate:g,prevAssistantEntryId:h,onEditContent:i}){let{t:j}=(0,G.s)(),[k,l]=(0,t.useState)(!1),[m,n]=(0,t.useState)(!1),[o,p]=(0,t.useState)(!1),q=function(a){let b=a.split("\n"),c=b.length;for(;c>0&&(""===b[c-1].trim()||r1.test(b[c-1].trim()));)c-=1;return b.slice(0,c).join("\n")}("string"==typeof a.content?a.content:a.content.filter(a=>"text"===a.type).map(a=>a.text).join("\n")),r="string"==typeof a.content?[]:a.content.filter(a=>"image"===a.type),u=z(q),v=u?.search(/\s/)??-1,w=u?-1===v?u:u.slice(0,v):"",x=u&&-1!==v?u.slice(v+1):"",y=r$(a.timestamp),A=!!d&&!!e,B=u??q,C=u?function(a,b){if("string"==typeof a.content)return{...a,content:b};let c=[],d=!1;for(let e of a.content){if("text"!==e.type){c.push(e);continue}d||(c.push({...e,text:b}),d=!0)}return d||c.unshift({type:"text",text:b}),{...a,content:c}}(a,u):a,D=r.length>0&&(0,s.jsx)("div",{style:{display:"flex",gap:6,flexWrap:"wrap",marginBottom:8*!!q},children:r.map((a,b)=>{let c=a.source?"base64"===a.source.type?`data:${a.source.media_type};base64,${a.source.data}`:a.source.url??"":a.data?`data:${a.mimeType};base64,${a.data}`:"";return(0,s.jsx)(au,{src:c,children:(0,s.jsx)("img",{src:c,alt:"",style:{maxWidth:240,maxHeight:240,borderRadius:8,objectFit:"contain",display:"block",border:"1px solid var(--border)"}})},b)})}),E=!!h&&!!g;return(0,s.jsxs)("div",{style:{marginBottom:10,display:"flex",flexDirection:"column",alignItems:"flex-end"},onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[(0,s.jsx)("div",{style:{display:"flex",alignItems:"flex-end",gap:6,maxWidth:"min(85%, 680px)"},children:(0,s.jsx)("div",{style:{flex:1,minWidth:0,background:"var(--user-bg)",border:"1px solid var(--user-border, var(--border))",borderRadius:6,padding:"6px 11px",fontSize:"calc(14px + var(--chat-font-size-offset, 0px))",lineHeight:1.58,color:"var(--text)",wordBreak:"break-word",maxHeight:480,overflowY:"auto"},children:u?(0,s.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6,minWidth:0},children:[D,(0,s.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:8,flexWrap:"wrap"},children:[(0,s.jsxs)("button",{onClick:()=>p(a=>!a),title:j(o?"i18n.collapse":"i18n.expand"),"aria-expanded":o,style:{display:"flex",alignItems:"center",gap:6,flexShrink:0,padding:0,background:"none",border:"none",cursor:"pointer",color:"var(--accent)",fontFamily:"var(--font-mono)",fontSize:"calc(13px + var(--chat-font-size-offset, 0px))",textAlign:"left"},children:[(0,s.jsx)("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:w}),(0,s.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0,opacity:.75,transform:o?"rotate(180deg)":"none",transition:"transform 0.15s"},"aria-hidden":"true",children:(0,s.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),x&&(0,s.jsx)("span",{style:{color:"var(--text)",fontSize:"calc(14px + var(--chat-font-size-offset, 0px))",lineHeight:1.58,whiteSpace:"pre-wrap",wordBreak:"break-word",flex:"1 0 auto",width:"max-content",maxWidth:"100%"},children:x})]}),o&&(0,s.jsx)(rQ,{className:"markdown-user-message",cwd:b,onOpenFile:c,children:q})]}):(0,s.jsxs)(s.Fragment,{children:[D,q&&(0,s.jsx)(r0,{text:q,cwd:b,onOpenFile:c})]})})}),(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:6,marginTop:2},children:[(0,s.jsx)("div",{className:"message-action-group",style:{opacity:+!!k,pointerEvents:k?"auto":"none"},children:(0,s.jsx)("button",{type:"button",className:"message-action-button","data-copied":m?"true":void 0,onClick:()=>{mx(B).then(()=>{n(!0),setTimeout(()=>n(!1),1500)})},title:j(m?"i18n.copied":"i18n.copyMessage"),"aria-label":j(m?"i18n.copied":"i18n.copy"),children:m?(0,s.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,s.jsx)("polyline",{points:"20 6 9 17 4 12"})}):(0,s.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),(0,s.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})}),(A||E)&&(0,s.jsxs)("div",{className:"message-action-group",style:{opacity:k||f?1:0,pointerEvents:k||f?"auto":"none"},children:[E&&(0,s.jsx)("button",{type:"button",className:"message-action-button",onClick:()=>{g(h),i?.(C)},title:j("i18n.editFromHereTitle"),"aria-label":j("i18n.editFromHere"),children:(0,s.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("polyline",{points:"15 10 20 15 15 20"}),(0,s.jsx)("path",{d:"M4 4v7a4 4 0 0 0 4 4h12"})]})}),A&&(0,s.jsx)("button",{type:"button",className:"message-action-button",onClick:()=>{e(d)},disabled:f,title:j(f?"i18n.creatingSession":"i18n.newSessionTitle"),"aria-label":j(f?"i18n.creating":"i18n.newSession"),children:(0,s.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("line",{x1:"6",y1:"3",x2:"6",y2:"15"}),(0,s.jsx)("circle",{cx:"18",cy:"6",r:"3"}),(0,s.jsx)("circle",{cx:"6",cy:"18",r:"3"}),(0,s.jsx)("path",{d:"M18 9a9 9 0 0 1-9 9"})]})})]}),y&&(0,s.jsx)("span",{style:{fontSize:10,color:"var(--text-dim)",fontFamily:"var(--font-mono)",userSelect:"none"},children:y})]})]})}function r3({message:a,modelName:b,isStreaming:c,toolResults:d,cwd:e,onOpenFile:f,onOpenSession:g,isTurnEnd:h,sessionId:i,entryId:j,searchBlock:k,writtenFiles:l,isProcess:m,runningToolIds:n}){let{t:o}=(0,G.s)(),[p,q]=(0,t.useState)(!1),r=(0,t.useMemo)(()=>(a.content??[]).map((a,b)=>({block:a,originalIndex:b})).filter(({block:a})=>!bZ(a,{isStreaming:c})),[a.content,c]),u=(0,t.useMemo)(()=>r.map(({block:a})=>a),[r]),v=a.completedAt??a.timestamp,w=(0,t.useMemo)(()=>{let b=new Map;if(!d||void 0===v)return b;for(let c of a.content){if("toolCall"!==c.type)continue;let a=d.get(c.toolCallId),e=rZ(v,a?.timestamp);void 0!==e&&b.set(c.toolCallId,e)}return b},[a.content,d,v]),x=b_(a,{isStreaming:c}),y=function(a,b={}){return!b.isStreaming&&"length"===a.stopReason}(a,{isStreaming:c}),z=u.filter(a=>"text"===a.type).map(a=>a.text).join("\n"),A=h&&!c?r$(a.timestamp):null,B=h&&!c&&(b||a.model)||null,C=h&&!c&&!!(B||z||A);return 0!==u.length||c||x||y?(0,s.jsxs)("div",{"data-message-role":"assistant","data-entry-id":j,style:{marginBottom:h?16:8},children:[(0,s.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:4},children:r.map(({block:b,originalIndex:h},l)=>{let m="thinking"===b.type?b:null,o=m?m.startedAt??a.timestamp:void 0,p=m?rZ(o,m.endedAt??a.completedAt):void 0,q=!!(c&&m&&l===r.length-1&&void 0===p&&"number"==typeof o);return(0,s.jsx)(r6,{block:b,searchTarget:b===k,toolResults:d,isStreaming:c,streamingDuration:p,startTime:"toolCall"===b.type?v:o,live:q||"toolCall"===b.type&&!!n?.has(b.toolCallId),toolCallDurations:w,cwd:e,onOpenFile:f,onOpenSession:g,sessionId:i,entryId:j,blockIndex:h},`${j??"stream"}-${h}`)})}),x&&(m?(0,s.jsx)("div",{style:{marginTop:4*(u.length>0)},children:(0,s.jsx)(r4,{error:x})}):(0,s.jsxs)("div",{role:"alert",style:{marginTop:8*(u.length>0),padding:"7px 10px",border:"1px solid rgba(239,68,68,0.3)",borderRadius:6,background:"rgba(239,68,68,0.07)",color:"#ef4444",fontFamily:"var(--font-mono)",fontSize:12,lineHeight:1.5,whiteSpace:"pre-wrap",overflowWrap:"anywhere"},children:["Error: ",x]})),y&&(0,s.jsx)("div",{role:"status",style:{marginTop:8*(u.length>0),padding:"7px 10px",border:"1px solid rgba(234,179,8,0.35)",borderRadius:6,background:"rgba(234,179,8,0.08)",color:"var(--text-muted)",fontSize:12,lineHeight:1.5},children:o("chat.truncatedByOutputLimit")}),l&&l.length>0&&(0,s.jsx)(rX,{files:l,onOpenFile:f}),C&&(0,s.jsxs)("div",{"data-answer-footer":!0,style:{display:"flex",alignItems:"center",gap:6,marginTop:2},children:[B&&(0,s.jsx)("div",{"data-answer-model":!0,style:{minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:"var(--text-dim)",fontSize:11,fontFamily:"var(--font-ui)"},children:B}),(z||A)&&(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,marginLeft:"auto",flexShrink:0},children:[z&&(0,s.jsx)("button",{type:"button",className:"answer-copy-button message-action-button","data-copied":p?"true":void 0,onClick:()=>{mx(z).then(()=>{q(!0),setTimeout(()=>q(!1),1500)})},title:o(p?"i18n.copied":"i18n.copyMessage"),"aria-label":o(p?"i18n.copied":"i18n.copy"),children:p?(0,s.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,s.jsx)("polyline",{points:"20 6 9 17 4 12"})}):(0,s.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),(0,s.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})}),A&&(0,s.jsx)("span",{style:{color:"var(--text-dim)",fontSize:10,fontFamily:"var(--font-mono)",userSelect:"none"},children:A})]})]})]}):null}function r4({error:a}){let{t:b}=(0,G.s)(),[c,d]=(0,t.useState)(!1),e=(0,t.useId)(),f=(0,t.useMemo)(()=>{let b=a.replace(/^(Error:\s*)+/i,"").trim();return b.split("\n")[0]||b},[a]);return(0,s.jsxs)("div",{"data-step-card":"",style:{borderRadius:6,overflow:"hidden",fontSize:"calc(11.5px + var(--chat-font-size-offset, 0px))",border:"1px solid rgba(248,113,113,0.35)",background:"rgba(248,113,113,0.05)"},children:[(0,s.jsx)("div",{style:{display:"flex",alignItems:"stretch",minWidth:0},children:(0,s.jsxs)("button",{type:"button","aria-expanded":c,"data-step-trigger":"","aria-controls":e,title:b(c?"chat.collapseProcess":"chat.expandProcess"),onClick:()=>d(a=>!a),style:{display:"flex",alignItems:"center",gap:6,flex:1,minWidth:0,padding:"3px 8px",minHeight:24,background:"none",border:"none",color:"var(--text-muted)",cursor:"pointer",fontSize:"inherit",textAlign:"left"},children:[(0,s.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:14,height:14,flexShrink:0,opacity:.85,transform:"translateY(0.5px)"},children:(0,s.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"#f87171",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,s.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),(0,s.jsx)("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),(0,s.jsx)("span",{style:{color:"#f87171",fontFamily:"var(--font-mono)",fontWeight:500,fontSize:11,lineHeight:1.35,flexShrink:0},children:b("chat.modelError")}),(0,s.jsx)("span",{style:{color:"var(--text-muted)",fontFamily:"var(--font-mono)",fontSize:11,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0,opacity:.85,lineHeight:1.35},children:f}),(0,s.jsx)("svg",{"data-step-chevron":"",width:"9",height:"9",viewBox:"0 0 10 10",fill:"none",stroke:"var(--text-dim)",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0,opacity:.4,display:"block",transform:c?"rotate(180deg)":"none",transition:"transform 0.15s, opacity 0.15s"},"aria-hidden":"true",children:(0,s.jsx)("polyline",{points:"2 3.5 5 6.5 8 3.5"})})]})}),c&&(0,s.jsxs)("div",{id:e,style:{padding:"8px 10px",background:"var(--bg)",borderTop:"1px solid rgba(248,113,113,0.2)",fontFamily:"var(--font-mono)",fontSize:"calc(11px + var(--chat-font-size-offset, 0px))",lineHeight:1.55,color:"#f87171",whiteSpace:"pre-wrap",overflowWrap:"anywhere"},children:["Error: ",a]})]})}function r5({seconds:a,startTime:b,live:c}){let{t:d}=(0,G.s)(),[e,f]=(0,t.useState)(Date.now),g=c&&void 0!==b?Math.max(0,Math.round((e-b)/1e3)):a;if(void 0===g)return null;let h=void 0!==b?d("chat.stepStartedAt",{time:new Date(b).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}):void 0;return(0,s.jsx)("span",{title:h,style:{fontSize:10,color:"var(--text-dim)",flexShrink:0,fontVariantNumeric:"tabular-nums",lineHeight:1.35},children:(0,F.a3)(g,d)})}function r6({block:a,searchTarget:b,toolResults:c,isStreaming:d,streamingDuration:e,startTime:f,live:g,toolCallDurations:h,cwd:i,onOpenFile:j,onOpenSession:k,sessionId:l,entryId:m,blockIndex:n}){if("text"===a.type){let c=a.text;return d||c&&""!==c.trim()?(0,s.jsx)("div",{"data-message-text":!0,"data-search-target":b||void 0,children:(0,s.jsx)(r7,{block:a,isStreaming:d,cwd:i,onOpenFile:j})}):null}if("image"===a.type){let c=sq(a);return c?(0,s.jsx)("div",{"data-search-target":b||void 0,style:{margin:"8px 0"},children:(0,s.jsx)(au,{src:c,children:(0,s.jsx)("img",{src:c,alt:"",style:{maxWidth:240,maxHeight:240,borderRadius:6,objectFit:"contain",display:"block",border:"1px solid var(--border)"}})})}):null}if("thinking"===a.type)return(0,s.jsx)(r8,{block:a,duration:e,startTime:f,live:g,sessionId:l,entryId:m,blockIndex:n});if("toolCall"===a.type){let b=c?.get(a.toolCallId),d=h?.get(a.toolCallId);return(0,s.jsx)(r9,{block:a,result:b,duration:d,startTime:f,live:g,onOpenSession:k})}return null}function r7({block:a,isStreaming:b,cwd:c,onOpenFile:d}){return(0,s.jsx)(rY,{className:"markdown-assistant-message",isStreaming:b,cwd:c,onOpenFile:d,children:a.text})}function r8({block:a,duration:b,startTime:c,live:d,sessionId:e,entryId:f,blockIndex:g}){var h;let{t:i}=(0,G.s)(),[j,k]=(0,t.useState)(rW),[l,m]=(0,t.useState)(null),[n,o]=(0,t.useState)(!1),[p,q]=(0,t.useState)(null);(0,t.useRef)(i).current=i;let r=(h=a.thinking,h.trimStart().match(/^[^\r\n]{0,240}/u)?.[0].trimEnd()??"");return(0,s.jsxs)("div",{"data-step-card":"",style:{borderRadius:6,overflow:"hidden",border:"1px solid var(--border)",background:"var(--bg-subtle)",transition:"border-color 0.15s ease"},children:[(0,s.jsx)("div",{style:{display:"flex",alignItems:"stretch",minWidth:0},children:(0,s.jsxs)("button",{type:"button","aria-expanded":j,"data-step-trigger":"","aria-label":`${i("i18n.thinking")}${r?`: ${r}`:""}`,title:i("i18n.thinking"),onClick:()=>k(a=>!a),style:{display:"flex",alignItems:"center",gap:6,flex:1,minWidth:0,padding:"3px 8px",minHeight:24,background:"none",border:"none",color:"var(--text-muted)",cursor:"pointer",textAlign:"left"},children:[(0,s.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:14,height:14,flexShrink:0,opacity:.85,transform:"translateY(0.5px)"},children:(0,s.jsx)(a0,{active:j,size:12})}),(0,s.jsx)("span",{style:{color:"var(--text)",fontFamily:"var(--font-ui)",fontWeight:500,fontSize:11.5,lineHeight:1.35,flexShrink:0},children:i("i18n.thinking")}),!j&&(0,s.jsx)("span",{style:{color:"var(--text-muted)",fontFamily:"var(--font-ui)",fontSize:11.5,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0,opacity:.85,lineHeight:1.35},children:r?(0,s.jsx)(fJ,{allowedElements:[],unwrapDisallowed:!0,skipHtml:!0,children:r}):"..."}),j&&(0,s.jsx)("div",{style:{flex:1}}),(0,s.jsx)(r5,{seconds:b,startTime:c,live:d}),(0,s.jsx)("svg",{"data-step-chevron":"",width:"9",height:"9",viewBox:"0 0 10 10",fill:"none",stroke:"var(--text-dim)",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0,opacity:.4,display:"block",transform:j?"rotate(180deg)":"none",transition:"transform 0.15s, opacity 0.15s"},"aria-hidden":"true",children:(0,s.jsx)("polyline",{points:"2 3.5 5 6.5 8 3.5"})})]})}),j&&(0,s.jsx)("div",{style:{padding:"8px 10px",background:"var(--bg)",borderTop:"1px solid color-mix(in srgb, var(--border) 80%, transparent)",fontFamily:"var(--font-mono)",fontSize:"calc(11px + var(--chat-font-size-offset, 0px))",lineHeight:1.55,color:p?"#f87171":"var(--text-muted)",whiteSpace:"pre-wrap",overflowWrap:"anywhere"},children:n?i("i18n.loadingThinking"):p??(a.deferred?l:a.thinking)})]})}function r9({block:a,result:b,duration:c,startTime:d,live:e,onOpenSession:f}){var g,h;let{t:i}=(0,G.s)(),[j,k]=(0,t.useState)(!1),l=(h=a).rawInput??JSON.stringify(h.input,null,2),m=void 0!==a.rawInput,n=cf(a.toolName),o=cg(a.toolName),p=o?"string"==typeof a.input?.patch?a.input.patch:function(a){if(!a)return;let b=/"patch"\s*:\s*"((?:[^"\\]|\\.)*)"/.exec(a);if(!b)return;let c=b[1];if(!c.endsWith("\\")||c.endsWith("\\\\"))try{return JSON.parse(`"${c}"`)}catch{return}}(a.rawInput):void 0,q=aD(a.toolName,a.input,b?.details),r="edit"===q?i("image.edit"):"generate"===q?i("image.generate"):a.toolName,u=b&&!b.isError?function(a){var b;let c=a.details;if(!("object"==typeof(b=c)&&null!==b&&!Array.isArray(b)))return null;let d="string"==typeof c.patch?c.patch:null;if(d)return{text:d};let e="string"==typeof c.diff?c.diff:null;return e?{text:e}:null}(b):null,v=b?b.content.filter(a=>"text"===a.type).map(a=>a.text).join("\n"):null,w=sp(b?.content??[]),x=null!==v&&("(no output)"===v.trim()||""===v.trim()),y=b?.isError??!1,z=(g=b?.details)&&"object"==typeof g&&"pi-web-subagent"===g.kind&&"string"==typeof g.sessionId?b.details:null;return(0,s.jsxs)("div",{"data-step-card":"",style:{borderRadius:6,overflow:"hidden",fontSize:"calc(11.5px + var(--chat-font-size-offset, 0px))",border:y?"1px solid rgba(248,113,113,0.45)":"1px solid var(--border)",background:y?"rgba(248,113,113,0.05)":"var(--bg-subtle)",transition:"border-color 0.15s ease"},children:[(0,s.jsxs)("div",{style:{display:"flex",alignItems:"stretch",minWidth:0},children:[(0,s.jsxs)("button",{type:"button","aria-expanded":j,"data-step-trigger":"",onClick:()=>k(a=>!a),style:{display:"flex",alignItems:"center",gap:6,flex:1,minWidth:0,padding:"3px 8px",minHeight:24,background:"none",border:"none",color:"var(--text-muted)",cursor:"pointer",fontSize:"inherit",textAlign:"left"},children:[(0,s.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:14,height:14,flexShrink:0,opacity:.85,transform:"translateY(0.5px)"},children:(0,s.jsx)(rR,{toolName:a.toolName,isError:y,size:12})}),(0,s.jsx)("span",{style:{color:y?"#f87171":"var(--text)",fontFamily:"var(--font-mono)",fontWeight:500,fontSize:11,lineHeight:1.35,flexShrink:0},children:r}),(0,s.jsx)("span",{style:{color:"var(--text-muted)",fontFamily:"var(--font-mono)",fontSize:11,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0,opacity:.85,lineHeight:1.35},children:m?i("chat.generatingToolInput"):function(a){let b=a.input;if(!b||"object"!=typeof b)return"";let c=Object.keys(b);return 0===c.length?"":"command"in b?String(b.command).slice(0,120):"path"in b?String(b.path).slice(0,120):"file_path"in b?String(b.file_path).slice(0,120):"pattern"in b?String(b.pattern).slice(0,120):"query"in b?String(b.query).slice(0,120):String(b[c[0]]).slice(0,120)}(a)}),(0,s.jsx)(r5,{seconds:c,startTime:d,live:e}),(0,s.jsx)("svg",{"data-step-chevron":"",width:"9",height:"9",viewBox:"0 0 10 10",fill:"none",stroke:"var(--text-dim)",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0,opacity:.4,display:"block",transform:j?"rotate(180deg)":"none",transition:"transform 0.15s, opacity 0.15s"},"aria-hidden":"true",children:(0,s.jsx)("polyline",{points:"2 3.5 5 6.5 8 3.5"})})]}),z&&f&&(0,s.jsx)("button",{type:"button",onClick:()=>f(z.sessionId),title:i("subagent.open"),"aria-label":i("subagent.open"),style:{width:30,display:"grid",placeItems:"center",border:"none",borderLeft:"1px solid var(--border)",background:"none",color:"var(--text-muted)",cursor:"pointer",flexShrink:0},children:(0,s.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M15 3h6v6"}),(0,s.jsx)("path",{d:"M10 14 21 3"}),(0,s.jsx)("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"})]})})]}),j&&(m||!n)&&!o&&(0,s.jsx)("pre",{style:{margin:0,padding:"8px 10px",color:"var(--text-muted)",fontSize:"calc(11.5px + var(--chat-font-size-offset, 0px))",lineHeight:1.5,overflow:"auto",background:"var(--bg)",borderTop:y?"1px solid rgba(239,68,68,0.25)":"1px solid color-mix(in srgb, var(--border) 80%, transparent)",whiteSpace:"pre-wrap",wordBreak:"break-all"},children:l}),j&&o&&void 0!==p&&(0,s.jsx)("div",{style:{borderTop:"1px solid color-mix(in srgb, var(--border) 80%, transparent)",background:"var(--bg)"},children:(0,s.jsx)(sd,{patch:p})}),j&&o&&void 0===p&&(0,s.jsx)("pre",{style:{margin:0,padding:"8px 10px",color:"var(--text-muted)",fontSize:"calc(11.5px + var(--chat-font-size-offset, 0px))",lineHeight:1.5,overflow:"auto",background:"var(--bg)",borderTop:"1px solid color-mix(in srgb, var(--border) 80%, transparent)",whiteSpace:"pre-wrap",wordBreak:"break-all"},children:i("chat.generatingToolInput")}),j&&b&&!(o&&void 0!==p)&&(u?(0,s.jsx)(sb,{diff:u}):(0,s.jsx)(si,{text:v??"",images:w,isEmpty:x,isError:y})),!j&&w.length>0&&(0,s.jsx)("div",{style:{padding:"6px 10px 8px",borderTop:y?"1px solid rgba(239,68,68,0.25)":"1px solid color-mix(in srgb, var(--border) 80%, transparent)",background:"var(--bg)"},children:(0,s.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:8},children:(0,s.jsx)(sa,{images:w,thumbnails:!0})})})]})}function sa({images:a,thumbnails:b=!1}){return(0,s.jsx)(s.Fragment,{children:a.map((a,c)=>{let d=sq(a);return d?(0,s.jsx)(au,{src:d,style:{maxWidth:"100%"},children:(0,s.jsx)("img",{src:d,alt:"",loading:"lazy",style:{display:"block",borderRadius:6,objectFit:"contain",border:"1px solid var(--border)",...b?{maxWidth:220,maxHeight:150}:{maxWidth:"min(100%, 720px)",maxHeight:520}}})},`${d}-${c}`):null})})}function sb({diff:a}){return(0,s.jsx)("div",{style:{borderTop:"1px solid rgba(34,197,94,0.15)",background:"var(--bg)"},children:(0,s.jsx)(sc,{text:a.text})})}function sc({text:a}){let b=(0,t.useMemo)(()=>rU(a),[a]);return b?(0,s.jsx)(se,{files:b}):(0,s.jsx)(sh,{text:a})}function sd({patch:a}){let b=(0,t.useMemo)(()=>b9(a),[a]);return b?(0,s.jsx)(se,{files:b.map(a=>({oldPath:"add"===a.operation?void 0:a.path,newPath:"delete"===a.operation?void 0:a.moveTo??a.path,rows:a.rows}))}):(0,s.jsx)(sh,{text:a})}function se({files:a}){let{t:b}=(0,G.s)(),c=a.length>1;return(0,s.jsx)("div",{style:{maxHeight:560,overflowY:"auto",overflowX:"hidden",background:"var(--bg)"},children:a.map((a,d)=>(0,s.jsxs)("div",{style:{minWidth:0,borderTop:0===d?"none":"1px solid var(--border)",fontFamily:"var(--font-mono)",fontSize:"calc(12px + var(--chat-font-size-offset, 0px))",lineHeight:1.55},children:[c&&(0,s.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"minmax(0, 1fr) minmax(0, 1fr)",position:"sticky",top:0,zIndex:1,background:"var(--bg-panel)",borderBottom:"1px solid var(--border)"},children:[(0,s.jsx)(sf,{title:a.oldPath||b("i18n.before"),side:"left"}),(0,s.jsx)(sf,{title:a.newPath||b("i18n.after"),side:"right"})]}),(0,s.jsx)("div",{style:{display:"grid",gridTemplateColumns:"minmax(0, 1fr) minmax(0, 1fr)"},children:a.rows.map((a,b)=>"hunk"===a.type?null:(0,s.jsxs)("div",{style:{display:"contents"},children:[(0,s.jsx)(sg,{cell:a.left,side:"left"}),(0,s.jsx)(sg,{cell:a.right,side:"right"})]},b))})]},d))})}function sf({title:a,side:b}){return(0,s.jsx)("div",{title:a,style:{padding:"5px 10px",color:"var(--text-dim)",borderRight:"left"===b?"1px solid var(--border)":"none",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:a})}function sg({cell:a,side:b}){let c="added"===a.type?"rgba(34,197,94,0.12)":"removed"===a.type?"rgba(248,113,113,0.13)":"empty"===a.type?"var(--bg-subtle)":"transparent",d="added"===a.type?"+":"removed"===a.type?"-":" ",e="added"===a.type?"#22c55e":"removed"===a.type?"#f87171":"var(--text-dim)";return(0,s.jsxs)("div",{style:{display:"flex",minWidth:0,background:c,borderRight:"left"===b?"1px solid var(--border)":"none"},children:[(0,s.jsx)("span",{style:{width:42,padding:"0 6px",textAlign:"right",color:"var(--text-dim)",userSelect:"none",background:"var(--bg-panel)",borderRight:"1px solid var(--border)",flexShrink:0},children:a.lineNo??""}),(0,s.jsx)("span",{style:{width:18,padding:"0 5px",color:e,userSelect:"none",fontWeight:"context"===a.type||"empty"===a.type?400:700,flexShrink:0},children:d}),(0,s.jsx)("span",{style:{flex:1,minWidth:0,padding:"0 10px 0 0",color:"empty"===a.type?"var(--text-dim)":"var(--text)",whiteSpace:"pre-wrap",overflowWrap:"anywhere"},children:a.text||"\xa0"})]})}function sh({text:a}){let b=a.split(/\r?\n/);return(0,s.jsx)("div",{style:{maxHeight:520,overflowY:"auto",overflowX:"hidden",fontFamily:"var(--font-mono)",fontSize:"calc(12px + var(--chat-font-size-offset, 0px))",lineHeight:1.55,minWidth:0},children:b.map((a,b)=>{let c=a.startsWith("@@")?"hunk":a.startsWith("+")&&!a.startsWith("+++")?"added":a.startsWith("-")&&!a.startsWith("---")?"removed":"context";return(0,s.jsxs)("div",{style:{display:"flex",background:"added"===c?"rgba(34,197,94,0.12)":"removed"===c?"rgba(248,113,113,0.13)":"hunk"===c?"rgba(96,165,250,0.12)":"transparent",borderLeft:"added"===c?"3px solid #22c55e":"removed"===c?"3px solid #f87171":"hunk"===c?"3px solid var(--accent)":"3px solid transparent"},children:[(0,s.jsx)("span",{style:{width:48,padding:"0 8px",color:"var(--text-dim)",background:"var(--bg-panel)",borderRight:"1px solid var(--border)",textAlign:"right",userSelect:"none",flexShrink:0},children:b+1}),(0,s.jsx)("span",{style:{padding:"0 10px",whiteSpace:"pre-wrap",overflowWrap:"anywhere",color:"added"===c?"#22c55e":"removed"===c?"#f87171":"hunk"===c?"var(--accent)":"var(--text)"},children:a||"\xa0"})]},b)})})}function si({text:a,images:b,isEmpty:c,isError:d}){let{t:e}=(0,G.s)(),f=!c||0===b.length;return(0,s.jsxs)("div",{style:{borderTop:`1px solid ${d?"rgba(248,113,113,0.3)":"rgba(34,197,94,0.15)"}`,background:d?"rgba(248,113,113,0.04)":"var(--bg-subtle)"},children:[b.length>0&&(0,s.jsx)("div",{style:{display:"flex",gap:8,flexWrap:"wrap",padding:"10px",background:"var(--bg)"},children:(0,s.jsx)(sa,{images:b})}),f&&(0,s.jsx)("pre",{style:{margin:0,padding:"8px 10px",color:d?"#f87171":c?"var(--text-dim)":"var(--text-muted)",fontSize:"calc(12px + var(--chat-font-size-offset, 0px))",lineHeight:1.5,overflow:"auto",maxHeight:400,background:"var(--bg)",whiteSpace:"pre-wrap",wordBreak:"break-all",fontStyle:c?"italic":"normal",opacity:c?.6:1},children:c?e("i18n.noOutput"):a})]})}function sj({message:a}){let{t:b}=(0,G.s)(),c=so(a.content),d=(0,t.useMemo)(()=>{let a,b,d,e,f;return a=[],b=[],d=c.match(rT),e=d?.[1]??"",f=d?.index===void 0?c:c.slice(0,d.index),e.replace(rS,(c,d,e)=>{let f=e.split(/\r?\n/).map(a=>a.trim()).filter(Boolean);return"read-files"===d?a.push(...f):b.push(...f),""}),{body:f.trim(),readFiles:a,modifiedFiles:b}},[c]),e=r$(a.timestamp);return(0,s.jsx)("div",{style:{marginBottom:16},children:(0,s.jsxs)("div",{style:{border:"1px solid var(--border)",borderRadius:8,overflow:"hidden",background:"var(--bg)"},children:[(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"7px 10px",borderBottom:"1px solid var(--border)",background:"var(--bg-panel)",color:"var(--text-muted)"},children:[(0,s.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,fontWeight:650},children:"compaction"}),e&&(0,s.jsx)("span",{style:{marginLeft:"auto",color:"var(--text-dim)",fontSize:10},children:e})]}),(0,s.jsxs)("div",{style:{padding:"11px 13px 12px"},children:[(0,s.jsx)("div",{style:{color:"var(--text)",fontSize:"calc(15px + var(--chat-font-size-offset, 0px))",fontWeight:700,lineHeight:1.35},children:b("i18n.conversationCompacted")}),(0,s.jsx)("div",{style:{marginTop:3,marginBottom:10,color:"var(--text)",fontSize:"calc(14px + var(--chat-font-size-offset, 0px))",lineHeight:1.5},children:b("i18n.compactionDescription")}),d.body?(0,s.jsx)(rQ,{className:"markdown-compaction-message",children:d.body}):(0,s.jsx)("span",{style:{color:"var(--text-dim)",fontSize:12},children:b("i18n.noSummary")}),(0,s.jsx)(sk,{readFiles:d.readFiles,modifiedFiles:d.modifiedFiles})]})]})})}function sk({readFiles:a,modifiedFiles:b}){let{t:c}=(0,G.s)();if(0===a.length+b.length)return null;let d=[];return a.length>0&&d.push(`${a.length} read`),b.length>0&&d.push(`${b.length} modified`),(0,s.jsxs)("details",{className:"compaction-file-details",children:[(0,s.jsx)("summary",{children:c("i18n.fileContext",{details:d.join(", ")})}),b.length>0&&(0,s.jsx)(sl,{title:c("i18n.modifiedFiles"),files:b}),a.length>0&&(0,s.jsx)(sl,{title:c("i18n.readFiles"),files:a})]})}function sl({title:a,files:b}){return(0,s.jsxs)("div",{className:"compaction-file-section",children:[(0,s.jsx)("div",{className:"compaction-file-title",children:a}),(0,s.jsx)("ul",{className:"compaction-file-list",children:b.map(a=>(0,s.jsx)("li",{children:a},a))})]})}function sm({message:a,cwd:b,onOpenFile:c}){let{t:d}=(0,G.s)(),[e,f]=(0,t.useState)(!1),g=(a.details?.sessionIds??[]).length||1,h=1===g?d("subagent.notificationSingle"):d("subagent.notificationMany",{count:g}),i=so(a.content);return(0,s.jsxs)("div",{"data-step-card":"",style:{overflow:"hidden",borderRadius:4},children:[(0,s.jsxs)("button",{type:"button","aria-expanded":e,"data-step-trigger":"",title:h,onClick:()=>f(a=>!a),style:{display:"flex",alignItems:"center",gap:6,width:"100%",minHeight:24,padding:"3px 8px",border:"none",background:"none",color:"var(--text-muted)",cursor:"pointer",textAlign:"left"},children:[(0,s.jsx)("span",{style:{width:14,height:14,display:"grid",placeItems:"center",flexShrink:0},children:(0,s.jsx)(ai,{size:12,strokeWidth:2})}),(0,s.jsx)("span",{style:{minWidth:0,flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:"var(--text)",fontFamily:"var(--font-mono)",fontSize:11,fontWeight:500},children:h}),(0,s.jsx)("svg",{"data-step-chevron":"",width:"9",height:"9",viewBox:"0 0 10 10",fill:"none",stroke:"var(--text-dim)",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0,opacity:.4,transform:e?"rotate(180deg)":"none",transition:"transform 0.15s"},"aria-hidden":"true",children:(0,s.jsx)("polyline",{points:"2 3.5 5 6.5 8 3.5"})})]}),e&&i&&(0,s.jsx)("div",{style:{padding:"7px 10px 8px 28px",borderTop:"1px solid color-mix(in srgb, var(--border) 65%, transparent)",color:"var(--text-muted)",fontSize:"calc(11px + var(--chat-font-size-offset, 0px))",lineHeight:1.48},children:(0,s.jsx)(rY,{className:"markdown-subagent-notification",cwd:b,onOpenFile:c,children:i})})]})}function sn({message:a,cwd:b,onOpenFile:c}){let d,{t:e}=(0,G.s)(),f=!1===a.display,[g,h]=(0,t.useState)(!f),[i,j]=(0,t.useState)(!1),[k,l]=(0,t.useState)(!1),m=so(a.content),n=sp(a.content),o=void 0!==a.details,p=o?function(a){try{return JSON.stringify(a,null,2)}catch{return String(a)}}(a.details):"",q=a.customType||"extension",r=r$(a.timestamp);return(0,s.jsx)("div",{style:{marginBottom:16},children:(0,s.jsxs)("div",{style:{border:"1px solid var(--border)",borderRadius:8,overflow:"hidden",background:f?"var(--bg-subtle)":"var(--bg)",opacity:f&&!g?.82:1},children:[(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"7px 10px",borderBottom:"1px solid var(--border)",background:"var(--bg-panel)",color:"var(--text-muted)",fontSize:12},children:[(0,s.jsx)("span",{style:{color:"var(--text-muted)",fontFamily:"var(--font-mono)",fontSize:11,fontWeight:650},children:q}),f&&(0,s.jsx)("span",{style:{color:"var(--text-dim)",fontSize:11},children:e("i18n.hiddenExtensionMessage")}),r&&(0,s.jsx)("span",{style:{marginLeft:"auto",color:"var(--text-dim)",fontSize:10},children:r})]}),g?(0,s.jsxs)("div",{style:{padding:"6px 9px"},children:[n.length>0&&(0,s.jsx)("div",{style:{display:"flex",gap:6,flexWrap:"wrap",marginBottom:8*!!m},children:n.map((a,b)=>{let c=sq(a);return c?(0,s.jsx)(au,{src:c,children:(0,s.jsx)("img",{src:c,alt:"",style:{maxWidth:240,maxHeight:240,borderRadius:6,objectFit:"contain",display:"block",border:"1px solid var(--border)"}})},b):null})}),m?(0,s.jsx)(rQ,{className:"markdown-custom-message",cwd:b,onOpenFile:c,children:m}):(0,s.jsx)("span",{style:{color:"var(--text-dim)",fontSize:12},children:e("i18n.noMessage")})]}):(0,s.jsx)("button",{onClick:()=>h(!0),style:{display:"block",width:"100%",padding:"8px 10px",border:"none",background:"transparent",color:"var(--text-dim)",cursor:"pointer",fontSize:12,textAlign:"left"},children:m?(d=m.replace(/\s+/g," ").trim())?d.length>140?`${d.slice(0,140)}...`:d:"Show extension message":e("i18n.showExtensionMessage")}),(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"4px 9px",borderTop:"1px solid var(--border)",background:"var(--bg-subtle)"},children:[m||p?(0,s.jsx)("button",{onClick:()=>{mx(m||p).then(()=>{l(!0),setTimeout(()=>l(!1),1500)})},style:{padding:"3px 7px",border:"none",background:"none",color:k?"var(--accent)":"var(--text-dim)",cursor:"pointer",fontSize:11},children:e(k?"i18n.copied":"i18n.copy")}):null,(o||f)&&(0,s.jsx)("button",{onClick:()=>{f?h(a=>!a):j(a=>!a)},style:{marginLeft:"auto",padding:"3px 7px",border:"none",background:"none",color:"var(--text-dim)",cursor:"pointer",fontSize:11},children:e(f?g?"i18n.collapse":"i18n.expand":i?"i18n.hideDetails":"i18n.showDetails")})]}),o&&(f&&g||!f&&i)&&(0,s.jsx)("pre",{style:{margin:0,padding:"9px 10px",borderTop:"1px solid var(--border)",background:"var(--bg)",color:"var(--text-muted)",fontSize:"calc(12px + var(--chat-font-size-offset, 0px))",lineHeight:1.5,whiteSpace:"pre-wrap",wordBreak:"break-word",maxHeight:360,overflow:"auto",fontFamily:"var(--font-mono)"},children:p})]})})}function so(a){return"string"==typeof a?a:a.filter(a=>"text"===a.type).map(a=>a.text).join("\n")}function sp(a){return"string"==typeof a?[]:a.filter(a=>"image"===a.type)}function sq(a){return a.source?"base64"===a.source.type?`data:${a.source.media_type};base64,${a.source.data}`:a.source.url??"":a.data?`data:${a.mimeType};base64,${a.data}`:""}function sr({message:a,sessionId:b}){let[c,d]=(0,t.useState)(null),[e,f]=(0,t.useState)(!1),[g,h]=(0,t.useState)(null),i=!a.output&&void 0===a.exitCode&&!a.cancelled,j=a.cancelled||void 0!==a.exitCode&&0!==a.exitCode,k=b&&a.fullOutputPath?`/api/agent/${encodeURIComponent(b)}/bash-output?path=${encodeURIComponent(a.fullOutputPath)}`:null,l=a.truncated&&k&&null===c,m=c??a.output;async function n(){if(k){f(!0),h(null);try{let a=await fetch(k),b=await a.json();b.success?d(b.data?.output??""):h(b.error??"failed")}catch(a){h(String(a))}finally{f(!1)}}}let o=a.excludeFromContext?"bash (local)":"bash",p={type:"toolCall",toolCallId:`bash-${a.timestamp??""}`,toolName:o,input:{command:a.command}},q=i?void 0:{role:"toolResult",toolCallId:p.toolCallId,toolName:o,content:m?[{type:"text",text:m}]:[],isError:j,timestamp:a.timestamp};return(0,s.jsxs)("div",{style:{margin:"6px 0"},children:[(0,s.jsx)(r9,{block:p,result:q}),a.truncated&&k&&(0,s.jsxs)("div",{style:{padding:"4px 10px",fontSize:11,marginTop:-1},children:[l&&(0,s.jsx)("button",{onClick:n,disabled:e,style:{background:"none",border:"none",color:"var(--accent)",cursor:e?"default":"pointer",fontSize:11,padding:0,textDecoration:"underline"},children:e?"loading…":"view full output"}),(0,s.jsx)("a",{href:`${k}&download=1`,style:{marginLeft:10*!!l,color:"var(--accent)",fontSize:11,textDecoration:"underline"},children:"download full output"}),g&&(0,s.jsxs)("span",{style:{marginLeft:6,color:"var(--text-dim)",fontSize:11},children:["(",g,")"]})]})]})}var ss=c(96201),st=c.n(ss);function su({items:a,activeEntryId:b,onJumpToEntry:c,label:d,left:e,top:f,maxHeight:g=360,width:h=310}){var i,j;let k,l,m,{t:n}=(0,G.s)(),o=(0,t.useRef)(null),p=(0,t.useRef)(null),[q,r]=(0,t.useState)(!1),[u,v]=(0,t.useState)(0),[w,x]=(0,t.useState)(0),[y,z]=(0,t.useState)(null),A=(0,t.useRef)(0),B=(0,t.useRef)(null);(0,t.useRef)(!1);let C=(0,t.useRef)(null),D=(0,t.useRef)(null),E=(0,t.useRef)(null),F=(0,t.useId)(),H=a.findIndex(a=>a.entryId===b),I={start:k=Math.max(0,Math.min(H-Math.floor(7.5),(i=a.length)-15)),end:Math.min(i,k+15)},J=Math.min(28*a.length,g-28*(y?.state==="error")),{start:K,end:L}=(j=a.length,l=Math.min(J,28*j),{start:Math.max(0,Math.floor((m=Math.max(0,Math.min(u,28*j-l)))/28)-1),end:Math.min(j,Math.ceil((m+l)/28)+1)}),M=(0,t.useCallback)(()=>{C.current&&clearTimeout(C.current),D.current&&clearTimeout(D.current),E.current&&clearTimeout(E.current),B.current=null,r(!1)},[]),N=(0,t.useCallback)(()=>{D.current&&(clearTimeout(D.current),D.current=null),q||(C.current=setTimeout(()=>{r(!0)},100))},[q]),O=(0,t.useCallback)(a=>{C.current&&(clearTimeout(C.current),C.current=null);let b=document.activeElement;b instanceof HTMLElement&&a.currentTarget.contains(b)&&b.matches(":focus-visible")||(D.current=setTimeout(()=>{M()},150))},[M]);async function P(a){let b=++A.current;z({entryId:a,state:"loading"});try{await c(a),A.current===b&&(z(null),E.current&&clearTimeout(E.current),E.current=setTimeout(()=>{M()},160))}catch(c){if(A.current!==b)return;if(c&&"object"==typeof c&&"name"in c&&"AbortError"===c.name)return void z(null);z({entryId:a,state:"error",message:c instanceof Error?c.message:String(c)})}}function Q(b){let c=Math.max(0,Math.min(a.length-1,b));B.current=c,x(c);let d=p.current;if(d){var e;let a;e=d.scrollTop,d.scrollTop=(a=28*c)<e?a:a+28>e+J?a+28-J:e,v(d.scrollTop);let b=d.querySelector(`[data-outline-index="${c}"]`);b&&(B.current=null,b.focus({preventScroll:!0}))}r(!0)}return a.length?(0,s.jsxs)("div",{className:st().minimap,style:{left:e,top:f},onMouseEnter:N,onMouseLeave:O,onBlur:a=>{a.currentTarget.contains(a.relatedTarget)||M()},onKeyDown:a=>{"Escape"===a.key&&(a.preventDefault(),a.stopPropagation(),M(),o.current?.focus({preventScroll:!0}))},children:[(0,s.jsx)("button",{ref:o,type:"button",className:st().trigger,style:{height:Math.min(g,Math.max(20,(I.end-I.start)*8+6))},"aria-label":d,"aria-expanded":q,"aria-controls":q?F:void 0,"aria-busy":y?.state==="loading"||void 0,onClick:a=>{0===a.detail?Q(Math.max(0,H)):(C.current&&clearTimeout(C.current),D.current&&clearTimeout(D.current),r(a=>!a))},onKeyDown:a=>{("ArrowDown"===a.key||"ArrowUp"===a.key)&&(a.preventDefault(),Q(Math.max(0,H)))},children:a.slice(I.start,I.end).map((a,c)=>(0,s.jsx)("span",{className:st().marker,"data-marker-index":I.start+c,"data-active":b===a.entryId?"true":void 0,"aria-hidden":"true"},a.entryId))}),q&&(0,s.jsx)("div",{className:st().panel,style:{width:h},children:(0,s.jsxs)("nav",{id:F,className:st().menu,"aria-label":d,children:[(0,s.jsx)("div",{ref:p,className:st().list,style:{height:J},onScroll:a=>v(a.currentTarget.scrollTop),children:(0,s.jsx)("div",{className:st().track,style:{height:28*a.length},children:a.slice(K,L).map((c,d)=>{let e=K+d;return(0,s.jsx)("button",{type:"button",className:st().row,style:{top:28*e},"data-outline-index":e,"aria-current":b===c.entryId?"location":void 0,"aria-label":c.preview,tabIndex:e===(w>=K&&w<L?w:K)?0:-1,onFocus:()=>x(e),onKeyDown:b=>{let c={ArrowDown:e+1,ArrowUp:e-1,Home:0,End:a.length-1,PageDown:e+Math.max(1,Math.floor(J/28)),PageUp:e-Math.max(1,Math.floor(J/28))};b.key in c&&(b.preventDefault(),Q(c[b.key]))},onClick:()=>{P(c.entryId)},children:(0,s.jsx)("span",{className:st().rowText,children:c.preview})},c.entryId)})})}),y?.state==="error"&&(0,s.jsxs)("div",{className:st().status,role:"status","aria-live":"polite",children:[(0,s.jsx)("span",{children:`${n("chatMinimap.jumpFailed")||"跳转失败:"}${y.message||"请重试"}`}),(0,s.jsx)("button",{type:"button",onClick:()=>{P(y.entryId)},children:n("chatMinimap.retry")||"重试"})]})]})})]}):null}function sv({items:a,scrollContainer:b,contentContainer:c,loadedEntryIds:d,onJumpToEntry:e,label:f}){let[g,h]=(0,t.useState)(null),[i,j]=(0,t.useState)(null);return((0,t.useMemo)(()=>(function(a,b){let c=new Set(a),d=new Map,e=b.find(a=>c.has(a)),f=void 0===e?a.length:a.indexOf(e),g=a[f-1]??null;for(let a of b)c.has(a)&&(g=a),null!==g&&d.set(a,g);for(let b of a)d.set(b,b);return d})(a.map(a=>a.entryId),d),[a,d]),!i||i.maxHeight<52||i.width<80)?null:(0,N.createPortal)((0,s.jsx)(su,{items:a,activeEntryId:g,onJumpToEntry:e,label:f,...i}),document.body)}function sw(a,b,c){let d=JSON.stringify([a,b]),[e,f]=(0,t.useState)(null);return a&&e?.key===d?e.items:[]}function sx({sessionId:a,leafId:b,outlineRevision:c,...d}){let{t:e}=(0,G.s)(),f=sw(a,b,c);return a&&f.length?(0,s.jsx)(sv,{...d,items:f,label:e("chatMinimap.userOutline")},JSON.stringify([a,b])):null}function sy({sessionId:a,leafId:b,outlineRevision:c,scrollContainer:d,contentContainer:e,loadedEntryIds:f,onJumpToEntry:g}){let{t:h}=(0,G.s)(),i=sw(a,b,c),[j,k]=(0,t.useState)(!1),[l,m]=(0,t.useState)(null),n=(0,t.useRef)(null);return j&&i.length&&!("u"<typeof document)?(0,N.createPortal)((0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"fixed inset-0 z-[120] bg-black/50 transition-opacity",onClick:()=>k(!1),"aria-hidden":"true"}),(0,s.jsx)("section",{className:"fixed bottom-0 left-0 right-0 z-[121] flex max-h-[72dvh] flex-col overflow-hidden rounded-t-[16px] border-t border-[var(--border)] bg-[var(--bg-panel)] shadow-2xl pb-[max(12px,env(safe-area-inset-bottom))]",role:"dialog","aria-modal":"true","aria-label":h("i18n.outline")||"目录",children:(0,s.jsx)("div",{className:"flex-1 overflow-y-auto overscroll-contain px-2 py-2.5 space-y-0.5",children:i.map((a,b)=>{let c=l===a.entryId;return(0,s.jsxs)("button",{ref:c?n:void 0,type:"button",className:`relative flex w-full items-start gap-2.5 rounded-[4px] py-2 pl-2.5 pr-2 text-left transition-colors [-webkit-tap-highlight-color:transparent] ${c?"bg-[var(--bg-selected)] font-medium text-[var(--text)] before:absolute before:left-0 before:top-1.5 before:bottom-1.5 before:w-[2.5px] before:rounded-r-[1.5px] before:bg-[var(--accent)]":"text-[var(--text)] hover:bg-[var(--bg-hover)] active:bg-[var(--bg-hover)]"}`,"aria-current":c?"location":void 0,onClick:()=>{k(!1),g(a.entryId)},children:[(0,s.jsx)("span",{className:`w-5 shrink-0 text-right tabular-nums text-[13px] leading-5 select-none ${c?"font-semibold text-[var(--accent)]":"text-[var(--text-dim)]"}`,"aria-hidden":"true",children:b+1}),(0,s.jsx)("span",{className:"flex-1 min-w-0 line-clamp-2 text-[13px] leading-5",style:{hangingPunctuation:"first"},children:a.preview})]},a.entryId)})})})]}),document.body):null}var sz=function(a,b){return Object.defineProperty?Object.defineProperty(a,"raw",{value:b}):a.raw=b,a};(zh=zJ||(zJ={}))[zh.EOS=0]="EOS",zh[zh.Text=1]="Text",zh[zh.Incomplete=2]="Incomplete",zh[zh.ESC=3]="ESC",zh[zh.Unknown=4]="Unknown",zh[zh.SGR=5]="SGR",zh[zh.OSCURL=6]="OSCURL";class sA{constructor(){this.VERSION="6.0.6",this.setup_palettes(),this._use_classes=!1,this.bold=!1,this.faint=!1,this.italic=!1,this.underline=!1,this.fg=this.bg=null,this._buffer="",this._url_allowlist={http:1,https:1},this._escape_html=!0,this.boldStyle="font-weight:bold",this.faintStyle="opacity:0.7",this.italicStyle="font-style:italic",this.underlineStyle="text-decoration:underline"}set use_classes(a){this._use_classes=a}get use_classes(){return this._use_classes}set url_allowlist(a){this._url_allowlist=a}get url_allowlist(){return this._url_allowlist}set escape_html(a){this._escape_html=a}get escape_html(){return this._escape_html}set boldStyle(a){this._boldStyle=a}get boldStyle(){return this._boldStyle}set faintStyle(a){this._faintStyle=a}get faintStyle(){return this._faintStyle}set italicStyle(a){this._italicStyle=a}get italicStyle(){return this._italicStyle}set underlineStyle(a){this._underlineStyle=a}get underlineStyle(){return this._underlineStyle}setup_palettes(){this.ansi_colors=[[{rgb:[0,0,0],class_name:"ansi-black"},{rgb:[187,0,0],class_name:"ansi-red"},{rgb:[0,187,0],class_name:"ansi-green"},{rgb:[187,187,0],class_name:"ansi-yellow"},{rgb:[0,0,187],class_name:"ansi-blue"},{rgb:[187,0,187],class_name:"ansi-magenta"},{rgb:[0,187,187],class_name:"ansi-cyan"},{rgb:[255,255,255],class_name:"ansi-white"}],[{rgb:[85,85,85],class_name:"ansi-bright-black"},{rgb:[255,85,85],class_name:"ansi-bright-red"},{rgb:[0,255,0],class_name:"ansi-bright-green"},{rgb:[255,255,85],class_name:"ansi-bright-yellow"},{rgb:[85,85,255],class_name:"ansi-bright-blue"},{rgb:[255,85,255],class_name:"ansi-bright-magenta"},{rgb:[85,255,255],class_name:"ansi-bright-cyan"},{rgb:[255,255,255],class_name:"ansi-bright-white"}]],this.palette_256=[],this.ansi_colors.forEach(a=>{a.forEach(a=>{this.palette_256.push(a)})});let a=[0,95,135,175,215,255];for(let b=0;b<6;++b)for(let c=0;c<6;++c)for(let d=0;d<6;++d){let e={rgb:[a[b],a[c],a[d]],class_name:"truecolor"};this.palette_256.push(e)}let b=8;for(let a=0;a<24;++a,b+=10){let a={rgb:[b,b,b],class_name:"truecolor"};this.palette_256.push(a)}}escape_txt_for_html(a){return this._escape_html?a.replace(/[&<>"']/gm,a=>"&"===a?"&":"<"===a?"<":">"===a?">":'"'===a?""":"'"===a?"'":void 0):a}append_buffer(a){var b=this._buffer+a;this._buffer=b}get_next_packet(){var a={kind:zJ.EOS,text:"",url:""},b=this._buffer.length;if(0==b)return a;var c=this._buffer.indexOf("\x1b");if(-1==c)return a.kind=zJ.Text,a.text=this._buffer,this._buffer="",a;if(c>0)return a.kind=zJ.Text,a.text=this._buffer.slice(0,c),this._buffer=this._buffer.slice(c),a;if(0==c){if(b<3)return a.kind=zJ.Incomplete,a;var d=this._buffer.charAt(1);if("["!=d&&"]"!=d&&"("!=d)return a.kind=zJ.ESC,a.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),a;if("["==d){this._csi_regex||(this._csi_regex=sB(zK||(zK=sz(["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \x1b[ # CSI\n ([<-?]?) # private-mode char\n ([d;]*) # any digits or semicolons\n ([ -/]? # an intermediate modifier\n [@-~]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \x1b[ # CSI\n [ -~]* # anything legal\n ([\0-\x1f:]) # anything illegal\n )\n "],["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \\x1b\\[ # CSI\n ([\\x3c-\\x3f]?) # private-mode char\n ([\\d;]*) # any digits or semicolons\n ([\\x20-\\x2f]? # an intermediate modifier\n [\\x40-\\x7e]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \\x1b\\[ # CSI\n [\\x20-\\x7e]* # anything legal\n ([\\x00-\\x1f:]) # anything illegal\n )\n "]))));let b=this._buffer.match(this._csi_regex);if(null===b)return a.kind=zJ.Incomplete,a;if(b[4])return a.kind=zJ.ESC,a.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),a;""!=b[1]||"m"!=b[3]?a.kind=zJ.Unknown:a.kind=zJ.SGR,a.text=b[2];var e=b[0].length;return this._buffer=this._buffer.slice(e),a}if("]"==d){if(b<4)return a.kind=zJ.Incomplete,a;if("8"!=this._buffer.charAt(2)||";"!=this._buffer.charAt(3))return a.kind=zJ.ESC,a.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),a;this._osc_st||(this._osc_st=RegExp((zL||(zL=sz(["\n (?: # legal sequence\n (\x1b\\) # ESC | # alternate\n (\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\0-\x06] # anything illegal\n | # alternate\n [\b-\x1a] # anything illegal\n | # alternate\n [\x1c-\x1f] # anything illegal\n )\n "],["\n (?: # legal sequence\n (\\x1b\\\\) # ESC \\\n | # alternate\n (\\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\\x00-\\x06] # anything illegal\n | # alternate\n [\\x08-\\x1a] # anything illegal\n | # alternate\n [\\x1c-\\x1f] # anything illegal\n )\n "]))).raw[0].replace(/^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm,""),"g")),this._osc_st.lastIndex=0;{let b=this._osc_st.exec(this._buffer);if(null===b)return a.kind=zJ.Incomplete,a;if(b[3])return a.kind=zJ.ESC,a.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),a}{let b=this._osc_st.exec(this._buffer);if(null===b)return a.kind=zJ.Incomplete,a;if(b[3])return a.kind=zJ.ESC,a.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),a}this._osc_regex||(this._osc_regex=sB(zM||(zM=sz(["\n ^ # beginning of line\n #\n \x1b]8; # OSC Hyperlink\n [ -:<-~]* # params (excluding ;)\n ; # end of params\n ([!-~]{0,512}) # URL capture\n (?: # ST\n (?:\x1b\\) # ESC | # alternate\n (?:\x07) # BEL (what xterm did)\n )\n ([ -~]+) # TEXT capture\n \x1b]8;; # OSC Hyperlink End\n (?: # ST\n (?:\x1b\\) # ESC | # alternate\n (?:\x07) # BEL (what xterm did)\n )\n "],["\n ^ # beginning of line\n #\n \\x1b\\]8; # OSC Hyperlink\n [\\x20-\\x3a\\x3c-\\x7e]* # params (excluding ;)\n ; # end of params\n ([\\x21-\\x7e]{0,512}) # URL capture\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n ([\\x20-\\x7e]+) # TEXT capture\n \\x1b\\]8;; # OSC Hyperlink End\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n "]))));let c=this._buffer.match(this._osc_regex);if(null===c)return a.kind=zJ.ESC,a.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),a;a.kind=zJ.OSCURL,a.url=c[1],a.text=c[2];var e=c[0].length;return this._buffer=this._buffer.slice(e),a}if("("==d)return a.kind=zJ.Unknown,this._buffer=this._buffer.slice(3),a}}ansi_to_html(a){this.append_buffer(a);for(var b=[];;){var c=this.get_next_packet();if(c.kind==zJ.EOS||c.kind==zJ.Incomplete)break;c.kind!=zJ.ESC&&c.kind!=zJ.Unknown&&(c.kind==zJ.Text?b.push(this.transform_to_html(this.with_state(c))):c.kind==zJ.SGR?this.process_ansi(c):c.kind==zJ.OSCURL&&b.push(this.process_hyperlink(c)))}return b.join("")}with_state(a){return{bold:this.bold,faint:this.faint,italic:this.italic,underline:this.underline,fg:this.fg,bg:this.bg,text:a.text}}process_ansi(a){let b=a.text.split(";");for(;b.length>0;){let a=parseInt(b.shift(),10);if(isNaN(a)||0===a)this.fg=null,this.bg=null,this.bold=!1,this.faint=!1,this.italic=!1,this.underline=!1;else if(1===a)this.bold=!0;else if(2===a)this.faint=!0;else if(3===a)this.italic=!0;else if(4===a)this.underline=!0;else if(21===a)this.bold=!1;else if(22===a)this.faint=!1,this.bold=!1;else if(23===a)this.italic=!1;else if(24===a)this.underline=!1;else if(39===a)this.fg=null;else if(49===a)this.bg=null;else if(a>=30&&a<38)this.fg=this.ansi_colors[0][a-30];else if(a>=40&&a<48)this.bg=this.ansi_colors[0][a-40];else if(a>=90&&a<98)this.fg=this.ansi_colors[1][a-90];else if(a>=100&&a<108)this.bg=this.ansi_colors[1][a-100];else if((38===a||48===a)&&b.length>0){let c=38===a,d=b.shift();if("5"===d&&b.length>0){let a=parseInt(b.shift(),10);a>=0&&a<=255&&(c?this.fg=this.palette_256[a]:this.bg=this.palette_256[a])}if("2"===d&&b.length>2){let a=parseInt(b.shift(),10),d=parseInt(b.shift(),10),e=parseInt(b.shift(),10);if(a>=0&&a<=255&&d>=0&&d<=255&&e>=0&&e<=255){let b={rgb:[a,d,e],class_name:"truecolor"};c?this.fg=b:this.bg=b}}}}}transform_to_html(a){let b=a.text;if(0===b.length||(b=this.escape_txt_for_html(b),!a.bold&&!a.italic&&!a.faint&&!a.underline&&null===a.fg&&null===a.bg))return b;let c=[],d=[],e=a.fg,f=a.bg;a.bold&&c.push(this._boldStyle),a.faint&&c.push(this._faintStyle),a.italic&&c.push(this._italicStyle),a.underline&&c.push(this._underlineStyle),this._use_classes?(e&&("truecolor"!==e.class_name?d.push(`${e.class_name}-fg`):c.push(`color:rgb(${e.rgb.join(",")})`)),f&&("truecolor"!==f.class_name?d.push(`${f.class_name}-bg`):c.push(`background-color:rgb(${f.rgb.join(",")})`))):(e&&c.push(`color:rgb(${e.rgb.join(",")})`),f&&c.push(`background-color:rgb(${f.rgb})`));let g="",h="";return d.length&&(g=` class="${d.join(" ")}"`),c.length&&(h=` style="${c.join(";")}"`),`<span${h}${g}>${b}</span>`}process_hyperlink(a){let b=a.url.split(":");return b.length<1||!this._url_allowlist[b[0]]?"":`<a href="${this.escape_txt_for_html(a.url)}">${this.escape_txt_for_html(a.text)}</a>`}}function sB(a){return new RegExp(a.raw[0].replace(/^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm,""))}function sC({text:a}){let b=(0,t.useMemo)(()=>new sA().ansi_to_html(a),[a]);return(0,s.jsx)("span",{dangerouslySetInnerHTML:{__html:b}})}let sD="/icons/icon-192.png";function sE(a=document){return"visible"!==a.visibilityState||!a.hasFocus()}function sF(a){switch(a.method){case"select":case"confirm":case"input":case"editor":return!0;case"custom":return!0!==a.closed;default:return!1}}async function sG(a,b={createWindowNotification:(a,b)=>new Notification(a,b),getServiceWorkerRegistration:"serviceWorker"in navigator?()=>navigator.serviceWorker.getRegistration():null}){let c={body:a.body,icon:sD,badge:sD,...a.tag?{tag:a.tag,renotify:!0}:{}};if(b.getServiceWorkerRegistration)try{let d=await b.getServiceWorkerRegistration();if(d)return await d.showNotification(a.title,{...c,data:{url:a.sessionUrl}}),"service-worker"}catch{}try{let d=b.createWindowNotification(a.title,c);return d.onclick=()=>{d.close(),a.onClick()},"window"}catch{return null}}function sH(a){return"object"==typeof a&&null!==a&&!Array.isArray(a)}function sI(a,b={}){if("assistant"!==a.role)return a;let c=a.content;if(!Array.isArray(c))return a;let d=c.map(a=>(function(a,b={}){if(!sH(a)||"toolCall"!==a.type)return null;let c={type:"toolCall",toolCallId:"string"==typeof a.toolCallId?a.toolCallId:"string"==typeof a.id?a.id:"",toolName:"string"==typeof a.toolName?a.toolName:"string"==typeof a.name?a.name:"",input:"object"!=typeof a.input||null===a.input||Array.isArray(a.input)?"object"!=typeof a.arguments||null===a.arguments||Array.isArray(a.arguments)?{}:a.arguments:a.input},d=b.includeStreamingRawInput?function(a){if("string"==typeof a.rawInput)return a.rawInput;if("string"==typeof a.partialJson)return a.partialJson;if("string"==typeof a.partialArgs)return a.partialArgs;let b=sH(a.customInput)?a.customInput:null,c=b&&"string"==typeof b.property?b.property:null,d=sH(a.arguments)?a.arguments:null;return c&&d&&"string"==typeof d[c]?d[c]:void 0}(a):void 0;return void 0===d?c:{...c,rawInput:d}})(a,b)??a);return{...a,content:d}}class sJ extends Error{constructor(a,b,c,d){super(a),this.status=b,this.code=c,this.accepted=d,this.name="AgentCommandError"}}function sK(a){return a instanceof sJ&&"prompt_rejected"===a.code&&!1===a.accepted}async function sL(a,b){let c=await fetch(`/api/agent/${encodeURIComponent(a)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(b)}),d=await c.json().catch(()=>({}));if(!c.ok||d.error)throw new sJ(d.error??`HTTP ${c.status}`,c.status,d.code,d.accepted);return d.data}let sM=["off","minimal","low","medium","high","xhigh","max"];function sN(a,b){b&&(a.tokens.input+=b.input??0,a.tokens.output+=b.output??0,a.tokens.cacheRead+=b.cacheRead??0,a.tokens.cacheWrite+=b.cacheWrite??0,a.cost+=b.cost?.total??0)}function sO(a){let b={userMessages:0,assistantMessages:0,toolCalls:0,toolResults:0,totalMessages:0,tokens:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0},cost:0};for(let c of a)"custom"!==c.role&&(b.totalMessages+=1,"user"===c.role?b.userMessages+=1:"toolResult"===c.role?(b.toolResults+=1,sN(b,c.usage)):"assistant"===c.role&&(b.assistantMessages+=1,Array.isArray(c.content)&&(b.toolCalls+=c.content.filter(a=>"toolCall"===a.type).length),sN(b,c.usage)));return b.tokens.total=b.tokens.input+b.tokens.output+b.tokens.cacheRead+b.tokens.cacheWrite,b}function sP(a){if(!a||"object"!=typeof a||"image"!==a.type)return"";let b=a.source;return b&&"object"==typeof b?["url"===b.type?"url":"base64","string"==typeof b.media_type?b.media_type:"","string"==typeof b.data?b.data:"","string"==typeof b.url?b.url:""].join(":"):["base64","string"==typeof a.mimeType?a.mimeType:"","string"==typeof a.data?a.data:"",""].join(":")}function sQ(a){let b,c=a.content;return"string"==typeof c?JSON.stringify({text:c,images:[]}):Array.isArray(c)?JSON.stringify({text:"string"==typeof(b=a.content)?b:Array.isArray(b)?b.map(a=>a&&"object"==typeof a&&"text"===a.type&&"string"==typeof a.text?a.text:"").filter(Boolean).join("\n"):"",images:c.map(sP).filter(Boolean)}):JSON.stringify({text:"",images:[]})}class sR extends Error{constructor(a,b){super(b??("ready_timeout"===a?"Timed out starting the agent session. Please try again.":"Failed to connect to the agent event stream. Please try again.")),this.status=a,this.name="AgentEventConnectionError"}}class sS{constructor(a){this.options=a,this.current=null,this.retry=null,this.retryGeneration=0,this.epoch=0}close(){this.epoch+=1,this.stopRetrying(),this.current&&this.discard(this.current,new sR("closed"))}maintain(a){if(!this.options.shouldMaintain(a))return;let b=this.retryGeneration;this.ensureConnected(a).catch(c=>{b===this.retryGeneration&&(c instanceof sR?"startup_error"===c.status?this.stopRetrying():this.scheduleRetry(a):this.options.onUnexpectedError?.(c))})}reconnect(a){return this.ensureConnected(a,!0)}async ensureConnected(a,b=!1){let c=this.epoch,d=b;for(;;){if(this.epoch!==c)throw new sR("closed");let b=this.current;if(!b||b.sessionId!==a||d)d=!1,b=this.open(a);else if(b.attempt.ready&&1===b.source.readyState)return;try{await b.attempt.promise}catch(d){if(this.epoch!==c)throw d;if(this.current!==b&&this.current?.sessionId===a)continue;throw d}if(this.epoch!==c)throw new sR("closed");if(this.current!==b){if(this.current?.sessionId===a)continue;throw new sR("closed")}if(1===b.source.readyState)return;this.discard(b,new sR("closed"))}}open(a){let b,c,d;this.current&&this.discard(this.current,new sR("closed"));try{b=this.options.createSource(a)}catch(a){throw new sR("closed",a instanceof Error?a.message:String(a))}let e=!1,f=new Promise((a,b)=>{c=a,d=b}),g=setTimeout(()=>{this.fail(i,new sR("ready_timeout"))},this.options.readinessTimeoutMs),h={promise:f,ready:!1,succeed(){e||(e=!0,clearTimeout(g),c())},fail(a){e||(e=!0,clearTimeout(g),d(a))}},i={sessionId:a,source:b,attempt:h};return this.current=i,b.onmessage=a=>{let b;if(this.current===i){try{b=JSON.parse(a.data)}catch{return}if("connected"===b.type)h.ready=!0,h.succeed(),this.stopRetrying();else if("startup_error"===b.type){let a="string"==typeof b.errorMessage?b.errorMessage:void 0;this.fail(i,new sR("startup_error",a));return}this.options.onEvent(b)}},b.onerror=()=>{this.fail(i,new sR("closed"))},i}fail(a,b){this.current===a&&(this.discard(a,b),"startup_error"===b.status?this.stopRetrying():this.scheduleRetry(a.sessionId))}discard(a,b){a.attempt.fail(b),a.source.close(),this.current===a&&(this.current=null)}scheduleRetry(a){if(!this.options.shouldMaintain(a)||this.retry?.sessionId===a)return;this.clearRetry();let b=setTimeout(()=>{this.retry?.timer===b&&(this.retry=null,this.maintain(a))},this.options.reconnectDelayMs);this.retry={sessionId:a,timer:b}}stopRetrying(){this.retryGeneration+=1,this.clearRetry()}clearRetry(){this.retry&&clearTimeout(this.retry.timer),this.retry=null}}function sT(a){var b;return("message_start"===a.type||"message_end"===a.type)&&"object"==typeof(b=a.message)&&null!==b&&!Array.isArray(b)&&"system"===a.message.role}let sU={isStreaming:!1,streamingMessage:null};function sV(a,b,c){let d=a.streamingMessage;if(!d||!Number.isInteger(b)||b<0)return a;let e=[...d.content],f=c(e[b]);return f?(e[b]=f,{isStreaming:!0,streamingMessage:{...d,content:e}}):a}function sW(a,b){switch(b.type){case"text_start":return sV(a,b.contentIndex,()=>({type:"text",text:""}));case"text_delta":return sV(a,b.contentIndex,a=>a?.type==="text"?{...a,text:a.text+b.delta}:null);case"text_end":return sV(a,b.contentIndex,a=>({...a?.type==="text"?a:{},type:"text",text:b.content}));case"thinking_start":{let c=Date.now(),d=a.streamingMessage;if(!d)return a;let e=[...d.content];for(let a=0;a<e.length;a++){let d=e[a];a!==b.contentIndex&&d?.type==="thinking"&&"number"!=typeof d.endedAt&&(e[a]={...d,endedAt:c})}return e[b.contentIndex]={type:"thinking",thinking:"",startedAt:c},{isStreaming:!0,streamingMessage:{...d,content:e}}}case"thinking_delta":return sV(a,b.contentIndex,a=>a?.type==="thinking"?{...a,thinking:a.thinking+b.delta,startedAt:a.startedAt??Date.now()}:null);case"thinking_end":return sV(a,b.contentIndex,a=>({...a?.type==="thinking"?a:{startedAt:Date.now()},type:"thinking",thinking:b.content,endedAt:Date.now()}));case"toolcall_start":return sV(a,b.contentIndex,a=>a?.type==="toolCall"?{...a,toolCallId:b.id??a.toolCallId,toolName:b.toolName??a.toolName,rawInput:""}:"string"!=typeof b.toolName?null:{type:"toolCall",toolCallId:b.id??"",toolName:b.toolName,input:{},rawInput:""});case"toolcall_delta":return sV(a,b.contentIndex,a=>a?.type==="toolCall"?{...a,toolCallId:b.id||a.toolCallId,toolName:b.toolName||a.toolName,rawInput:(a.rawInput??"")+b.delta}:null);case"toolcall_end":return sV(a,b.contentIndex,()=>({type:"toolCall",toolCallId:b.toolCall.id,toolName:b.toolCall.name,input:b.toolCall.arguments}));default:return a}}function sX(a,b){switch(b.type){case"start":return{isStreaming:!0,streamingMessage:null};case"resume":return{...a,isStreaming:!0};case"snapshot":{let c=sI(b.message,{includeStreamingRawInput:!0});if("assistant"!==c.role)return a;let d="number"==typeof c.timestamp?c.timestamp:Date.now(),e=a.streamingMessage,f=c.content.map((a,b)=>{if("thinking"!==a.type)return a;let c=e?.content[b],f=a.startedAt??(c?.type==="thinking"?c.startedAt:void 0)??d,g=a.endedAt??(c?.type==="thinking"?c.endedAt:void 0);return a.startedAt===f&&a.endedAt===g?a:{...a,startedAt:f,..."number"==typeof g?{endedAt:g}:{}}});return{isStreaming:!0,streamingMessage:{...c,timestamp:d,content:f}}}case"delta":return sW(a,b.event);case"deltas":return b.events.reduce(sW,a);case"end":return sU;default:return a}}class sY{begin(a){this.inFlight.add(a)}cancel(a){this.cancelled.add(a)}markDispatched(a){this.dispatched.add(a)}isCancelled(a){return this.cancelled.has(a)}wasDispatched(a){return this.dispatched.has(a)}isInFlight(a){return this.inFlight.has(a)}shouldAbandonUnsent(a){return this.isCancelled(a)&&!this.wasDispatched(a)}forget(a){this.cancelled.delete(a),this.dispatched.delete(a),this.inFlight.delete(a)}constructor(){this.cancelled=new Set,this.dispatched=new Set,this.inFlight=new Set}}function sZ(a,b,c,d){return a===b&&"string"==typeof c&&c.length>0&&c===d}async function s$(a){let{gate:b,runId:c}=a;b.begin(c);let d=()=>!(!b.isCancelled(c)||b.wasDispatched(c))&&(a.abandonUnsent(),!0),e=null,f=!1;try{if(d()||(e=await a.prepare(),d()))return{status:"abandoned"};if(!e)throw Error("No active session for the prompt");if(f=!0,b.markDispatched(c),a.onDispatched?.(),await a.send(e),!b.isCancelled(c))return{status:"sent",sessionId:e};if(a.promptPending()&&sZ(c,a.currentRunId(),e,a.currentSessionId()))return await a.abort(e),{status:"aborted",sessionId:e};return{status:"stale"}}catch(d){if(!b.isCancelled(c))return{status:"failed",sessionId:e,error:d,requestStarted:f};if(!f)return a.abandonUnsent(),{status:"abandoned"};if(a.promptPending()&&sZ(c,a.currentRunId(),e,a.currentSessionId()))return{status:"cancelled_after_dispatch",sessionId:e};return{status:"stale"}}finally{b.forget(c)}}async function s_(a){let b=null,c=!1;try{if(b=await a.prepare(),a.abortRequested())return a.restoreUnsent(),{status:"restored_unsent"};if(!b)throw Error("Unable to create a session for the shell command");return c=!0,await a.send(b),await a.loadResults(b),a.abortRequested()?{status:"cancelled_after_dispatch",sessionId:b}:{status:"completed",sessionId:b}}catch(d){if(!a.abortRequested())throw d;if(!c)return a.restoreUnsent(),{status:"restored_unsent"};if(b)try{await a.loadResults(b)}catch{}return{status:"cancelled_after_dispatch",sessionId:b}}}function s0(a){return(a??[]).map(a=>"string"==typeof a?{text:a,images:[]}:{text:"string"==typeof a.text?a.text:"",images:Array.isArray(a.images)?a.images.flatMap(a=>{let b=a&&"object"==typeof a&&"string"==typeof a.data&&0!==a.data.length&&"string"==typeof a.mimeType&&a.mimeType.startsWith("image/")?{data:a.data,mimeType:a.mimeType}:null;return b?[b]:[]}):[]})}let s1=new Map,s2=new Map;function s3(a){return"string"==typeof a?a:a?.text??""}function s4(a){return{steering:(a?.steering??[]).map(s3),followUp:(a?.followUp??[]).map(s3)}}function s5(a,b){return a===b||null!==a&&null!==b&&a.tokens===b.tokens&&a.percent===b.percent&&a.contextWindow===b.contextWindow?a:b}function s6(a){return new Promise(b=>setTimeout(b,a))}function s7(a){let b=a.findIndex(a=>!a.exiting);return -1===b?a:a.map((a,c)=>c===b?{...a,exiting:!0}:a)}function s8(a,b){switch(b.type){case"add":if(a.visible.some(a=>a.exiting)||a.visible.length>=5)return{visible:a.visible.some(a=>a.exiting)?a.visible:s7(a.visible),pending:[...a.pending,b.notice]};return{...a,visible:[...a.visible,b.notice]};case"mark_oldest_exiting":return{...a,visible:s7(a.visible)};case"remove":return function(a,b){let c=a,d=b;for(;d.length>0&&c.length<5;){let[a,...b]=d;c=[...c,a],d=b}return d.length>0&&!c.some(a=>a.exiting)&&(c=s7(c)),{visible:c,pending:d}}(a.visible.filter(a=>a.id!==b.id),a.pending);default:return a}}function s9(a,b){return a&&"object"==typeof a?"number"!=typeof a.tokensBefore||"number"!=typeof a.estimatedTokensAfter?null:{reason:b,tokensBefore:a.tokensBefore,estimatedTokensAfter:a.estimatedTokensAfter}:null}function ta(a){if(!a?.defaultModel)return null;let b=a.modelList?.find(b=>b.id===a.defaultModel?.modelId&&b.provider===a.defaultModel?.provider);return b?{provider:b.provider,modelId:b.id}:null}function tb({showCurrentVersion:a=!1}){let{t:b}=(0,G.s)(),[c,d]=(0,t.useState)(null),[e,f]=(0,t.useState)(!1),[g,h]=(0,t.useState)(!1),[i,j]=(0,t.useState)("idle"),[k,l]=(0,t.useState)(null),m=(0,t.useRef)(!1);c?.currentVersion;let n=async()=>{if(!m.current&&window.confirm(b("appUpdate.confirm"))){m.current=!0,l(null),j("requesting");try{let a=await fetch("/api/app-update",{method:"POST"});if(202!==a.status){let c=await a.json().catch(()=>null);throw Error(c?.error||b("appUpdate.failed"))}j("waiting")}catch(a){l(a instanceof Error?a.message:b("appUpdate.failed")),j("idle"),m.current=!1}}},o=(0,t.useCallback)(async(a,b)=>{try{let c=await fetch(a?"/api/app-update?force=1":"/api/app-update",{cache:"no-store",signal:b});if(!c.ok)throw Error(`HTTP ${c.status}`);d(await c.json()),f(!1)}catch{b?.aborted||f(!0)}},[]),p=async()=>{h(!0),f(!1),await o(!0),h(!1)},q=c?.updateAvailable&&c.latestVersion&&c.releaseUrl;if(!a&&!q)return null;let r=b("appUpdate.releaseNotes",{version:c?.latestVersion??""});return(0,s.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:a?"flex-start":"center",gap:6},children:[a&&(0,s.jsxs)("p",{style:{fontSize:12},children:[b("appUpdate.currentVersion",{version:c?.currentVersion??"1.1.8"??"dev"}),!q&&(0,s.jsxs)("span",{role:"status",style:{color:"var(--text-muted)"},children:[" \xb7 ",b(!g&&(c||e)?e?"appUpdate.checkFailed":c?.releaseUrl?"appUpdate.upToDate":"appUpdate.checkDisabled":"appUpdate.checking")]}),(e||c?.releaseUrl)&&(0,s.jsxs)(s.Fragment,{children:[" ",(0,s.jsx)("button",{type:"button",disabled:g||"idle"!==i,onClick:()=>{p()},title:b("appUpdate.checkNow"),"aria-label":b("appUpdate.checkNow"),style:{color:"var(--accent)",verticalAlign:"middle",cursor:g?"default":"pointer"},children:(0,s.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M21 12a9 9 0 1 1-3-6.7L21 8"}),(0,s.jsx)("path",{d:"M21 3v5h-5"})]})})]})]}),q&&c&&(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,s.jsxs)("a",{href:c.releaseUrl,target:"_blank",rel:"noopener noreferrer",title:r,"aria-label":r,onMouseEnter:a=>{a.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:a=>{a.currentTarget.style.background="transparent"},style:{display:"inline-flex",alignItems:"center",alignSelf:"center",gap:3,minHeight:32,minWidth:0,padding:"0 4px",background:"transparent",borderRadius:4,color:"var(--accent)",fontSize:12,fontWeight:600,lineHeight:1.2,textDecoration:"none",transition:"background 0.12s",whiteSpace:"nowrap"},children:[(0,s.jsxs)("span",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:["v",c.latestVersion]}),(0,s.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{flexShrink:0},children:[(0,s.jsx)("path",{d:"M7 17 17 7"}),(0,s.jsx)("path",{d:"M7 7h10v10"})]})]}),c.canUpdate&&(0,s.jsx)("button",{type:"button",disabled:"idle"!==i,onClick:()=>{n()},style:{color:"var(--accent)",fontSize:12,cursor:"idle"===i?"pointer":"default"},children:b("appUpdate.updateAndRestart")})]}),a&&q&&!c?.canUpdate&&(c?.manualCommand?(0,s.jsxs)("p",{style:{color:"var(--text-muted)",fontSize:12},children:[b("appUpdate.manualCommand"),(0,s.jsx)("br",{}),(0,s.jsx)("code",{children:c.manualCommand})]}):(0,s.jsx)("p",{style:{color:"var(--text-muted)",fontSize:12},children:b("appUpdate.manualUpdate")})),("requesting"===i||"waiting"===i)&&(0,s.jsx)("p",{role:"status",style:{color:"var(--text-muted)",fontSize:12},children:b("appUpdate.waiting")}),k&&(0,s.jsx)("p",{role:"alert",style:{color:"var(--text-muted)",fontSize:12},children:k}),"timeout"===i&&(0,s.jsxs)("div",{role:"alert",style:{color:"var(--text-muted)",fontSize:12,textAlign:"center"},children:[(0,s.jsx)("p",{children:b("appUpdate.timeout")}),(0,s.jsx)("code",{children:"npm install -g @calmabacus/pi-web@latest"}),(0,s.jsx)("p",{children:b("appUpdate.thenStart")}),(0,s.jsx)("code",{children:"pi-web"})]})]})}function tc({label:a}){return(0,s.jsx)("div",{role:"status","aria-label":a,className:"flex h-[28px] items-center",style:{marginBottom:8},children:(0,s.jsx)(ah,{size:12})})}function td({cwd:a,onChange:b,recentPaths:c,pinnedPaths:d,onTogglePinnedCwd:e,homeDir:f,worktreeInfo:g}){let{t:h}=(0,G.s)(),i=(0,t.useRef)(null),[j,k]=(0,t.useState)(!1),[l,m]=(0,t.useState)(!1),[n,o]=(0,t.useState)(!1),[p,q]=(0,t.useState)(!1),[r,u]=(0,t.useState)(null),v=[...d.map(a=>({path:a,pinned:!0})),...c.filter(a=>!d.includes(a)).map(a=>({path:a,pinned:!1}))],w=g&&(g.forCwd===a||g.projectRoot===a||g.currentWorktreePath===a||g.worktrees.some(b=>b.path===a))?g:null,x=w?.worktrees??[],y=x.find(b=>b.path===a||b.path===w?.currentWorktreePath)??x.find(a=>a.isMain),z=y?.branch??null,A=w?.projectRoot??a,B=f&&A.startsWith(f)?`~${A.slice(f.length)}`:A,C=()=>{k(!1),m(!1)},D=c=>{c===a?C():(q(!0),b(c).then(C).finally(()=>q(!1)))};return(0,s.jsxs)("div",{ref:i,style:{position:"relative",marginTop:10,maxWidth:"100%",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:6,flexWrap:"wrap"},children:[(0,s.jsx)("button",{type:"button",title:h("chat.changeWorkingDirectory"),"aria-label":`${h("chat.changeWorkingDirectory")}: ${A}`,"aria-expanded":j,onClick:()=>{k(a=>!a),m(!1)},onMouseEnter:a=>{a.currentTarget.style.color="var(--text)"},onMouseLeave:a=>{a.currentTarget.style.color="var(--text-muted)"},style:{maxWidth:"min(80vw, 360px)",border:"none",background:"none",color:"var(--text-muted)",fontFamily:"var(--font-mono)",fontSize:12,lineHeight:1.4,padding:0,cursor:"pointer"},children:(0,s.jsx)("span",{style:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",direction:"rtl",textAlign:"center"},children:(0,s.jsx)("span",{style:{unicodeBidi:"plaintext"},children:B})})}),z&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{"aria-hidden":"true",style:{color:"var(--text-dim)",fontSize:12,userSelect:"none"},children:"|"}),(0,s.jsx)("button",{type:"button",title:y?.path,"aria-label":`${h("sidebar.switchWorktree")}: ${z}`,"aria-expanded":l,onClick:()=>{m(a=>!a),k(!1)},onMouseEnter:a=>{a.currentTarget.style.color="var(--text)"},onMouseLeave:a=>{a.currentTarget.style.color="var(--text-muted)"},style:{maxWidth:220,border:"none",background:"none",color:"var(--text-muted)",fontFamily:"var(--font-mono)",fontSize:12,lineHeight:1.4,padding:0,cursor:"pointer",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:z})]}),j&&(0,s.jsxs)("div",{role:"listbox","aria-label":h("chat.changeWorkingDirectory"),style:{position:"absolute",top:"calc(100% + 6px)",left:"50%",transform:"translateX(-50%)",width:"max-content",minWidth:200,maxWidth:"min(90vw, 260px)",zIndex:50,background:"var(--bg)",border:"1px solid var(--border)",borderRadius:4,boxShadow:"0 6px 20px rgba(0,0,0,0.10)",overflow:"hidden",textAlign:"left"},children:[(0,s.jsx)("div",{style:{maxHeight:280,overflowY:"auto"},children:v.map(({path:b,pinned:c})=>{let d=b===a||!!(w?.projectRoot&&b===w.projectRoot);return(0,s.jsxs)("div",{className:"project-pin-row",style:{display:"flex",alignItems:"center",borderBottom:"1px solid var(--border)"},children:[(0,s.jsxs)("button",{type:"button",role:"option","aria-selected":d,disabled:p,onClick:()=>D(b),title:b,style:{display:"flex",alignItems:"center",gap:7,flex:1,minWidth:0,padding:"8px 10px",background:"var(--bg)",border:"none",color:d?"var(--text)":"var(--text-muted)",cursor:p?"default":"pointer",fontSize:11,fontFamily:"var(--font-mono)",textAlign:"left"},children:[d?(0,s.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",stroke:"var(--accent)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0},children:(0,s.jsx)("polyline",{points:"1.5 5 4 7.5 8.5 2.5"})}):(0,s.jsx)("span",{style:{width:10,flexShrink:0}}),(0,s.jsx)("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:f&&b.startsWith(f)?`~${b.slice(f.length)}`:b})]}),(0,s.jsx)("button",{type:"button",className:"project-pin-btn",title:h(c?"sidebar.unpinDirectory":"sidebar.pinDirectory"),"aria-label":h(c?"sidebar.unpinDirectory":"sidebar.pinDirectory"),"aria-pressed":c,onClick:()=>e?.(b),style:{display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24,marginRight:4,padding:0,background:"none",border:"none",borderRadius:4,cursor:"pointer",flexShrink:0},children:(0,s.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:c?"currentColor":"none",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("line",{x1:"12",y1:"17",x2:"12",y2:"22"}),(0,s.jsx)("path",{d:"M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z"})]})})]},b)})}),(0,s.jsx)("button",{type:"button",onClick:()=>{k(!1),o(!0),u(null)},style:{display:"block",width:"100%",padding:"8px 10px",background:"none",border:"none",color:"var(--text-muted)",cursor:"pointer",fontSize:11,textAlign:"left"},children:h("sidebar.customPath")})]}),l&&x.length>0&&(0,s.jsx)("div",{role:"listbox","aria-label":h("sidebar.switchWorktree"),style:{position:"absolute",top:"calc(100% + 6px)",left:"50%",transform:"translateX(-50%)",width:"max-content",minWidth:180,maxWidth:"min(90vw, 260px)",zIndex:50,background:"var(--bg)",border:"1px solid var(--border)",borderRadius:4,boxShadow:"0 6px 20px rgba(0,0,0,0.10)",overflow:"hidden",textAlign:"left"},children:(0,s.jsx)("div",{style:{maxHeight:280,overflowY:"auto"},children:x.map(b=>{let c=b.path===a||b.path===w?.currentWorktreePath;return(0,s.jsxs)("button",{type:"button",role:"option","aria-selected":!!c,disabled:p,onClick:()=>D(b.path),title:b.path,style:{display:"flex",alignItems:"center",gap:7,width:"100%",padding:"8px 10px",background:"var(--bg)",border:"none",borderBottom:"1px solid var(--border)",color:c?"var(--text)":"var(--text-muted)",cursor:p?"default":"pointer",fontSize:11,fontFamily:"var(--font-mono)",textAlign:"left"},children:[c?(0,s.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",stroke:"var(--accent)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0},children:(0,s.jsx)("polyline",{points:"1.5 5 4 7.5 8.5 2.5"})}):(0,s.jsx)("span",{style:{width:10,flexShrink:0}}),(0,s.jsx)("span",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:b.branch??b.path}),b.isMain&&(b.branch??"").toLowerCase()!==h("sidebar.main").toLowerCase()&&(0,s.jsx)("span",{style:{flexShrink:0,color:"var(--text-dim)",fontSize:10},children:h("sidebar.main")})]},b.path)})})}),n&&(0,s.jsx)(R,{initialPath:a,busy:p,error:r,onCancel:()=>{o(!1),u(null)},onSelect:a=>{q(!0),u(null),b(a).then(()=>o(!1),a=>u(a instanceof Error?a.message:String(a))).finally(()=>q(!1))}})]})}function te(a,b,c){for(let e=c-1;e>b;e--){var d;if("assistant"===(d=a[e]).role&&b2(d))return e}for(let d=c-1;d>b;d--)if(a[d]?.role==="assistant")return d;return -1}function tf(a){return a?.content.at(-1)}function tg(a,b,c,d,e=!1){if(!a)return!1;if(d?.kind==="running_tools")return!0;let f=tf(c);return!!b&&(f?.type==="thinking"||f?.type==="toolCall")||!e}function th(a,b,c){if(!a)return null;let d=aD(a,b);return"edit"===d?c("image.edit"):"generate"===d?c("image.generate"):null}function ti(a,b,c){if(b?.kind==="running_tools"){let a=b.tools[b.tools.length-1]?.name??null;return th(a,void 0,c)??a}let d=tf(a);return d?.type==="thinking"?c("chat.thinking"):d?.type==="toolCall"?th(d.toolName,d.input,c)??d.toolName??null:null}function tj(a,b,c,d){return b?(a&&(c.current=a),c.current??d):(c.current=null,null)}function tk(a,b){if("number"==typeof a&&"number"==typeof b&&Number.isFinite(a)&&Number.isFinite(b)&&!(b<=a))return Math.max(1,Math.round((b-a)/1e3))}function tl({startTime:a,t:b}){let[c,d]=(0,t.useState)(()=>Math.max(0,Math.round((Date.now()-a)/1e3)));return(0,s.jsx)("span",{style:{fontSize:11.5,color:"var(--accent)",fontVariantNumeric:"tabular-nums",flexShrink:0},children:(0,F.a3)(c,b)})}function tm({messageCount:a,toolCallCount:b,durationSeconds:c,startTime:d,defaultExpanded:e=!1,reveal:f=!1,isMobile:g=!1,activeStepSummary:h=null,isStreaming:i=!1,children:j,t:k}){let[l,m]=(0,t.useState)(e),n=(0,t.useRef)(null),o=(0,t.useRef)(!1),p=(0,t.useRef)(!1),q=l||f,r=k(1===b?"chat.step":"chat.steps"),u=void 0!==c&&c>0?(0,F.a3)(c,k):null,v=u?b>0?k("chat.workedForSteps",{duration:u,count:b,steps:r}):k("chat.workedFor",{duration:u}):b>0?`${b} ${r}`:k("chat.processDetails");return(0,s.jsxs)("div",{style:{marginBottom:q?8:2},children:[(0,s.jsxs)("button",{type:"button","aria-expanded":q,onClick:()=>{p.current=!0,m(a=>!a)},className:"process-details-summary",style:{display:"inline-flex",alignItems:"center",gap:5,maxWidth:"100%",minHeight:24,padding:"2px 0",border:"none",background:"none",color:"var(--text-dim)",cursor:"pointer",fontSize:11.5,fontFamily:"var(--font-ui)",fontWeight:400,textAlign:"left",transition:"color 0.12s ease"},title:k(q?"chat.collapseProcess":"chat.expandProcess"),children:[i?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ah,{size:12}),d&&(0,s.jsx)(tl,{startTime:d,t:k}),(0,s.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:5,minWidth:0,fontSize:11.5,color:"var(--accent)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:[d&&(0,s.jsx)("span",{style:{opacity:.5,color:"var(--text-dim)"},children:"\xb7"}),(0,s.jsx)("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:h||k("chat.thinking")})]})]}):(0,s.jsx)("span",{"data-summary-label":"",style:{minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:400,color:"inherit",lineHeight:1.35,transition:"color 0.12s ease"},children:v}),(0,s.jsx)("svg",{width:"9",height:"9",viewBox:"0 0 10 10",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0,opacity:.45,display:"block",transform:q?"rotate(90deg)":"none",transition:"transform 0.15s ease"},"aria-hidden":"true",children:(0,s.jsx)("polyline",{points:"3.5 2 6.5 5 3.5 8"})})]}),q&&(0,s.jsx)("div",{ref:n,onScroll:()=>{let a=n.current;a&&(o.current=!(a.scrollTop+a.clientHeight>=a.scrollHeight-20))},className:"process-details-list",style:{display:"flex",flexDirection:"column",gap:1,padding:"2px 0 4px 0",maxHeight:g?220:280,overflowY:"auto",overflowX:"hidden",overscrollBehavior:"contain",overflowAnchor:"none"},children:j})]})}function tn({session:a,searchTarget:b,onSearchTargetHandled:d,initialScrollPosition:e,onScrollPositionChange:f,sessionRunning:g,newSessionCwd:h,newSessionDraftKey:i,onDraftChange:j,onKeepTabOpen:k,onNewSessionCwdChange:l,recentProjectPaths:m=[],pinnedCwds:n=[],onTogglePinnedCwd:o,homeDir:p="",worktreeInfo:q=null,draftPersistenceWarning:r=!1,onAgentEnd:u,onAttentionNeeded:v,onSessionCreated:w,onSessionForked:x,modelsRefreshKey:y,chatInputRef:z,isFocusedPane:A=!1,isVisiblePane:B=A,onBranchDataChange:C,onSystemPromptChange:D,onSystemToolsChange:E,onSystemInfoLoaderChange:F,onSessionStatsChange:H,onSessionStatsPanelOpen:J,onContextUsageChange:K,onOpenFile:L,onOpenSession:O,onAskInNewChat:P,quoteSelectionEnabled:Q=!1,initialPrompt:R,onInitialPromptConsumed:S,soundEnabled:T=!0,onSoundToggle:U,playDoneSound:V=()=>{},unlockAudio:W}){var X;let Y,{t:Z}=(0,G.s)(),$=a4(),_=a?.relation?.kind!=="subagent",aa=(0,t.useRef)(V);aa.current=V;let ab=(0,t.useRef)(T);ab.current=T;let ac=(0,t.useRef)(a);ac.current=a;let ad=(0,t.useRef)(null),ae=(0,t.useCallback)(a=>{let b=ad.current;ad.current=a,z&&(a?z.current=a:z.current===b&&(z.current=null))},[z]);(0,t.useRef)(null);let af=(0,t.useCallback)(()=>{_&&ab.current&&aa.current(),u?.(ac.current)},[_,u]),ag=(0,t.useCallback)(a=>{v?.(a,ac.current)},[v]),ah=(0,t.useCallback)(a=>{x?.(a,ac.current?.id??null)},[x]),ai=(0,t.useCallback)((a,b)=>{L?.(a,ac.current?.id??null,b)},[L]),aj=(0,t.useCallback)(()=>{let a=ac.current?.id;a&&k?.(a)},[k]),ak=(0,t.useCallback)(a=>{ad.current?.replaceMessage(a)},[]),al=(0,t.useRef)(b?null:e??null),[am,an]=(0,t.useState)(()=>{let a=al.current;return a&&!a.atBottom?a:null}),[ao,ap]=(0,t.useState)(!1),{data:aq,loading:ar,error:as,messages:at,activeToolResults:au,entryIds:aw,historyCursor:ax,hasEarlierMessages:ay,streamState:az,agentRunning:aA,directImageRunning:aB,bashRunning:aD,pendingBash:aE,modelNames:aF,modelList:aG,modelError:aH,modelScopeWarnings:aK,modelThinkingLevels:aL,modelThinkingLevelMaps:aM,toolPreset:aN,thinkingLevel:aO,retryInfo:aP,contextUsage:aQ,forkingEntryId:aT,isCompacting:aU,compactError:aV,compactResult:aY,displayModel:aZ,modelSwitching:a$,sessionStats:a_,slashCommands:a0,slashCommandsLoading:a1,queuedMessages:a2,notices:a3,extensionDialog:a5,extensionCustomUi:a6,respondToExtensionUi:a7,sendExtensionCustomInput:a8,addNotice:a9,setNoticePaused:ba,isAutoModelSelection:bb,agentPhase:bc,isNew:be,sessionIdRef:bf,scrollContainerRef:bg,handleSend:bh,handleDirectImageGeneration:bi,abortDirectImageGeneration:bj,handleAbort:bk,handleFork:bl,handleNavigate:bm,handleModelChange:bn,handleCompact:bo,handleSteer:bp,handleFollowUp:bq,handlePromptWithStreamingBehavior:br,handleAbortCompaction:bs,handleRecallQueue:bt,handleBuiltinSlashCommand:bu,handleToolPresetChange:bv,handleThinkingLevelChange:bw,loadSlashCommands:bx,loadContext:by,activeLeafId:bz,scrollToBottom:bA,scrollToMessage:bB}=function(a){let{session:b,sessionRunning:d,newSessionCwd:e,newSessionDraftKey:f,onAgentEnd:g,onAttentionNeeded:h,onSessionCreated:i,onSessionForked:j,modelsRefreshKey:k,onBranchDataChange:l,onSystemPromptChange:m,onSystemToolsChange:n,onSystemInfoLoaderChange:o,onSessionStatsPanelOpen:p,isVisiblePane:q=!1}=a,r=null===b&&null!==e,s=e??b?.cwd??"",u=s?`/api/models?cwd=${encodeURIComponent(s)}`:"/api/models",v=s1.get(u)?.data,w=r?ta(v):null,x=w?v?.thinkingLevelPins?.[`${w.provider}/${w.modelId}`]:void 0,[y,z]=(0,t.useState)(null),[A,B]=(0,t.useState)(!r),[C,D]=(0,t.useState)(null),[E,F]=(0,t.useState)(null),[G,H]=(0,t.useState)([]),[I,J]=(0,t.useState)(new Map),[K,L]=(0,t.useState)([]),[M,N]=(0,t.useState)(null),[O,P]=(0,t.useState)(!1),Q=(0,t.useRef)({messages:G,entryIds:K,oldestEntryId:M,hasMore:O});Q.current={messages:G,entryIds:K,oldestEntryId:M,hasMore:O};let[R,S]=(0,t.useReducer)(sX,sU),T=(0,t.useRef)(R);T.current=R;let[U,V]=(0,t.useState)(!1),[W,X]=(0,t.useState)(!1),[Y,Z]=(0,t.useState)(null),[$,_]=(0,t.useState)(!1),aa=(0,t.useRef)(!1),ab=(0,t.useRef)(null),ac=(0,t.useRef)(!1),[ad,ae]=(0,t.useState)(()=>v?.models??{}),[af,ag]=(0,t.useState)(()=>v?.modelList??[]),[ah,ai]=(0,t.useState)(()=>v?.modelError??null),[aj,ak]=(0,t.useState)(()=>v?.modelScopeWarnings??[]),[al,am]=(0,t.useState)(()=>v?.thinkingLevels??{}),[an,ao]=(0,t.useState)(()=>v?.thinkingLevelMaps??{}),[ap,aq]=(0,t.useState)(()=>v?.thinkingLevelPins??{}),[ar,as]=(0,t.useState)(null),[at,au]=(0,t.useState)(w),[av,aw]=(0,t.useState)(bd.Q8),[ax,ay]=(0,t.useState)(x??"auto"),[az,aA]=(0,t.useState)(null),[aB,aC]=(0,t.useState)(null),[aD,aE]=(0,t.useState)(null),[aF,aG]=(0,t.useState)(null),[aH,aI]=(0,t.useState)(null),[aJ,aK]=(0,t.useState)(null),[aL,aM]=(0,t.useState)(!1),[aN,aO]=(0,t.useState)(!1),[aP,aQ]=(0,t.useState)(!0),[aT,aU]=(0,t.useState)(null),[aV,aY]=(0,t.useState)(null),[aZ,a$]=(0,t.useState)(null),[a_,a0]=(0,t.useState)([]),[a1,a2]=(0,t.useState)(!1),[a3,a4]=(0,t.useReducer)(s8,{visible:[],pending:[]}),[a5,a6]=(0,t.useState)(null),[a7,a8]=(0,t.useState)(null),[a9,ba]=(0,t.useState)(null),[bb,bc]=(0,t.useState)({steering:[],followUp:[]}),be=(0,t.useRef)(null),bf=(0,t.useRef)(null),bg=(0,t.useRef)(0),bh=(0,t.useRef)(!1),bi=(0,t.useRef)(!1),bj=(0,t.useRef)(b?.id??null),bk=(0,t.useRef)(b?.id??null),bl=(0,t.useRef)(!!d),bm=(0,t.useRef)(q),bn=(0,t.useRef)(!1),bo=(0,t.useRef)(!1),bp=(0,t.useRef)(!1),bq=(0,t.useRef)(-1),br=(0,t.useRef)(!1),bs=(0,t.useRef)(!1),bt=(0,t.useRef)(0),bu=(0,t.useRef)(null),bv=(0,t.useRef)(!!a.deferInitialScroll),bw=(0,t.useRef)(!1),bx=(0,t.useRef)(!0),by=(0,t.useRef)(0),bz=(0,t.useRef)(null),bA=(0,t.useRef)([]),bB=(0,t.useRef)(void 0),bC=(0,t.useRef)(null),bD=(0,t.useRef)(null),bE=(0,t.useRef)(!1),bF=(0,t.useRef)(null),bG=(0,t.useRef)(null),bH=(0,t.useRef)(0),bI=(0,t.useRef)(new sY),bJ=(0,t.useRef)(null),bK=(0,t.useRef)(!1),bL=(0,t.useRef)(null),bM=(0,t.useRef)(!1);(0,t.useRef)(k);let bN=(0,t.useRef)(new Map),bO=(0,t.useRef)(!0);bk.current=b?.id??null,bl.current=!!d,bm.current=q,be.current||(be.current=new sS({createSource:a=>new EventSource(`/api/agent/${encodeURIComponent(a)}/events`),onEvent:a=>bu.current?.(a),shouldMaintain:a=>bO.current&&bj.current===a&&(bm.current||bn.current||bh.current||bk.current===a&&bl.current),readinessTimeoutMs:6e4,reconnectDelayMs:1e3,onUnexpectedError:a=>{console.error("Failed to maintain the agent event stream:",a)}}));let bP=a.setToolPreset??aw;b?.id;let bQ=(0,t.useCallback)((a="instant")=>{let b=bC.current;b&&(bx.current=!0,b.scrollTo({top:Math.max(0,b.scrollHeight-b.clientHeight),behavior:a}),by.current=b.scrollTop)},[]),bR=aH??y?.context.model??aJ??null,bS=r?ar??at:bR,bT=b?.id??f??void 0,bU=(0,t.useCallback)(a=>{if(!a)return;let b=a,c=new Set;for(;!c.has(b);){c.add(b);let a=bN.current.get(b);if(!a)break;b=a}return b},[]),bV=(0,t.useCallback)((b,c,d)=>{let e=c?.map(({data:a,mimeType:b})=>({data:a,mimeType:b})),g=bU(d);if(!bO.current&&!bE.current&&d===f)return;let h=a.chatInputRef?.current;if(h)h.restoreSubmission(b,e,g);else{let a,c;g&&(c=aW(b,e,(a=aR(g)??{value:"",images:[]}).value,a.images),aS(g,c))}},[f,a.chatInputRef,bU]),bW=(0,t.useMemo)(()=>{if(a5)return{...a5,totalActiveMs:y?.totalActiveMs,...aB?{contextUsage:aB}:{}};let a=y?.stats,c=function(a,b,c){let d=sO(c);if(!a)return d;let e=sO(b),f=(a,b)=>Math.max(0,a-b),g={input:a.tokens.input+f(d.tokens.input,e.tokens.input),output:a.tokens.output+f(d.tokens.output,e.tokens.output),cacheRead:a.tokens.cacheRead+f(d.tokens.cacheRead,e.tokens.cacheRead),cacheWrite:a.tokens.cacheWrite+f(d.tokens.cacheWrite,e.tokens.cacheWrite),total:0};return g.total=g.input+g.output+g.cacheRead+g.cacheWrite,{userMessages:a.userMessages+f(d.userMessages,e.userMessages),assistantMessages:a.assistantMessages+f(d.assistantMessages,e.assistantMessages),toolCalls:a.toolCalls+f(d.toolCalls,e.toolCalls),toolResults:a.toolResults+f(d.toolResults,e.toolResults),totalMessages:a.totalMessages+f(d.totalMessages,e.totalMessages),tokens:g,cost:a.cost+f(d.cost,e.cost)}}(a,y?.context.messages??[],G);return 0!==c.tokens.total||0!==G.length||a?{sessionFile:y?.filePath||void 0,sessionId:bj.current??b?.id??"",sessionName:b?.name,...c,totalActiveMs:y?.totalActiveMs,...aB?{contextUsage:aB}:{}}:null},[G,a5,aB,y?.context.messages,y?.filePath,y?.totalActiveMs,y?.stats,b?.id,b?.name]),bX=(0,t.useCallback)(async(a,b=!1,c=!1)=>{let d=!1;try{b&&B(!0);let e=new URLSearchParams({deferThinking:"1",deferMedia:"1"});c&&e.set("force","1");let f=await fetch(`/api/sessions/${encodeURIComponent(a)}?${e}`);if(404===f.status)return b&&(z(null),F(null),H([]),L([]),N(null),P(!1),aC(null),D(null)),null;if(!f.ok)throw Error(`HTTP ${f.status}`);let g=await f.json();if(bj.current!==a)return null;let h={messages:g.context.messages,entryIds:g.context.entryIds??[],oldestEntryId:g.context.oldestEntryId,hasMore:g.context.hasMore},i=b?h:function(a,b){if(0===a.entryIds.length||0===b.entryIds.length)return b;let c=new Set(b.entryIds),d=a.entryIds.findIndex(a=>c.has(a));return d<=0?b:{messages:[...a.messages.slice(0,d),...b.messages],entryIds:[...a.entryIds.slice(0,d),...b.entryIds],oldestEntryId:a.oldestEntryId??a.entryIds[0]??b.oldestEntryId,hasMore:a.hasMore}}(Q.current,h);if(z({...g,context:{...g.context,...i}}),F(g.leafId),H(i.messages),L(i.entryIds),N(i.oldestEntryId),P(i.hasMore),bi.current=void 0!==g.toolNames,bP(void 0!==g.toolNames?(0,bd.YO)(g.toolNames):bd.Q8),aI(a=>bM.current?a:null),D(null),g.context.thinkingLevel&&"off"!==g.context.thinkingLevel&&ay(g.context.thinkingLevel),void 0!==g.contextUsage&&aC(g.contextUsage??null),d=!0,b&&B(!1),!c)return null;try{let b=await fetch(`/api/sessions/${encodeURIComponent(a)}/state`);if(!b.ok)throw Error(`HTTP ${b.status}`);let c=await b.json();if(bj.current!==a)return null;let d=c.state;return d?(void 0!==d.contextUsage&&aC(d.contextUsage??null),void 0!==d.systemPrompt&&aE(d.systemPrompt??null),void 0!==d.thinkingLevel&&ay(d.thinkingLevel??"auto"),void 0!==d.queuedMessages&&bc(s4(d.queuedMessages))):c.running||bc({steering:[],followUp:[]}),c}catch(a){return console.error("Failed to load agent state:",a),null}}catch(a){return D(String(a)),null}finally{b&&!d&&B(!1)}},[bP]),bY=(0,t.useCallback)(async(a,b,c,d)=>{try{let e=new URLSearchParams({deferThinking:"1",deferMedia:"1"});b&&e.set("leafId",b),c&&e.set("before",c),d?.tail&&e.set("tail",String(d.tail));let f=`/api/sessions/${encodeURIComponent(a)}/context?${e}`,g=await fetch(f,{signal:d?.signal});if(!g.ok)throw Error(`HTTP ${g.status}`);let h=await g.json();if(bj.current!==a||d?.signal?.aborted||!bO.current)return;return N(h.context.oldestEntryId),P(h.context.hasMore),z(b=>{if(!b||b.sessionId!==a)return b;let d=c?{...b.context,messages:[...h.context.messages,...b.context.messages],entryIds:[...h.context.entryIds,...b.context.entryIds],oldestEntryId:h.context.oldestEntryId,hasMore:h.context.hasMore}:h.context;return{...b,context:d}}),c?(H(a=>[...h.context.messages,...a]),L(a=>[...h.context.entryIds,...a])):(H(h.context.messages),L(h.context.entryIds??[])),h.context}catch(a){d?.signal?.aborted||console.error("Failed to load context:",a)}},[]),bZ=(0,t.useCallback)(async a=>{try{let b=await sL(a,{type:"get_tools"});if(!b||!bO.current||bj.current!==a)return null;let{getPresetFromTools:d}=await Promise.resolve().then(c.bind(c,29947));return bP(bi.current?d(b):bd.Q8),n?.(b),b}catch(a){return console.error("Failed to load tools:",a),null}},[n,bP]),b$=(0,t.useCallback)((b=0,c="(no messages)")=>{let d=bj.current;if(r&&e&&d&&!bE.current&&(bE.current=!0,f)){if(f!==d){bN.current.set(f,d);let b=a.chatInputRef?.current;b?b.rekeyDraft(f,d):aX(f,d)}i?.({id:d,path:"",cwd:e,name:void 0,created:new Date().toISOString(),modified:new Date().toISOString(),messageCount:b,firstMessage:c,transient:!0},f)}},[r,e,f,i,a.chatInputRef]),b_=(0,t.useCallback)(a=>{a instanceof sR||console.error("Failed to maintain the agent event stream:",a)},[]),b0=(0,t.useCallback)(async()=>{if(bj.current||!r||!e)return bj.current;if(bD.current)return bD.current;let a=(async()=>{let a=bF.current,b=bG.current;a&&aK(a);let c=(0,bd.xG)(av);bi.current=void 0!==c;let d=await fetch("/api/agent/new",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cwd:e,type:"ensure_session",...void 0!==c?{toolNames:c}:{},...a?{provider:a.provider,modelId:a.modelId}:{},...b?{thinkingLevel:b}:{}})});if(!d.ok)throw Error(`HTTP ${d.status}`);let f=await d.json(),g=f.sessionId;return bj.current=g,bm.current&&be.current?.ensureConnected(g).catch(b_),void 0!==f.contextUsage&&aC(f.contextUsage??null),f.model&&bF.current===a&&(aK(f.model),a||au(f.model)),f.thinkingLevel&&bG.current===b&&ay(f.thinkingLevel),g})();bD.current=a;try{return await a}finally{bD.current=null}},[b_,r,e,av]);(0,t.useCallback)(async()=>{let a=bj.current??await b0();if(!a)return;let[b]=await Promise.all([sL(a,{type:"get_state"}),bZ(a)]);bO.current&&bj.current===a&&aE(b.systemPrompt??"")},[b0,bZ]);let b1=(0,t.useCallback)(async()=>{let a=bj.current??await b0();if(!a)return a0([]),[];a2(!0);try{let b=await sL(a,{type:"get_commands"}),c=b?.commands??[];return a0(c),c}catch(a){return console.error("Failed to load slash commands:",a),a0([]),[]}finally{a2(!1)}},[b0]),b2=(0,t.useCallback)(()=>{bg.current+=1,bh.current=!1,bf.current&&(clearTimeout(bf.current),bf.current=null)},[]),b3=(0,t.useCallback)(()=>{be.current?.close()},[]),b4=(0,t.useCallback)(a=>be.current.ensureConnected(a),[]);(0,t.useCallback)(a=>{be.current.maintain(a)},[]);let b5=(0,t.useCallback)(a=>{be.current?.reconnect(a).catch(b_)},[b_]),b6=(0,t.useCallback)(async(a,b)=>{let c=bj.current;if(a8(b=>b?.id===a.id?null:b),c)try{await sL(c,{type:"extension_ui_response",id:a.id,...b})}catch(a){console.error("Failed to send extension UI response:",a)}},[]),b7=(0,t.useCallback)(async(a,b)=>{let c=bj.current;if(c)try{await sL(c,{type:"extension_ui_input",id:a.id,data:b})}catch(a){console.error("Failed to send extension custom UI input:",a)}},[]),b8=(0,t.useCallback)(a=>{let b=a.message.trim();b&&a4({type:"add",notice:{id:a.id??("u">typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():`${Date.now()}-${Math.random().toString(36).slice(2)}`),message:b,type:a.type??"info"}})},[]),b9=(0,t.useCallback)(b=>{switch(sF(b)&&h?.(b),b.method){case"select":case"confirm":case"input":case"editor":a8(b);break;case"notify":b8({id:b.id,message:b.message,type:b.notifyType??"info"});break;case"setTitle":b.title&&(document.title=b.title);break;case"set_editor_text":a.chatInputRef?.current?.insertText(b.text);break;case"custom":ba(a=>b.closed?a?.id===b.id?null:a:b)}},[b8,h,a.chatInputRef]),ca=(0,t.useCallback)(()=>{null!==bz.current&&(cancelAnimationFrame(bz.current),bz.current=null);let a=bA.current;0!==a.length&&(bA.current=[],S({type:"deltas",events:a}))},[]),cb=(0,t.useCallback)(a=>{bA.current.push(a),null===bz.current&&(bz.current=requestAnimationFrame(()=>{bz.current=null,ca()}))},[ca]),cc=(0,t.useCallback)(()=>{ca();let a=bn.current;return bn.current=!1,V(!1),a$(null),aA(null),J(new Map),S({type:"end"}),a},[ca]),cd=(0,t.useCallback)(a=>bq.current!==a&&(bq.current=a,g?.(),!0),[g]),ce=(0,t.useCallback)(a=>{if(bm.current&&bj.current===a)return void b2();b2(),bh.current=!0;let b=bg.current,c=async()=>{if(b===bg.current&&bj.current===a&&bh.current)try{let d=await fetch(`/api/agent/${encodeURIComponent(a)}`);if(!d.ok)throw Error(`HTTP ${d.status}`);let e=await d.json();if(b!==bg.current||bj.current!==a||!bh.current)return;let f=e.state;if(e.running&&f&&(f.isStreaming||f.isPromptRunning)){bh.current=!1,bf.current=null,bo.current=!!f?.isStreaming,bp.current=!!f?.isPromptRunning,bn.current=!0,V(!0),a$(f?.isStreaming?{kind:"waiting_model"}:{kind:"running_command"});return}if(e.running&&f?.isCompacting){aO(!0),bf.current=setTimeout(()=>void c(),600);return}bh.current=!1,bf.current=null,b3()}catch{if(b!==bg.current||bj.current!==a||!bh.current)return;bf.current=setTimeout(()=>void c(),600)}};bf.current=setTimeout(()=>void c(),3e4)},[b2,b3]),cf=(0,t.useCallback)(async(a=bj.current,b=bH.current)=>{if(bH.current===b)try{a&&await bX(a)}finally{if(bH.current!==b)return;let c=bp.current,d=bo.current;bp.current=!1,bo.current=!1,bL.current=null;let e=cc();c?cd(b):d&&e&&g?.(),a&&ce(a)}},[bX,cd,g,ce,cc]),cg=(0,t.useCallback)(async(a,b)=>{await s6(800);let c=Date.now();for(;bn.current&&Date.now()-c<2e4;){if(void 0!==b&&bH.current!==b)return;try{let c=await fetch(`/api/agent/${encodeURIComponent(a)}`);if(c.ok){let d=await c.json(),e=d.state;if(!d.running||!e||!e.isStreaming&&!e.isPromptRunning)return void await cf(a,b)}}catch{}await s6(600)}},[cf]);(0,t.useCallback)(async a=>{let b=bt.current+1;for(bt.current=b;br.current&&bt.current===b&&bj.current===a;){await s6(1e3);try{let c=await fetch(`/api/agent/${encodeURIComponent(a)}`);if(!c.ok)continue;let d=await c.json();if(d.state?.isBashRunning)continue;if(await bX(a),bt.current!==b||bj.current!==a)return;br.current=!1,X(!1),Z(null);return}catch{}}},[bX]);let ch=(0,t.useCallback)(async a=>{if(!bn.current||bj.current!==a)return;let b=bH.current;try{let c=await fetch(`/api/agent/${encodeURIComponent(a)}`);if(!c.ok)return;let d=await c.json();if(bj.current!==a||bH.current!==b)return;let e=d.state;if(aO(e?.isCompacting??!1),bc(s4(e?.queuedMessages)),"boolean"==typeof e?.autoCompactionEnabled&&aQ(e.autoCompactionEnabled),e?.contextUsage!==void 0&&aC(a=>s5(a,e.contextUsage??null)),d.running&&e&&(e.isStreaming||e.isPromptRunning||e.isCompacting)){bo.current=!!e.isStreaming,bp.current=!!e.isPromptRunning;return}if(!bn.current)return;e&&void 0!==e.systemPrompt&&aE(e.systemPrompt??null),await cf(a,b)}catch{}},[cf]);bu.current=(0,t.useCallback)(a=>{switch("message_update"!==a.type&&ca(),a.type){case"connected":{let b=bj.current;b&&bX(b),S({type:!0===a.isStreaming?"resume":"end"}),!0===a.isStreaming&&(b2(),bo.current=!0,bn.current=!0,V(!0),a$({kind:"waiting_model"}));break}case"agent_start":b2(),bo.current=!0,bn.current=!0,V(!0),a$({kind:"waiting_model"}),S({type:"start"});break;case"agent_end":if(!bn.current)break;a$(null),aA(null),S({type:"end"}),bj.current&&(bX(bj.current),fetch(`/api/agent/${encodeURIComponent(bj.current)}`).then(a=>a.json()).then(a=>{a.state?.contextUsage!==void 0&&aC(a.state.contextUsage??null),a.state?.systemPrompt!==void 0&&aE(a.state.systemPrompt??null),bc(s4(a.state?.queuedMessages))}).catch(()=>{}));break;case"agent_settled":{let a=bo.current;if(bo.current=!1,!a||bp.current)break;let b=bj.current,c=cc();aO(!1),b&&(bX(b),ce(b)),c&&g?.();break}case"prompt_done":{let a=bH.current,b=bp.current;bp.current=!1,bL.current=null;let c=cd(a);if(!b&&!c)break;let d=bj.current;d&&bX(d),!bo.current&&(cc(),d&&ce(d))}break;case"prompt_error":b8({type:"error",message:a.errorMessage??"Command failed"});break;case"extension_error":b8({type:"error",message:a.error??"Extension command failed"});break;case"message_start":case"message_update":if(!bn.current||sT(a))break;if("message_start"===a.type){let b=a.message;if(b?.role==="user")break;b?.role==="assistant"?(S({type:"snapshot",message:b}),b.content.length>0&&a$(null)):b&&a$(null)}else{let b=a.assistantMessageEvent;b&&(cb(b),"toolcall_start"!==b.type&&"toolcall_delta"!==b.type&&a$(null))}break;case"message_end":{if(!bn.current||sT(a))break;let b=a.message;if(b&&"user"===b.role){let a=sI(b),c=sQ(a),d=bL.current;bL.current=null,H(b=>{let e=b[b.length-1];return d&&e?.role==="user"&&sQ(e)===d?d===c?b:[...b.slice(0,-1),a]:[...b,a]})}else if(b){let a=sI(b);if("assistant"===a.role){let b=function(a){if("assistant"!==a.role||"aborted"===a.stopReason||"error"===a.stopReason)return null;let b=a.usage;if(!b)return null;let c=b.totalTokens,d=c&&c>0?c:b.input+b.output+b.cacheRead+b.cacheWrite;return d>0?d:null}(a);null!==b&&aC(a=>{let c=a?.contextWindow??0;return c<=0?a:s5(a,{tokens:b,contextWindow:c,percent:b/c*100})});let c=Date.now(),d=function(a,b,c){if(!b)return a;let d=!1,e=a.content.map((a,e)=>{if("thinking"!==a.type)return a;let f=b.content[e],g=(f?.type==="thinking"?f.startedAt:void 0)??a.startedAt??b.timestamp,h=(f?.type==="thinking"?f.endedAt:void 0)??a.endedAt??c;return a.startedAt===g&&a.endedAt===h?a:(d=!0,{...a,..."number"==typeof g?{startedAt:g}:{},..."number"==typeof h?{endedAt:h}:{}})});return d?{...a,content:e}:a}({...a,completedAt:c},T.current.streamingMessage,c);H(a=>[...a,d])}else"system"!==a.role&&H(b=>[...b,a])}S({type:"end"}),a$({kind:"waiting_model"});break}case"tool_execution_start":{let b=a.toolCallId,c=a.toolName;a$(a=>{let d=a?.kind==="running_tools"?[...a.tools]:[];return d.some(a=>a.id===b)||d.push({id:b,name:c}),{kind:"running_tools",tools:d}});break}case"tool_execution_update":{let b=a.toolCallId,c=a.toolName,d=a.partialResult,e=d?.content;("bash"===c||"powershell"===c)&&Array.isArray(e)&&J(a=>{let f=new Map(a);return f.set(b,{role:"toolResult",toolCallId:b,toolName:c,content:e,isError:d?.isError,details:d?.details}),f}),a$(a=>{let d=a?.kind==="running_tools"?a.tools:[],e=d.find(a=>a.id===b),f=c||e?.name||"tool";return e?.name===f?a:{kind:"running_tools",tools:[...d.filter(a=>a.id!==b),{id:b,name:f}]}});break}case"tool_execution_end":{let b=a.toolCallId;J(a=>{if(!a.has(b))return a;let c=new Map(a);return c.delete(b),c}),a$(a=>{if(a?.kind!=="running_tools")return a;let c=a.tools.filter(a=>a.id!==b);return 0===c.length?{kind:"waiting_model"}:{kind:"running_tools",tools:c}});break}case"queue_update":bc({steering:[...a.steering??[]],followUp:[...a.followUp??[]]});break;case"auto_retry_start":aA({attempt:a.attempt,maxAttempts:a.maxAttempts,errorMessage:a.errorMessage});break;case"auto_retry_end":aA(null);break;case"auto_compaction_start":case"compaction_start":aO(!0),aU(null),aY(null);break;case"auto_compaction_end":case"compaction_end":aO(!1),a.errorMessage?(aU(a.errorMessage),aY(null)):!a.aborted&&(aY(s9(a.result,a.reason??"auto")),bj.current&&bX(bj.current));break;case"extension_ui_request":b9(a);break;case"extension_ui_closed":a8(b=>b?.id===a.id?null:b)}},[b8,b2,ca,b9,bX,cd,g,cb,ce,cc]);let cj=(0,t.useCallback)(async(a,c)=>{let d=a.trim();if(!d&&!c?.length)return;if(bn.current||br.current)return void bV(a,c,bT);let f=!c?.length&&d.startsWith("/");if(!c?.length&&d.startsWith("!")){let b=d.startsWith("!!"),e=(b?d.slice(2):d.slice(1)).trim();return e?void await bB.current?.(e,b):void bV(a,c,bT)}let g=bH.current+1;b2(),bp.current=!0;let h=c?.map(a=>({type:"image",source:{type:"base64",media_type:a.mimeType,data:a.data}})),i={role:"user",content:h?.length?[...a.trim()?[{type:"text",text:a}]:[],...h]:a,timestamp:Date.now()};H(a=>[...a,i]),bL.current=sQ(i),bH.current=g,bn.current=!0,V(!0),a$(f?{kind:"running_command"}:{kind:"waiting_model"}),S({type:"start"}),bw.current=!0,bJ.current={runId:g,message:a,images:c,userMsg:i};let j=c?.map(a=>({type:"image",data:a.data,mimeType:a.mimeType})),k=!1;bI.current.begin(g);let l=async a=>{try{await sL(a,{type:"abort"})}catch(a){b8({type:"error",message:a instanceof Error?a.message:String(a)})}},m=await s$({gate:bI.current,runId:g,currentRunId:()=>bH.current,currentSessionId:()=>bj.current,promptPending:()=>bp.current,abandonUnsent:()=>{bJ.current?.runId===g&&(bJ.current=null,bp.current=!1,H(a=>{let b=a.lastIndexOf(i);return -1===b?a:[...a.slice(0,b),...a.slice(b+1)]}),bV(a,c,bT),bL.current=null,bH.current===g&&(bn.current=!1,V(!1),a$(null),S({type:"end"})))},onDispatched:()=>{bJ.current?.runId===g&&(bJ.current=null)},abort:l,prepare:async()=>{if(r&&e){let a=bj.current??await bD.current;if(bI.current.isCancelled(g))return null;let b=a??await b0();if(bI.current.isCancelled(g))return null;if(!b)throw Error("Unable to create a session for the prompt");if(ar&&(aK(ar),a)){let a=await sL(b,{type:"set_model",provider:ar.provider,modelId:ar.modelId});if(a?.thinkingLevel&&"off"!==a.thinkingLevel&&ay(a.thinkingLevel),bI.current.isCancelled(g))return null}return(await b4(b),bI.current.isCancelled(g))?null:b}if(b)return(await b4(b.id),bI.current.isCancelled(g))?null:b.id;throw Error("No active session for the prompt")},send:async b=>{let c=await sL(b,{type:"prompt",message:a,...j?.length?{images:j}:{}});k=c?.subagentAction==="steered"||c?.subagentAction==="resumed"}});if("abandoned"!==m.status&&"aborted"!==m.status&&"stale"!==m.status){if("cancelled_after_dispatch"===m.status)return void cg(m.sessionId,g);if("failed"===m.status){let b=m.error,d=m.sessionId,e=m.requestStarted;return(console.error("Failed to send message:",b),!(!e||sK(b))&&d)?void cg(d,g):(bp.current=!1,bJ.current?.runId===g&&(bJ.current=null),H(a=>{let b=a.lastIndexOf(i);return -1===b?a:[...a.slice(0,b),...a.slice(b+1)]}),b8({type:"error",message:b instanceof Error?b.message:String(b)}),bV(a,c,bT),bL.current=null,d)?void ch(d):(bn.current=!1,b3(),V(!1),a$(null),void S({type:"end"}))}if(r&&e&&b$(1,a),k&&m.sessionId){bp.current=!1,cg(m.sessionId,g);return}f&&m.sessionId&&cg(m.sessionId,g)}},[r,e,ar,b,b0,b4,b$,cg,b8,b2,b3,bT,ch,bV]),ck=(0,t.useCallback)(async(a,c)=>{if(bn.current||br.current||aa.current)throw Error("Cannot generate an image while the session is busy");let d=crypto.randomUUID();aa.current=!0,ab.current=d,ac.current=!1,_(!0);try{let f=b?.id??(r&&e?await b0():null);if(!f)throw Error("No active session for image generation");if(ac.current)throw new DOMException("Image generation cancelled","AbortError");let g=await sL(f,{type:"generate_image_direct",requestId:d,arguments:a,...c?{sourceImage:c}:{}});return await bX(f),r&&e&&b$(1,a.prompt),g}finally{ab.current===d&&(aa.current=!1,ab.current=null,ac.current=!1,_(!1))}},[b0,r,bX,e,b$,b?.id]),cl=(0,t.useCallback)(async()=>{ac.current=!0;let a=bj.current,b=ab.current;a&&b&&await sL(a,{type:"abort_image_generation",requestId:b})},[]);bB.current=(0,t.useCallback)(async(a,c)=>{if(bn.current||br.current)return;let d=`${c?"!!":"!"}${a}`;bK.current=!1,br.current=!0,Z({command:a,excludeFromContext:c}),X(!0);try{let e=await s_({abortRequested:()=>bK.current,prepare:async()=>bj.current??b?.id??await b0(),send:async b=>{await sL(b,{type:"bash",command:a,excludeFromContext:c})},loadResults:async a=>{bj.current===a&&await bX(a)},restoreUnsent:()=>bV(d,void 0,bT)});("completed"===e.status||"cancelled_after_dispatch"===e.status)&&b$(1,d)}catch(a){console.error("Failed to execute shell command:",a),b8({type:"error",message:a instanceof Error?a.message:String(a)}),bV(d,void 0,bT)}finally{br.current=!1,Z(null),X(!1)}},[b8,bT,b0,bX,b$,bV,b]);let cm=(0,t.useCallback)(async()=>{var a;let c=bH.current,d=bj.current,e=async a=>{if(d&&!bs.current){bs.current=!0;try{await sL(d,{type:a})}catch(a){console.error("Failed to abort:",a),b8({type:"error",message:a instanceof Error?a.message:String(a)})}finally{bs.current=!1}}};if(br.current){bK.current=!0,await e("abort_bash");return}let f=bJ.current;(bI.current.isInFlight(c)||f?.runId===c)&&bI.current.cancel(c);let g=!!(f&&f.runId===c&&bI.current.shouldAbandonUnsent(c));if(g&&f){bJ.current=null,bp.current=!1,H(a=>{let b=a.lastIndexOf(f.userMsg);return -1===b?a:[...a.slice(0,b),...a.slice(b+1)]}),bV(f.message,f.images,bT),bL.current=null,bn.current=!1,V(!1),a$(null),S({type:"end"});return}let h=(a={bashRunning:!1,hasSessionId:!!d,localUnsent:g,agentRunning:bn.current||bp.current}).bashRunning?a.hasSessionId?"abort_bash":"none":!a.agentRunning||a.localUnsent?"none":a.hasSessionId?"abort":"none";b?.relation?.kind==="subagent"&&"queued"===b.relation.status&&d?await e("abort"):"none"!==h&&d&&await e("abort_bash"===h?"abort_bash":"abort")},[b8,bT,bV,b]),cn=(0,t.useCallback)(async a=>{if(br.current)return;let b=bj.current;if(b){aG(a);try{let{cancelled:c,newSessionId:d}=await sL(b,{type:"fork",entryId:a})??{};!c&&d&&j?.(d)}catch(a){console.error("Fork failed:",a)}finally{aG(null)}}},[j]),co=(0,t.useCallback)(async a=>{if(br.current)return;let b=bj.current;b&&(sL(b,{type:"navigate_tree",targetId:a}).catch(()=>{}),F(a),await bY(b,a))},[bY]);(0,t.useCallback)(async a=>{if(br.current)return;F(a);let b=bj.current;b&&(await bY(b,a),a&&sL(b,{type:"navigate_tree",targetId:a}).catch(()=>{}))},[bY]);let cp=(0,t.useCallback)(async(a,b)=>{if(r){let c={provider:a,modelId:b};bF.current=c,as(c),aK(c);let d=bj.current??await bD.current;if(!d){let c=ap[`${a}/${b}`];c&&null===bG.current?ay(c):ay(function(a,b){if(!a?.length||a.includes(b)||"auto"===b)return b;let c=sM.indexOf(b);if(-1===c)return a[0];for(let b=c+1;b<sM.length;b++)if(a.includes(sM[b]))return sM[b];for(let b=c-1;b>=0;b--)if(a.includes(sM[b]))return sM[b];return a[0]}(al[`${a}:${b}`],ax));return}try{let c=await sL(d,{type:"set_model",provider:a,modelId:b});c?.thinkingLevel&&"off"!==c.thinkingLevel&&ay(c.thinkingLevel)}catch(a){console.error("Failed to set model:",a)}return}let c=bj.current;if(c&&!bM.current){bM.current=!0,aI({provider:a,modelId:b}),aM(!0);try{await sL(c,{type:"set_model",provider:a,modelId:b}),bM.current=!1,await bX(c)}catch(a){console.error("Failed to set model:",a),bM.current=!1,aI(aH),b8({type:"error",message:`Failed to switch model: ${a instanceof Error?a.message:String(a)}`}),await bX(c)}finally{bM.current=!1,aM(!1)}}},[b8,aH,r,bX,ap,al,as,ax]),cq=(0,t.useCallback)(async()=>{let a=bj.current;if(a&&!aN){aO(!0),aU(null),aY(null);try{let b=await sL(a,{type:"compact"});aY(s9(b,"manual")),await bX(a,!0)}catch(a){aU(a instanceof Error?a.message:String(a)),aY(null)}finally{aO(!1)}}},[aN,bX]),cr=(0,t.useCallback)(async(a,b=!1,c)=>{let d;try{d=await function(a,b,c={}){let d=s1.get(a);if(!c.force&&d&&d.loadedAt+6e4>Date.now())return Promise.resolve(d.data);let e=s2.get(a);if(e&&(!c.force||e.forced&&e.refreshToken===c.refreshToken))return e.promise;let f=(e?e.promise.catch(()=>void 0):Promise.resolve()).then(b).then(b=>{if(b.modelError&&(b.modelList?.length??0)===0)throw Error(b.modelError);for(s1.delete(a),s1.set(a,{data:b,loadedAt:Date.now()});s1.size>32;){let a=s1.keys().next().value;if(void 0===a)break;s1.delete(a)}return b}).finally(()=>{s2.get(a)?.promise===f&&s2.delete(a)});return s2.set(a,{promise:f,forced:!0===c.force,...void 0!==c.refreshToken?{refreshToken:c.refreshToken}:{}}),f}(u,async()=>{let a=await fetch(u);if(!a.ok){let b="";try{let c=await a.json();c&&"object"==typeof c&&"error"in c&&"string"==typeof c.error&&(b=c.error)}catch{}throw Error(b||`Failed to load models (HTTP ${a.status})`)}return a.json()},{force:b,refreshToken:c}),a?.throwIfAborted()}catch(b){throw a?.aborted||b instanceof DOMException&&"AbortError"===b.name||ai(b instanceof Error?b.message:String(b)),b}if(ae(d.models),ai(d.modelError??null),ak(d.modelScopeWarnings??[]),am(d.thinkingLevels??{}),ao(d.thinkingLevelMaps??{}),aq(d.thinkingLevelPins??{}),ag(d.modelList??[]),r&&!bj.current){let a=ta(d);au(a);let b=a&&d.thinkingLevelPins?.[`${a.provider}/${a.modelId}`];null===bG.current&&ay(b??"auto")}},[r,u]),cs=(0,t.useCallback)(async a=>{if(!a.startsWith("/"))return{handled:!1};let b=a.match(/^\/([^\s]+)(?:\s+([\s\S]*))?$/);if(!b)return{handled:!1};let[,c,d=""]=b,e=d.trim(),f=bj.current??await b0(),g=a=>(a.handled&&(a.error?b8({type:"error",message:a.error}):"openSessionStats"!==a.action&&b8({type:"success",message:a.message??"Command completed"})),a);try{switch(c){case"compact":{if(!f||aN)return g({handled:!0,error:"No active session to compact"});aO(!0),aU(null),aY(null);let a=await sL(f,{type:"compact",...e?{customInstructions:e}:{}});return aY(s9(a,"manual")),await bX(f,!0)&&b$(),g({handled:!0,message:"Compacted context"})}case"reload":if(!f)return g({handled:!0,error:"No active session to reload"});return await sL(f,{type:"reload"}),await Promise.all([bX(f,!1,!0),bZ(f),b1(),cr(void 0,!0)]),g({handled:!0,message:"Reloaded session resources"});case"name":if(!f)return g({handled:!0,error:"No active session to name"});if(!e)return g({handled:!0,error:"Usage: /name <name>"});return await sL(f,{type:"set_session_name",name:e}),await bX(f)&&b$(),g({handled:!0,message:`Session renamed to ${e}`});case"session":{if(!f)return g({handled:!0,error:"No active session"});let a=await sL(f,{type:"get_session_stats"});return a&&a6(a),p?.(),g({handled:!0,action:"openSessionStats"})}case"copy":{if(!f)return g({handled:!0,error:"No active session"});let a=await sL(f,{type:"get_last_assistant_text"}),b=a?.text??"";if(!b)return g({handled:!0,error:"No assistant message to copy"});return await navigator.clipboard.writeText(b),g({handled:!0,message:"Copied last assistant message"})}case"auto-compact":{if(!f)return g({handled:!0,error:"No active session"});let a=await sL(f,{type:"get_state"}),b=!("boolean"!=typeof a?.autoCompactionEnabled||a.autoCompactionEnabled);return await sL(f,{type:"set_auto_compaction",enabled:b}),aQ(b),g({handled:!0,message:b?"Auto-compaction enabled":"Auto-compaction disabled"})}case"clone":{if(!f)return g({handled:!0,error:"No active session to clone"});if(bn.current||br.current)return g({handled:!0,error:"Cannot clone while the session is running"});let a=await sL(f,{type:"clone",leafId:E});if(a?.cancelled||!a?.newSessionId)return g({handled:!0,error:"Cannot clone an empty or unsaved session"});let b=g({handled:!0,message:"Cloned current session branch"});return j?.(a.newSessionId),b}case"bug":{if(!f)return g({handled:!0,error:"No active session to report"});if(bn.current||br.current)return g({handled:!0,error:"Cannot report a bug while the session is running"});let a=await sL(f,{type:"bug_report",...e?{hint:e}:{}});if(!a)return g({handled:!0,error:"Bug report failed"});return g({handled:!0,message:"upload"===a.delivery?`Bug report uploaded. Report ID: ${a.id}`:`Upload failed (${a.error??"unknown error"}); exported to ${a.path}`})}default:return{handled:!1}}}catch(a){return g({handled:!0,error:a instanceof Error?a.message:String(a)})}finally{"compact"===c&&aO(!1)}},[E,b8,b0,aN,cr,bX,b1,bZ,b$,j,p]),ct=(0,t.useCallback)(async(a,b,c)=>{let d=bj.current;if(!d){bV(a,c,bT),b8({type:"error",message:"No active session for the queued message"});return}let e=c?.map(a=>({type:"image",data:a.data,mimeType:a.mimeType}));try{await sL(d,{type:"prompt",message:a,streamingBehavior:b,...e?.length?{images:e}:{}})}catch(b){console.error("Failed to submit streaming prompt:",b),sK(b)&&bV(a,c,bT),b8({type:"error",message:b instanceof Error?b.message:String(b)})}},[b8,bT,bV]),cu=(0,t.useCallback)(async(a,b)=>{await ct(a,"steer",b)},[ct]),cv=(0,t.useCallback)(async(a,b,c)=>{await ct(a,b,c)},[ct]),cw=(0,t.useCallback)(async(a,b)=>{await ct(a,"followUp",b)},[ct]),cx=(0,t.useCallback)(async()=>{let a=bj.current;if(a)try{await sL(a,{type:"abort_compaction"})}catch(a){console.error("Failed to abort compaction:",a)}},[]),cy=(0,t.useCallback)(async()=>{let a=bj.current;if(a)try{let b=await sL(a,{type:"clear_queue"});bc({steering:[],followUp:[]});let c=[...s0(b?.steering),...s0(b?.followUp)];if(0===c.length)return;bV(c.map(a=>a.text).filter(Boolean).join("\n\n"),c.flatMap(a=>a.images).map(a=>({...a,previewUrl:""})),bT)}catch(a){console.error("Failed to recall queued messages:",a),b8({type:"error",message:a instanceof Error?a.message:"Failed to recall queued messages"})}},[b8,bT,bV]),cz=(0,t.useCallback)(async a=>{if(ay(a),r&&!bj.current&&(bG.current="auto"===a?null:a),"auto"===a)return;let b=bj.current??await bD.current;if(b)try{await sL(b,{type:"set_thinking_level",level:a})}catch(a){console.error("Failed to set thinking level:",a)}},[r]),cA=(0,t.useCallback)(async a=>{let b=(0,bd.xG)(a);!function(a,b=null){if(b)try{b.setItem("pi-tool-preset",a)}catch{}}(a),bP(a);let c=bj.current??await bD.current;if(!c){bi.current=void 0!==b;return}try{let a=await sL(c,{type:"set_tools",...void 0!==b?{toolNames:b}:{}});bi.current=void 0!==b;let d=a?.sessionId??c,e=a?.recreated===!0;d!==c&&(b2(),b3(),bj.current=d),a0([]),bm.current&&(e||d!==c)&&b5(d);let[f]=await Promise.all([sL(d,{type:"get_state"}),bZ(d)]);bO.current&&bj.current===d&&aE(f.systemPrompt??"")}catch(a){console.error("Failed to set tools:",a)}},[b2,b3,bZ,b5,bP]),cB=(0,t.useCallback)((a,b=16)=>{let c=bC.current;c&&(bv.current=!0,bw.current=!1,bx.current=!1,c.scrollTo({top:a.getBoundingClientRect().top-c.getBoundingClientRect().top+c.scrollTop-b,behavior:"instant"}),by.current=c.scrollTop)},[]);(0,t.useCallback)(()=>{let a=bC.current;if(a){let{scrollTop:b,clientHeight:c,scrollHeight:d}=a,e=bn.current,f=bx.current,g=function(a,b,c,d,e,f=96){return!!ci(c,d,e)||!(c<b)&&(!!(!a&&c>b&&ci(c,d,e,f))||a)}(f,by.current,b,c,d,e?96:8);bx.current=g,by.current=b,!f&&g&&e&&bQ("instant")}},[bQ]);let[cC,cD]=(0,t.useState)(null);return(0,t.useRef)(5e3),(0,t.useRef)(null),(0,t.useRef)(null),{data:y,loading:A,error:C,activeLeafId:E,messages:G,activeToolResults:I,entryIds:K,historyCursor:M,hasEarlierMessages:O,streamState:R,agentRunning:U,directImageRunning:$,modelNames:ad,modelList:af,modelError:ah,modelScopeWarnings:aj,modelThinkingLevels:al,modelThinkingLevelMaps:an,newSessionModel:ar,toolPreset:av,thinkingLevel:ax,retryInfo:az,contextUsage:aB,systemPrompt:aD,forkingEntryId:aF,isCompacting:aN,autoCompactionEnabled:aP,compactError:aT,compactResult:aV,currentModel:bR,displayModel:bS,modelSwitching:aL,sessionStats:bW,slashCommands:a_,slashCommandsLoading:a1,queuedMessages:bb,notices:a3.visible,extensionDialog:a7,extensionCustomUi:a9,respondToExtensionUi:b6,sendExtensionCustomInput:b7,isAutoModelSelection:r&&null===ar,agentPhase:aZ,isNew:r,sessionIdRef:bj,scrollContainerRef:bC,initialScrollDoneRef:bv,handleSend:cj,handleDirectImageGeneration:ck,abortDirectImageGeneration:cl,handleAbort:cm,handleFork:cn,handleNavigate:co,handleModelChange:cp,handleCompact:cq,handleSteer:cu,handleFollowUp:cw,handlePromptWithStreamingBehavior:cv,handleAbortCompaction:cx,handleRecallQueue:cy,handleBuiltinSlashCommand:cs,addNotice:b8,setNoticePaused:cD,handleToolPresetChange:cA,handleThinkingLevelChange:cz,loadTools:bZ,loadSlashCommands:b1,setActiveLeafId:F,setData:z,setMessages:H,loadContext:bY,scrollToBottom:bQ,scrollToMessage:cB,dispatch:S,setAgentRunning:V,setForkingEntryId:aG,bashRunning:W,pendingBash:Y,handleAgentEventRef:bu}}({session:a,sessionRunning:g,newSessionCwd:h,newSessionDraftKey:i,onAgentEnd:af,onAttentionNeeded:ag,onSessionCreated:w,onSessionForked:ah,modelsRefreshKey:y,chatInputRef:ad,onBranchDataChange:C,onSystemPromptChange:D,onSystemToolsChange:E,onSystemInfoLoaderChange:F,onSessionStatsPanelOpen:J,deferInitialScroll:!!am,isVisiblePane:B}),bC=aA||aB||aD,bD=(0,t.useCallback)(()=>aB?bj():bk(),[bj,aB,bk]),bE=(0,t.useRef)(null),bF=a_?a_.tokens.input+a_.tokens.cacheRead+a_.tokens.cacheWrite:0,bG=a_&&bF>0?a_.tokens.cacheRead/bF*100:null,[bH,bI]=(0,t.useState)(null),bK=be&&0===at.length&&!az.isStreaming&&!bC&&null===bH,[bL,bN]=(0,t.useState)(!1),[bO,bP]=(0,t.useState)(null),[bQ,bR]=(0,t.useState)(!1),[bS,bT]=(0,t.useState)(null),[bU,bV]=(0,t.useState)(void 0),[bZ,b0]=(0,t.useState)(0),[b1,b2]=(0,t.useState)(null),[b4,b6]=(0,t.useState)(!1),[b7,b8]=(0,t.useState)(!1),[ca,cb]=(0,t.useState)(null),cc=(0,t.useRef)(null),ce=(0,t.useRef)(null),cl=(0,t.useRef)(null),cm=(0,t.useCallback)(async(b,c)=>{aj();let d=null;for(let a=at.length-1;a>=0;a--){let b=aC(at[a].details);if(b){d=b;break}}let e=a?.cwd??h,f=b.target,g=f&&(f.startsWith("/")||/^[a-zA-Z]:[\\/]/.test(f)?f:e?M(e,f):f);bI({prompt:b.prompt,size:b.size,width:c?void 0:d?.width,height:c?void 0:d?.height,previewUrl:c?`data:${c.mimeType};base64,${c.data}`:g?`/api/files/${I(g)}?type=read`:void 0});try{await bi(b,c),c&&ad.current?.removeAttachedImage(c.data)}catch(a){if(a instanceof DOMException&&"AbortError"===a.name)return;a9({type:"error",message:a instanceof Error?a.message:String(a)})}finally{bI(null)}},[a9,bi,aj,at,h,a?.cwd]),cn=(0,t.useCallback)(async a=>{let b=await bu(a);return!("error"in b)&&/^\/reload(?:\s|$)/.test(a.trim())&&b0(a=>a+1),b},[bu]),co=(0,t.useCallback)(()=>{b2(null),b6(!1),cb(null)},[]),cp=(0,t.useCallback)(a=>{let b=cl.current;if(b&&!(null!=a&&Math.hypot(a.clientX-b.x,a.clientY-b.y)>4)||!Q||b4)return;let c=window.getSelection(),d=c?.rangeCount?c.getRangeAt(0):null,e=cA.current;if(!c||c.isCollapsed||!d||!e||!e.contains(d.commonAncestorContainer))return void b2(null);let f=c.toString().trim();if(!f)return void b2(null);let g=d.getBoundingClientRect(),h=[d.commonAncestorContainer.nodeType===Node.ELEMENT_NODE?d.commonAncestorContainer:d.commonAncestorContainer.parentElement,d.startContainer.nodeType===Node.ELEMENT_NODE?d.startContainer:d.startContainer.parentElement,d.endContainer.nodeType===Node.ELEMENT_NODE?d.endContainer:d.endContainer.parentElement].map(a=>a?.closest('[data-message-role="assistant"]')?.dataset.entryId).find(a=>!!a);b2({text:f,top:Math.min(window.innerHeight-44,g.bottom+8),left:Math.max(64,Math.min(window.innerWidth-64,g.left+g.width/2)),sourceEntryId:h})},[Q,b4]),cq=(0,t.useCallback)(()=>{if(b1){var a,b,c;let d;ad.current?.insertText((a=b1.text,b=Z("chat.quoteIntro"),c=Z("chat.quoteQuestion"),d=a.trim().split("\n").map(a=>`> ${a}`).join("\n"),`${b}
|
|
6
6
|
|
|
7
7
|
${d}
|
|
8
8
|
|