@gobing-ai/spur 0.3.61 → 0.3.62
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/.claude-plugin/marketplace.json +1 -1
- package/config/config.global.yaml +64 -57
- package/config/corpus-baseline.json +409 -49
- package/config/plugin-scripts.json +2 -2
- package/config/rules/boundary/config-loading-ownership.yaml +21 -0
- package/config/workflows/history-anatomy.yaml +366 -0
- package/package.json +1 -1
- package/plugins/sp/README.md +19 -6
- package/plugins/sp/commands/dev-find-issue.md +25 -46
- package/plugins/sp/commands/dev-run.md +22 -3
- package/plugins/sp/lib/artifact-digest.generated.d.mts +7 -0
- package/plugins/sp/lib/artifact-digest.generated.mjs +48 -0
- package/plugins/sp/plugin.json +1 -1
- package/plugins/sp/references/roles.md +5 -5
- package/plugins/sp/scripts/history-anatomy-cache.mjs +669 -0
- package/plugins/sp/scripts/history-anatomy-cache.ts +818 -0
- package/plugins/sp/skills/history-anatomy/SKILL.md +67 -0
- package/plugins/sp/skills/history-anatomy/references/modes.md +82 -0
- package/plugins/sp/skills/history-anatomy/references/operations.md +67 -0
- package/plugins/sp/skills/history-anatomy/references/report-contract.md +133 -0
- package/plugins/sp/skills/spur-dev/references/dev-operations.md +2 -2
- package/plugins/sp/skills/spur-dev/references/execution-batch.md +14 -1
- package/plugins/sp/skills/spur-dev/references/execution-workflow.md +7 -0
- package/plugins/sp/skills/spur-dev/references/flag-glossary.md +25 -13
- package/spur.js +1091 -823
- package/web/_astro/BoardApp.Z9jMwI9G.js +1 -0
- package/web/_astro/BoardApp.rkWGVwwK.js +178 -0
- package/web/_astro/{TaskDetail.D2N60cfE.js → TaskDetail.B7ODt_bA.js} +1 -1
- package/web/_astro/{arc.D-EfJJwf.js → arc.C5QRz6AQ.js} +1 -1
- package/web/_astro/{architectureDiagram-3BPJPVTR.CgvTTzqp.js → architectureDiagram-3BPJPVTR.CHptn8gZ.js} +1 -1
- package/web/_astro/{blockDiagram-GPEHLZMM.CnOohvvn.js → blockDiagram-GPEHLZMM.b1nEDkDw.js} +1 -1
- package/web/_astro/{c4Diagram-AAUBKEIU.BFcBGUy_.js → c4Diagram-AAUBKEIU.BWj8S_Qq.js} +1 -1
- package/web/_astro/channel.BJtn6CGV.js +1 -0
- package/web/_astro/{chunk-2J33WTMH.C-6MR-XY.js → chunk-2J33WTMH.q0BBuE1n.js} +1 -1
- package/web/_astro/{chunk-4BX2VUAB.BN4LP5AR.js → chunk-4BX2VUAB.DP2KDkAU.js} +1 -1
- package/web/_astro/{chunk-55IACEB6.tUJ_CTtZ.js → chunk-55IACEB6.CkCId72p.js} +1 -1
- package/web/_astro/{chunk-727SXJPM.BNCk-sxv.js → chunk-727SXJPM.oHWzxMot.js} +1 -1
- package/web/_astro/{chunk-AQP2D5EJ.BkpFIbNa.js → chunk-AQP2D5EJ.DkkgxfMP.js} +1 -1
- package/web/_astro/{chunk-FMBD7UC4.DcSZ87PN.js → chunk-FMBD7UC4.lmFJDvRK.js} +1 -1
- package/web/_astro/{chunk-ND2GUHAM.BkLvHFFf.js → chunk-ND2GUHAM.52jt0eHK.js} +1 -1
- package/web/_astro/{chunk-QZHKN3VN.HOdgszax.js → chunk-QZHKN3VN.Cg8KEFoD.js} +1 -1
- package/web/_astro/{classDiagram-4FO5ZUOK.CWfRiY6b.js → classDiagram-4FO5ZUOK.BuOUhxcD.js} +1 -1
- package/web/_astro/{classDiagram-v2-Q7XG4LA2.CWfRiY6b.js → classDiagram-v2-Q7XG4LA2.BuOUhxcD.js} +1 -1
- package/web/_astro/{cose-bilkent-S5V4N54A.C6j4PxoN.js → cose-bilkent-S5V4N54A.BRUU8E_0.js} +1 -1
- package/web/_astro/{dagre-BM42HDAG.BATZG1II.js → dagre-BM42HDAG.GDbfFYVV.js} +1 -1
- package/web/_astro/{diagram-2AECGRRQ.B0f5yY6x.js → diagram-2AECGRRQ.CvIDBeJF.js} +1 -1
- package/web/_astro/{diagram-5GNKFQAL.Bewupqv0.js → diagram-5GNKFQAL.DMgJjWOX.js} +1 -1
- package/web/_astro/{diagram-KO2AKTUF.C23r1tB2.js → diagram-KO2AKTUF.njjl-0AP.js} +1 -1
- package/web/_astro/{diagram-LMA3HP47.DUErdBOR.js → diagram-LMA3HP47.CcCqgP8M.js} +1 -1
- package/web/_astro/{diagram-OG6HWLK6.BubmwAjb.js → diagram-OG6HWLK6.Btqd-YVE.js} +1 -1
- package/web/_astro/{erDiagram-TEJ5UH35.BE_Qs5mv.js → erDiagram-TEJ5UH35.BbhML_Xo.js} +1 -1
- package/web/_astro/{flowDiagram-I6XJVG4X.COWdbzon.js → flowDiagram-I6XJVG4X.CkvsIgY8.js} +1 -1
- package/web/_astro/{ganttDiagram-6RSMTGT7.5EGYC4MK.js → ganttDiagram-6RSMTGT7.m8IWD_wW.js} +1 -1
- package/web/_astro/{gitGraphDiagram-PVQCEYII.bUUV7iEw.js → gitGraphDiagram-PVQCEYII.5z87HXO-.js} +1 -1
- package/web/_astro/{index.Cestp9nh.css → index.nWve6EHS.css} +1 -1
- package/web/_astro/{infoDiagram-5YYISTIA.CbiInFvz.js → infoDiagram-5YYISTIA.Bvyvsd7Q.js} +1 -1
- package/web/_astro/{ishikawaDiagram-YF4QCWOH.CB7lrSsJ.js → ishikawaDiagram-YF4QCWOH.DdWVYO87.js} +1 -1
- package/web/_astro/{journeyDiagram-JHISSGLW.rhGZgWt8.js → journeyDiagram-JHISSGLW.C3kOlYH1.js} +1 -1
- package/web/_astro/{kanban-definition-UN3LZRKU.DPeZD_lP.js → kanban-definition-UN3LZRKU.CfKTUHVC.js} +1 -1
- package/web/_astro/{linear.l60Nyp5b.js → linear.CMDHnzgX.js} +1 -1
- package/web/_astro/{mermaid.core.DmtMJcmL.js → mermaid.core.DN7-WrsP.js} +4 -4
- package/web/_astro/{mindmap-definition-RKZ34NQL.Cc47AcCn.js → mindmap-definition-RKZ34NQL.DcQxLvqG.js} +1 -1
- package/web/_astro/{pieDiagram-4H26LBE5.B8cN-S9g.js → pieDiagram-4H26LBE5.Nu-Inbw6.js} +1 -1
- package/web/_astro/{quadrantDiagram-W4KKPZXB.DY1FN89L.js → quadrantDiagram-W4KKPZXB.Dck2EChs.js} +1 -1
- package/web/_astro/{requirementDiagram-4Y6WPE33.CnM6VbV8.js → requirementDiagram-4Y6WPE33.C--E5XuW.js} +1 -1
- package/web/_astro/{sankeyDiagram-5OEKKPKP.B9DcGfNV.js → sankeyDiagram-5OEKKPKP.B_0iRNna.js} +1 -1
- package/web/_astro/{sequenceDiagram-3UESZ5HK.ymxaNlAY.js → sequenceDiagram-3UESZ5HK.PKuKr9mk.js} +1 -1
- package/web/_astro/{stateDiagram-AJRCARHV.DDOJ3d8P.js → stateDiagram-AJRCARHV.ClhGHb-O.js} +1 -1
- package/web/_astro/{stateDiagram-v2-BHNVJYJU.Ck0Nb_KY.js → stateDiagram-v2-BHNVJYJU.Bv6BBnvg.js} +1 -1
- package/web/_astro/{timeline-definition-PNZ67QCA.BNOvZwAN.js → timeline-definition-PNZ67QCA.BZm2ZvAH.js} +1 -1
- package/web/_astro/{vennDiagram-CIIHVFJN.D3k5ivSF.js → vennDiagram-CIIHVFJN.Dt6yZXry.js} +1 -1
- package/web/_astro/{wardley-L42UT6IY.BylaxVqn.js → wardley-L42UT6IY.rUs-E00M.js} +1 -1
- package/web/_astro/{wardleyDiagram-YWT4CUSO.HLNtFUm9.js → wardleyDiagram-YWT4CUSO.BcWgv4cA.js} +1 -1
- package/web/_astro/{xychartDiagram-2RQKCTM6.B-WooKSU.js → xychartDiagram-2RQKCTM6.DH-M-cX9.js} +1 -1
- package/web/index.html +2 -2
- package/plugins/sp/commands/dev-history-load.md +0 -63
- package/plugins/sp/scripts/history-load.mjs +0 -268
- package/plugins/sp/scripts/history-load.ts +0 -400
- package/web/_astro/BoardApp.BtRfVADq.js +0 -1
- package/web/_astro/BoardApp.CBIzcvqi.js +0 -178
- package/web/_astro/channel.kIu33Gui.js +0 -1
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_astro/mermaid.core.DmtMJcmL.js","_astro/index.A0eX93qW.js","_astro/TaskDetail.D2N60cfE.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{r as g,a as Yw,g as kl,R as tt,c as Zw}from"./index.A0eX93qW.js";var Iu={exports:{}},ki={};var Ob;function Kw(){if(Ob)return ki;Ob=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,i){var s=null;if(i!==void 0&&(s=""+i),a.key!==void 0&&(s=""+a.key),"key"in a){i={};for(var o in a)o!=="key"&&(i[o]=a[o])}else i=a;return a=i.ref,{$$typeof:e,type:r,key:s,ref:a!==void 0?a:null,props:i}}return ki.Fragment=t,ki.jsx=n,ki.jsxs=n,ki}var Lb;function Xw(){return Lb||(Lb=1,Iu.exports=Kw()),Iu.exports}var l=Xw();var Ly=e=>{throw TypeError(e)},Qw=(e,t,n)=>t.has(e)||Ly("Cannot "+n),Ru=(e,t,n)=>(Qw(e,t,"read from private field"),n?n.call(e):t.get(e)),Jw=(e,t,n)=>t.has(e)?Ly("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Fb="popstate";function eA(e={}){function t(r,a){let{pathname:i,search:s,hash:o}=r.location;return ps("",{pathname:i,search:s,hash:o},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:Sr(a)}return nA(t,n,null,e)}function st(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Vt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function tA(){return Math.random().toString(36).substring(2,10)}function Mb(e,t){return{usr:e.state,key:e.key,idx:t}}function ps(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Jr(t):t,state:n,key:t&&t.key||r||tA()}}function Sr({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Jr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function nA(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:i=!1}=r,s=a.history,o="POP",u=null,c=p();c==null&&(c=0,s.replaceState({...s.state,idx:c},""));function p(){return(s.state||{idx:null}).idx}function d(){o="POP";let x=p(),y=x==null?null:x-c;c=x,u&&u({action:o,location:E.location,delta:y})}function f(x,y){o="PUSH";let S=ps(E.location,x,y);c=p()+1;let v=Mb(S,c),w=E.createHref(S);try{s.pushState(v,"",w)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;a.location.assign(w)}i&&u&&u({action:o,location:E.location,delta:1})}function m(x,y){o="REPLACE";let S=ps(E.location,x,y);c=p();let v=Mb(S,c),w=E.createHref(S);s.replaceState(v,"",w),i&&u&&u({action:o,location:E.location,delta:0})}function b(x){return Fy(x)}let E={get action(){return o},get location(){return e(a,s)},listen(x){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(Fb,d),u=x,()=>{a.removeEventListener(Fb,d),u=null}},createHref(x){return t(a,x)},createURL:b,encodeLocation(x){let y=b(x);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:m,go(x){return s.go(x)}};return E}function Fy(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),st(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Sr(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var Gi,Pb=class{constructor(e){if(Jw(this,Gi,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(Ru(this,Gi).has(e))return Ru(this,Gi).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){Ru(this,Gi).set(e,t)}};Gi=new WeakMap;var rA=new Set(["lazy","caseSensitive","path","id","index","children"]);function aA(e){return rA.has(e)}var iA=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function sA(e){return iA.has(e)}function oA(e){return e.index===!0}function fs(e,t,n=[],r={},a=!1){return e.map((i,s)=>{let o=[...n,String(s)],u=typeof i.id=="string"?i.id:o.join("-");if(st(i.index!==!0||!i.children,"Cannot specify children on an index route"),st(a||!r[u],`Found a route id collision on id "${u}". Route id's must be globally unique within Data Router usages`),oA(i)){let c={...i,id:u};return r[u]=jb(c,t(c)),c}else{let c={...i,id:u,children:void 0};return r[u]=jb(c,t(c)),i.children&&(c.children=fs(i.children,t,o,r,a)),c}})}function jb(e,t){return Object.assign(e,{...t,...typeof t.lazy=="object"&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function Hr(e,t,n="/"){return Wi(e,t,n,!1)}function Wi(e,t,n,r){let a=typeof t=="string"?Jr(t):t,i=rr(a.pathname||"/",n);if(i==null)return null;let s=My(e);uA(s);let o=null;for(let u=0;o==null&&u<s.length;++u){let c=yA(i);o=EA(s[u],c,r)}return o}function lA(e,t){let{route:n,pathname:r,params:a}=e;return{id:n.id,pathname:r,params:a,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function My(e,t=[],n=[],r="",a=!1){let i=(s,o,u=a,c)=>{let p={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(r)&&u)return;st(p.relativePath.startsWith(r),`Absolute route path "${p.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(r.length)}let d=Tr([r,p.relativePath]),f=n.concat(p);s.children&&s.children.length>0&&(st(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),My(s.children,t,f,d,u)),!(s.path==null&&!s.index)&&t.push({path:d,score:gA(d,s.index),routesMeta:f})};return e.forEach((s,o)=>{if(s.path===""||!s.path?.includes("?"))i(s,o);else for(let u of Py(s.path))i(s,o,!0,u)}),t}function Py(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let s=Py(r.join("/")),o=[];return o.push(...s.map(u=>u===""?i:[i,u].join("/"))),a&&o.push(...s),o.map(u=>e.startsWith("/")&&u===""?"/":u)}function uA(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:bA(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var cA=/^:[\w-]+$/,dA=3,pA=2,fA=1,mA=10,hA=-2,Bb=e=>e==="*";function gA(e,t){let n=e.split("/"),r=n.length;return n.some(Bb)&&(r+=hA),t&&(r+=pA),n.filter(a=>!Bb(a)).reduce((a,i)=>a+(cA.test(i)?dA:i===""?fA:mA),r)}function bA(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function EA(e,t,n=!1){let{routesMeta:r}=e,a={},i="/",s=[];for(let o=0;o<r.length;++o){let u=r[o],c=o===r.length-1,p=i==="/"?t:t.slice(i.length)||"/",d=qo({path:u.relativePath,caseSensitive:u.caseSensitive,end:c},p),f=u.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=qo({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},p)),!d)return null;Object.assign(a,d.params),s.push({params:a,pathname:Tr([i,d.pathname]),pathnameBase:vA(Tr([i,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(i=Tr([i,d.pathnameBase]))}return s}function qo(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=xA(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let i=a[0],s=i.replace(/(.)\/+$/,"$1"),o=a.slice(1);return{params:r.reduce((c,{paramName:p,isOptional:d},f)=>{if(p==="*"){let b=o[f]||"";s=i.slice(0,i.length-b.length).replace(/(.)\/+$/,"$1")}const m=o[f];return d&&!m?c[p]=void 0:c[p]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:s,pattern:e}}function xA(e,t=!1,n=!0){Vt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,u)=>(r.push({paramName:o,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function yA(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Vt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function rr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function TA({basename:e,pathname:t}){return t==="/"?e:Tr([e,t])}var jy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Il=e=>jy.test(e);function SA(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Jr(e):e,i;if(n)if(Il(n))i=n;else{if(n.includes("//")){let s=n;n=n.replace(/\/\/+/g,"/"),Vt(!1,`Pathnames cannot have embedded double slashes - normalizing ${s} -> ${n}`)}n.startsWith("/")?i=Ub(n.substring(1),"/"):i=Ub(n,t)}else i=t;return{pathname:i,search:wA(r),hash:AA(a)}}function Ub(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Du(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function By(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Rl(e){let t=By(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Dl(e,t,n,r=!1){let a;typeof e=="string"?a=Jr(e):(a={...e},st(!a.pathname||!a.pathname.includes("?"),Du("?","pathname","search",a)),st(!a.pathname||!a.pathname.includes("#"),Du("#","pathname","hash",a)),st(!a.search||!a.search.includes("#"),Du("#","search","hash",a)));let i=e===""||a.pathname==="",s=i?"/":a.pathname,o;if(s==null)o=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),d-=1;a.pathname=f.join("/")}o=d>=0?t[d]:"/"}let u=SA(a,o),c=s&&s!=="/"&&s.endsWith("/"),p=(i||s===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||p)&&(u.pathname+="/"),u}var Tr=e=>e.join("/").replace(/\/\/+/g,"/"),vA=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),wA=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,AA=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Is=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function ms(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Rs(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Uy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function $y(e,t){let n=e;if(typeof n!="string"||!jy.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(Uy)try{let i=new URL(window.location.href),s=n.startsWith("//")?new URL(i.protocol+n):new URL(n),o=rr(s.pathname,t);s.origin===i.origin&&o!=null?n=o+s.search+s.hash:a=!0}catch{Vt(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:a,to:n}}var Vr=Symbol("Uninstrumented");function NA(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(a=>a({id:t.id,index:t.index,path:t.path,instrument(i){let s=Object.keys(n);for(let o of s)i[o]&&n[o].push(i[o])}}));let r={};if(typeof t.lazy=="function"&&n.lazy.length>0){let a=$a(n.lazy,t.lazy,()=>{});a&&(r.lazy=a)}if(typeof t.lazy=="object"){let a=t.lazy;["middleware","loader","action"].forEach(i=>{let s=a[i],o=n[`lazy.${i}`];if(typeof s=="function"&&o.length>0){let u=$a(o,s,()=>{});u&&(r.lazy=Object.assign(r.lazy||{},{[i]:u}))}})}return["loader","action"].forEach(a=>{let i=t[a];if(typeof i=="function"&&n[a].length>0){let s=i[Vr]??i,o=$a(n[a],s,(...u)=>$b(u[0]));o&&(o[Vr]=s,r[a]=o)}}),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(a=>{let i=a[Vr]??a,s=$a(n.middleware,i,(...o)=>$b(o[0]));return s?(s[Vr]=i,s):a})),r}function _A(e,t){let n={navigate:[],fetch:[]};if(t.forEach(r=>r({instrument(a){let i=Object.keys(a);for(let s of i)a[s]&&n[s].push(a[s])}})),n.navigate.length>0){let r=e.navigate[Vr]??e.navigate,a=$a(n.navigate,r,(...i)=>{let[s,o]=i;return{to:typeof s=="number"||typeof s=="string"?s:s?Sr(s):".",...zb(e,o??{})}});a&&(a[Vr]=r,e.navigate=a)}if(n.fetch.length>0){let r=e.fetch[Vr]??e.fetch,a=$a(n.fetch,r,(...i)=>{let[s,,o,u]=i;return{href:o??".",fetcherKey:s,...zb(e,u??{})}});a&&(a[Vr]=r,e.fetch=a)}return e}function $a(e,t,n){return e.length===0?null:async(...r)=>{let a=await zy(e,n(...r),()=>t(...r),e.length-1);if(a.type==="error")throw a.value;return a.value}}async function zy(e,t,n,r){let a=e[r],i;if(a){let s,o=async()=>(s?console.error("You cannot call instrumented handlers more than once"):s=zy(e,t,n,r-1),i=await s,st(i,"Expected a result"),i.type==="error"&&i.value instanceof Error?{status:"error",error:i.value}:{status:"success",error:void 0});try{await a(o,t)}catch(u){console.error("An instrumentation function threw an error:",u)}s||await o(),await s}else try{i={type:"success",value:await n()}}catch(s){i={type:"error",value:s}}return i||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function $b(e){let{request:t,context:n,params:r,unstable_pattern:a}=e;return{request:CA(t),params:{...r},unstable_pattern:a,context:kA(n)}}function zb(e,t){return{currentUrl:Sr(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}function CA(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function kA(e){if(RA(e)){let t={...e};return Object.freeze(t),t}else return{get:t=>e.get(t)}}var IA=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function RA(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===IA}var Hy=["POST","PUT","PATCH","DELETE"],DA=new Set(Hy),OA=["GET",...Hy],LA=new Set(OA),Gy=new Set([301,302,303,307,308]),FA=new Set([307,308]),Ou={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},MA={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ii={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},PA=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Wy="remix-router-transitions",Vy=Symbol("ResetLoaderData");function jA(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";st(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],a=e.mapRouteProperties||PA,i=a;if(e.unstable_instrumentations){let j=e.unstable_instrumentations;i=G=>({...a(G),...NA(j.map(Z=>Z.route).filter(Boolean),G)})}let s={},o=fs(e.routes,i,void 0,s),u,c=e.basename||"/";c.startsWith("/")||(c=`/${c}`);let p=e.dataStrategy||HA,d={...e.future},f=null,m=new Set,b=null,E=null,x=null,y=e.hydrationData!=null,S=Hr(o,e.history.location,c),v=!1,w=null,R;if(S==null&&!e.patchRoutesOnNavigation){let j=Jn(404,{pathname:e.history.location.pathname}),{matches:G,route:Z}=io(o);R=!0,S=G,w={[Z.id]:j}}else if(S&&!e.hydrationData&&H(S,o,e.history.location.pathname).active&&(S=null),S)if(S.some(j=>j.route.lazy))R=!1;else if(!S.some(j=>Rd(j.route)))R=!0;else{let j=e.hydrationData?e.hydrationData.loaderData:null,G=e.hydrationData?e.hydrationData.errors:null;if(G){let Z=S.findIndex(le=>G[le.route.id]!==void 0);R=S.slice(0,Z+1).every(le=>!Fc(le.route,j,G))}else R=S.every(Z=>!Fc(Z.route,j,G))}else{R=!1,S=[];let j=H(null,o,e.history.location.pathname);j.active&&j.matches&&(v=!0,S=j.matches)}let N,T={historyAction:e.history.action,location:e.history.location,matches:S,initialized:R,navigation:Ou,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||w,fetchers:new Map,blockers:new Map},_="POP",L=null,C=!1,$,I=!1,P=new Map,W=null,U=!1,ne=!1,z=new Set,se=new Map,pe=0,D=-1,Q=new Map,de=new Set,O=new Map,Ce=new Map,De=new Set,J=new Map,_e,fe=null;function X(){if(f=e.history.listen(({action:j,location:G,delta:Z})=>{if(_e){_e(),_e=void 0;return}Vt(J.size===0||Z!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let le=Qt({currentLocation:T.location,nextLocation:G,historyAction:j});if(le&&Z!=null){let be=new Promise(Ie=>{_e=Ie});e.history.go(Z*-1),Ct(le,{state:"blocked",location:G,proceed(){Ct(le,{state:"proceeding",proceed:void 0,reset:void 0,location:G}),be.then(()=>e.history.go(Z))},reset(){let Ie=new Map(T.blockers);Ie.set(le,Ii),me({blockers:Ie})}}),L?.resolve(),L=null;return}return qe(j,G)}),n){oN(t,P);let j=()=>lN(t,P);t.addEventListener("pagehide",j),W=()=>t.removeEventListener("pagehide",j)}return T.initialized||qe("POP",T.location,{initialHydration:!0}),N}function Ge(){f&&f(),W&&W(),m.clear(),$&&$.abort(),T.fetchers.forEach((j,G)=>mt(G)),T.blockers.forEach((j,G)=>Me(G))}function ge(j){return m.add(j),()=>m.delete(j)}function me(j,G={}){j.matches&&(j.matches=j.matches.map(be=>{let Ie=s[be.route.id],ke=be.route;return ke.element!==Ie.element||ke.errorElement!==Ie.errorElement||ke.hydrateFallbackElement!==Ie.hydrateFallbackElement?{...be,route:Ie}:be})),T={...T,...j};let Z=[],le=[];T.fetchers.forEach((be,Ie)=>{be.state==="idle"&&(De.has(Ie)?Z.push(Ie):le.push(Ie))}),De.forEach(be=>{!T.fetchers.has(be)&&!se.has(be)&&Z.push(be)}),[...m].forEach(be=>be(T,{deletedFetchers:Z,newErrors:j.errors??null,viewTransitionOpts:G.viewTransitionOpts,flushSync:G.flushSync===!0})),Z.forEach(be=>mt(be)),le.forEach(be=>T.fetchers.delete(be))}function Te(j,G,{flushSync:Z}={}){let le=T.actionData!=null&&T.navigation.formMethod!=null&&kn(T.navigation.formMethod)&&T.navigation.state==="loading"&&j.state?._isRedirect!==!0,be;G.actionData?Object.keys(G.actionData).length>0?be=G.actionData:be=null:le?be=T.actionData:be=null;let Ie=G.loaderData?Qb(T.loaderData,G.loaderData,G.matches||[],G.errors):T.loaderData,ke=T.blockers;ke.size>0&&(ke=new Map(ke),ke.forEach((Ve,Ue)=>ke.set(Ue,Ii)));let Fe=U?!1:Je(j,G.matches||T.matches),we=C===!0||T.navigation.formMethod!=null&&kn(T.navigation.formMethod)&&j.state?._isRedirect!==!0;u&&(o=u,u=void 0),U||_==="POP"||(_==="PUSH"?e.history.push(j,j.state):_==="REPLACE"&&e.history.replace(j,j.state));let Pe;if(_==="POP"){let Ve=P.get(T.location.pathname);Ve&&Ve.has(j.pathname)?Pe={currentLocation:T.location,nextLocation:j}:P.has(j.pathname)&&(Pe={currentLocation:j,nextLocation:T.location})}else if(I){let Ve=P.get(T.location.pathname);Ve?Ve.add(j.pathname):(Ve=new Set([j.pathname]),P.set(T.location.pathname,Ve)),Pe={currentLocation:T.location,nextLocation:j}}me({...G,actionData:be,loaderData:Ie,historyAction:_,location:j,initialized:!0,navigation:Ou,revalidation:"idle",restoreScrollPosition:Fe,preventScrollReset:we,blockers:ke},{viewTransitionOpts:Pe,flushSync:Z===!0}),_="POP",C=!1,I=!1,U=!1,ne=!1,L?.resolve(),L=null,fe?.resolve(),fe=null}async function Se(j,G){if(L?.resolve(),L=null,typeof j=="number"){L||(L=n0());let bt=L.promise;return e.history.go(j),bt}let Z=Lc(T.location,T.matches,c,j,G?.fromRouteId,G?.relative),{path:le,submission:be,error:Ie}=Hb(!1,Z,G),ke=T.location,Fe=ps(T.location,le,G&&G.state);Fe={...Fe,...e.history.encodeLocation(Fe)};let we=G&&G.replace!=null?G.replace:void 0,Pe="PUSH";we===!0?Pe="REPLACE":we===!1||be!=null&&kn(be.formMethod)&&be.formAction===T.location.pathname+T.location.search&&(Pe="REPLACE");let Ve=G&&"preventScrollReset"in G?G.preventScrollReset===!0:void 0,Ue=(G&&G.flushSync)===!0,gt=Qt({currentLocation:ke,nextLocation:Fe,historyAction:Pe});if(gt){Ct(gt,{state:"blocked",location:Fe,proceed(){Ct(gt,{state:"proceeding",proceed:void 0,reset:void 0,location:Fe}),Se(j,G)},reset(){let bt=new Map(T.blockers);bt.set(gt,Ii),me({blockers:bt})}});return}await qe(Pe,Fe,{submission:be,pendingError:Ie,preventScrollReset:Ve,replace:G&&G.replace,enableViewTransition:G&&G.viewTransition,flushSync:Ue,callSiteDefaultShouldRevalidate:G&&G.unstable_defaultShouldRevalidate})}function oe(){fe||(fe=n0()),ie(),me({revalidation:"loading"});let j=fe.promise;return T.navigation.state==="submitting"?j:T.navigation.state==="idle"?(qe(T.historyAction,T.location,{startUninterruptedRevalidation:!0}),j):(qe(_||T.historyAction,T.navigation.location,{overrideNavigation:T.navigation,enableViewTransition:I===!0}),j)}async function qe(j,G,Z){$&&$.abort(),$=null,_=j,U=(Z&&Z.startUninterruptedRevalidation)===!0,It(T.location,T.matches),C=(Z&&Z.preventScrollReset)===!0,I=(Z&&Z.enableViewTransition)===!0;let le=u||o,be=Z&&Z.overrideNavigation,Ie=Z?.initialHydration&&T.matches&&T.matches.length>0&&!v?T.matches:Hr(le,G,c),ke=(Z&&Z.flushSync)===!0;if(Ie&&T.initialized&&!ne&&XA(T.location,G)&&!(Z&&Z.submission&&kn(Z.submission.formMethod))){Te(G,{matches:Ie},{flushSync:ke});return}let Fe=H(Ie,le,G.pathname);if(Fe.active&&Fe.matches&&(Ie=Fe.matches),!Ie){let{error:en,notFoundMatches:bn,route:_t}=Le(G.pathname);Te(G,{matches:bn,loaderData:{},errors:{[_t.id]:en}},{flushSync:ke});return}$=new AbortController;let we=ja(e.history,G,$.signal,Z&&Z.submission),Pe=e.getContext?await e.getContext():new Pb,Ve;if(Z&&Z.pendingError)Ve=[Gr(Ie).route.id,{type:"error",error:Z.pendingError}];else if(Z&&Z.submission&&kn(Z.submission.formMethod)){let en=await at(we,G,Z.submission,Ie,Pe,Fe.active,Z&&Z.initialHydration===!0,{replace:Z.replace,flushSync:ke});if(en.shortCircuited)return;if(en.pendingActionResult){let[bn,_t]=en.pendingActionResult;if(Wn(_t)&&ms(_t.error)&&_t.error.status===404){$=null,Te(G,{matches:en.matches,loaderData:{},errors:{[bn]:_t.error}});return}}Ie=en.matches||Ie,Ve=en.pendingActionResult,be=Lu(G,Z.submission),ke=!1,Fe.active=!1,we=ja(e.history,we.url,we.signal)}let{shortCircuited:Ue,matches:gt,loaderData:bt,errors:Jt}=await ft(we,G,Ie,Pe,Fe.active,be,Z&&Z.submission,Z&&Z.fetcherSubmission,Z&&Z.replace,Z&&Z.initialHydration===!0,ke,Ve,Z&&Z.callSiteDefaultShouldRevalidate);Ue||($=null,Te(G,{matches:gt||Ie,...Jb(Ve),loaderData:bt,errors:Jt}))}async function at(j,G,Z,le,be,Ie,ke,Fe={}){ie();let we=iN(G,Z);if(me({navigation:we},{flushSync:Fe.flushSync===!0}),Ie){let Ue=await Re(le,G.pathname,j.signal);if(Ue.type==="aborted")return{shortCircuited:!0};if(Ue.type==="error"){if(Ue.partialMatches.length===0){let{matches:bt,route:Jt}=io(o);return{matches:bt,pendingActionResult:[Jt.id,{type:"error",error:Ue.error}]}}let gt=Gr(Ue.partialMatches).route.id;return{matches:Ue.partialMatches,pendingActionResult:[gt,{type:"error",error:Ue.error}]}}else if(Ue.matches)le=Ue.matches;else{let{notFoundMatches:gt,error:bt,route:Jt}=Le(G.pathname);return{matches:gt,pendingActionResult:[Jt.id,{type:"error",error:bt}]}}}let Pe,Ve=Lo(le,G);if(!Ve.route.action&&!Ve.route.lazy)Pe={type:"error",error:Jn(405,{method:j.method,pathname:G.pathname,routeId:Ve.route.id})};else{let Ue=Ya(i,s,j,le,Ve,ke?[]:r,be),gt=await Qe(j,Ue,be,null);if(Pe=gt[Ve.route.id],!Pe){for(let bt of le)if(gt[bt.route.id]){Pe=gt[bt.route.id];break}}if(j.signal.aborted)return{shortCircuited:!0}}if(oa(Pe)){let Ue;return Fe&&Fe.replace!=null?Ue=Fe.replace:Ue=Zb(Pe.response.headers.get("Location"),new URL(j.url),c)===T.location.pathname+T.location.search,await Oe(j,Pe,!0,{submission:Z,replace:Ue}),{shortCircuited:!0}}if(Wn(Pe)){let Ue=Gr(le,Ve.route.id);return(Fe&&Fe.replace)!==!0&&(_="PUSH"),{matches:le,pendingActionResult:[Ue.route.id,Pe,Ve.route.id]}}return{matches:le,pendingActionResult:[Ve.route.id,Pe]}}async function ft(j,G,Z,le,be,Ie,ke,Fe,we,Pe,Ve,Ue,gt){let bt=Ie||Lu(G,ke),Jt=ke||Fe||t0(bt),en=!U&&!Pe;if(be){if(en){let Wt=Dt(Ue);me({navigation:bt,...Wt!==void 0?{actionData:Wt}:{}},{flushSync:Ve})}let lt=await Re(Z,G.pathname,j.signal);if(lt.type==="aborted")return{shortCircuited:!0};if(lt.type==="error"){if(lt.partialMatches.length===0){let{matches:Kn,route:En}=io(o);return{matches:Kn,loaderData:{},errors:{[En.id]:lt.error}}}let Wt=Gr(lt.partialMatches).route.id;return{matches:lt.partialMatches,loaderData:{},errors:{[Wt]:lt.error}}}else if(lt.matches)Z=lt.matches;else{let{error:Wt,notFoundMatches:Kn,route:En}=Le(G.pathname);return{matches:Kn,loaderData:{},errors:{[En.id]:Wt}}}}let bn=u||o,{dsMatches:_t,revalidatingFetchers:jn}=Gb(j,le,i,s,e.history,T,Z,Jt,G,Pe?[]:r,Pe===!0,ne,z,De,O,de,bn,c,e.patchRoutesOnNavigation!=null,Ue,gt);if(D=++pe,!e.dataStrategy&&!_t.some(lt=>lt.shouldLoad)&&!_t.some(lt=>lt.route.middleware&<.route.middleware.length>0)&&jn.length===0){let lt=ae();return Te(G,{matches:Z,loaderData:{},errors:Ue&&Wn(Ue[1])?{[Ue[0]]:Ue[1].error}:null,...Jb(Ue),...lt?{fetchers:new Map(T.fetchers)}:{}},{flushSync:Ve}),{shortCircuited:!0}}if(en){let lt={};if(!be){lt.navigation=bt;let Wt=Dt(Ue);Wt!==void 0&&(lt.actionData=Wt)}jn.length>0&&(lt.fetchers=xt(jn)),me(lt,{flushSync:Ve})}jn.forEach(lt=>{Nt(lt.key),lt.controller&&se.set(lt.key,lt.controller)});let _n=()=>jn.forEach(lt=>Nt(lt.key));$&&$.signal.addEventListener("abort",_n);let{loaderResults:Lr,fetcherResults:Cn}=await Y(_t,jn,j,le);if(j.signal.aborted)return{shortCircuited:!0};$&&$.signal.removeEventListener("abort",_n),jn.forEach(lt=>se.delete(lt.key));let Zn=so(Lr);if(Zn)return await Oe(j,Zn.result,!0,{replace:we}),{shortCircuited:!0};if(Zn=so(Cn),Zn)return de.add(Zn.key),await Oe(j,Zn.result,!0,{replace:we}),{shortCircuited:!0};let{loaderData:_i,errors:Fr}=Xb(T,Z,Lr,Ue,jn,Cn);Pe&&T.errors&&(Fr={...T.errors,...Fr});let mr=ae(),_r=Ne(D),Mr=mr||_r||jn.length>0;return{matches:Z,loaderData:_i,errors:Fr,...Mr?{fetchers:new Map(T.fetchers)}:{}}}function Dt(j){if(j&&!Wn(j[1]))return{[j[0]]:j[1].data};if(T.actionData)return Object.keys(T.actionData).length===0?null:T.actionData}function xt(j){return j.forEach(G=>{let Z=T.fetchers.get(G.key),le=Ri(void 0,Z?Z.data:void 0);T.fetchers.set(G.key,le)}),new Map(T.fetchers)}async function Ut(j,G,Z,le){Nt(j);let be=(le&&le.flushSync)===!0,Ie=u||o,ke=Lc(T.location,T.matches,c,Z,G,le?.relative),Fe=Hr(Ie,ke,c),we=H(Fe,Ie,ke);if(we.active&&we.matches&&(Fe=we.matches),!Fe){ue(j,G,Jn(404,{pathname:ke}),{flushSync:be});return}let{path:Pe,submission:Ve,error:Ue}=Hb(!0,ke,le);if(Ue){ue(j,G,Ue,{flushSync:be});return}let gt=e.getContext?await e.getContext():new Pb,bt=(le&&le.preventScrollReset)===!0;if(Ve&&kn(Ve.formMethod)){await Kt(j,G,Pe,Fe,gt,we.active,be,bt,Ve,le&&le.unstable_defaultShouldRevalidate);return}O.set(j,{routeId:G,path:Pe}),await ot(j,G,Pe,Fe,gt,we.active,be,bt,Ve)}async function Kt(j,G,Z,le,be,Ie,ke,Fe,we,Pe){ie(),O.delete(j);let Ve=T.fetchers.get(j);ee(j,sN(we,Ve),{flushSync:ke});let Ue=new AbortController,gt=ja(e.history,Z,Ue.signal,we);if(Ie){let zt=await Re(le,new URL(gt.url).pathname,gt.signal,j);if(zt.type==="aborted")return;if(zt.type==="error"){ue(j,G,zt.error,{flushSync:ke});return}else if(zt.matches)le=zt.matches;else{ue(j,G,Jn(404,{pathname:Z}),{flushSync:ke});return}}let bt=Lo(le,Z);if(!bt.route.action&&!bt.route.lazy){let zt=Jn(405,{method:we.formMethod,pathname:Z,routeId:G});ue(j,G,zt,{flushSync:ke});return}se.set(j,Ue);let Jt=pe,en=Ya(i,s,gt,le,bt,r,be),bn=await Qe(gt,en,be,j),_t=bn[bt.route.id];if(!_t){for(let zt of en)if(bn[zt.route.id]){_t=bn[zt.route.id];break}}if(gt.signal.aborted){se.get(j)===Ue&&se.delete(j);return}if(De.has(j)){if(oa(_t)||Wn(_t)){ee(j,Cr(void 0));return}}else{if(oa(_t))if(se.delete(j),D>Jt){ee(j,Cr(void 0));return}else return de.add(j),ee(j,Ri(we)),Oe(gt,_t,!1,{fetcherSubmission:we,preventScrollReset:Fe});if(Wn(_t)){ue(j,G,_t.error);return}}let jn=T.navigation.location||T.location,_n=ja(e.history,jn,Ue.signal),Lr=u||o,Cn=T.navigation.state!=="idle"?Hr(Lr,T.navigation.location,c):T.matches;st(Cn,"Didn't find any matches after fetcher action");let Zn=++pe;Q.set(j,Zn);let _i=Ri(we,_t.data);T.fetchers.set(j,_i);let{dsMatches:Fr,revalidatingFetchers:mr}=Gb(_n,be,i,s,e.history,T,Cn,we,jn,r,!1,ne,z,De,O,de,Lr,c,e.patchRoutesOnNavigation!=null,[bt.route.id,_t],Pe);mr.filter(zt=>zt.key!==j).forEach(zt=>{let Ia=zt.key,Ci=T.fetchers.get(Ia),ro=Ri(void 0,Ci?Ci.data:void 0);T.fetchers.set(Ia,ro),Nt(Ia),zt.controller&&se.set(Ia,zt.controller)}),me({fetchers:new Map(T.fetchers)});let _r=()=>mr.forEach(zt=>Nt(zt.key));Ue.signal.addEventListener("abort",_r);let{loaderResults:Mr,fetcherResults:lt}=await Y(Fr,mr,_n,be);if(Ue.signal.aborted)return;if(Ue.signal.removeEventListener("abort",_r),Q.delete(j),se.delete(j),mr.forEach(zt=>se.delete(zt.key)),T.fetchers.has(j)){let zt=Cr(_t.data);T.fetchers.set(j,zt)}let Wt=so(Mr);if(Wt)return Oe(_n,Wt.result,!1,{preventScrollReset:Fe});if(Wt=so(lt),Wt)return de.add(Wt.key),Oe(_n,Wt.result,!1,{preventScrollReset:Fe});let{loaderData:Kn,errors:En}=Xb(T,Cn,Mr,void 0,mr,lt);Ne(Zn),T.navigation.state==="loading"&&Zn>D?(st(_,"Expected pending action"),$&&$.abort(),Te(T.navigation.location,{matches:Cn,loaderData:Kn,errors:En,fetchers:new Map(T.fetchers)})):(me({errors:En,loaderData:Qb(T.loaderData,Kn,Cn,En),fetchers:new Map(T.fetchers)}),ne=!1)}async function ot(j,G,Z,le,be,Ie,ke,Fe,we){let Pe=T.fetchers.get(j);ee(j,Ri(we,Pe?Pe.data:void 0),{flushSync:ke});let Ve=new AbortController,Ue=ja(e.history,Z,Ve.signal);if(Ie){let _t=await Re(le,new URL(Ue.url).pathname,Ue.signal,j);if(_t.type==="aborted")return;if(_t.type==="error"){ue(j,G,_t.error,{flushSync:ke});return}else if(_t.matches)le=_t.matches;else{ue(j,G,Jn(404,{pathname:Z}),{flushSync:ke});return}}let gt=Lo(le,Z);se.set(j,Ve);let bt=pe,Jt=Ya(i,s,Ue,le,gt,r,be),bn=(await Qe(Ue,Jt,be,j))[gt.route.id];if(se.get(j)===Ve&&se.delete(j),!Ue.signal.aborted){if(De.has(j)){ee(j,Cr(void 0));return}if(oa(bn))if(D>bt){ee(j,Cr(void 0));return}else{de.add(j),await Oe(Ue,bn,!1,{preventScrollReset:Fe});return}if(Wn(bn)){ue(j,G,bn.error);return}ee(j,Cr(bn.data))}}async function Oe(j,G,Z,{submission:le,fetcherSubmission:be,preventScrollReset:Ie,replace:ke}={}){Z||(L?.resolve(),L=null),G.response.headers.has("X-Remix-Revalidate")&&(ne=!0);let Fe=G.response.headers.get("Location");st(Fe,"Expected a Location header on the redirect Response"),Fe=Zb(Fe,new URL(j.url),c);let we=ps(T.location,Fe,{_isRedirect:!0});if(n){let Jt=!1;if(G.response.headers.has("X-Remix-Reload-Document"))Jt=!0;else if(Il(Fe)){const en=Fy(Fe,!0);Jt=en.origin!==t.location.origin||rr(en.pathname,c)==null}if(Jt){ke?t.location.replace(Fe):t.location.assign(Fe);return}}$=null;let Pe=ke===!0||G.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Ve,formAction:Ue,formEncType:gt}=T.navigation;!le&&!be&&Ve&&Ue&>&&(le=t0(T.navigation));let bt=le||be;if(FA.has(G.response.status)&&bt&&kn(bt.formMethod))await qe(Pe,we,{submission:{...bt,formAction:Fe},preventScrollReset:Ie||C,enableViewTransition:Z?I:void 0});else{let Jt=Lu(we,le);await qe(Pe,we,{overrideNavigation:Jt,fetcherSubmission:be,preventScrollReset:Ie||C,enableViewTransition:Z?I:void 0})}}async function Qe(j,G,Z,le){let be,Ie={};try{be=await WA(p,j,G,le,Z,!1)}catch(ke){return G.filter(Fe=>Fe.shouldLoad).forEach(Fe=>{Ie[Fe.route.id]={type:"error",error:ke}}),Ie}if(j.signal.aborted)return Ie;if(!kn(j.method))for(let ke of G){if(be[ke.route.id]?.type==="error")break;!be.hasOwnProperty(ke.route.id)&&!T.loaderData.hasOwnProperty(ke.route.id)&&(!T.errors||!T.errors.hasOwnProperty(ke.route.id))&&ke.shouldCallHandler()&&(be[ke.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${ke.route.id}`)})}for(let[ke,Fe]of Object.entries(be))if(tN(Fe)){let we=Fe.result;Ie[ke]={type:"redirect",response:ZA(we,j,ke,G,c)}}else Ie[ke]=await YA(Fe);return Ie}async function Y(j,G,Z,le){let be=Qe(Z,j,le,null),Ie=Promise.all(G.map(async we=>{if(we.matches&&we.match&&we.request&&we.controller){let Ve=(await Qe(we.request,we.matches,le,we.key))[we.match.route.id];return{[we.key]:Ve}}else return Promise.resolve({[we.key]:{type:"error",error:Jn(404,{pathname:we.path})}})})),ke=await be,Fe=(await Ie).reduce((we,Pe)=>Object.assign(we,Pe),{});return{loaderResults:ke,fetcherResults:Fe}}function ie(){ne=!0,O.forEach((j,G)=>{se.has(G)&&z.add(G),Nt(G)})}function ee(j,G,Z={}){T.fetchers.set(j,G),me({fetchers:new Map(T.fetchers)},{flushSync:(Z&&Z.flushSync)===!0})}function ue(j,G,Z,le={}){let be=Gr(T.matches,G);mt(j),me({errors:{[be.route.id]:Z},fetchers:new Map(T.fetchers)},{flushSync:(le&&le.flushSync)===!0})}function Be(j){return Ce.set(j,(Ce.get(j)||0)+1),De.has(j)&&De.delete(j),T.fetchers.get(j)||MA}function Ye(j,G){Nt(j,G?.reason),ee(j,Cr(null))}function mt(j){let G=T.fetchers.get(j);se.has(j)&&!(G&&G.state==="loading"&&Q.has(j))&&Nt(j),O.delete(j),Q.delete(j),de.delete(j),De.delete(j),z.delete(j),T.fetchers.delete(j)}function Ot(j){let G=(Ce.get(j)||0)-1;G<=0?(Ce.delete(j),De.add(j)):Ce.set(j,G),me({fetchers:new Map(T.fetchers)})}function Nt(j,G){let Z=se.get(j);Z&&(Z.abort(G),se.delete(j))}function Pt(j){for(let G of j){let Z=Be(G),le=Cr(Z.data);T.fetchers.set(G,le)}}function ae(){let j=[],G=!1;for(let Z of de){let le=T.fetchers.get(Z);st(le,`Expected fetcher: ${Z}`),le.state==="loading"&&(de.delete(Z),j.push(Z),G=!0)}return Pt(j),G}function Ne(j){let G=[];for(let[Z,le]of Q)if(le<j){let be=T.fetchers.get(Z);st(be,`Expected fetcher: ${Z}`),be.state==="loading"&&(Nt(Z),Q.delete(Z),G.push(Z))}return Pt(G),G.length>0}function ze(j,G){let Z=T.blockers.get(j)||Ii;return J.get(j)!==G&&J.set(j,G),Z}function Me(j){T.blockers.delete(j),J.delete(j)}function Ct(j,G){let Z=T.blockers.get(j)||Ii;st(Z.state==="unblocked"&&G.state==="blocked"||Z.state==="blocked"&&G.state==="blocked"||Z.state==="blocked"&&G.state==="proceeding"||Z.state==="blocked"&&G.state==="unblocked"||Z.state==="proceeding"&&G.state==="unblocked",`Invalid blocker state transition: ${Z.state} -> ${G.state}`);let le=new Map(T.blockers);le.set(j,G),me({blockers:le})}function Qt({currentLocation:j,nextLocation:G,historyAction:Z}){if(J.size===0)return;J.size>1&&Vt(!1,"A router only supports one blocker at a time");let le=Array.from(J.entries()),[be,Ie]=le[le.length-1],ke=T.blockers.get(be);if(!(ke&&ke.state==="proceeding")&&Ie({currentLocation:j,nextLocation:G,historyAction:Z}))return be}function Le(j){let G=Jn(404,{pathname:j}),Z=u||o,{matches:le,route:be}=io(Z);return{notFoundMatches:le,route:be,error:G}}function ht(j,G,Z){if(b=j,x=G,E=Z||null,!y&&T.navigation===Ou){y=!0;let le=Je(T.location,T.matches);le!=null&&me({restoreScrollPosition:le})}return()=>{b=null,x=null,E=null}}function Xe(j,G){return E&&E(j,G.map(le=>lA(le,T.loaderData)))||j.key}function It(j,G){if(b&&x){let Z=Xe(j,G);b[Z]=x()}}function Je(j,G){if(b){let Z=Xe(j,G),le=b[Z];if(typeof le=="number")return le}return null}function H(j,G,Z){if(e.patchRoutesOnNavigation)if(j){if(Object.keys(j[0].params).length>0)return{active:!0,matches:Wi(G,Z,c,!0)}}else return{active:!0,matches:Wi(G,Z,c,!0)||[]};return{active:!1,matches:null}}async function Re(j,G,Z,le){if(!e.patchRoutesOnNavigation)return{type:"success",matches:j};let be=j;for(;;){let Ie=u==null,ke=u||o,Fe=s;try{await e.patchRoutesOnNavigation({signal:Z,path:G,matches:be,fetcherKey:le,patch:(Ve,Ue)=>{Z.aborted||Wb(Ve,Ue,ke,Fe,i,!1)}})}catch(Ve){return{type:"error",error:Ve,partialMatches:be}}finally{Ie&&!Z.aborted&&(o=[...o])}if(Z.aborted)return{type:"aborted"};let we=Hr(ke,G,c),Pe=null;if(we){if(Object.keys(we[0].params).length===0)return{type:"success",matches:we};if(Pe=Wi(ke,G,c,!0),!(Pe&&be.length<Pe.length&&et(be,Pe.slice(0,be.length))))return{type:"success",matches:we}}if(Pe||(Pe=Wi(ke,G,c,!0)),!Pe||et(be,Pe))return{type:"success",matches:null};be=Pe}}function et(j,G){return j.length===G.length&&j.every((Z,le)=>Z.route.id===G[le].route.id)}function Ke(j){s={},u=fs(j,i,void 0,s)}function $t(j,G,Z=!1){let le=u==null;Wb(j,G,u||o,s,i,Z),le&&(o=[...o],me({}))}return N={get basename(){return c},get future(){return d},get state(){return T},get routes(){return o},get window(){return t},initialize:X,subscribe:ge,enableScrollRestoration:ht,navigate:Se,fetch:Ut,revalidate:oe,createHref:j=>e.history.createHref(j),encodeLocation:j=>e.history.encodeLocation(j),getFetcher:Be,resetFetcher:Ye,deleteFetcher:Ot,dispose:Ge,getBlocker:ze,deleteBlocker:Me,patchRoutes:$t,_internalFetchControllers:se,_internalSetRoutes:Ke,_internalSetStateDoNotUseOrYouWillBreakYourApp(j){me(j)}},e.unstable_instrumentations&&(N=_A(N,e.unstable_instrumentations.map(j=>j.router).filter(Boolean))),N}function BA(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Lc(e,t,n,r,a,i){let s,o;if(a){s=[];for(let c of t)if(s.push(c),c.route.id===a){o=c;break}}else s=t,o=t[t.length-1];let u=Dl(r||".",Rl(s),rr(e.pathname,n)||e.pathname,i==="path");if(r==null&&(u.search=e.search,u.hash=e.hash),(r==null||r===""||r===".")&&o){let c=Od(u.search);if(o.route.index&&!c)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!o.route.index&&c){let p=new URLSearchParams(u.search),d=p.getAll("index");p.delete("index"),d.filter(m=>m).forEach(m=>p.append("index",m));let f=p.toString();u.search=f?`?${f}`:""}}return n!=="/"&&(u.pathname=TA({basename:n,pathname:u.pathname})),Sr(u)}function Hb(e,t,n){if(!n||!BA(n))return{path:t};if(n.formMethod&&!aN(n.formMethod))return{path:t,error:Jn(405,{method:n.formMethod})};let r=()=>({path:t,error:Jn(400,{type:"invalid-body"})}),i=(n.formMethod||"get").toUpperCase(),s=Qy(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!kn(i))return r();let d=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((f,[m,b])=>`${f}${m}=${b}
|
|
3
|
-
`,""):String(n.body);return{path:t,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:d}}}else if(n.formEncType==="application/json"){if(!kn(i))return r();try{let d=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:d,text:void 0}}}catch{return r()}}}st(typeof FormData=="function","FormData is not available in this environment");let o,u;if(n.formData)o=Pc(n.formData),u=n.formData;else if(n.body instanceof FormData)o=Pc(n.body),u=n.body;else if(n.body instanceof URLSearchParams)o=n.body,u=Kb(o);else if(n.body==null)o=new URLSearchParams,u=new FormData;else try{o=new URLSearchParams(n.body),u=Kb(o)}catch{return r()}let c={formMethod:i,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(kn(c.formMethod))return{path:t,submission:c};let p=Jr(t);return e&&p.search&&Od(p.search)&&o.append("index",""),p.search=`?${o}`,{path:Sr(p),submission:c}}function Gb(e,t,n,r,a,i,s,o,u,c,p,d,f,m,b,E,x,y,S,v,w){let R=v?Wn(v[1])?v[1].error:v[1].data:void 0,N=a.createURL(i.location),T=a.createURL(u),_;if(p&&i.errors){let U=Object.keys(i.errors)[0];_=s.findIndex(ne=>ne.route.id===U)}else if(v&&Wn(v[1])){let U=v[0];_=s.findIndex(ne=>ne.route.id===U)-1}let L=v?v[1].statusCode:void 0,C=L&&L>=400,$={currentUrl:N,currentParams:i.matches[0]?.params||{},nextUrl:T,nextParams:s[0].params,...o,actionResult:R,actionStatus:L},I=Rs(s),P=s.map((U,ne)=>{let{route:z}=U,se=null;if(_!=null&&ne>_?se=!1:z.lazy?se=!0:Rd(z)?p?se=Fc(z,i.loaderData,i.errors):UA(i.loaderData,i.matches[ne],U)&&(se=!0):se=!1,se!==null)return Mc(n,r,e,I,U,c,t,se);let pe=!1;typeof w=="boolean"?pe=w:C?pe=!1:(d||N.pathname+N.search===T.pathname+T.search||N.search!==T.search||$A(i.matches[ne],U))&&(pe=!0);let D={...$,defaultShouldRevalidate:pe},Q=Ki(U,D);return Mc(n,r,e,I,U,c,t,Q,D,w)}),W=[];return b.forEach((U,ne)=>{if(p||!s.some(Ce=>Ce.route.id===U.routeId)||m.has(ne))return;let z=i.fetchers.get(ne),se=z&&z.state!=="idle"&&z.data===void 0,pe=Hr(x,U.path,y);if(!pe){if(S&&se)return;W.push({key:ne,routeId:U.routeId,path:U.path,matches:null,match:null,request:null,controller:null});return}if(E.has(ne))return;let D=Lo(pe,U.path),Q=new AbortController,de=ja(a,U.path,Q.signal),O=null;if(f.has(ne))f.delete(ne),O=Ya(n,r,de,pe,D,c,t);else if(se)d&&(O=Ya(n,r,de,pe,D,c,t));else{let Ce;typeof w=="boolean"?Ce=w:C?Ce=!1:Ce=d;let De={...$,defaultShouldRevalidate:Ce};Ki(D,De)&&(O=Ya(n,r,de,pe,D,c,t,De))}O&&W.push({key:ne,routeId:U.routeId,path:U.path,matches:O,match:D,request:de,controller:Q})}),{dsMatches:P,revalidatingFetchers:W}}function Rd(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function Fc(e,t,n){if(e.lazy)return!0;if(!Rd(e))return!1;let r=t!=null&&e.id in t,a=n!=null&&n[e.id]!==void 0;return!r&&a?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!a}function UA(e,t,n){let r=!t||n.route.id!==t.route.id,a=!e.hasOwnProperty(n.route.id);return r||a}function $A(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Ki(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function Wb(e,t,n,r,a,i){let s;if(e){let c=r[e];st(c,`No route found to patch children into: routeId = ${e}`),c.children||(c.children=[]),s=c.children}else s=n;let o=[],u=[];if(t.forEach(c=>{let p=s.find(d=>qy(c,d));p?u.push({existingRoute:p,newRoute:c}):o.push(c)}),o.length>0){let c=fs(o,a,[e||"_","patch",String(s?.length||"0")],r);s.push(...c)}if(i&&u.length>0)for(let c=0;c<u.length;c++){let{existingRoute:p,newRoute:d}=u[c],f=p,[m]=fs([d],a,[],{},!0);Object.assign(f,{element:m.element?m.element:f.element,errorElement:m.errorElement?m.errorElement:f.errorElement,hydrateFallbackElement:m.hydrateFallbackElement?m.hydrateFallbackElement:f.hydrateFallbackElement})}}function qy(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>t.children?.some(a=>qy(n,a))):!1}var Vb=new WeakMap,Yy=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let a=n[t.id];if(st(a,"No route found in manifest"),!a.lazy||typeof a.lazy!="object")return;let i=a.lazy[e];if(!i)return;let s=Vb.get(a);s||(s={},Vb.set(a,s));let o=s[e];if(o)return o;let u=(async()=>{let c=aA(e),d=a[e]!==void 0&&e!=="hasErrorBoundary";if(c)Vt(!c,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),s[e]=Promise.resolve();else if(d)Vt(!1,`Route "${a.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let f=await i();f!=null&&(Object.assign(a,{[e]:f}),Object.assign(a,r(a)))}typeof a.lazy=="object"&&(a.lazy[e]=void 0,Object.values(a.lazy).every(f=>f===void 0)&&(a.lazy=void 0))})();return s[e]=u,u},qb=new WeakMap;function zA(e,t,n,r,a){let i=n[e.id];if(st(i,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let p=qb.get(i);if(p)return{lazyRoutePromise:p,lazyHandlerPromise:p};let d=(async()=>{st(typeof e.lazy=="function","No lazy route function found");let f=await e.lazy(),m={};for(let b in f){let E=f[b];if(E===void 0)continue;let x=sA(b),S=i[b]!==void 0&&b!=="hasErrorBoundary";x?Vt(!x,"Route property "+b+" is not a supported property to be returned from a lazy route function. This property will be ignored."):S?Vt(!S,`Route "${i.id}" has a static property "${b}" defined but its lazy function is also returning a value for this property. The lazy route property "${b}" will be ignored.`):m[b]=E}Object.assign(i,m),Object.assign(i,{...r(i),lazy:void 0})})();return qb.set(i,d),d.catch(()=>{}),{lazyRoutePromise:d,lazyHandlerPromise:d}}let s=Object.keys(e.lazy),o=[],u;for(let p of s){if(a&&a.includes(p))continue;let d=Yy({key:p,route:e,manifest:n,mapRouteProperties:r});d&&(o.push(d),p===t&&(u=d))}let c=o.length>0?Promise.all(o).then(()=>{}):void 0;return c?.catch(()=>{}),u?.catch(()=>{}),{lazyRoutePromise:c,lazyHandlerPromise:u}}async function Yb(e){let t=e.matches.filter(a=>a.shouldLoad),n={};return(await Promise.all(t.map(a=>a.resolve()))).forEach((a,i)=>{n[t[i].route.id]=a}),n}async function HA(e){return e.matches.some(t=>t.route.middleware)?Zy(e,()=>Yb(e)):Yb(e)}function Zy(e,t){return GA(e,t,r=>{if(rN(r))throw r;return r},JA,n);function n(r,a,i){if(i)return Promise.resolve(Object.assign(i.value,{[a]:{type:"error",result:r}}));{let{matches:s}=e,o=Math.min(Math.max(s.findIndex(c=>c.route.id===a),0),Math.max(s.findIndex(c=>c.shouldCallHandler()),0)),u=Gr(s,s[o].route.id).route.id;return Promise.resolve({[u]:{type:"error",result:r}})}}}async function GA(e,t,n,r,a){let{matches:i,request:s,params:o,context:u,unstable_pattern:c}=e,p=i.flatMap(f=>f.route.middleware?f.route.middleware.map(m=>[f.route.id,m]):[]);return await Ky({request:s,params:o,context:u,unstable_pattern:c},p,t,n,r,a)}async function Ky(e,t,n,r,a,i,s=0){let{request:o}=e;if(o.signal.aborted)throw o.signal.reason??new Error(`Request aborted: ${o.method} ${o.url}`);let u=t[s];if(!u)return await n();let[c,p]=u,d,f=async()=>{if(d)throw new Error("You may only call `next()` once per middleware");try{return d={value:await Ky(e,t,n,r,a,i,s+1)},d.value}catch(m){return d={value:await i(m,c,d)},d.value}};try{let m=await p(e,f),b=m!=null?r(m):void 0;return a(b)?b:d?b??d.value:(d={value:await f()},d.value)}catch(m){return await i(m,c,d)}}function Xy(e,t,n,r,a){let i=Yy({key:"middleware",route:r.route,manifest:t,mapRouteProperties:e}),s=zA(r.route,kn(n.method)?"action":"loader",t,e,a);return{middleware:i,route:s.lazyRoutePromise,handler:s.lazyHandlerPromise}}function Mc(e,t,n,r,a,i,s,o,u=null,c){let p=!1,d=Xy(e,t,n,a,i);return{...a,_lazyPromises:d,shouldLoad:o,shouldRevalidateArgs:u,shouldCallHandler(f){return p=!0,u?typeof c=="boolean"?Ki(a,{...u,defaultShouldRevalidate:c}):typeof f=="boolean"?Ki(a,{...u,defaultShouldRevalidate:f}):Ki(a,u):o},resolve(f){let{lazy:m,loader:b,middleware:E}=a.route,x=p||o||f&&!kn(n.method)&&(m||b),y=E&&E.length>0&&!b&&!m;return x&&(kn(n.method)||!y)?VA({request:n,unstable_pattern:r,match:a,lazyHandlerPromise:d?.handler,lazyRoutePromise:d?.route,handlerOverride:f,scopedContext:s}):Promise.resolve({type:"data",result:void 0})}}}function Ya(e,t,n,r,a,i,s,o=null){return r.map(u=>u.route.id!==a.route.id?{...u,shouldLoad:!1,shouldRevalidateArgs:o,shouldCallHandler:()=>!1,_lazyPromises:Xy(e,t,n,u,i),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Mc(e,t,n,Rs(r),u,i,s,!0,o))}async function WA(e,t,n,r,a,i){n.some(c=>c._lazyPromises?.middleware)&&await Promise.all(n.map(c=>c._lazyPromises?.middleware));let s={request:t,unstable_pattern:Rs(n),params:n[0].params,context:a,matches:n},u=await e({...s,fetcherKey:r,runClientMiddleware:c=>{let p=s;return Zy(p,()=>c({...p,fetcherKey:r,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(n.flatMap(c=>[c._lazyPromises?.handler,c._lazyPromises?.route]))}catch{}return u}async function VA({request:e,unstable_pattern:t,match:n,lazyHandlerPromise:r,lazyRoutePromise:a,handlerOverride:i,scopedContext:s}){let o,u,c=kn(e.method),p=c?"action":"loader",d=f=>{let m,b=new Promise((y,S)=>m=S);u=()=>m(),e.signal.addEventListener("abort",u);let E=y=>typeof f!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${p}" [routeId: ${n.route.id}]`)):f({request:e,unstable_pattern:t,params:n.params,context:s},...y!==void 0?[y]:[]),x=(async()=>{try{return{type:"data",result:await(i?i(S=>E(S)):E())}}catch(y){return{type:"error",result:y}}})();return Promise.race([x,b])};try{let f=c?n.route.action:n.route.loader;if(r||a)if(f){let m,[b]=await Promise.all([d(f).catch(E=>{m=E}),r,a]);if(m!==void 0)throw m;o=b}else{await r;let m=c?n.route.action:n.route.loader;if(m)[o]=await Promise.all([d(m),a]);else if(p==="action"){let b=new URL(e.url),E=b.pathname+b.search;throw Jn(405,{method:e.method,pathname:E,routeId:n.route.id})}else return{type:"data",result:void 0}}else if(f)o=await d(f);else{let m=new URL(e.url),b=m.pathname+m.search;throw Jn(404,{pathname:b})}}catch(f){return{type:"error",result:f}}finally{u&&e.signal.removeEventListener("abort",u)}return o}async function qA(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function YA(e){let{result:t,type:n}=e;if(Dd(t)){let r;try{r=await qA(t)}catch(a){return{type:"error",error:a}}return n==="error"?{type:"error",error:new Is(t.status,t.statusText,r),statusCode:t.status,headers:t.headers}:{type:"data",data:r,statusCode:t.status,headers:t.headers}}return n==="error"?e0(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:QA(t),statusCode:ms(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:ms(t)?t.status:void 0}:e0(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function ZA(e,t,n,r,a){let i=e.headers.get("Location");if(st(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!Il(i)){let s=r.slice(0,r.findIndex(o=>o.route.id===n)+1);i=Lc(new URL(t.url),s,a,i),e.headers.set("Location",i)}return e}function Zb(e,t,n){if(Il(e)){let r=e,a=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=rr(a.pathname,n)!=null;if(a.origin===t.origin&&i)return a.pathname+a.search+a.hash}return e}function ja(e,t,n,r){let a=e.createURL(Qy(t)).toString(),i={signal:n};if(r&&kn(r.formMethod)){let{formMethod:s,formEncType:o}=r;i.method=s.toUpperCase(),o==="application/json"?(i.headers=new Headers({"Content-Type":o}),i.body=JSON.stringify(r.json)):o==="text/plain"?i.body=r.text:o==="application/x-www-form-urlencoded"&&r.formData?i.body=Pc(r.formData):i.body=r.formData}return new Request(a,i)}function Pc(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Kb(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function KA(e,t,n,r=!1,a=!1){let i={},s=null,o,u=!1,c={},p=n&&Wn(n[1])?n[1].error:void 0;return e.forEach(d=>{if(!(d.route.id in t))return;let f=d.route.id,m=t[f];if(st(!oa(m),"Cannot handle redirect results in processLoaderData"),Wn(m)){let b=m.error;if(p!==void 0&&(b=p,p=void 0),s=s||{},a)s[f]=b;else{let E=Gr(e,f);s[E.route.id]==null&&(s[E.route.id]=b)}r||(i[f]=Vy),u||(u=!0,o=ms(m.error)?m.error.status:500),m.headers&&(c[f]=m.headers)}else i[f]=m.data,m.statusCode&&m.statusCode!==200&&!u&&(o=m.statusCode),m.headers&&(c[f]=m.headers)}),p!==void 0&&n&&(s={[n[0]]:p},n[2]&&(i[n[2]]=void 0)),{loaderData:i,errors:s,statusCode:o||200,loaderHeaders:c}}function Xb(e,t,n,r,a,i){let{loaderData:s,errors:o}=KA(t,n,r);return a.filter(u=>!u.matches||u.matches.some(c=>c.shouldLoad)).forEach(u=>{let{key:c,match:p,controller:d}=u;if(d&&d.signal.aborted)return;let f=i[c];if(st(f,"Did not find corresponding fetcher result"),Wn(f)){let m=Gr(e.matches,p?.route.id);o&&o[m.route.id]||(o={...o,[m.route.id]:f.error}),e.fetchers.delete(c)}else if(oa(f))st(!1,"Unhandled fetcher revalidation redirect");else{let m=Cr(f.data);e.fetchers.set(c,m)}}),{loaderData:s,errors:o}}function Qb(e,t,n,r){let a=Object.entries(t).filter(([,i])=>i!==Vy).reduce((i,[s,o])=>(i[s]=o,i),{});for(let i of n){let s=i.route.id;if(!t.hasOwnProperty(s)&&e.hasOwnProperty(s)&&i.route.loader&&(a[s]=e[s]),r&&r.hasOwnProperty(s))break}return a}function Jb(e){return e?Wn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Gr(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function io(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Jn(e,{pathname:t,routeId:n,method:r,type:a,message:i}={}){let s="Unknown Server Error",o="Unknown @remix-run/router error";return e===400?(s="Bad Request",r&&t&&n?o=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:a==="invalid-body"&&(o="Unable to encode submission body")):e===403?(s="Forbidden",o=`Route "${n}" does not match URL "${t}"`):e===404?(s="Not Found",o=`No route matches URL "${t}"`):e===405&&(s="Method Not Allowed",r&&t&&n?o=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(o=`Invalid request method "${r.toUpperCase()}"`)),new Is(e||500,s,new Error(o),!0)}function so(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,a]=t[n];if(oa(a))return{key:r,result:a}}}function Qy(e){let t=typeof e=="string"?Jr(e):e;return Sr({...t,hash:""})}function XA(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function QA(e){return new Is(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function JA(e){return e!=null&&typeof e=="object"&&Object.entries(e).every(([t,n])=>typeof t=="string"&&eN(n))}function eN(e){return e!=null&&typeof e=="object"&&"type"in e&&"result"in e&&(e.type==="data"||e.type==="error")}function tN(e){return Dd(e.result)&&Gy.has(e.result.status)}function Wn(e){return e.type==="error"}function oa(e){return(e&&e.type)==="redirect"}function e0(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Dd(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function nN(e){return Gy.has(e)}function rN(e){return Dd(e)&&nN(e.status)&&e.headers.has("Location")}function aN(e){return LA.has(e.toUpperCase())}function kn(e){return DA.has(e.toUpperCase())}function Od(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Lo(e,t){let n=typeof t=="string"?Jr(t).search:t.search;if(e[e.length-1].route.index&&Od(n||""))return e[e.length-1];let r=By(e);return r[r.length-1]}function t0(e){let{formMethod:t,formAction:n,formEncType:r,text:a,formData:i,json:s}=e;if(!(!t||!n||!r)){if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:a};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function Lu(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function iN(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Ri(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function sN(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Cr(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function oN(e,t){try{let n=e.sessionStorage.getItem(Wy);if(n){let r=JSON.parse(n);for(let[a,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(a,new Set(i||[]))}}catch{}}function lN(e,t){if(t.size>0){let n={};for(let[r,a]of t)n[r]=[...a];try{e.sessionStorage.setItem(Wy,JSON.stringify(n))}catch(r){Vt(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function n0(){let e,t,n=new Promise((r,a)=>{e=async i=>{r(i);try{await n}catch{}},t=async i=>{a(i);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var ba=g.createContext(null);ba.displayName="DataRouter";var Ds=g.createContext(null);Ds.displayName="DataRouterState";var Jy=g.createContext(!1);function uN(){return g.useContext(Jy)}var Ld=g.createContext({isTransitioning:!1});Ld.displayName="ViewTransition";var e1=g.createContext(new Map);e1.displayName="Fetchers";var cN=g.createContext(null);cN.displayName="Await";var Yn=g.createContext(null);Yn.displayName="Navigation";var Ol=g.createContext(null);Ol.displayName="Location";var cr=g.createContext({outlet:null,matches:[],isDataRoute:!1});cr.displayName="Route";var Fd=g.createContext(null);Fd.displayName="RouteError";var t1="REACT_ROUTER_ERROR",dN="REDIRECT",pN="ROUTE_ERROR_RESPONSE";function fN(e){if(e.startsWith(`${t1}:${dN}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function mN(e){if(e.startsWith(`${t1}:${pN}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Is(t.status,t.statusText,t.data)}catch{}}function hN(e,{relative:t}={}){st(ci(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=g.useContext(Yn),{hash:a,pathname:i,search:s}=Os(e,{relative:t}),o=i;return n!=="/"&&(o=i==="/"?n:Tr([n,i])),r.createHref({pathname:o,search:s,hash:a})}function ci(){return g.useContext(Ol)!=null}function ar(){return st(ci(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(Ol).location}var n1="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function r1(e){g.useContext(Yn).static||g.useLayoutEffect(e)}function Ll(){let{isDataRoute:e}=g.useContext(cr);return e?IN():gN()}function gN(){st(ci(),"useNavigate() may be used only in the context of a <Router> component.");let e=g.useContext(ba),{basename:t,navigator:n}=g.useContext(Yn),{matches:r}=g.useContext(cr),{pathname:a}=ar(),i=JSON.stringify(Rl(r)),s=g.useRef(!1);return r1(()=>{s.current=!0}),g.useCallback((u,c={})=>{if(Vt(s.current,n1),!s.current)return;if(typeof u=="number"){n.go(u);return}let p=Dl(u,JSON.parse(i),a,c.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Tr([t,p.pathname])),(c.replace?n.replace:n.push)(p,c.state,c)},[t,n,i,a,e])}var bN=g.createContext(null);function EN(e){let t=g.useContext(cr).outlet;return g.useMemo(()=>t&&g.createElement(bN.Provider,{value:e},t),[t,e])}function Os(e,{relative:t}={}){let{matches:n}=g.useContext(cr),{pathname:r}=ar(),a=JSON.stringify(Rl(n));return g.useMemo(()=>Dl(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function xN(e,t,n,r,a){st(ci(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=g.useContext(Yn),{matches:s}=g.useContext(cr),o=s[s.length-1],u=o?o.params:{},c=o?o.pathname:"/",p=o?o.pathnameBase:"/",d=o&&o.route;{let S=d&&d.path||"";i1(c,!d||S.endsWith("*")||S.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${S}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
4
|
-
|
|
5
|
-
Please change the parent <Route path="${S}"> to <Route path="${S==="/"?"*":`${S}/*`}">.`)}let f=ar(),m;m=f;let b=m.pathname||"/",E=b;if(p!=="/"){let S=p.replace(/^\//,"").split("/");E="/"+b.replace(/^\//,"").split("/").slice(S.length).join("/")}let x=Hr(e,{pathname:E});return Vt(d||x!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),Vt(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${m.pathname}${m.search}${m.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),wN(x&&x.map(S=>Object.assign({},S,{params:Object.assign({},u,S.params),pathname:Tr([p,i.encodeLocation?i.encodeLocation(S.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?p:Tr([p,i.encodeLocation?i.encodeLocation(S.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:S.pathnameBase])})),s,n,r,a)}function yN(){let e=kN(),t=ms(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:i},"ErrorBoundary")," or"," ",g.createElement("code",{style:i},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),n?g.createElement("pre",{style:a},n):null,s)}var TN=g.createElement(yN,null),a1=class extends g.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=mN(e.digest);n&&(e=n)}let t=e!==void 0?g.createElement(cr.Provider,{value:this.props.routeContext},g.createElement(Fd.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?g.createElement(SN,{error:e},t):t}};a1.contextType=Jy;var Fu=new WeakMap;function SN({children:e,error:t}){let{basename:n}=g.useContext(Yn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=fN(t.digest);if(r){let a=Fu.get(t);if(a)throw a;let i=$y(r.location,n);if(Uy&&!Fu.get(t))if(i.isExternal||r.reloadDocument)window.location.href=i.absoluteURL||i.to;else{const s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:r.replace}));throw Fu.set(t,s),s}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function vN({routeContext:e,match:t,children:n}){let r=g.useContext(ba);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),g.createElement(cr.Provider,{value:e},n)}function wN(e,t=[],n=null,r=null,a=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,s=n?.errors;if(s!=null){let p=i.findIndex(d=>d.route.id&&s?.[d.route.id]!==void 0);st(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),i=i.slice(0,Math.min(i.length,p+1))}let o=!1,u=-1;if(n)for(let p=0;p<i.length;p++){let d=i[p];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=p),d.route.id){let{loaderData:f,errors:m}=n,b=d.route.loader&&!f.hasOwnProperty(d.route.id)&&(!m||m[d.route.id]===void 0);if(d.route.lazy||b){o=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}let c=n&&r?(p,d)=>{r(p,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:Rs(n.matches),errorInfo:d})}:void 0;return i.reduceRight((p,d,f)=>{let m,b=!1,E=null,x=null;n&&(m=s&&d.route.id?s[d.route.id]:void 0,E=d.route.errorElement||TN,o&&(u<0&&f===0?(i1("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,x=null):u===f&&(b=!0,x=d.route.hydrateFallbackElement||null)));let y=t.concat(i.slice(0,f+1)),S=()=>{let v;return m?v=E:b?v=x:d.route.Component?v=g.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=p,g.createElement(vN,{match:d,routeContext:{outlet:p,matches:y,isDataRoute:n!=null},children:v})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?g.createElement(a1,{location:n.location,revalidation:n.revalidation,component:E,error:m,children:S(),routeContext:{outlet:null,matches:y,isDataRoute:!0},onError:c}):S()},null)}function Md(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function AN(e){let t=g.useContext(ba);return st(t,Md(e)),t}function NN(e){let t=g.useContext(Ds);return st(t,Md(e)),t}function _N(e){let t=g.useContext(cr);return st(t,Md(e)),t}function Pd(e){let t=_N(e),n=t.matches[t.matches.length-1];return st(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function CN(){return Pd("useRouteId")}function kN(){let e=g.useContext(Fd),t=NN("useRouteError"),n=Pd("useRouteError");return e!==void 0?e:t.errors?.[n]}function IN(){let{router:e}=AN("useNavigate"),t=Pd("useNavigate"),n=g.useRef(!1);return r1(()=>{n.current=!0}),g.useCallback(async(a,i={})=>{Vt(n.current,n1),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var r0={};function i1(e,t,n){!t&&!r0[e]&&(r0[e]=!0,Vt(!1,n))}var a0={};function i0(e,t){!e&&!a0[t]&&(a0[t]=!0,console.warn(t))}var RN="useOptimistic",s0=Yw[RN],DN=()=>{};function ON(e){return s0?s0(e):[e,DN]}function LN(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&Vt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:g.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&Vt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:g.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&Vt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:g.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var FN=["HydrateFallback","hydrateFallbackElement"],MN=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",t(n))}})}};function PN({router:e,flushSync:t,onError:n,unstable_useTransitions:r}){r=uN()||r;let[i,s]=g.useState(e.state),[o,u]=ON(i),[c,p]=g.useState(),[d,f]=g.useState({isTransitioning:!1}),[m,b]=g.useState(),[E,x]=g.useState(),[y,S]=g.useState(),v=g.useRef(new Map),w=g.useCallback((_,{deletedFetchers:L,newErrors:C,flushSync:$,viewTransitionOpts:I})=>{C&&n&&Object.values(C).forEach(W=>n(W,{location:_.location,params:_.matches[0]?.params??{},unstable_pattern:Rs(_.matches)})),_.fetchers.forEach((W,U)=>{W.data!==void 0&&v.current.set(U,W.data)}),L.forEach(W=>v.current.delete(W)),i0($===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let P=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(i0(I==null||P,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!I||!P){t&&$?t(()=>s(_)):r===!1?s(_):g.startTransition(()=>{r===!0&&u(W=>o0(W,_)),s(_)});return}if(t&&$){t(()=>{E&&(m?.resolve(),E.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:I.currentLocation,nextLocation:I.nextLocation})});let W=e.window.document.startViewTransition(()=>{t(()=>s(_))});W.finished.finally(()=>{t(()=>{b(void 0),x(void 0),p(void 0),f({isTransitioning:!1})})}),t(()=>x(W));return}E?(m?.resolve(),E.skipTransition(),S({state:_,currentLocation:I.currentLocation,nextLocation:I.nextLocation})):(p(_),f({isTransitioning:!0,flushSync:!1,currentLocation:I.currentLocation,nextLocation:I.nextLocation}))},[e.window,t,E,m,r,u,n]);g.useLayoutEffect(()=>e.subscribe(w),[e,w]),g.useEffect(()=>{d.isTransitioning&&!d.flushSync&&b(new MN)},[d]),g.useEffect(()=>{if(m&&c&&e.window){let _=c,L=m.promise,C=e.window.document.startViewTransition(async()=>{r===!1?s(_):g.startTransition(()=>{r===!0&&u($=>o0($,_)),s(_)}),await L});C.finished.finally(()=>{b(void 0),x(void 0),p(void 0),f({isTransitioning:!1})}),x(C)}},[c,m,e.window,r,u]),g.useEffect(()=>{m&&c&&o.location.key===c.location.key&&m.resolve()},[m,E,o.location,c]),g.useEffect(()=>{!d.isTransitioning&&y&&(p(y.state),f({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),S(void 0))},[d.isTransitioning,y]);let R=g.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:_=>e.navigate(_),push:(_,L,C)=>e.navigate(_,{state:L,preventScrollReset:C?.preventScrollReset}),replace:(_,L,C)=>e.navigate(_,{replace:!0,state:L,preventScrollReset:C?.preventScrollReset})}),[e]),N=e.basename||"/",T=g.useMemo(()=>({router:e,navigator:R,static:!1,basename:N,onError:n}),[e,R,N,n]);return g.createElement(g.Fragment,null,g.createElement(ba.Provider,{value:T},g.createElement(Ds.Provider,{value:o},g.createElement(e1.Provider,{value:v.current},g.createElement(Ld.Provider,{value:d},g.createElement($N,{basename:N,location:o.location,navigationType:o.historyAction,navigator:R,unstable_useTransitions:r},g.createElement(jN,{routes:e.routes,future:e.future,state:o,onError:n})))))),null)}function o0(e,t){return{...e,navigation:t.navigation.state!=="idle"?t.navigation:e.navigation,revalidation:t.revalidation!=="idle"?t.revalidation:e.revalidation,actionData:t.navigation.state!=="submitting"?t.actionData:e.actionData,fetchers:t.fetchers}}var jN=g.memo(BN);function BN({routes:e,future:t,state:n,onError:r}){return xN(e,void 0,n,r,t)}function l0({to:e,replace:t,state:n,relative:r}){st(ci(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=g.useContext(Yn);Vt(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=g.useContext(cr),{pathname:s}=ar(),o=Ll(),u=Dl(e,Rl(i),s,r==="path"),c=JSON.stringify(u);return g.useEffect(()=>{o(JSON.parse(c),{replace:t,state:n,relative:r})},[o,c,r,t,n]),null}function UN(e){return EN(e.context)}function $N({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1,unstable_useTransitions:s}){st(!ci(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),u=g.useMemo(()=>({basename:o,navigator:a,static:i,unstable_useTransitions:s,future:{}}),[o,a,i,s]);typeof n=="string"&&(n=Jr(n));let{pathname:c="/",search:p="",hash:d="",state:f=null,key:m="default"}=n,b=g.useMemo(()=>{let E=rr(c,o);return E==null?null:{location:{pathname:E,search:p,hash:d,state:f,key:m},navigationType:r}},[o,c,p,d,f,m,r]);return Vt(b!=null,`<Router basename="${o}"> is not able to match the URL "${c}${p}${d}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:g.createElement(Yn.Provider,{value:u},g.createElement(Ol.Provider,{children:t,value:b}))}var Fo="get",Mo="application/x-www-form-urlencoded";function Fl(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function zN(e){return Fl(e)&&e.tagName.toLowerCase()==="button"}function HN(e){return Fl(e)&&e.tagName.toLowerCase()==="form"}function GN(e){return Fl(e)&&e.tagName.toLowerCase()==="input"}function WN(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function VN(e,t){return e.button===0&&(!t||t==="_self")&&!WN(e)}function jc(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(a=>[n,a]):[[n,r]])},[]))}function qN(e,t){let n=jc(e);return t&&t.forEach((r,a)=>{n.has(a)||t.getAll(a).forEach(i=>{n.append(a,i)})}),n}var oo=null;function YN(){if(oo===null)try{new FormData(document.createElement("form"),0),oo=!1}catch{oo=!0}return oo}var ZN=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Mu(e){return e!=null&&!ZN.has(e)?(Vt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Mo}"`),null):e}function KN(e,t){let n,r,a,i,s;if(HN(e)){let o=e.getAttribute("action");r=o?rr(o,t):null,n=e.getAttribute("method")||Fo,a=Mu(e.getAttribute("enctype"))||Mo,i=new FormData(e)}else if(zN(e)||GN(e)&&(e.type==="submit"||e.type==="image")){let o=e.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=e.getAttribute("formaction")||o.getAttribute("action");if(r=u?rr(u,t):null,n=e.getAttribute("formmethod")||o.getAttribute("method")||Fo,a=Mu(e.getAttribute("formenctype"))||Mu(o.getAttribute("enctype"))||Mo,i=new FormData(o,e),!YN()){let{name:c,type:p,value:d}=e;if(p==="image"){let f=c?`${c}.`:"";i.append(`${f}x`,"0"),i.append(`${f}y`,"0")}else c&&i.append(c,d)}}else{if(Fl(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Fo,r=null,a=Mo,s=e}return i&&a==="text/plain"&&(s=i,i=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:i,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function jd(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function XN(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&rr(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function QN(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function JN(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function e_(e,t,n){let r=await Promise.all(e.map(async a=>{let i=t.routes[a.route.id];if(i){let s=await QN(i,n);return s.links?s.links():[]}return[]}));return a_(r.flat(1).filter(JN).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function u0(e,t,n,r,a,i){let s=(u,c)=>n[c]?u.route.id!==n[c].route.id:!0,o=(u,c)=>n[c].pathname!==u.pathname||n[c].route.path?.endsWith("*")&&n[c].params["*"]!==u.params["*"];return i==="assets"?t.filter((u,c)=>s(u,c)||o(u,c)):i==="data"?t.filter((u,c)=>{let p=r.routes[u.route.id];if(!p||!p.hasLoader)return!1;if(s(u,c)||o(u,c))return!0;if(u.route.shouldRevalidate){let d=u.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:u.params,defaultShouldRevalidate:!0});if(typeof d=="boolean")return d}return!0}):[]}function t_(e,t,{includeHydrateFallback:n}={}){return n_(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let i=[a.module];return a.clientActionModule&&(i=i.concat(a.clientActionModule)),a.clientLoaderModule&&(i=i.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(i=i.concat(a.hydrateFallbackModule)),a.imports&&(i=i.concat(a.imports)),i}).flat(1))}function n_(e){return[...new Set(e)]}function r_(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function a_(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let i=JSON.stringify(r_(a));return n.has(i)||(n.add(i),r.push({key:i,link:a})),r},[])}function s1(){let e=g.useContext(ba);return jd(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function i_(){let e=g.useContext(Ds);return jd(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Bd=g.createContext(void 0);Bd.displayName="FrameworkContext";function o1(){let e=g.useContext(Bd);return jd(e,"You must render this element inside a <HydratedRouter> element"),e}function s_(e,t){let n=g.useContext(Bd),[r,a]=g.useState(!1),[i,s]=g.useState(!1),{onFocus:o,onBlur:u,onMouseEnter:c,onMouseLeave:p,onTouchStart:d}=t,f=g.useRef(null);g.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let E=y=>{y.forEach(S=>{s(S.isIntersecting)})},x=new IntersectionObserver(E,{threshold:.5});return f.current&&x.observe(f.current),()=>{x.disconnect()}}},[e]),g.useEffect(()=>{if(r){let E=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(E)}}},[r]);let m=()=>{a(!0)},b=()=>{a(!1),s(!1)};return n?e!=="intent"?[i,f,{}]:[i,f,{onFocus:Di(o,m),onBlur:Di(u,b),onMouseEnter:Di(c,m),onMouseLeave:Di(p,b),onTouchStart:Di(d,m)}]:[!1,f,{}]}function Di(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function o_({page:e,...t}){let{router:n}=s1(),r=g.useMemo(()=>Hr(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?g.createElement(u_,{page:e,matches:r,...t}):null}function l_(e){let{manifest:t,routeModules:n}=o1(),[r,a]=g.useState([]);return g.useEffect(()=>{let i=!1;return e_(e,t,n).then(s=>{i||a(s)}),()=>{i=!0}},[e,t,n]),r}function u_({page:e,matches:t,...n}){let r=ar(),{manifest:a,routeModules:i}=o1(),{basename:s}=s1(),{loaderData:o,matches:u}=i_(),c=g.useMemo(()=>u0(e,t,u,a,r,"data"),[e,t,u,a,r]),p=g.useMemo(()=>u0(e,t,u,a,r,"assets"),[e,t,u,a,r]),d=g.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let b=new Set,E=!1;if(t.forEach(y=>{let S=a.routes[y.route.id];!S||!S.hasLoader||(!c.some(v=>v.route.id===y.route.id)&&y.route.id in o&&i[y.route.id]?.shouldRevalidate||S.hasClientLoader?E=!0:b.add(y.route.id))}),b.size===0)return[];let x=XN(e,s,"data");return E&&b.size>0&&x.searchParams.set("_routes",t.filter(y=>b.has(y.route.id)).map(y=>y.route.id).join(",")),[x.pathname+x.search]},[s,o,r,a,c,t,e,i]),f=g.useMemo(()=>t_(p,a),[p,a]),m=l_(p);return g.createElement(g.Fragment,null,d.map(b=>g.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...n})),f.map(b=>g.createElement("link",{key:b,rel:"modulepreload",href:b,...n})),m.map(({key:b,link:E})=>g.createElement("link",{key:b,nonce:n.nonce,...E})))}function c_(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var d_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{d_&&(window.__reactRouterVersion="7.11.0")}catch{}function p_(e,t){return jA({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:eA({window:t?.window}),hydrationData:f_(),routes:e,mapRouteProperties:LN,hydrationRouteProperties:FN,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}function f_(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:m_(e.errors)}),e}function m_(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,a]of t)if(a&&a.__type==="RouteErrorResponse")n[r]=new Is(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let i=window[a.__subType];if(typeof i=="function")try{let s=new i(a.message);s.stack="",n[r]=s}catch{}}if(n[r]==null){let i=new Error(a.message);i.stack="",n[r]=i}}else n[r]=a;return n}var l1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,u1=g.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:i,replace:s,state:o,target:u,to:c,preventScrollReset:p,viewTransition:d,unstable_defaultShouldRevalidate:f,...m},b){let{basename:E,unstable_useTransitions:x}=g.useContext(Yn),y=typeof c=="string"&&l1.test(c),S=$y(c,E);c=S.to;let v=hN(c,{relative:a}),[w,R,N]=s_(r,m),T=b_(c,{replace:s,state:o,target:u,preventScrollReset:p,relative:a,viewTransition:d,unstable_defaultShouldRevalidate:f,unstable_useTransitions:x});function _(C){t&&t(C),C.defaultPrevented||T(C)}let L=g.createElement("a",{...m,...N,href:S.absoluteURL||v,onClick:S.isExternal||i?t:_,ref:c_(b,R),target:u,"data-discover":!y&&n==="render"?"true":void 0});return w&&!y?g.createElement(g.Fragment,null,L,g.createElement(o_,{page:v})):L});u1.displayName="Link";var c1=g.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:i,to:s,viewTransition:o,children:u,...c},p){let d=Os(s,{relative:c.relative}),f=ar(),m=g.useContext(Ds),{navigator:b,basename:E}=g.useContext(Yn),x=m!=null&&v_(d)&&o===!0,y=b.encodeLocation?b.encodeLocation(d).pathname:d.pathname,S=f.pathname,v=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;n||(S=S.toLowerCase(),v=v?v.toLowerCase():null,y=y.toLowerCase()),v&&E&&(v=rr(v,E)||v);const w=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let R=S===y||!a&&S.startsWith(y)&&S.charAt(w)==="/",N=v!=null&&(v===y||!a&&v.startsWith(y)&&v.charAt(y.length)==="/"),T={isActive:R,isPending:N,isTransitioning:x},_=R?t:void 0,L;typeof r=="function"?L=r(T):L=[r,R?"active":null,N?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let C=typeof i=="function"?i(T):i;return g.createElement(u1,{...c,"aria-current":_,className:L,ref:p,style:C,to:s,viewTransition:o},typeof u=="function"?u(T):u)});c1.displayName="NavLink";var h_=g.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:s=Fo,action:o,onSubmit:u,relative:c,preventScrollReset:p,viewTransition:d,unstable_defaultShouldRevalidate:f,...m},b)=>{let{unstable_useTransitions:E}=g.useContext(Yn),x=T_(),y=S_(o,{relative:c}),S=s.toLowerCase()==="get"?"get":"post",v=typeof o=="string"&&l1.test(o),w=R=>{if(u&&u(R),R.defaultPrevented)return;R.preventDefault();let N=R.nativeEvent.submitter,T=N?.getAttribute("formmethod")||s,_=()=>x(N||R.currentTarget,{fetcherKey:t,method:T,navigate:n,replace:a,state:i,relative:c,preventScrollReset:p,viewTransition:d,unstable_defaultShouldRevalidate:f});E&&n!==!1?g.startTransition(()=>_()):_()};return g.createElement("form",{ref:b,method:S,action:y,onSubmit:r?u:w,...m,"data-discover":!v&&e==="render"?"true":void 0})});h_.displayName="Form";function g_(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function d1(e){let t=g.useContext(ba);return st(t,g_(e)),t}function b_(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:i,viewTransition:s,unstable_defaultShouldRevalidate:o,unstable_useTransitions:u}={}){let c=Ll(),p=ar(),d=Os(e,{relative:i});return g.useCallback(f=>{if(VN(f,t)){f.preventDefault();let m=n!==void 0?n:Sr(p)===Sr(d),b=()=>c(e,{replace:m,state:r,preventScrollReset:a,relative:i,viewTransition:s,unstable_defaultShouldRevalidate:o});u?g.startTransition(()=>b()):b()}},[p,c,d,n,r,t,e,a,i,s,o,u])}function E_(e){Vt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=g.useRef(jc(e)),n=g.useRef(!1),r=ar(),a=g.useMemo(()=>qN(r.search,n.current?null:t.current),[r.search]),i=Ll(),s=g.useCallback((o,u)=>{const c=jc(typeof o=="function"?o(new URLSearchParams(a)):o);n.current=!0,i("?"+c,u)},[i,a]);return[a,s]}var x_=0,y_=()=>`__${String(++x_)}__`;function T_(){let{router:e}=d1("useSubmit"),{basename:t}=g.useContext(Yn),n=CN(),r=e.fetch,a=e.navigate;return g.useCallback(async(i,s={})=>{let{action:o,method:u,encType:c,formData:p,body:d}=KN(i,t);if(s.navigate===!1){let f=s.fetcherKey||y_();await r(f,n,s.action||o,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:p,body:d,formMethod:s.method||u,formEncType:s.encType||c,flushSync:s.flushSync})}else await a(s.action||o,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:p,body:d,formMethod:s.method||u,formEncType:s.encType||c,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[r,a,t,n])}function S_(e,{relative:t}={}){let{basename:n}=g.useContext(Yn),r=g.useContext(cr);st(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...Os(e||".",{relative:t})},s=ar();if(e==null){i.search=s.search;let o=new URLSearchParams(i.search),u=o.getAll("index");if(u.some(p=>p==="")){o.delete("index"),u.filter(d=>d).forEach(d=>o.append("index",d));let p=o.toString();i.search=p?`?${p}`:""}}return(!e||e===".")&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:Tr([n,i.pathname])),Sr(i)}function v_(e,{relative:t}={}){let n=g.useContext(Ld);st(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=d1("useViewTransitionState"),a=Os(e,{relative:t});if(!n.isTransitioning)return!1;let i=rr(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=rr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return qo(a.pathname,s)!=null||qo(a.pathname,i)!=null}function ct(){return ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ct.apply(null,arguments)}const Ls=(function(e){if(e==null)return __;if(typeof e=="function")return Ml(e);if(typeof e=="object")return Array.isArray(e)?w_(e):A_(e);if(typeof e=="string")return N_(e);throw new Error("Expected function, string, or object as test")});function w_(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Ls(e[n]);return Ml(r);function r(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function A_(e){const t=e;return Ml(n);function n(r){const a=r;let i;for(i in e)if(a[i]!==t[i])return!1;return!0}}function N_(e){return Ml(t);function t(n){return n&&n.type===e}}function Ml(e){return t;function t(n,r,a){return!!(C_(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function __(){return!0}function C_(e){return e!==null&&typeof e=="object"&&"type"in e}const p1=[],k_=!0,Yo=!1,Xi="skip";function Ud(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const i=Ls(a),s=r?-1:1;o(e,void 0,[])();function o(u,c,p){const d=u&&typeof u=="object"?u:{};if(typeof d.type=="string"){const m=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(u.type+(m?"<"+m+">":""))+")"})}return f;function f(){let m=p1,b,E,x;if((!t||i(u,c,p[p.length-1]||void 0))&&(m=I_(n(u,p)),m[0]===Yo))return m;if("children"in u&&u.children){const y=u;if(y.children&&m[0]!==Xi)for(E=(r?y.children.length:-1)+s,x=p.concat(y);E>-1&&E<y.children.length;){const S=y.children[E];if(b=o(S,E,x)(),b[0]===Yo)return b;E=typeof b[1]=="number"?b[1]:E+s}}return m}}}function I_(e){return Array.isArray(e)?e:typeof e=="number"?[k_,e]:e==null?p1:[e]}function $n(e,t,n,r){let a,i,s;typeof t=="function"&&typeof n!="function"?(i=void 0,s=t,a=n):(i=t,s=n,a=r),Ud(e,i,o,a);function o(u,c){const p=c[c.length-1],d=p?p.children.indexOf(u):void 0;return s(u,d,p)}}function za(e){return"children"in e?f1(e):"value"in e?e.value:""}function R_(e){return e.type==="text"?e.value:"children"in e?f1(e):""}function f1(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=R_(e.children[t]);return n.join("")}const D_={}.hasOwnProperty;function O_(e,t,n){const r=Ls(t),a=t&&typeof t=="object"&&"cascade"in t?t.cascade:void 0,i=a??!0;return s(e);function s(o,u,c){const p=[];if(!r(o,u,c))return;if(L_(o)){let m=-1;for(;++m<o.children.length;){const b=s(o.children[m],m,o);b&&p.push(b)}if(i&&o.children.length>0&&p.length===0)return}const d={};let f;for(f in o)D_.call(o,f)&&(d[f]=f==="children"?p:o[f]);return d}}function L_(e){return"children"in e&&e.children!==void 0}var lo={exports:{}},c0;function F_(){return c0||(c0=1,(function(e,t){function n(r){let a=[],i;for(let s of r.split(",").map(o=>o.trim()))if(/^-?\d+$/.test(s))a.push(parseInt(s,10));else if(i=s.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[o,u,c,p]=i;if(u&&p){u=parseInt(u),p=parseInt(p);const d=u<p?1:-1;(c==="-"||c===".."||c==="‥")&&(p+=d);for(let f=u;f!==p;f+=d)a.push(f)}}return a}t.default=n,e.exports=n})(lo,lo.exports)),lo.exports}var M_=F_();const P_=kl(M_);pt.displayName="clike";pt.aliases=[];function pt(e){e.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:/[{}[\];(),.:]/}}dr.displayName="c";dr.aliases=[];function dr(e){e.register(pt),e.languages.c=e.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|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.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},e.languages.c.string],char:e.languages.c.char,comment:e.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:e.languages.c}}}}),e.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 e.languages.c.boolean}Ea.displayName="cpp";Ea.aliases=[];function Ea(e){e.register(dr),(function(t){var n=/\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/,r=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return n.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return n.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:n,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/}),t.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 r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.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:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])})(e)}Pl.displayName="arduino";Pl.aliases=["ino"];function Pl(e){e.register(Ea),e.languages.arduino=e.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/}),e.languages.ino=e.languages.arduino}Fs.displayName="bash";Fs.aliases=["sh","shell"];function Fs(e){(function(t){var n="\\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",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},a={bash:r,environment:{pattern:RegExp("\\$"+n),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("(\\{)"+n),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})/};t.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;|&]|[<>]\\()"+n),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:a},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:a},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:a.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:a.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}},r.inside=t.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=a.variable[1].inside,o=0;o<i.length;o++)s[i[o]]=t.languages.bash[i[o]];t.languages.sh=t.languages.bash,t.languages.shell=t.languages.bash})(e)}xa.displayName="csharp";xa.aliases=["cs","dotnet"];function xa(e){e.register(pt),(function(t){function n(D,Q){return D.replace(/<<(\d+)>>/g,function(de,O){return"(?:"+Q[+O]+")"})}function r(D,Q,de){return RegExp(n(D,Q),"")}function a(D,Q){for(var de=0;de<Q;de++)D=D.replace(/<<self>>/g,function(){return"(?:"+D+")"});return D.replace(/<<self>>/g,"[^\\s\\S]")}var i={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"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*{)",other:"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 s(D){return"\\b(?:"+D.trim().replace(/ /g,"|")+")\\b"}var o=s(i.typeDeclaration),u=RegExp(s(i.type+" "+i.typeDeclaration+" "+i.contextual+" "+i.other)),c=s(i.typeDeclaration+" "+i.contextual+" "+i.other),p=s(i.type+" "+i.typeDeclaration+" "+i.other),d=a(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),f=a(/\((?:[^()]|<<self>>)*\)/.source,2),m=/@?\b[A-Za-z_]\w*\b/.source,b=n(/<<0>>(?:\s*<<1>>)?/.source,[m,d]),E=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[c,b]),x=/\[\s*(?:,\s*)*\]/.source,y=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[E,x]),S=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,f,x]),v=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[S]),w=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[v,E,x]),R={keyword:u,punctuation:/[<>()?,.:[\]]/},N=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,T=/"(?:\\.|[^\\"\r\n])*"/.source,_=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[_]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[T]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[E]),lookbehind:!0,inside:R},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[m,w]),lookbehind:!0,inside:R},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[m]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[o,b]),lookbehind:!0,inside:R},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[E]),lookbehind:!0,inside:R},{pattern:r(/(\bwhere\s+)<<0>>/.source,[m]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:R},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[w,p,m]),inside:R}],keyword:u,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:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[m]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[m]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[f]),lookbehind:!0,alias:"class-name",inside:R},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[w,E]),inside:R,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[w]),lookbehind:!0,inside:R,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[m,d]),inside:{function:r(/^<<0>>/.source,[m]),generic:{pattern:RegExp(d),alias:"class-name",inside:R}}},"type-list":{pattern:r(/\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,[o,b,m,w,u.source,f,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[b,f]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:u,"class-name":{pattern:RegExp(w),greedy:!0,inside:R},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 L=T+"|"+N,C=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[L]),$=a(n(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[C]),2),I=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,P=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[E,$]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[I,P]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[I]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[$]),inside:t.languages.csharp},"class-name":{pattern:RegExp(E),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var W=/:[^}\r\n]+/.source,U=a(n(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[C]),2),ne=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[U,W]),z=a(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[L]),2),se=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[z,W]);function pe(D,Q){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[D]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[Q,W]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[ne]),lookbehind:!0,greedy:!0,inside:pe(ne,U)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[se]),lookbehind:!0,greedy:!0,inside:pe(se,z)}],char:{pattern:RegExp(N),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp})(e)}gn.displayName="markup";gn.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function gn(e){e.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]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var a={};a["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[r]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};i["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var s={};s[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\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:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}ea.displayName="css";ea.aliases=[];function ea(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.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\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,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:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}jl.displayName="diff";jl.aliases=[];function jl(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(r){var a=n[r],i=[];/^\w+$/.test(r)||i.push(/\w+/.exec(r)[0]),r==="diff"&&i.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+a+`].*(?:\r
|
|
6
|
-
?|
|
|
7
|
-
|(?![\\s\\S])))+`,"m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}Bl.displayName="go";Bl.aliases=[];function Bl(e){e.register(pt),e.languages.go=e.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/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}Ul.displayName="ini";Ul.aliases=[];function Ul(e){e.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:/=/}}ya.displayName="java";ya.aliases=[];function ya(e){e.register(pt),(function(t){var n=/\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/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,a={pattern:RegExp(/(^|[^\w.])/.source+r+/[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:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[a,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:a.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:a.inside}],keyword:n,function:[t.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/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.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":a,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:a.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:a.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 n.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(e)}$l.displayName="regex";$l.aliases=[];function $l(e){(function(t){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?: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]|.)/,a={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},i={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s="(?:[^\\\\-]|"+r.source+")",o=RegExp(s+"-"+s),u={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.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:o,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":i,escape:r}},"special-escape":n,"char-set":a,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":u}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":u}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(e)}wn.displayName="javascript";wn.aliases=["js"];function wn(e){e.register(pt),e.languages.javascript=e.languages.extend("clike",{"class-name":[e.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}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.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:e.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:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.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:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.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:e.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"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.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")),e.languages.js=e.languages.javascript}di.displayName="json";di.aliases=["webmanifest"];function di(e){e.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"}},e.languages.webmanifest=e.languages.json}zl.displayName="kotlin";zl.aliases=["kt","kts"];function zl(e){e.register(pt),(function(t){t.languages.kotlin=t.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 t.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin})(e)}Hl.displayName="less";Hl.aliases=[];function Hl(e){e.register(ea),e.languages.less=e.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:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}Ms.displayName="lua";Ms.aliases=[];function Ms(e){e.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:/[\[\](){},;]|\.+|:+/}}Gl.displayName="makefile";Gl.aliases=[];function Gl(e){e.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:/[:;(){}]/}}Ps.displayName="yaml";Ps.aliases=["yml"];function Ps(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,a="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",i=/(?:[^\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}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(u,c){c=(c||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<value>>/g,function(){return u});return RegExp(p,c)}t.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 a})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<key>>/g,function(){return"(?:"+i+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\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:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(s),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}Wl.displayName="markdown";Wl.aliases=["md"];function Wl(e){e.register(gn),(function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(o){return o=o.replace(/<inner>/g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+o+")")}var a=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return a}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.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:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+s+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+s+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(a),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(a),alias:"important",inside:t.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:r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~)<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:r(/!?\[(?:(?!\])<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(o){["url","bold","italic","strike","code-snippet"].forEach(function(u){o!==u&&(t.languages.markdown[o].inside.content.inside[u]=t.languages.markdown[u])})}),t.hooks.add("after-tokenize",function(o){if(o.language!=="markdown"&&o.language!=="md")return;function u(c){if(!(!c||typeof c=="string"))for(var p=0,d=c.length;p<d;p++){var f=c[p];if(f.type!=="code"){u(f.content);continue}var m=f.content[1],b=f.content[3];if(m&&b&&m.type==="code-language"&&b.type==="code-block"&&typeof m.content=="string"){var E=m.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");E=(/[a-z][\w-]*/i.exec(E)||[""])[0].toLowerCase();var x="language-"+E;b.alias?typeof b.alias=="string"?b.alias=[b.alias,x]:b.alias.push(x):b.alias=[x]}}}u(o.tokens)}),t.hooks.add("wrap",function(o){if(o.type==="code-block"){for(var u="",c=0,p=o.classes.length;c<p;c++){var d=o.classes[c],f=/language-(.+)/.exec(d);if(f){u=f[1];break}}var m=t.languages[u];if(m)o.content=t.highlight(o.content.value,m,u);else if(u&&u!=="none"&&t.plugins.autoloader){var b="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);o.attributes.id=b,t.plugins.autoloader.loadLanguages(u,function(){var E=document.getElementById(b);E&&(E.innerHTML=t.highlight(E.textContent,t.languages[u],u))})}}}),RegExp(t.languages.markup.tag.pattern.source,"gi"),t.languages.md=t.languages.markdown})(e)}Vl.displayName="objectivec";Vl.aliases=["objc"];function Vl(e){e.register(dr),e.languages.objectivec=e.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 e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}ql.displayName="perl";ql.aliases=[];function ql(e){(function(t){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.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,n].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,n].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,n+/\s*/.source+n].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:/[{}[\];(),:]/}})(e)}An.displayName="markup-templating";An.aliases=[];function An(e){e.register(gn),(function(t){function n(r,a){return"___"+r.toUpperCase()+a+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,a,i,s){if(r.language===a){var o=r.tokenStack=[];r.code=r.code.replace(i,function(u){if(typeof s=="function"&&!s(u))return u;for(var c=o.length,p;r.code.indexOf(p=n(a,c))!==-1;)++c;return o[c]=u,p}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,a){if(r.language!==a||!r.tokenStack)return;r.grammar=t.languages[a];var i=0,s=Object.keys(r.tokenStack);function o(u){for(var c=0;c<u.length&&!(i>=s.length);c++){var p=u[c];if(typeof p=="string"||p.content&&typeof p.content=="string"){var d=s[i],f=r.tokenStack[d],m=typeof p=="string"?p:p.content,b=n(a,d),E=m.indexOf(b);if(E>-1){++i;var x=m.substring(0,E),y=new t.Token(a,t.tokenize(f,r.grammar),"language-"+a,f),S=m.substring(E+b.length),v=[];x&&v.push.apply(v,o([x])),v.push(y),S&&v.push.apply(v,o([S])),typeof p=="string"?u.splice.apply(u,[c,1].concat(v)):p.content=v}}else p.content&&o(p.content)}return u}o(r.tokens)}}})})(e)}Ta.displayName="php";Ta.aliases=[];function Ta(e){e.register(An),(function(t){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{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*\()/],a=/\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,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,s=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,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:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:a,operator:i,punctuation:s};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},u=[{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:o}},{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:o}}];t.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:u,"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:r,number:a,operator:i,punctuation:s}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(c){if(/<\?/.test(c.code)){var p=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(c,"php",p)}}),t.hooks.add("after-tokenize",function(c){t.languages["markup-templating"].tokenizePlaceholders(c,"php")})})(e)}js.displayName="python";js.aliases=["py"];function js(e){e.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:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}Yl.displayName="r";Yl.aliases=[];function Yl(e){e.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:/[(){}\[\],;]/}}Sa.displayName="ruby";Sa.aliases=["rb"];function Sa(e){e.register(pt),(function(t){t.languages.ruby=t.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:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var r="(?:"+[/([^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("|")+")",a=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+a),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+a+/(?=:(?!:))/.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:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,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:n,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+r),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.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)/}),t.languages.rb=t.languages.ruby})(e)}Zl.displayName="rust";Zl.aliases=[];function Zl(e){(function(t){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,r=0;r<2;r++)n=n.replace(/<self>/g,function(){return n});n=n.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),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:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(e)}Kl.displayName="sass";Kl.aliases=[];function Kl(e){e.register(ea),(function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var n=/\$[-\w]+|#\{\$[-\w]+\}/,r=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:n,operator:r}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:n,operator:r,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.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}})})(e)}Xl.displayName="scss";Xl.aliases=[];function Xl(e){e.register(ea),e.languages.scss=e.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]+\}/}}}),e.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}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.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}}),e.languages.scss.atrule.inside.rest=e.languages.scss}pi.displayName="sql";pi.aliases=[];function pi(e){e.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:/[;[\]()`,.]/}}Ql.displayName="swift";Ql.aliases=[];function Ql(e){e.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:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}fi.displayName="typescript";fi.aliases=["ts"];function fi(e){e.register(wn),(function(t){t.languages.typescript=t.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/}),t.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 t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var n=t.languages.extend("typescript",{});delete n["class-name"],t.languages.typescript["class-name"].inside=n,t.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:n}}}}),t.languages.ts=t.languages.typescript})(e)}Bs.displayName="basic";Bs.aliases=[];function Bs(e){e.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:/[,;:()]/}}Us.displayName="vbnet";Us.aliases=[];function Us(e){e.register(Bs),e.languages.vbnet=e.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:/[,;:(){}]/})}class $s{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}$s.prototype.normal={};$s.prototype.property={};$s.prototype.space=void 0;function m1(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new $s(n,r,t)}function hs(e){return e.toLowerCase()}class zn{constructor(t,n){this.attribute=n,this.property=t}}zn.prototype.attribute="";zn.prototype.booleanish=!1;zn.prototype.boolean=!1;zn.prototype.commaOrSpaceSeparated=!1;zn.prototype.commaSeparated=!1;zn.prototype.defined=!1;zn.prototype.mustUseProperty=!1;zn.prototype.number=!1;zn.prototype.overloadedBoolean=!1;zn.prototype.property="";zn.prototype.spaceSeparated=!1;zn.prototype.space=void 0;let j_=0;const rt=va(),nn=va(),Bc=va(),Ee=va(),jt=va(),Za=va(),Gn=va();function va(){return 2**++j_}const Uc=Object.freeze(Object.defineProperty({__proto__:null,boolean:rt,booleanish:nn,commaOrSpaceSeparated:Gn,commaSeparated:Za,number:Ee,overloadedBoolean:Bc,spaceSeparated:jt},Symbol.toStringTag,{value:"Module"})),Pu=Object.keys(Uc);class $d extends zn{constructor(t,n,r,a){let i=-1;if(super(t,n),d0(this,"space",a),typeof r=="number")for(;++i<Pu.length;){const s=Pu[i];d0(this,Pu[i],(r&Uc[s])===Uc[s])}}}$d.prototype.defined=!0;function d0(e,t,n){n&&(e[t]=n)}function mi(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new $d(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[hs(r)]=r,n[hs(i.attribute)]=r}return new $s(t,n,e.space)}const h1=mi({properties:{ariaActiveDescendant:null,ariaAtomic:nn,ariaAutoComplete:null,ariaBusy:nn,ariaChecked:nn,ariaColCount:Ee,ariaColIndex:Ee,ariaColSpan:Ee,ariaControls:jt,ariaCurrent:null,ariaDescribedBy:jt,ariaDetails:null,ariaDisabled:nn,ariaDropEffect:jt,ariaErrorMessage:null,ariaExpanded:nn,ariaFlowTo:jt,ariaGrabbed:nn,ariaHasPopup:null,ariaHidden:nn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:jt,ariaLevel:Ee,ariaLive:null,ariaModal:nn,ariaMultiLine:nn,ariaMultiSelectable:nn,ariaOrientation:null,ariaOwns:jt,ariaPlaceholder:null,ariaPosInSet:Ee,ariaPressed:nn,ariaReadOnly:nn,ariaRelevant:null,ariaRequired:nn,ariaRoleDescription:jt,ariaRowCount:Ee,ariaRowIndex:Ee,ariaRowSpan:Ee,ariaSelected:nn,ariaSetSize:Ee,ariaSort:null,ariaValueMax:Ee,ariaValueMin:Ee,ariaValueNow:Ee,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function g1(e,t){return t in e?e[t]:t}function b1(e,t){return g1(e,t.toLowerCase())}const B_=mi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Za,acceptCharset:jt,accessKey:jt,action:null,allow:null,allowFullScreen:rt,allowPaymentRequest:rt,allowUserMedia:rt,alt:null,as:null,async:rt,autoCapitalize:null,autoComplete:jt,autoFocus:rt,autoPlay:rt,blocking:jt,capture:null,charSet:null,checked:rt,cite:null,className:jt,cols:Ee,colSpan:null,content:null,contentEditable:nn,controls:rt,controlsList:jt,coords:Ee|Za,crossOrigin:null,data:null,dateTime:null,decoding:null,default:rt,defer:rt,dir:null,dirName:null,disabled:rt,download:Bc,draggable:nn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:rt,formTarget:null,headers:jt,height:Ee,hidden:Bc,high:Ee,href:null,hrefLang:null,htmlFor:jt,httpEquiv:jt,id:null,imageSizes:null,imageSrcSet:null,inert:rt,inputMode:null,integrity:null,is:null,isMap:rt,itemId:null,itemProp:jt,itemRef:jt,itemScope:rt,itemType:jt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:rt,low:Ee,manifest:null,max:null,maxLength:Ee,media:null,method:null,min:null,minLength:Ee,multiple:rt,muted:rt,name:null,nonce:null,noModule:rt,noValidate:rt,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:rt,optimum:Ee,pattern:null,ping:jt,placeholder:null,playsInline:rt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:rt,referrerPolicy:null,rel:jt,required:rt,reversed:rt,rows:Ee,rowSpan:Ee,sandbox:jt,scope:null,scoped:rt,seamless:rt,selected:rt,shadowRootClonable:rt,shadowRootDelegatesFocus:rt,shadowRootMode:null,shape:null,size:Ee,sizes:null,slot:null,span:Ee,spellCheck:nn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ee,step:null,style:null,tabIndex:Ee,target:null,title:null,translate:null,type:null,typeMustMatch:rt,useMap:null,value:nn,width:Ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:jt,axis:null,background:null,bgColor:null,border:Ee,borderColor:null,bottomMargin:Ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:rt,declare:rt,event:null,face:null,frame:null,frameBorder:null,hSpace:Ee,leftMargin:Ee,link:null,longDesc:null,lowSrc:null,marginHeight:Ee,marginWidth:Ee,noResize:rt,noHref:rt,noShade:rt,noWrap:rt,object:null,profile:null,prompt:null,rev:null,rightMargin:Ee,rules:null,scheme:null,scrolling:nn,standby:null,summary:null,text:null,topMargin:Ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:rt,disableRemotePlayback:rt,prefix:null,property:null,results:Ee,security:null,unselectable:null},space:"html",transform:b1}),U_=mi({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:Gn,accentHeight:Ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ee,amplitude:Ee,arabicForm:null,ascent:Ee,attributeName:null,attributeType:null,azimuth:Ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ee,by:null,calcMode:null,capHeight:Ee,className:jt,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:Ee,diffuseConstant:Ee,direction:null,display:null,dur:null,divisor:Ee,dominantBaseline:null,download:rt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ee,enableBackground:null,end:null,event:null,exponent:Ee,externalResourcesRequired:null,fill:null,fillOpacity:Ee,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:Za,g2:Za,glyphName:Za,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ee,horizOriginX:Ee,horizOriginY:Ee,id:null,ideographic:Ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ee,k:Ee,k1:Ee,k2:Ee,k3:Ee,k4:Ee,kernelMatrix:Gn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ee,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:Ee,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:Ee,overlineThickness:Ee,paintOrder:null,panose1:null,path:null,pathLength:Ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:jt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ee,pointsAtY:Ee,pointsAtZ:Ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Gn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Gn,rev:Gn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Gn,requiredFeatures:Gn,requiredFonts:Gn,requiredFormats:Gn,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:Ee,specularExponent:Ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ee,strikethroughThickness:Ee,string:null,stroke:null,strokeDashArray:Gn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ee,strokeOpacity:Ee,strokeWidth:null,style:null,surfaceScale:Ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Gn,tabIndex:Ee,tableValues:null,target:null,targetX:Ee,targetY:Ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Gn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ee,underlineThickness:Ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ee,values:null,vAlphabetic:Ee,vMathematical:Ee,vectorEffect:null,vHanging:Ee,vIdeographic:Ee,version:null,vertAdvY:Ee,vertOriginX:Ee,vertOriginY:Ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:g1}),E1=mi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),x1=mi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:b1}),y1=mi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),$_={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"},z_=/[A-Z]/g,p0=/-[a-z]/g,H_=/^data[-\w.:]+$/i;function hi(e,t){const n=hs(t);let r=t,a=zn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&H_.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(p0,W_);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!p0.test(i)){let s=i.replace(z_,G_);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=$d}return new a(r,t)}function G_(e){return"-"+e.toLowerCase()}function W_(e){return e.charAt(1).toUpperCase()}const wa=m1([h1,B_,E1,x1,y1],"html"),pr=m1([h1,U_,E1,x1,y1],"svg");function $c(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const s=n.slice(a,r).trim();(s||!i)&&t.push(s),a=r+1,r=n.indexOf(",",a)}return t}function Jl(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const f0=/[#.]/g;function V_(e,t){const n=e||"",r={};let a=0,i,s;for(;a<n.length;){f0.lastIndex=a;const o=f0.exec(n),u=n.slice(a,o?o.index:n.length);u&&(i?i==="#"?r.id=u:Array.isArray(r.className)?r.className.push(u):r.className=[u]:s=u,a+=u.length),o&&(i=o[0],a++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function zc(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function eu(e){return e.join(" ").trim()}function T1(e,t,n){const r=n?K_(n):void 0;function a(i,s,...o){let u;if(i==null){u={type:"root",children:[]};const c=s;o.unshift(c)}else{u=V_(i,t);const c=u.tagName.toLowerCase(),p=r?r.get(c):void 0;if(u.tagName=p||c,q_(s))o.unshift(s);else for(const[d,f]of Object.entries(s))Y_(e,u.properties,d,f)}for(const c of o)Hc(u.children,c);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return a}function q_(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const a=t[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const i=a;for(const s of i)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Y_(e,t,n,r){const a=hi(e,n);let i;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;i=r}else typeof r=="boolean"?i=r:typeof r=="string"?a.spaceSeparated?i=zc(r):a.commaSeparated?i=$c(r):a.commaOrSpaceSeparated?i=zc($c(r).join(" ")):i=m0(a,a.property,r):Array.isArray(r)?i=[...r]:i=a.property==="style"?Z_(r):String(r);if(Array.isArray(i)){const s=[];for(const o of i)s.push(m0(a,a.property,o));i=s}a.property==="className"&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[a.property]=i}}function Hc(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)Hc(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Hc(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function m0(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||hs(n)===hs(t)))return!0}return n}function Z_(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function K_(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const X_=["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"],S1=T1(wa,"div"),Q_=T1(pr,"g",X_),v1=["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"],h0={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 w1(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function J_(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function eC(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function g0(e){return eC(e)||w1(e)}const b0=document.createElement("i");function gs(e){const t="&"+e+";";b0.innerHTML=t;const n=b0.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const tC=["","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"];function nC(e,t){const n={},r=typeof n.additional=="string"?n.additional.charCodeAt(0):n.additional,a=[];let i=0,s=-1,o="",u,c;n.position&&("start"in n.position||"indent"in n.position?(c=n.position.indent,u=n.position.start):u=n.position);let p=(u?u.line:0)||1,d=(u?u.column:0)||1,f=b(),m;for(i--;++i<=e.length;)if(m===10&&(d=(c?c[s]:0)||1),m=e.charCodeAt(i),m===38){const y=e.charCodeAt(i+1);if(y===9||y===10||y===12||y===32||y===38||y===60||Number.isNaN(y)||r&&y===r){o+=String.fromCharCode(m),d++;continue}const S=i+1;let v=S,w=S,R;if(y===35){w=++v;const P=e.charCodeAt(w);P===88||P===120?(R="hexadecimal",w=++v):R="decimal"}else R="named";let N="",T="",_="";const L=R==="named"?g0:R==="decimal"?w1:J_;for(w--;++w<=e.length;){const P=e.charCodeAt(w);if(!L(P))break;_+=String.fromCharCode(P),R==="named"&&v1.includes(_)&&(N=_,T=gs(_))}let C=e.charCodeAt(w)===59;if(C){w++;const P=R==="named"?gs(_):!1;P&&(N=_,T=P)}let $=1+w-S,I="";if(!(!C&&n.nonTerminated===!1))if(!_)R!=="named"&&E(4,$);else if(R==="named"){if(C&&!T)E(5,1);else if(N!==_&&(w=v+N.length,$=1+w-v,C=!1),!C){const P=N?1:3;if(n.attribute){const W=e.charCodeAt(w);W===61?(E(P,$),T=""):g0(W)?T="":E(P,$)}else E(P,$)}I=T}else{C||E(2,$);let P=Number.parseInt(_,R==="hexadecimal"?16:10);if(rC(P))E(7,$),I="�";else if(P in h0)E(6,$),I=h0[P];else{let W="";aC(P)&&E(6,$),P>65535&&(P-=65536,W+=String.fromCharCode(P>>>10|55296),P=56320|P&1023),I=W+String.fromCharCode(P)}}if(I){x(),f=b(),i=w-1,d+=w-S+1,a.push(I);const P=b();P.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,I,{start:f,end:P},e.slice(S-1,w)),f=P}else _=e.slice(S-1,w),o+=_,d+=_.length,i=w-1}else m===10&&(p++,s++,d=0),Number.isNaN(m)?x():(o+=String.fromCharCode(m),d++);return a.join("");function b(){return{line:p,column:d,offset:i+((u?u.offset:0)||0)}}function E(y,S){let v;n.warning&&(v=b(),v.column+=S,v.offset+=S,n.warning.call(n.warningContext||void 0,tC[y],v,y))}function x(){o&&(a.push(o),n.text&&n.text.call(n.textContext||void 0,o,{start:f,end:b()}),o="")}}function rC(e){return e>=55296&&e<=57343||e>1114111}function aC(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var iC=0,uo={},un={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++iC}),e.__id},clone:function e(t,n){n=n||{};var r,a;switch(un.util.type(t)){case"Object":if(a=un.util.objId(t),n[a])return n[a];r={},n[a]=r;for(var i in t)t.hasOwnProperty(i)&&(r[i]=e(t[i],n));return r;case"Array":return a=un.util.objId(t),n[a]?n[a]:(r=[],n[a]=r,t.forEach(function(s,o){r[o]=e(s,n)}),r);default:return t}}},languages:{plain:uo,plaintext:uo,text:uo,txt:uo,extend:function(e,t){var n=un.util.clone(un.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||un.languages;var a=r[e],i={};for(var s in a)if(a.hasOwnProperty(s)){if(s==t)for(var o in n)n.hasOwnProperty(o)&&(i[o]=n[o]);n.hasOwnProperty(s)||(i[s]=a[s])}var u=r[e];return r[e]=i,un.languages.DFS(un.languages,function(c,p){p===u&&c!=e&&(this[c]=i)}),i},DFS:function e(t,n,r,a){a=a||{};var i=un.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var o=t[s],u=un.util.type(o);u==="Object"&&!a[i(o)]?(a[i(o)]=!0,e(o,n,null,a)):u==="Array"&&!a[i(o)]&&(a[i(o)]=!0,e(o,n,s,a))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(un.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=un.tokenize(r.code,r.grammar),un.hooks.run("after-tokenize",r),Qi.stringify(un.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var a=new sC;return Po(a,a.head,e),A1(e,a,t,a.head,0),lC(a)},hooks:{all:{},add:function(e,t){var n=un.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=un.hooks.all[e];if(!(!n||!n.length))for(var r=0,a;a=n[r++];)a(t)}},Token:Qi};function Qi(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function E0(e,t,n,r){e.lastIndex=t;var a=e.exec(n);if(a&&r&&a[1]){var i=a[1].length;a.index+=i,a[0]=a[0].slice(i)}return a}function A1(e,t,n,r,a,i){for(var s in n)if(!(!n.hasOwnProperty(s)||!n[s])){var o=n[s];o=Array.isArray(o)?o:[o];for(var u=0;u<o.length;++u){if(i&&i.cause==s+","+u)return;var c=o[u],p=c.inside,d=!!c.lookbehind,f=!!c.greedy,m=c.alias;if(f&&!c.pattern.global){var b=c.pattern.toString().match(/[imsuy]*$/)[0];c.pattern=RegExp(c.pattern.source,b+"g")}for(var E=c.pattern||c,x=r.next,y=a;x!==t.tail&&!(i&&y>=i.reach);y+=x.value.length,x=x.next){var S=x.value;if(t.length>e.length)return;if(!(S instanceof Qi)){var v=1,w;if(f){if(w=E0(E,y,e,d),!w||w.index>=e.length)break;var _=w.index,R=w.index+w[0].length,N=y;for(N+=x.value.length;_>=N;)x=x.next,N+=x.value.length;if(N-=x.value.length,y=N,x.value instanceof Qi)continue;for(var T=x;T!==t.tail&&(N<R||typeof T.value=="string");T=T.next)v++,N+=T.value.length;v--,S=e.slice(y,N),w.index-=y}else if(w=E0(E,0,S,d),!w)continue;var _=w.index,L=w[0],C=S.slice(0,_),$=S.slice(_+L.length),I=y+S.length;i&&I>i.reach&&(i.reach=I);var P=x.prev;C&&(P=Po(t,P,C),y+=C.length),oC(t,P,v);var W=new Qi(s,p?un.tokenize(L,p):L,m,L);if(x=Po(t,P,W),$&&Po(t,x,$),v>1){var U={cause:s+","+u,reach:I};A1(e,t,n,x.prev,y,U),i&&U.reach>i.reach&&(i.reach=U.reach)}}}}}}function sC(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function Po(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function oC(e,t,n){for(var r=t.next,a=0;a<n&&r!==e.tail;a++)r=r.next;t.next=r,r.prev=t,e.length-=a}function lC(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}const N1=un;function _1(){}_1.prototype=N1;const A=new _1;A.highlight=uC;A.register=cC;A.alias=dC;A.registered=pC;A.listLanguages=fC;A.util.encode=mC;A.Token.stringify=Gc;function uC(e,t){if(typeof e!="string")throw new TypeError("Expected `string` for `value`, got `"+e+"`");let n,r;if(t&&typeof t=="object")n=t;else{if(r=t,typeof r!="string")throw new TypeError("Expected `string` for `name`, got `"+r+"`");if(Object.hasOwn(A.languages,r))n=A.languages[r];else throw new Error("Unknown language: `"+r+"` is not registered")}return{type:"root",children:N1.highlight.call(A,e,n,r)}}function cC(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `syntax`, got `"+e+"`");Object.hasOwn(A.languages,e.displayName)||e(A)}function dC(e,t){const n=A.languages;let r={};typeof e=="string"?t&&(r[e]=t):r=e;let a;for(a in r)if(Object.hasOwn(r,a)){const i=r[a],s=typeof i=="string"?[i]:i;let o=-1;for(;++o<s.length;)n[s[o]]=n[a]}}function pC(e){if(typeof e!="string")throw new TypeError("Expected `string` for `aliasOrLanguage`, got `"+e+"`");return Object.hasOwn(A.languages,e)}function fC(){const e=A.languages,t=[];let n;for(n in e)Object.hasOwn(e,n)&&typeof e[n]=="object"&&t.push(n);return t}function Gc(e,t){if(typeof e=="string")return{type:"text",value:e};if(Array.isArray(e)){const r=[];let a=-1;for(;++a<e.length;)e[a]!==null&&e[a]!==void 0&&e[a]!==""&&r.push(Gc(e[a],t));return r}const n={attributes:{},classes:["token",e.type],content:Gc(e.content,t),language:t,tag:"span",type:e.type};return e.alias&&n.classes.push(...typeof e.alias=="string"?[e.alias]:e.alias),A.hooks.run("wrap",n),S1(n.tag+"."+n.classes.join("."),hC(n.attributes),n.content)}function mC(e){return e}function hC(e){let t;for(t in e)Object.hasOwn(e,t)&&(e[t]=nC(e[t]));return e}A.register(pt);A.register(dr);A.register(Ea);A.register(Pl);A.register(Fs);A.register(xa);A.register(gn);A.register(ea);A.register(jl);A.register(Bl);A.register(Ul);A.register(ya);A.register($l);A.register(wn);A.register(di);A.register(zl);A.register(Hl);A.register(Ms);A.register(Gl);A.register(Ps);A.register(Wl);A.register(Vl);A.register(ql);A.register(An);A.register(Ta);A.register(js);A.register(Yl);A.register(Sa);A.register(Zl);A.register(Kl);A.register(Xl);A.register(pi);A.register(Ql);A.register(fi);A.register(Bs);A.register(Us);zd.displayName="abap";zd.aliases=[];function zd(e){e.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:/[,.:()]/}}Hd.displayName="abnf";Hd.aliases=[];function Hd(e){(function(t){var n="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";t.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-])"+n+"|<"+n+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(e)}Gd.displayName="actionscript";Gd.aliases=[];function Gd(e){e.register(wn),e.languages.actionscript=e.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:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}Wd.displayName="ada";Wd.aliases=[];function Wd(e){e.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}}Vd.displayName="agda";Vd.aliases=[];function Vd(e){(function(t){t.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/}})(e)}qd.displayName="al";qd.aliases=[];function qd(e){e.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:/[()\[\]{}:.;,]/}}Yd.displayName="antlr4";Yd.aliases=["g4"];function Yd(e){e.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:/[;:()=]/},e.languages.g4=e.languages.antlr4}Zd.displayName="apacheconf";Zd.aliases=[];function Zd(e){e.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:/\^?.*\$|\^.*\$?/}}Kd.displayName="apex";Kd.aliases=[];function Kd(e){e.register(pt),e.register(pi),(function(t){var n=/\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,r=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return n.source});function a(s){return RegExp(s.replace(/<CLASS-NAME>/g,function(){return r}),"i")}var i={keyword:n,punctuation:/[()\[\]{};,:.<>]/};t.languages.apex={comment:t.languages.clike.comment,string:t.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:t.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:a(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:i},{pattern:a(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:i},{pattern:a(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:i}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:n,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:/[()\[\]{};,.]/}})(e)}Xd.displayName="apl";Xd.aliases=[];function Xd(e){e.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"}}}Qd.displayName="applescript";Qd.aliases=[];function Qd(e){e.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:/[{}():,¬«»《》]/}}Jd.displayName="aql";Jd.aliases=[];function Jd(e){e.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:/::|[?.:,;()[\]{}]/}}ep.displayName="arff";ep.aliases=[];function ep(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}tp.displayName="armasm";tp.aliases=["arm-asm"];function tp(e){e.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:/[()[\],]/},e.languages["arm-asm"]=e.languages.armasm}np.displayName="arturo";np.aliases=["art"];function np(e){(function(t){var n=function(r,a){return{pattern:RegExp(/\{!/.source+"(?:"+(a||r)+")"+/$[\s\S]*\}/.source,"m"),greedy:!0,inside:{embedded:{pattern:/(^\{!\w+\b)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-"+r,inside:t.languages[r]},string:/[\s\S]+/}}};t.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":n("html"),"css-string":n("css"),"js-string":n("js"),"md-string":n("md"),"sql-string":n("sql"),"sh-string":n("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/}},t.languages.art=t.languages.arturo})(e)}rp.displayName="asciidoc";rp.aliases=["adoc"];function rp(e){(function(t){var n={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+$).+/}},r=t.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:n,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:n.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:n,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 a(i){i=i.split(" ");for(var s={},o=0,u=i.length;o<u;o++)s[i[o]]=r[i[o]];return s}n.inside.interpreted.inside.rest=a("macro inline replacement entity"),r["passthrough-block"].inside.rest=a("macro"),r["literal-block"].inside.rest=a("callout"),r.table.inside.rest=a("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"),r["other-block"].inside.rest=a("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),r.title.inside.rest=a("macro inline replacement entity"),t.hooks.add("wrap",function(i){i.type==="entity"&&(i.attributes.title=i.content.value.replace(/&/,"&"))}),t.languages.adoc=t.languages.asciidoc})(e)}ap.displayName="aspnet";ap.aliases=[];function ap(e){e.register(xa),e.register(gn),e.languages.aspnet=e.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:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}ip.displayName="asm6502";ip.aliases=[];function ip(e){e.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:/[(),:]/}}sp.displayName="asmatmel";sp.aliases=[];function sp(e){e.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:/[(),:]/}}op.displayName="autohotkey";op.aliases=[];function op(e){e.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:/[{}[\]():,]/}}lp.displayName="autoit";lp.aliases=[];function lp(e){e.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:/[\[\]().,:]/}}up.displayName="avisynth";up.aliases=["avs"];function up(e){(function(t){function n(c,p){return c.replace(/<<(\d+)>>/g,function(d,f){return p[+f]})}function r(c,p,d){return RegExp(n(c,p),d)}var a=/bool|clip|float|int|string|val/.source,i=[/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("|"),s=[/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("|"),o=[/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("|"),u=[i,s,o].join("|");t.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:r(/\b(?:<<0>>)\s+("?)\w+\1/.source,[a],"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:r(/\b(?:<<0>>)\b/.source,[u],"i"),alias:"function"},"type-cast":{pattern:r(/\b(?:<<0>>)(?=\s*\()/.source,[a],"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:/[{}\[\]();,.]/},t.languages.avs=t.languages.avisynth})(e)}cp.displayName="avro-idl";cp.aliases=["avdl"];function cp(e){e.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:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}dp.displayName="awk";dp.aliases=["gawk"];function dp(e){e.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:/[()[\]{},;]/},e.languages.gawk=e.languages.awk}pp.displayName="batch";pp.aliases=[];function pp(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},a=/"(?:[\\"]"|[^"])*"(?!")/,i=/(?:\b|-)\d+\b/;t.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:a,parameter:r,variable:n,number:i,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:a,parameter:r,variable:n,number:i,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:a,parameter:r,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:i,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:a,parameter:r,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:i,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}fp.displayName="bbcode";fp.aliases=["shortcode"];function fp(e){e.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=\]]+/}}},e.languages.shortcode=e.languages.bbcode}mp.displayName="bbj";mp.aliases=[];function mp(e){(function(t){t.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:/[.,;:()]/}})(e)}hp.displayName="bicep";hp.aliases=[];function hp(e){e.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:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}gp.displayName="birb";gp.aliases=[];function gp(e){e.register(pt),e.languages.birb=e.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/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}bp.displayName="bison";bp.aliases=[];function bp(e){e.register(dr),e.languages.bison=e.languages.extend("c",{}),e.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:e.languages.c}},comment:e.languages.c.comment,string:e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}Ep.displayName="bnf";Ep.aliases=["rbnf"];function Ep(e){e.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}/},e.languages.rbnf=e.languages.bnf}xp.displayName="bqn";xp.aliases=[];function xp(e){e.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:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}yp.displayName="brainfuck";yp.aliases=[];function yp(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}Tp.displayName="brightscript";Tp.aliases=[];function Tp(e){e.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},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}Sp.displayName="bro";Sp.aliases=[];function Sp(e){e.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:/[{}[\];(),.:]/}}vp.displayName="bsl";vp.aliases=["oscript"];function vp(e){e.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"}]},e.languages.oscript=e.languages.bsl}wp.displayName="cfscript";wp.aliases=["cfc"];function wp(e){e.register(pt),e.languages.cfscript=e.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"}}),e.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 e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}Ap.displayName="chaiscript";Ap.aliases=[];function Ap(e){e.register(pt),e.register(Ea),e.languages.chaiscript=e.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:[e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),e.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:e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}Np.displayName="cil";Np.aliases=[];function Np(e){e.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]+/}}_p.displayName="cilkc";_p.aliases=["cilk-c"];function _p(e){e.register(dr),e.languages.cilkc=e.languages.insertBefore("c","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-c"]=e.languages.cilkc}Cp.displayName="cilkcpp";Cp.aliases=["cilk","cilk-cpp"];function Cp(e){e.register(Ea),e.languages.cilkcpp=e.languages.insertBefore("cpp","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-cpp"]=e.languages.cilkcpp,e.languages.cilk=e.languages.cilkcpp}kp.displayName="clojure";kp.aliases=[];function kp(e){e.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:/[{}\[\](),]/}}Ip.displayName="cmake";Ip.aliases=[];function Ip(e){e.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:/[()>}]|\$[<{]/}}Rp.displayName="cobol";Rp.aliases=[];function Rp(e){e.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:/[.:,()]/}}Dp.displayName="coffeescript";Dp.aliases=["coffee"];function Dp(e){e.register(wn),(function(t){var n=/#(?!\{).+/,r={pattern:/#\{[^}]+\}/,alias:"variable"};t.languages.coffeescript=t.languages.extend("javascript",{comment:n,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:r}}],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"}}),t.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:n,interpolation:r}}}),t.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:t.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:r}}]}),t.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete t.languages.coffeescript["template-string"],t.languages.coffee=t.languages.coffeescript})(e)}Op.displayName="concurnas";Op.aliases=["conc"];function Op(e){e.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"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}Lp.displayName="csp";Lp.aliases=[];function Lp(e){(function(t){function n(r){return RegExp(/([ \t])/.source+"(?:"+r+")"+/(?=[\s;]|$)/.source,"i")}t.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:n(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:n(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:n(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:n(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:n(/[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:n(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:n(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(e)}Fp.displayName="cooklang";Fp.aliases=[];function Fp(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,a=/\{[^}#@]*\}/.source,i=r+a,s=/(?:h|hours|hrs|m|min|minutes)/.source,o={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:/[{}]/}};t.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:new RegExp("#(?:"+i+"|"+n+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+r+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+r),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+i+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":o}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+s+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}Mp.displayName="coq";Mp.aliases=[];function Mp(e){(function(t){for(var n=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,r=0;r<2;r++)n=n.replace(/<self>/g,function(){return n});n=n.replace(/<self>/g,"[]"),t.languages.coq={comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return n})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(n),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:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(e)}Pp.displayName="crystal";Pp.aliases=[];function Pp(e){e.register(Sa),(function(t){t.languages.crystal=t.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:[/->/,t.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),t.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:t.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:t.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}})})(e)}jp.displayName="css-extras";jp.aliases=[];function jp(e){e.register(ea),(function(t){var n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+n.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":[n,{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:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=r,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var a={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},i={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.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:a,number:i,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:a,number:i})})(e)}Bp.displayName="csv";Bp.aliases=[];function Bp(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}Up.displayName="cue";Up.aliases=[];function Up(e){(function(t){var n=/\\(?:(?!\2)|\2(?:[^()\r\n]|\([^()]*\)))/.source,r=/"""(?:[^\\"]|"(?!""\2)|<esc>)*"""/.source+"|"+/'''(?:[^\\']|'(?!''\2)|<esc>)*'''/.source+"|"+/"(?:[^\\\r\n"]|"(?!\2)|<esc>)*"/.source+"|"+/'(?:[^\\\r\n']|'(?!\2)|<esc>)*'/.source,a="(?:"+r.replace(/<esc>/g,n)+")";t.languages.cue={comment:{pattern:/\/\/.*/,greedy:!0},"string-literal":{pattern:RegExp(/(^|[^#"'\\])(#*)/.source+a+/(?!["'])\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:/[()[\]{},.:]/},t.languages.cue["string-literal"].inside.interpolation.inside.expression.inside=t.languages.cue})(e)}$p.displayName="cypher";$p.aliases=[];function $p(e){e.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:/[()[\]{},;.]/}}zp.displayName="d";zp.aliases=[];function zp(e){e.register(pt),e.languages.d=e.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|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.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"}})}Hp.displayName="dart";Hp.aliases=[];function Hp(e){e.register(pt),(function(t){var n=[/\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/],r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,a={pattern:RegExp(r+/[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:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[a,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:a.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.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:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":a,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(e)}Gp.displayName="dataweave";Gp.aliases=[];function Gp(e){(function(t){t.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/}})(e)}Wp.displayName="dax";Wp.aliases=[];function Wp(e){e.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:/[;\[\](){}`,.]/}}Vp.displayName="dhall";Vp.aliases=[];function Vp(e){e.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/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}qp.displayName="django";qp.aliases=["jinja2"];function qp(e){e.register(An),(function(t){t.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:/[{}[\](),.:;]/};var n=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,r=t.languages["markup-templating"];t.hooks.add("before-tokenize",function(a){r.buildPlaceholders(a,"django",n)}),t.hooks.add("after-tokenize",function(a){r.tokenizePlaceholders(a,"django")}),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",function(a){r.buildPlaceholders(a,"jinja2",n)}),t.hooks.add("after-tokenize",function(a){r.tokenizePlaceholders(a,"jinja2")})})(e)}Yp.displayName="dns-zone-file";Yp.aliases=["dns-zone"];function Yp(e){e.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:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}Zp.displayName="docker";Zp.aliases=["dockerfile"];function Zp(e){(function(t){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,r=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return n}),a=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,i=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return a}),s={pattern:RegExp(a),greedy:!0},o={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function u(c,p){return c=c.replace(/<OPT>/g,function(){return i}).replace(/<SP>/g,function(){return r}),RegExp(c,p)}t.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:u(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[s,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:u(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:o,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:o},t.languages.dockerfile=t.languages.docker})(e)}Kp.displayName="dot";Kp.aliases=["gv"];function Kp(e){(function(t){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",r={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:t.languages.markup}};function a(i,s){return RegExp(i.replace(/<ID>/g,function(){return n}),s)}t.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:a(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:r},"attr-value":{pattern:a(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:r},"attr-name":{pattern:a(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:r},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:a(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:r},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},t.languages.gv=t.languages.dot})(e)}Xp.displayName="ebnf";Xp.aliases=[];function Xp(e){e.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:/[-=|*/!]/}}Qp.displayName="editorconfig";Qp.aliases=[];function Qp(e){e.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:/^=/}}}}Jp.displayName="eiffel";Jp.aliases=[];function Jp(e){e.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:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}ef.displayName="ejs";ef.aliases=["eta"];function ef(e){e.register(wn),e.register(An),(function(t){t.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:t.languages.javascript}},t.hooks.add("before-tokenize",function(n){var r=/<%(?!%)[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"ejs",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"ejs")}),t.languages.eta=t.languages.ejs})(e)}tf.displayName="elixir";tf.aliases=[];function tf(e){e.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:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(t){t.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}nf.displayName="elm";nf.aliases=[];function nf(e){e.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:/[{}[\]|(),.:]/}}rf.displayName="etlua";rf.aliases=[];function rf(e){e.register(Ms),e.register(An),(function(t){t.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:t.languages.lua}},t.hooks.add("before-tokenize",function(n){var r=/<%[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"etlua",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"etlua")})})(e)}af.displayName="erb";af.aliases=[];function af(e){e.register(An),e.register(Sa),(function(t){t.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:t.languages.ruby}},t.hooks.add("before-tokenize",function(n){var r=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"erb",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"erb")})})(e)}sf.displayName="erlang";sf.aliases=[];function sf(e){e.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:/[()[\]{}:;,.#|]|<<|>>/}}of.displayName="excel-formula";of.aliases=["xls","xlsx"];function of(e){e.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:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}lf.displayName="fsharp";lf.aliases=[];function lf(e){e.register(pt),e.languages.fsharp=e.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}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.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"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.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:e.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}})}uf.displayName="factor";uf.aliases=[];function uf(e){(function(t){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},r={number:/\\[^\s']|%\w/},a={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],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:r.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:r},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r}],"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:r}},i=function(c){return(c+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},s=function(c){return new RegExp("(^|\\s)(?:"+c.map(i).join("|")+")(?=\\s|$)")},o={"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"]};Object.keys(o).forEach(function(c){a[c].pattern=s(o[c])});var u=["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.combinators.pattern=s(u),t.languages.factor=a})(e)}cf.displayName="false";cf.aliases=[];function cf(e){(function(t){t.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"}}})(e)}df.displayName="firestore-security-rules";df.aliases=[];function df(e){e.register(pt),e.languages["firestore-security-rules"]=e.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.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:/,/}}})}pf.displayName="flow";pf.aliases=[];function pf(e){e.register(wn),(function(t){t.languages.flow=t.languages.extend("javascript",{}),t.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),t.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 t.languages.flow.parameter,t.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(t.languages.flow.keyword)||(t.languages.flow.keyword=[t.languages.flow.keyword]),t.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})})(e)}ff.displayName="fortran";ff.aliases=[];function ff(e){e.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:/\(\/|\/\)|[(),;:&]/}}mf.displayName="ftl";mf.aliases=[];function mf(e){e.register(An),(function(t){for(var n=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,r=0;r<2;r++)n=n.replace(/<expr>/g,function(){return n});n=n.replace(/<expr>/g,/[^\s\S]/.source);var a={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return n})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return n})),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:/[,;.:()[\]{}]/};a.string[1].inside.interpolation.inside.rest=a,t.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:a}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:a}}}},t.hooks.add("before-tokenize",function(i){var s=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(i,"ftl",s)}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"ftl")})})(e)}hf.displayName="gml";hf.aliases=["gamemakerlanguage"];function hf(e){e.register(pt),e.languages.gamemakerlanguage=e.languages.gml=e.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/})}gf.displayName="gap";gf.aliases=[];function gf(e){e.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:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}bf.displayName="gcode";bf.aliases=[];function bf(e){e.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:/[:*]/}}Ef.displayName="gdscript";Ef.aliases=[];function Ef(e){e.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:/[.:,;()[\]{}]/}}xf.displayName="gedcom";xf.aliases=[];function xf(e){e.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"}}}yf.displayName="gettext";yf.aliases=["po"];function yf(e){e.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:/[\[\]]/},e.languages.po=e.languages.gettext}Tf.displayName="gherkin";Tf.aliases=[];function Tf(e){(function(t){var n=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;t.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("("+n+")(?:"+n+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(n),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"}}})(e)}Sf.displayName="git";Sf.aliases=[];function Sf(e){e.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}}vf.displayName="glsl";vf.aliases=[];function vf(e){e.register(dr),e.languages.glsl=e.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/})}wf.displayName="gn";wf.aliases=["gni"];function wf(e){e.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:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}Af.displayName="linker-script";Af.aliases=["ld"];function Af(e){e.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:/[(){},;]/},e.languages.ld=e.languages["linker-script"]}Nf.displayName="go-module";Nf.aliases=["go-mod"];function Nf(e){e.languages["go-mod"]=e.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:/[()[\],]/}}_f.displayName="gradle";_f.aliases=[];function _f(e){e.register(pt),(function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.gradle=t.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:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.gradle})(e)}Cf.displayName="graphql";Cf.aliases=[];function Cf(e){e.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:e.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+/},e.hooks.add("after-tokenize",function(n){if(n.language!=="graphql")return;var r=n.tokens.filter(function(x){return typeof x!="string"&&x.type!=="comment"&&x.type!=="scalar"}),a=0;function i(x){return r[a+x]}function s(x,y){y=y||0;for(var S=0;S<x.length;S++){var v=i(S+y);if(!v||v.type!==x[S])return!1}return!0}function o(x,y){for(var S=1,v=a;v<r.length;v++){var w=r[v],R=w.content;if(w.type==="punctuation"&&typeof R=="string"){if(x.test(R))S++;else if(y.test(R)&&(S--,S===0))return v}}return-1}function u(x,y){var S=x.alias;S?Array.isArray(S)||(x.alias=S=[S]):x.alias=S=[],S.push(y)}for(;a<r.length;){var c=r[a++];if(c.type==="keyword"&&c.content==="mutation"){var p=[];if(s(["definition-mutation","punctuation"])&&i(1).content==="("){a+=2;var d=o(/^\($/,/^\)$/);if(d===-1)continue;for(;a<d;a++){var f=i(0);f.type==="variable"&&(u(f,"variable-input"),p.push(f.content))}a=d+1}if(s(["punctuation","property-query"])&&i(0).content==="{"&&(a++,u(i(0),"property-mutation"),p.length>0)){var m=o(/^\{$/,/^\}$/);if(m===-1)continue;for(var b=a;b<m;b++){var E=r[b];E.type==="variable"&&p.indexOf(E.content)>=0&&u(E,"variable-input")}}}}})}kf.displayName="groovy";kf.aliases=[];function kf(e){e.register(pt),(function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.groovy=t.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:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.groovy})(e)}If.displayName="textile";If.aliases=[];function If(e){e.register(gn),(function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function a(d,f){return RegExp(d.replace(/<MOD>/g,function(){return"(?:"+n+")"}).replace(/<PAR>/g,function(){return"(?:"+r+")"}),f||"")}var i={css:{pattern:/\{[^{}]+\}/,inside:{rest:t.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:a(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:a(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:i},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:a(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:a(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:i},punctuation:/^[*#]+/}},table:{pattern:a(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:a(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:i},punctuation:/\||^\./}},inline:{pattern:a(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:a(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:a(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:a(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:a(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:a(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:a(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:a(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:a(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:i},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:a(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:a(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:a(/(^")<MOD>+/.source),lookbehind:!0,inside:i},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:a(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:a(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:a(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:i},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:/[()]/}}}}}),o=s.phrase.inside,u={inline:o.inline,link:o.link,image:o.image,footnote:o.footnote,acronym:o.acronym,mark:o.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var c=o.inline.inside;c.bold.inside=u,c.italic.inside=u,c.inserted.inside=u,c.deleted.inside=u,c.span.inside=u;var p=o.table.inside;p.inline=u.inline,p.link=u.link,p.image=u.image,p.footnote=u.footnote,p.acronym=u.acronym,p.mark=u.mark})(e)}Rf.displayName="haml";Rf.aliases=[];function Rf(e){e.register(Sa),(function(t){t.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:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.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:t.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:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var n="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",r=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],a={},i=0,s=r.length;i<s;i++){var o=r[i];o=typeof o=="string"?{filter:o,language:o}:o,t.languages[o.language]&&(a["filter-"+o.filter]={pattern:RegExp(n.replace("{{filter_name}}",function(){return o.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[o.language,"language-"+o.language],inside:t.languages[o.language]}}})}t.languages.insertBefore("haml","filter",a)})(e)}Df.displayName="handlebars";Df.aliases=["hbs","mustache"];function Df(e){e.register(An),(function(t){t.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]+/},t.hooks.add("before-tokenize",function(n){var r=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;t.languages["markup-templating"].buildPlaceholders(n,"handlebars",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"handlebars")}),t.languages.hbs=t.languages.handlebars,t.languages.mustache=t.languages.handlebars})(e)}zs.displayName="haskell";zs.aliases=["hs"];function zs(e){e.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:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}Of.displayName="haxe";Of.aliases=[];function Of(e){e.register(pt),e.languages.haxe=e.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}|[-+*/%!=&|^])=?|[?:~]/}),e.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:e.languages.haxe}}},string:/[\s\S]+/}}}),e.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:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}Lf.displayName="hcl";Lf.aliases=[];function Lf(e){e.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:/[=\[\]{}]/}}Ff.displayName="hlsl";Ff.aliases=[];function Ff(e){e.register(dr),e.languages.hlsl=e.languages.extend("c",{"class-name":[e.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/})}Mf.displayName="hoon";Mf.aliases=[];function Mf(e){e.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:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}Pf.displayName="hpkp";Pf.aliases=[];function Pf(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}jf.displayName="hsts";jf.aliases=[];function jf(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}Bf.displayName="uri";Bf.aliases=["url"];function Bf(e){e.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":/\//}}},e.languages.url=e.languages.uri}Uf.displayName="http";Uf.aliases=[];function Uf(e){(function(t){function n(p){return RegExp("(^(?:"+p+"):[ ]*(?![ ]))[^]+","i")}t.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:t.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:n(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:t.languages.csp},{pattern:n(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:t.languages.hpkp},{pattern:n(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:t.languages.hsts},{pattern:n(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r=t.languages,a={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},i={"application/json":!0,"application/xml":!0};function s(p){var d=p.replace(/^[a-z]+\//,""),f="\\w+/(?:[\\w.-]+\\+)+"+d+"(?![+\\w.-])";return"(?:"+p+"|"+f+")"}var o;for(var u in a)if(a[u]){o=o||{};var c=i[u]?s(u):u;o[u.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+c+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:a[u]}}o&&t.languages.insertBefore("http","header",o)})(e)}$f.displayName="ichigojam";$f.aliases=[];function $f(e){e.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:/[\[,;:()\]]/}}zf.displayName="icon";zf.aliases=[];function zf(e){e.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:/[\[\](){},;]/}}Hf.displayName="icu-message-format";Hf.aliases=[];function Hf(e){(function(t){function n(u,c){return c<=0?/[]/.source:u.replace(/<SELF>/g,function(){return n(u,c-1)})}var r=/'[{}:=,](?:[^']|'')*'(?!')/,a={pattern:/''/,greedy:!0,alias:"operator"},i={pattern:r,greedy:!0,inside:{escape:a}},s=n(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return r.source}),8),o={pattern:RegExp(s),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(s),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":o,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":o,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+n(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:a,string:i},o.inside.message.inside=t.languages["icu-message-format"],t.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=t.languages["icu-message-format"]})(e)}Gf.displayName="idris";Gf.aliases=["idr"];function Gf(e){e.register(zs),e.languages.idris=e.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}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}Wf.displayName="ignore";Wf.aliases=["gitignore","hgignore","npmignore"];function Wf(e){(function(t){t.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},t.languages.gitignore=t.languages.ignore,t.languages.hgignore=t.languages.ignore,t.languages.npmignore=t.languages.ignore})(e)}Vf.displayName="inform7";Vf.aliases=[];function Vf(e){e.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:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}qf.displayName="io";qf.aliases=[];function qf(e){e.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:/[{}[\];(),.:]/}}Yf.displayName="j";Yf.aliases=[];function Yf(e){e.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:/[()]/}}gi.displayName="javadoclike";gi.aliases=[];function gi(e){(function(t){var n=t.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:/[{}]/};function r(i,s){var o="doc-comment",u=t.languages[i];if(u){var c=u[o];if(!c){var p={};p[o]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},u=t.languages.insertBefore(i,"comment",p),c=u[o]}if(c instanceof RegExp&&(c=u[o]={pattern:c}),Array.isArray(c))for(var d=0,f=c.length;d<f;d++)c[d]instanceof RegExp&&(c[d]={pattern:c[d]}),s(c[d]);else s(c)}}function a(i,s){typeof i=="string"&&(i=[i]),i.forEach(function(o){r(o,function(u){u.inside||(u.inside={}),u.inside.rest=s})})}Object.defineProperty(n,"addSupport",{value:a}),n.addSupport(["java","javascript","php"],n)})(e)}Zf.displayName="scala";Zf.aliases=[];function Zf(e){e.register(ya),e.languages.scala=e.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*/}),e.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:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function,delete e.languages.scala.constant}Kf.displayName="javadoc";Kf.aliases=[];function Kf(e){e.register(ya),e.register(gi),e.register(gn),(function(t){var n=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,r=/#\s*\w+(?:\s*\([^()]*\))?/.source,a=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return r});t.languages.javadoc=t.languages.extend("javadoclike",{}),t.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+a+")"),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:t.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:n,lookbehind:!0,inside:t.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:n,lookbehind:!0,inside:{tag:t.languages.markup.tag,entity:t.languages.markup.entity,code:{pattern:/.+/,inside:t.languages.java,alias:"language-java"}}}}}],tag:t.languages.markup.tag,entity:t.languages.markup.entity}),t.languages.javadoclike.addSupport("java",t.languages.javadoc)})(e)}Xf.displayName="javastacktrace";Xf.aliases=[];function Xf(e){e.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/}}}}Qf.displayName="jexl";Qf.aliases=[];function Qf(e){e.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:/[{}[\](),.]/}}Jf.displayName="jolie";Jf.aliases=[];function Jf(e){e.register(pt),e.languages.jolie=e.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/}),e.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]*:)/}})}em.displayName="jq";em.aliases=[];function em(e){(function(t){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,r=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),a={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},i=t.languages.jq={comment:/#.*/,property:{pattern:RegExp(r.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:a},string:{pattern:r,lookbehind:!0,greedy:!0,inside:a},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"}};a.interpolation.inside.content.inside=i})(e)}tm.displayName="js-templates";tm.aliases=[];function tm(e){e.register(wn),(function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,a=n.inside.interpolation,i=a.inside["interpolation-punctuation"],s=a.pattern.source;function o(b,E){if(t.languages[b])return{pattern:RegExp("((?:"+E+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:b}}}}t.languages.javascript["template-string"]=[o("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),o("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),o("svg",/\bsvg/.source),o("markdown",/\b(?:markdown|md)/.source),o("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),o("sql",/\bsql/.source),n].filter(Boolean);function u(b,E){return"___"+E.toUpperCase()+"_"+b+"___"}function c(b,E,x){var y={code:b,grammar:E,language:x};return t.hooks.run("before-tokenize",y),y.tokens=t.tokenize(y.code,y.grammar),t.hooks.run("after-tokenize",y),y.tokens}function p(b){var E={};E["interpolation-punctuation"]=i;var x=t.tokenize(b,E);if(x.length===3){var y=[1,1];y.push.apply(y,c(x[1],t.languages.javascript,"javascript")),x.splice.apply(x,y)}return new t.Token("interpolation",x,a.alias,b)}function d(b,E,x){var y=t.tokenize(b,{interpolation:{pattern:RegExp(s),lookbehind:!0}}),S=0,v={},w=y.map(function(_){if(typeof _=="string")return _;for(var L=_.content,C;b.indexOf(C=u(S++,x))!==-1;);return v[C]=L,C}).join(""),R=c(w,E,x),N=Object.keys(v);S=0;function T(_){for(var L=0;L<_.length;L++){if(S>=N.length)return;var C=_[L];if(typeof C=="string"||typeof C.content=="string"){var $=N[S],I=typeof C=="string"?C:C.content,P=I.indexOf($);if(P!==-1){++S;var W=I.substring(0,P),U=p(v[$]),ne=I.substring(P+$.length),z=[];if(W&&z.push(W),z.push(U),ne){var se=[ne];T(se),z.push.apply(z,se)}typeof C=="string"?(_.splice.apply(_,[L,1].concat(z)),L+=z.length-1):C.content=z}}else{var pe=C.content;Array.isArray(pe)?T(pe):T([pe])}}}return T(R),new t.Token(x,R,"language-"+x,b)}var f={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(b){if(!(b.language in f))return;function E(x){for(var y=0,S=x.length;y<S;y++){var v=x[y];if(typeof v!="string"){var w=v.content;if(!Array.isArray(w)){typeof w!="string"&&E([w]);continue}if(v.type==="template-string"){var R=w[1];if(w.length===3&&typeof R!="string"&&R.type==="embedded-code"){var N=m(R),T=R.alias,_=Array.isArray(T)?T[0]:T,L=t.languages[_];if(!L)continue;w[1]=d(N,L,_)}}else E(w)}}}E(b.tokens)});function m(b){return typeof b=="string"?b:Array.isArray(b)?b.map(m).join(""):m(b.content)}})(e)}nm.displayName="jsdoc";nm.aliases=[];function nm(e){e.register(gi),e.register(wn),e.register(fi),(function(t){var n=t.languages.javascript,r=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,a="(@(?:arg|argument|param|property)\\s+(?:"+r+"\\s+)?)";t.languages.jsdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp(a+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),t.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(a+/\[(?:(?!\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:n,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 r})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+r),lookbehind:!0,inside:{string:n.string,number:n.number,boolean:n.boolean,keyword:t.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:n,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)})(e)}rm.displayName="n4js";rm.aliases=["n4jsd"];function rm(e){e.register(wn),e.languages.n4js=e.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/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}am.displayName="js-extras";am.aliases=[];function am(e){e.register(wn),(function(t){t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.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"}]});function n(u,c){return RegExp(u.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),c)}t.languages.insertBefore("javascript","keyword",{imports:{pattern:n(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:n(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.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"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:n(/(\.\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 r=["function","function-variable","method","method-variable","property-access"],a=0;a<r.length;a++){var i=r[a],s=t.languages.javascript[i];t.util.type(s)==="RegExp"&&(s=t.languages.javascript[i]={pattern:s});var o=s.inside||{};s.inside=o,o["maybe-class-name"]=/^[A-Z][\s\S]*/}})(e)}im.displayName="json5";im.aliases=[];function im(e){e.register(di),(function(t){var n=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;t.languages.json5=t.languages.extend("json",{property:[{pattern:RegExp(n.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:n,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})})(e)}sm.displayName="jsonp";sm.aliases=[];function sm(e){e.register(di),e.languages.jsonp=e.languages.extend("json",{punctuation:/[{}[\]();,.]/}),e.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}om.displayName="jsstacktrace";om.aliases=[];function om(e){e.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:/:/}}}}}}lm.displayName="julia";lm.aliases=[];function lm(e){e.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|[πℯ]/}}um.displayName="keepalived";um.aliases=[];function um(e){e.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:/[\{\}]/}}cm.displayName="keyman";cm.aliases=[];function cm(e){e.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:/[()=,]/}}dm.displayName="kumir";dm.aliases=["kum"];function dm(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(a,i){return RegExp(a.replace(/<nonId>/g,n),i)}t.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:r(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:r(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:r(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:r(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:r(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:r(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:r(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:r(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},t.languages.kum=t.languages.kumir})(e)}pm.displayName="kusto";pm.aliases=[];function pm(e){e.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:/[()\[\]{},;.:]/}}fm.displayName="latex";fm.aliases=["context","tex"];function fm(e){(function(t){var n=/\\(?:[^a-z()[\]]|[a-z*]+)/i,r={"equation-command":{pattern:n,alias:"regex"}};t.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:r,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:r,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:n,alias:"selector"},punctuation:/[[\]{}&]/},t.languages.tex=t.languages.latex,t.languages.context=t.languages.latex})(e)}mm.displayName="latte";mm.aliases=[];function mm(e){e.register(pt),e.register(An),e.register(Ta),(function(t){t.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:t.languages.php}};var n=t.languages.extend("markup",{});t.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:t.languages.php}}}}}},n.tag),t.hooks.add("before-tokenize",function(r){if(r.language==="latte"){var a=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;t.languages["markup-templating"].buildPlaceholders(r,"latte",a),r.grammar=n}}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"latte")})})(e)}Hs.displayName="scheme";Hs.aliases=[];function Hs(e){(function(t){t.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(n({"<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 n(r){for(var a in r)r[a]=r[a].replace(/<[\w\s]+>/g,function(i){return"(?:"+r[i].trim()+")"});return r[a]}})(e)}hm.displayName="lilypond";hm.aliases=["ly"];function hm(e){e.register(Hs),(function(t){for(var n=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,r=5,a=0;a<r;a++)n=n.replace(/<expr>/g,function(){return n});n=n.replace(/<expr>/g,/[^\s\S]/.source);var i=t.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return n}),"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:t.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/};i["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=i,t.languages.ly=i})(e)}gm.displayName="liquid";gm.aliases=[];function gm(e){e.register(An),e.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"}},e.hooks.add("before-tokenize",function(t){var n=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,r=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",n,function(a){var i=/^\{%-?\s*(\w+)/.exec(a);if(i){var s=i[1];if(s==="raw"&&!r)return r=!0,!0;if(s==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}bm.displayName="lisp";bm.aliases=["elisp","emacs","emacs-lisp"];function bm(e){(function(t){function n(b){return RegExp(/(\()/.source+"(?:"+b+")"+/(?=[\s\)])/.source)}function r(b){return RegExp(/([\s([])/.source+"(?:"+b+")"+/(?=[\s)])/.source)}var a=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,i="&"+a,s="(\\()",o="(?=\\))",u="(?=\\s)",c=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,p={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+a+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+a),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+a),alias:"property"},splice:{pattern:RegExp(",@?"+a),alias:["symbol","variable"]},keyword:[{pattern:RegExp(s+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+u),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+u),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:r(/nil|t/.source),lookbehind:!0},number:{pattern:r(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(s+"def(?:const|custom|group|var)\\s+"+a),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(a)}},defun:{pattern:RegExp(s+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+a+/\s+\(/.source+c+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+a),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(s+"lambda\\s+\\(\\s*(?:&?"+a+"(?:\\s+&?"+a+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(s+a),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},d={"lisp-marker":RegExp(i),varform:{pattern:RegExp(/\(/.source+a+/\s+(?=\S)/.source+c+/\)/.source),inside:p},argument:{pattern:RegExp(/(^|[\s(])/.source+a),lookbehind:!0,alias:"variable"},rest:p},f="\\S+(?:\\s+\\S+)*",m={pattern:RegExp(s+c+o),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+f),inside:d},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+f),inside:d},keys:{pattern:RegExp("&key\\s+"+f+"(?:\\s+&allow-other-keys)?"),inside:d},argument:{pattern:RegExp(a),alias:"variable"},punctuation:/[()]/}};p.lambda.inside.arguments=m,p.defun.inside.arguments=t.util.clone(m),p.defun.inside.arguments.inside.sublist=m,t.languages.lisp=p,t.languages.elisp=p,t.languages.emacs=p,t.languages["emacs-lisp"]=p})(e)}Em.displayName="livescript";Em.aliases=[];function Em(e){e.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:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}xm.displayName="llvm";xm.aliases=[];function xm(e){(function(t){t.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:/[{}[\];(),.!*=<>]/}})(e)}ym.displayName="log";ym.aliases=[];function ym(e){e.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:e.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:/[\[\].,]/}}Tm.displayName="lolcode";Tm.aliases=[];function Tm(e){e.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}|…|,|!/}}Sm.displayName="magma";Sm.aliases=[];function Sm(e){e.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:/[()[\]{}<>,;.:]/}}tu.displayName="mata";tu.aliases=[];function tu(e){(function(t){var n=/\b(?:(?:col|row)?vector|matrix|scalar)\b/.source,r=/\bvoid\b|<org>|\b(?:complex|numeric|pointer(?:\s*\([^()]*\))?|real|string|(?:class|struct)\s+\w+|transmorphic)(?:\s*<org>)?/.source.replace(/<org>/g,n);t.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(r),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:/[()[\]{},;.]/}})(e)}vm.displayName="matlab";vm.aliases=[];function vm(e){e.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}|[.,;\[\](){}!]/}}wm.displayName="maxscript";wm.aliases=[];function wm(e){(function(t){var n=/\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;t.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)+")[ ]*)(?!"+n.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+n.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:n,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}})(e)}Am.displayName="mel";Am.aliases=[];function Am(e){e.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:/[.,:;?\[\](){}]/},e.languages.mel.code.inside.statement.inside=e.languages.mel}Nm.displayName="mermaid";Nm.aliases=[];function Nm(e){e.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:/[(){};]/}}_m.displayName="metafont";_m.aliases=[];function _m(e){e.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}}}Cm.displayName="mizar";Cm.aliases=[];function Cm(e){e.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:/\(#|#\)|[,:;\[\](){}]/}}km.displayName="mongodb";km.aliases=[];function km(e){e.register(wn),(function(t){var n=["$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"],r=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(i){return i.replace("$","\\$")});var a="(?:"+n.join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.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(`^(['"])?`+a+"(?:\\1)?$")}}}),t.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}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+r.join("|")+")\\b"),alias:"keyword"}})})(e)}Im.displayName="monkey";Im.aliases=[];function Im(e){e.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:/[.,:;()\[\]]/}}Rm.displayName="moonscript";Rm.aliases=["moon"];function Rm(e){e.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:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}Dm.displayName="n1ql";Dm.aliases=[];function Dm(e){e.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:/[;[\](),.{}:]/}}Om.displayName="nand2tetris-hdl";Om.aliases=[];function Om(e){e.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:/[{}[\];(),:]/}}Lm.displayName="naniscript";Lm.aliases=["nani"];function Lm(e){(function(t){var n=/\{[^\r\n\[\]{}]*\}/,r={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};t.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:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:r}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,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:r},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},t.languages.nani=t.languages.naniscript,t.hooks.add("after-tokenize",function(s){var o=s.tokens;o.forEach(function(u){if(typeof u!="string"&&u.type==="generic-text"){var c=i(u);a(c)||(u.type="bad-line",u.content=c)}})});function a(s){for(var o="[]{}",u=[],c=0;c<s.length;c++){var p=s[c],d=o.indexOf(p);if(d!==-1){if(d%2===0)u.push(d+1);else if(u.pop()!==d)return!1}}return u.length===0}function i(s){return typeof s=="string"?s:Array.isArray(s)?s.map(i).join(""):i(s.content)}})(e)}Fm.displayName="nasm";Fm.aliases=[];function Fm(e){e.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:/[\[\]*+\-\/%<>=&|$!]/}}Mm.displayName="neon";Mm.aliases=[];function Mm(e){e.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:/[,:=[\]{}()-]/}}Pm.displayName="nevod";Pm.aliases=[];function Pm(e){e.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\-.]+/}}jm.displayName="nginx";jm.aliases=[];function jm(e){(function(t){var n=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;t.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:n}},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:n}},punctuation:/[{};]/}})(e)}Bm.displayName="nim";Bm.aliases=[];function Bm(e){e.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:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}Um.displayName="nix";Um.aliases=[];function Um(e){e.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:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}$m.displayName="nsis";$m.aliases=[];function $m(e){e.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}}}zm.displayName="ocaml";zm.aliases=[];function zm(e){e.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/}}Hm.displayName="odin";Hm.aliases=[];function Hm(e){(function(t){var n=/\\(?:["'\\abefnrtv]|0[0-7]{2}|U[\dA-Fa-f]{6}|u[\dA-Fa-f]{4}|x[\dA-Fa-f]{2})/;t.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:n}},string:[{pattern:/`[^`]*`/,greedy:!0},{pattern:/"(?:\\.|[^\n\r"\\])*"/,greedy:!0,inside:{symbol:n}}],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:/[(),.:;@\[\]{}]/}})(e)}Gm.displayName="opencl";Gm.aliases=[];function Gm(e){e.register(dr),(function(t){t.languages.opencl=t.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"}}),t.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"}});var n={"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"}};t.languages.insertBefore("c","keyword",n),t.languages.cpp&&(n["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"},t.languages.insertBefore("cpp","keyword",n))})(e)}Wm.displayName="openqasm";Wm.aliases=["qasm"];function Wm(e){e.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:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}Vm.displayName="oz";Vm.aliases=[];function Vm(e){e.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:/[\[\](){}.:;?]/}}qm.displayName="parigp";qm.aliases=[];function qm(e){e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:(function(){var t=["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"];return t=t.map(function(n){return n.split("").join(" *")}).join("|"),RegExp("\\b(?:"+t+")\\b")})(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}Ym.displayName="parser";Ym.aliases=[];function Ym(e){e.register(gn),(function(t){var n=t.languages.parser=t.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:/[\[\](){};]/});n=t.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:n.keyword,variable:n.variable,function:n.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:n.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:n.punctuation}}}),t.languages.insertBefore("inside","punctuation",{expression:n.expression,keyword:n.keyword,variable:n.variable,function:n.function,escape:n.escape,"parser-punctuation":{pattern:n.punctuation,alias:"punctuation"}},n.tag.inside["attr-value"])})(e)}Zm.displayName="pascal";Zm.aliases=["objectpascal"];function Zm(e){e.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:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}Km.displayName="pascaligo";Km.aliases=[];function Km(e){(function(t){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,r=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return n}),a=t.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 r}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return r}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return r})),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:/\(\.|\.\)|[()\[\]:;,.{}]/},i=["comment","keyword","builtin","operator","punctuation"].reduce(function(s,o){return s[o]=a[o],s},{});a["class-name"].forEach(function(s){s.inside=i})})(e)}Xm.displayName="psl";Xm.aliases=[];function Xm(e){e.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:/[(){}\[\];,]/}}Qm.displayName="pcaxis";Qm.aliases=["px"];function Qm(e){e.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/},e.languages.px=e.languages.pcaxis}Jm.displayName="peoplecode";Jm.aliases=["pcode"];function Jm(e){e.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:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}eh.displayName="phpdoc";eh.aliases=[];function eh(e){e.register(gi),e.register(Ta),(function(t){var n=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;t.languages.phpdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+n+"\\s+)?)\\$\\w+"),lookbehind:!0}}),t.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+n),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),t.languages.javadoclike.addSupport("php",t.languages.phpdoc)})(e)}th.displayName="php-extras";th.aliases=[];function th(e){e.register(Ta),e.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:/::|\\/}}})}nh.displayName="plant-uml";nh.aliases=["plantuml"];function nh(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,a=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,i="(?:-+"+a+"-+|\\.+"+a+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",s=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,o=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,u=/[[?]?[ox]?/.source,c=/[ox]?[\]?]?/.source,p=u+"(?:"+i+o+"|"+s+i+"(?:"+o+")?)"+c;t.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:n}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+p+/(?![-.<>?|\\\]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:n,punctuation:/[:,;()[\]{}]|\.{3}/},t.languages["plant-uml"].arrow.inside.expression.inside=t.languages["plant-uml"],t.languages.plantuml=t.languages["plant-uml"]})(e)}rh.displayName="plsql";rh.aliases=[];function rh(e){e.register(pi),e.languages.plsql=e.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:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),e.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}ah.displayName="powerquery";ah.aliases=["mscript","pq"];function ah(e){e.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:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}ih.displayName="powershell";ih.aliases=[];function ih(e){(function(t){var n=t.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:/[|{}[\];(),.]/};n.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:n},boolean:n.boolean,variable:n.variable}})(e)}sh.displayName="processing";sh.aliases=[];function sh(e){e.register(pt),e.languages.processing=e.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:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.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"}})}oh.displayName="prolog";oh.aliases=[];function oh(e){e.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:/[(){}\[\],]/}}lh.displayName="promql";lh.aliases=[];function lh(e){(function(t){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],r=["on","ignoring","group_right","group_left","by","without"],a=["offset"],i=n.concat(r,a);t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+r.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:new RegExp("\\b(?:"+i.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:/[{};()`,.[\]]/}})(e)}uh.displayName="properties";uh.aliases=[];function uh(e){e.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:/[=:]/}}ch.displayName="protobuf";ch.aliases=[];function ch(e){e.register(pt),(function(t){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;t.languages.protobuf=t.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}),t.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:n}},builtin:n,"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}})})(e)}dh.displayName="stylus";dh.aliases=[];function dh(e){(function(t){var n={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},r={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},a={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:n,number:r,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:n,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:r,punctuation:/[{}()\[\];:,]/};a.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:a}},a.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:a}},t.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:a}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:a}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:a}},"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:a.interpolation}},rest:a}},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:a.interpolation,comment:a.comment,punctuation:/[{},]/}},func:a.func,string:a.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:a.interpolation,punctuation:/[{}()\[\];:.]/}})(e)}ph.displayName="twig";ph.aliases=[];function ph(e){e.register(An),e.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:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",function(t){if(t.language==="twig"){var n=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;e.languages["markup-templating"].buildPlaceholders(t,"twig",n)}}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")})}fh.displayName="pug";fh.aliases=[];function fh(e){e.register(wn),e.register(gn),(function(t){t.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:t.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:t.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:t.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:t.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:t.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:t.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:t.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:t.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,r=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],a={},i=0,s=r.length;i<s;i++){var o=r[i];o=typeof o=="string"?{filter:o,language:o}:o,t.languages[o.language]&&(a["filter-"+o.filter]={pattern:RegExp(n.replace("<filter_name>",function(){return o.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[o.language,"language-"+o.language],inside:t.languages[o.language]}}})}t.languages.insertBefore("pug","filter",a)})(e)}mh.displayName="puppet";mh.aliases=[];function mh(e){(function(t){t.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:/[\[\]{}().,;]|:+/};var n=[{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:t.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];t.languages.puppet.heredoc[0].inside.interpolation=n,t.languages.puppet.string.inside["double-quoted"].inside.interpolation=n})(e)}hh.displayName="pure";hh.aliases=[];function hh(e){(function(t){t.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:/[(){}\[\];,|]/};var n=["c",{lang:"c++",alias:"cpp"},"fortran"],r=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(a){var i=a;if(typeof a!="string"&&(i=a.alias,a=a.lang),t.languages[i]){var s={};s["inline-lang-"+i]={pattern:RegExp(r.replace("<lang>",a.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},s["inline-lang-"+i].inside.rest=t.util.clone(t.languages[i]),t.languages.insertBefore("pure","inline-lang",s)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}gh.displayName="purebasic";gh.aliases=["pbfasm"];function gh(e){e.register(pt),e.languages.purebasic=e.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+\$?|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.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 e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}bh.displayName="purescript";bh.aliases=["purs"];function bh(e){e.register(zs),e.languages.purescript=e.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:[e.languages.haskell.operator[0],e.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]/]}),e.languages.purs=e.languages.purescript}Eh.displayName="qsharp";Eh.aliases=["qs"];function Eh(e){e.register(pt),(function(t){function n(m,b){return m.replace(/<<(\d+)>>/g,function(E,x){return"(?:"+b[+x]+")"})}function r(m,b,E){return RegExp(n(m,b),"")}function a(m,b){for(var E=0;E<b;E++)m=m.replace(/<<self>>/g,function(){return"(?:"+m+")"});return m.replace(/<<self>>/g,"[^\\s\\S]")}var i={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"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"};function s(m){return"\\b(?:"+m.trim().replace(/ /g,"|")+")\\b"}var o=RegExp(s(i.type+" "+i.other)),u=/\b[A-Za-z_]\w*\b/.source,c=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[u]),p={keyword:o,punctuation:/[<>()?,.:[\]]/},d=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[d]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[c]),lookbehind:!0,inside:p},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[c]),lookbehind:!0,inside:p}],keyword:o,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:/::|[{}[\];(),.:]/}),t.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var f=a(n(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[d]),2);t.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:r(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[f]),greedy:!0,inside:{interpolation:{pattern:r(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[f]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:t.languages.qsharp}}},string:/[\s\S]+/}}})})(e),e.languages.qs=e.languages.qsharp}xh.displayName="q";xh.aliases=[];function xh(e){e.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:/[(){}\[\];.]/}}yh.displayName="qml";yh.aliases=[];function yh(e){e.register(wn),(function(t){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,r=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,a=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return n}).replace(/<comment>/g,function(){return r}),i=0;i<2;i++)a=a.replace(/<expr>/g,function(){return a});a=a.replace(/<expr>/g,"[^\\s\\S]"),t.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 a}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.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 a}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(e)}Th.displayName="qore";Th.aliases=[];function Th(e){e.register(pt),e.languages.qore=e.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/})}Sh.displayName="racket";Sh.aliases=["rkt"];function Sh(e){e.register(Hs),e.languages.racket=e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),e.languages.rkt=e.languages.racket}vh.displayName="cshtml";vh.aliases=["razor"];function vh(e){e.register(xa),e.register(gn),(function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function a(S,v){for(var w=0;w<v;w++)S=S.replace(/<self>/g,function(){return"(?:"+S+")"});return S.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+r+")").replace(/<comment>/g,"(?:"+n+")")}var i=a(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),s=a(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,1),o=a(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),u=a(/<(?:[^<>'"@/]|<comment>|<self>)*>/.source,1),c=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+i+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+u+")?"+i+"|"+s+")*"+/(?![?!\.(\[]|<(?!\/))/.source,p=/@(?![\w()])/.source+"|"+c,d="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+p+`)[^"'@]*)+["'])`,f=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*<tagAttrValue>|(?=[\s/>])))+)?/.source.replace(/<tagAttrValue>/,d),m=/(?!\d)[^\s>\/=$<%]+/.source+f+/\s*\/?>/.source,b=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+f+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+m+"|"+a(/<\1/.source+f+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+m+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+m+")";t.languages.cshtml=t.languages.extend("markup",{});var E=t.languages.insertBefore("csharp","string",{html:{pattern:RegExp(b),greedy:!0,inside:t.languages.cshtml}},{csharp:t.languages.extend("csharp",{})}),x={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:E},y={pattern:RegExp(/(^|[^@])/.source+c),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:x}};t.languages.cshtml.tag.pattern=RegExp(/<\/?/.source+m),t.languages.cshtml.tag.inside["attr-value"].pattern=RegExp(/=\s*/.source+d),t.languages.insertBefore("inside","punctuation",{value:y},t.languages.cshtml.tag.inside["attr-value"]),t.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[o,/(?:code|functions)\s*/.source+o,/(?:for|foreach|lock|switch|using|while)\s*/.source+i+/\s*/.source+o,/do\s*/.source+o+/\s*while\s*/.source+i+/(?:\s*;)?/.source,/try\s*/.source+o+/\s*catch\s*/.source+i+/\s*/.source+o+/\s*finally\s*/.source+o,/if\s*/.source+i+/\s*/.source+o+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+i+")?"+/\s*/.source+o+")*",/helper\s+\w+\s*/.source+i+/\s*/.source+o].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:x}},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:x}},value:y,"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),t.languages.razor=t.languages.cshtml})(e)}nu.displayName="jsx";nu.aliases=[];function nu(e){e.register(wn),e.register(gn),(function(t){var n=t.util.clone(t.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,a=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function s(c,p){return c=c.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return a}).replace(/<SPREAD>/g,function(){return i}),RegExp(c,p)}i=s(i).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:s(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var o=function(c){return c?typeof c=="string"?c:typeof c.content=="string"?c.content:c.content.map(o).join(""):""},u=function(c){for(var p=[],d=0;d<c.length;d++){var f=c[d],m=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?p.length>0&&p[p.length-1].tagName===o(f.content[0].content[1])&&p.pop():f.content[f.content.length-1].content==="/>"||p.push({tagName:o(f.content[0].content[1]),openedBraces:0}):p.length>0&&f.type==="punctuation"&&f.content==="{"?p[p.length-1].openedBraces++:p.length>0&&p[p.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?p[p.length-1].openedBraces--:m=!0),(m||typeof f=="string")&&p.length>0&&p[p.length-1].openedBraces===0){var b=o(f);d<c.length-1&&(typeof c[d+1]=="string"||c[d+1].type==="plain-text")&&(b+=o(c[d+1]),c.splice(d+1,1)),d>0&&(typeof c[d-1]=="string"||c[d-1].type==="plain-text")&&(b=o(c[d-1])+b,c.splice(d-1,1),d--),c[d]=new t.Token("plain-text",b,null,b)}f.content&&typeof f.content!="string"&&u(f.content)}};t.hooks.add("after-tokenize",function(c){c.language!=="jsx"&&c.language!=="tsx"||u(c.tokens)})})(e)}wh.displayName="tsx";wh.aliases=[];function wh(e){e.register(nu),e.register(fi),(function(t){var n=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",n),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var r=t.languages.tsx.tag;r.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+r.pattern.source+")",r.pattern.flags),r.lookbehind=!0})(e)}Ah.displayName="reason";Ah.aliases=[];function Ah(e){e.register(pt),e.languages.reason=e.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/}),e.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 e.languages.reason.function}Nh.displayName="rego";Nh.aliases=[];function Nh(e){e.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:/[,;.\[\]{}()]/}}_h.displayName="renpy";_h.aliases=["rpy"];function _h(e){e.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:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}Ch.displayName="rescript";Ch.aliases=["res"];function Ch(e){e.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:/[(){}[\],;.]/},e.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:e.languages.rescript}},string:/[\s\S]+/}}}),e.languages.res=e.languages.rescript}kh.displayName="rest";kh.aliases=[];function kh(e){e.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}}}Ih.displayName="rip";Ih.aliases=[];function Ih(e){e.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`'",.:;#\/\\()<>\[\]{}]*/}}Rh.displayName="roboconf";Rh.aliases=[];function Rh(e){e.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:/[{},.;:=]/}}Dh.displayName="robotframework";Dh.aliases=["robot"];function Dh(e){(function(t){var n={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},r={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function a(u,c){var p={};p["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var d in c)p[d]=c[d];return p.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},p.variable=r,p.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return u}),"im"),alias:"section",inside:p}}var i={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},s={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},o={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:r}};t.languages.robotframework={settings:a("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:a("Variables"),"test-cases":a("Test Cases",{"test-name":s,documentation:i,property:o}),keywords:a("Keywords",{"keyword-name":s,documentation:i,property:o}),tasks:a("Tasks",{"task-name":s,documentation:i,property:o}),comment:n},t.languages.robot=t.languages.robotframework})(e)}Oh.displayName="sas";Oh.aliases=[];function Oh(e){(function(t){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,r=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,a={pattern:RegExp(n+"[bx]"),alias:"number"},i={pattern:/&[a-z_]\w*/i},s={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"},o={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},u=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],c={pattern:RegExp(n),greedy:!0},p=/[$%@.(){}\[\];,\\]/,d={pattern:/%?\b\w+(?=\()/,alias:"keyword"},f={function:d,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":i,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":a,punctuation:p,string:c},m={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},b={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},E={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"},x={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},y=/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,S={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return y}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return y}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:u,function:d,"arg-value":f["arg-value"],operator:f.operator,argument:f.arg,number:r,"numeric-constant":a,punctuation:p,string:c}},v={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};t.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 n}),"im"),alias:"language-sql",inside:t.languages.sql},"global-statements":E,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:r,"numeric-constant":a,punctuation:p,string:c}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return n}),"im"),lookbehind:!0,alias:"language-groovy",inside:t.languages.groovy},keyword:v,"submit-statement":x,"global-statements":E,number:r,"numeric-constant":a,punctuation:p,string:c}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return n}),"im"),lookbehind:!0,alias:"language-lua",inside:t.languages.lua},keyword:v,"submit-statement":x,"global-statements":E,number:r,"numeric-constant":a,punctuation:p,string:c}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:f}},"cas-actions":S,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:f},step:o,keyword:v,function:d,format:m,altformat:b,"global-statements":E,number:r,"numeric-constant":a,punctuation:p,string:c}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return n}),"im"),lookbehind:!0,inside:f},"macro-keyword":s,"macro-variable":i,"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":s,"macro-variable":i,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:p}},"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:u,number:r,"numeric-constant":a}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:f},"cas-actions":S,comment:u,function:d,format:m,altformat:b,"numeric-constant":a,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:c,step:o,keyword:v,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:p}})(e)}Lh.displayName="shell-session";Lh.aliases=["sh-session","shellsession"];function Lh(e){e.register(Fs),(function(t){var n=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");t.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 n}),"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:t.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},t.languages["sh-session"]=t.languages.shellsession=t.languages["shell-session"]})(e)}Fh.displayName="smali";Fh.aliases=[];function Fh(e){e.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:/[{}(),;:]/}}Mh.displayName="smalltalk";Mh.aliases=[];function Mh(e){e.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:/[.;:?\[\](){}]/}}Ph.displayName="smarty";Ph.aliases=[];function Ph(e){e.register(An),(function(t){t.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:t.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/]},t.languages.smarty["embedded-php"].inside.smarty.inside=t.languages.smarty,t.languages.smarty.string[0].inside.interpolation.inside.expression.inside=t.languages.smarty;var n=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,r=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return n.source}),"g");t.hooks.add("before-tokenize",function(a){var i="{literal}",s="{/literal}",o=!1;t.languages["markup-templating"].buildPlaceholders(a,"smarty",r,function(u){return u===s&&(o=!1),o?!1:(u===i&&(o=!0),!0)})}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"smarty")})})(e)}jh.displayName="sml";jh.aliases=["smlnj"];function jh(e){(function(t){var n=/\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;t.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 n.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:n,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:/[(){}\[\].:,;]/},t.languages.sml["class-name"][0].inside=t.languages.sml,t.languages.smlnj=t.languages.sml})(e)}Bh.displayName="solidity";Bh.aliases=["sol"];function Bh(e){e.register(pt),e.languages.solidity=e.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:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.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/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}Uh.displayName="solution-file";Uh.aliases=["sln"];function Uh(e){(function(t){var n={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};t.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:n}},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:n}},guid:n,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},t.languages.sln=t.languages["solution-file"]})(e)}$h.displayName="soy";$h.aliases=[];function $h(e){e.register(An),(function(t){var n=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;t.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:n,greedy:!0},number:r,punctuation:/[\[\].?]/}},string:{pattern:n,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:r,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},t.hooks.add("before-tokenize",function(a){var i=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,s="{literal}",o="{/literal}",u=!1;t.languages["markup-templating"].buildPlaceholders(a,"soy",i,function(c){return c===o&&(u=!1),u?!1:(c===s&&(u=!0),!0)})}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"soy")})})(e)}ru.displayName="turtle";ru.aliases=["trig"];function ru(e){e.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:/@/}}},e.languages.trig=e.languages.turtle}zh.displayName="sparql";zh.aliases=["rq"];function zh(e){e.register(ru),e.languages.sparql=e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),e.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]}),e.languages.rq=e.languages.sparql}Hh.displayName="splunk-spl";Hh.aliases=[];function Hh(e){e.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:/[()[\],]/}}Gh.displayName="sqf";Gh.aliases=[];function Gh(e){e.register(pt),e.languages.sqf=e.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}),e.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:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}Wh.displayName="squirrel";Wh.aliases=[];function Wh(e){e.register(pt),e.languages.squirrel=e.languages.extend("clike",{comment:[e.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:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}Vh.displayName="stan";Vh.aliases=[];function Vh(e){(function(t){var n=/\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/;t.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("("+n.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/,n],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:/[()\[\]{},;]/},t.languages.stan.constraint.inside.expression.inside=t.languages.stan})(e)}qh.displayName="stata";qh.aliases=[];function qh(e){e.register(ya),e.register(tu),e.register(js),e.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:e.languages.mata},java:{pattern:/(^[ \t]*java[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-java",inside:e.languages.java},python:{pattern:/(^[ \t]*python[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-python",inside:e.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:/[(){}[\],:]/},e.languages.stata["string-literal"].inside.interpolation.inside.expression.inside=e.languages.stata}Yh.displayName="iecst";Yh.aliases=[];function Yh(e){e.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:/[()[\].,;]/}}Zh.displayName="supercollider";Zh.aliases=["sclang"];function Zh(e){e.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:/[{}()[\].:,;]|#[[{]/},e.languages.sclang=e.languages.supercollider}Kh.displayName="systemd";Kh.aliases=[];function Kh(e){(function(t){var n={pattern:/^[;#].*/m,greedy:!0},r=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;t.languages.systemd={comment:n,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+"(?:"+r+`|(?=[^"\r
|
|
8
|
-
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+r+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^|\s)/.source+r),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(e)}Gs.displayName="t4-templating";Gs.aliases=[];function Gs(e){(function(t){function n(a,i,s){return{pattern:RegExp("<#"+a+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+a+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:i,alias:s}}}}function r(a){var i=t.languages[a],s="language-"+a;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",i,s),"class-feature":n("\\+",i,s),standard:n("",i,s)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}Xh.displayName="t4-cs";Xh.aliases=["t4"];function Xh(e){e.register(xa),e.register(Gs),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}Qh.displayName="t4-vb";Qh.aliases=[];function Qh(e){e.register(Gs),e.register(Us),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}Jh.displayName="tap";Jh.aliases=[];function Jh(e){e.register(Ps),e.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:e.languages.yaml,alias:"language-yaml"}}}eg.displayName="tcl";eg.aliases=[];function eg(e){e.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:/[{}()\[\]]/}}tg.displayName="tt2";tg.aliases=[];function tg(e){e.register(pt),e.register(An),(function(t){t.languages.tt2=t.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:/[[\]{},()]/}),t.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),t.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),t.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 t.languages.tt2.string,t.hooks.add("before-tokenize",function(n){var r=/\[%[\s\S]+?%\]/g;t.languages["markup-templating"].buildPlaceholders(n,"tt2",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"tt2")})})(e)}ng.displayName="toml";ng.aliases=[];function ng(e){(function(t){var n=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function r(a){return a.replace(/__/g,function(){return n})}t.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(r(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(r(/(^[\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:/[.,=[\]{}]/}})(e)}rg.displayName="tremor";rg.aliases=["trickle","troy"];function rg(e){(function(t){t.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:/::|[;\[\]()\{\},.:]/};var n=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;t.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+n+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+n+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(n),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.tremor}}},string:/[\s\S]+/}},t.languages.troy=t.languages.tremor,t.languages.trickle=t.languages.tremor})(e)}ag.displayName="typoscript";ag.aliases=["tsconfig"];function ag(e){(function(t){var n=/\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/;t.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:n}},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:n,number:/^\d+$/,punctuation:/[,|:]/}},keyword:n,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},t.languages.tsconfig=t.languages.typoscript})(e)}ig.displayName="unrealscript";ig.aliases=["uc","uscript"];function ig(e){e.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:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}sg.displayName="uorazor";sg.aliases=[];function sg(e){e.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:/[()\[\]{}:.,]/}}og.displayName="v";og.aliases=[];function og(e){e.register(pt),(function(t){var n={pattern:/[\s\S]+/,inside:null};t.languages.v=t.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":n}}}},"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/}),n.inside=t.languages.v,t.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),t.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+/}}}),t.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:t.languages.v.generic.inside}}}})})(e)}lg.displayName="vala";lg.aliases=[];function lg(e){e.register(pt),e.languages.vala=e.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/}),e.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:e.languages.vala}},string:/[\s\S]+/}}}),e.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:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}ug.displayName="velocity";ug.aliases=[];function ug(e){e.register(gn),(function(t){t.languages.velocity=t.languages.extend("markup",{});var n={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:/[(){}[\]:,.]/};n.variable.inside={string:n.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:n.number,boolean:n.boolean,punctuation:n.punctuation},t.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:n}},variable:n.variable}),t.languages.velocity.tag.inside["attr-value"].inside.rest=t.languages.velocity})(e)}cg.displayName="verilog";cg.aliases=[];function cg(e){e.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:/[[\];(),.:]/}}dg.displayName="vhdl";dg.aliases=[];function dg(e){e.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:/[{}[\];(),.:]/}}pg.displayName="vim";pg.aliases=[];function pg(e){e.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:/[{}[\](),;:]/}}fg.displayName="visual-basic";fg.aliases=["vb","vba"];function fg(e){e.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:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}mg.displayName="warpscript";mg.aliases=[];function mg(e){e.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/}}hg.displayName="wasm";hg.aliases=[];function hg(e){e.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:/[()]/}}gg.displayName="web-idl";gg.aliases=["webidl"];function gg(e){(function(t){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,r="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,a={};t.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:a},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+r),lookbehind:!0,inside:a},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+r),lookbehind:!0,inside:a},{pattern:RegExp(/(\btypedef\b\s*)/.source+r),lookbehind:!0,inside:a},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(r+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:a}],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:/[(){}[\].,;]/};for(var i in t.languages["web-idl"])i!=="class-name"&&(a[i]=t.languages["web-idl"][i]);t.languages.webidl=t.languages["web-idl"]})(e)}bg.displayName="wgsl";bg.aliases=[];function bg(e){e.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:/[@(){}[\],;<>:.]/}}Eg.displayName="wiki";Eg.aliases=[];function Eg(e){e.register(gn),e.languages.wiki=e.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:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.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:e.languages.markup.tag.inside}}}})}xg.displayName="wolfram";xg.aliases=["mathematica","nb","wl"];function xg(e){e.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:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}yg.displayName="wren";yg.aliases=[];function yg(e){e.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:/[\[\](){}.,;]/},e.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:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}Tg.displayName="xeora";Tg.aliases=["xeoracube"];function Tg(e){e.register(gn),(function(t){t.languages.xeora=t.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"}}),t.languages.insertBefore("inside","punctuation",{variable:t.languages.xeora["function-inline"].inside.variable},t.languages.xeora["function-block"]),t.languages.xeoracube=t.languages.xeora})(e)}Sg.displayName="xml-doc";Sg.aliases=[];function Sg(e){e.register(gn),(function(t){function n(s,o){t.languages[s]&&t.languages.insertBefore(s,"comment",{"doc-comment":o})}var r=t.languages.markup.tag,a={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},i={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",a),n("fsharp",a),n("vbnet",i)})(e)}vg.displayName="xojo";vg.aliases=[];function vg(e){e.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:/[.,;:()]/}}wg.displayName="xquery";wg.aliases=[];function wg(e){e.register(gn),(function(t){t.languages.xquery=t.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:/[[\](){},;:/]/}),t.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,t.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,t.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,t.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:t.languages.xquery,alias:"language-xquery"};var n=function(a){return typeof a=="string"?a:typeof a.content=="string"?a.content:a.content.map(n).join("")},r=function(a){for(var i=[],s=0;s<a.length;s++){var o=a[s],u=!1;if(typeof o!="string"&&(o.type==="tag"&&o.content[0]&&o.content[0].type==="tag"?o.content[0].content[0].content==="</"?i.length>0&&i[i.length-1].tagName===n(o.content[0].content[1])&&i.pop():o.content[o.content.length-1].content==="/>"||i.push({tagName:n(o.content[0].content[1]),openedBraces:0}):i.length>0&&o.type==="punctuation"&&o.content==="{"&&(!a[s+1]||a[s+1].type!=="punctuation"||a[s+1].content!=="{")&&(!a[s-1]||a[s-1].type!=="plain-text"||a[s-1].content!=="{")?i[i.length-1].openedBraces++:i.length>0&&i[i.length-1].openedBraces>0&&o.type==="punctuation"&&o.content==="}"?i[i.length-1].openedBraces--:o.type!=="comment"&&(u=!0)),(u||typeof o=="string")&&i.length>0&&i[i.length-1].openedBraces===0){var c=n(o);s<a.length-1&&(typeof a[s+1]=="string"||a[s+1].type==="plain-text")&&(c+=n(a[s+1]),a.splice(s+1,1)),s>0&&(typeof a[s-1]=="string"||a[s-1].type==="plain-text")&&(c=n(a[s-1])+c,a.splice(s-1,1),s--),/^\s+$/.test(c)?a[s]=c:a[s]=new t.Token("plain-text",c,null,c)}o.content&&typeof o.content!="string"&&r(o.content)}};t.hooks.add("after-tokenize",function(a){a.language==="xquery"&&r(a.tokens)})})(e)}Ag.displayName="yang";Ag.aliases=[];function Ag(e){e.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:/[{};:]/}}Ng.displayName="zig";Ng.aliases=[];function Ng(e){(function(t){function n(c){return function(){return c}}var r=/\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/,a="\\b(?!"+r.source+")(?!\\d)\\w+\\b",i=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,n(i)),o=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,n(a)),u="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+o+")+";t.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,n(u)).replace(/<ALIGN>/g,n(i))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,n(u)).replace(/<ALIGN>/g,n(i))),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:r,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:/[.:,;(){}[\]]/},t.languages.zig["class-name"].forEach(function(c){c.inside===null&&(c.inside=t.languages.zig)})})(e)}A.register(gn);A.register(ea);A.register(pt);A.register($l);A.register(wn);A.register(zd);A.register(Hd);A.register(Gd);A.register(Wd);A.register(Vd);A.register(qd);A.register(Yd);A.register(Zd);A.register(pi);A.register(Kd);A.register(Xd);A.register(Qd);A.register(Jd);A.register(dr);A.register(Ea);A.register(Pl);A.register(ep);A.register(tp);A.register(Fs);A.register(Ps);A.register(Wl);A.register(np);A.register(rp);A.register(xa);A.register(ap);A.register(ip);A.register(sp);A.register(op);A.register(lp);A.register(up);A.register(cp);A.register(dp);A.register(Bs);A.register(pp);A.register(fp);A.register(mp);A.register(hp);A.register(gp);A.register(bp);A.register(Ep);A.register(xp);A.register(yp);A.register(Tp);A.register(Sp);A.register(vp);A.register(wp);A.register(Ap);A.register(Np);A.register(_p);A.register(Cp);A.register(kp);A.register(Ip);A.register(Rp);A.register(Dp);A.register(Op);A.register(Lp);A.register(Fp);A.register(Mp);A.register(Sa);A.register(Pp);A.register(jp);A.register(Bp);A.register(Up);A.register($p);A.register(zp);A.register(Hp);A.register(Gp);A.register(Wp);A.register(Vp);A.register(jl);A.register(An);A.register(qp);A.register(Yp);A.register(Zp);A.register(Kp);A.register(Xp);A.register(Qp);A.register(Jp);A.register(ef);A.register(tf);A.register(nf);A.register(Ms);A.register(rf);A.register(af);A.register(sf);A.register(of);A.register(lf);A.register(uf);A.register(cf);A.register(df);A.register(pf);A.register(ff);A.register(mf);A.register(hf);A.register(gf);A.register(bf);A.register(Ef);A.register(xf);A.register(yf);A.register(Tf);A.register(Sf);A.register(vf);A.register(wf);A.register(Af);A.register(Bl);A.register(Nf);A.register(_f);A.register(Cf);A.register(kf);A.register(Hl);A.register(Xl);A.register(If);A.register(Rf);A.register(Df);A.register(zs);A.register(Of);A.register(Lf);A.register(Ff);A.register(Mf);A.register(Pf);A.register(jf);A.register(di);A.register(Bf);A.register(Uf);A.register($f);A.register(zf);A.register(Hf);A.register(Gf);A.register(Wf);A.register(Vf);A.register(Ul);A.register(qf);A.register(Yf);A.register(ya);A.register(Ta);A.register(gi);A.register(Zf);A.register(Kf);A.register(Xf);A.register(Qf);A.register(Jf);A.register(em);A.register(tm);A.register(fi);A.register(nm);A.register(rm);A.register(am);A.register(im);A.register(sm);A.register(om);A.register(lm);A.register(um);A.register(cm);A.register(zl);A.register(dm);A.register(pm);A.register(fm);A.register(mm);A.register(Hs);A.register(hm);A.register(gm);A.register(bm);A.register(Em);A.register(xm);A.register(ym);A.register(Tm);A.register(Sm);A.register(Gl);A.register(tu);A.register(vm);A.register(wm);A.register(Am);A.register(Nm);A.register(_m);A.register(Cm);A.register(km);A.register(Im);A.register(Rm);A.register(Dm);A.register(Om);A.register(Lm);A.register(Fm);A.register(Mm);A.register(Pm);A.register(jm);A.register(Bm);A.register(Um);A.register($m);A.register(Vl);A.register(zm);A.register(Hm);A.register(Gm);A.register(Wm);A.register(Vm);A.register(qm);A.register(Ym);A.register(Zm);A.register(Km);A.register(Xm);A.register(Qm);A.register(Jm);A.register(ql);A.register(eh);A.register(th);A.register(nh);A.register(rh);A.register(ah);A.register(ih);A.register(sh);A.register(oh);A.register(lh);A.register(uh);A.register(ch);A.register(dh);A.register(ph);A.register(fh);A.register(mh);A.register(hh);A.register(gh);A.register(bh);A.register(js);A.register(Eh);A.register(xh);A.register(yh);A.register(Th);A.register(Yl);A.register(Sh);A.register(vh);A.register(nu);A.register(wh);A.register(Ah);A.register(Nh);A.register(_h);A.register(Ch);A.register(kh);A.register(Ih);A.register(Rh);A.register(Dh);A.register(Zl);A.register(Oh);A.register(Kl);A.register(Lh);A.register(Fh);A.register(Mh);A.register(Ph);A.register(jh);A.register(Bh);A.register(Uh);A.register($h);A.register(ru);A.register(zh);A.register(Hh);A.register(Gh);A.register(Wh);A.register(Vh);A.register(qh);A.register(Yh);A.register(Zh);A.register(Ql);A.register(Kh);A.register(Gs);A.register(Xh);A.register(Us);A.register(Qh);A.register(Jh);A.register(eg);A.register(tg);A.register(ng);A.register(rg);A.register(ag);A.register(ig);A.register(sg);A.register(og);A.register(lg);A.register(ug);A.register(cg);A.register(dg);A.register(pg);A.register(fg);A.register(mg);A.register(hg);A.register(gg);A.register(bg);A.register(Eg);A.register(xg);A.register(yg);A.register(Tg);A.register(Sg);A.register(vg);A.register(wg);A.register(Ag);A.register(Ng);function Wc(){Wc=function(a,i){return new n(a,void 0,i)};var e=RegExp.prototype,t=new WeakMap;function n(a,i,s){var o=new RegExp(a,i);return t.set(o,s||t.get(a)),Zo(o,n.prototype)}function r(a,i){var s=t.get(i);return Object.keys(s).reduce(function(o,u){var c=s[u];if(typeof c=="number")o[u]=a[c];else{for(var p=0;a[c[p]]===void 0&&p+1<c.length;)p++;o[u]=a[c[p]]}return o},Object.create(null))}return(function(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),i&&Zo(a,i)})(n,RegExp),n.prototype.exec=function(a){var i=e.exec.call(this,a);if(i){i.groups=r(i,this);var s=i.indices;s&&(s.groups=r(s,this))}return i},n.prototype[Symbol.replace]=function(a,i){if(typeof i=="string"){var s=t.get(this);return e[Symbol.replace].call(this,a,i.replace(/\$<([^>]+)>/g,function(u,c){var p=s[c];return"$"+(Array.isArray(p)?p.join("$"):p)}))}if(typeof i=="function"){var o=this;return e[Symbol.replace].call(this,a,function(){var u=arguments;return typeof u[u.length-1]!="object"&&(u=[].slice.call(u)).push(r(u,o)),i.apply(this,u)})}return e[Symbol.replace].call(this,a,i)},Wc.apply(this,arguments)}function Zo(e,t){return Zo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Zo(e,t)}function x0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ju(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=(function(a,i){if(a){if(typeof a=="string")return x0(a,i);var s=Object.prototype.toString.call(a).slice(8,-1);return s==="Object"&&a.constructor&&(s=a.constructor.name),s==="Map"||s==="Set"?Array.from(a):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?x0(a,i):void 0}})(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
9
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var gC=function(e){return function(t){return t===void 0&&(t={}),(function(r,a){if(a&&!r.registered(a))throw new Error('The default language "'+a+'" is not registered with refractor.')})(e,t.defaultLanguage),function(r){$n(r,"element",n)};function n(r,a,i){var s,o;if(i&&i.tagName==="pre"&&r.tagName==="code"){var u=(r==null||(s=r.data)==null?void 0:s.meta)||(r==null||(o=r.properties)==null?void 0:o.metastring)||"";r.properties.className?typeof r.properties.className=="boolean"?r.properties.className=[]:Array.isArray(r.properties.className)||(r.properties.className=[r.properties.className]):r.properties.className=[];var c,p,d=(function(R){for(var N,T=ju(R.properties.className);!(N=T()).done;){var _=N.value;if(_.slice(0,9)==="language-")return _.slice(9).toLowerCase()}return null})(r);if(!d&&t.defaultLanguage&&r.properties.className.push("language-"+(d=t.defaultLanguage)),r.properties.className.push("code-highlight"),d)try{var f,m;m=(f=d)!=null&&f.includes("diff-")?d.split("-")[1]:d,c=e.highlight(za(r),m),i.properties.className=(i.properties.className||[]).concat("language-"+m)}catch(R){if(!t.ignoreMissing||!/Unknown language/.test(R.message))throw R;c=r}else c=r;c.children=(p=1,function R(N){return N.reduce(function(T,_){if(_.type==="text"){var L=_.value,C=(L.match(/\n/g)||"").length;if(C===0)_.position={start:{line:p,column:1},end:{line:p,column:1}},T.push(_);else for(var $,I=L.split(`
|
|
10
|
-
`),P=ju(I.entries());!($=P()).done;){var W=$.value,U=W[0],ne=W[1];T.push({type:"text",value:U===I.length-1?ne:ne+`
|
|
11
|
-
`,position:{start:{line:p+U,column:1},end:{line:p+U,column:1}}})}return p+=C,T}if(Object.prototype.hasOwnProperty.call(_,"children")){var z=p;return _.children=R(_.children),T.push(_),_.position={start:{line:z,column:1},end:{line:p,column:1}},T}return T.push(_),T},[])})(c.children),c.position=c.children.length>0?{start:{line:c.children[0].position.start.line,column:0},end:{line:c.children[c.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var b,E=(function(R){var N=/{([\d,-]+)}/,T=R.split(",").map(function(C){return C.trim()}).join();if(N.test(T)){var _=N.exec(T)[1],L=P_(_);return function(C){return L.includes(C+1)}}return function(){return!1}})(u),x=(function(R){var N=Wc(/showLineNumbers=(\d+)/i,{lines:1});if(N.test(R)){var T=N.exec(R);return Number(T.groups.lines)}return 1})(u),y=(function(R){for(var N=new Array(R),T=0;T<R;T++)N[T]={type:"element",tagName:"span",properties:{className:[]},children:[]};return N})(c.position.end.line),S=["showlinenumbers=false",'showlinenumbers="false"',"showlinenumbers={false}"],v=function(){var R,N,T=b.value,_=T[0],L=T[1];L.properties.className=["code-line"];var C=O_(c,function($){return $.position.start.line<=_+1&&$.position.end.line>=_+1});L.children=C.children,(u.toLowerCase().includes("showLineNumbers".toLowerCase())||t.showLineNumbers===!0||typeof t.showLineNumbers=="object"&&t.showLineNumbers.includes(d))&&!S.some(function($){return u.toLowerCase().includes($)})&&(L.properties.line=[(_+x).toString()],L.properties.className.push("line-number")),E(_)&&L.properties.className.push("highlight-line"),(d==="diff"||(R=d)!=null&&R.includes("diff-"))&&za(L).substring(0,1)==="-"?L.properties.className.push("deleted"):(d==="diff"||(N=d)!=null&&N.includes("diff-"))&&za(L).substring(0,1)==="+"&&L.properties.className.push("inserted")},w=ju(y.entries());!(b=w()).done;)v();y.length>0&&za(y[y.length-1]).trim()===""&&y.pop(),r.children=y}}}},C1=gC(A),jo={},Vc={};function bC(e,t){for(var n=t,r=0;r<e.length;r++){var a=r===e.length-1,i=e.charAt(r),s=n[i]||(n[i]={chars:{}});a&&(s.self=e),n=s.chars}}function y0(e){if(e.length===0)return jo;for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];bC(a,t)}return t}function EC(e){if(e.length===0)return Vc;for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];t[a]=!0}return t}var co={},T0={type:"String",optional:!0};function xC(e){var t={type:"NoArgument",optional:!1};function n(s){if(t.type&&t.type!==s&&t.type!=="NoArgument")throw new Error('Conflicting pseudo-class argument type: "'.concat(t.type,'" vs "').concat(s,'".'));t.type=s}for(var r=0,a=e;r<a.length;r++){var i=a[r];i==="NoArgument"&&(t.optional=!0),i==="Formula"&&n("Formula"),i==="FormulaOfSelector"&&(n("Formula"),t.ofSelector=!0),i==="String"&&n("String"),i==="Selector"&&n("Selector")}return t}function yC(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var a=r[n],i=e[a];if(i)for(var s=0,o=i;s<o.length;s++){var u=o[s];(t[u]||(t[u]=[])).push(a)}}return t}function S0(e){for(var t=yC(e),n={},r=0,a=Object.keys(t);r<a.length;r++){var i=a[r],s=t[i];s&&(n[i]=xC(s))}return n}var ti=function(){return ti=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},ti.apply(this,arguments)},TC={},qc={wildcard:!0};function SC(e){return e?typeof e=="boolean"?qc:e:TC}function vC(e,t){return function(n,r){return t(e(n),e(r))}}function wC(e){return function(t,n){var r=e(t,n);if(!r)throw new Error("Syntax definition cannot be null or undefined.");return r}}function v0(e,t){return function(n,r){return r===!0?e:t(n===!0?e:n,r)}}function Ra(e){return function(t,n){if(!n||!t)return n;if(typeof n!="object"||n===null)throw new Error("Unexpected syntax definition extension type: ".concat(n,"."));for(var r=ti({},t),a=0,i=Object.entries(n);a<i.length;a++){var s=i[a],o=s[0],u=s[1];if(o!=="latest"){var c=e[o];r[o]=c(t[o],u)}}return r}}function hr(e,t){return t!==void 0?t:e}function po(e,t){return t?e?e.concat(t):t:e}function w0(e,t){if(!t)return e;if(!e)return t;for(var n=ti({},e),r=0,a=Object.entries(t);r<a.length;r++){var i=a[r],s=i[0],o=i[1];if(!o){delete n[s];continue}var u=e[s];if(!u){n[s]=o;continue}n[s]=u.concat(o)}return n}var ua=wC(Ra({baseSyntax:hr,modules:po,tag:v0(qc,Ra({wildcard:hr})),ids:hr,classNames:hr,nestingSelector:hr,namespace:v0(qc,Ra({wildcard:hr})),combinators:po,attributes:Ra({operators:po,caseSensitivityModifiers:po,unknownCaseSensitivityModifiers:hr}),pseudoClasses:Ra({unknown:hr,definitions:w0}),pseudoElements:Ra({unknown:hr,notation:hr,definitions:vC(function(e){return Array.isArray(e)?{NoArgument:e}:e},w0)})})),k1={tag:{},ids:!0,classNames:!0,combinators:[],pseudoElements:{unknown:"reject",notation:"singleColon",definitions:["first-letter","first-line"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["link","visited","active"]}}},I1=ua(k1,{tag:{wildcard:!0},combinators:[">","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),Yc=ua(I1,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),R1=ua(Yc,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid","playing","paused","autofill","modal","fullscreen","picture-in-picture","defined","loading","popover-open"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has","state"]}},pseudoElements:{definitions:{NoArgument:["marker"]}}}),Ko={"css-position-1":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute"]}}},"css-position-2":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute","fixed"]}}},"css-position-3":{latest:!1,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static"]}}},"css-position-4":{latest:!0,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static","initial"]}}},"css-scoping-1":{latest:!0,pseudoClasses:{definitions:{NoArgument:["host","host-context"],Selector:["host","host-context"]}},pseudoElements:{definitions:{Selector:["slotted"]}}},"css-pseudo-4":{latest:!0,pseudoElements:{definitions:{NoArgument:["marker","selection","target-text","search-text","spelling-error","grammar-error","backdrop","file-selector-button","prefix","postfix","placeholder","details-content"],String:["highlight"]}}},"css-shadow-parts-1":{latest:!0,pseudoElements:{definitions:{String:["part"]}}},"css-nesting-1":{latest:!0,nestingSelector:!0}},D1=ti(ti({},R1),{modules:Object.entries(Ko).filter(function(e){var t=e[1].latest;return t}).map(function(e){var t=e[0];return t})}),AC=ua(D1,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),Zc={css1:k1,css2:I1,css3:Yc,"selectors-3":Yc,"selectors-4":R1,latest:D1,progressive:AC};function NC(){for(var e={pseudoClasses:{},pseudoElements:{}},t=["css1","css2","css3","selectors-3","selectors-4"],n=0,r=t;n<r.length;n++){var a=r[n],i=Zc[a];if(i.pseudoClasses&&typeof i.pseudoClasses=="object"){var s=i.pseudoClasses.definitions;if(s)for(var o=0,u=Object.entries(s);o<u.length;o++)for(var c=u[o],p=c[1],d=0,f=p;d<f.length;d++){var m=f[d];e.pseudoClasses[m]||(e.pseudoClasses[m]=[]),e.pseudoClasses[m].includes(a)||e.pseudoClasses[m].push(a)}}if(i.pseudoElements&&typeof i.pseudoElements=="object"){var s=i.pseudoElements.definitions;if(s)if(Array.isArray(s))for(var b=0,E=s;b<E.length;b++){var x=E[b];e.pseudoElements[x]||(e.pseudoElements[x]=[]),e.pseudoElements[x].includes(a)||e.pseudoElements[x].push(a)}else for(var y=0,S=Object.values(s);y<S.length;y++)for(var p=S[y],v=0,w=p;v<w.length;v++){var R=w[v];e.pseudoElements[R]||(e.pseudoElements[R]=[]),e.pseudoElements[R].includes(a)||e.pseudoElements[R].push(a)}}}for(var N=0,T=Object.entries(Ko);N<T.length;N++){var _=T[N],L=_[0],C=_[1];if(C.pseudoClasses&&typeof C.pseudoClasses=="object"){var s=C.pseudoClasses.definitions;if(s)for(var $=0,I=Object.values(s);$<I.length;$++)for(var p=I[$],P=0,W=p;P<W.length;P++){var U=W[P];e.pseudoClasses[U]||(e.pseudoClasses[U]=[]),e.pseudoClasses[U].includes(L)||e.pseudoClasses[U].push(L)}}if(C.pseudoElements&&typeof C.pseudoElements=="object"){var s=C.pseudoElements.definitions;if(s)if(Array.isArray(s))for(var ne=0,z=s;ne<z.length;ne++){var se=z[ne];e.pseudoElements[se]||(e.pseudoElements[se]=[]),e.pseudoElements[se].includes(L)||e.pseudoElements[se].push(L)}else for(var pe=0,D=Object.values(s);pe<D.length;pe++)for(var p=D[pe],Q=0,de=p;Q<de.length;Q++){var O=de[Q];e.pseudoElements[O]||(e.pseudoElements[O]=[]),e.pseudoElements[O].includes(L)||e.pseudoElements[O].push(L)}}}return e}var A0=NC();function Oi(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function N0(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function Li(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var _C={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},CC={'"':!0,"'":!0},Bu={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},kC=6,Uu="css-selector-parser parse error: ";function IC(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,a=e.strict,i=a===void 0?!0:a,s=e.modules,o=typeof n=="object"?n:Zc[n];if(o.baseSyntax&&(o=ua(Zc[o.baseSyntax],o)),o.modules&&o.modules.length>0)for(var u=0,c=o.modules;u<c.length;u++){var p=c[u],d=Ko[p];d&&(o=ua(d,o))}if(s&&s.length>0)for(var f=0,m=s;f<m.length;f++){var b=m[f],d=Ko[b];d&&(o=ua(d,o))}var E=o.tag?[!0,!!SC(o.tag).wildcard]:[!1,!1],x=E[0],y=E[1],S=!!o.ids,v=!!o.classNames,w=!!o.nestingSelector,R=!!o.namespace,N=o.namespace&&(o.namespace===!0||o.namespace.wildcard===!0);if(R&&!x)throw new Error("".concat(Uu,"Namespaces cannot be enabled while tags are disabled."));var T=!!r,_=o.combinators?y0(o.combinators):jo,L=o.attributes?[!0,o.attributes.operators?y0(o.attributes.operators):jo,o.attributes.caseSensitivityModifiers?EC(o.attributes.caseSensitivityModifiers):Vc,o.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,jo,Vc,!1],C=L[0],$=L[1],I=L[2],P=L[3],W=P||Object.keys(I).length>0,U=o.pseudoClasses?[!0,o.pseudoClasses.definitions?S0(o.pseudoClasses.definitions):co,o.pseudoClasses.unknown==="accept"]:[!1,co,!1],ne=U[0],z=U[1],se=U[2],pe=o.pseudoElements?[!0,o.pseudoElements.notation==="singleColon"||o.pseudoElements.notation==="both",!o.pseudoElements.notation||o.pseudoElements.notation==="doubleColon"||o.pseudoElements.notation==="both",o.pseudoElements.definitions?S0(Array.isArray(o.pseudoElements.definitions)?{NoArgument:o.pseudoElements.definitions}:o.pseudoElements.definitions):co,o.pseudoElements.unknown==="accept"]:[!1,!1,!1,co,!1],D=pe[0],Q=pe[1],de=pe[2],O=pe[3],Ce=pe[4],De="",J=De.length,_e=0,fe="",X=function(ae){return fe===ae},Ge=function(){return X("*")||Oi(fe)},ge=function(ae){_e=ae,fe=De.charAt(_e)},me=function(){_e++,fe=De.charAt(_e)},Te=function(){var ae=fe;return _e++,fe=De.charAt(_e),ae};function Se(ae){var Ne=Math.min(J-1,_e),ze=new Error("".concat(Uu).concat(ae," Pos: ").concat(Ne,"."));throw ze.position=Ne,ze.name="ParserError",ze}function oe(ae,Ne){if(!ae)return Se(Ne)}var qe=function(){oe(_e<J,"Unexpected end of input.")},at=function(){return _e>=J},ft=function(ae){oe(_e<J,'Expected "'.concat(ae,'" but end of input reached.')),oe(fe===ae,'Expected "'.concat(ae,'" but "').concat(fe,'" found.')),_e++,fe=De.charAt(_e)};function Dt(ae){var Ne=xt(ae,_e);if(Ne)return _e+=Ne.length,fe=De.charAt(_e),Ne}function xt(ae,Ne){var ze=De.charAt(Ne),Me=ae[ze];if(Me){var Ct=xt(Me.chars,Ne+1);if(Ct)return Ct;if(Me.self)return Me.self}}function Ut(){for(var ae=Te(),Ne=1;Li(fe)&&Ne<kC;)ae+=Te(),Ne++;return Qe(),String.fromCharCode(parseInt(ae,16))}function Kt(ae){var Ne="";for(ft(ae);_e<J;){if(X(ae))return me(),Ne;X("\\")?(me(),X(ae)?(Ne+=ae,me()):fe===`
|
|
12
|
-
`||fe==="\f"?me():fe==="\r"?(me(),X(`
|
|
13
|
-
`)&&me()):Li(fe)?Ne+=Ut():(Ne+=fe,me())):(Ne+=fe,me())}return Ne}function ot(){if(!Oi(fe))return null;for(var ae="";X("-");)ae+=fe,me();for(ae==="-"&&!N0(fe)&&!X("\\")&&Se("Identifiers cannot consist of a single hyphen."),i&&ae.length>=2&&Se("Identifiers cannot start with two hyphens with strict mode on."),Bu[fe]&&Se("Identifiers cannot start with hyphens followed by digits.");_e<J;)if(N0(fe))ae+=Te();else if(X("\\"))me(),qe(),Li(fe)?ae+=Ut():ae+=Te();else break;return ae}function Oe(){for(var ae="";_e<J&&!X(")");)if(X("\\")){if(me(),at()&&!i)return(ae+"\\").trim();qe(),Li(fe)?ae+=Ut():ae+=Te()}else ae+=Te();return ae.trim()}function Qe(){if(fe===" "||fe===" "||fe==="\f"||fe===`
|
|
14
|
-
`){me();return}fe==="\r"&&me(),fe===`
|
|
15
|
-
`&&me()}function Y(){for(;_C[fe];)me()}function ie(ae){ae===void 0&&(ae=!1),Y();for(var Ne=[Pt(ae)];X(",");)me(),Y(),Ne.push(Pt(ae));return{type:"Selector",rules:Ne}}function ee(){ft("["),Y();var ae;if(X("|")){oe(R,"Namespaces are not enabled."),me();var Ne=ot();oe(Ne,"Expected attribute name."),ae={type:"Attribute",name:Ne,namespace:{type:"NoNamespace"}}}else if(X("*")){oe(R,"Namespaces are not enabled."),oe(N,"Wildcard namespace is not enabled."),me(),ft("|");var ze=ot();oe(ze,"Expected attribute name."),ae={type:"Attribute",name:ze,namespace:{type:"WildcardNamespace"}}}else{var Me=ot();if(oe(Me,"Expected attribute name."),ae={type:"Attribute",name:Me},X("|")){var Ct=_e;if(me(),Oi(fe)){oe(R,"Namespaces are not enabled.");var Qt=ot();oe(Qt,"Expected attribute name."),ae={type:"Attribute",name:Qt,namespace:{type:"NamespaceName",name:Me}}}else ge(Ct)}}if(oe(ae.name,"Expected attribute name."),Y(),at()&&!i)return ae;if(X("]"))me();else{if(ae.operator=Dt($),oe(ae.operator,"Expected a valid attribute selector operator."),Y(),qe(),CC[fe])ae.value={type:"String",value:Kt(fe)};else if(T&&X("$")){me();var Le=ot();oe(Le,"Expected substitute name."),ae.value={type:"Substitution",name:Le}}else{var ht=ot();oe(ht,"Expected attribute value."),ae.value={type:"String",value:ht}}if(Y(),at()&&!i)return ae;if(!X("]")){var Xe=ot();if(oe(Xe,"Expected end of attribute selector."),ae.caseSensitivityModifier=Xe,oe(W,"Attribute case sensitivity modifiers are not enabled."),oe(P||I[ae.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),Y(),at()&&!i)return ae}ft("]")}return ae}function ue(){for(var ae="";Bu[fe];)ae+=Te();return oe(ae!=="","Formula parse error."),parseInt(ae)}var Be=function(){return X("-")||X("+")||Bu[fe]};function Ye(){if(X("e")||X("o")){var ae=ot();if(ae==="even")return Y(),[2,0];if(ae==="odd")return Y(),[2,1]}var Ne=null,ze=1;if(X("-")&&(me(),ze=-1),Be()&&(X("+")&&me(),Ne=ue(),!X("\\")&&!X("n")))return[0,Ne*ze];Ne===null&&(Ne=1),Ne*=ze;var Me;if(X("\\")?(me(),Li(fe)?Me=Ut():Me=Te()):Me=Te(),oe(Me==="n",'Formula parse error: expected "n".'),Y(),X("+")||X("-")){var Ct=X("+")?1:-1;return me(),Y(),[Ne,Ct*ue()]}else return[Ne,0]}function mt(ae,Ne,ze){var Me;if(X("(")){if(me(),Y(),T&&X("$")){me();var Ct=ot();oe(Ct,"Expected substitute name."),Me={type:"Substitution",name:Ct}}else if(ze.type==="String")Me={type:"String",value:Oe()},oe(Me.value,"Expected ".concat(Ne," argument value."));else if(ze.type==="Selector")Me=ie(!0);else if(ze.type==="Formula"){var Qt=Ye(),Le=Qt[0],ht=Qt[1];if(Me={type:"Formula",a:Le,b:ht},ze.ofSelector&&(Y(),X("o")||X("\\"))){var Xe=ot();oe(Xe==="of","Formula of selector parse error."),Y(),Me={type:"FormulaOfSelector",a:Le,b:ht,selector:Pt()}}}else return Se("Invalid ".concat(Ne," signature."));if(Y(),at()&&!i)return Me;ft(")")}else oe(ze.optional,"Argument is required for ".concat(Ne,' "').concat(ae,'".'));return Me}function Ot(){if(X("*"))return oe(y,"Wildcard tag name is not enabled."),me(),{type:"WildcardTag"};if(Oi(fe)){oe(x,"Tag names are not enabled.");var ae=ot();return oe(ae,"Expected tag name."),{type:"TagName",name:ae}}else return Se("Expected tag name.")}function Nt(){if(X("*")){var ae=_e;if(me(),!X("|")||(me(),!Ge()))return ge(ae),Ot();oe(R,"Namespaces are not enabled."),oe(N,"Wildcard namespace is not enabled.");var Ne=Ot();return Ne.namespace={type:"WildcardNamespace"},Ne}else if(X("|")){oe(R,"Namespaces are not enabled."),me();var Ne=Ot();return Ne.namespace={type:"NoNamespace"},Ne}else if(Oi(fe)){var ze=ot();if(oe(ze,"Expected tag name."),!X("|"))return oe(x,"Tag names are not enabled."),{type:"TagName",name:ze};var ae=_e;if(me(),!Ge())return ge(ae),{type:"TagName",name:ze};oe(R,"Namespaces are not enabled.");var Ne=Ot();return Ne.namespace={type:"NamespaceName",name:ze},Ne}else return Se("Expected tag name.")}function Pt(ae){var Ne,ze;ae===void 0&&(ae=!1);var Me={type:"Rule",items:[]};if(ae){var Ct=Dt(_);Ct&&(Me.combinator=Ct,Y())}for(;_e<J;)if(Ge())oe(Me.items.length===0,"Unexpected tag/namespace start."),Me.items.push(Nt());else if(X("|")){var Qt=_e;if(me(),Ge())oe(Me.items.length===0,"Unexpected tag/namespace start."),ge(Qt),Me.items.push(Nt());else{ge(Qt);break}}else if(X(".")){oe(v,"Class names are not enabled."),me();var Le=ot();oe(Le,"Expected class name."),Me.items.push({type:"ClassName",name:Le})}else if(X("#")){oe(S,"IDs are not enabled."),me();var ht=ot();oe(ht,"Expected ID name."),Me.items.push({type:"Id",name:ht})}else if(X("&"))oe(w,"Nesting selector is not enabled."),me(),Me.items.push({type:"NestingSelector"});else if(X("["))oe(C,"Attributes are not enabled."),Me.items.push(ee());else if(X(":")){var Xe=!1,It=!1;me(),X(":")&&(oe(D,"Pseudo elements are not enabled."),oe(de,"Pseudo elements double colon notation is not enabled."),Xe=!0,me());var Je=ot();if(oe(Xe||Je,"Expected pseudo-class name."),oe(!Xe||Je,"Expected pseudo-element name."),oe(Je,"Expected pseudo-class name."),!(!Xe||Ce||Object.prototype.hasOwnProperty.call(O,Je))){var H=A0.pseudoElements[Je],Re='Unknown pseudo-element "'.concat(Je,'"');H&&H.length>0&&(Re+=". It is defined in: ".concat(H.join(", "))),Se(Re+".")}if(It=D&&(Xe||!Xe&&Q&&Object.prototype.hasOwnProperty.call(O,Je)),It){var et=(Ne=O[Je])!==null&&Ne!==void 0?Ne:Ce&&T0,Ke={type:"PseudoElement",name:Je},$t=mt(Je,"pseudo-element",et);$t&&(oe($t.type!=="Formula"&&$t.type!=="FormulaOfSelector","Pseudo-elements cannot have formula argument."),Ke.argument=$t),Me.items.push(Ke)}else{oe(ne,"Pseudo-classes are not enabled.");var et=(ze=z[Je])!==null&&ze!==void 0?ze:se&&T0;if(!et){var H=A0.pseudoClasses[Je],Re='Unknown pseudo-class: "'.concat(Je,'"');H&&H.length>0&&(Re+=". It is defined in: ".concat(H.join(", "))),Se(Re+".")}var $t=mt(Je,"pseudo-class",et),j={type:"PseudoClass",name:Je};$t&&(j.argument=$t),Me.items.push(j)}}else break;if(Me.items.length===0)return at()?Se("Expected rule but end of input reached."):Se('Expected rule but "'.concat(fe,'" found.'));if(Y(),!at()&&!X(",")&&!X(")")){var Ct=Dt(_);Y(),Me.nestedRule=Pt(),Me.nestedRule.combinator=Ct}return Me}return function(ae){if(typeof ae!="string")throw new Error("".concat(Uu,"Expected string input."));return De=ae,J=De.length,_e=0,fe=De.charAt(0),ie()}}const RC=IC({syntax:"selectors-4"});function DC(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return RC(e)}const O1="֑-߿יִ-﷽ﹰ-ﻼ",L1="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",OC=new RegExp("^[^"+L1+"]*["+O1+"]"),LC=new RegExp("^[^"+O1+"]*["+L1+"]");function FC(e){const t=String(e||"");return OC.test(t)?"rtl":LC.test(t)?"ltr":"neutral"}function MC(e,t){const n=e.schema,r=e.language,a=e.direction,i=e.editableOrEditingHost;let s;if(t.type==="element"){const c=t.properties.xmlLang||t.properties.lang,p=t.properties.type||"text",d=_0(t);c!=null&&(e.language=String(c)),n&&n.space==="html"?(t.properties.contentEditable==="true"&&(e.editableOrEditingHost=!0),t.tagName==="svg"&&(e.schema=pr),d==="rtl"?s=d:d==="ltr"||d!=="auto"&&t.tagName==="html"||d!=="auto"&&t.tagName==="input"&&p==="tel"?s="ltr":(d==="auto"||t.tagName==="bdi")&&(t.tagName==="textarea"?s=$u(za(t)):t.tagName==="input"&&(p==="email"||p==="search"||p==="tel"||p==="text")?s=t.properties.value?$u(String(t.properties.value)):"ltr":$n(t,u)),s&&(e.direction=s)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return o;function o(){e.schema=n,e.language=r,e.direction=a,e.editableOrEditingHost=i}function u(c){if(c.type==="text")return s=$u(c.value),s?Yo:void 0;if(c!==t&&c.type==="element"&&(c.tagName==="bdi"||c.tagName==="script"||c.tagName==="style"||c.tagName==="textare"||_0(c)))return Xi}}function $u(e){const t=FC(e);return t==="neutral"?void 0:t}function _0(e){const t=e.type==="element"&&typeof e.properties.dir=="string"?e.properties.dir.toLowerCase():void 0;return t==="auto"||t==="ltr"||t==="rtl"?t:void 0}function PC(e,t,n){const r=hi(n,e.name),a=t.properties[r.property];let i=jC(a,r);if(!e.value)return i!==void 0;e.value.type;let s=e.value.value;if(e.caseSensitivityModifier==="i"&&(s=s.toLowerCase(),i&&(i=i.toLowerCase())),i!==void 0)switch(e.operator){case"=":return s===i;case"$=":return s===i.slice(-s.length);case"*=":return i.includes(s);case"^=":return s===i.slice(0,s.length);case"|=":return s===i||s===i.slice(0,s.length)&&i.charAt(s.length)==="-";case"~=":return s===i||zc(i).includes(s)}return!1}function jC(e,t){if(e!=null)if(typeof e=="boolean"){if(e)return t.attribute}else if(Array.isArray(e)){if(e.length>0)return(t.commaSeparated?Jl:eu)(e)}else return String(e)}const BC=[];function UC(e,t){return(t.properties.className||BC).includes(e.name)}function $C(e,t){return t.properties.id===e.name}function zC(e,t){return e.name===t.tagName}function HC(e,t){return function(n,r){let a=C0(n,"tag");const i=C0(r??"*","range"),s=[];let o=-1;for(;++o<i.length;){const u=i[o].toLowerCase();if(!t&&u==="*")continue;let c=-1;const p=[];for(;++c<a.length;)if(e(a[c].toLowerCase(),u)){if(!t)return a[c];s.push(a[c])}else p.push(a[c]);a=p}return t?s:void 0}}const GC=HC(function(e,t){const n=e.split("-"),r=t.split("-");let a=0,i=0;if(r[i]!=="*"&&n[a]!==r[i])return!1;for(a++,i++;i<r.length;){if(r[i]==="*"){i++;continue}if(!n[a])return!1;if(n[a]===r[i]){a++,i++;continue}if(n[a].length===1)return!1;a++}return!0},!0);function C0(e,t){const n=e&&typeof e=="string"?[e]:e;if(!n||typeof n!="object"||!("length"in n))throw new Error("Invalid "+t+" `"+n+"`, expected non-empty string");return n}const WC={}.hasOwnProperty;function da(e,t){const n=e.type==="element"&&WC.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}const VC=/[ \t\n\f\r]/g;function Ws(e){return typeof e=="object"?e.type==="text"?k0(e.value):!1:k0(e)}function k0(e){return e.replace(VC,"")===""}const qC=new Set([9,10,12,13,32]),I0=48,YC=57;function ZC(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,n=0,r=i(),a=s();if(t<e.length&&e.charAt(t)==="n"&&(t++,n=r*(a??1),o(),t<e.length?(r=i(),o(),a=s()):r=a=0),a===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[n,r*a];function i(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function s(){const u=t;let c=0;for(;t<e.length&&e.charCodeAt(t)>=I0&&e.charCodeAt(t)<=YC;)c=c*10+(e.charCodeAt(t)-I0),t++;return t===u?null:c}function o(){for(;t<e.length&&qC.has(e.charCodeAt(t));)t++}}var zu,R0;function KC(){return R0||(R0=1,zu={trueFunc:function(){return!0},falseFunc:function(){return!1}}),zu}var XC=KC();const D0=kl(XC);function QC(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return D0.falseFunc;if(t===-1)return i=>i<=n;if(t===0)return i=>i===n;if(t===1)return n<0?D0.trueFunc:i=>i>=n;const r=Math.abs(t),a=(n%r+r)%r;return t>1?i=>i>=n&&i%r===a:i=>i<=n&&i%r===a}function O0(e){return QC(ZC(e))}const L0={}.hasOwnProperty;function au(e,t){const n=t||{};function r(a,...i){let s=r.invalid;const o=r.handlers;if(a&&L0.call(a,e)){const u=String(a[e]);s=L0.call(o,u)?o[u]:r.unknown}if(s)return s.call(this,a,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const JC=O0.default||O0,ek=au("name",{handlers:{"any-link":tk,blank:nk,checked:rk,dir:ak,disabled:F1,empty:ik,enabled:sk,"first-child":ok,"first-of-type":lk,has:uk,is:M1,lang:dk,"last-child":pk,"last-of-type":fk,not:mk,"nth-child":hk,"nth-last-child":gk,"nth-last-of-type":bk,"nth-of-type":Ek,"only-child":xk,"only-of-type":yk,optional:Tk,"read-only":Sk,"read-write":P1,required:j1,root:vk,scope:wk},invalid:ck,unknown:Ak});function tk(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&da(t,"href")}function vr(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function nk(e,t){return!B1(t,n);function n(r){return r.type==="element"||r.type==="text"&&!Ws(r)}}function rk(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&da(t,"checked")):t.tagName==="option"?da(t,"selected"):!1}function ak(e,t,n,r,a){return e.argument,e.argument.type,a.direction===e.argument.value}function F1(e,t){return(t.tagName==="button"||t.tagName==="input"||t.tagName==="select"||t.tagName==="textarea"||t.tagName==="optgroup"||t.tagName==="option"||t.tagName==="menuitem"||t.tagName==="fieldset")&&da(t,"disabled")}function ik(e,t){return!B1(t,n);function n(r){return r.type==="element"||r.type==="text"}}function sk(e,t){return!F1(e,t)}function ok(e,t,n,r,a){return vr(a,e),a.elementIndex===0}function lk(e,t,n,r,a){return vr(a,e),a.typeIndex===0}function iu(e){let t=e._cachedFn;if(!t){const n=e.argument;if(n.type!=="Formula")throw new Error("Expected `nth` formula, such as `even` or `2n+1` (`of` is not yet supported)");t=JC(n.a+"n+"+n.b),e._cachedFn=t}return t}function uk(e,t,n,r,a){e.argument,e.argument.type;const i={...a,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return _g(i,{type:"root",children:t.children}),i.results.length>0}function ck(){}function M1(e,t,n,r,a){e.argument,e.argument.type;const i={...a,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return _g(i,t),i.results[0]===t}function dk(e,t,n,r,a){return e.argument,e.argument.type,a.language!==""&&a.language!==void 0&&GC(a.language,$c(e.argument.value)).length>0}function pk(e,t,n,r,a){return vr(a,e),!!(a.elementCount&&a.elementIndex===a.elementCount-1)}function fk(e,t,n,r,a){return vr(a,e),typeof a.typeIndex=="number"&&typeof a.typeCount=="number"&&a.typeIndex===a.typeCount-1}function mk(e,t,n,r,a){return!M1(e,t,n,r,a)}function hk(e,t,n,r,a){const i=iu(e);return vr(a,e),typeof a.elementIndex=="number"&&i(a.elementIndex)}function gk(e,t,n,r,a){const i=iu(e);return vr(a,e),!!(typeof a.elementCount=="number"&&typeof a.elementIndex=="number"&&i(a.elementCount-a.elementIndex-1))}function bk(e,t,n,r,a){const i=iu(e);return vr(a,e),typeof a.typeCount=="number"&&typeof a.typeIndex=="number"&&i(a.typeCount-1-a.typeIndex)}function Ek(e,t,n,r,a){const i=iu(e);return vr(a,e),typeof a.typeIndex=="number"&&i(a.typeIndex)}function xk(e,t,n,r,a){return vr(a,e),a.elementCount===1}function yk(e,t,n,r,a){return vr(a,e),a.typeCount===1}function Tk(e,t){return!j1(e,t)}function Sk(e,t,n,r,a){return!P1(e,t,n,r,a)}function P1(e,t,n,r,a){return t.tagName==="input"||t.tagName==="textarea"?!da(t,"readOnly")&&!da(t,"disabled"):!!a.editableOrEditingHost}function j1(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&da(t,"required")}function vk(e,t,n,r,a){return!!((!r||r.type==="root")&&a.schema&&(a.schema.space==="html"||a.schema.space==="svg")&&(t.tagName==="html"||t.tagName==="svg"))}function wk(e,t,n,r,a){return a.scopeElements.includes(t)}function B1(e,t){const n=e.children;let r=-1;for(;++r<n.length;)if(t(n[r]))return!0;return!1}function Ak(e){const t=e;throw new Error("Unknown pseudo-selector `"+t.name+"`")}function Nk(e,t,n,r,a){for(const i of e.items)if(i.type==="Attribute"){if(!PC(i,t,a.schema))return!1}else if(i.type==="Id"){if(!$C(i,t))return!1}else if(i.type==="ClassName"){if(!UC(i,t))return!1}else if(i.type==="PseudoClass"){if(!ek(i,t,n,r,a))return!1}else{if(i.type==="PseudoElement")throw new Error("Invalid selector: `::"+i.name+"`");if(i.type==="TagName"&&!zC(i,t))return!1}return!0}const _k=[];function _g(e,t){t&&U1(e,[],t,void 0,void 0,t)}function Hu(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function Ck(e,t,n,r){const a=Bo(t.descendant,t.directChild);let i,s=-1;const o={count:0,types:new Map},u={count:0,types:new Map};for(;++s<n.children.length;)F0(o,n.children[s]);for(s=-1;++s<n.children.length;){const c=n.children[s],p=c.type==="element"?c.tagName.toUpperCase():void 0;if(e.elementIndex=u.count,e.typeIndex=p&&u.types.get(p)||0,e.elementCount=o.count,e.typeCount=p?o.types.get(p):0,"children"in c){const d=Bo(a,i),f=U1(e,d,n.children[s],s,n,r);i=Bo(f.generalSibling,f.adjacentSibling)}if(e.one&&e.found)break;F0(u,n.children[s])}}function kk(e,t,n,r,a){const i={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};let s=-1;for(;++s<t.length;){const o=t[s];if(e.one&&e.found)break;if(e.shallow&&o.nestedRule)throw new Error("Expected selector without nesting");if(Nk(o,n,r,a,e)){const u=o.nestedRule;if(u){const c=u.combinator==="+"?"adjacentSibling":u.combinator==="~"?"generalSibling":u.combinator===">"?"directChild":"descendant";Hu(i,c,u)}else e.found=!0,e.results.includes(n)||e.results.push(n)}o.combinator===void 0?Hu(i,"descendant",o):o.combinator==="~"&&Hu(i,"generalSibling",o)}return i}function Bo(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:_k}function F0(e,t){if(t.type==="element"){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}function U1(e,t,n,r,a,i){let s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const o=MC(e,n);if(n.type==="element"){let u=e.rootQuery.rules;a&&a!==i&&(u=e.rootQuery.rules.filter(c=>c.combinator===void 0||c.combinator===">"&&a===i)),s=kk(e,Bo(t,u),n,r,a)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&Ck(e,s,n,i),o(),s}function Ik(e,t,n){const r=Rk(e,t);return _g(r,t||void 0),r.results}function Rk(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:DC(e),schema:wa,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const $1=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=$1(n.children))}),t),Dk=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const a=Ik(t,r);a&&a.length>0&&$n(r,a,(i,s,o)=>{n(i,s,o)});return}$n(r,(a,i,s)=>{n(a,i,s)})}}};function Ok(e,t,n,r){let a,i,s;i=t,s=n,a=r,Ud(e,i,o,a);function o(u,c){const p=c[c.length-1],d=p?p.children.indexOf(u):void 0;return s(u,d,p)}}const Lk=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),Fk=(e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&e[n].value.replace(/(\n|\s)/g,"")!==""||e[n].type!=="text")return!/^rehype:/.test(e[n].value)||e[n].type!=="comment"?void 0:e[n]}},z1=(e=[],t,n,r="<!--",a="-->")=>{let i=t;for(;i<e.length;)if(i++,n){const s=e[i];if(s&&s.value&&s.value.replace(/(\n|\s)/g,"")!==""||e[i]&&e[i].type==="element")return s.tagName===n?s:void 0}else{const s=e[i];if(!s||s.type==="element")return;if(s.type==="text"){const o=z1(e,i,void 0);if(o)return o}if(s.type&&/^(comment|raw|text)$/ig.test(s.type)){const o=new RegExp(`^(s+)?${r}(.*?)${a}`);if(s.value&&!/^rehype:/.test(s.value.replace(/^(\n|\s)+/,"").replace(o,"$2")||""))return;let u=s.value.replace(/^(\n|\s)+/,"");return s.value=u,s}}},M0=({value:e=""},t="<!--",n="-->")=>{let r;try{r=new RegExp(`^${t}(.*?)${n}`)}catch{return{}}const a=e.match(r),s=(a?a[1]:e).replace(/^rehype:/,""),o=Lk(s);return Object.keys(o).forEach(u=>{o[u]==="true"?o[u]=!0:o[u]==="false"?o[u]=!1:typeof o[u]=="string"&&!/^0/.test(o[u])&&!isNaN(+o[u])&&(o[u]=+o[u])}),o},P0=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},Mk=(e={})=>{const{properties:t="data",codeBlockParames:n=!0,commentStart:r="<!--",commentEnd:a="-->"}=e;return i=>{Ok(i,"element",(s,o,u)=>{if(n&&s.tagName==="pre"&&s&&Array.isArray(s.children)&&u&&Array.isArray(u.children)&&u.children.length>1){const p=s.children[0];if(p&&p.tagName==="code"&&typeof o=="number"){const d=Fk(u.children,o);if(d){const f=M0(d,r,a);Object.keys(f).length>0&&(s.properties={...s.properties,"data-type":"rehyp"},p.properties=P0(p.properties,f,t))}}}let c=u;if((/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(s.tagName)||c.type=="root")&&u&&Array.isArray(u.children)&&typeof o=="number"){const p=z1(u.children,o,"",r,a);if(p){const d=M0(p,r,a);Object.keys(d).length>0&&(s.properties=P0(s.properties,d,t))}}})}},H1=-1,su=0,Ji=1,Xo=2,Cg=3,kg=4,Ig=5,Rg=6,G1=7,W1=8,Pk=typeof self=="object"?self:globalThis,j0=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new Pk[e](t)},jk=(e,t)=>{const n=(a,i)=>(e.set(i,a),a),r=a=>{if(e.has(a))return e.get(a);const[i,s]=t[a];switch(i){case su:case H1:return n(s,a);case Ji:{const o=n([],a);for(const u of s)o.push(r(u));return o}case Xo:{const o=n({},a);for(const[u,c]of s)o[r(u)]=r(c);return o}case Cg:return n(new Date(s),a);case kg:{const{source:o,flags:u}=s;return n(new RegExp(o,u),a)}case Ig:{const o=n(new Map,a);for(const[u,c]of s)o.set(r(u),r(c));return o}case Rg:{const o=n(new Set,a);for(const u of s)o.add(r(u));return o}case G1:{const{name:o,message:u}=s;return n(j0(o,u),a)}case W1:return n(BigInt(s),a);case"BigInt":return n(Object(BigInt(s)),a);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}}return n(j0(i,s),a)};return r},B0=e=>jk(new Map,e)(0),Da="",{toString:Bk}={},{keys:Uk}=Object,Fi=e=>{const t=typeof e;if(t!=="object"||!e)return[su,t];const n=Bk.call(e).slice(8,-1);switch(n){case"Array":return[Ji,Da];case"Object":return[Xo,Da];case"Date":return[Cg,Da];case"RegExp":return[kg,Da];case"Map":return[Ig,Da];case"Set":return[Rg,Da];case"DataView":return[Ji,n]}return n.includes("Array")?[Ji,n]:n.includes("Error")?[G1,n]:[Xo,n]},fo=([e,t])=>e===su&&(t==="function"||t==="symbol"),$k=(e,t,n,r)=>{const a=(s,o)=>{const u=r.push(s)-1;return n.set(o,u),u},i=s=>{if(n.has(s))return n.get(s);let[o,u]=Fi(s);switch(o){case su:{let p=s;switch(u){case"bigint":o=W1,p=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);p=null;break;case"undefined":return a([H1],s)}return a([o,p],s)}case Ji:{if(u){let f=s;return u==="DataView"?f=new Uint8Array(s.buffer):u==="ArrayBuffer"&&(f=new Uint8Array(s)),a([u,[...f]],s)}const p=[],d=a([o,p],s);for(const f of s)p.push(i(f));return d}case Xo:{if(u)switch(u){case"BigInt":return a([u,s.toString()],s);case"Boolean":case"Number":case"String":return a([u,s.valueOf()],s)}if(t&&"toJSON"in s)return i(s.toJSON());const p=[],d=a([o,p],s);for(const f of Uk(s))(e||!fo(Fi(s[f])))&&p.push([i(f),i(s[f])]);return d}case Cg:return a([o,s.toISOString()],s);case kg:{const{source:p,flags:d}=s;return a([o,{source:p,flags:d}],s)}case Ig:{const p=[],d=a([o,p],s);for(const[f,m]of s)(e||!(fo(Fi(f))||fo(Fi(m))))&&p.push([i(f),i(m)]);return d}case Rg:{const p=[],d=a([o,p],s);for(const f of s)(e||!fo(Fi(f)))&&p.push(i(f));return d}}const{message:c}=s;return a([o,{name:u,message:c}],s)};return i},U0=(e,{json:t,lossy:n}={})=>{const r=[];return $k(!(t||n),!!t,new Map,r)(e),r},pa=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?B0(U0(e,t)):structuredClone(e):(e,t)=>B0(U0(e,t));function zk(e){const t=String(e),n=[];return{toOffset:a,toPoint:r};function r(i){if(typeof i=="number"&&i>-1&&i<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const u=$0(t,n[s-1]);o=u===-1?t.length+1:u+1,n[s]=o}if(o>i)return{line:s+1,column:i-(s>0?n[s-1]:0)+1,offset:i};s++}}}function a(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;n.length<i.line;){const o=n[n.length-1],u=$0(t,o),c=u===-1?t.length+1:u+1;if(o===c)break;n.push(c)}const s=(i.line>1?n[i.line-2]:0)+i.column-1;if(s<n[i.line-1])return s}}}function $0(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
16
|
-
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const la={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/"},V1={}.hasOwnProperty,Hk=Object.prototype;function q1(e,t){const n=t||{};return Dg({file:n.file||void 0,location:!1,schema:n.space==="svg"?pr:wa,verbose:n.verbose||!1},e)}function Dg(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Uo(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Y1(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const i=String(e.file),s=zk(i),o=s.toPoint(0),u=s.toPoint(i.length);n.position={start:o,end:u}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Uo(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Uo(e,r,n),n}default:return n=Gk(e,t),n}}function Y1(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=Dg(e,t[n]);r.push(a)}return r}function Gk(e,t){const n=e.schema;e.schema=t.namespaceURI===la.svg?pr:wa;let r=-1;const a={};for(;++r<t.attrs.length;){const o=t.attrs[r],u=(o.prefix?o.prefix+":":"")+o.name;V1.call(Hk,u)||(a[u]=o.value)}const s=(e.schema.space==="svg"?Q_:S1)(t.tagName,a,Y1(e,t.childNodes));if(Uo(e,t,s),s.tagName==="template"){const o=t,u=o.sourceCodeLocation,c=u&&u.startTag&&Ha(u.startTag),p=u&&u.endTag&&Ha(u.endTag),d=Dg(e,o.content);c&&p&&e.file&&(d.position={start:c.end,end:p.start}),s.content=d}return e.schema=n,s}function Uo(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=Wk(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Wk(e,t,n){const r=Ha(n);if(t.type==="element"){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const i={};let s;if(n.attrs)for(s in n.attrs)V1.call(n.attrs,s)&&(i[hi(e.schema,s).property]=Ha(n.attrs[s]));n.startTag;const o=Ha(n.startTag),u=n.endTag?Ha(n.endTag):void 0,c={opening:o};u&&(c.closing=u),c.properties=i,t.data={position:c}}}return r}function Ha(e){const t=z0({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=z0({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function z0(e){return e.line&&e.column?e:void 0}const Vk={},qk={}.hasOwnProperty,Z1=au("type",{handlers:{root:Zk,element:eI,text:Qk,comment:Jk,doctype:Xk}});function Yk(e,t){const r=(t||Vk).space;return Z1(e,r==="svg"?pr:wa)}function Zk(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Og(e.children,n,t),bi(e,n),n}function Kk(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Og(e.children,n,t),bi(e,n),n}function Xk(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return bi(e,t),t}function Qk(e){const t={nodeName:"#text",value:e.value,parentNode:null};return bi(e,t),t}function Jk(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return bi(e,t),t}function eI(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=pr);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&qk.call(e.properties,i)){const u=tI(r,i,e.properties[i]);u&&a.push(u)}}const s=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:la[s],childNodes:[],parentNode:null};return o.childNodes=Og(e.children,o,r),bi(e,o),e.tagName==="template"&&e.content&&(o.content=Kk(e.content,r)),o}function tI(e,t,n){const r=hi(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?Jl(n):eu(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=r.attribute.slice(0,i)),a.namespace=la[r.space]}return a}function Og(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const i=Z1(e[r],n);i.parentNode=t,a.push(i)}return a}function bi(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const K1=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],nI=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]),Ht="�";var k;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(k||(k={}));const Bn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function X1(e){return e>=55296&&e<=57343}function rI(e){return e>=56320&&e<=57343}function aI(e,t){return(e-55296)*1024+9216+t}function Q1(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function J1(e){return e>=64976&&e<=65007||nI.has(e)}var te;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(te||(te={}));const iI=65536;class sI{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=iI,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:a,offset:i}=this,s=a+n,o=i+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(rI(n))return this.pos++,this._addGap(),aI(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,k.EOF;return this._err(te.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,k.EOF;const r=this.html.charCodeAt(n);return r===k.CARRIAGE_RETURN?k.LINE_FEED:r}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,k.EOF;let t=this.html.charCodeAt(this.pos);return t===k.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,k.LINE_FEED):t===k.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,X1(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===k.LINE_FEED||t===k.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Q1(t)?this._err(te.controlCharacterInInputStream):J1(t)&&this._err(te.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var ut;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(ut||(ut={}));function eT(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const oI=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),lI=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 uI(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=lI.get(e))!==null&&t!==void 0?t:e}var hn;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(hn||(hn={}));const cI=32;var qr;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(qr||(qr={}));function Kc(e){return e>=hn.ZERO&&e<=hn.NINE}function dI(e){return e>=hn.UPPER_A&&e<=hn.UPPER_F||e>=hn.LOWER_A&&e<=hn.LOWER_F}function pI(e){return e>=hn.UPPER_A&&e<=hn.UPPER_Z||e>=hn.LOWER_A&&e<=hn.LOWER_Z||Kc(e)}function fI(e){return e===hn.EQUALS||pI(e)}var cn;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(cn||(cn={}));var kr;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(kr||(kr={}));class mI{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=cn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=kr.Strict}startEntity(t){this.decodeMode=t,this.state=cn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case cn.EntityStart:return t.charCodeAt(n)===hn.NUM?(this.state=cn.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=cn.NamedEntity,this.stateNamedEntity(t,n));case cn.NumericStart:return this.stateNumericStart(t,n);case cn.NumericDecimal:return this.stateNumericDecimal(t,n);case cn.NumericHex:return this.stateNumericHex(t,n);case cn.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|cI)===hn.LOWER_X?(this.state=cn.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=cn.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const i=r-n;this.result=this.result*Math.pow(a,i)+Number.parseInt(t.substr(n,i),a),this.consumed+=i}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(Kc(a)||dI(a))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(Kc(a))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===hn.SEMI)this.consumed+=1;else if(this.decodeMode===kr.Strict)return 0;return this.emitCodePoint(uI(this.result),this.consumed),this.errors&&(t!==hn.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let a=r[this.treeIndex],i=(a&qr.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=hI(r,a,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return this.result===0||this.decodeMode===kr.Attribute&&(i===0||fI(s))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],i=(a&qr.VALUE_LENGTH)>>14,i!==0){if(s===hn.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==kr.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&qr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~qr.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case cn.NamedEntity:return this.result!==0&&(this.decodeMode!==kr.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case cn.NumericDecimal:return this.emitNumericEntity(0,2);case cn.NumericHex:return this.emitNumericEntity(0,3);case cn.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case cn.EntityStart:return 0}}}function hI(e,t,n,r){const a=(t&qr.BRANCH_LENGTH)>>7,i=t&qr.JUMP_TABLE;if(a===0)return i!==0&&r===i?n:-1;if(i){const u=r-i;return u<0||u>=a?-1:e[n+u]-1}let s=n,o=s+a-1;for(;s<=o;){const u=s+o>>>1,c=e[u];if(c<r)s=u+1;else if(c>r)o=u-1;else return e[u+a]}return-1}var ce;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(ce||(ce={}));var ca;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(ca||(ca={}));var tr;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(tr||(tr={}));var q;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(q||(q={}));var h;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(h||(h={}));const gI=new Map([[q.A,h.A],[q.ADDRESS,h.ADDRESS],[q.ANNOTATION_XML,h.ANNOTATION_XML],[q.APPLET,h.APPLET],[q.AREA,h.AREA],[q.ARTICLE,h.ARTICLE],[q.ASIDE,h.ASIDE],[q.B,h.B],[q.BASE,h.BASE],[q.BASEFONT,h.BASEFONT],[q.BGSOUND,h.BGSOUND],[q.BIG,h.BIG],[q.BLOCKQUOTE,h.BLOCKQUOTE],[q.BODY,h.BODY],[q.BR,h.BR],[q.BUTTON,h.BUTTON],[q.CAPTION,h.CAPTION],[q.CENTER,h.CENTER],[q.CODE,h.CODE],[q.COL,h.COL],[q.COLGROUP,h.COLGROUP],[q.DD,h.DD],[q.DESC,h.DESC],[q.DETAILS,h.DETAILS],[q.DIALOG,h.DIALOG],[q.DIR,h.DIR],[q.DIV,h.DIV],[q.DL,h.DL],[q.DT,h.DT],[q.EM,h.EM],[q.EMBED,h.EMBED],[q.FIELDSET,h.FIELDSET],[q.FIGCAPTION,h.FIGCAPTION],[q.FIGURE,h.FIGURE],[q.FONT,h.FONT],[q.FOOTER,h.FOOTER],[q.FOREIGN_OBJECT,h.FOREIGN_OBJECT],[q.FORM,h.FORM],[q.FRAME,h.FRAME],[q.FRAMESET,h.FRAMESET],[q.H1,h.H1],[q.H2,h.H2],[q.H3,h.H3],[q.H4,h.H4],[q.H5,h.H5],[q.H6,h.H6],[q.HEAD,h.HEAD],[q.HEADER,h.HEADER],[q.HGROUP,h.HGROUP],[q.HR,h.HR],[q.HTML,h.HTML],[q.I,h.I],[q.IMG,h.IMG],[q.IMAGE,h.IMAGE],[q.INPUT,h.INPUT],[q.IFRAME,h.IFRAME],[q.KEYGEN,h.KEYGEN],[q.LABEL,h.LABEL],[q.LI,h.LI],[q.LINK,h.LINK],[q.LISTING,h.LISTING],[q.MAIN,h.MAIN],[q.MALIGNMARK,h.MALIGNMARK],[q.MARQUEE,h.MARQUEE],[q.MATH,h.MATH],[q.MENU,h.MENU],[q.META,h.META],[q.MGLYPH,h.MGLYPH],[q.MI,h.MI],[q.MO,h.MO],[q.MN,h.MN],[q.MS,h.MS],[q.MTEXT,h.MTEXT],[q.NAV,h.NAV],[q.NOBR,h.NOBR],[q.NOFRAMES,h.NOFRAMES],[q.NOEMBED,h.NOEMBED],[q.NOSCRIPT,h.NOSCRIPT],[q.OBJECT,h.OBJECT],[q.OL,h.OL],[q.OPTGROUP,h.OPTGROUP],[q.OPTION,h.OPTION],[q.P,h.P],[q.PARAM,h.PARAM],[q.PLAINTEXT,h.PLAINTEXT],[q.PRE,h.PRE],[q.RB,h.RB],[q.RP,h.RP],[q.RT,h.RT],[q.RTC,h.RTC],[q.RUBY,h.RUBY],[q.S,h.S],[q.SCRIPT,h.SCRIPT],[q.SEARCH,h.SEARCH],[q.SECTION,h.SECTION],[q.SELECT,h.SELECT],[q.SOURCE,h.SOURCE],[q.SMALL,h.SMALL],[q.SPAN,h.SPAN],[q.STRIKE,h.STRIKE],[q.STRONG,h.STRONG],[q.STYLE,h.STYLE],[q.SUB,h.SUB],[q.SUMMARY,h.SUMMARY],[q.SUP,h.SUP],[q.TABLE,h.TABLE],[q.TBODY,h.TBODY],[q.TEMPLATE,h.TEMPLATE],[q.TEXTAREA,h.TEXTAREA],[q.TFOOT,h.TFOOT],[q.TD,h.TD],[q.TH,h.TH],[q.THEAD,h.THEAD],[q.TITLE,h.TITLE],[q.TR,h.TR],[q.TRACK,h.TRACK],[q.TT,h.TT],[q.U,h.U],[q.UL,h.UL],[q.SVG,h.SVG],[q.VAR,h.VAR],[q.WBR,h.WBR],[q.XMP,h.XMP]]);function Ei(e){var t;return(t=gI.get(e))!==null&&t!==void 0?t:h.UNKNOWN}const he=h,bI={[ce.HTML]:new Set([he.ADDRESS,he.APPLET,he.AREA,he.ARTICLE,he.ASIDE,he.BASE,he.BASEFONT,he.BGSOUND,he.BLOCKQUOTE,he.BODY,he.BR,he.BUTTON,he.CAPTION,he.CENTER,he.COL,he.COLGROUP,he.DD,he.DETAILS,he.DIR,he.DIV,he.DL,he.DT,he.EMBED,he.FIELDSET,he.FIGCAPTION,he.FIGURE,he.FOOTER,he.FORM,he.FRAME,he.FRAMESET,he.H1,he.H2,he.H3,he.H4,he.H5,he.H6,he.HEAD,he.HEADER,he.HGROUP,he.HR,he.HTML,he.IFRAME,he.IMG,he.INPUT,he.LI,he.LINK,he.LISTING,he.MAIN,he.MARQUEE,he.MENU,he.META,he.NAV,he.NOEMBED,he.NOFRAMES,he.NOSCRIPT,he.OBJECT,he.OL,he.P,he.PARAM,he.PLAINTEXT,he.PRE,he.SCRIPT,he.SECTION,he.SELECT,he.SOURCE,he.STYLE,he.SUMMARY,he.TABLE,he.TBODY,he.TD,he.TEMPLATE,he.TEXTAREA,he.TFOOT,he.TH,he.THEAD,he.TITLE,he.TR,he.TRACK,he.UL,he.WBR,he.XMP]),[ce.MATHML]:new Set([he.MI,he.MO,he.MN,he.MS,he.MTEXT,he.ANNOTATION_XML]),[ce.SVG]:new Set([he.TITLE,he.FOREIGN_OBJECT,he.DESC]),[ce.XLINK]:new Set,[ce.XML]:new Set,[ce.XMLNS]:new Set},Xc=new Set([he.H1,he.H2,he.H3,he.H4,he.H5,he.H6]);q.STYLE,q.SCRIPT,q.XMP,q.IFRAME,q.NOEMBED,q.NOFRAMES,q.PLAINTEXT;var F;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(F||(F={}));const Xt={DATA:F.DATA,RCDATA:F.RCDATA,RAWTEXT:F.RAWTEXT,SCRIPT_DATA:F.SCRIPT_DATA,PLAINTEXT:F.PLAINTEXT,CDATA_SECTION:F.CDATA_SECTION};function EI(e){return e>=k.DIGIT_0&&e<=k.DIGIT_9}function Vi(e){return e>=k.LATIN_CAPITAL_A&&e<=k.LATIN_CAPITAL_Z}function xI(e){return e>=k.LATIN_SMALL_A&&e<=k.LATIN_SMALL_Z}function Br(e){return xI(e)||Vi(e)}function H0(e){return Br(e)||EI(e)}function mo(e){return e+32}function tT(e){return e===k.SPACE||e===k.LINE_FEED||e===k.TABULATION||e===k.FORM_FEED}function G0(e){return tT(e)||e===k.SOLIDUS||e===k.GREATER_THAN_SIGN}function yI(e){return e===k.NULL?te.nullCharacterReference:e>1114111?te.characterReferenceOutsideUnicodeRange:X1(e)?te.surrogateCharacterReference:J1(e)?te.noncharacterCharacterReference:Q1(e)||e===k.CARRIAGE_RETURN?te.controlCharacterReference:null}class TI{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=F.DATA,this.returnState=F.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new sI(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new mI(oI,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(te.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(te.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=yI(r);a&&this._err(a,1)}}:void 0)}_err(t,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:ut.START_TAG,tagName:"",tagID:h.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:ut.END_TAG,tagName:"",tagID:h.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:ut.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:ut.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(eT(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(te.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Ei(t.tagName),t.type===ut.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(te.endTagWithAttributes),t.selfClosing&&this._err(te.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case ut.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case ut.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case ut.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:ut.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=tT(t)?ut.WHITESPACE_CHARACTER:t===k.NULL?ut.NULL_CHARACTER:ut.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(ut.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=F.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?kr.Attribute:kr.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===F.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===F.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===F.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case F.DATA:{this._stateData(t);break}case F.RCDATA:{this._stateRcdata(t);break}case F.RAWTEXT:{this._stateRawtext(t);break}case F.SCRIPT_DATA:{this._stateScriptData(t);break}case F.PLAINTEXT:{this._statePlaintext(t);break}case F.TAG_OPEN:{this._stateTagOpen(t);break}case F.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case F.TAG_NAME:{this._stateTagName(t);break}case F.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case F.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case F.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case F.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case F.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case F.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case F.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case F.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case F.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case F.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case F.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case F.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case F.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case F.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case F.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case F.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case F.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case F.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case F.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case F.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case F.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case F.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case F.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case F.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case F.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case F.BOGUS_COMMENT:{this._stateBogusComment(t);break}case F.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case F.COMMENT_START:{this._stateCommentStart(t);break}case F.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case F.COMMENT:{this._stateComment(t);break}case F.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case F.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case F.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case F.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case F.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case F.COMMENT_END:{this._stateCommentEnd(t);break}case F.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case F.DOCTYPE:{this._stateDoctype(t);break}case F.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case F.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case F.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case F.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case F.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case F.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case F.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case F.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case F.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case F.CDATA_SECTION:{this._stateCdataSection(t);break}case F.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case F.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case F.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case F.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case k.LESS_THAN_SIGN:{this.state=F.TAG_OPEN;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.NULL:{this._err(te.unexpectedNullCharacter),this._emitCodePoint(t);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case k.AMPERSAND:{this._startCharacterReference();break}case k.LESS_THAN_SIGN:{this.state=F.RCDATA_LESS_THAN_SIGN;break}case k.NULL:{this._err(te.unexpectedNullCharacter),this._emitChars(Ht);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case k.LESS_THAN_SIGN:{this.state=F.RAWTEXT_LESS_THAN_SIGN;break}case k.NULL:{this._err(te.unexpectedNullCharacter),this._emitChars(Ht);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case k.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_LESS_THAN_SIGN;break}case k.NULL:{this._err(te.unexpectedNullCharacter),this._emitChars(Ht);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case k.NULL:{this._err(te.unexpectedNullCharacter),this._emitChars(Ht);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Br(t))this._createStartTagToken(),this.state=F.TAG_NAME,this._stateTagName(t);else switch(t){case k.EXCLAMATION_MARK:{this.state=F.MARKUP_DECLARATION_OPEN;break}case k.SOLIDUS:{this.state=F.END_TAG_OPEN;break}case k.QUESTION_MARK:{this._err(te.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=F.BOGUS_COMMENT,this._stateBogusComment(t);break}case k.EOF:{this._err(te.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(te.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=F.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Br(t))this._createEndTagToken(),this.state=F.TAG_NAME,this._stateTagName(t);else switch(t){case k.GREATER_THAN_SIGN:{this._err(te.missingEndTagName),this.state=F.DATA;break}case k.EOF:{this._err(te.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(te.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=F.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=F.BEFORE_ATTRIBUTE_NAME;break}case k.SOLIDUS:{this.state=F.SELF_CLOSING_START_TAG;break}case k.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentTagToken();break}case k.NULL:{this._err(te.unexpectedNullCharacter),n.tagName+=Ht;break}case k.EOF:{this._err(te.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Vi(t)?mo(t):t)}}_stateRcdataLessThanSign(t){t===k.SOLIDUS?this.state=F.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=F.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Br(t)?(this.state=F.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=F.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=F.BEFORE_ATTRIBUTE_NAME,!1;case k.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=F.SELF_CLOSING_START_TAG,!1;case k.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=F.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=F.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===k.SOLIDUS?this.state=F.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=F.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Br(t)?(this.state=F.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=F.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=F.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case k.SOLIDUS:{this.state=F.SCRIPT_DATA_END_TAG_OPEN;break}case k.EXCLAMATION_MARK:{this.state=F.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=F.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Br(t)?(this.state=F.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=F.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=F.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===k.HYPHEN_MINUS?(this.state=F.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=F.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===k.HYPHEN_MINUS?(this.state=F.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=F.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case k.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case k.NULL:{this._err(te.unexpectedNullCharacter),this._emitChars(Ht);break}case k.EOF:{this._err(te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case k.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case k.NULL:{this._err(te.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_ESCAPED,this._emitChars(Ht);break}case k.EOF:{this._err(te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case k.HYPHEN_MINUS:{this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case k.GREATER_THAN_SIGN:{this.state=F.SCRIPT_DATA,this._emitChars(">");break}case k.NULL:{this._err(te.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_ESCAPED,this._emitChars(Ht);break}case k.EOF:{this._err(te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===k.SOLIDUS?this.state=F.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Br(t)?(this._emitChars("<"),this.state=F.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Br(t)?(this.state=F.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Bn.SCRIPT,!1)&&G0(this.preprocessor.peek(Bn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Bn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case k.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case k.NULL:{this._err(te.unexpectedNullCharacter),this._emitChars(Ht);break}case k.EOF:{this._err(te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case k.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case k.NULL:{this._err(te.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ht);break}case k.EOF:{this._err(te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case k.HYPHEN_MINUS:{this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case k.GREATER_THAN_SIGN:{this.state=F.SCRIPT_DATA,this._emitChars(">");break}case k.NULL:{this._err(te.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ht);break}case k.EOF:{this._err(te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===k.SOLIDUS?(this.state=F.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Bn.SCRIPT,!1)&&G0(this.preprocessor.peek(Bn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Bn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=F.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.SOLIDUS:case k.GREATER_THAN_SIGN:case k.EOF:{this.state=F.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case k.EQUALS_SIGN:{this._err(te.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=F.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=F.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:case k.SOLIDUS:case k.GREATER_THAN_SIGN:case k.EOF:{this._leaveAttrName(),this.state=F.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case k.EQUALS_SIGN:{this._leaveAttrName(),this.state=F.BEFORE_ATTRIBUTE_VALUE;break}case k.QUOTATION_MARK:case k.APOSTROPHE:case k.LESS_THAN_SIGN:{this._err(te.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case k.NULL:{this._err(te.unexpectedNullCharacter),this.currentAttr.name+=Ht;break}default:this.currentAttr.name+=String.fromCodePoint(Vi(t)?mo(t):t)}}_stateAfterAttributeName(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.SOLIDUS:{this.state=F.SELF_CLOSING_START_TAG;break}case k.EQUALS_SIGN:{this.state=F.BEFORE_ATTRIBUTE_VALUE;break}case k.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentTagToken();break}case k.EOF:{this._err(te.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=F.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.QUOTATION_MARK:{this.state=F.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this.state=F.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(te.missingAttributeValue),this.state=F.DATA,this.emitCurrentTagToken();break}default:this.state=F.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case k.QUOTATION_MARK:{this.state=F.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.NULL:{this._err(te.unexpectedNullCharacter),this.currentAttr.value+=Ht;break}case k.EOF:{this._err(te.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case k.APOSTROPHE:{this.state=F.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.NULL:{this._err(te.unexpectedNullCharacter),this.currentAttr.value+=Ht;break}case k.EOF:{this._err(te.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this._leaveAttrValue(),this.state=F.BEFORE_ATTRIBUTE_NAME;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=F.DATA,this.emitCurrentTagToken();break}case k.NULL:{this._err(te.unexpectedNullCharacter),this.currentAttr.value+=Ht;break}case k.QUOTATION_MARK:case k.APOSTROPHE:case k.LESS_THAN_SIGN:case k.EQUALS_SIGN:case k.GRAVE_ACCENT:{this._err(te.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case k.EOF:{this._err(te.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this._leaveAttrValue(),this.state=F.BEFORE_ATTRIBUTE_NAME;break}case k.SOLIDUS:{this._leaveAttrValue(),this.state=F.SELF_CLOSING_START_TAG;break}case k.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=F.DATA,this.emitCurrentTagToken();break}case k.EOF:{this._err(te.eofInTag),this._emitEOFToken();break}default:this._err(te.missingWhitespaceBetweenAttributes),this.state=F.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case k.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=F.DATA,this.emitCurrentTagToken();break}case k.EOF:{this._err(te.eofInTag),this._emitEOFToken();break}default:this._err(te.unexpectedSolidusInTag),this.state=F.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case k.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentComment(n);break}case k.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case k.NULL:{this._err(te.unexpectedNullCharacter),n.data+=Ht;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Bn.DASH_DASH,!0)?(this._createCommentToken(Bn.DASH_DASH.length+1),this.state=F.COMMENT_START):this._consumeSequenceIfMatch(Bn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Bn.DOCTYPE.length+1),this.state=F.DOCTYPE):this._consumeSequenceIfMatch(Bn.CDATA_START,!0)?this.inForeignNode?this.state=F.CDATA_SECTION:(this._err(te.cdataInHtmlContent),this._createCommentToken(Bn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=F.BOGUS_COMMENT):this._ensureHibernation()||(this._err(te.incorrectlyOpenedComment),this._createCommentToken(2),this.state=F.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case k.HYPHEN_MINUS:{this.state=F.COMMENT_START_DASH;break}case k.GREATER_THAN_SIGN:{this._err(te.abruptClosingOfEmptyComment),this.state=F.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=F.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case k.HYPHEN_MINUS:{this.state=F.COMMENT_END;break}case k.GREATER_THAN_SIGN:{this._err(te.abruptClosingOfEmptyComment),this.state=F.DATA,this.emitCurrentComment(n);break}case k.EOF:{this._err(te.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=F.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case k.HYPHEN_MINUS:{this.state=F.COMMENT_END_DASH;break}case k.LESS_THAN_SIGN:{n.data+="<",this.state=F.COMMENT_LESS_THAN_SIGN;break}case k.NULL:{this._err(te.unexpectedNullCharacter),n.data+=Ht;break}case k.EOF:{this._err(te.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case k.EXCLAMATION_MARK:{n.data+="!",this.state=F.COMMENT_LESS_THAN_SIGN_BANG;break}case k.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=F.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===k.HYPHEN_MINUS?this.state=F.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=F.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===k.HYPHEN_MINUS?this.state=F.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=F.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==k.GREATER_THAN_SIGN&&t!==k.EOF&&this._err(te.nestedComment),this.state=F.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case k.HYPHEN_MINUS:{this.state=F.COMMENT_END;break}case k.EOF:{this._err(te.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=F.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case k.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentComment(n);break}case k.EXCLAMATION_MARK:{this.state=F.COMMENT_END_BANG;break}case k.HYPHEN_MINUS:{n.data+="-";break}case k.EOF:{this._err(te.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=F.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case k.HYPHEN_MINUS:{n.data+="--!",this.state=F.COMMENT_END_DASH;break}case k.GREATER_THAN_SIGN:{this._err(te.incorrectlyClosedComment),this.state=F.DATA,this.emitCurrentComment(n);break}case k.EOF:{this._err(te.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=F.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=F.BEFORE_DOCTYPE_NAME;break}case k.GREATER_THAN_SIGN:{this.state=F.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case k.EOF:{this._err(te.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(te.missingWhitespaceBeforeDoctypeName),this.state=F.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Vi(t))this._createDoctypeToken(String.fromCharCode(mo(t))),this.state=F.DOCTYPE_NAME;else switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.NULL:{this._err(te.unexpectedNullCharacter),this._createDoctypeToken(Ht),this.state=F.DOCTYPE_NAME;break}case k.GREATER_THAN_SIGN:{this._err(te.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=F.DATA;break}case k.EOF:{this._err(te.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=F.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=F.AFTER_DOCTYPE_NAME;break}case k.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentDoctype(n);break}case k.NULL:{this._err(te.unexpectedNullCharacter),n.name+=Ht;break}case k.EOF:{this._err(te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Vi(t)?mo(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentDoctype(n);break}case k.EOF:{this._err(te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Bn.PUBLIC,!1)?this.state=F.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Bn.SYSTEM,!1)?this.state=F.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(te.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=F.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case k.QUOTATION_MARK:{this._err(te.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this._err(te.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(te.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(n);break}case k.EOF:{this._err(te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(te.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.QUOTATION_MARK:{n.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{n.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(te.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(n);break}case k.EOF:{this._err(te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(te.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case k.QUOTATION_MARK:{this.state=F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case k.NULL:{this._err(te.unexpectedNullCharacter),n.publicId+=Ht;break}case k.GREATER_THAN_SIGN:{this._err(te.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=F.DATA;break}case k.EOF:{this._err(te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case k.APOSTROPHE:{this.state=F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case k.NULL:{this._err(te.unexpectedNullCharacter),n.publicId+=Ht;break}case k.GREATER_THAN_SIGN:{this._err(te.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=F.DATA;break}case k.EOF:{this._err(te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=F.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case k.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentDoctype(n);break}case k.QUOTATION_MARK:{this._err(te.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this._err(te.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.EOF:{this._err(te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(te.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=F.DATA;break}case k.QUOTATION_MARK:{n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.EOF:{this._err(te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(te.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=F.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case k.QUOTATION_MARK:{this._err(te.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this._err(te.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(te.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(n);break}case k.EOF:{this._err(te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(te.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.QUOTATION_MARK:{n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(te.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(n);break}case k.EOF:{this._err(te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(te.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case k.QUOTATION_MARK:{this.state=F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case k.NULL:{this._err(te.unexpectedNullCharacter),n.systemId+=Ht;break}case k.GREATER_THAN_SIGN:{this._err(te.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=F.DATA;break}case k.EOF:{this._err(te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case k.APOSTROPHE:{this.state=F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case k.NULL:{this._err(te.unexpectedNullCharacter),n.systemId+=Ht;break}case k.GREATER_THAN_SIGN:{this._err(te.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=F.DATA;break}case k.EOF:{this._err(te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=F.DATA;break}case k.EOF:{this._err(te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(te.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case k.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=F.DATA;break}case k.NULL:{this._err(te.unexpectedNullCharacter);break}case k.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case k.RIGHT_SQUARE_BRACKET:{this.state=F.CDATA_SECTION_BRACKET;break}case k.EOF:{this._err(te.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===k.RIGHT_SQUARE_BRACKET?this.state=F.CDATA_SECTION_END:(this._emitChars("]"),this.state=F.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case k.GREATER_THAN_SIGN:{this.state=F.DATA;break}case k.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=F.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(k.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&H0(this.preprocessor.peek(1))?F.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){H0(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===k.SEMICOLON&&this._err(te.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const nT=new Set([h.DD,h.DT,h.LI,h.OPTGROUP,h.OPTION,h.P,h.RB,h.RP,h.RT,h.RTC]),W0=new Set([...nT,h.CAPTION,h.COLGROUP,h.TBODY,h.TD,h.TFOOT,h.TH,h.THEAD,h.TR]),Qo=new Set([h.APPLET,h.CAPTION,h.HTML,h.MARQUEE,h.OBJECT,h.TABLE,h.TD,h.TEMPLATE,h.TH]),SI=new Set([...Qo,h.OL,h.UL]),vI=new Set([...Qo,h.BUTTON]),V0=new Set([h.ANNOTATION_XML,h.MI,h.MN,h.MO,h.MS,h.MTEXT]),q0=new Set([h.DESC,h.FOREIGN_OBJECT,h.TITLE]),wI=new Set([h.TR,h.TEMPLATE,h.HTML]),AI=new Set([h.TBODY,h.TFOOT,h.THEAD,h.TEMPLATE,h.HTML]),NI=new Set([h.TABLE,h.TEMPLATE,h.HTML]),_I=new Set([h.TD,h.TH]);class CI{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=h.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===h.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===ce.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==ce.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Xc,ce.HTML)}popUntilTableCellPopped(){this.popUntilPopped(_I,ce.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(NI,ce.HTML)}clearBackToTableBodyContext(){this.clearBackTo(AI,ce.HTML)}clearBackToTableRowContext(){this.clearBackTo(wI,ce.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===h.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===h.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case ce.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case ce.SVG:{if(q0.has(a))return!1;break}case ce.MATHML:{if(V0.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Qo)}hasInListItemScope(t){return this.hasInDynamicScope(t,SI)}hasInButtonScope(t){return this.hasInDynamicScope(t,vI)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case ce.HTML:{if(Xc.has(n))return!0;if(Qo.has(n))return!1;break}case ce.SVG:{if(q0.has(n))return!1;break}case ce.MATHML:{if(V0.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===ce.HTML)switch(this.tagIDs[n]){case t:return!0;case h.TABLE:case h.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===ce.HTML)switch(this.tagIDs[t]){case h.TBODY:case h.THEAD:case h.TFOOT:return!0;case h.TABLE:case h.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===ce.HTML)switch(this.tagIDs[n]){case t:return!0;case h.OPTION:case h.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&nT.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&W0.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&W0.has(this.currentTagId);)this.pop()}}const Gu=3;var yr;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(yr||(yr={}));const Y0={type:yr.Marker};class kI{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,i=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const u=this.entries[o];if(u.type===yr.Marker)break;const{element:c}=u;if(this.treeAdapter.getTagName(c)===i&&this.treeAdapter.getNamespaceURI(c)===s){const p=this.treeAdapter.getAttrList(c);p.length===a&&r.push({idx:o,attrs:p})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<Gu)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<Gu)return;const a=new Map(n.map(s=>[s.name,s.value]));let i=0;for(let s=0;s<r.length;s++){const o=r[s];o.attrs.every(u=>a.get(u.name)===u.value)&&(i+=1,i>=Gu&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(Y0)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:yr.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:yr.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Y0);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===yr.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===yr.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===yr.Element&&n.element===t)}}const Ur={createDocument(){return{nodeName:"#document",mode:tr.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const a=e.childNodes.find(i=>i.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=r;else{const i={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Ur.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Ur.isTextNode(n)){n.value+=t;return}}Ur.appendChild(e,Ur.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Ur.isTextNode(r)?r.value+=t:Ur.insertBefore(e,Ur.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},rT="html",II="about:legacy-compat",RI="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",aT=["+//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//"],DI=[...aT,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],OI=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),iT=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],LI=[...iT,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Z0(e,t){return t.some(n=>e.startsWith(n))}function FI(e){return e.name===rT&&e.publicId===null&&(e.systemId===null||e.systemId===II)}function MI(e){if(e.name!==rT)return tr.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===RI)return tr.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),OI.has(n))return tr.QUIRKS;let r=t===null?DI:aT;if(Z0(n,r))return tr.QUIRKS;if(r=t===null?iT:LI,Z0(n,r))return tr.LIMITED_QUIRKS}return tr.NO_QUIRKS}const K0={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},PI="definitionurl",jI="definitionURL",BI=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),UI=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:ce.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:ce.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:ce.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:ce.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:ce.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:ce.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:ce.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:ce.XML}],["xml:space",{prefix:"xml",name:"space",namespace:ce.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:ce.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:ce.XMLNS}]]),$I=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),zI=new Set([h.B,h.BIG,h.BLOCKQUOTE,h.BODY,h.BR,h.CENTER,h.CODE,h.DD,h.DIV,h.DL,h.DT,h.EM,h.EMBED,h.H1,h.H2,h.H3,h.H4,h.H5,h.H6,h.HEAD,h.HR,h.I,h.IMG,h.LI,h.LISTING,h.MENU,h.META,h.NOBR,h.OL,h.P,h.PRE,h.RUBY,h.S,h.SMALL,h.SPAN,h.STRONG,h.STRIKE,h.SUB,h.SUP,h.TABLE,h.TT,h.U,h.UL,h.VAR]);function HI(e){const t=e.tagID;return t===h.FONT&&e.attrs.some(({name:r})=>r===ca.COLOR||r===ca.SIZE||r===ca.FACE)||zI.has(t)}function sT(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===PI){e.attrs[t].name=jI;break}}function oT(e){for(let t=0;t<e.attrs.length;t++){const n=BI.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Lg(e){for(let t=0;t<e.attrs.length;t++){const n=UI.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function GI(e){const t=$I.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Ei(e.tagName))}function WI(e,t){return t===ce.MATHML&&(e===h.MI||e===h.MO||e===h.MN||e===h.MS||e===h.MTEXT)}function VI(e,t,n){if(t===ce.MATHML&&e===h.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===ca.ENCODING){const a=n[r].value.toLowerCase();return a===K0.TEXT_HTML||a===K0.APPLICATION_XML}}return t===ce.SVG&&(e===h.FOREIGN_OBJECT||e===h.DESC||e===h.TITLE)}function qI(e,t,n,r){return(!r||r===ce.HTML)&&VI(e,t,n)||(!r||r===ce.MATHML)&&WI(e,t)}const YI="hidden",ZI=8,KI=3;var B;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(B||(B={}));const XI={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},lT=new Set([h.TABLE,h.TBODY,h.TFOOT,h.THEAD,h.TR]),X0={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Ur,onParseError:null};class Jo{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=B.INITIAL,this.originalInsertionMode=B.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={...X0,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new TI(this.options,this),this.activeFormattingElements=new kI(this.treeAdapter),this.fragmentContextID=r?Ei(this.treeAdapter.getTagName(r)):h.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new CI(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...X0,...n};t??(t=r.treeAdapter.createElement(q.TEMPLATE,ce.HTML,[]));const a=r.treeAdapter.createElement("documentmock",ce.HTML,[]),i=new this(r,a,t);return i.fragmentContextID===h.TEMPLATE&&i.tmplInsertionModeStack.unshift(B.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var a;if(!this.onParseError)return;const i=(a=t.location)!==null&&a!==void 0?a:XI,s={code:n,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:r?i.startLine:i.endLine,endCol:r?i.startCol:i.endCol,endOffset:r?i.startOffset:i.endOffset};this.onParseError(s)}onItemPush(t,n,r){var a,i;(i=(a=this.treeAdapter).onItemPush)===null||i===void 0||i.call(a,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,t,this.openElements.current),n){let i,s;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,s=this.fragmentContextID):{current:i,currentTagId:s}=this.openElements,this._setContextModes(i,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===ce.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,ce.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=B.TEXT}switchToPlaintextParsing(){this.insertionMode=B.TEXT,this.originalInsertionMode=B.IN_BODY,this.tokenizer.state=Xt.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===q.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==ce.HTML))switch(this.fragmentContextID){case h.TITLE:case h.TEXTAREA:{this.tokenizer.state=Xt.RCDATA;break}case h.STYLE:case h.XMP:case h.IFRAME:case h.NOEMBED:case h.NOFRAMES:case h.NOSCRIPT:{this.tokenizer.state=Xt.RAWTEXT;break}case h.SCRIPT:{this.tokenizer.state=Xt.SCRIPT_DATA;break}case h.PLAINTEXT:{this.tokenizer.state=Xt.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,ce.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,ce.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(q.HTML,ce.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,h.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(n),i=r?a.lastIndexOf(r):a.length,s=a[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:u,endCol:c,endOffset:p}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:u,endCol:c,endOffset:p})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,a=this.treeAdapter.getTagName(t),i=n.type===ut.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===h.SVG&&this.treeAdapter.getTagName(n)===q.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===ce.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===h.MGLYPH||t.tagID===h.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,ce.HTML)}_processToken(t){switch(t.type){case ut.CHARACTER:{this.onCharacter(t);break}case ut.NULL_CHARACTER:{this.onNullCharacter(t);break}case ut.COMMENT:{this.onComment(t);break}case ut.DOCTYPE:{this.onDoctype(t);break}case ut.START_TAG:{this._processStartTag(t);break}case ut.END_TAG:{this.onEndTag(t);break}case ut.EOF:{this.onEof(t);break}case ut.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return qI(t,a,i,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===yr.Marker||this.openElements.contains(a.element)),r=n===-1?t-1:n-1;for(let a=r;a>=0;a--){const i=this.activeFormattingElements.entries[a];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=B.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(h.P),this.openElements.popUntilTagNamePopped(h.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case h.TR:{this.insertionMode=B.IN_ROW;return}case h.TBODY:case h.THEAD:case h.TFOOT:{this.insertionMode=B.IN_TABLE_BODY;return}case h.CAPTION:{this.insertionMode=B.IN_CAPTION;return}case h.COLGROUP:{this.insertionMode=B.IN_COLUMN_GROUP;return}case h.TABLE:{this.insertionMode=B.IN_TABLE;return}case h.BODY:{this.insertionMode=B.IN_BODY;return}case h.FRAMESET:{this.insertionMode=B.IN_FRAMESET;return}case h.SELECT:{this._resetInsertionModeForSelect(t);return}case h.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case h.HTML:{this.insertionMode=this.headElement?B.AFTER_HEAD:B.BEFORE_HEAD;return}case h.TD:case h.TH:{if(t>0){this.insertionMode=B.IN_CELL;return}break}case h.HEAD:{if(t>0){this.insertionMode=B.IN_HEAD;return}break}}this.insertionMode=B.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===h.TEMPLATE)break;if(r===h.TABLE){this.insertionMode=B.IN_SELECT_IN_TABLE;return}}this.insertionMode=B.IN_SELECT}_isElementCausesFosterParenting(t){return lT.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case h.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===ce.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case h.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return bI[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){_2(this,t);return}switch(this.insertionMode){case B.INITIAL:{Mi(this,t);break}case B.BEFORE_HTML:{es(this,t);break}case B.BEFORE_HEAD:{ts(this,t);break}case B.IN_HEAD:{ns(this,t);break}case B.IN_HEAD_NO_SCRIPT:{rs(this,t);break}case B.AFTER_HEAD:{as(this,t);break}case B.IN_BODY:case B.IN_CAPTION:case B.IN_CELL:case B.IN_TEMPLATE:{cT(this,t);break}case B.TEXT:case B.IN_SELECT:case B.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case B.IN_TABLE:case B.IN_TABLE_BODY:case B.IN_ROW:{Wu(this,t);break}case B.IN_TABLE_TEXT:{gT(this,t);break}case B.IN_COLUMN_GROUP:{el(this,t);break}case B.AFTER_BODY:{tl(this,t);break}case B.AFTER_AFTER_BODY:{$o(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){N2(this,t);return}switch(this.insertionMode){case B.INITIAL:{Mi(this,t);break}case B.BEFORE_HTML:{es(this,t);break}case B.BEFORE_HEAD:{ts(this,t);break}case B.IN_HEAD:{ns(this,t);break}case B.IN_HEAD_NO_SCRIPT:{rs(this,t);break}case B.AFTER_HEAD:{as(this,t);break}case B.TEXT:{this._insertCharacters(t);break}case B.IN_TABLE:case B.IN_TABLE_BODY:case B.IN_ROW:{Wu(this,t);break}case B.IN_COLUMN_GROUP:{el(this,t);break}case B.AFTER_BODY:{tl(this,t);break}case B.AFTER_AFTER_BODY:{$o(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Qc(this,t);return}switch(this.insertionMode){case B.INITIAL:case B.BEFORE_HTML:case B.BEFORE_HEAD:case B.IN_HEAD:case B.IN_HEAD_NO_SCRIPT:case B.AFTER_HEAD:case B.IN_BODY:case B.IN_TABLE:case B.IN_CAPTION:case B.IN_COLUMN_GROUP:case B.IN_TABLE_BODY:case B.IN_ROW:case B.IN_CELL:case B.IN_SELECT:case B.IN_SELECT_IN_TABLE:case B.IN_TEMPLATE:case B.IN_FRAMESET:case B.AFTER_FRAMESET:{Qc(this,t);break}case B.IN_TABLE_TEXT:{Pi(this,t);break}case B.AFTER_BODY:{aR(this,t);break}case B.AFTER_AFTER_BODY:case B.AFTER_AFTER_FRAMESET:{iR(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case B.INITIAL:{sR(this,t);break}case B.BEFORE_HEAD:case B.IN_HEAD:case B.IN_HEAD_NO_SCRIPT:case B.AFTER_HEAD:{this._err(t,te.misplacedDoctype);break}case B.IN_TABLE_TEXT:{Pi(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,te.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?C2(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case B.INITIAL:{Mi(this,t);break}case B.BEFORE_HTML:{oR(this,t);break}case B.BEFORE_HEAD:{uR(this,t);break}case B.IN_HEAD:{fr(this,t);break}case B.IN_HEAD_NO_SCRIPT:{pR(this,t);break}case B.AFTER_HEAD:{mR(this,t);break}case B.IN_BODY:{Rn(this,t);break}case B.IN_TABLE:{ni(this,t);break}case B.IN_TABLE_TEXT:{Pi(this,t);break}case B.IN_CAPTION:{c2(this,t);break}case B.IN_COLUMN_GROUP:{Pg(this,t);break}case B.IN_TABLE_BODY:{uu(this,t);break}case B.IN_ROW:{cu(this,t);break}case B.IN_CELL:{f2(this,t);break}case B.IN_SELECT:{xT(this,t);break}case B.IN_SELECT_IN_TABLE:{h2(this,t);break}case B.IN_TEMPLATE:{b2(this,t);break}case B.AFTER_BODY:{x2(this,t);break}case B.IN_FRAMESET:{y2(this,t);break}case B.AFTER_FRAMESET:{S2(this,t);break}case B.AFTER_AFTER_BODY:{w2(this,t);break}case B.AFTER_AFTER_FRAMESET:{A2(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?k2(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case B.INITIAL:{Mi(this,t);break}case B.BEFORE_HTML:{lR(this,t);break}case B.BEFORE_HEAD:{cR(this,t);break}case B.IN_HEAD:{dR(this,t);break}case B.IN_HEAD_NO_SCRIPT:{fR(this,t);break}case B.AFTER_HEAD:{hR(this,t);break}case B.IN_BODY:{lu(this,t);break}case B.TEXT:{e2(this,t);break}case B.IN_TABLE:{bs(this,t);break}case B.IN_TABLE_TEXT:{Pi(this,t);break}case B.IN_CAPTION:{d2(this,t);break}case B.IN_COLUMN_GROUP:{p2(this,t);break}case B.IN_TABLE_BODY:{Jc(this,t);break}case B.IN_ROW:{ET(this,t);break}case B.IN_CELL:{m2(this,t);break}case B.IN_SELECT:{yT(this,t);break}case B.IN_SELECT_IN_TABLE:{g2(this,t);break}case B.IN_TEMPLATE:{E2(this,t);break}case B.AFTER_BODY:{ST(this,t);break}case B.IN_FRAMESET:{T2(this,t);break}case B.AFTER_FRAMESET:{v2(this,t);break}case B.AFTER_AFTER_BODY:{$o(this,t);break}}}onEof(t){switch(this.insertionMode){case B.INITIAL:{Mi(this,t);break}case B.BEFORE_HTML:{es(this,t);break}case B.BEFORE_HEAD:{ts(this,t);break}case B.IN_HEAD:{ns(this,t);break}case B.IN_HEAD_NO_SCRIPT:{rs(this,t);break}case B.AFTER_HEAD:{as(this,t);break}case B.IN_BODY:case B.IN_TABLE:case B.IN_CAPTION:case B.IN_COLUMN_GROUP:case B.IN_TABLE_BODY:case B.IN_ROW:case B.IN_CELL:case B.IN_SELECT:case B.IN_SELECT_IN_TABLE:{mT(this,t);break}case B.TEXT:{t2(this,t);break}case B.IN_TABLE_TEXT:{Pi(this,t);break}case B.IN_TEMPLATE:{TT(this,t);break}case B.AFTER_BODY:case B.IN_FRAMESET:case B.AFTER_FRAMESET:case B.AFTER_AFTER_BODY:case B.AFTER_AFTER_FRAMESET:{Mg(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===k.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case B.IN_HEAD:case B.IN_HEAD_NO_SCRIPT:case B.AFTER_HEAD:case B.TEXT:case B.IN_COLUMN_GROUP:case B.IN_SELECT:case B.IN_SELECT_IN_TABLE:case B.IN_FRAMESET:case B.AFTER_FRAMESET:{this._insertCharacters(t);break}case B.IN_BODY:case B.IN_CAPTION:case B.IN_CELL:case B.IN_TEMPLATE:case B.AFTER_BODY:case B.AFTER_AFTER_BODY:case B.AFTER_AFTER_FRAMESET:{uT(this,t);break}case B.IN_TABLE:case B.IN_TABLE_BODY:case B.IN_ROW:{Wu(this,t);break}case B.IN_TABLE_TEXT:{hT(this,t);break}}}}function QI(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):fT(e,t),n}function JI(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function eR(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let i=0,s=a;s!==n;i++,s=a){a=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),u=o&&i>=KI;!o||u?(u&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=tR(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function tR(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function nR(e,t,n){const r=e.treeAdapter.getTagName(t),a=Ei(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);a===h.TEMPLATE&&i===ce.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function rR(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,i=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i,a.tagID)}function Fg(e,t){for(let n=0;n<ZI;n++){const r=QI(e,t);if(!r)break;const a=JI(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const i=eR(e,a,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(i),s&&nR(e,s,i),rR(e,a,r)}}function Qc(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function aR(e,t){e._appendCommentNode(t,e.openElements.items[0])}function iR(e,t){e._appendCommentNode(t,e.document)}function Mg(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const i=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(i);s&&!s.endTag&&e._setEndLocation(i,t)}}}}function sR(e,t){e._setDocumentType(t);const n=t.forceQuirks?tr.QUIRKS:MI(t);FI(t)||e._err(t,te.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=B.BEFORE_HTML}function Mi(e,t){e._err(t,te.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,tr.QUIRKS),e.insertionMode=B.BEFORE_HTML,e._processToken(t)}function oR(e,t){t.tagID===h.HTML?(e._insertElement(t,ce.HTML),e.insertionMode=B.BEFORE_HEAD):es(e,t)}function lR(e,t){const n=t.tagID;(n===h.HTML||n===h.HEAD||n===h.BODY||n===h.BR)&&es(e,t)}function es(e,t){e._insertFakeRootElement(),e.insertionMode=B.BEFORE_HEAD,e._processToken(t)}function uR(e,t){switch(t.tagID){case h.HTML:{Rn(e,t);break}case h.HEAD:{e._insertElement(t,ce.HTML),e.headElement=e.openElements.current,e.insertionMode=B.IN_HEAD;break}default:ts(e,t)}}function cR(e,t){const n=t.tagID;n===h.HEAD||n===h.BODY||n===h.HTML||n===h.BR?ts(e,t):e._err(t,te.endTagWithoutMatchingOpenElement)}function ts(e,t){e._insertFakeElement(q.HEAD,h.HEAD),e.headElement=e.openElements.current,e.insertionMode=B.IN_HEAD,e._processToken(t)}function fr(e,t){switch(t.tagID){case h.HTML:{Rn(e,t);break}case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:{e._appendElement(t,ce.HTML),t.ackSelfClosing=!0;break}case h.TITLE:{e._switchToTextParsing(t,Xt.RCDATA);break}case h.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Xt.RAWTEXT):(e._insertElement(t,ce.HTML),e.insertionMode=B.IN_HEAD_NO_SCRIPT);break}case h.NOFRAMES:case h.STYLE:{e._switchToTextParsing(t,Xt.RAWTEXT);break}case h.SCRIPT:{e._switchToTextParsing(t,Xt.SCRIPT_DATA);break}case h.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=B.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(B.IN_TEMPLATE);break}case h.HEAD:{e._err(t,te.misplacedStartTagForHeadElement);break}default:ns(e,t)}}function dR(e,t){switch(t.tagID){case h.HEAD:{e.openElements.pop(),e.insertionMode=B.AFTER_HEAD;break}case h.BODY:case h.BR:case h.HTML:{ns(e,t);break}case h.TEMPLATE:{Aa(e,t);break}default:e._err(t,te.endTagWithoutMatchingOpenElement)}}function Aa(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==h.TEMPLATE&&e._err(t,te.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,te.endTagWithoutMatchingOpenElement)}function ns(e,t){e.openElements.pop(),e.insertionMode=B.AFTER_HEAD,e._processToken(t)}function pR(e,t){switch(t.tagID){case h.HTML:{Rn(e,t);break}case h.BASEFONT:case h.BGSOUND:case h.HEAD:case h.LINK:case h.META:case h.NOFRAMES:case h.STYLE:{fr(e,t);break}case h.NOSCRIPT:{e._err(t,te.nestedNoscriptInHead);break}default:rs(e,t)}}function fR(e,t){switch(t.tagID){case h.NOSCRIPT:{e.openElements.pop(),e.insertionMode=B.IN_HEAD;break}case h.BR:{rs(e,t);break}default:e._err(t,te.endTagWithoutMatchingOpenElement)}}function rs(e,t){const n=t.type===ut.EOF?te.openElementsLeftAfterEof:te.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=B.IN_HEAD,e._processToken(t)}function mR(e,t){switch(t.tagID){case h.HTML:{Rn(e,t);break}case h.BODY:{e._insertElement(t,ce.HTML),e.framesetOk=!1,e.insertionMode=B.IN_BODY;break}case h.FRAMESET:{e._insertElement(t,ce.HTML),e.insertionMode=B.IN_FRAMESET;break}case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:case h.NOFRAMES:case h.SCRIPT:case h.STYLE:case h.TEMPLATE:case h.TITLE:{e._err(t,te.abandonedHeadElementChild),e.openElements.push(e.headElement,h.HEAD),fr(e,t),e.openElements.remove(e.headElement);break}case h.HEAD:{e._err(t,te.misplacedStartTagForHeadElement);break}default:as(e,t)}}function hR(e,t){switch(t.tagID){case h.BODY:case h.HTML:case h.BR:{as(e,t);break}case h.TEMPLATE:{Aa(e,t);break}default:e._err(t,te.endTagWithoutMatchingOpenElement)}}function as(e,t){e._insertFakeElement(q.BODY,h.BODY),e.insertionMode=B.IN_BODY,ou(e,t)}function ou(e,t){switch(t.type){case ut.CHARACTER:{cT(e,t);break}case ut.WHITESPACE_CHARACTER:{uT(e,t);break}case ut.COMMENT:{Qc(e,t);break}case ut.START_TAG:{Rn(e,t);break}case ut.END_TAG:{lu(e,t);break}case ut.EOF:{mT(e,t);break}}}function uT(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function cT(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function gR(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function bR(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function ER(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,ce.HTML),e.insertionMode=B.IN_FRAMESET)}function xR(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,ce.HTML)}function yR(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Xc.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,ce.HTML)}function TR(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,ce.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function SR(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,ce.HTML),n||(e.formElement=e.openElements.current))}function vR(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.tagIDs[r];if(n===h.LI&&a===h.LI||(n===h.DD||n===h.DT)&&(a===h.DD||a===h.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==h.ADDRESS&&a!==h.DIV&&a!==h.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,ce.HTML)}function wR(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,ce.HTML),e.tokenizer.state=Xt.PLAINTEXT}function AR(e,t){e.openElements.hasInScope(h.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,ce.HTML),e.framesetOk=!1}function NR(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(q.A);n&&(Fg(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,ce.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function _R(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ce.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function CR(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(h.NOBR)&&(Fg(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,ce.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function kR(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ce.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function IR(e,t){e.treeAdapter.getDocumentMode(e.document)!==tr.QUIRKS&&e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,ce.HTML),e.framesetOk=!1,e.insertionMode=B.IN_TABLE}function dT(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ce.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function pT(e){const t=eT(e,ca.TYPE);return t!=null&&t.toLowerCase()===YI}function RR(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ce.HTML),pT(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function DR(e,t){e._appendElement(t,ce.HTML),t.ackSelfClosing=!0}function OR(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._appendElement(t,ce.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function LR(e,t){t.tagName=q.IMG,t.tagID=h.IMG,dT(e,t)}function FR(e,t){e._insertElement(t,ce.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Xt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=B.TEXT}function MR(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Xt.RAWTEXT)}function PR(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Xt.RAWTEXT)}function Q0(e,t){e._switchToTextParsing(t,Xt.RAWTEXT)}function jR(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ce.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===B.IN_TABLE||e.insertionMode===B.IN_CAPTION||e.insertionMode===B.IN_TABLE_BODY||e.insertionMode===B.IN_ROW||e.insertionMode===B.IN_CELL?B.IN_SELECT_IN_TABLE:B.IN_SELECT}function BR(e,t){e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,ce.HTML)}function UR(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,ce.HTML)}function $R(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(h.RTC),e._insertElement(t,ce.HTML)}function zR(e,t){e._reconstructActiveFormattingElements(),sT(t),Lg(t),t.selfClosing?e._appendElement(t,ce.MATHML):e._insertElement(t,ce.MATHML),t.ackSelfClosing=!0}function HR(e,t){e._reconstructActiveFormattingElements(),oT(t),Lg(t),t.selfClosing?e._appendElement(t,ce.SVG):e._insertElement(t,ce.SVG),t.ackSelfClosing=!0}function J0(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ce.HTML)}function Rn(e,t){switch(t.tagID){case h.I:case h.S:case h.B:case h.U:case h.EM:case h.TT:case h.BIG:case h.CODE:case h.FONT:case h.SMALL:case h.STRIKE:case h.STRONG:{_R(e,t);break}case h.A:{NR(e,t);break}case h.H1:case h.H2:case h.H3:case h.H4:case h.H5:case h.H6:{yR(e,t);break}case h.P:case h.DL:case h.OL:case h.UL:case h.DIV:case h.DIR:case h.NAV:case h.MAIN:case h.MENU:case h.ASIDE:case h.CENTER:case h.FIGURE:case h.FOOTER:case h.HEADER:case h.HGROUP:case h.DIALOG:case h.DETAILS:case h.ADDRESS:case h.ARTICLE:case h.SEARCH:case h.SECTION:case h.SUMMARY:case h.FIELDSET:case h.BLOCKQUOTE:case h.FIGCAPTION:{xR(e,t);break}case h.LI:case h.DD:case h.DT:{vR(e,t);break}case h.BR:case h.IMG:case h.WBR:case h.AREA:case h.EMBED:case h.KEYGEN:{dT(e,t);break}case h.HR:{OR(e,t);break}case h.RB:case h.RTC:{UR(e,t);break}case h.RT:case h.RP:{$R(e,t);break}case h.PRE:case h.LISTING:{TR(e,t);break}case h.XMP:{MR(e,t);break}case h.SVG:{HR(e,t);break}case h.HTML:{gR(e,t);break}case h.BASE:case h.LINK:case h.META:case h.STYLE:case h.TITLE:case h.SCRIPT:case h.BGSOUND:case h.BASEFONT:case h.TEMPLATE:{fr(e,t);break}case h.BODY:{bR(e,t);break}case h.FORM:{SR(e,t);break}case h.NOBR:{CR(e,t);break}case h.MATH:{zR(e,t);break}case h.TABLE:{IR(e,t);break}case h.INPUT:{RR(e,t);break}case h.PARAM:case h.TRACK:case h.SOURCE:{DR(e,t);break}case h.IMAGE:{LR(e,t);break}case h.BUTTON:{AR(e,t);break}case h.APPLET:case h.OBJECT:case h.MARQUEE:{kR(e,t);break}case h.IFRAME:{PR(e,t);break}case h.SELECT:{jR(e,t);break}case h.OPTION:case h.OPTGROUP:{BR(e,t);break}case h.NOEMBED:case h.NOFRAMES:{Q0(e,t);break}case h.FRAMESET:{ER(e,t);break}case h.TEXTAREA:{FR(e,t);break}case h.NOSCRIPT:{e.options.scriptingEnabled?Q0(e,t):J0(e,t);break}case h.PLAINTEXT:{wR(e,t);break}case h.COL:case h.TH:case h.TD:case h.TR:case h.HEAD:case h.FRAME:case h.TBODY:case h.TFOOT:case h.THEAD:case h.CAPTION:case h.COLGROUP:break;default:J0(e,t)}}function GR(e,t){if(e.openElements.hasInScope(h.BODY)&&(e.insertionMode=B.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function WR(e,t){e.openElements.hasInScope(h.BODY)&&(e.insertionMode=B.AFTER_BODY,ST(e,t))}function VR(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function qR(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(h.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(h.FORM):n&&e.openElements.remove(n))}function YR(e){e.openElements.hasInButtonScope(h.P)||e._insertFakeElement(q.P,h.P),e._closePElement()}function ZR(e){e.openElements.hasInListItemScope(h.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(h.LI),e.openElements.popUntilTagNamePopped(h.LI))}function KR(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function XR(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function QR(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function JR(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(q.BR,h.BR),e.openElements.pop(),e.framesetOk=!1}function fT(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const i=e.openElements.items[a],s=e.openElements.tagIDs[a];if(r===s&&(r!==h.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(i,s))break}}function lu(e,t){switch(t.tagID){case h.A:case h.B:case h.I:case h.S:case h.U:case h.EM:case h.TT:case h.BIG:case h.CODE:case h.FONT:case h.NOBR:case h.SMALL:case h.STRIKE:case h.STRONG:{Fg(e,t);break}case h.P:{YR(e);break}case h.DL:case h.UL:case h.OL:case h.DIR:case h.DIV:case h.NAV:case h.PRE:case h.MAIN:case h.MENU:case h.ASIDE:case h.BUTTON:case h.CENTER:case h.FIGURE:case h.FOOTER:case h.HEADER:case h.HGROUP:case h.DIALOG:case h.ADDRESS:case h.ARTICLE:case h.DETAILS:case h.SEARCH:case h.SECTION:case h.SUMMARY:case h.LISTING:case h.FIELDSET:case h.BLOCKQUOTE:case h.FIGCAPTION:{VR(e,t);break}case h.LI:{ZR(e);break}case h.DD:case h.DT:{KR(e,t);break}case h.H1:case h.H2:case h.H3:case h.H4:case h.H5:case h.H6:{XR(e);break}case h.BR:{JR(e);break}case h.BODY:{GR(e,t);break}case h.HTML:{WR(e,t);break}case h.FORM:{qR(e);break}case h.APPLET:case h.OBJECT:case h.MARQUEE:{QR(e,t);break}case h.TEMPLATE:{Aa(e,t);break}default:fT(e,t)}}function mT(e,t){e.tmplInsertionModeStack.length>0?TT(e,t):Mg(e,t)}function e2(e,t){var n;t.tagID===h.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function t2(e,t){e._err(t,te.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Wu(e,t){if(e.openElements.currentTagId!==void 0&&lT.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=B.IN_TABLE_TEXT,t.type){case ut.CHARACTER:{gT(e,t);break}case ut.WHITESPACE_CHARACTER:{hT(e,t);break}}else Vs(e,t)}function n2(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,ce.HTML),e.insertionMode=B.IN_CAPTION}function r2(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ce.HTML),e.insertionMode=B.IN_COLUMN_GROUP}function a2(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(q.COLGROUP,h.COLGROUP),e.insertionMode=B.IN_COLUMN_GROUP,Pg(e,t)}function i2(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ce.HTML),e.insertionMode=B.IN_TABLE_BODY}function s2(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(q.TBODY,h.TBODY),e.insertionMode=B.IN_TABLE_BODY,uu(e,t)}function o2(e,t){e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function l2(e,t){pT(t)?e._appendElement(t,ce.HTML):Vs(e,t),t.ackSelfClosing=!0}function u2(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,ce.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function ni(e,t){switch(t.tagID){case h.TD:case h.TH:case h.TR:{s2(e,t);break}case h.STYLE:case h.SCRIPT:case h.TEMPLATE:{fr(e,t);break}case h.COL:{a2(e,t);break}case h.FORM:{u2(e,t);break}case h.TABLE:{o2(e,t);break}case h.TBODY:case h.TFOOT:case h.THEAD:{i2(e,t);break}case h.INPUT:{l2(e,t);break}case h.CAPTION:{n2(e,t);break}case h.COLGROUP:{r2(e,t);break}default:Vs(e,t)}}function bs(e,t){switch(t.tagID){case h.TABLE:{e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode());break}case h.TEMPLATE:{Aa(e,t);break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:case h.TBODY:case h.TD:case h.TFOOT:case h.TH:case h.THEAD:case h.TR:break;default:Vs(e,t)}}function Vs(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,ou(e,t),e.fosterParentingEnabled=n}function hT(e,t){e.pendingCharacterTokens.push(t)}function gT(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Pi(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Vs(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const bT=new Set([h.CAPTION,h.COL,h.COLGROUP,h.TBODY,h.TD,h.TFOOT,h.TH,h.THEAD,h.TR]);function c2(e,t){const n=t.tagID;bT.has(n)?e.openElements.hasInTableScope(h.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=B.IN_TABLE,ni(e,t)):Rn(e,t)}function d2(e,t){const n=t.tagID;switch(n){case h.CAPTION:case h.TABLE:{e.openElements.hasInTableScope(h.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=B.IN_TABLE,n===h.TABLE&&bs(e,t));break}case h.BODY:case h.COL:case h.COLGROUP:case h.HTML:case h.TBODY:case h.TD:case h.TFOOT:case h.TH:case h.THEAD:case h.TR:break;default:lu(e,t)}}function Pg(e,t){switch(t.tagID){case h.HTML:{Rn(e,t);break}case h.COL:{e._appendElement(t,ce.HTML),t.ackSelfClosing=!0;break}case h.TEMPLATE:{fr(e,t);break}default:el(e,t)}}function p2(e,t){switch(t.tagID){case h.COLGROUP:{e.openElements.currentTagId===h.COLGROUP&&(e.openElements.pop(),e.insertionMode=B.IN_TABLE);break}case h.TEMPLATE:{Aa(e,t);break}case h.COL:break;default:el(e,t)}}function el(e,t){e.openElements.currentTagId===h.COLGROUP&&(e.openElements.pop(),e.insertionMode=B.IN_TABLE,e._processToken(t))}function uu(e,t){switch(t.tagID){case h.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,ce.HTML),e.insertionMode=B.IN_ROW;break}case h.TH:case h.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(q.TR,h.TR),e.insertionMode=B.IN_ROW,cu(e,t);break}case h.CAPTION:case h.COL:case h.COLGROUP:case h.TBODY:case h.TFOOT:case h.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE,ni(e,t));break}default:ni(e,t)}}function Jc(e,t){const n=t.tagID;switch(t.tagID){case h.TBODY:case h.TFOOT:case h.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE);break}case h.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE,bs(e,t));break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:case h.TD:case h.TH:case h.TR:break;default:bs(e,t)}}function cu(e,t){switch(t.tagID){case h.TH:case h.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,ce.HTML),e.insertionMode=B.IN_CELL,e.activeFormattingElements.insertMarker();break}case h.CAPTION:case h.COL:case h.COLGROUP:case h.TBODY:case h.TFOOT:case h.THEAD:case h.TR:{e.openElements.hasInTableScope(h.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE_BODY,uu(e,t));break}default:ni(e,t)}}function ET(e,t){switch(t.tagID){case h.TR:{e.openElements.hasInTableScope(h.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE_BODY);break}case h.TABLE:{e.openElements.hasInTableScope(h.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE_BODY,Jc(e,t));break}case h.TBODY:case h.TFOOT:case h.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(h.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE_BODY,Jc(e,t));break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:case h.TD:case h.TH:break;default:bs(e,t)}}function f2(e,t){const n=t.tagID;bT.has(n)?(e.openElements.hasInTableScope(h.TD)||e.openElements.hasInTableScope(h.TH))&&(e._closeTableCell(),cu(e,t)):Rn(e,t)}function m2(e,t){const n=t.tagID;switch(n){case h.TD:case h.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=B.IN_ROW);break}case h.TABLE:case h.TBODY:case h.TFOOT:case h.THEAD:case h.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),ET(e,t));break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:break;default:lu(e,t)}}function xT(e,t){switch(t.tagID){case h.HTML:{Rn(e,t);break}case h.OPTION:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e._insertElement(t,ce.HTML);break}case h.OPTGROUP:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e.openElements.currentTagId===h.OPTGROUP&&e.openElements.pop(),e._insertElement(t,ce.HTML);break}case h.HR:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e.openElements.currentTagId===h.OPTGROUP&&e.openElements.pop(),e._appendElement(t,ce.HTML),t.ackSelfClosing=!0;break}case h.INPUT:case h.KEYGEN:case h.TEXTAREA:case h.SELECT:{e.openElements.hasInSelectScope(h.SELECT)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),t.tagID!==h.SELECT&&e._processStartTag(t));break}case h.SCRIPT:case h.TEMPLATE:{fr(e,t);break}}}function yT(e,t){switch(t.tagID){case h.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===h.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===h.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===h.OPTGROUP&&e.openElements.pop();break}case h.OPTION:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop();break}case h.SELECT:{e.openElements.hasInSelectScope(h.SELECT)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode());break}case h.TEMPLATE:{Aa(e,t);break}}}function h2(e,t){const n=t.tagID;n===h.CAPTION||n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR||n===h.TD||n===h.TH?(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),e._processStartTag(t)):xT(e,t)}function g2(e,t){const n=t.tagID;n===h.CAPTION||n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR||n===h.TD||n===h.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),e.onEndTag(t)):yT(e,t)}function b2(e,t){switch(t.tagID){case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:case h.NOFRAMES:case h.SCRIPT:case h.STYLE:case h.TEMPLATE:case h.TITLE:{fr(e,t);break}case h.CAPTION:case h.COLGROUP:case h.TBODY:case h.TFOOT:case h.THEAD:{e.tmplInsertionModeStack[0]=B.IN_TABLE,e.insertionMode=B.IN_TABLE,ni(e,t);break}case h.COL:{e.tmplInsertionModeStack[0]=B.IN_COLUMN_GROUP,e.insertionMode=B.IN_COLUMN_GROUP,Pg(e,t);break}case h.TR:{e.tmplInsertionModeStack[0]=B.IN_TABLE_BODY,e.insertionMode=B.IN_TABLE_BODY,uu(e,t);break}case h.TD:case h.TH:{e.tmplInsertionModeStack[0]=B.IN_ROW,e.insertionMode=B.IN_ROW,cu(e,t);break}default:e.tmplInsertionModeStack[0]=B.IN_BODY,e.insertionMode=B.IN_BODY,Rn(e,t)}}function E2(e,t){t.tagID===h.TEMPLATE&&Aa(e,t)}function TT(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Mg(e,t)}function x2(e,t){t.tagID===h.HTML?Rn(e,t):tl(e,t)}function ST(e,t){var n;if(t.tagID===h.HTML){if(e.fragmentContext||(e.insertionMode=B.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===h.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else tl(e,t)}function tl(e,t){e.insertionMode=B.IN_BODY,ou(e,t)}function y2(e,t){switch(t.tagID){case h.HTML:{Rn(e,t);break}case h.FRAMESET:{e._insertElement(t,ce.HTML);break}case h.FRAME:{e._appendElement(t,ce.HTML),t.ackSelfClosing=!0;break}case h.NOFRAMES:{fr(e,t);break}}}function T2(e,t){t.tagID===h.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==h.FRAMESET&&(e.insertionMode=B.AFTER_FRAMESET))}function S2(e,t){switch(t.tagID){case h.HTML:{Rn(e,t);break}case h.NOFRAMES:{fr(e,t);break}}}function v2(e,t){t.tagID===h.HTML&&(e.insertionMode=B.AFTER_AFTER_FRAMESET)}function w2(e,t){t.tagID===h.HTML?Rn(e,t):$o(e,t)}function $o(e,t){e.insertionMode=B.IN_BODY,ou(e,t)}function A2(e,t){switch(t.tagID){case h.HTML:{Rn(e,t);break}case h.NOFRAMES:{fr(e,t);break}}}function N2(e,t){t.chars=Ht,e._insertCharacters(t)}function _2(e,t){e._insertCharacters(t),e.framesetOk=!1}function vT(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==ce.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function C2(e,t){if(HI(t))vT(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===ce.MATHML?sT(t):r===ce.SVG&&(GI(t),oT(t)),Lg(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function k2(e,t){if(t.tagID===h.P||t.tagID===h.BR){vT(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===ce.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}q.AREA,q.BASE,q.BASEFONT,q.BGSOUND,q.BR,q.COL,q.EMBED,q.FRAME,q.HR,q.IMG,q.INPUT,q.KEYGEN,q.LINK,q.META,q.PARAM,q.SOURCE,q.TRACK,q.WBR;function I2(e,t){return Jo.parse(e,t)}function R2(e,t,n){typeof e=="string"&&(n=t,t=e,e=null);const r=Jo.getFragmentParser(e,n);return r.tokenizer.write(t,!0),r.getFragment()}const du=wT("end"),wr=wT("start");function wT(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function D2(e){const t=wr(e),n=du(e);if(t&&n)return{start:t,end:n}}const O2=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,L2=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),eE={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function AT(e,t){const n=G2(e),r=au("type",{handlers:{root:F2,element:M2,text:P2,comment:_T,doctype:j2,raw:U2},unknown:$2}),a={parser:n?new Jo(eE):Jo.getFragmentParser(void 0,eE),handle(o){r(o,a)},stitches:!1,options:t||{}};r(e,a),xi(a,wr());const i=n?a.parser.document:a.parser.getFragment(),s=q1(i,{file:a.options.file});return a.stitches&&$n(s,"comment",function(o,u,c){const p=o;if(p.value.stitch&&c&&u!==void 0){const d=c.children;return d[u]=p.value.stitch,u}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function NT(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function F2(e,t){NT(e.children,t)}function M2(e,t){z2(e,t),NT(e.children,t),H2(e,t)}function P2(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:ut.CHARACTER,chars:e.value,location:qs(e)};xi(t,wr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function j2(e,t){const n={type:ut.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:qs(e)};xi(t,wr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function B2(e,t){t.stitches=!0;const n=W2(e);if("children"in e&&"children"in n){const r=AT({type:"root",children:e.children},t.options);n.children=r.children}_T({type:"comment",value:{stitch:n}},t)}function _T(e,t){const n=e.value,r={type:ut.COMMENT,data:n,location:qs(e)};xi(t,wr(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function U2(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,CT(t,wr(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(O2,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function $2(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))B2(n,t);else{let r="";throw L2.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function xi(e,t){CT(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Xt.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function CT(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function z2(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Xt.PLAINTEXT)return;xi(t,wr(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:la.html;a===la.html&&n==="svg"&&(a=la.svg);const i=Yk({...e,children:[]},{space:a===la.svg?"svg":"html"}),s={type:ut.START_TAG,tagName:n,tagID:Ei(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:qs(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function H2(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&K1.includes(n)||t.parser.tokenizer.state===Xt.PLAINTEXT)return;xi(t,du(e));const r={type:ut.END_TAG,tagName:n,tagID:Ei(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:qs(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Xt.RCDATA||t.parser.tokenizer.state===Xt.RAWTEXT||t.parser.tokenizer.state===Xt.SCRIPT_DATA)&&(t.parser.tokenizer.state=Xt.DATA)}function G2(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function qs(e){const t=wr(e)||{line:void 0,column:void 0,offset:void 0},n=du(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function W2(e){return"children"in e?pa({...e,children:[]}):pa(e)}function kT(e){return function(t,n){return AT(t,{...e,file:n})}}function Es(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}const V2=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,q2=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Y2={};function tE(e,t){return(Y2.jsx?q2:V2).test(e)}var Oa={},Vu,nE;function Z2(){if(nE)return Vu;nE=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,u=`
|
|
17
|
-
`,c="/",p="*",d="",f="comment",m="declaration";function b(x,y){if(typeof x!="string")throw new TypeError("First argument must be a string");if(!x)return[];y=y||{};var S=1,v=1;function w(W){var U=W.match(t);U&&(S+=U.length);var ne=W.lastIndexOf(u);v=~ne?W.length-ne:v+W.length}function R(){var W={line:S,column:v};return function(U){return U.position=new N(W),L(),U}}function N(W){this.start=W,this.end={line:S,column:v},this.source=y.source}N.prototype.content=x;function T(W){var U=new Error(y.source+":"+S+":"+v+": "+W);if(U.reason=W,U.filename=y.source,U.line=S,U.column=v,U.source=x,!y.silent)throw U}function _(W){var U=W.exec(x);if(U){var ne=U[0];return w(ne),x=x.slice(ne.length),U}}function L(){_(n)}function C(W){var U;for(W=W||[];U=$();)U!==!1&&W.push(U);return W}function $(){var W=R();if(!(c!=x.charAt(0)||p!=x.charAt(1))){for(var U=2;d!=x.charAt(U)&&(p!=x.charAt(U)||c!=x.charAt(U+1));)++U;if(U+=2,d===x.charAt(U-1))return T("End of comment missing");var ne=x.slice(2,U-2);return v+=2,w(ne),x=x.slice(U),v+=2,W({type:f,comment:ne})}}function I(){var W=R(),U=_(r);if(U){if($(),!_(a))return T("property missing ':'");var ne=_(i),z=W({type:m,property:E(U[0].replace(e,d)),value:ne?E(ne[0].replace(e,d)):d});return _(s),z}}function P(){var W=[];C(W);for(var U;U=I();)U!==!1&&(W.push(U),C(W));return W}return L(),P()}function E(x){return x?x.replace(o,d):d}return Vu=b,Vu}var rE;function K2(){if(rE)return Oa;rE=1;var e=Oa&&Oa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.default=n;const t=e(Z2());function n(r,a){let i=null;if(!r||typeof r!="string")return i;const s=(0,t.default)(r),o=typeof a=="function";return s.forEach(u=>{if(u.type!=="declaration")return;const{property:c,value:p}=u;o?a(c,p,u):p&&(i=i||{},i[c]=p)}),i}return Oa}var ji={},aE;function X2(){if(aE)return ji;aE=1,Object.defineProperty(ji,"__esModule",{value:!0}),ji.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,i=function(c){return!c||n.test(c)||e.test(c)},s=function(c,p){return p.toUpperCase()},o=function(c,p){return"".concat(p,"-")},u=function(c,p){return p===void 0&&(p={}),i(c)?c:(c=c.toLowerCase(),p.reactCompat?c=c.replace(a,o):c=c.replace(r,o),c.replace(t,s))};return ji.camelCase=u,ji}var Bi,iE;function Q2(){if(iE)return Bi;iE=1;var e=Bi&&Bi.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(K2()),n=X2();function r(a,i){var s={};return!a||typeof a!="string"||(0,t.default)(a,function(o,u){o&&u&&(s[(0,n.camelCase)(o,i)]=u)}),s}return r.default=r,Bi=r,Bi}var J2=Q2();const eD=kl(J2);function is(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?sE(e.position):"start"in e||"end"in e?sE(e):"line"in e||"column"in e?ed(e):""}function ed(e){return oE(e&&e.line)+":"+oE(e&&e.column)}function sE(e){return ed(e&&e.start)+"-"+ed(e&&e.end)}function oE(e){return e&&typeof e=="number"?e:1}class Nn extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},s=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(s=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?i.ruleId=r:(i.source=r.slice(0,u),i.ruleId=r.slice(u+1))}if(!i.place&&i.ancestors&&i.ancestors){const u=i.ancestors[i.ancestors.length-1];u&&(i.place=u.position)}const o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=o?o.line:void 0,this.name=is(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Nn.prototype.file="";Nn.prototype.name="";Nn.prototype.reason="";Nn.prototype.message="";Nn.prototype.stack="";Nn.prototype.column=void 0;Nn.prototype.line=void 0;Nn.prototype.ancestors=void 0;Nn.prototype.cause=void 0;Nn.prototype.fatal=void 0;Nn.prototype.place=void 0;Nn.prototype.ruleId=void 0;Nn.prototype.source=void 0;const jg={}.hasOwnProperty,tD=new Map,nD=/[A-Z]/g,rD=new Set(["table","tbody","thead","tfoot","tr"]),aD=new Set(["td","th"]),IT="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function iD(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=fD(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=pD(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?pr:wa,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=RT(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function RT(e,t,n){if(t.type==="element")return sD(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return oD(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return uD(e,t,n);if(t.type==="mdxjsEsm")return lD(e,t);if(t.type==="root")return cD(e,t,n);if(t.type==="text")return dD(e,t)}function sD(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=pr,e.schema=a),e.ancestors.push(t);const i=OT(e,t.tagName,!1),s=mD(e,t);let o=Ug(e,t);return rD.has(t.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!Ws(u):!0})),DT(e,s,i,t),Bg(s,o),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function oD(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}xs(e,t.position)}function lD(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);xs(e,t.position)}function uD(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=pr,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:OT(e,t.name,!0),s=hD(e,t),o=Ug(e,t);return DT(e,s,i,t),Bg(s,o),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function cD(e,t,n){const r={};return Bg(r,Ug(e,t)),e.create(t,e.Fragment,r,n)}function dD(e,t){return t.value}function DT(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Bg(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function pD(e,t,n){return r;function r(a,i,s,o){const c=Array.isArray(s.children)?n:t;return o?c(i,s,o):c(i,s)}}function fD(e,t){return n;function n(r,a,i,s){const o=Array.isArray(i.children),u=wr(r);return t(a,i,s,o,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function mD(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&jg.call(t.properties,a)){const i=gD(e,a,t.properties[a]);if(i){const[s,o]=i;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&aD.has(t.tagName)?r=o:n[s]=o}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function hD(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const s=i.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else xs(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,i=e.evaluater.evaluateExpression(o.expression)}else xs(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function Ug(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:tD;for(;++r<t.children.length;){const i=t.children[r];let s;if(e.passKeys){const u=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(u){const c=a.get(u)||0;s=u+"-"+c,a.set(u,c+1)}}const o=RT(e,i,s);o!==void 0&&n.push(o)}return n}function gD(e,t,n){const r=hi(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Jl(n):eu(n)),r.property==="style"){let a=typeof n=="object"?n:bD(e,String(n));return e.stylePropertyNameCase==="css"&&(a=ED(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?$_[r.property]||r.property:r.attribute,n]}}function bD(e,t){try{return eD(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new Nn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=IT+"#cannot-parse-style-attribute",a}}function OT(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,s;for(;++i<a.length;){const o=tE(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(i&&o.type==="Literal"),optional:!1}:o}r=s}else r=tE(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return jg.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);xs(e)}function xs(e,t){const n=new Nn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=IT+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ED(e){const t={};let n;for(n in e)jg.call(e,n)&&(t[xD(n)]=e[n]);return t}function xD(e){let t=e.replace(nD,yD);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function yD(e){return"-"+e.toLowerCase()}const qu={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"]},TD={};function $g(e,t){const n=TD,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return LT(e,r,a)}function LT(e,t,n){if(SD(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return lE(e.children,t,n)}return Array.isArray(e)?lE(e,t,n):""}function lE(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=LT(e[a],t,n);return r.join("")}function SD(e){return!!(e&&typeof e=="object")}function Vn(e,t,n,r){const a=e.length;let i=0,s;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);i<r.length;)s=r.slice(i,i+1e4),s.unshift(t,0),e.splice(...s),i+=1e4,t+=1e4}function nr(e,t){return e.length>0?(Vn(e,e.length,0,t),e):t}const uE={}.hasOwnProperty;function FT(e){const t={};let n=-1;for(;++n<e.length;)vD(t,e[n]);return t}function vD(e,t){let n;for(n in t){const a=(uE.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let s;if(i)for(s in i){uE.call(a,s)||(a[s]=[]);const o=i[s];wD(a[s],Array.isArray(o)?o:o?[o]:[])}}}function wD(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Vn(e,0,0,r)}function MT(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function or(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Fn=ta(/[A-Za-z]/),In=ta(/[\dA-Za-z]/),AD=ta(/[#-'*+\--9=?A-Z^-~]/);function nl(e){return e!==null&&(e<32||e===127)}const td=ta(/\d/),ND=ta(/[\dA-Fa-f]/),_D=ta(/[!-/:-@[-`{-~]/);function He(e){return e!==null&&e<-2}function Mt(e){return e!==null&&(e<0||e===32)}function dt(e){return e===-2||e===-1||e===32}const pu=ta(/\p{P}|\p{S}/u),fa=ta(/\s/);function ta(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function yi(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let s="";if(i===37&&In(e.charCodeAt(n+1))&&In(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){const o=e.charCodeAt(n+1);i<56320&&o>56319&&o<57344?(s=String.fromCharCode(i,o),a=1):s="�"}else s=String.fromCharCode(i);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+a+1,s=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function Tt(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return s;function s(u){return dt(u)?(e.enter(n),o(u)):t(u)}function o(u){return dt(u)&&i++<a?(e.consume(u),o):(e.exit(n),t(u))}}const CD={tokenize:kD};function kD(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Tt(e,t,"linePrefix")}function a(o){return e.enter("paragraph"),i(o)}function i(o){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return He(o)?(e.consume(o),e.exit("chunkText"),i):(e.consume(o),s)}}const ID={tokenize:RD},cE={tokenize:DD};function RD(e){const t=this,n=[];let r=0,a,i,s;return o;function o(v){if(r<n.length){const w=n[r];return t.containerState=w[1],e.attempt(w[0].continuation,u,c)(v)}return c(v)}function u(v){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&S();const w=t.events.length;let R=w,N;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){N=t.events[R][1].end;break}y(r);let T=w;for(;T<t.events.length;)t.events[T][1].end={...N},T++;return Vn(t.events,R+1,0,t.events.slice(w)),t.events.length=T,c(v)}return o(v)}function c(v){if(r===n.length){if(!a)return f(v);if(a.currentConstruct&&a.currentConstruct.concrete)return b(v);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(cE,p,d)(v)}function p(v){return a&&S(),y(r),f(v)}function d(v){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,b(v)}function f(v){return t.containerState={},e.attempt(cE,m,b)(v)}function m(v){return r++,n.push([t.currentConstruct,t.containerState]),f(v)}function b(v){if(v===null){a&&S(),y(0),e.consume(v);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),E(v)}function E(v){if(v===null){x(e.exit("chunkFlow"),!0),y(0),e.consume(v);return}return He(v)?(e.consume(v),x(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(v),E)}function x(v,w){const R=t.sliceStream(v);if(w&&R.push(null),v.previous=i,i&&(i.next=v),i=v,a.defineSkip(v.start),a.write(R),t.parser.lazy[v.start.line]){let N=a.events.length;for(;N--;)if(a.events[N][1].start.offset<s&&(!a.events[N][1].end||a.events[N][1].end.offset>s))return;const T=t.events.length;let _=T,L,C;for(;_--;)if(t.events[_][0]==="exit"&&t.events[_][1].type==="chunkFlow"){if(L){C=t.events[_][1].end;break}L=!0}for(y(r),N=T;N<t.events.length;)t.events[N][1].end={...C},N++;Vn(t.events,_+1,0,t.events.slice(T)),t.events.length=N}}function y(v){let w=n.length;for(;w-- >v;){const R=n[w];t.containerState=R[1],R[0].exit.call(t,e)}n.length=v}function S(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function DD(e,t,n){return Tt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ri(e){if(e===null||Mt(e)||fa(e))return 1;if(pu(e))return 2}function fu(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const nd={name:"attention",resolveAll:OD,tokenize:LD};function OD(e,t){let n=-1,r,a,i,s,o,u,c,p;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},f={...e[n][1].start};dE(d,-u),dE(f,u),s={type:u>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},o={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},i={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:u>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=nr(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=nr(c,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",i,t]]),c=nr(c,fu(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=nr(c,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,c=nr(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,Vn(e,r-1,n-r+3,c),n=r+c.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function LD(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=ri(r);let i;return s;function s(u){return i=u,e.enter("attentionSequence"),o(u)}function o(u){if(u===i)return e.consume(u),o;const c=e.exit("attentionSequence"),p=ri(u),d=!p||p===2&&a||n.includes(u),f=!a||a===2&&p||n.includes(r);return c._open=!!(i===42?d:d&&(a||!f)),c._close=!!(i===42?f:f&&(p||!d)),t(u)}}function dE(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const FD={name:"autolink",tokenize:MD};function MD(e,t,n){let r=0;return a;function a(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(m){return Fn(m)?(e.consume(m),s):m===64?n(m):c(m)}function s(m){return m===43||m===45||m===46||In(m)?(r=1,o(m)):c(m)}function o(m){return m===58?(e.consume(m),r=0,u):(m===43||m===45||m===46||In(m))&&r++<32?(e.consume(m),o):(r=0,c(m))}function u(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||nl(m)?n(m):(e.consume(m),u)}function c(m){return m===64?(e.consume(m),p):AD(m)?(e.consume(m),c):n(m)}function p(m){return In(m)?d(m):n(m)}function d(m){return m===46?(e.consume(m),r=0,p):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):f(m)}function f(m){if((m===45||In(m))&&r++<63){const b=m===45?f:d;return e.consume(m),b}return n(m)}}const Ys={partial:!0,tokenize:PD};function PD(e,t,n){return r;function r(i){return dt(i)?Tt(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||He(i)?t(i):n(i)}}const PT={continuation:{tokenize:BD},exit:UD,name:"blockQuote",tokenize:jD};function jD(e,t,n){const r=this;return a;function a(s){if(s===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),i}return n(s)}function i(s){return dt(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function BD(e,t,n){const r=this;return a;function a(s){return dt(s)?Tt(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):i(s)}function i(s){return e.attempt(PT,t,n)(s)}}function UD(e){e.exit("blockQuote")}const jT={name:"characterEscape",tokenize:$D};function $D(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return _D(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const BT={name:"characterReference",tokenize:zD};function zD(e,t,n){const r=this;let a=0,i,s;return o;function o(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),u}function u(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,s=In,p(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,s=ND,p):(e.enter("characterReferenceValue"),i=7,s=td,p(d))}function p(d){if(d===59&&a){const f=e.exit("characterReferenceValue");return s===In&&!gs(r.sliceSerialize(f))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&a++<i?(e.consume(d),p):n(d)}}const pE={partial:!0,tokenize:GD},fE={concrete:!0,name:"codeFenced",tokenize:HD};function HD(e,t,n){const r=this,a={partial:!0,tokenize:R};let i=0,s=0,o;return u;function u(N){return c(N)}function c(N){const T=r.events[r.events.length-1];return i=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[1],!0).length:0,o=N,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(N)}function p(N){return N===o?(s++,e.consume(N),p):s<3?n(N):(e.exit("codeFencedFenceSequence"),dt(N)?Tt(e,d,"whitespace")(N):d(N))}function d(N){return N===null||He(N)?(e.exit("codeFencedFence"),r.interrupt?t(N):e.check(pE,E,w)(N)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(N))}function f(N){return N===null||He(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(N)):dt(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Tt(e,m,"whitespace")(N)):N===96&&N===o?n(N):(e.consume(N),f)}function m(N){return N===null||He(N)?d(N):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(N))}function b(N){return N===null||He(N)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(N)):N===96&&N===o?n(N):(e.consume(N),b)}function E(N){return e.attempt(a,w,x)(N)}function x(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),y}function y(N){return i>0&&dt(N)?Tt(e,S,"linePrefix",i+1)(N):S(N)}function S(N){return N===null||He(N)?e.check(pE,E,w)(N):(e.enter("codeFlowValue"),v(N))}function v(N){return N===null||He(N)?(e.exit("codeFlowValue"),S(N)):(e.consume(N),v)}function w(N){return e.exit("codeFenced"),t(N)}function R(N,T,_){let L=0;return C;function C(U){return N.enter("lineEnding"),N.consume(U),N.exit("lineEnding"),$}function $(U){return N.enter("codeFencedFence"),dt(U)?Tt(N,I,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):I(U)}function I(U){return U===o?(N.enter("codeFencedFenceSequence"),P(U)):_(U)}function P(U){return U===o?(L++,N.consume(U),P):L>=s?(N.exit("codeFencedFenceSequence"),dt(U)?Tt(N,W,"whitespace")(U):W(U)):_(U)}function W(U){return U===null||He(U)?(N.exit("codeFencedFence"),T(U)):_(U)}}}function GD(e,t,n){const r=this;return a;function a(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i)}function i(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const Yu={name:"codeIndented",tokenize:VD},WD={partial:!0,tokenize:qD};function VD(e,t,n){const r=this;return a;function a(c){return e.enter("codeIndented"),Tt(e,i,"linePrefix",5)(c)}function i(c){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?s(c):n(c)}function s(c){return c===null?u(c):He(c)?e.attempt(WD,s,u)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||He(c)?(e.exit("codeFlowValue"),s(c)):(e.consume(c),o)}function u(c){return e.exit("codeIndented"),t(c)}}function qD(e,t,n){const r=this;return a;function a(s){return r.parser.lazy[r.now().line]?n(s):He(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):Tt(e,i,"linePrefix",5)(s)}function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):He(s)?a(s):n(s)}}const YD={name:"codeText",previous:KD,resolve:ZD,tokenize:XD};function ZD(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function KD(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function XD(e,t,n){let r=0,a,i;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),o(d)}function o(d){return d===96?(e.consume(d),r++,o):(e.exit("codeTextSequence"),u(d))}function u(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),u):d===96?(i=e.enter("codeTextSequence"),a=0,p(d)):He(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||He(d)?(e.exit("codeTextData"),u(d)):(e.consume(d),c)}function p(d){return d===96?(e.consume(d),a++,p):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(i.type="codeTextData",c(d))}}class QD{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&Ui(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ui(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ui(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Ui(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ui(this.left,n.reverse())}}}function Ui(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function UT(e){const t={};let n=-1,r,a,i,s,o,u,c;const p=new QD(e);for(;++n<p.length;){for(;n in t;)n=t[n];if(r=p.get(n),n&&r[1].type==="chunkFlow"&&p.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,i=0,i<u.length&&u[i][1].type==="lineEndingBlank"&&(i+=2),i<u.length&&u[i][1].type==="content"))for(;++i<u.length&&u[i][1].type!=="content";)u[i][1].type==="chunkText"&&(u[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,JD(p,n)),n=t[n],c=!0);else if(r[1]._container){for(i=n,a=void 0;i--;)if(s=p.get(i),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(a&&(p.get(a)[1].type="lineEndingBlank"),s[1].type="lineEnding",a=i);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;a&&(r[1].end={...p.get(a)[1].start},o=p.slice(a,n),o.unshift(r),p.splice(a,n-a+1,o))}}return Vn(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!c}function JD(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const i=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,u=[],c={};let p,d,f=-1,m=n,b=0,E=0;const x=[E];for(;m;){for(;e.get(++a)[1]!==m;);i.push(a),m._tokenizer||(p=r.sliceStream(m),m.next||p.push(null),d&&s.defineSkip(m.start),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(p),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=m,m=m.next}for(m=n;++f<o.length;)o[f][0]==="exit"&&o[f-1][0]==="enter"&&o[f][1].type===o[f-1][1].type&&o[f][1].start.line!==o[f][1].end.line&&(E=f+1,x.push(E),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(s.events=[],m?(m._tokenizer=void 0,m.previous=void 0):x.pop(),f=x.length;f--;){const y=o.slice(x[f],x[f+1]),S=i.pop();u.push([S,S+y.length-1]),e.splice(S,2,y)}for(u.reverse(),f=-1;++f<u.length;)c[b+u[f][0]]=b+u[f][1],b+=u[f][1]-u[f][0]-1;return c}const eO={resolve:nO,tokenize:rO},tO={partial:!0,tokenize:aO};function nO(e){return UT(e),e}function rO(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(o)}function a(o){return o===null?i(o):He(o)?e.check(tO,s,i)(o):(e.consume(o),a)}function i(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function aO(e,t,n){const r=this;return a;function a(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Tt(e,i,"linePrefix")}function i(s){if(s===null||He(s))return n(s);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function $T(e,t,n,r,a,i,s,o,u){const c=u||Number.POSITIVE_INFINITY;let p=0;return d;function d(y){return y===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(y),e.exit(i),f):y===null||y===32||y===41||nl(y)?n(y):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),E(y))}function f(y){return y===62?(e.enter(i),e.consume(y),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===62?(e.exit("chunkString"),e.exit(o),f(y)):y===null||y===60||He(y)?n(y):(e.consume(y),y===92?b:m)}function b(y){return y===60||y===62||y===92?(e.consume(y),m):m(y)}function E(y){return!p&&(y===null||y===41||Mt(y))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(y)):p<c&&y===40?(e.consume(y),p++,E):y===41?(e.consume(y),p--,E):y===null||y===32||y===40||nl(y)?n(y):(e.consume(y),y===92?x:E)}function x(y){return y===40||y===41||y===92?(e.consume(y),E):E(y)}}function zT(e,t,n,r,a,i){const s=this;let o=0,u;return c;function c(m){return e.enter(r),e.enter(a),e.consume(m),e.exit(a),e.enter(i),p}function p(m){return o>999||m===null||m===91||m===93&&!u||m===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(m):m===93?(e.exit(i),e.enter(a),e.consume(m),e.exit(a),e.exit(r),t):He(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===null||m===91||m===93||He(m)||o++>999?(e.exit("chunkString"),p(m)):(e.consume(m),u||(u=!dt(m)),m===92?f:d)}function f(m){return m===91||m===92||m===93?(e.consume(m),o++,d):d(m)}}function HT(e,t,n,r,a,i){let s;return o;function o(f){return f===34||f===39||f===40?(e.enter(r),e.enter(a),e.consume(f),e.exit(a),s=f===40?41:f,u):n(f)}function u(f){return f===s?(e.enter(a),e.consume(f),e.exit(a),e.exit(r),t):(e.enter(i),c(f))}function c(f){return f===s?(e.exit(i),u(s)):f===null?n(f):He(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Tt(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(f))}function p(f){return f===s||f===null||He(f)?(e.exit("chunkString"),c(f)):(e.consume(f),f===92?d:p)}function d(f){return f===s||f===92?(e.consume(f),p):p(f)}}function ss(e,t){let n;return r;function r(a){return He(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):dt(a)?Tt(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const iO={name:"definition",tokenize:oO},sO={partial:!0,tokenize:lO};function oO(e,t,n){const r=this;let a;return i;function i(m){return e.enter("definition"),s(m)}function s(m){return zT.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function o(m){return a=or(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),u):n(m)}function u(m){return Mt(m)?ss(e,c)(m):c(m)}function c(m){return $T(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function p(m){return e.attempt(sO,d,d)(m)}function d(m){return dt(m)?Tt(e,f,"whitespace")(m):f(m)}function f(m){return m===null||He(m)?(e.exit("definition"),r.parser.defined.push(a),t(m)):n(m)}}function lO(e,t,n){return r;function r(o){return Mt(o)?ss(e,a)(o):n(o)}function a(o){return HT(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function i(o){return dt(o)?Tt(e,s,"whitespace")(o):s(o)}function s(o){return o===null||He(o)?t(o):n(o)}}const uO={name:"hardBreakEscape",tokenize:cO};function cO(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return He(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const dO={name:"headingAtx",resolve:pO,tokenize:fO};function pO(e,t){let n=e.length-2,r=3,a,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Vn(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function fO(e,t,n){let r=0;return a;function a(p){return e.enter("atxHeading"),i(p)}function i(p){return e.enter("atxHeadingSequence"),s(p)}function s(p){return p===35&&r++<6?(e.consume(p),s):p===null||Mt(p)?(e.exit("atxHeadingSequence"),o(p)):n(p)}function o(p){return p===35?(e.enter("atxHeadingSequence"),u(p)):p===null||He(p)?(e.exit("atxHeading"),t(p)):dt(p)?Tt(e,o,"whitespace")(p):(e.enter("atxHeadingText"),c(p))}function u(p){return p===35?(e.consume(p),u):(e.exit("atxHeadingSequence"),o(p))}function c(p){return p===null||p===35||Mt(p)?(e.exit("atxHeadingText"),o(p)):(e.consume(p),c)}}const mO=["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"],mE=["pre","script","style","textarea"],hO={concrete:!0,name:"htmlFlow",resolveTo:EO,tokenize:xO},gO={partial:!0,tokenize:TO},bO={partial:!0,tokenize:yO};function EO(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function xO(e,t,n){const r=this;let a,i,s,o,u;return c;function c(O){return p(O)}function p(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),d}function d(O){return O===33?(e.consume(O),f):O===47?(e.consume(O),i=!0,E):O===63?(e.consume(O),a=3,r.interrupt?t:D):Fn(O)?(e.consume(O),s=String.fromCharCode(O),x):n(O)}function f(O){return O===45?(e.consume(O),a=2,m):O===91?(e.consume(O),a=5,o=0,b):Fn(O)?(e.consume(O),a=4,r.interrupt?t:D):n(O)}function m(O){return O===45?(e.consume(O),r.interrupt?t:D):n(O)}function b(O){const Ce="CDATA[";return O===Ce.charCodeAt(o++)?(e.consume(O),o===Ce.length?r.interrupt?t:I:b):n(O)}function E(O){return Fn(O)?(e.consume(O),s=String.fromCharCode(O),x):n(O)}function x(O){if(O===null||O===47||O===62||Mt(O)){const Ce=O===47,De=s.toLowerCase();return!Ce&&!i&&mE.includes(De)?(a=1,r.interrupt?t(O):I(O)):mO.includes(s.toLowerCase())?(a=6,Ce?(e.consume(O),y):r.interrupt?t(O):I(O)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(O):i?S(O):v(O))}return O===45||In(O)?(e.consume(O),s+=String.fromCharCode(O),x):n(O)}function y(O){return O===62?(e.consume(O),r.interrupt?t:I):n(O)}function S(O){return dt(O)?(e.consume(O),S):C(O)}function v(O){return O===47?(e.consume(O),C):O===58||O===95||Fn(O)?(e.consume(O),w):dt(O)?(e.consume(O),v):C(O)}function w(O){return O===45||O===46||O===58||O===95||In(O)?(e.consume(O),w):R(O)}function R(O){return O===61?(e.consume(O),N):dt(O)?(e.consume(O),R):v(O)}function N(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(e.consume(O),u=O,T):dt(O)?(e.consume(O),N):_(O)}function T(O){return O===u?(e.consume(O),u=null,L):O===null||He(O)?n(O):(e.consume(O),T)}function _(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||Mt(O)?R(O):(e.consume(O),_)}function L(O){return O===47||O===62||dt(O)?v(O):n(O)}function C(O){return O===62?(e.consume(O),$):n(O)}function $(O){return O===null||He(O)?I(O):dt(O)?(e.consume(O),$):n(O)}function I(O){return O===45&&a===2?(e.consume(O),ne):O===60&&a===1?(e.consume(O),z):O===62&&a===4?(e.consume(O),Q):O===63&&a===3?(e.consume(O),D):O===93&&a===5?(e.consume(O),pe):He(O)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(gO,de,P)(O)):O===null||He(O)?(e.exit("htmlFlowData"),P(O)):(e.consume(O),I)}function P(O){return e.check(bO,W,de)(O)}function W(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),U}function U(O){return O===null||He(O)?P(O):(e.enter("htmlFlowData"),I(O))}function ne(O){return O===45?(e.consume(O),D):I(O)}function z(O){return O===47?(e.consume(O),s="",se):I(O)}function se(O){if(O===62){const Ce=s.toLowerCase();return mE.includes(Ce)?(e.consume(O),Q):I(O)}return Fn(O)&&s.length<8?(e.consume(O),s+=String.fromCharCode(O),se):I(O)}function pe(O){return O===93?(e.consume(O),D):I(O)}function D(O){return O===62?(e.consume(O),Q):O===45&&a===2?(e.consume(O),D):I(O)}function Q(O){return O===null||He(O)?(e.exit("htmlFlowData"),de(O)):(e.consume(O),Q)}function de(O){return e.exit("htmlFlow"),t(O)}}function yO(e,t,n){const r=this;return a;function a(s){return He(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):n(s)}function i(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function TO(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Ys,t,n)}}const SO={name:"htmlText",tokenize:vO};function vO(e,t,n){const r=this;let a,i,s;return o;function o(D){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(D),u}function u(D){return D===33?(e.consume(D),c):D===47?(e.consume(D),R):D===63?(e.consume(D),v):Fn(D)?(e.consume(D),_):n(D)}function c(D){return D===45?(e.consume(D),p):D===91?(e.consume(D),i=0,b):Fn(D)?(e.consume(D),S):n(D)}function p(D){return D===45?(e.consume(D),m):n(D)}function d(D){return D===null?n(D):D===45?(e.consume(D),f):He(D)?(s=d,z(D)):(e.consume(D),d)}function f(D){return D===45?(e.consume(D),m):d(D)}function m(D){return D===62?ne(D):D===45?f(D):d(D)}function b(D){const Q="CDATA[";return D===Q.charCodeAt(i++)?(e.consume(D),i===Q.length?E:b):n(D)}function E(D){return D===null?n(D):D===93?(e.consume(D),x):He(D)?(s=E,z(D)):(e.consume(D),E)}function x(D){return D===93?(e.consume(D),y):E(D)}function y(D){return D===62?ne(D):D===93?(e.consume(D),y):E(D)}function S(D){return D===null||D===62?ne(D):He(D)?(s=S,z(D)):(e.consume(D),S)}function v(D){return D===null?n(D):D===63?(e.consume(D),w):He(D)?(s=v,z(D)):(e.consume(D),v)}function w(D){return D===62?ne(D):v(D)}function R(D){return Fn(D)?(e.consume(D),N):n(D)}function N(D){return D===45||In(D)?(e.consume(D),N):T(D)}function T(D){return He(D)?(s=T,z(D)):dt(D)?(e.consume(D),T):ne(D)}function _(D){return D===45||In(D)?(e.consume(D),_):D===47||D===62||Mt(D)?L(D):n(D)}function L(D){return D===47?(e.consume(D),ne):D===58||D===95||Fn(D)?(e.consume(D),C):He(D)?(s=L,z(D)):dt(D)?(e.consume(D),L):ne(D)}function C(D){return D===45||D===46||D===58||D===95||In(D)?(e.consume(D),C):$(D)}function $(D){return D===61?(e.consume(D),I):He(D)?(s=$,z(D)):dt(D)?(e.consume(D),$):L(D)}function I(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),a=D,P):He(D)?(s=I,z(D)):dt(D)?(e.consume(D),I):(e.consume(D),W)}function P(D){return D===a?(e.consume(D),a=void 0,U):D===null?n(D):He(D)?(s=P,z(D)):(e.consume(D),P)}function W(D){return D===null||D===34||D===39||D===60||D===61||D===96?n(D):D===47||D===62||Mt(D)?L(D):(e.consume(D),W)}function U(D){return D===47||D===62||Mt(D)?L(D):n(D)}function ne(D){return D===62?(e.consume(D),e.exit("htmlTextData"),e.exit("htmlText"),t):n(D)}function z(D){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),se}function se(D){return dt(D)?Tt(e,pe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):pe(D)}function pe(D){return e.enter("htmlTextData"),s(D)}}const zg={name:"labelEnd",resolveAll:_O,resolveTo:CO,tokenize:kO},wO={tokenize:IO},AO={tokenize:RO},NO={tokenize:DO};function _O(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&Vn(e,0,e.length,n),e}function CO(e,t){let n=e.length,r=0,a,i,s,o;for(;n--;)if(a=e[n][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(s=n);const u={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[i][1].start},end:{...e[s][1].end}},p={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",u,t],["enter",c,t]],o=nr(o,e.slice(i+1,i+r+3)),o=nr(o,[["enter",p,t]]),o=nr(o,fu(t.parser.constructs.insideSpan.null,e.slice(i+r+4,s-3),t)),o=nr(o,[["exit",p,t],e[s-2],e[s-1],["exit",c,t]]),o=nr(o,e.slice(s+1)),o=nr(o,[["exit",u,t]]),Vn(e,i,e.length,o),e}function kO(e,t,n){const r=this;let a=r.events.length,i,s;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){i=r.events[a][1];break}return o;function o(f){return i?i._inactive?d(f):(s=r.parser.defined.includes(or(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),u):n(f)}function u(f){return f===40?e.attempt(wO,p,s?p:d)(f):f===91?e.attempt(AO,p,s?c:d)(f):s?p(f):d(f)}function c(f){return e.attempt(NO,p,d)(f)}function p(f){return t(f)}function d(f){return i._balanced=!0,n(f)}}function IO(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),a}function a(d){return Mt(d)?ss(e,i)(d):i(d)}function i(d){return d===41?p(d):$T(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return Mt(d)?ss(e,u)(d):p(d)}function o(d){return n(d)}function u(d){return d===34||d===39||d===40?HT(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):p(d)}function c(d){return Mt(d)?ss(e,p)(d):p(d)}function p(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function RO(e,t,n){const r=this;return a;function a(o){return zT.call(r,e,i,s,"reference","referenceMarker","referenceString")(o)}function i(o){return r.parser.defined.includes(or(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function DO(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const OO={name:"labelStartImage",resolveAll:zg.resolveAll,tokenize:LO};function LO(e,t,n){const r=this;return a;function a(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),i}function i(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):n(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const FO={name:"labelStartLink",resolveAll:zg.resolveAll,tokenize:MO};function MO(e,t,n){const r=this;return a;function a(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),i}function i(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Zu={name:"lineEnding",tokenize:PO};function PO(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Tt(e,t,"linePrefix")}}const zo={name:"thematicBreak",tokenize:jO};function jO(e,t,n){let r=0,a;return i;function i(c){return e.enter("thematicBreak"),s(c)}function s(c){return a=c,o(c)}function o(c){return c===a?(e.enter("thematicBreakSequence"),u(c)):r>=3&&(c===null||He(c))?(e.exit("thematicBreak"),t(c)):n(c)}function u(c){return c===a?(e.consume(c),r++,u):(e.exit("thematicBreakSequence"),dt(c)?Tt(e,o,"whitespace")(c):o(c))}}const Un={continuation:{tokenize:zO},exit:GO,name:"list",tokenize:$O},BO={partial:!0,tokenize:WO},UO={partial:!0,tokenize:HO};function $O(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,s=0;return o;function o(m){const b=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:td(m)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(zo,n,c)(m):c(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(m)}return n(m)}function u(m){return td(m)&&++s<10?(e.consume(m),u):(!r.interrupt||s<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),c(m)):n(m)}function c(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(Ys,r.interrupt?n:p,e.attempt(BO,f,d))}function p(m){return r.containerState.initialBlankLine=!0,i++,f(m)}function d(m){return dt(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),f):n(m)}function f(m){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function zO(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ys,a,i);function a(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Tt(e,t,"listItemIndent",r.containerState.size+1)(o)}function i(o){return r.containerState.furtherBlankLines||!dt(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(UO,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Tt(e,e.attempt(Un,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function HO(e,t,n){const r=this;return Tt(e,a,"listItemIndent",r.containerState.size+1);function a(i){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(i):n(i)}}function GO(e){e.exit(this.containerState.type)}function WO(e,t,n){const r=this;return Tt(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const s=r.events[r.events.length-1];return!dt(i)&&s&&s[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const hE={name:"setextUnderline",resolveTo:VO,tokenize:qO};function VO(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",s,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function qO(e,t,n){const r=this;let a;return i;function i(c){let p=r.events.length,d;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){d=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),a=c,s(c)):n(c)}function s(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===a?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),dt(c)?Tt(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||He(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const YO={tokenize:ZO};function ZO(e){const t=this,n=e.attempt(Ys,r,e.attempt(this.parser.constructs.flowInitial,a,Tt(e,e.attempt(this.parser.constructs.flow,a,e.attempt(eO,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const KO={resolveAll:WT()},XO=GT("string"),QO=GT("text");function GT(e){return{resolveAll:WT(e==="text"?JO:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,s,o);return s;function s(p){return c(p)?i(p):o(p)}function o(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),u}function u(p){return c(p)?(n.exit("data"),i(p)):(n.consume(p),u)}function c(p){if(p===null)return!0;const d=a[p];let f=-1;if(d)for(;++f<d.length;){const m=d[f];if(!m.previous||m.previous.call(r,r.previous))return!0}return!1}}}function WT(e){return t;function t(n,r){let a=-1,i;for(;++a<=n.length;)i===void 0?n[a]&&n[a][1].type==="data"&&(i=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==i+2&&(n[i][1].end=n[a-1][1].end,n.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(n,r):n}}function JO(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let i=a.length,s=-1,o=0,u;for(;i--;){const c=a[i];if(typeof c=="string"){for(s=c.length;c.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(c===-2)u=!0,o++;else if(c!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const c={type:n===e.length||u||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:r.start._bufferIndex+s,_index:r.start._index+i,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const eL={42:Un,43:Un,45:Un,48:Un,49:Un,50:Un,51:Un,52:Un,53:Un,54:Un,55:Un,56:Un,57:Un,62:PT},tL={91:iO},nL={[-2]:Yu,[-1]:Yu,32:Yu},rL={35:dO,42:zo,45:[hE,zo],60:hO,61:hE,95:zo,96:fE,126:fE},aL={38:BT,92:jT},iL={[-5]:Zu,[-4]:Zu,[-3]:Zu,33:OO,38:BT,42:nd,60:[FD,SO],91:FO,92:[uO,jT],93:zg,95:nd,96:YD},sL={null:[nd,KO]},oL={null:[42,95]},lL={null:[]},uL=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:oL,contentInitial:tL,disable:lL,document:eL,flow:rL,flowInitial:nL,insideSpan:sL,string:aL,text:iL},Symbol.toStringTag,{value:"Module"}));function cL(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},i=[];let s=[],o=[];const u={attempt:T(R),check:T(N),consume:S,enter:v,exit:w,interrupt:T(N,{interrupt:!0})},c={code:null,containerState:{},defineSkip:E,events:[],now:b,parser:e,previous:null,sliceSerialize:f,sliceStream:m,write:d};let p=t.tokenize.call(c,u);return t.resolveAll&&i.push(t),c;function d($){return s=nr(s,$),x(),s[s.length-1]!==null?[]:(_(t,0),c.events=fu(i,c.events,c),c.events)}function f($,I){return pL(m($),I)}function m($){return dL(s,$)}function b(){const{_bufferIndex:$,_index:I,line:P,column:W,offset:U}=r;return{_bufferIndex:$,_index:I,line:P,column:W,offset:U}}function E($){a[$.line]=$.column,C()}function x(){let $;for(;r._index<s.length;){const I=s[r._index];if(typeof I=="string")for($=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===$&&r._bufferIndex<I.length;)y(I.charCodeAt(r._bufferIndex));else y(I)}}function y($){p=p($)}function S($){He($)?(r.line++,r.column=1,r.offset+=$===-3?2:1,C()):$!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=$}function v($,I){const P=I||{};return P.type=$,P.start=b(),c.events.push(["enter",P,c]),o.push(P),P}function w($){const I=o.pop();return I.end=b(),c.events.push(["exit",I,c]),I}function R($,I){_($,I.from)}function N($,I){I.restore()}function T($,I){return P;function P(W,U,ne){let z,se,pe,D;return Array.isArray(W)?de(W):"tokenize"in W?de([W]):Q(W);function Q(J){return _e;function _e(fe){const X=fe!==null&&J[fe],Ge=fe!==null&&J.null,ge=[...Array.isArray(X)?X:X?[X]:[],...Array.isArray(Ge)?Ge:Ge?[Ge]:[]];return de(ge)(fe)}}function de(J){return z=J,se=0,J.length===0?ne:O(J[se])}function O(J){return _e;function _e(fe){return D=L(),pe=J,J.partial||(c.currentConstruct=J),J.name&&c.parser.constructs.disable.null.includes(J.name)?De():J.tokenize.call(I?Object.assign(Object.create(c),I):c,u,Ce,De)(fe)}}function Ce(J){return $(pe,D),U}function De(J){return D.restore(),++se<z.length?O(z[se]):ne}}}function _($,I){$.resolveAll&&!i.includes($)&&i.push($),$.resolve&&Vn(c.events,I,c.events.length-I,$.resolve(c.events.slice(I),c)),$.resolveTo&&(c.events=$.resolveTo(c.events,c))}function L(){const $=b(),I=c.previous,P=c.currentConstruct,W=c.events.length,U=Array.from(o);return{from:W,restore:ne};function ne(){r=$,c.previous=I,c.currentConstruct=P,c.events.length=W,o=U,C()}}function C(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function dL(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let s;if(n===a)s=[e[n].slice(r,i)];else{if(s=e.slice(n,a),r>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}i>0&&s.push(e[a].slice(0,i))}return s}function pL(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let s;if(typeof i=="string")s=i;else switch(i){case-5:{s="\r";break}case-4:{s=`
|
|
18
|
-
`;break}case-3:{s=`\r
|
|
19
|
-
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&a)continue;s=" ";break}default:s=String.fromCharCode(i)}a=i===-2,r.push(s)}return r.join("")}function fL(e){const r={constructs:FT([uL,...(e||{}).extensions||[]]),content:a(CD),defined:[],document:a(ID),flow:a(YO),lazy:{},string:a(XO),text:a(QO)};return r;function a(i){return s;function s(o){return cL(r,i,o)}}}function mL(e){for(;!UT(e););return e}const gE=/[\0\t\n\r]/g;function hL(){let e=1,t="",n=!0,r;return a;function a(i,s,o){const u=[];let c,p,d,f,m;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(s||void 0).decode(i)),d=0,t="",n&&(i.charCodeAt(0)===65279&&d++,n=void 0);d<i.length;){if(gE.lastIndex=d,c=gE.exec(i),f=c&&c.index!==void 0?c.index:i.length,m=i.charCodeAt(f),!c){t=i.slice(d);break}if(m===10&&d===f&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),d<f&&(u.push(i.slice(d,f)),e+=f-d),m){case 0:{u.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,u.push(-2);e++<p;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}d=f+1}return o&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const gL=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function bL(e){return e.replace(gL,EL)}function EL(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return MT(n.slice(i?2:1),i?16:10)}return gs(n)||e}const VT={}.hasOwnProperty;function xL(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),yL(n)(mL(fL(n).document().write(hL()(e,t,!0))))}function yL(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(Dt),autolinkProtocol:L,autolinkEmail:L,atxHeading:i(oe),blockQuote:i(Ge),characterEscape:L,characterReference:L,codeFenced:i(ge),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(ge,s),codeText:i(me,s),codeTextData:L,data:L,codeFlowValue:L,definition:i(Te),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(Se),hardBreakEscape:i(qe),hardBreakTrailing:i(qe),htmlFlow:i(at,s),htmlFlowData:L,htmlText:i(at,s),htmlTextData:L,image:i(ft),label:s,link:i(Dt),listItem:i(Ut),listItemValue:f,listOrdered:i(xt,d),listUnordered:i(xt),paragraph:i(Kt),reference:O,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(oe),strong:i(ot),thematicBreak:i(Qe)},exit:{atxHeading:u(),atxHeadingSequence:R,autolink:u(),autolinkEmail:X,autolinkProtocol:fe,blockQuote:u(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:De,characterReferenceMarkerNumeric:De,characterReferenceValue:J,characterReference:_e,codeFenced:u(x),codeFencedFence:E,codeFencedFenceInfo:m,codeFencedFenceMeta:b,codeFlowValue:C,codeIndented:u(y),codeText:u(U),codeTextData:C,data:C,definition:u(),definitionDestinationString:w,definitionLabelString:S,definitionTitleString:v,emphasis:u(),hardBreakEscape:u(I),hardBreakTrailing:u(I),htmlFlow:u(P),htmlFlowData:C,htmlText:u(W),htmlTextData:C,image:u(z),label:pe,labelText:se,lineEnding:$,link:u(ne),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:Ce,resourceDestinationString:D,resourceTitleString:Q,resource:de,setextHeading:u(_),setextHeadingLineSequence:T,setextHeadingText:N,strong:u(),thematicBreak:u()}};qT(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(Y){let ie={type:"root",children:[]};const ee={stack:[ie],tokenStack:[],config:t,enter:o,exit:c,buffer:s,resume:p,data:n},ue=[];let Be=-1;for(;++Be<Y.length;)if(Y[Be][1].type==="listOrdered"||Y[Be][1].type==="listUnordered")if(Y[Be][0]==="enter")ue.push(Be);else{const Ye=ue.pop();Be=a(Y,Ye,Be)}for(Be=-1;++Be<Y.length;){const Ye=t[Y[Be][0]];VT.call(Ye,Y[Be][1].type)&&Ye[Y[Be][1].type].call(Object.assign({sliceSerialize:Y[Be][2].sliceSerialize},ee),Y[Be][1])}if(ee.tokenStack.length>0){const Ye=ee.tokenStack[ee.tokenStack.length-1];(Ye[1]||bE).call(ee,void 0,Ye[0])}for(ie.position={start:Pr(Y.length>0?Y[0][1].start:{line:1,column:1,offset:0}),end:Pr(Y.length>0?Y[Y.length-2][1].end:{line:1,column:1,offset:0})},Be=-1;++Be<t.transforms.length;)ie=t.transforms[Be](ie)||ie;return ie}function a(Y,ie,ee){let ue=ie-1,Be=-1,Ye=!1,mt,Ot,Nt,Pt;for(;++ue<=ee;){const ae=Y[ue];switch(ae[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ae[0]==="enter"?Be++:Be--,Pt=void 0;break}case"lineEndingBlank":{ae[0]==="enter"&&(mt&&!Pt&&!Be&&!Nt&&(Nt=ue),Pt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Pt=void 0}if(!Be&&ae[0]==="enter"&&ae[1].type==="listItemPrefix"||Be===-1&&ae[0]==="exit"&&(ae[1].type==="listUnordered"||ae[1].type==="listOrdered")){if(mt){let Ne=ue;for(Ot=void 0;Ne--;){const ze=Y[Ne];if(ze[1].type==="lineEnding"||ze[1].type==="lineEndingBlank"){if(ze[0]==="exit")continue;Ot&&(Y[Ot][1].type="lineEndingBlank",Ye=!0),ze[1].type="lineEnding",Ot=Ne}else if(!(ze[1].type==="linePrefix"||ze[1].type==="blockQuotePrefix"||ze[1].type==="blockQuotePrefixWhitespace"||ze[1].type==="blockQuoteMarker"||ze[1].type==="listItemIndent"))break}Nt&&(!Ot||Nt<Ot)&&(mt._spread=!0),mt.end=Object.assign({},Ot?Y[Ot][1].start:ae[1].end),Y.splice(Ot||ue,0,["exit",mt,ae[2]]),ue++,ee++}if(ae[1].type==="listItemPrefix"){const Ne={type:"listItem",_spread:!1,start:Object.assign({},ae[1].start),end:void 0};mt=Ne,Y.splice(ue,0,["enter",Ne,ae[2]]),ue++,ee++,Nt=void 0,Pt=!0}}}return Y[ie][1]._spread=Ye,ee}function i(Y,ie){return ee;function ee(ue){o.call(this,Y(ue),ue),ie&&ie.call(this,ue)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(Y,ie,ee){this.stack[this.stack.length-1].children.push(Y),this.stack.push(Y),this.tokenStack.push([ie,ee||void 0]),Y.position={start:Pr(ie.start),end:void 0}}function u(Y){return ie;function ie(ee){Y&&Y.call(this,ee),c.call(this,ee)}}function c(Y,ie){const ee=this.stack.pop(),ue=this.tokenStack.pop();if(ue)ue[0].type!==Y.type&&(ie?ie.call(this,Y,ue[0]):(ue[1]||bE).call(this,Y,ue[0]));else throw new Error("Cannot close `"+Y.type+"` ("+is({start:Y.start,end:Y.end})+"): it’s not open");ee.position.end=Pr(Y.end)}function p(){return $g(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(Y){if(this.data.expectingFirstListItemValue){const ie=this.stack[this.stack.length-2];ie.start=Number.parseInt(this.sliceSerialize(Y),10),this.data.expectingFirstListItemValue=void 0}}function m(){const Y=this.resume(),ie=this.stack[this.stack.length-1];ie.lang=Y}function b(){const Y=this.resume(),ie=this.stack[this.stack.length-1];ie.meta=Y}function E(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){const Y=this.resume(),ie=this.stack[this.stack.length-1];ie.value=Y.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const Y=this.resume(),ie=this.stack[this.stack.length-1];ie.value=Y.replace(/(\r?\n|\r)$/g,"")}function S(Y){const ie=this.resume(),ee=this.stack[this.stack.length-1];ee.label=ie,ee.identifier=or(this.sliceSerialize(Y)).toLowerCase()}function v(){const Y=this.resume(),ie=this.stack[this.stack.length-1];ie.title=Y}function w(){const Y=this.resume(),ie=this.stack[this.stack.length-1];ie.url=Y}function R(Y){const ie=this.stack[this.stack.length-1];if(!ie.depth){const ee=this.sliceSerialize(Y).length;ie.depth=ee}}function N(){this.data.setextHeadingSlurpLineEnding=!0}function T(Y){const ie=this.stack[this.stack.length-1];ie.depth=this.sliceSerialize(Y).codePointAt(0)===61?1:2}function _(){this.data.setextHeadingSlurpLineEnding=void 0}function L(Y){const ee=this.stack[this.stack.length-1].children;let ue=ee[ee.length-1];(!ue||ue.type!=="text")&&(ue=Oe(),ue.position={start:Pr(Y.start),end:void 0},ee.push(ue)),this.stack.push(ue)}function C(Y){const ie=this.stack.pop();ie.value+=this.sliceSerialize(Y),ie.position.end=Pr(Y.end)}function $(Y){const ie=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ee=ie.children[ie.children.length-1];ee.position.end=Pr(Y.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ie.type)&&(L.call(this,Y),C.call(this,Y))}function I(){this.data.atHardBreak=!0}function P(){const Y=this.resume(),ie=this.stack[this.stack.length-1];ie.value=Y}function W(){const Y=this.resume(),ie=this.stack[this.stack.length-1];ie.value=Y}function U(){const Y=this.resume(),ie=this.stack[this.stack.length-1];ie.value=Y}function ne(){const Y=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";Y.type+="Reference",Y.referenceType=ie,delete Y.url,delete Y.title}else delete Y.identifier,delete Y.label;this.data.referenceType=void 0}function z(){const Y=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";Y.type+="Reference",Y.referenceType=ie,delete Y.url,delete Y.title}else delete Y.identifier,delete Y.label;this.data.referenceType=void 0}function se(Y){const ie=this.sliceSerialize(Y),ee=this.stack[this.stack.length-2];ee.label=bL(ie),ee.identifier=or(ie).toLowerCase()}function pe(){const Y=this.stack[this.stack.length-1],ie=this.resume(),ee=this.stack[this.stack.length-1];if(this.data.inReference=!0,ee.type==="link"){const ue=Y.children;ee.children=ue}else ee.alt=ie}function D(){const Y=this.resume(),ie=this.stack[this.stack.length-1];ie.url=Y}function Q(){const Y=this.resume(),ie=this.stack[this.stack.length-1];ie.title=Y}function de(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function Ce(Y){const ie=this.resume(),ee=this.stack[this.stack.length-1];ee.label=ie,ee.identifier=or(this.sliceSerialize(Y)).toLowerCase(),this.data.referenceType="full"}function De(Y){this.data.characterReferenceType=Y.type}function J(Y){const ie=this.sliceSerialize(Y),ee=this.data.characterReferenceType;let ue;ee?(ue=MT(ie,ee==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ue=gs(ie);const Be=this.stack[this.stack.length-1];Be.value+=ue}function _e(Y){const ie=this.stack.pop();ie.position.end=Pr(Y.end)}function fe(Y){C.call(this,Y);const ie=this.stack[this.stack.length-1];ie.url=this.sliceSerialize(Y)}function X(Y){C.call(this,Y);const ie=this.stack[this.stack.length-1];ie.url="mailto:"+this.sliceSerialize(Y)}function Ge(){return{type:"blockquote",children:[]}}function ge(){return{type:"code",lang:null,meta:null,value:""}}function me(){return{type:"inlineCode",value:""}}function Te(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Se(){return{type:"emphasis",children:[]}}function oe(){return{type:"heading",depth:0,children:[]}}function qe(){return{type:"break"}}function at(){return{type:"html",value:""}}function ft(){return{type:"image",title:null,url:"",alt:null}}function Dt(){return{type:"link",title:null,url:"",children:[]}}function xt(Y){return{type:"list",ordered:Y.type==="listOrdered",start:null,spread:Y._spread,children:[]}}function Ut(Y){return{type:"listItem",spread:Y._spread,checked:null,children:[]}}function Kt(){return{type:"paragraph",children:[]}}function ot(){return{type:"strong",children:[]}}function Oe(){return{type:"text",value:""}}function Qe(){return{type:"thematicBreak"}}}function Pr(e){return{line:e.line,column:e.column,offset:e.offset}}function qT(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?qT(e,r):TL(e,r)}}function TL(e,t){let n;for(n in t)if(VT.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function bE(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+is({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+is({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+is({start:t.start,end:t.end})+") is still open")}function SL(e){const t=this;t.parser=n;function n(r){return xL(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function vL(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function wL(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
20
|
-
`}]}function AL(e,t){const n=t.value?t.value+`
|
|
21
|
-
`:"",r={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(r.className=["language-"+a[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function NL(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _L(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function CL(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=yi(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let s,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=i+1,o+=1,e.footnoteCounts.set(r,o);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,u);const c={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,c),e.applyData(t,c)}function kL(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function IL(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function YT(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const s=a[a.length-1];return s&&s.type==="text"?s.value+=r:a.push({type:"text",value:r}),a}function RL(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return YT(e,t);const a={src:yi(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)}function DL(e,t){const n={src:yi(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function OL(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function LL(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return YT(e,t);const a={href:yi(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function FL(e,t){const n={href:yi(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ML(e,t,n){const r=e.all(t),a=n?PL(n):ZT(t),i={},s=[];if(typeof t.checked=="boolean"){const p=r[0];let d;p&&p.type==="element"&&p.tagName==="p"?d=p:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const p=r[o];(a||o!==0||p.type!=="element"||p.tagName!=="p")&&s.push({type:"text",value:`
|
|
22
|
-
`}),p.type==="element"&&p.tagName==="p"&&!a?s.push(...p.children):s.push(p)}const u=r[r.length-1];u&&(a||u.type!=="element"||u.tagName!=="p")&&s.push({type:"text",value:`
|
|
23
|
-
`});const c={type:"element",tagName:"li",properties:i,children:s};return e.patch(t,c),e.applyData(t,c)}function PL(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=ZT(n[r])}return t}function ZT(e){const t=e.spread;return t??e.children.length>1}function jL(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<r.length;){const s=r[a];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)}function BL(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function UL(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function $L(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function zL(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),a.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=wr(t.children[1]),u=du(t.children[t.children.length-1]);o&&u&&(s.position={start:o,end:u}),a.push(s)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)}function HL(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let u=-1;const c=[];for(;++u<o;){const d=t.children[u],f={},m=s?s[u]:void 0;m&&(f.align=m);let b={type:"element",tagName:i,properties:f,children:[]};d&&(b.children=e.all(d),e.patch(d,b),b=e.applyData(d,b)),c.push(b)}const p={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,p),e.applyData(t,p)}function GL(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const EE=9,xE=32;function WL(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const i=[];for(;r;)i.push(yE(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return i.push(yE(t.slice(a),a>0,!1)),i.join("")}function yE(e,t,n){let r=0,a=e.length;if(t){let i=e.codePointAt(r);for(;i===EE||i===xE;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(a-1);for(;i===EE||i===xE;)a--,i=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function VL(e,t){const n={type:"text",value:WL(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function qL(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const YL={blockquote:vL,break:wL,code:AL,delete:NL,emphasis:_L,footnoteReference:CL,heading:kL,html:IL,imageReference:RL,image:DL,inlineCode:OL,linkReference:LL,link:FL,listItem:ML,list:jL,paragraph:BL,root:UL,strong:$L,table:zL,tableCell:GL,tableRow:HL,text:VL,thematicBreak:qL,toml:ho,yaml:ho,definition:ho,footnoteDefinition:ho};function ho(){}function ZL(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function KL(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function XL(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||ZL,r=e.options.footnoteBackLabel||KL,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let u=-1;for(;++u<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[u]);if(!c)continue;const p=e.all(c),d=String(c.identifier).toUpperCase(),f=yi(d.toLowerCase());let m=0;const b=[],E=e.footnoteCounts.get(d);for(;E!==void 0&&++m<=E;){b.length>0&&b.push({type:"text",value:" "});let S=typeof n=="string"?n:n(u,m);typeof S=="string"&&(S={type:"text",value:S}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,m),className:["data-footnote-backref"]},children:Array.isArray(S)?S:[S]})}const x=p[p.length-1];if(x&&x.type==="element"&&x.tagName==="p"){const S=x.children[x.children.length-1];S&&S.type==="text"?S.value+=" ":x.children.push({type:"text",value:" "}),x.children.push(...b)}else p.push(...b);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(p,!0)};e.patch(c,y),o.push(y)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...pa(s),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
|
|
24
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
|
|
25
|
-
`}]}}const rd={}.hasOwnProperty,QL={};function JL(e,t){const n=t||QL,r=new Map,a=new Map,i=new Map,s={...YL,...n.handlers},o={all:c,applyData:t3,definitionById:r,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:s,one:u,options:n,patch:e3,wrap:r3};return $n(e,function(p){if(p.type==="definition"||p.type==="footnoteDefinition"){const d=p.type==="definition"?r:a,f=String(p.identifier).toUpperCase();d.has(f)||d.set(f,p)}}),o;function u(p,d){const f=p.type,m=o.handlers[f];if(rd.call(o.handlers,f)&&m)return m(o,p,d);if(o.options.passThrough&&o.options.passThrough.includes(f)){if("children"in p){const{children:E,...x}=p,y=pa(x);return y.children=o.all(p),y}return pa(p)}return(o.options.unknownHandler||n3)(o,p,d)}function c(p){const d=[];if("children"in p){const f=p.children;let m=-1;for(;++m<f.length;){const b=o.one(f[m],p);if(b){if(m&&f[m-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=TE(b.value)),!Array.isArray(b)&&b.type==="element")){const E=b.children[0];E&&E.type==="text"&&(E.value=TE(E.value))}Array.isArray(b)?d.push(...b):d.push(b)}}}return d}}function e3(e,t){e.position&&(t.position=D2(e))}function t3(e,t){let n=t;if(e&&e.data){const r=e.data.hName,a=e.data.hChildren,i=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&i&&Object.assign(n.properties,pa(i)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function n3(e,t){const n=t.data||{},r="value"in t&&!(rd.call(n,"hProperties")||rd.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function r3(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
26
|
-
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
27
|
-
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
28
|
-
`}),n}function TE(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function SE(e,t){const n=JL(e,t),r=n.one(e,void 0),a=XL(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&i.children.push({type:"text",value:`
|
|
29
|
-
`},a),i}function a3(e,t){return e&&"run"in e?async function(n,r){const a=SE(n,{file:r,...t});await e.run(a,r)}:function(n,r){return SE(n,{file:r,...e||t})}}function vE(e){if(e)throw e}var Ku,wE;function i3(){if(wE)return Ku;wE=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},i=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var p=e.call(c,"constructor"),d=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!p&&!d)return!1;var f;for(f in c);return typeof f>"u"||e.call(c,f)},s=function(c,p){n&&p.name==="__proto__"?n(c,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):c[p.name]=p.newValue},o=function(c,p){if(p==="__proto__")if(e.call(c,p)){if(r)return r(c,p).value}else return;return c[p]};return Ku=function u(){var c,p,d,f,m,b,E=arguments[0],x=1,y=arguments.length,S=!1;for(typeof E=="boolean"&&(S=E,E=arguments[1]||{},x=2),(E==null||typeof E!="object"&&typeof E!="function")&&(E={});x<y;++x)if(c=arguments[x],c!=null)for(p in c)d=o(E,p),f=o(c,p),E!==f&&(S&&f&&(i(f)||(m=a(f)))?(m?(m=!1,b=d&&a(d)?d:[]):b=d&&i(d)?d:{},s(E,{name:p,newValue:u(S,b,f)})):typeof f<"u"&&s(E,{name:p,newValue:f}));return E},Ku}var s3=i3();const Xu=kl(s3);function ad(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function o3(){const e=[],t={run:n,use:r};return t;function n(...a){let i=-1;const s=a.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...a);function o(u,...c){const p=e[++i];let d=-1;if(u){s(u);return}for(;++d<a.length;)(c[d]===null||c[d]===void 0)&&(c[d]=a[d]);a=c,p?l3(p,o)(...c):s(null,...c)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function l3(e,t){let n;return r;function r(...s){const o=e.length>s.length;let u;o&&s.push(a);try{u=e.apply(this,s)}catch(c){const p=c;if(o&&n)throw p;return a(p)}o||(u&&u.then&&typeof u.then=="function"?u.then(i,a):u instanceof Error?a(u):i(u))}function a(s,...o){n||(n=!0,t(s,...o))}function i(s){a(null,s)}}const xr={basename:u3,dirname:c3,extname:d3,join:p3,sep:"/"};function u3(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Zs(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else s<0&&(i=!0,s=a+1),o>-1&&(e.codePointAt(a)===t.codePointAt(o--)?o<0&&(r=a):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function c3(e){if(Zs(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function d3(e){Zs(e);let t=e.length,n=-1,r=0,a=-1,i=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function p3(...e){let t=-1,n;for(;++t<e.length;)Zs(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":f3(n)}function f3(e){Zs(e);const t=e.codePointAt(0)===47;let n=m3(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function m3(e,t){let n="",r=0,a=-1,i=0,s=-1,o,u;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(a===s-1||i===1))if(a!==s-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),a=s,i=0;continue}}else if(n.length>0){n="",r=0,a=s,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,s):n=e.slice(a+1,s),r=s-a-1;a=s,i=0}else o===46&&i>-1?i++:i=-1}return n}function Zs(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const h3={cwd:g3};function g3(){return"/"}function id(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function b3(e){if(typeof e=="string")e=new URL(e);else if(!id(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return E3(e)}function E3(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const Qu=["history","path","basename","stem","extname","dirname"];class rl{constructor(t){let n;t?id(t)?n={path:t}:typeof t=="string"||x3(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":h3.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Qu.length;){const i=Qu[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let a;for(a in n)Qu.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?xr.basename(this.path):void 0}set basename(t){ec(t,"basename"),Ju(t,"basename"),this.path=xr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?xr.dirname(this.path):void 0}set dirname(t){AE(this.basename,"dirname"),this.path=xr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?xr.extname(this.path):void 0}set extname(t){if(Ju(t,"extname"),AE(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=xr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){id(t)&&(t=b3(t)),ec(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?xr.basename(this.path,this.extname):void 0}set stem(t){ec(t,"stem"),Ju(t,"stem"),this.path=xr.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new Nn(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Ju(e,t){if(e&&e.includes(xr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+xr.sep+"`")}function ec(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function AE(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function x3(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const y3=(function(e){const r=this.constructor.prototype,a=r[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,r),i}),T3={}.hasOwnProperty;class Hg extends y3{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=o3()}copy(){const t=new Hg;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Xu(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(rc("data",this.frozen),this.namespace[t]=n,this):T3.call(this.namespace,t)&&this.namespace[t]||void 0:t?(rc("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=go(t),r=this.parser||this.Parser;return tc("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),tc("process",this.parser||this.Parser),nc("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,s){const o=go(t),u=r.parse(o);r.run(u,o,function(p,d,f){if(p||!d||!f)return c(p);const m=d,b=r.stringify(m,f);v3(b)?f.value=b:f.result=b,c(p,f)});function c(p,d){p||!d?s(p):i?i(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),tc("processSync",this.parser||this.Parser),nc("processSync",this.compiler||this.Compiler),this.process(t,a),_E("processSync","process",n),r;function a(i,s){n=!0,vE(i),r=s}}run(t,n,r){NE(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(s,o){const u=go(n);a.run(t,u,c);function c(p,d,f){const m=d||t;p?o(p):s?s(m):r(void 0,m,f)}}}runSync(t,n){let r=!1,a;return this.run(t,n,i),_E("runSync","run",r),a;function i(s,o){vE(s),a=o,r=!0}}stringify(t,n){this.freeze();const r=go(n),a=this.compiler||this.Compiler;return nc("stringify",a),NE(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(rc("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(c){if(typeof c=="function")u(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[p,...d]=c;u(p,d)}else s(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function s(c){if(!("plugins"in c)&&!("settings"in c))throw new 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");o(c.plugins),c.settings&&(a.settings=Xu(!0,a.settings,c.settings))}function o(c){let p=-1;if(c!=null)if(Array.isArray(c))for(;++p<c.length;){const d=c[p];i(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function u(c,p){let d=-1,f=-1;for(;++d<r.length;)if(r[d][0]===c){f=d;break}if(f===-1)r.push([c,...p]);else if(p.length>0){let[m,...b]=p;const E=r[f][1];ad(E)&&ad(m)&&(m=Xu(!0,E,m)),r[f]=[c,m,...b]}}}}const KT=new Hg().freeze();function tc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function nc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function rc(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function NE(e){if(!ad(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function _E(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function go(e){return S3(e)?e:new rl(e)}function S3(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function v3(e){return typeof e=="string"||w3(e)}function w3(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const A3="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",CE=[],kE={allowDangerousHtml:!0},N3=/^(https?|ircs?|mailto|xmpp)$/i,_3=[{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 C3(e){const t=k3(e),n=I3(e);return R3(t.runSync(t.parse(n),n),e)}function k3(e){const t=e.rehypePlugins||CE,n=e.remarkPlugins||CE,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...kE}:kE;return KT().use(SL).use(n).use(a3,r).use(t)}function I3(e){const t=e.children||"",n=new rl;return typeof t=="string"&&(n.value=t),n}function R3(e,t){const n=t.allowedElements,r=t.allowElement,a=t.components,i=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,u=t.urlTransform||D3;for(const p of _3)Object.hasOwn(t,p.from)&&(""+p.from+(p.to?"use `"+p.to+"` instead":"remove it")+A3+p.id,void 0);return $n(e,c),iD(e,{Fragment:l.Fragment,components:a,ignoreInvalidStyle:!0,jsx:l.jsx,jsxs:l.jsxs,passKeys:!0,passNode:!0});function c(p,d,f){if(p.type==="raw"&&f&&typeof d=="number")return s?f.children.splice(d,1):f.children[d]={type:"text",value:p.value},d;if(p.type==="element"){let m;for(m in qu)if(Object.hasOwn(qu,m)&&Object.hasOwn(p.properties,m)){const b=p.properties[m],E=qu[m];(E===null||E.includes(p.tagName))&&(p.properties[m]=u(String(b||""),m,p))}}if(p.type==="element"){let m=n?!n.includes(p.tagName):i?i.includes(p.tagName):!1;if(!m&&r&&typeof d=="number"&&(m=!r(p,d,f)),m&&f&&typeof d=="number")return o&&p.children?f.children.splice(d,1,...p.children):f.children.splice(d,1),d}}}function D3(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||r!==-1&&t>r||N3.test(e.slice(0,t))?e:""}function al(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function O3(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function L3(e,t,n){const a=Ls((n||{}).ignore||[]),i=F3(t);let s=-1;for(;++s<i.length;)Ud(e,"text",o);function o(c,p){let d=-1,f;for(;++d<p.length;){const m=p[d],b=f?f.children:void 0;if(a(m,b?b.indexOf(m):void 0,f))return;f=m}if(f)return u(c,p)}function u(c,p){const d=p[p.length-1],f=i[s][0],m=i[s][1];let b=0;const x=d.children.indexOf(c);let y=!1,S=[];f.lastIndex=0;let v=f.exec(c.value);for(;v;){const w=v.index,R={index:v.index,input:v.input,stack:[...p,c]};let N=m(...v,R);if(typeof N=="string"&&(N=N.length>0?{type:"text",value:N}:void 0),N===!1?f.lastIndex=w+1:(b!==w&&S.push({type:"text",value:c.value.slice(b,w)}),Array.isArray(N)?S.push(...N):N&&S.push(N),b=w+v[0].length,y=!0),!f.global)break;v=f.exec(c.value)}return y?(b<c.value.length&&S.push({type:"text",value:c.value.slice(b)}),d.children.splice(x,1,...S)):S=[c],x+S.length}}function F3(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const a=n[r];t.push([M3(a[0]),P3(a[1])])}return t}function M3(e){return typeof e=="string"?new RegExp(O3(e),"g"):e}function P3(e){return typeof e=="function"?e:function(){return e}}const ac="phrasing",ic=["autolink","link","image","label"];function j3(){return{transforms:[W3],enter:{literalAutolink:U3,literalAutolinkEmail:sc,literalAutolinkHttp:sc,literalAutolinkWww:sc},exit:{literalAutolink:G3,literalAutolinkEmail:H3,literalAutolinkHttp:$3,literalAutolinkWww:z3}}}function B3(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ac,notInConstruct:ic},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ac,notInConstruct:ic},{character:":",before:"[ps]",after:"\\/",inConstruct:ac,notInConstruct:ic}]}}function U3(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function sc(e){this.config.enter.autolinkProtocol.call(this,e)}function $3(e){this.config.exit.autolinkProtocol.call(this,e)}function z3(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function H3(e){this.config.exit.autolinkEmail.call(this,e)}function G3(e){this.exit(e)}function W3(e){L3(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,V3],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,q3]],{ignore:["link","linkReference"]})}function V3(e,t,n,r,a){let i="";if(!XT(a)||(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!Y3(n)))return!1;const s=Z3(n+r);if(!s[0])return!1;const o={type:"link",title:null,url:i+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function q3(e,t,n,r){return!XT(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Y3(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Z3(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=al(e,"(");let i=al(e,")");for(;r!==-1&&a>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}function XT(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||fa(n)||pu(n))&&(!t||n!==47)}QT.peek=a6;function K3(){this.buffer()}function X3(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Q3(){this.buffer()}function J3(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function e6(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=or(this.sliceSerialize(e)).toLowerCase(),n.label=t}function t6(e){this.exit(e)}function n6(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=or(this.sliceSerialize(e)).toLowerCase(),n.label=t}function r6(e){this.exit(e)}function a6(){return"["}function QT(e,t,n,r){const a=n.createTracker(r);let i=a.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return i+=a.move(n.safe(n.associationId(e),{after:"]",before:i})),o(),s(),i+=a.move("]"),i}function i6(){return{enter:{gfmFootnoteCallString:K3,gfmFootnoteCall:X3,gfmFootnoteDefinitionLabelString:Q3,gfmFootnoteDefinition:J3},exit:{gfmFootnoteCallString:e6,gfmFootnoteCall:t6,gfmFootnoteDefinitionLabelString:n6,gfmFootnoteDefinition:r6}}}function s6(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:QT},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,a,i,s){const o=i.createTracker(s);let u=o.move("[^");const c=i.enter("footnoteDefinition"),p=i.enter("label");return u+=o.move(i.safe(i.associationId(r),{before:u,after:"]"})),p(),u+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),u+=o.move((t?`
|
|
30
|
-
`:" ")+i.indentLines(i.containerFlow(r,o.current()),t?JT:o6))),c(),u}}function o6(e,t,n){return t===0?e:JT(e,t,n)}function JT(e,t,n){return(n?"":" ")+e}const l6=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];eS.peek=f6;function u6(){return{canContainEols:["delete"],enter:{strikethrough:d6},exit:{strikethrough:p6}}}function c6(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:l6}],handlers:{delete:eS}}}function d6(e){this.enter({type:"delete",children:[]},e)}function p6(e){this.exit(e)}function eS(e,t,n,r){const a=n.createTracker(r),i=n.enter("strikethrough");let s=a.move("~~");return s+=n.containerPhrasing(e,{...a.current(),before:s,after:"~"}),s+=a.move("~~"),i(),s}function f6(){return"~"}function m6(e){return e.length}function h6(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||m6,i=[],s=[],o=[],u=[];let c=0,p=-1;for(;++p<e.length;){const E=[],x=[];let y=-1;for(e[p].length>c&&(c=e[p].length);++y<e[p].length;){const S=g6(e[p][y]);if(n.alignDelimiters!==!1){const v=a(S);x[y]=v,(u[y]===void 0||v>u[y])&&(u[y]=v)}E.push(S)}s[p]=E,o[p]=x}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<c;)i[d]=IE(r[d]);else{const E=IE(r);for(;++d<c;)i[d]=E}d=-1;const f=[],m=[];for(;++d<c;){const E=i[d];let x="",y="";E===99?(x=":",y=":"):E===108?x=":":E===114&&(y=":");let S=n.alignDelimiters===!1?1:Math.max(1,u[d]-x.length-y.length);const v=x+"-".repeat(S)+y;n.alignDelimiters!==!1&&(S=x.length+S+y.length,S>u[d]&&(u[d]=S),m[d]=S),f[d]=v}s.splice(1,0,f),o.splice(1,0,m),p=-1;const b=[];for(;++p<s.length;){const E=s[p],x=o[p];d=-1;const y=[];for(;++d<c;){const S=E[d]||"";let v="",w="";if(n.alignDelimiters!==!1){const R=u[d]-(x[d]||0),N=i[d];N===114?v=" ".repeat(R):N===99?R%2?(v=" ".repeat(R/2+.5),w=" ".repeat(R/2-.5)):(v=" ".repeat(R/2),w=v):w=" ".repeat(R)}n.delimiterStart!==!1&&!d&&y.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&S==="")&&(n.delimiterStart!==!1||d)&&y.push(" "),n.alignDelimiters!==!1&&y.push(v),y.push(S),n.alignDelimiters!==!1&&y.push(w),n.padding!==!1&&y.push(" "),(n.delimiterEnd!==!1||d!==c-1)&&y.push("|")}b.push(n.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return b.join(`
|
|
31
|
-
`)}function g6(e){return e==null?"":String(e)}function IE(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function b6(e,t,n,r){const a=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const s=n.indentLines(n.containerFlow(e,i.current()),E6);return a(),s}function E6(e,t,n){return">"+(n?"":" ")+e}function x6(e,t){return RE(e,t.inConstruct,!0)&&!RE(e,t.notInConstruct,!1)}function RE(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function DE(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
|
|
32
|
-
`&&x6(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
33
|
-
`}function y6(e,t){const n=String(e);let r=n.indexOf(t),a=r,i=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++i>s&&(s=i):i=1,a=r+t.length,r=n.indexOf(t,a);return s}function T6(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function S6(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function v6(e,t,n,r){const a=S6(n),i=e.value||"",s=a==="`"?"GraveAccent":"Tilde";if(T6(e,n)){const d=n.enter("codeIndented"),f=n.indentLines(i,w6);return d(),f}const o=n.createTracker(r),u=a.repeat(Math.max(y6(i,a)+1,3)),c=n.enter("codeFenced");let p=o.move(u);if(e.lang){const d=n.enter(`codeFencedLang${s}`);p+=o.move(n.safe(e.lang,{before:p,after:" ",encode:["`"],...o.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${s}`);p+=o.move(" "),p+=o.move(n.safe(e.meta,{before:p,after:`
|
|
34
|
-
`,encode:["`"],...o.current()})),d()}return p+=o.move(`
|
|
35
|
-
`),i&&(p+=o.move(i+`
|
|
36
|
-
`)),p+=o.move(u),c(),p}function w6(e,t,n){return(n?"":" ")+e}function Gg(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function A6(e,t,n,r){const a=Gg(n),i=a==='"'?"Quote":"Apostrophe",s=n.enter("definition");let o=n.enter("label");const u=n.createTracker(r);let c=u.move("[");return c+=u.move(n.safe(n.associationId(e),{before:c,after:"]",...u.current()})),c+=u.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(n.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(o=n.enter("destinationRaw"),c+=u.move(n.safe(e.url,{before:c,after:e.title?" ":`
|
|
37
|
-
`,...u.current()}))),o(),e.title&&(o=n.enter(`title${i}`),c+=u.move(" "+a),c+=u.move(n.safe(e.title,{before:c,after:a,...u.current()})),c+=u.move(a),o()),s(),c}function N6(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function ys(e){return"&#x"+e.toString(16).toUpperCase()+";"}function il(e,t,n){const r=ri(e),a=ri(t);return r===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}tS.peek=_6;function tS(e,t,n,r){const a=N6(n),i=n.enter("emphasis"),s=n.createTracker(r),o=s.move(a);let u=s.move(n.containerPhrasing(e,{after:a,before:o,...s.current()}));const c=u.charCodeAt(0),p=il(r.before.charCodeAt(r.before.length-1),c,a);p.inside&&(u=ys(c)+u.slice(1));const d=u.charCodeAt(u.length-1),f=il(r.after.charCodeAt(0),d,a);f.inside&&(u=u.slice(0,-1)+ys(d));const m=s.move(a);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:p.outside},o+u+m}function _6(e,t,n){return n.options.emphasis||"*"}function C6(e,t){let n=!1;return $n(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Yo}),!!((!e.depth||e.depth<3)&&$g(e)&&(t.options.setext||n))}function k6(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(C6(e,n)){const p=n.enter("headingSetext"),d=n.enter("phrasing"),f=n.containerPhrasing(e,{...i.current(),before:`
|
|
38
|
-
`,after:`
|
|
39
|
-
`});return d(),p(),f+`
|
|
40
|
-
`+(a===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(`
|
|
41
|
-
`))+1))}const s="#".repeat(a),o=n.enter("headingAtx"),u=n.enter("phrasing");i.move(s+" ");let c=n.containerPhrasing(e,{before:"# ",after:`
|
|
42
|
-
`,...i.current()});return/^[\t ]/.test(c)&&(c=ys(c.charCodeAt(0))+c.slice(1)),c=c?s+" "+c:s,n.options.closeAtx&&(c+=" "+s),u(),o(),c}nS.peek=I6;function nS(e){return e.value||""}function I6(){return"<"}rS.peek=R6;function rS(e,t,n,r){const a=Gg(n),i=a==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const u=n.createTracker(r);let c=u.move("![");return c+=u.move(n.safe(e.alt,{before:c,after:"]",...u.current()})),c+=u.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(n.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(o=n.enter("destinationRaw"),c+=u.move(n.safe(e.url,{before:c,after:e.title?" ":")",...u.current()}))),o(),e.title&&(o=n.enter(`title${i}`),c+=u.move(" "+a),c+=u.move(n.safe(e.title,{before:c,after:a,...u.current()})),c+=u.move(a),o()),c+=u.move(")"),s(),c}function R6(){return"!"}aS.peek=D6;function aS(e,t,n,r){const a=e.referenceType,i=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(r);let u=o.move("![");const c=n.safe(e.alt,{before:u,after:"]",...o.current()});u+=o.move(c+"]["),s();const p=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:u,after:"]",...o.current()});return s(),n.stack=p,i(),a==="full"||!c||c!==d?u+=o.move(d+"]"):a==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function D6(){return"!"}iS.peek=O6;function iS(e,t,n){let r=e.value||"",a="`",i=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const s=n.unsafe[i],o=n.compilePattern(s);let u;if(s.atBreak)for(;u=o.exec(r);){let c=u.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(u.index+1)}}return a+r+a}function O6(){return"`"}function sS(e,t){const n=$g(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}oS.peek=L6;function oS(e,t,n,r){const a=Gg(n),i=a==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,u;if(sS(e,n)){const p=n.stack;n.stack=[],o=n.enter("autolink");let d=s.move("<");return d+=s.move(n.containerPhrasing(e,{before:d,after:">",...s.current()})),d+=s.move(">"),o(),n.stack=p,d}o=n.enter("link"),u=n.enter("label");let c=s.move("[");return c+=s.move(n.containerPhrasing(e,{before:c,after:"](",...s.current()})),c+=s.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(u=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),u(),e.title&&(u=n.enter(`title${i}`),c+=s.move(" "+a),c+=s.move(n.safe(e.title,{before:c,after:a,...s.current()})),c+=s.move(a),u()),c+=s.move(")"),o(),c}function L6(e,t,n){return sS(e,n)?"<":"["}lS.peek=F6;function lS(e,t,n,r){const a=e.referenceType,i=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(r);let u=o.move("[");const c=n.containerPhrasing(e,{before:u,after:"]",...o.current()});u+=o.move(c+"]["),s();const p=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:u,after:"]",...o.current()});return s(),n.stack=p,i(),a==="full"||!c||c!==d?u+=o.move(d+"]"):a==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function F6(){return"["}function Wg(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function M6(e){const t=Wg(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function P6(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function uS(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function j6(e,t,n,r){const a=n.enter("list"),i=n.bulletCurrent;let s=e.ordered?P6(n):Wg(n);const o=e.ordered?s==="."?")":".":M6(n);let u=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&p&&(!p.children||!p.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),uS(n)===s&&p){let d=-1;for(;++d<e.children.length;){const f=e.children[d];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(s=o),n.bulletCurrent=s;const c=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=i,a(),c}function B6(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function U6(e,t,n,r){const a=B6(n);let i=n.bulletCurrent||Wg(n);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let s=i.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(r);o.move(i+" ".repeat(s-i.length)),o.shift(s);const u=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,o.current()),p);return u(),c;function p(d,f,m){return f?(m?"":" ".repeat(s))+d:(m?i:i+" ".repeat(s-i.length))+d}}function $6(e,t,n,r){const a=n.enter("paragraph"),i=n.enter("phrasing"),s=n.containerPhrasing(e,r);return i(),a(),s}const z6=Ls(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function H6(e,t,n,r){return(e.children.some(function(s){return z6(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function G6(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}cS.peek=W6;function cS(e,t,n,r){const a=G6(n),i=n.enter("strong"),s=n.createTracker(r),o=s.move(a+a);let u=s.move(n.containerPhrasing(e,{after:a,before:o,...s.current()}));const c=u.charCodeAt(0),p=il(r.before.charCodeAt(r.before.length-1),c,a);p.inside&&(u=ys(c)+u.slice(1));const d=u.charCodeAt(u.length-1),f=il(r.after.charCodeAt(0),d,a);f.inside&&(u=u.slice(0,-1)+ys(d));const m=s.move(a+a);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:p.outside},o+u+m}function W6(e,t,n){return n.options.strong||"*"}function V6(e,t,n,r){return n.safe(e.value,r)}function q6(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Y6(e,t,n){const r=(uS(n)+(n.options.ruleSpaces?" ":"")).repeat(q6(n));return n.options.ruleSpaces?r.slice(0,-1):r}const dS={blockquote:b6,break:DE,code:v6,definition:A6,emphasis:tS,hardBreak:DE,heading:k6,html:nS,image:rS,imageReference:aS,inlineCode:iS,link:oS,linkReference:lS,list:j6,listItem:U6,paragraph:$6,root:H6,strong:cS,text:V6,thematicBreak:Y6};function Z6(){return{enter:{table:K6,tableData:OE,tableHeader:OE,tableRow:Q6},exit:{codeText:J6,table:X6,tableData:oc,tableHeader:oc,tableRow:oc}}}function K6(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function X6(e){this.exit(e),this.data.inTable=void 0}function Q6(e){this.enter({type:"tableRow",children:[]},e)}function oc(e){this.exit(e)}function OE(e){this.enter({type:"tableCell",children:[]},e)}function J6(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,eF));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function eF(e,t){return t==="|"?t:e}function tF(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
43
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:s,tableCell:u,tableRow:o}};function s(m,b,E,x){return c(p(m,E,x),m.align)}function o(m,b,E,x){const y=d(m,E,x),S=c([y]);return S.slice(0,S.indexOf(`
|
|
44
|
-
`))}function u(m,b,E,x){const y=E.enter("tableCell"),S=E.enter("phrasing"),v=E.containerPhrasing(m,{...x,before:i,after:i});return S(),y(),v}function c(m,b){return h6(m,{align:b,alignDelimiters:r,padding:n,stringLength:a})}function p(m,b,E){const x=m.children;let y=-1;const S=[],v=b.enter("table");for(;++y<x.length;)S[y]=d(x[y],b,E);return v(),S}function d(m,b,E){const x=m.children;let y=-1;const S=[],v=b.enter("tableRow");for(;++y<x.length;)S[y]=u(x[y],m,b,E);return v(),S}function f(m,b,E){let x=dS.inlineCode(m,b,E);return E.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}function nF(){return{exit:{taskListCheckValueChecked:LE,taskListCheckValueUnchecked:LE,paragraph:aF}}}function rF(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:iF}}}function LE(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function aF(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const a=t.children;let i=-1,s;for(;++i<a.length;){const o=a[i];if(o.type==="paragraph"){s=o;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function iF(e,t,n,r){const a=e.children[0],i=typeof e.checked=="boolean"&&a&&a.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);i&&o.move(s);let u=dS.listItem(e,t,n,{...r,...o.current()});return i&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),u;function c(p){return p+s}}function sF(){return[j3(),i6(),u6(),Z6(),nF()]}function oF(e){return{extensions:[B3(),s6(e),c6(),tF(e),rF()]}}const lF={tokenize:mF,partial:!0},pS={tokenize:hF,partial:!0},fS={tokenize:gF,partial:!0},mS={tokenize:bF,partial:!0},uF={tokenize:EF,partial:!0},hS={name:"wwwAutolink",tokenize:pF,previous:bS},gS={name:"protocolAutolink",tokenize:fF,previous:ES},Or={name:"emailAutolink",tokenize:dF,previous:xS},Ar={};function cF(){return{text:Ar}}let aa=48;for(;aa<123;)Ar[aa]=Or,aa++,aa===58?aa=65:aa===91&&(aa=97);Ar[43]=Or;Ar[45]=Or;Ar[46]=Or;Ar[95]=Or;Ar[72]=[Or,gS];Ar[104]=[Or,gS];Ar[87]=[Or,hS];Ar[119]=[Or,hS];function dF(e,t,n){const r=this;let a,i;return s;function s(d){return!sd(d)||!xS.call(r,r.previous)||Vg(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(d))}function o(d){return sd(d)?(e.consume(d),o):d===64?(e.consume(d),u):n(d)}function u(d){return d===46?e.check(uF,p,c)(d):d===45||d===95||In(d)?(i=!0,e.consume(d),u):p(d)}function c(d){return e.consume(d),a=!0,u}function p(d){return i&&a&&Fn(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function pF(e,t,n){const r=this;return a;function a(s){return s!==87&&s!==119||!bS.call(r,r.previous)||Vg(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(lF,e.attempt(pS,e.attempt(fS,i),n),n)(s))}function i(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function fF(e,t,n){const r=this;let a="",i=!1;return s;function s(d){return(d===72||d===104)&&ES.call(r,r.previous)&&!Vg(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(d),e.consume(d),o):n(d)}function o(d){if(Fn(d)&&a.length<5)return a+=String.fromCodePoint(d),e.consume(d),o;if(d===58){const f=a.toLowerCase();if(f==="http"||f==="https")return e.consume(d),u}return n(d)}function u(d){return d===47?(e.consume(d),i?c:(i=!0,u)):n(d)}function c(d){return d===null||nl(d)||Mt(d)||fa(d)||pu(d)?n(d):e.attempt(pS,e.attempt(fS,p),n)(d)}function p(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function mF(e,t,n){let r=0;return a;function a(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),a):s===46&&r===3?(e.consume(s),i):n(s)}function i(s){return s===null?n(s):t(s)}}function hF(e,t,n){let r,a,i;return s;function s(c){return c===46||c===95?e.check(mS,u,o)(c):c===null||Mt(c)||fa(c)||c!==45&&pu(c)?u(c):(i=!0,e.consume(c),s)}function o(c){return c===95?r=!0:(a=r,r=void 0),e.consume(c),s}function u(c){return a||r||!i?n(c):t(c)}}function gF(e,t){let n=0,r=0;return a;function a(s){return s===40?(n++,e.consume(s),a):s===41&&r<n?i(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(mS,t,i)(s):s===null||Mt(s)||fa(s)?t(s):(e.consume(s),a)}function i(s){return s===41&&r++,e.consume(s),a}}function bF(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),i):o===93?(e.consume(o),a):o===60||o===null||Mt(o)||fa(o)?t(o):n(o)}function a(o){return o===null||o===40||o===91||Mt(o)||fa(o)?t(o):r(o)}function i(o){return Fn(o)?s(o):n(o)}function s(o){return o===59?(e.consume(o),r):Fn(o)?(e.consume(o),s):n(o)}}function EF(e,t,n){return r;function r(i){return e.consume(i),a}function a(i){return In(i)?n(i):t(i)}}function bS(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Mt(e)}function ES(e){return!Fn(e)}function xS(e){return!(e===47||sd(e))}function sd(e){return e===43||e===45||e===46||e===95||In(e)}function Vg(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const xF={tokenize:_F,partial:!0};function yF(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:wF,continuation:{tokenize:AF},exit:NF}},text:{91:{name:"gfmFootnoteCall",tokenize:vF},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:TF,resolveTo:SF}}}}function TF(e,t,n){const r=this;let a=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;a--;){const u=r.events[a][1];if(u.type==="labelImage"){s=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return o;function o(u){if(!s||!s._balanced)return n(u);const c=or(r.sliceSerialize({start:s.end,end:r.now()}));return c.codePointAt(0)!==94||!i.includes(c.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function SF(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function vF(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i=0,s;return o;function o(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),u}function u(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(i>999||d===93&&!s||d===null||d===91||Mt(d))return n(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return a.includes(or(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Mt(d)||(s=!0),i++,e.consume(d),d===92?p:c}function p(d){return d===91||d===92||d===93?(e.consume(d),i++,c):c(d)}}function wF(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,s=0,o;return u;function u(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(b)}function p(b){if(s>999||b===93&&!o||b===null||b===91||Mt(b))return n(b);if(b===93){e.exit("chunkString");const E=e.exit("gfmFootnoteDefinitionLabelString");return i=or(r.sliceSerialize(E)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Mt(b)||(o=!0),s++,e.consume(b),b===92?d:p}function d(b){return b===91||b===92||b===93?(e.consume(b),s++,p):p(b)}function f(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),a.includes(i)||a.push(i),Tt(e,m,"gfmFootnoteDefinitionWhitespace")):n(b)}function m(b){return t(b)}}function AF(e,t,n){return e.check(Ys,t,e.attempt(xF,t,n))}function NF(e){e.exit("gfmFootnoteDefinition")}function _F(e,t,n){const r=this;return Tt(e,a,"gfmFootnoteDefinitionIndent",5);function a(i){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(i):n(i)}}function CF(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:i,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(s,o){let u=-1;for(;++u<s.length;)if(s[u][0]==="enter"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._close){let c=u;for(;c--;)if(s[c][0]==="exit"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._open&&s[u][1].end.offset-s[u][1].start.offset===s[c][1].end.offset-s[c][1].start.offset){s[u][1].type="strikethroughSequence",s[c][1].type="strikethroughSequence";const p={type:"strikethrough",start:Object.assign({},s[c][1].start),end:Object.assign({},s[u][1].end)},d={type:"strikethroughText",start:Object.assign({},s[c][1].end),end:Object.assign({},s[u][1].start)},f=[["enter",p,o],["enter",s[c][1],o],["exit",s[c][1],o],["enter",d,o]],m=o.parser.constructs.insideSpan.null;m&&Vn(f,f.length,0,fu(m,s.slice(c+1,u),o)),Vn(f,f.length,0,[["exit",d,o],["enter",s[u][1],o],["exit",s[u][1],o],["exit",p,o]]),Vn(s,c-1,u-c+3,f),u=c+f.length-2;break}}for(u=-1;++u<s.length;)s[u][1].type==="strikethroughSequenceTemporary"&&(s[u][1].type="data");return s}function i(s,o,u){const c=this.previous,p=this.events;let d=0;return f;function f(b){return c===126&&p[p.length-1][1].type!=="characterEscape"?u(b):(s.enter("strikethroughSequenceTemporary"),m(b))}function m(b){const E=ri(c);if(b===126)return d>1?u(b):(s.consume(b),d++,m);if(d<2&&!n)return u(b);const x=s.exit("strikethroughSequenceTemporary"),y=ri(b);return x._open=!y||y===2&&!!E,x._close=!E||E===2&&!!y,o(b)}}}class kF{constructor(){this.map=[]}add(t,n,r){IF(this,t,n,r)}consume(t){if(this.map.sort(function(i,s){return i[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let a=r.pop();for(;a;){for(const i of a)t.push(i);a=r.pop()}this.map.length=0}}function IF(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function RF(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=r.length-1;r[i]=r[i]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function DF(){return{flow:{null:{name:"table",tokenize:OF,resolveAll:LF}}}}function OF(e,t,n){const r=this;let a=0,i=0,s;return o;function o(C){let $=r.events.length-1;for(;$>-1;){const W=r.events[$][1].type;if(W==="lineEnding"||W==="linePrefix")$--;else break}const I=$>-1?r.events[$][1].type:null,P=I==="tableHead"||I==="tableRow"?N:u;return P===N&&r.parser.lazy[r.now().line]?n(C):P(C)}function u(C){return e.enter("tableHead"),e.enter("tableRow"),c(C)}function c(C){return C===124||(s=!0,i+=1),p(C)}function p(C){return C===null?n(C):He(C)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),m):n(C):dt(C)?Tt(e,p,"whitespace")(C):(i+=1,s&&(s=!1,a+=1),C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),s=!0,p):(e.enter("data"),d(C)))}function d(C){return C===null||C===124||Mt(C)?(e.exit("data"),p(C)):(e.consume(C),C===92?f:d)}function f(C){return C===92||C===124?(e.consume(C),d):d(C)}function m(C){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(C):(e.enter("tableDelimiterRow"),s=!1,dt(C)?Tt(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):b(C))}function b(C){return C===45||C===58?x(C):C===124?(s=!0,e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),E):R(C)}function E(C){return dt(C)?Tt(e,x,"whitespace")(C):x(C)}function x(C){return C===58?(i+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),y):C===45?(i+=1,y(C)):C===null||He(C)?w(C):R(C)}function y(C){return C===45?(e.enter("tableDelimiterFiller"),S(C)):R(C)}function S(C){return C===45?(e.consume(C),S):C===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(C))}function v(C){return dt(C)?Tt(e,w,"whitespace")(C):w(C)}function w(C){return C===124?b(C):C===null||He(C)?!s||a!==i?R(C):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(C)):R(C)}function R(C){return n(C)}function N(C){return e.enter("tableRow"),T(C)}function T(C){return C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),T):C===null||He(C)?(e.exit("tableRow"),t(C)):dt(C)?Tt(e,T,"whitespace")(C):(e.enter("data"),_(C))}function _(C){return C===null||C===124||Mt(C)?(e.exit("data"),T(C)):(e.consume(C),C===92?L:_)}function L(C){return C===92||C===124?(e.consume(C),_):_(C)}}function LF(e,t){let n=-1,r=!0,a=0,i=[0,0,0,0],s=[0,0,0,0],o=!1,u=0,c,p,d;const f=new kF;for(;++n<e.length;){const m=e[n],b=m[1];m[0]==="enter"?b.type==="tableHead"?(o=!1,u!==0&&(FE(f,t,u,c,p),p=void 0,u=0),c={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},f.add(n,0,[["enter",c,t]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(r=!0,d=void 0,i=[0,0,0,0],s=[0,n+1,0,0],o&&(o=!1,p={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},f.add(n,0,[["enter",p,t]])),a=b.type==="tableDelimiterRow"?2:p?3:1):a&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(i[1]!==0&&(s[0]=s[1],d=bo(f,t,i,a,void 0,d),i=[0,0,0,0]),s[2]=n)):b.type==="tableCellDivider"&&(r?r=!1:(i[1]!==0&&(s[0]=s[1],d=bo(f,t,i,a,void 0,d)),i=s,s=[i[1],n,0,0])):b.type==="tableHead"?(o=!0,u=n):b.type==="tableRow"||b.type==="tableDelimiterRow"?(u=n,i[1]!==0?(s[0]=s[1],d=bo(f,t,i,a,n,d)):s[1]!==0&&(d=bo(f,t,s,a,n,d)),a=0):a&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(s[3]=n)}for(u!==0&&FE(f,t,u,c,p),f.consume(t.events),n=-1;++n<t.events.length;){const m=t.events[n];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=RF(t.events,n))}return e}function bo(e,t,n,r,a,i){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(i.end=Object.assign({},Ba(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const u=Ba(t.events,n[1]);if(i={type:s,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",i,t]]),n[2]!==0){const c=Ba(t.events,n[2]),p=Ba(t.events,n[3]),d={type:o,start:Object.assign({},c),end:Object.assign({},p)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const f=t.events[n[2]],m=t.events[n[3]];if(f[1].end=Object.assign({},m[1].end),f[1].type="chunkText",f[1].contentType="text",n[3]>n[2]+1){const b=n[2]+1,E=n[3]-n[2]-1;e.add(b,E,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return a!==void 0&&(i.end=Object.assign({},Ba(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function FE(e,t,n,r,a){const i=[],s=Ba(t.events,n);a&&(a.end=Object.assign({},s),i.push(["exit",a,t])),r.end=Object.assign({},s),i.push(["exit",r,t]),e.add(n+1,0,i)}function Ba(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const FF={name:"tasklistCheck",tokenize:PF};function MF(){return{text:{91:FF}}}function PF(e,t,n){const r=this;return a;function a(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),i)}function i(u){return Mt(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):n(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(u)}function o(u){return He(u)?t(u):dt(u)?e.check({tokenize:jF},t,n)(u):n(u)}}function jF(e,t,n){return Tt(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function BF(e){return FT([cF(),yF(),CF(e),DF(),MF()])}const UF={};function $F(e){const t=this,n=e||UF,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(BF(n)),i.push(sF()),s.push(oF(n))}const zF=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,HF=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,GF=({legacyTitle:e=!1,tagName:t="div"}={})=>n=>{$n(n,"blockquote",(r,a,i)=>{let s="",o="",u=!0,c=r.children.map(p=>{if(u&&p.type==="paragraph"){const d=p.children[0],f=d.type==="text"?d.value:"",m=e?HF:zF,b=f.match(m);if(b&&(u=!1,s=b[1].toLocaleLowerCase(),o=e&&b[2]||s.toLocaleUpperCase(),f.includes(`
|
|
45
|
-
`)&&(p.children[0]={type:"text",value:f.replace(m,"").replace(/^\n+/,"")}),!f.includes(`
|
|
46
|
-
`))){const E=[];p.children.forEach((x,y)=>{y!=0&&(y==1&&x.type==="break"||E.push(x))}),p.children=[...E]}}return p});s&&(r.data={hName:t,hProperties:{class:`markdown-alert markdown-alert-${s}`,dir:"auto"}},c.unshift({type:"paragraph",children:[WF(s),{type:"text",value:o.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),r.children=[...c]})};function WF(e){let t=VF[e]??"";return{type:"emphasis",data:{hName:"svg",hProperties:{class:"octicon",viewBox:"0 0 16 16",width:"16",height:"16",ariaHidden:"true"}},children:[{type:"emphasis",data:{hName:"path",hProperties:{d:t}},children:[]}]}}const VF={note:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",tip:"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z",important:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",warning:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",caution:"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"};function qF(e,t){if(typeof document>"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let a=!1;try{a=!!document.execCommand("copy")}catch{a=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(a)}function yS(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?yS(t.parentElement):null}function YF(e){var t=n=>{var r=yS(n.target);r&&(r.classList.add("active"),qF(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};g.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var a;(a=e.current)==null||a.removeEventListener("click",t,!1)}},[e])}var ZF=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],KF=e=>e;const XF=tt.forwardRef((e,t)=>{var n=e.prefixCls,r=n===void 0?"wmde-markdown wmde-markdown-color":n,a=e.className,i=e.source,s=e.style;e.disableCopy;var o=e.skipHtml,u=o===void 0?!0:o,c=e.onScroll,p=e.onMouseOver,d=e.pluginsFilter;e.rehypeRewrite;var f=e.wrapperElement,m=f===void 0?{}:f,b=e.warpperElement,E=b===void 0?{}:b,x=e.urlTransform,y=Es(e,ZF),S=tt.useRef(null);g.useImperativeHandle(t,()=>ct({},e,{mdp:S}),[S,e]);var v=(r||"")+" "+(a||"");YF(S);var w=[...y.rehypePlugins||[]],R={allowElement:(_,L,C)=>y.allowElement?y.allowElement(_,L,C):/^[A-Za-z0-9]+$/.test(_.tagName)};u||w.push(kT);var N=[GF,...y.remarkPlugins||[],$F],T=ct({},E,m);return l.jsx("div",ct({ref:S,onScroll:c,onMouseOver:p},T,{className:v,style:s,children:l.jsx(C3,ct({},R,y,{skipHtml:!u,urlTransform:x||KF,rehypePlugins:d?d("rehype",w):w,remarkPlugins:d?d("remark",N):N,children:i||""}))}))});var QF=function(t){return n=>{$n(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=ct({},r.properties,{"data-meta":String(r.data.meta)}))})}},JF=function(t){return n=>{$n(n,r=>{if(r.type==="element"&&r.tagName==="code"&&r.properties&&r.properties.dataMeta){r.data||(r.data={});var a=r.properties.dataMeta;typeof a=="string"&&(r.data.meta=a),delete r.properties.dataMeta}})}};const e4=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,t4=Object.hasOwnProperty;class n4{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let a=r4(t,n===!0);const i=a;for(;t4.call(r.occurrences,a);)r.occurrences[i]++,a=i+"-"+r.occurrences[i];return r.occurrences[a]=0,a}reset(){this.occurrences=Object.create(null)}}function r4(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(e4,"").replace(/ /g,"-"))}function TS(e){const t=e.type==="element"?e.tagName.toLowerCase():"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0}const a4={},ME=new n4;function i4(e){const n=(e||a4).prefix||"";return function(r){ME.reset(),$n(r,"element",function(a){TS(a)&&!a.properties.id&&(a.properties.id=n+ME.slug(za(a)))})}}const SS=(function(e){if(e==null)return l4;if(typeof e=="string")return o4(e);if(typeof e=="object")return s4(e);if(typeof e=="function")return qg(e);throw new Error("Expected function, string, or array as `test`")});function s4(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=SS(e[n]);return qg(r);function r(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function o4(e){return qg(t);function t(n){return n.tagName===e}}function qg(e){return t;function t(n,r,a){return!!(u4(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function l4(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function u4(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const PE={type:"element",tagName:"span",properties:{className:["icon","icon-link"]},children:[]},c4={};function d4(e){const t=e||c4;let n=t.properties;const r=t.headingProperties,a=t.behavior||"prepend",i=t.content,s=t.group,o=SS(t.test);let u;return a==="after"||a==="before"?u=p:a==="wrap"?u=d:(u=c,n||(n={ariaHidden:"true",tabIndex:-1})),function(f){$n(f,"element",function(m,b,E){if(TS(m)&&m.properties.id&&o(m,b,E))return Object.assign(m.properties,Eo(r,m)),u(m,b,E)})};function c(f){const m=jE(i||PE,f);return f.children[a==="prepend"?"unshift":"push"](lc(f,Eo(n,f),m)),[Xi]}function p(f,m,b){if(typeof m!="number"||!b)return;const E=jE(i||PE,f),x=lc(f,Eo(n,f),E);let y=a==="before"?[x,f]:[f,x];if(s){const S=vS(s,f);S&&!Array.isArray(S)&&S.type==="element"&&(S.children=y,y=[S])}return b.children.splice(m,1,...y),[Xi,m+y.length]}function d(f){let m=f.children,b=[];return typeof i=="function"?(m=[],b=i(f)):i&&(b=Yg(i)),f.children=[lc(f,Eo(n,f),Array.isArray(b)?[...m,...b]:[...m,b])],[Xi]}}function Yg(e){return pa(e)}function lc(e,t,n){return{type:"element",tagName:"a",properties:{...t,href:"#"+e.properties.id},children:n}}function jE(e,t){const n=vS(e,t);return Array.isArray(n)?n:[n]}function vS(e,t){return typeof e=="function"?e(t):Yg(e)}function Eo(e,t){return typeof e=="function"?e(t):e?Yg(e):{}}const p4=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{$n(r,(a,i,s)=>{if(a.type==="element"||a.type==="root"){let o=!1;a.children=a.children.filter(u=>{if(u.type==="raw"||u.type==="comment"){let c=(u.value||"").trim();if(c=c.replace(/^<!--(.*?)-->/,"$1"),c===t)return o=!0,!1;if(c===n)return o=!1,!1}return!o})}})}};var f4={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function m4(e){return e===void 0&&(e=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":e},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}var h4=(e,t)=>(n,r,a)=>{if(n.type==="element"&&a&&a.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var i=n.children&&n.children[0];i&&i.properties&&i.properties.ariaHidden==="true"&&(i.properties=ct({class:"anchor"},i.properties),i.children=[f4])}if(n.type==="element"&&n.tagName==="pre"&&!e){var s=$1(n.children);n.children.push(m4(s))}t&&t(n,r===null?void 0:r,a===null?void 0:a)},g4=[i4,d4,p4];const b4=tt.forwardRef((e,t)=>{var n,r=[QF,kT,JF,...g4,[Dk,{rewrite:h4((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[Mk,{properties:"attr"}],...e.rehypePlugins||[],[C1,{ignoreMissing:!0}]];return l.jsx(XF,ct({},e,{rehypePlugins:r,ref:t}))});function E4(e,t){return t||(t=e.slice(0)),e.raw=t,e}const x4={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `-->` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:"Unexpected too big numeric character reference",description:"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},closingOfElementWithOpenChildElements:{reason:"Unexpected closing tag with open child elements",description:"Unexpectedly closing tag. Expected other tags to be closed first",url:!1},controlCharacterInInputStream:{reason:"Unexpected control character",description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:"Unexpected control character reference",description:"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:"Unexpected duplicate attribute",description:"Unexpectedly double attribute. Expected attributes to occur only once"},endTagWithAttributes:{reason:"Unexpected attribute on closing tag",description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:"Unexpected slash at end of closing tag",description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:"Unexpected unopened end tag",description:"Unexpected end tag. Expected no end tag or another end tag",url:!1},eofBeforeTagName:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected tag name instead"},eofInCdata:{reason:"Unexpected end of file in CDATA",description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:"Unexpected end of file in comment",description:"Unexpected end of file. Expected `-->` to close the comment"},eofInDoctype:{reason:"Unexpected end of file in doctype",description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:"Unexpected end of file in element that can only contain text",description:"Unexpected end of file. Expected text or a closing tag",url:!1},eofInScriptHtmlCommentLikeText:{reason:"Unexpected end of file in comment inside script",description:"Unexpected end of file. Expected `-->` to close the comment"},eofInTag:{reason:"Unexpected end of file in tag",description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:"Incorrectly closed comment",description:"Unexpected `%c-1`. Expected `-->` to close the comment"},incorrectlyOpenedComment:{reason:"Incorrectly opened comment",description:"Unexpected `%c`. Expected `<!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:"Invalid sequence after doctype name",description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:"Invalid first character in tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:"Misplaced doctype",description:"Unexpected doctype. Expected doctype before head",url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:"Missing attribute value",description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:"Missing doctype before other content",description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:"Missing doctype name",description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:"Missing public identifier in doctype",description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:"Missing system identifier in doctype",description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:"Missing name in end tag",description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:"Missing quote before public identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:"Missing quote before system identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:"Missing semicolon after character reference",description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:"Missing whitespace after public identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:"Missing whitespace after system identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:"Missing whitespace before doctype name",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:"Missing whitespace between attributes",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:"Missing whitespace between public and system identifiers in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:"Unexpected nested comment",description:"Unexpected `<!--`. Expected `-->`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:"Unexpected non-conforming doctype declaration",description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:"Unexpected trailing slash on start tag of non-void element",description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:"Unexpected noncharacter code point referenced by character reference",description:"Unexpected code point. Do not use noncharacters in HTML"},noncharacterInInputStream:{reason:"Unexpected noncharacter character",description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:"Unexpected NULL character referenced by character reference",description:"Unexpected code point. Do not use NULL characters in HTML"},openElementsLeftAfterEof:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected closing tag instead",url:!1},surrogateCharacterReference:{reason:"Unexpected surrogate character referenced by character reference",description:"Unexpected code point. Do not use lone surrogate characters in HTML"},surrogateInInputStream:{reason:"Unexpected surrogate character",description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:"Invalid character after system identifier in doctype",description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:"Unexpected character in attribute name",description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:"Unexpected character in unquoted attribute value",description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:"Unexpected equals sign before attribute name",description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:"Unexpected NULL character",description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:"Unexpected question mark instead of tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:"Unexpected slash in tag",description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:"Unexpected unknown named character reference",description:"Unexpected character reference. Expected known named character references"}},y4="https://html.spec.whatwg.org/multipage/parsing.html#parse-error-",T4=/-[a-z]/g,S4=/%c(?:([-+])(\d+))?/g,v4=/%x/g,w4={2:!0,1:!1,0:null},A4={};function N4(e,t){const n=t||A4,r=n.onerror,a=e instanceof rl?e:new rl(e),i=n.fragment?R2:I2,s=String(a),o=i(s,{sourceCodeLocationInfo:!0,onParseError:n.onerror?u:null,scriptingEnabled:!1});return q1(o,{file:a,space:n.space,verbose:n.verbose});function u(c){const p=c.code,d=_4(p),f=n[d],m=f??!0,b=typeof m=="number"?m:m?1:0;if(b){const x=x4[d],y=new Nn(E(x.reason),{place:{start:{line:c.startLine,column:c.startCol,offset:c.startOffset},end:{line:c.endLine,column:c.endCol,offset:c.endOffset}},ruleId:p,source:"hast-util-from-html"});a.path&&(y.file=a.path,y.name=a.path+":"+y.name),y.fatal=w4[b],y.note=E(x.description),y.url=x.url===!1?void 0:y4+p,r(y)}function E(x){return x.replace(S4,y).replace(v4,S);function y(v,w,R){const N=(R?Number.parseInt(R,10):0)*(w==="-"?-1:1),T=s.charAt(c.startOffset+N);return k4(T)}function S(){return I4(s.charCodeAt(c.startOffset))}}}}function _4(e){return e.replace(T4,C4)}function C4(e){return e.charAt(1).toUpperCase()}function k4(e){return e==="`"?"` ` `":e}function I4(e){return"0x"+e.toString(16).toUpperCase()}function R4(e){const t=this,{emitParseErrors:n,...r}={...t.data("settings"),...e};t.parser=a;function a(i,s){return N4(i,{...r,onerror:n?function(o){s.path&&(o.name=s.path+":"+o.name,o.file=s.path),s.messages.push(o)}:void 0})}}const D4=/["&'<>`]/g,O4=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,L4=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,F4=/[|\\{}()[\]^$+*?.]/g,BE=new WeakMap;function M4(e,t){if(e=e.replace(t.subset?P4(t.subset):D4,r),t.subset||t.escapeOnly)return e;return e.replace(O4,n).replace(L4,r);function n(a,i,s){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,s.charCodeAt(i+2),t)}function r(a,i,s){return t.format(a.charCodeAt(0),s.charCodeAt(i+1),t)}}function P4(e){let t=BE.get(e);return t||(t=j4(e),BE.set(e,t)),t}function j4(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(F4,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const B4=/[\dA-Fa-f]/;function U4(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!B4.test(String.fromCharCode(t))?r:r+";"}const $4=/\d/;function z4(e,t,n){const r="&#"+String(e);return n&&t&&!$4.test(String.fromCharCode(t))?r:r+";"}const uc={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},H4=["cent","copy","divide","gt","lt","not","para","times"],wS={}.hasOwnProperty,od={};let xo;for(xo in uc)wS.call(uc,xo)&&(od[uc[xo]]=xo);const G4=/[^\dA-Za-z]/;function W4(e,t,n,r){const a=String.fromCharCode(e);if(wS.call(od,a)){const i=od[a],s="&"+i;return n&&v1.includes(i)&&!H4.includes(i)&&(!r||t&&t!==61&&G4.test(String.fromCharCode(t)))?s:s+";"}return""}function V4(e,t,n){let r=U4(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=W4(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const i=z4(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function Ka(e,t){return M4(e,Object.assign({format:V4},t))}const q4=/^>|^->|<!--|-->|--!>|<!-$/g,Y4=[">"],Z4=["<",">"];function K4(e,t,n,r){return r.settings.bogusComments?"<?"+Ka(e.value,Object.assign({},r.settings.characterReferences,{subset:Y4}))+">":"<!--"+e.value.replace(q4,a)+"-->";function a(i){return Ka(i,Object.assign({},r.settings.characterReferences,{subset:Z4}))}}function X4(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}const on=NS(1),AS=NS(-1),Q4=[];function NS(e){return t;function t(n,r,a){const i=n?n.children:Q4;let s=(r||0)+e,o=i[s];if(!a)for(;o&&Ws(o);)s+=e,o=i[s];return o}}const J4={}.hasOwnProperty;function _S(e){return t;function t(n,r,a){return J4.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const Zg=_S({body:tM,caption:cc,colgroup:cc,dd:iM,dt:aM,head:cc,html:eM,li:rM,optgroup:sM,option:oM,p:nM,rp:UE,rt:UE,tbody:uM,td:$E,tfoot:cM,th:$E,thead:lM,tr:dM});function cc(e,t,n){const r=on(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Ws(r.value.charAt(0)))}function eM(e,t,n){const r=on(n,t);return!r||r.type!=="comment"}function tM(e,t,n){const r=on(n,t);return!r||r.type!=="comment"}function nM(e,t,n){const r=on(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function rM(e,t,n){const r=on(n,t);return!r||r.type==="element"&&r.tagName==="li"}function aM(e,t,n){const r=on(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function iM(e,t,n){const r=on(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function UE(e,t,n){const r=on(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function sM(e,t,n){const r=on(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function oM(e,t,n){const r=on(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function lM(e,t,n){const r=on(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function uM(e,t,n){const r=on(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function cM(e,t,n){return!on(n,t)}function dM(e,t,n){const r=on(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function $E(e,t,n){const r=on(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const pM=_S({body:hM,colgroup:gM,head:mM,html:fM,tbody:bM});function fM(e){const t=on(e,-1);return!t||t.type!=="comment"}function mM(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function hM(e){const t=on(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Ws(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function gM(e,t,n){const r=AS(n,t),a=on(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&Zg(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function bM(e,t,n){const r=AS(n,t),a=on(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Zg(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const yo={name:[[`
|
|
47
|
-
\f\r &/=>`.split(""),`
|
|
48
|
-
\f\r "&'/=>\``.split("")],[`\0
|
|
49
|
-
\f\r "&'/<=>`.split(""),`\0
|
|
50
|
-
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
51
|
-
\f\r &>`.split(""),`\0
|
|
52
|
-
\f\r "&'<=>\``.split("")],[`\0
|
|
53
|
-
\f\r "&'<=>\``.split(""),`\0
|
|
54
|
-
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function EM(e,t,n,r){const a=r.schema,i=a.space==="svg"?!1:r.settings.omitOptionalTags;let s=a.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const o=[];let u;a.space==="html"&&e.tagName==="svg"&&(r.schema=pr);const c=xM(r,e.properties),p=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,p&&(s=!1),(c||!i||!pM(e,t,n))&&(o.push("<",e.tagName,c?" "+c:""),s&&(a.space==="svg"||r.settings.closeSelfClosing)&&(u=c.charAt(c.length-1),(!r.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&o.push(" "),o.push("/")),o.push(">")),o.push(p),!s&&(!i||!Zg(e,t,n))&&o.push("</"+e.tagName+">"),o.join("")}function xM(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const i=yM(e,a,t[a]);i&&n.push(i)}}for(;++r<n.length;){const i=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&i!=='"'&&i!=="'"&&(n[r]+=" ")}return n.join("")}function yM(e,t,n){const r=hi(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,i=e.settings.allowDangerousCharacters?0:1;let s=e.quote,o;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const u=Ka(r.attribute,Object.assign({},e.settings.characterReferences,{subset:yo.name[a][i]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Jl:eu)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?u:(e.settings.preferUnquoted&&(o=Ka(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:yo.unquoted[a][i]}))),o!==n&&(e.settings.quoteSmart&&al(n,s)>al(n,e.alternative)&&(s=e.alternative),o=s+Ka(n,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?yo.single:yo.double)[a][i],attribute:!0}))+s),u+(o&&"="+o))}const TM=["<","&"];function CS(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Ka(e.value,Object.assign({},r.settings.characterReferences,{subset:TM}))}function SM(e,t,n,r){return r.settings.allowDangerousHtml?e.value:CS(e,t,n,r)}function vM(e,t,n,r){return r.all(e)}const wM=au("type",{invalid:AM,unknown:NM,handlers:{comment:K4,doctype:X4,element:EM,raw:SM,root:vM,text:CS}});function AM(e){throw new Error("Expected node, not `"+e+"`")}function NM(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const _M={},CM={},kM=[];function IM(e,t){const n=t||_M,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:RM,all:DM,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||K1,characterReferences:n.characterReferences||CM,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?pr:wa,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function RM(e,t,n){return wM(e,t,n,this)}function DM(e){const t=[],n=e&&e.children||kM;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function OM(e){const t=this,n={...t.data("settings"),...e};t.compiler=r;function r(a){return IM(a,n)}}const LM=KT().use(R4).use(OM).freeze();function FM(e,t){return ct({},e,t)}var Na=tt.createContext({markdown:""}),zE;function MM(e){return e.replace(/[<&"]/g,t=>({"<":"<",">":">","&":"&",'"':"""})[t])}function PM(e){var t=e.prefixCls,n=g.useContext(Na),r=n.markdown,a=r===void 0?"":r,i=n.highlightEnable,s=n.dispatch,o=tt.createRef();if(g.useEffect(()=>{o.current&&s&&s({textareaPre:o.current})},[]),!a)return l.jsx("pre",{ref:o,className:t+"-text-pre wmde-markdown-color"});var u='<pre class="language-markdown '+t+'-text-pre wmde-markdown-color"><code class="language-markdown">'+MM(String.raw(zE||(zE=E4(["",""])),a))+`
|
|
55
|
-
</code></pre>`;if(i)try{u=LM().data("settings",{fragment:!0}).use(C1,{ignoreMissing:!0}).processSync(u).toString()}catch{}return tt.createElement("div",{className:"wmde-markdown-color",dangerouslySetInnerHTML:{__html:u||""}})}function kS(e,t){return e===void 0&&(e=[]),t===void 0&&(t={}),e.forEach(n=>{n.children&&Array.isArray(n.children)?t=ct({},t,kS(n.children||[])):n.keyCommand&&n.shortcuts&&n.execute&&(t[n.shortcuts.toLocaleLowerCase()]=n)}),t}function IS(e,t,n,r,a){t===void 0&&(t=[]);var i=kS(t||[]),s=[];if(e.altKey&&s.push("alt"),e.shiftKey&&s.push("shift"),e.metaKey&&s.push("cmd"),e.ctrlKey&&s.push("ctrl"),s.length>0&&!/(control|alt|meta|shift)/.test(e.key.toLocaleLowerCase())&&s.push(e.key.toLocaleLowerCase()),/escape/.test(e.key.toLocaleLowerCase())&&s.push("escape"),!(s.length<1)){var o=!!i[s.join("+")],u=o?i[s.join("+")]:void 0;if(Object.keys(i).forEach(c=>{var p=c.split("+").every(d=>/ctrlcmd/.test(d)?s.includes("ctrl")||s.includes("cmd"):s.includes(d));p&&(u=i[c])}),u&&n){e.stopPropagation(),e.preventDefault(),n.executeCommand(u,r,a,s);return}}}var dc;function HE(e){if(e.nodeName!=="TEXTAREA")return!1;if(typeof dc>"u"){var t=document.createElement("textarea");t.value="1",dc=!!t.firstChild}return dc}function Xa(e,t){if(e.focus(),document.selection){var n=document.selection.createRange();n.text=t,n.collapse(!1),n.select();return}var r=!1;if(t!==""?r=document.execCommand&&document.execCommand("insertText",!1,t):r=document.execCommand&&document.execCommand("delete",!1),!r){var a=e.selectionStart,i=e.selectionEnd;if(typeof e.setRangeText=="function")e.setRangeText(t);else{var s=document.createRange(),o=document.createTextNode(t);if(HE(e)){var u=e.firstChild;if(!u)e.appendChild(o);else{for(var c=0,p=null,d=null;u&&(p===null||d===null);){var f=u.nodeValue.length;a>=c&&a<=c+f&&s.setStart(p=u,a-c),i>=c&&i<=c+f&&s.setEnd(d=u,i-c),c+=f,u=u.nextSibling}a!==i&&s.deleteContents()}}if(HE(e)&&s.commonAncestorContainer.nodeName==="#text")s.insertNode(o);else{var m=e.value;e.value=m.slice(0,a)+t+m.slice(i)}}e.setSelectionRange(a+t.length,a+t.length);var b=document.createEvent("UIEvent");b.initEvent("input",!0,!1),e.dispatchEvent(b)}}function Mn(e){var t=e.text,n=e.selection,r=e.prefix,a=e.suffix,i=a===void 0?r:a,s=n;if(t&&t.length&&n.start===n.end&&(s=jM(t,n.start)),s.start>=r.length&&s.end<=t.length-i.length){var o=t.slice(s.start-r.length,s.end+i.length);if(o.startsWith(r)&&o.endsWith(i))return{start:s.start-r.length,end:s.end+i.length}}return s}function os(e){var t=e.text,n=e.selection,r=t.slice(0,n.start).lastIndexOf(`
|
|
56
|
-
`)+1,a=t.slice(n.end).indexOf(`
|
|
57
|
-
`)+n.end;return a===n.end-1&&(a=t.length),{start:r,end:a}}function RS(e,t){if(e===void 0&&(e=""),t===0)return 0;for(var n=2,r=!0,a=t-1;a>=0&&n>=0;a--)switch(e.charCodeAt(a)){case 32:continue;case 10:n--,r=!1;break;default:return n}return r?0:n}function DS(e,t){if(e===void 0&&(e=""),t===e.length-1)return 0;for(var n=2,r=!0,a=t;a<e.length&&n>=0;a++)switch(e.charCodeAt(a)){case 32:continue;case 10:{n--,r=!1;break}default:return n}return r?0:n}function jM(e,t){if(!e)throw Error("Argument 'text' should be truthy");for(var n=o=>o===" "||o.charCodeAt(0)===10,r=0,a=e.length,i=t;i-1>-1;i--)if(n(e[i-1])){r=i;break}for(var s=t;s<e.length;s++)if(n(e[s])){a=s;break}return{start:r,end:a}}function Sn(e){var t=e.api,n=e.selectedText,r=e.selection,a=e.prefix,i=e.suffix,s=i===void 0?a:i;n.length>=a.length+s.length&&n.startsWith(a)&&n.endsWith(s)?(t.replaceSelection(n.slice(a.length,s.length?-s.length:void 0)),t.setSelectionRange({start:r.start-a.length,end:r.end-a.length})):(t.replaceSelection(""+a+n+s),t.setSelectionRange({start:r.start+a.length,end:r.end+a.length}))}function Kg(e,t){var n=e.split(/\n/),r=0,a=n.map((i,s)=>{if(typeof t=="string")return i.startsWith(t)?(r-=t.length,i.slice(t.length)):(r+=t.length,t+i);if(typeof t=="function"){if(i.startsWith(t(i,s)))return r-=t(i,s).length,i.slice(t(i,s).length);var o=t(i,s);return r+=o.length,t(i,s)+i}throw Error("insertion is expected to be either a string or a function")}).join(`
|
|
58
|
-
`);return{modifiedText:a,insertionLength:r}}var BM={name:"bold",keyCommand:"bold",shortcuts:"ctrlcmd+b",prefix:"**",buttonProps:{"aria-label":"Add bold text (ctrl + b)",title:"Add bold text (ctrl + b)"},icon:l.jsx("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 384 512",children:l.jsx("path",{fill:"currentColor",d:"M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"})}),execute:(e,t)=>{var n=Mn({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);Sn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},OS={name:"codeBlock",keyCommand:"codeBlock",shortcuts:"ctrlcmd+shift+j",prefix:"```",buttonProps:{"aria-label":"Insert Code Block (ctrl + shift + j)",title:"Insert Code Block (ctrl + shift +j)"},icon:l.jsx("svg",{width:"13",height:"13",role:"img",viewBox:"0 0 156 156",children:l.jsx("path",{fill:"currentColor",d:"M110.85 120.575 43.7 120.483333 43.7083334 110.091667 110.85 110.191667 110.841667 120.583333 110.85 120.575ZM85.1333334 87.1916666 43.625 86.7083332 43.7083334 76.3166666 85.2083334 76.7916666 85.1333334 87.1916666 85.1333334 87.1916666ZM110.841667 53.4166666 43.7 53.3166666 43.7083334 42.925 110.85 43.025 110.841667 53.4166666ZM36 138C27.2916666 138 20.75 136.216667 16.4 132.666667 12.1333334 129.2 10 124.308333 10 118L10 95.3333332C10 91.0666666 9.25 88.1333332 7.7333334 86.5333332 6.3166668 84.8416666 3.7333334 84 0 84L0 72C3.7333334 72 6.3083334 71.2 7.7333334 69.6 9.2416668 67.9083334 10 64.9333334 10 60.6666666L10 38C10 31.775 12.1333334 26.8833334 16.4 23.3333332 20.7583334 19.7749998 27.2916666 18 36 18L40.6666668 18 40.6666668 30 36 30C34.0212222 29.9719277 32.1263151 30.7979128 30.8 32.2666666 29.3605875 33.8216362 28.5938182 35.8823287 28.6666668 38L28.6666668 60.6666666C28.6666668 67.5083332 26.6666668 72.4 22.6666668 75.3333332 20.9317416 76.7274684 18.8640675 77.6464347 16.6666668 78 18.8916668 78.35 20.8916668 79.2416666 22.6666668 80.6666666 26.6666668 83.95 28.6666668 88.8416666 28.6666668 95.3333332L28.6666668 118C28.6666668 120.308333 29.3750002 122.216667 30.8 123.733333 32.2166666 125.241667 33.9583334 126 36 126L40.6666668 126 40.6666668 138 36 138 36 138ZM114.116667 126 118.783333 126C120.833333 126 122.566667 125.241667 123.983333 123.733333 125.422746 122.178364 126.189515 120.117671 126.116667 118L126.116667 95.3333332C126.116667 88.8333332 128.116667 83.9499998 132.116667 80.6666666 133.9 79.2416666 135.9 78.35 138.116667 78 135.919156 77.6468047 133.851391 76.7277979 132.116667 75.3333332 128.116667 72.3999998 126.116667 67.5 126.116667 60.6666666L126.116667 38C126.189515 35.8823287 125.422746 33.8216361 123.983333 32.2666666 122.657018 30.7979128 120.762111 29.9719277 118.783333 30L114.116667 30 114.116667 18 118.783333 18C127.5 18 133.983333 19.775 138.25 23.3333332 142.608333 26.8833332 144.783333 31.7749998 144.783333 38L144.783333 60.6666666C144.783333 64.9333332 145.5 67.9083332 146.916667 69.6 148.433333 71.2 151.05 72 154.783333 72L154.783333 84C151.05 84 148.433333 84.8333334 146.916667 86.5333332 145.5 88.1333332 144.783333 91.0666666 144.783333 95.3333332L144.783333 118C144.783333 124.308333 142.616667 129.2 138.25 132.666667 133.983333 136.216667 127.5 138 118.783333 138L114.116667 138 114.116667 126 114.116667 126Z"})}),execute:(e,t)=>{var n=Mn({text:e.text,selection:e.selection,prefix:"```\n",suffix:"\n```"}),r=t.setSelectionRange(n),a="\n```\n",i="\n```\n";r.selectedText.length>=a.length+i.length-2&&r.selectedText.startsWith(a)&&r.selectedText.endsWith(i)?(a="```\n",i="\n```"):((r.selection.start>=1&&e.text.slice(r.selection.start-1,r.selection.start)===`
|
|
59
|
-
`||r.selection.start===0)&&(a="```\n"),(r.selection.end<=e.text.length-1&&e.text.slice(r.selection.end,r.selection.end+1)===`
|
|
60
|
-
`||r.selection.end===e.text.length)&&(i="\n```"));var s=Mn({text:e.text,selection:e.selection,prefix:a,suffix:i}),o=t.setSelectionRange(s);Sn({api:t,selectedText:o.selectedText,selection:e.selection,prefix:a,suffix:i})}},UM={name:"code",keyCommand:"code",shortcuts:"ctrlcmd+j",prefix:"`",buttonProps:{"aria-label":"Insert code (ctrl + j)",title:"Insert code (ctrl + j)"},icon:l.jsx("svg",{width:"14",height:"14",role:"img",viewBox:"0 0 640 512",children:l.jsx("path",{fill:"currentColor",d:"M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"})}),execute:(e,t)=>{if(e.selectedText.indexOf(`
|
|
61
|
-
`)===-1){var n=Mn({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);Sn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}else OS.execute(e,t)}},$M={name:"comment",keyCommand:"comment",shortcuts:"ctrlcmd+/",prefix:"<!-- ",suffix:" -->",buttonProps:{"aria-label":"Insert comment (ctrl + /)",title:"Insert comment (ctrl + /)"},icon:l.jsx("svg",{height:"1em",width:"1em",viewBox:"0 0 25 25",children:l.jsxs("g",{fill:"none",fillRule:"evenodd",children:[l.jsx("polygon",{points:".769 .727 24.981 .727 24.981 24.727 .769 24.727"}),l.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M12.625,23.8787879 L8.125,19.6969697 L5.125,19.6969697 C2.63971863,19.6969697 0.625,17.8247059 0.625,15.5151515 L0.625,7.15151515 C0.625,4.84196074 2.63971863,2.96969697 5.125,2.96969697 L20.125,2.96969697 C22.6102814,2.96969697 24.625,4.84196074 24.625,7.15151515 L24.625,15.5151515 C24.625,17.8247059 22.6102814,19.6969697 20.125,19.6969697 L17.125,19.6969697 L12.625,23.8787879"}),l.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M10.625,8.54545455 L7.25,11.3333333 L10.625,14.1212121 M15.6875,8.54545455 L19.0625,11.3333333 L15.6875,14.1212121"})]})}),execute:(e,t)=>{var n=Mn({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);Sn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix})}},Ho={keyCommand:"divider"},zM={name:"fullscreen",keyCommand:"fullscreen",shortcuts:"ctrlcmd+0",value:"fullscreen",buttonProps:{"aria-label":"Toggle fullscreen (ctrl + 0)",title:"Toggle fullscreen (ctrl+ 0)"},icon:l.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:l.jsx("path",{fill:"currentColor",d:"M118 171.133334L118 342.200271C118 353.766938 126.675 365.333605 141.133333 365.333605L382.634614 365.333605C394.201281 365.333605 405.767948 356.658605 405.767948 342.200271L405.767948 171.133334C405.767948 159.566667 397.092948 148 382.634614 148L141.133333 148C126.674999 148 117.999999 156.675 118 171.133334zM465.353591 413.444444L370 413.444444 370 471.222222 474.0221 471.222222C500.027624 471.222222 520.254143 451 520.254143 425L520.254143 321 462.464089 321 462.464089 413.444444 465.353591 413.444444zM471.0221 43L367 43 367 100.777778 462.353591 100.777778 462.353591 196.111111 520.143647 196.111111 520.143647 89.2222219C517.254144 63.2222219 497.027624 43 471.0221 43zM57.7900547 100.777778L153.143646 100.777778 153.143646 43 46.2320439 43C20.2265191 43 0 63.2222219 0 89.2222219L0 193.222222 57.7900547 193.222222 57.7900547 100.777778zM57.7900547 321L0 321 0 425C0 451 20.2265191 471.222222 46.2320439 471.222223L150.254143 471.222223 150.254143 413.444445 57.7900547 413.444445 57.7900547 321z"})}),execute:(e,t,n,r,a)=>{t.textArea.focus(),a&&n&&r&&n({fullscreen:!r.fullscreen})}};function HM(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var GM=(e,t)=>{var n=ct({children:e,icon:l.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:l.jsx("path",{fill:"currentColor",d:"M15.7083333,468 C7.03242448,468 0,462.030833 0,454.666667 L0,421.333333 C0,413.969167 7.03242448,408 15.7083333,408 L361.291667,408 C369.967576,408 377,413.969167 377,421.333333 L377,454.666667 C377,462.030833 369.967576,468 361.291667,468 L15.7083333,468 Z M21.6666667,366 C9.69989583,366 0,359.831861 0,352.222222 L0,317.777778 C0,310.168139 9.69989583,304 21.6666667,304 L498.333333,304 C510.300104,304 520,310.168139 520,317.777778 L520,352.222222 C520,359.831861 510.300104,366 498.333333,366 L21.6666667,366 Z M136.835938,64 L136.835937,126 L107.25,126 L107.25,251 L40.75,251 L40.75,126 L-5.68434189e-14,126 L-5.68434189e-14,64 L136.835938,64 Z M212,64 L212,251 L161.648438,251 L161.648438,64 L212,64 Z M378,64 L378,126 L343.25,126 L343.25,251 L281.75,251 L281.75,126 L238,126 L238,64 L378,64 Z M449.047619,189.550781 L520,189.550781 L520,251 L405,251 L405,64 L449.047619,64 L449.047619,189.550781 Z"})}),execute:()=>{}},t,{keyCommand:"group"});return Array.isArray(n.children)&&(n.children=n.children.map(r=>{var a=ct({},(HM(r),r));return a.parent=n,ct({},a)})),n},WM={name:"hr",keyCommand:"hr",shortcuts:"ctrlcmd+h",prefix:`
|
|
62
|
-
|
|
63
|
-
---
|
|
64
|
-
`,suffix:"",buttonProps:{"aria-label":"Insert HR (ctrl + h)",title:"Insert HR (ctrl + h)"},icon:l.jsx("svg",{width:"12",height:"12",viewBox:"0 0 175 175",children:l.jsx("path",{fill:"currentColor",d:"M0,129 L175,129 L175,154 L0,154 L0,129 Z M3,9 L28.2158203,9 L28.2158203,47.9824219 L55.7695313,47.9824219 L55.7695313,9 L81.0966797,9 L81.0966797,107.185547 L55.7695313,107.185547 L55.7695313,68.0214844 L28.2158203,68.0214844 L28.2158203,107.185547 L3,107.185547 L3,9 Z M93.1855469,100.603516 L93.1855469,19 L135.211914,19 C143.004922,19 148.960917,19.6679621 153.080078,21.0039063 C157.199239,22.3398504 160.520495,24.8168764 163.043945,28.4350586 C165.567395,32.0532407 166.829102,36.459935 166.829102,41.6552734 C166.829102,46.1826398 165.864267,50.0883625 163.93457,53.3725586 C162.004873,56.6567547 159.351579,59.3193257 155.974609,61.3603516 C153.822255,62.6591862 150.872089,63.7353473 147.124023,64.5888672 C150.129898,65.5908253 152.319329,66.5927684 153.692383,67.5947266 C154.620122,68.2626987 155.965323,69.6913953 157.728027,71.8808594 C159.490731,74.0703234 160.668942,75.7587831 161.262695,76.9462891 L173,100.603516 L144.953125,100.603516 L131.482422,75.6660156 C129.775382,72.4374839 128.253913,70.3408251 126.917969,69.3759766 C125.0996,68.1142515 123.040051,67.4833984 120.739258,67.4833984 L118.512695,67.4833984 L118.512695,100.603516 L93.1855469,100.603516 Z M118.512695,52.0644531 L129.144531,52.0644531 C130.294928,52.0644531 132.521468,51.6933631 135.824219,50.9511719 C137.494149,50.6171858 138.857905,49.7636787 139.915527,48.390625 C140.97315,47.0175713 141.501953,45.4404386 141.501953,43.6591797 C141.501953,41.0244009 140.667001,39.0019602 138.99707,37.5917969 C137.32714,36.1816336 134.191429,35.4765625 129.589844,35.4765625 L117.512695,35.4765625 L118.512695,52.0644531 Z",transform:"translate(0 9)"})}),execute:(e,t)=>{var n=Mn({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.length>=e.command.prefix.length&&r.selectedText.startsWith(e.command.prefix)?Sn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(r=t.setSelectionRange({start:e.selection.start,end:e.selection.start}),Sn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}))}},VM={name:"image",keyCommand:"image",shortcuts:"ctrlcmd+k",prefix:"",buttonProps:{"aria-label":"Add image (ctrl + k)",title:"Add image (ctrl + k)"},icon:l.jsx("svg",{width:"13",height:"13",viewBox:"0 0 20 20",children:l.jsx("path",{fill:"currentColor",d:"M15 9c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm4-7H1c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1h18c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1zm-1 13l-6-5-2 2-4-5-4 8V4h16v11z"})}),execute:(e,t)=>{var n=Mn({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.includes("http")||r.selectedText.includes("www")?Sn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(n=Mn({text:e.text,selection:e.selection,prefix:"![",suffix:"]()"}),r=t.setSelectionRange(n),r.selectedText.length===0?Sn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:""}):Sn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"![",suffix:"]()"}))}},qM={name:"italic",keyCommand:"italic",shortcuts:"ctrlcmd+i",prefix:"*",buttonProps:{"aria-label":"Add italic text (ctrl + i)",title:"Add italic text (ctrl + i)"},icon:l.jsx("svg",{"data-name":"italic",width:"12",height:"12",role:"img",viewBox:"0 0 320 512",children:l.jsx("path",{fill:"currentColor",d:"M204.758 416h-33.849l62.092-320h40.725a16 16 0 0 0 15.704-12.937l6.242-32C297.599 41.184 290.034 32 279.968 32H120.235a16 16 0 0 0-15.704 12.937l-6.242 32C96.362 86.816 103.927 96 113.993 96h33.846l-62.09 320H46.278a16 16 0 0 0-15.704 12.935l-6.245 32C22.402 470.815 29.967 480 40.034 480h158.479a16 16 0 0 0 15.704-12.935l6.245-32c1.927-9.88-5.638-19.065-15.704-19.065z"})}),execute:(e,t)=>{var n=Mn({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);Sn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},YM={name:"link",keyCommand:"link",shortcuts:"ctrlcmd+l",prefix:"[",suffix:"](url)",buttonProps:{"aria-label":"Add a link (ctrl + l)",title:"Add a link (ctrl + l)"},icon:l.jsx("svg",{"data-name":"italic",width:"12",height:"12",role:"img",viewBox:"0 0 520 520",children:l.jsx("path",{fill:"currentColor",d:"M331.751196,182.121107 C392.438214,241.974735 391.605313,337.935283 332.11686,396.871226 C332.005129,396.991316 331.873084,397.121413 331.751196,397.241503 L263.493918,464.491645 C203.291404,523.80587 105.345257,523.797864 45.151885,464.491645 C-15.0506283,405.187427 -15.0506283,308.675467 45.151885,249.371249 L82.8416853,212.237562 C92.836501,202.39022 110.049118,208.9351 110.56511,222.851476 C111.223305,240.5867 114.451306,258.404985 120.407566,275.611815 C122.424812,281.438159 120.983487,287.882964 116.565047,292.23621 L103.272145,305.332975 C74.8052033,333.379887 73.9123737,379.047937 102.098973,407.369054 C130.563883,435.969378 177.350591,436.139505 206.033884,407.879434 L274.291163,340.6393 C302.9257,312.427264 302.805844,266.827265 274.291163,238.733318 C270.531934,235.036561 266.74528,232.16442 263.787465,230.157924 C259.544542,227.2873 256.928256,222.609848 256.731165,217.542518 C256.328935,206.967633 260.13184,196.070508 268.613213,187.714278 L289.998463,166.643567 C295.606326,161.118448 304.403592,160.439942 310.906317,164.911276 C318.353355,170.034591 325.328531,175.793397 331.751196,182.121107 Z M240.704978,55.4828366 L172.447607,122.733236 C172.325719,122.853326 172.193674,122.983423 172.081943,123.103513 C117.703294,179.334654 129.953294,261.569283 185.365841,328.828764 C191.044403,335.721376 198.762988,340.914712 206.209732,346.037661 C212.712465,350.509012 221.510759,349.829503 227.117615,344.305363 L248.502893,323.234572 C256.984277,314.87831 260.787188,303.981143 260.384957,293.406218 C260.187865,288.338869 257.571576,283.661398 253.328648,280.790763 C250.370829,278.78426 246.58417,275.912107 242.824936,272.215337 C214.310216,244.121282 206.209732,204.825874 229.906702,179.334654 L298.164073,112.094263 C326.847404,83.8340838 373.633159,84.0042113 402.099123,112.604645 C430.285761,140.92587 429.393946,186.594095 400.92595,214.641114 L387.63303,227.737929 C383.214584,232.091191 381.773257,238.536021 383.790506,244.362388 C389.746774,261.569283 392.974779,279.387637 393.632975,297.122928 C394.149984,311.039357 411.361608,317.584262 421.356437,307.736882 L459.046288,270.603053 C519.249898,211.29961 519.249898,114.787281 459.047304,55.4828366 C398.853851,-3.82360914 300.907572,-3.83161514 240.704978,55.4828366 Z"})}),execute:(e,t)=>{var n=Mn({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.includes("http")||r.selectedText.includes("www")?(n=Mn({text:e.text,selection:e.selection,prefix:"[](",suffix:")"}),r=t.setSelectionRange(n),Sn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"[](",suffix:")"})):r.selectedText.length===0?Sn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"[title",suffix:"](url)"}):Sn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix})}},Xg=(e,t,n)=>{var r=Mn({text:e.text,selection:e.selection,prefix:e.command.prefix}),a=t.setSelectionRange(r),i=RS(a.text,a.selection.start),s=Array(i+1).join(`
|
|
65
|
-
`),o=DS(a.text,a.selection.end),u=Array(o+1).join(`
|
|
66
|
-
`),c=Kg(a.selectedText,n),p=c.modifiedText,d=c.insertionLength;if(d<0){var f=a.selection.start,m=a.selection.end;a.selection.start>0&&e.text.slice(a.selection.start-1,a.selection.start)===`
|
|
67
|
-
`&&(f-=1),a.selection.end<e.text.length-1&&e.text.slice(a.selection.end,a.selection.end+1)===`
|
|
68
|
-
`&&(m+=1),t.setSelectionRange({start:f,end:m}),t.replaceSelection(""+p),t.setSelectionRange({start:f,end:f+p.length})}else{t.replaceSelection(""+s+p+u);var b=a.selection.start+i,E=b+p.length;t.setSelectionRange({start:b,end:E})}},ZM={name:"unordered-list",keyCommand:"list",shortcuts:"ctrl+shift+u",prefix:"- ",buttonProps:{"aria-label":"Add unordered list (ctrl + shift + u)",title:"Add unordered list (ctrl + shift + u)"},icon:l.jsx("svg",{"data-name":"unordered-list",width:"12",height:"12",viewBox:"0 0 512 512",children:l.jsx("path",{fill:"currentColor",d:"M96 96c0 26.51-21.49 48-48 48S0 122.51 0 96s21.49-48 48-48 48 21.49 48 48zM48 208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm0 160c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm96-236h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"})}),execute:(e,t)=>{Xg(e,t,"- ")}},KM={name:"ordered-list",keyCommand:"list",shortcuts:"ctrl+shift+o",prefix:"1. ",buttonProps:{"aria-label":"Add ordered list (ctrl + shift + o)",title:"Add ordered list (ctrl + shift + o)"},icon:l.jsx("svg",{"data-name":"ordered-list",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:l.jsx("path",{fill:"currentColor",d:"M3.263 139.527c0-7.477 3.917-11.572 11.573-11.572h15.131V88.078c0-5.163.534-10.503.534-10.503h-.356s-1.779 2.67-2.848 3.738c-4.451 4.273-10.504 4.451-15.666-1.068l-5.518-6.231c-5.342-5.341-4.984-11.216.534-16.379l21.72-19.938C32.815 33.602 36.732 32 42.785 32H54.89c7.656 0 11.749 3.916 11.749 11.572v84.384h15.488c7.655 0 11.572 4.094 11.572 11.572v8.901c0 7.477-3.917 11.572-11.572 11.572H14.836c-7.656 0-11.573-4.095-11.573-11.572v-8.902zM2.211 304.591c0-47.278 50.955-56.383 50.955-69.165 0-7.18-5.954-8.755-9.28-8.755-3.153 0-6.479 1.051-9.455 3.852-5.079 4.903-10.507 7.004-16.111 2.451l-8.579-6.829c-5.779-4.553-7.18-9.805-2.803-15.409C13.592 201.981 26.025 192 47.387 192c19.437 0 44.476 10.506 44.476 39.573 0 38.347-46.753 46.402-48.679 56.909h39.049c7.529 0 11.557 4.027 11.557 11.382v8.755c0 7.354-4.028 11.382-11.557 11.382h-67.94c-7.005 0-12.083-4.028-12.083-11.382v-4.028zM5.654 454.61l5.603-9.28c3.853-6.654 9.105-7.004 15.584-3.152 4.903 2.101 9.63 3.152 14.359 3.152 10.155 0 14.358-3.502 14.358-8.23 0-6.654-5.604-9.106-15.934-9.106h-4.728c-5.954 0-9.28-2.101-12.258-7.88l-1.05-1.926c-2.451-4.728-1.226-9.806 2.801-14.884l5.604-7.004c6.829-8.405 12.257-13.483 12.257-13.483v-.35s-4.203 1.051-12.608 1.051H16.685c-7.53 0-11.383-4.028-11.383-11.382v-8.755c0-7.53 3.853-11.382 11.383-11.382h58.484c7.529 0 11.382 4.027 11.382 11.382v3.327c0 5.778-1.401 9.806-5.079 14.183l-17.509 20.137c19.611 5.078 28.716 20.487 28.716 34.845 0 21.363-14.358 44.126-48.503 44.126-16.636 0-28.192-4.728-35.896-9.455-5.779-4.202-6.304-9.805-2.626-15.934zM144 132h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"})}),execute:(e,t)=>{Xg(e,t,(n,r)=>r+1+". ")}},XM={name:"checked-list",keyCommand:"list",shortcuts:"ctrl+shift+c",prefix:"- [ ] ",buttonProps:{"aria-label":"Add checked list (ctrl + shift + c)",title:"Add checked list (ctrl + shift + c)"},icon:l.jsx("svg",{"data-name":"checked-list",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:l.jsx("path",{fill:"currentColor",d:"M208 132h288c8.8 0 16-7.2 16-16V76c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zM64 368c-26.5 0-48.6 21.5-48.6 48s22.1 48 48.6 48 48-21.5 48-48-21.5-48-48-48zm92.5-299l-72.2 72.2-15.6 15.6c-4.7 4.7-12.9 4.7-17.6 0L3.5 109.4c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.3c4.7-4.7 12.3-4.7 17 0l17 16.5c4.6 4.7 4.6 12.3-.1 17zm0 159.6l-72.2 72.2-15.7 15.7c-4.7 4.7-12.9 4.7-17.6 0L3.5 269c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.7c4.7-4.7 12.3-4.7 17 0l17 17c4.6 4.6 4.6 12.2-.1 16.9z"})}),execute:(e,t)=>{Xg(e,t,(n,r)=>"- [ ] ")}},QM={name:"preview",keyCommand:"preview",value:"preview",shortcuts:"ctrlcmd+9",buttonProps:{"aria-label":"Preview code (ctrl + 9)",title:"Preview code (ctrl + 9)"},icon:l.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[l.jsx("polygon",{fill:"currentColor",points:"0 71.293 0 122 38.023 123 38.023 398 0 397 0 449.707 91.023 450.413 91.023 72.293"}),l.jsx("polygon",{fill:"currentColor",points:"148.023 72.293 520 71.293 520 122 200.023 124 200.023 397 520 396 520 449.707 148.023 450.413"})]}),execute:(e,t,n,r,a)=>{t.textArea.focus(),a&&n&&r&&n({preview:"preview"})}},JM={name:"edit",keyCommand:"preview",value:"edit",shortcuts:"ctrlcmd+7",buttonProps:{"aria-label":"Edit code (ctrl + 7)",title:"Edit code (ctrl + 7)"},icon:l.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[l.jsx("polygon",{fill:"currentColor",points:"0 71.293 0 122 319 122 319 397 0 397 0 449.707 372 449.413 372 71.293"}),l.jsx("polygon",{fill:"currentColor",points:"429 71.293 520 71.293 520 122 481 123 481 396 520 396 520 449.707 429 449.413"})]}),execute:(e,t,n,r,a)=>{t.textArea.focus(),a&&n&&r&&n({preview:"edit"})}},e5={name:"live",keyCommand:"preview",value:"live",shortcuts:"ctrlcmd+8",buttonProps:{"aria-label":"Live code (ctrl + 8)",title:"Live code (ctrl + 8)"},icon:l.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[l.jsx("polygon",{fill:"currentColor",points:"0 71.293 0 122 179 122 179 397 0 397 0 449.707 232 449.413 232 71.293"}),l.jsx("polygon",{fill:"currentColor",points:"289 71.293 520 71.293 520 122 341 123 341 396 520 396 520 449.707 289 449.413"})]}),execute:(e,t,n,r,a)=>{t.textArea.focus(),a&&n&&r&&n({preview:"live"})}},t5={name:"quote",keyCommand:"quote",shortcuts:"ctrlcmd+q",prefix:"> ",buttonProps:{"aria-label":"Insert a quote (ctrl + q)",title:"Insert a quote (ctrl + q)"},icon:l.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:l.jsx("path",{fill:"currentColor",d:"M520,95.75 L520,225.75 C520,364.908906 457.127578,437.050625 325.040469,472.443125 C309.577578,476.586875 294.396016,464.889922 294.396016,448.881641 L294.396016,414.457031 C294.396016,404.242891 300.721328,395.025078 310.328125,391.554687 C377.356328,367.342187 414.375,349.711094 414.375,274.5 L341.25,274.5 C314.325781,274.5 292.5,252.674219 292.5,225.75 L292.5,95.75 C292.5,68.8257812 314.325781,47 341.25,47 L471.25,47 C498.174219,47 520,68.8257812 520,95.75 Z M178.75,47 L48.75,47 C21.8257813,47 0,68.8257812 0,95.75 L0,225.75 C0,252.674219 21.8257813,274.5 48.75,274.5 L121.875,274.5 C121.875,349.711094 84.8563281,367.342187 17.828125,391.554687 C8.22132813,395.025078 1.89601563,404.242891 1.89601563,414.457031 L1.89601563,448.881641 C1.89601563,464.889922 17.0775781,476.586875 32.5404687,472.443125 C164.627578,437.050625 227.5,364.908906 227.5,225.75 L227.5,95.75 C227.5,68.8257812 205.674219,47 178.75,47 Z"})}),execute:(e,t)=>{var n=Mn({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n),a=RS(r.text,r.selection.start),i=Array(a+1).join(`
|
|
69
|
-
`),s=DS(r.text,r.selection.end),o=Array(s+1).join(`
|
|
70
|
-
`),u=Kg(r.selectedText,e.command.prefix);t.replaceSelection(""+i+u.modifiedText+o);var c=r.selection.start+a,p=c+u.modifiedText.length;t.setSelectionRange({start:c,end:p})}},n5={name:"strikethrough",keyCommand:"strikethrough",shortcuts:"ctrl+shift+x",buttonProps:{"aria-label":"Add strikethrough text (ctrl + shift + x)",title:"Add strikethrough text (ctrl + shift + x)"},prefix:"~~",icon:l.jsx("svg",{"data-name":"strikethrough",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:l.jsx("path",{fill:"currentColor",d:"M496 288H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h480c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16zm-214.666 16c27.258 12.937 46.524 28.683 46.524 56.243 0 33.108-28.977 53.676-75.621 53.676-32.325 0-76.874-12.08-76.874-44.271V368c0-8.837-7.164-16-16-16H113.75c-8.836 0-16 7.163-16 16v19.204c0 66.845 77.717 101.82 154.487 101.82 88.578 0 162.013-45.438 162.013-134.424 0-19.815-3.618-36.417-10.143-50.6H281.334zm-30.952-96c-32.422-13.505-56.836-28.946-56.836-59.683 0-33.92 30.901-47.406 64.962-47.406 42.647 0 64.962 16.593 64.962 32.985V136c0 8.837 7.164 16 16 16h45.613c8.836 0 16-7.163 16-16v-30.318c0-52.438-71.725-79.875-142.575-79.875-85.203 0-150.726 40.972-150.726 125.646 0 22.71 4.665 41.176 12.777 56.547h129.823z"})}),execute:(e,t)=>{var n=Mn({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);Sn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},LS={name:"heading1",keyCommand:"heading1",shortcuts:"ctrlcmd+1",prefix:"# ",suffix:"",buttonProps:{"aria-label":"Insert Heading 1 (ctrl + 1)",title:"Insert Heading 1 (ctrl + 1)"},icon:l.jsx("div",{style:{fontSize:18,textAlign:"left"},children:"Heading 1"}),execute:(e,t)=>{Ti({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},r5=LS;function Ti(e){var t=e.state,n=e.api,r=e.prefix,a=e.suffix,i=a===void 0?r:a,s=os({text:t.text,selection:t.selection}),o=n.setSelectionRange(s);Sn({api:n,selectedText:o.selectedText,selection:t.selection,prefix:r,suffix:i})}ct({},LS,{icon:l.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:l.jsx("path",{fill:"currentColor",d:"M15.7083333,468 C7.03242448,468 0,462.030833 0,454.666667 L0,421.333333 C0,413.969167 7.03242448,408 15.7083333,408 L361.291667,408 C369.967576,408 377,413.969167 377,421.333333 L377,454.666667 C377,462.030833 369.967576,468 361.291667,468 L15.7083333,468 Z M21.6666667,366 C9.69989583,366 0,359.831861 0,352.222222 L0,317.777778 C0,310.168139 9.69989583,304 21.6666667,304 L498.333333,304 C510.300104,304 520,310.168139 520,317.777778 L520,352.222222 C520,359.831861 510.300104,366 498.333333,366 L21.6666667,366 Z M136.835938,64 L136.835937,126 L107.25,126 L107.25,251 L40.75,251 L40.75,126 L-5.68434189e-14,126 L-5.68434189e-14,64 L136.835938,64 Z M212,64 L212,251 L161.648438,251 L161.648438,64 L212,64 Z M378,64 L378,126 L343.25,126 L343.25,251 L281.75,251 L281.75,126 L238,126 L238,64 L378,64 Z M449.047619,189.550781 L520,189.550781 L520,251 L405,251 L405,64 L449.047619,64 L449.047619,189.550781 Z"})})});var a5={name:"heading2",keyCommand:"heading2",shortcuts:"ctrlcmd+2",prefix:"## ",suffix:"",buttonProps:{"aria-label":"Insert Heading 2 (ctrl + 2)",title:"Insert Heading 2 (ctrl + 2)"},icon:l.jsx("div",{style:{fontSize:16,textAlign:"left"},children:"Heading 2"}),execute:(e,t)=>{Ti({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},i5=a5,s5={name:"heading3",keyCommand:"heading3",shortcuts:"ctrlcmd+3",prefix:"### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 3 (ctrl + 3)",title:"Insert Heading 3 (ctrl + 3)"},icon:l.jsx("div",{style:{fontSize:15,textAlign:"left"},children:"Heading 3"}),execute:(e,t)=>{Ti({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},o5=s5,l5={name:"heading4",keyCommand:"heading4",shortcuts:"ctrlcmd+4",prefix:"#### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 4 (ctrl + 4)",title:"Insert Heading 4 (ctrl + 4)"},icon:l.jsx("div",{style:{fontSize:14,textAlign:"left"},children:"Heading 4"}),execute:(e,t)=>{Ti({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},u5=l5,c5={name:"heading5",keyCommand:"heading5",shortcuts:"ctrlcmd+5",prefix:"##### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 5 (ctrl + 5)",title:"Insert Heading 5 (ctrl + 5)"},icon:l.jsx("div",{style:{fontSize:12,textAlign:"left"},children:"Heading 5"}),execute:(e,t)=>{Ti({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},d5=c5,p5={name:"heading6",keyCommand:"heading6",shortcuts:"ctrlcmd+6",prefix:"###### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 6 (ctrl + 6)",title:"Insert Heading 6 (ctrl + 6)"},icon:l.jsx("div",{style:{fontSize:12,textAlign:"left"},children:"Heading 6"}),execute:(e,t)=>{Ti({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},f5=p5,m5={name:"table",keyCommand:"table",prefix:`
|
|
71
|
-
| Header | Header |
|
|
72
|
-
|--------|--------|
|
|
73
|
-
| Cell | Cell |
|
|
74
|
-
| Cell | Cell |
|
|
75
|
-
| Cell | Cell |
|
|
76
|
-
|
|
77
|
-
`,suffix:"",buttonProps:{"aria-label":"Add table",title:"Add table"},icon:l.jsx("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 512 512",children:l.jsx("path",{fill:"currentColor",d:"M64 256V160H224v96H64zm0 64H224v96H64V320zm224 96V320H448v96H288zM448 256H288V160H448v96zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z"})}),execute:(e,t)=>{var n=Mn({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.length>=e.command.prefix.length+e.command.suffix.length&&r.selectedText.startsWith(e.command.prefix)?Sn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(r=t.setSelectionRange({start:e.selection.start,end:e.selection.start}),Sn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}))}},h5={name:"help",keyCommand:"help",buttonProps:{"aria-label":"Open help",title:"Open help"},icon:l.jsx("svg",{viewBox:"0 0 16 16",width:"12px",height:"12px",children:l.jsx("path",{d:"M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8Zm.9 13H7v-1.8h1.9V13Zm-.1-3.6v.5H7.1v-.6c.2-2.1 2-1.9 1.9-3.2.1-.7-.3-1.1-1-1.1-.8 0-1.2.7-1.2 1.6H5c0-1.7 1.2-3 2.9-3 2.3 0 3 1.4 3 2.3.1 2.3-1.9 2-2.1 3.5Z",fill:"currentColor"})}),execute:()=>{window.open("https://www.markdownguide.org/basic-syntax/","_blank","noreferrer")}},g5=()=>[BM,qM,n5,WM,GM([r5,i5,o5,u5,d5,f5],{name:"title",groupName:"title",buttonProps:{"aria-label":"Insert title",title:"Insert title"}}),Ho,YM,t5,UM,OS,$M,VM,m5,Ho,ZM,KM,XM,Ho,h5],b5=()=>[JM,e5,QM,Ho,zM];function sl(e){var t;return{selection:{start:e.selectionStart,end:e.selectionEnd},text:e.value,selectedText:(t=e.value)==null?void 0:t.slice(e.selectionStart,e.selectionEnd)}}class Qg{constructor(t){this.textArea=void 0,this.textArea=t}replaceSelection(t){return Xa(this.textArea,t),sl(this.textArea)}setSelectionRange(t){return this.textArea.focus(),this.textArea.selectionStart=t.start,this.textArea.selectionEnd=t.end,sl(this.textArea)}}class Jg{constructor(t){this.textArea=void 0,this.textApi=void 0,this.textArea=t,this.textApi=new Qg(t)}getState(){return this.textArea?sl(this.textArea):!1}executeCommand(t,n,r,a){t.execute&&t.execute(ct({command:t},sl(this.textArea)),this.textApi,n,r,a)}}function Go(e){e.stopPropagation(),e.preventDefault()}function GE(e,t){Go(e);var n=e.target,r=new Qg(n),a={start:n.selectionStart,end:n.selectionEnd};if(a=os({text:n.value,selection:a}),!(t<0&&a.start<=0||t>0&&a.end>=n.value.length)){var i=n.value.slice(a.start,a.end);if(t<0){var s=os({text:n.value,selection:{start:a.start-1,end:a.start-1}}),o=n.value.slice(s.start,s.end);r.setSelectionRange({start:s.start,end:a.end}),Xa(n,i+`
|
|
78
|
-
`+o),r.setSelectionRange({start:s.start,end:s.start+i.length})}else{var u=os({text:n.value,selection:{start:a.end+1,end:a.end+1}}),c=n.value.slice(u.start,u.end);r.setSelectionRange({start:a.start,end:u.end}),Xa(n,c+`
|
|
79
|
-
`+i),r.setSelectionRange({start:u.end-i.length,end:u.end})}}}function E5(e,t,n){t===void 0&&(t=2),n===void 0&&(n=!1);var r=e.target,a=r.value.substr(0,r.selectionStart),i=a.split(`
|
|
80
|
-
`),s=i[i.length-1],o=new Qg(r);if(!n&&e.code&&e.code.toLowerCase()==="tab"){Go(e);var u=new Array(t+1).join(" ");if(r.selectionStart!==r.selectionEnd){var c=r.value.substring(0,r.selectionStart).split(`
|
|
81
|
-
`),p=r.value.substring(0,r.selectionEnd).split(`
|
|
82
|
-
`),d=[];p.forEach((T,_)=>{T!==c[_]&&d.push(T)});var f=d.join(`
|
|
83
|
-
`),m=r.value.substring(r.selectionStart,r.selectionEnd),b=r.value.substring(0,r.selectionStart).length;o.setSelectionRange({start:r.value.indexOf(f),end:r.selectionEnd});var E=Kg(f,e.shiftKey?"":u),x=E.modifiedText;e.shiftKey&&(x=x.split(`
|
|
84
|
-
`).map(T=>T.replace(new RegExp("^"+u),"")).join(`
|
|
85
|
-
`)),o.replaceSelection(x);var y=e.shiftKey?-t:t,S=e.shiftKey?-d.length*t:d.length*t;o.setSelectionRange({start:b+y,end:b+m.length+S})}else return Xa(r,u)}else if(e.keyCode===13&&e.code.toLowerCase()==="enter"&&(/^(-|\*)\s/.test(s)||/^\d+.\s/.test(s))&&!e.shiftKey){Go(e);var v=`
|
|
86
|
-
- `;return s.startsWith("*")&&(v=`
|
|
87
|
-
* `),(s.startsWith("- [ ]")||s.startsWith("- [X]")||s.startsWith("- [x]"))&&(v=`
|
|
88
|
-
- [ ] `),/^\d+.\s/.test(s)&&(v=`
|
|
89
|
-
`+(parseInt(s)+1)+". "),Xa(r,v)}else if(e.code&&e.code.toLowerCase()==="keyd"&&e.ctrlKey){Go(e);var w={start:r.selectionStart,end:r.selectionEnd},R=w;w=os({text:r.value,selection:w});var N=r.value.slice(w.start,w.end);o.setSelectionRange({start:w.end,end:w.end}),Xa(r,`
|
|
90
|
-
`+N),o.setSelectionRange({start:R.start,end:R.end})}else e.code&&e.code.toLowerCase()==="arrowup"&&e.altKey?GE(e,-1):e.code&&e.code.toLowerCase()==="arrowdown"&&e.altKey&&GE(e,1)}var x5=["prefixCls","onChange"],y5=["markdown","commands","fullscreen","preview","highlightEnable","extraCommands","tabSize","defaultTabEnable","autoFocusEnd","textareaWarp","dispatch"];function T5(e){var t=e.prefixCls,n=e.onChange,r=Es(e,x5),a=g.useContext(Na),i=a.markdown,s=a.commands,o=a.fullscreen,u=a.preview,c=a.highlightEnable,p=a.extraCommands,d=a.tabSize,f=a.defaultTabEnable,m=a.autoFocusEnd,b=a.textareaWarp,E=a.dispatch;Es(a,y5);var x=tt.useRef(null),y=tt.useRef(),S=tt.useRef({fullscreen:o,preview:u});g.useEffect(()=>{S.current={fullscreen:o,preview:u,highlightEnable:c}},[o,u,c]),g.useEffect(()=>{if(x.current&&E){var w=new Jg(x.current);y.current=w,E({textarea:x.current,commandOrchestrator:w})}},[]),g.useEffect(()=>{if(m&&x.current&&b){x.current.focus();var w=x.current.value.length;x.current.setSelectionRange(w,w),setTimeout(()=>{b&&(b.scrollTop=b.scrollHeight),x.current&&(x.current.scrollTop=x.current.scrollHeight)},0)}},[b]);var v=w=>{E5(w,d,f),IS(w,[...s||[],...p||[]],y.current,E,S.current)};return g.useEffect(()=>(x.current&&x.current.addEventListener("keydown",v),()=>{x.current&&x.current.removeEventListener("keydown",v)}),[]),l.jsx("textarea",ct({autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1},r,{ref:x,className:t+"-text-input "+(r.className?r.className:""),value:i,onChange:w=>{E&&E({markdown:w.target.value}),n&&n(w)}}))}var S5=["prefixCls","className","onScroll","renderTextarea"];function v5(e){var t,n=e?.Markdown,r=(t=e?.useMinHeight)!=null?t:!1;return function(i){var s=i||{},o=s.prefixCls,u=s.className,c=s.onScroll,p=s.renderTextarea,d=Es(s,S5),f=g.useContext(Na),m=f.markdown,b=f.scrollTop,E=f.commands,x=f.minHeight,y=f.highlightEnable,S=f.extraCommands,v=f.dispatch,w=tt.useRef(null),R=tt.useRef(),N=tt.createRef();g.useEffect(()=>{var _={};N.current&&(_.textareaWarp=N.current||void 0,N.current.scrollTop=b||0),v&&v(ct({},_))},[]),g.useEffect(()=>{if(w.current&&v){var _=new Jg(w.current);R.current=_,v({textarea:w.current,commandOrchestrator:_})}},[]);var T=n&&y?{}:{WebkitTextFillColor:"initial",overflow:"auto"};return l.jsx("div",{ref:N,className:o+"-area "+(u||""),onScroll:c,children:l.jsx("div",{className:o+"-text",style:r?{minHeight:x}:void 0,children:p?tt.cloneElement(p(ct({},d,{value:m,autoComplete:"off",autoCorrect:"off",spellCheck:"false",autoCapitalize:"off",className:o+"-text-input",style:{WebkitTextFillColor:"inherit",overflow:"auto"}}),{dispatch:v,onChange:d.onChange,shortcuts:IS,useContext:{commands:E,extraCommands:S,commandOrchestrator:R.current}}),{ref:w}):l.jsxs(g.Fragment,{children:[n&&y&&l.jsx(n,{prefixCls:o}),l.jsx(T5,ct({prefixCls:o},d,{style:T}))]})})})}}const w5=v5({Markdown:PM,useMinHeight:!0});function A5(e){var t=e||{},n=t.prefixCls,r=t.groupName,a=t.commands,i=t.children,s=g.useContext(Na),o=s.barPopup,u=o===void 0?{}:o;return g.useMemo(()=>l.jsx("div",{className:n+"-toolbar-child "+(r&&u[r]?"active":""),onClick:c=>c.stopPropagation(),children:Array.isArray(a)?l.jsx(FS,ct({commands:a},e,{isChild:!0})):i}),[a,u,r,n])}function WE(e){var t=e.prefixCls,n=e.overflow,r=g.useContext(Na),a=r.fullscreen,i=r.preview,s=r.barPopup,o=s===void 0?{}:s,u=r.components,c=r.commandOrchestrator,p=r.dispatch,d=g.useRef("");function f(m,b){if(p){var E={barPopup:ct({},o)};m.keyCommand==="preview"&&(E.preview=m.value),m.keyCommand==="fullscreen"&&(E.fullscreen=!a),e.commands&&m.keyCommand==="group"?e.commands.forEach(x=>{b===x.groupName?E.barPopup[b]=!0:x.keyCommand&&(E.barPopup[x.groupName]=!1)}):(b||m.parent)&&Object.keys(E.barPopup||{}).forEach(x=>{E.barPopup[x]=!1}),Object.keys(E).length&&p(ct({},E)),c&&c.executeCommand(m)}}return g.useEffect(()=>{document&&n&&(a?document.body.style.overflow="hidden":(d.current||(d.current=window.getComputedStyle(document.body,null).overflow),document.body.style.overflow=d.current))},[a,d,n]),l.jsx("ul",{children:(e.commands||[]).map((m,b)=>{if(m.keyCommand==="divider")return l.jsx("li",ct({},m.liProps,{className:t+"-toolbar-divider"}),b);if(!m.keyCommand)return l.jsx(g.Fragment,{},b);var E=a&&m.keyCommand==="fullscreen"||m.keyCommand==="preview"&&i===m.value,x=m.children&&typeof m.children=="function"?m.children({getState:()=>c.getState(),textApi:c?c.textApi:void 0,close:()=>f({},m.groupName),execute:()=>f({execute:m.execute}),dispatch:p}):void 0,y=o&&i&&i==="preview"&&!/(preview|fullscreen)/.test(m.keyCommand),S=u?.toolbar||m.render,v=S&&typeof S=="function"?S(m,!!y,f,b):null;return l.jsxs("li",ct({},m.liProps,{className:E?"active":"",children:[v&&tt.isValidElement(v)&&v,!v&&!m.buttonProps&&m.icon,!v&&m.buttonProps&&tt.createElement("button",ct({type:"button",key:b,disabled:y,"data-name":m.name},m.buttonProps,{onClick:w=>{w.stopPropagation(),f(m,m.groupName)}}),m.icon),m.children&&l.jsx(A5,{overflow:n,groupName:m.groupName,prefixCls:t,children:x,commands:Array.isArray(m.children)?m.children:void 0})]}),b)})})}function FS(e){e===void 0&&(e={});var t=e,n=t.prefixCls,r=t.isChild,a=t.className,i=g.useContext(Na),s=i.commands,o=i.extraCommands;return l.jsxs("div",{className:n+"-toolbar "+a,children:[l.jsx(WE,ct({},e,{commands:e.commands||s||[]})),!r&&l.jsx(WE,ct({},e,{commands:o||[]}))]})}function VE(e){var t=e.hideToolbar,n=e.toolbarBottom,r=e.placement,a=e.overflow,i=e.prefixCls;if(t||r==="bottom"&&!n||r==="top"&&n)return null;var s=n?"bottom":"";return l.jsx(FS,{prefixCls:i,overflow:a,className:s})}var N5=e=>{var t=e||{},n=t.prefixCls,r=t.onChange,a=g.useRef(null),i=g.useRef(),s=g.useRef(e.height);g.useEffect(()=>{s.current!==e.height&&(s.current=e.height)},[e.height]);function o(d){if(i.current){var f,m=d.clientY||((f=d.changedTouches[0])==null?void 0:f.clientY),b=i.current.height+m-i.current.dragY;b>=e.minHeight&&b<=e.maxHeight&&r&&r(i.current.height+(m-i.current.dragY))}}function u(){var d,f;i.current=void 0,document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",u),(d=a.current)==null||d.removeEventListener("touchmove",o),(f=a.current)==null||f.removeEventListener("touchend",u)}function c(d){var f,m,b;d.preventDefault();var E=d.clientY||((f=d.changedTouches[0])==null?void 0:f.clientY);i.current={height:s.current,dragY:E},document.addEventListener("mousemove",o),document.addEventListener("mouseup",u),(m=a.current)==null||m.addEventListener("touchmove",o,{passive:!1}),(b=a.current)==null||b.addEventListener("touchend",u,{passive:!1})}g.useEffect(()=>{if(document){var d,f;(d=a.current)==null||d.addEventListener("touchstart",c,{passive:!1}),(f=a.current)==null||f.addEventListener("mousedown",c)}return()=>{if(document){var m;(m=a.current)==null||m.removeEventListener("touchstart",c),document.removeEventListener("mousemove",o)}}},[]);var p=g.useMemo(()=>l.jsx("svg",{viewBox:"0 0 512 512",height:"100%",children:l.jsx("path",{fill:"currentColor",d:"M304 256c0 26.5-21.5 48-48 48s-48-21.5-48-48 21.5-48 48-48 48 21.5 48 48zm120-48c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm-336 0c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z"})}),[]);return l.jsx("div",{className:n+"-bar",ref:a,children:p})},_5=["prefixCls","className","value","commands","commandsFilter","direction","extraCommands","height","enableScroll","visibleDragbar","highlightEnable","preview","fullscreen","overflow","previewOptions","textareaProps","maxHeight","minHeight","autoFocus","autoFocusEnd","tabSize","defaultTabEnable","onChange","onStatistics","onHeightChange","hideToolbar","toolbarBottom","components","renderTextarea"];function C5(e){return e===void 0&&(e={}),Object.keys(e).forEach(t=>{e[t]=!1}),e}function k5(e){var t=e.MarkdownPreview,n=e.TextArea,r=t,a=n,i=tt.forwardRef((o,u)=>{var c=o||{},p=c.prefixCls,d=p===void 0?"w-md-editor":p,f=c.className,m=c.value,b=c.commands,E=b===void 0?g5():b,x=c.commandsFilter,y=c.direction,S=c.extraCommands,v=S===void 0?b5():S,w=c.height,R=w===void 0?200:w,N=c.enableScroll,T=N===void 0?!0:N,_=c.visibleDragbar,L=_===void 0?typeof o.visiableDragbar=="boolean"?o.visiableDragbar:!0:_,C=c.highlightEnable,$=C===void 0?!0:C,I=c.preview,P=I===void 0?"live":I,W=c.fullscreen,U=W===void 0?!1:W,ne=c.overflow,z=ne===void 0?!0:ne,se=c.previewOptions,pe=se===void 0?{}:se,D=c.textareaProps,Q=c.maxHeight,de=Q===void 0?1200:Q,O=c.minHeight,Ce=O===void 0?100:O,De=c.autoFocus,J=c.autoFocusEnd,_e=J===void 0?!1:J,fe=c.tabSize,X=fe===void 0?2:fe,Ge=c.defaultTabEnable,ge=Ge===void 0?!1:Ge,me=c.onChange,Te=c.onStatistics,Se=c.onHeightChange,oe=c.hideToolbar,qe=c.toolbarBottom,at=qe===void 0?!1:qe,ft=c.components,Dt=c.renderTextarea,xt=Es(c,_5),Ut=E.map(Le=>x?x(Le,!1):Le).filter(Boolean),Kt=v.map(Le=>x?x(Le,!0):Le).filter(Boolean),ot=g.useReducer(FM,{markdown:m,preview:P,components:ft,height:R,minHeight:Ce,highlightEnable:$,tabSize:X,defaultTabEnable:ge,scrollTop:0,scrollTopPreview:0,commands:Ut,extraCommands:Kt,fullscreen:U,barPopup:{}}),Oe=ot[0],Qe=ot[1],Y=g.useRef(null),ie=g.useRef(null),ee=g.useRef(T);g.useImperativeHandle(u,()=>ct({},Oe,{container:Y.current,dispatch:Qe})),g.useMemo(()=>ee.current=T,[T]),g.useEffect(()=>{var Le={};Y.current&&(Le.container=Y.current||void 0),Le.markdown=m||"",Le.barPopup={},Qe&&Qe(ct({},Oe,Le))},[]);var ue=[f,"wmde-markdown-var",y?d+"-"+y:null,d,Oe.preview?d+"-show-"+Oe.preview:null,Oe.fullscreen?d+"-fullscreen":null].filter(Boolean).join(" ").trim();g.useMemo(()=>m!==Oe.markdown&&Qe({markdown:m||""}),[m,Oe.markdown]),g.useMemo(()=>P!==Oe.preview&&Qe({preview:P}),[P]),g.useMemo(()=>X!==Oe.tabSize&&Qe({tabSize:X}),[X]),g.useMemo(()=>$!==Oe.highlightEnable&&Qe({highlightEnable:$}),[$]),g.useMemo(()=>De!==Oe.autoFocus&&Qe({autoFocus:De}),[De]),g.useMemo(()=>_e!==Oe.autoFocusEnd&&Qe({autoFocusEnd:_e}),[_e]),g.useMemo(()=>U!==Oe.fullscreen&&Qe({fullscreen:U}),[U]),g.useMemo(()=>R!==Oe.height&&Qe({height:R}),[R]),g.useMemo(()=>R!==Oe.height&&Se&&Se(Oe.height,R,Oe),[R,Se,Oe]),g.useMemo(()=>E!==Oe.commands&&Qe({commands:Ut}),[o.commands]),g.useMemo(()=>v!==Oe.extraCommands&&Qe({extraCommands:Kt}),[o.extraCommands]);var Be=g.useRef(),Ye=g.useRef("preview"),mt=g.useRef(!1);g.useMemo(()=>{Be.current=Oe.textareaWarp,Oe.textareaWarp&&(Oe.textareaWarp.addEventListener("mouseover",()=>{Ye.current="text"}),Oe.textareaWarp.addEventListener("mouseleave",()=>{Ye.current="preview"}))},[Oe.textareaWarp]);var Ot=(Le,ht)=>{if(ee.current){var Xe=Be.current,It=ie.current?ie.current:void 0;if(mt.current||(Ye.current=ht,mt.current=!0),Xe&&It){var Je=(Xe.scrollHeight-Xe.offsetHeight)/(It.scrollHeight-It.offsetHeight);Le.target===Xe&&Ye.current==="text"&&(It.scrollTop=Xe.scrollTop/Je),Le.target===It&&Ye.current==="preview"&&(Xe.scrollTop=It.scrollTop*Je);var H=0;Ye.current==="text"?H=Xe.scrollTop||0:Ye.current==="preview"&&(H=It.scrollTop||0),Qe({scrollTop:H})}}},Nt=d+"-preview "+(pe.className||""),Pt=Le=>Ot(Le,"preview"),ae=g.useMemo(()=>l.jsx("div",{ref:ie,className:Nt,children:l.jsx(r,ct({},pe,{onScroll:Pt,source:Oe.markdown||""}))}),[Nt,pe,Oe.markdown]),Ne=ft?.preview&&ft?.preview(Oe.markdown||"",Oe,Qe);Ne&&tt.isValidElement(Ne)&&(ae=l.jsx("div",{className:Nt,ref:ie,onScroll:Pt,children:Ne}));var ze=ct({},xt.style,{height:Oe.height||"100%"}),Me=()=>Qe({barPopup:ct({},C5(Oe.barPopup))}),Ct=Le=>Qe({height:Le}),Qt=Le=>{if(me&&me(Le.target.value,Le,Oe),D&&D.onChange&&D.onChange(Le),Oe.textarea&&Oe.textarea instanceof HTMLTextAreaElement&&Te){var ht=new Jg(Oe.textarea),Xe=ht.getState()||{};Te(ct({},Xe,{lineCount:Le.target.value.split(`
|
|
91
|
-
`).length,length:Le.target.value.length}))}};return l.jsx(Na.Provider,{value:ct({},Oe,{dispatch:Qe}),children:l.jsxs("div",ct({ref:Y,className:ue},xt,{onClick:Me,style:ze,children:[l.jsx(VE,{hideToolbar:oe,toolbarBottom:at,prefixCls:d,overflow:z,placement:"top"}),l.jsxs("div",{className:d+"-content",children:[/(edit|live)/.test(Oe.preview||"")&&l.jsx(a,ct({className:d+"-input",prefixCls:d,autoFocus:De},D,{onChange:Qt,renderTextarea:ft?.textarea||Dt,onScroll:Le=>Ot(Le,"text")})),/(live|preview)/.test(Oe.preview||"")&&ae]}),L&&!Oe.fullscreen&&l.jsx(N5,{prefixCls:d,height:Oe.height,maxHeight:de,minHeight:Ce,onChange:Ct}),l.jsx(VE,{hideToolbar:oe,toolbarBottom:at,prefixCls:d,overflow:z,placement:"bottom"})]}))})}),s=i;return s.Markdown=t,s.displayName="MDEditor",s}const ol=k5({MarkdownPreview:b4,TextArea:w5}),I5={neutral:"badge-neutral",primary:"badge-primary",secondary:"badge-secondary",accent:"badge-accent",ghost:"badge-ghost",info:"badge-info",success:"badge-success",warning:"badge-warning",error:"badge-error",outline:"badge-outline"},R5={xs:"badge-xs",sm:"badge-sm",md:"badge-md",lg:"badge-lg"};function Rt({variant:e,size:t,className:n,...r}){const a=["badge",e&&I5[e],t&&R5[t],n].filter(Boolean).join(" ");return l.jsx("span",{className:a,...r})}const D5={primary:"btn-primary",ghost:"btn-ghost",error:"btn-error",outline:"btn-outline",accent:"btn-accent",warning:"btn-warning"},O5={xs:"btn-xs",sm:"btn-sm",md:"btn-md",lg:"btn-lg"};function We({variant:e,size:t,loading:n,asChild:r,className:a,disabled:i,children:s,...o}){const u=["btn",e&&D5[e],t&&O5[t],a].filter(Boolean).join(" ");if(r&&tt.isValidElement(s)){const c=s,p=[u,c.props.className].filter(Boolean).join(" ");return tt.cloneElement(c,{className:p})}return l.jsxs("button",{className:u,disabled:i||n,...o,children:[n&&l.jsx("span",{className:"loading loading-spinner"}),s]})}const L5={bordered:"card-bordered",primary:"card-primary",secondary:"card-secondary",accent:"card-accent",neutral:"card-neutral",imagefull:"card-image-full",compact:"card-compact",normal:"card-normal",side:"card-side"};function Ks({variant:e,asChild:t,className:n,children:r,...a}){const i=["card",e&&L5[e],n].filter(Boolean).join(" ");if(t&&tt.isValidElement(r)){const s=r,o=[i,s.props.className].filter(Boolean).join(" ");return tt.cloneElement(s,{className:o})}return l.jsx("div",{className:i,...a,children:r})}function Xs({className:e,...t}){const n=["card-body",e].filter(Boolean).join(" ");return l.jsx("div",{className:n,...t})}const F5={primary:"checkbox-primary",secondary:"checkbox-secondary",accent:"checkbox-accent",neutral:"checkbox-neutral",success:"checkbox-success",warning:"checkbox-warning",error:"checkbox-error",info:"checkbox-info"},M5={xs:"checkbox-xs",sm:"checkbox-sm",md:"checkbox-md",lg:"checkbox-lg"};function eb({variant:e,size:t,className:n,...r}){const a=["checkbox",e&&F5[e],t&&M5[t],n].filter(Boolean).join(" ");return l.jsx("input",{type:"checkbox",className:a,...r})}const P5={bordered:"input-bordered",ghost:"input-ghost",primary:"input-primary",secondary:"input-secondary",accent:"input-accent",info:"input-info",success:"input-success",warning:"input-warning",error:"input-error"},j5={xs:"input-xs",sm:"input-sm",md:"input-md",lg:"input-lg",xl:"input-xl"};function Ts({variant:e,size:t,error:n,className:r,...a}){const i=["input",e&&P5[e],t&&j5[t],n&&"input-error",r].filter(Boolean).join(" ");return l.jsx("input",{className:i,...a})}const B5={spinner:"loading-spinner",dots:"loading-dots",ring:"loading-ring",ball:"loading-ball",bars:"loading-bars",infinity:"loading-infinity"},U5={xs:"loading-xs",sm:"loading-sm",md:"loading-md",lg:"loading-lg",xl:"loading-xl"};function _a({variant:e="spinner",size:t,className:n,...r}){const a=["loading",B5[e],t&&U5[t],n].filter(Boolean).join(" ");return l.jsx("span",{className:a,...r})}const $5={primary:"modal-primary",secondary:"modal-secondary",accent:"modal-accent",neutral:"modal-neutral",success:"modal-success",warning:"modal-warning",error:"modal-error",info:"modal-info"};function ll({variant:e,open:t,onClose:n,className:r,children:a,...i}){if(!t)return null;const s=["modal-box",e&&$5[e],r].filter(Boolean).join(" ");return l.jsx("div",{className:"modal modal-open",role:"dialog","aria-modal":"true",tabIndex:-1,onClick:o=>{o.target===o.currentTarget&&n?.()},onKeyDown:o=>{o.key==="Escape"&&n?.()},...i,children:l.jsx("div",{className:s,children:a})})}const z5={bordered:"select-bordered",ghost:"select-ghost",primary:"select-primary",secondary:"select-secondary",accent:"select-accent",info:"select-info",success:"select-success",warning:"select-warning",error:"select-error"},H5={xs:"select-xs",sm:"select-sm",md:"select-md",lg:"select-lg"};function Kr({variant:e,size:t,className:n,children:r,...a}){const i=["select",e&&z5[e],t&&H5[t],n].filter(Boolean).join(" ");return l.jsx("select",{className:i,...a,children:r})}const G5={bordered:"textarea-bordered",ghost:"textarea-ghost",primary:"textarea-primary",secondary:"textarea-secondary",accent:"textarea-accent",info:"textarea-info",success:"textarea-success",warning:"textarea-warning",error:"textarea-error"},W5={xs:"textarea-xs",sm:"textarea-sm",md:"textarea-md",lg:"textarea-lg",xl:"textarea-xl"};function V5({variant:e,size:t,error:n,className:r,...a}){const i=["textarea",e&&G5[e],t&&W5[t],n&&"textarea-error",r].filter(Boolean).join(" ");return l.jsx("textarea",{className:i,...a})}const q5={top:"tooltip-top",bottom:"tooltip-bottom",left:"tooltip-left",right:"tooltip-right"};function Y5({position:e,tip:t,className:n,...r}){const a=["tooltip",e&&q5[e],n].filter(Boolean).join(" ");return l.jsx("span",{className:a,"data-tip":t,...r})}const MS="spur-board-layout",La={sidebarWidth:240,rightPanelWidth:320,sidebarCollapsed:!1,rightPanelCollapsed:!0};function Z5(){try{const e=localStorage.getItem(MS);if(!e)return{...La};const t=JSON.parse(e);return{sidebarWidth:typeof t.sidebarWidth=="number"?t.sidebarWidth:La.sidebarWidth,rightPanelWidth:typeof t.rightPanelWidth=="number"?t.rightPanelWidth:La.rightPanelWidth,sidebarCollapsed:typeof t.sidebarCollapsed=="boolean"?t.sidebarCollapsed:La.sidebarCollapsed,rightPanelCollapsed:typeof t.rightPanelCollapsed=="boolean"?t.rightPanelCollapsed:La.rightPanelCollapsed}}catch{return{...La}}}function K5(e){try{localStorage.setItem(MS,JSON.stringify(e))}catch{}}const X5=[];function Q5(e){return e[0]??{}}function ul(e){return Array.isArray(e)?e:e==null?[]:[e]}const qE="orpc",J5="@orpc/shared",eP="1.14.4";class tP extends Error{constructor(...t){super(...t),this.name="AbortError"}}function nP(e){let t;return()=>{if(t)return t.result;const n=e();return t={result:n},n}}function rP(e){let t=Promise.resolve();return(...n)=>t=t.catch(()=>{}).then(()=>e(...n))}const aP=2,iP=`__${J5}@${eP}/otel/config__`;function mu(){return globalThis[iP]}function tb(e,t={},n){return mu()?.tracer?.startSpan(e,t,n)}function ma(e,t,n={}){if(!e)return;const r=sP(t);e.recordException(r),(!n.signal?.aborted||n.signal.reason!==t)&&e.setStatus({code:aP,message:r.message})}function sP(e){if(e instanceof Error){const t={message:e.message,name:e.name,stack:e.stack};return"code"in e&&(typeof e.code=="string"||typeof e.code=="number")&&(t.code=e.code),t}return{message:String(e)}}async function qi({name:e,context:t,...n},r){const a=mu()?.tracer;if(!a)return r();const i=async s=>{try{return await r(s)}catch(o){throw ma(s,o,n),o}finally{s.end()}};return t?a.startActiveSpan(e,n,t,i):a.startActiveSpan(e,n,i)}async function ai(e,t){const n=mu();if(!e||!n)return t();const r=n.trace.setSpan(n.context.active(),e);return n.context.with(r,t)}function Ss(e){return!e||typeof e!="object"?!1:"next"in e&&typeof e.next=="function"&&Symbol.asyncIterator in e&&typeof e[Symbol.asyncIterator]=="function"}const oP=Symbol.for("asyncDispose"),lP=Symbol.asyncDispose??oP;class nb{#e=!1;#t=!1;#n;#r;constructor(t,n){this.#n=n,this.#r=rP(async()=>{if(this.#e)return{done:!0,value:void 0};try{const r=await t();return r.done&&(this.#e=!0),r}catch(r){throw this.#e=!0,r}finally{this.#e&&!this.#t&&(this.#t=!0,await this.#n("next"))}})}next(){return this.#r()}async return(t){return this.#e=!0,this.#t||(this.#t=!0,await this.#n("return")),{done:!0,value:t}}async throw(t){throw this.#e=!0,this.#t||(this.#t=!0,await this.#n("throw")),t}async[lP](){this.#e=!0,this.#t||(this.#t=!0,await this.#n("dispose"))}[Symbol.asyncIterator](){return this}}function YE({name:e,...t},n){let r;return new nb(async()=>{r??=tb(e);try{const a=await ai(r,()=>n.next());return r?.addEvent(a.done?"completed":"yielded"),a}catch(a){throw ma(r,a,t),a}},async a=>{try{a!=="next"&&await ai(r,()=>n.return?.())}catch(i){throw ma(r,i,t),i}finally{r?.end()}})}function uP(e){return async(t,...n)=>{try{return await t.next()}catch(r){throw await e(r,t,...n),r}}}function ld(e,t,n){const r=(a,i)=>{const s=e[i];return s?s({...a,next:(o=a)=>r(o,i+1)}):n(a)};return r(t,0)}function Wo(e){if(e)return JSON.parse(e)}function ud(e){return JSON.stringify(e)}function cP(e){return ha(e)?Object.getPrototypeOf(e)?.constructor:null}function Yr(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||!t||!t.constructor}function ha(e){return!!e&&(typeof e=="object"||typeof e=="function")}function ZE(e,t){let n=e;for(const r of t){if(!ha(n))return;n=n[r]}return n}const PS=(()=>{const e=function(){};return e.prototype=Object.create(null),Object.freeze(e.prototype),e})();function KE(e,...t){return typeof e=="function"?e(...t):e}function jS(e){return new Proxy(e,{get(t,n,r){const a=Reflect.get(t,n,r);return n!=="then"||typeof a!="function"?a:new Proxy(a,{apply(i,s,o){if(o.length!==2||o.some(c=>!pP(c)))return Reflect.apply(i,s,o);let u=!0;o[0].call(s,jS(new Proxy(t,{get:(c,p,d)=>{if(u&&p==="then"){u=!1;return}return Reflect.get(c,p,d)}})))}})}})}const dP=/^\s*function\s*\(\)\s*\{\s*\[native code\]\s*\}\s*$/;function pP(e){return typeof e=="function"&&dP.test(e.toString())}function fP(e){try{return decodeURIComponent(e)}catch{return e}}const mP="@orpc/client",hP="1.14.4",rb={BAD_REQUEST:{status:400,message:"Bad Request"},UNAUTHORIZED:{status:401,message:"Unauthorized"},FORBIDDEN:{status:403,message:"Forbidden"},NOT_FOUND:{status:404,message:"Not Found"},METHOD_NOT_SUPPORTED:{status:405,message:"Method Not Supported"},NOT_ACCEPTABLE:{status:406,message:"Not Acceptable"},TIMEOUT:{status:408,message:"Request Timeout"},CONFLICT:{status:409,message:"Conflict"},PRECONDITION_FAILED:{status:412,message:"Precondition Failed"},PAYLOAD_TOO_LARGE:{status:413,message:"Payload Too Large"},UNSUPPORTED_MEDIA_TYPE:{status:415,message:"Unsupported Media Type"},UNPROCESSABLE_CONTENT:{status:422,message:"Unprocessable Content"},TOO_MANY_REQUESTS:{status:429,message:"Too Many Requests"},CLIENT_CLOSED_REQUEST:{status:499,message:"Client Closed Request"},INTERNAL_SERVER_ERROR:{status:500,message:"Internal Server Error"},NOT_IMPLEMENTED:{status:501,message:"Not Implemented"},BAD_GATEWAY:{status:502,message:"Bad Gateway"},SERVICE_UNAVAILABLE:{status:503,message:"Service Unavailable"},GATEWAY_TIMEOUT:{status:504,message:"Gateway Timeout"}};function gP(e,t){return t??rb[e]?.status??500}function bP(e,t){return t||rb[e]?.message||e}const BS=Symbol.for(`__${mP}@${hP}/error/ORPC_ERROR_CONSTRUCTORS__`);globalThis[BS]??=new WeakSet;const cd=globalThis[BS];class vs extends Error{defined;code;status;data;constructor(t,...n){const r=Q5(n);if(r.status!==void 0&&!ws(r.status))throw new Error("[ORPCError] Invalid error status code.");const a=bP(t,r.message);super(a,r),this.code=t,this.status=gP(t,r.status),this.defined=r.defined??!1,this.data=r.data}toJSON(){return{defined:this.defined,code:this.code,status:this.status,message:this.message,data:this.data}}static[Symbol.hasInstance](t){if(cd.has(this)){const n=cP(t);if(n&&cd.has(n))return!0}return super[Symbol.hasInstance](t)}}cd.add(vs);function EP(e){return e instanceof vs?e:new vs("INTERNAL_SERVER_ERROR",{message:"Internal server error",cause:e})}function ws(e){return e<200||e>=400}function US(e){if(!Yr(e))return!1;const t=["defined","code","status","message","data"];return Object.keys(e).some(n=>!t.includes(n))?!1:"defined"in e&&typeof e.defined=="boolean"&&"code"in e&&typeof e.code=="string"&&"status"in e&&typeof e.status=="number"&&ws(e.status)&&"message"in e&&typeof e.message=="string"}function $S(e,t={}){return new vs(e.code,{...t,...e})}class hu extends TypeError{}class xP extends TypeError{}class As extends Error{data;constructor(t){super(t?.message??"An error event was received",t),this.data=t?.data}}function yP(e){const t=e.replace(/\n+$/,"").split(/\n/),n={data:void 0,event:void 0,id:void 0,retry:void 0,comments:[]};for(const r of t){const a=r.indexOf(":"),i=a===-1?r:r.slice(0,a),s=a===-1?"":r.slice(a+1).replace(/^\s/,"");if(a===0)n.comments.push(s);else if(i==="data")n.data??="",n.data+=`${s}
|
|
92
|
-
`;else if(i==="event")n.event=s;else if(i==="id")n.id=s;else if(i==="retry"){const o=Number.parseInt(s);Number.isInteger(o)&&o>=0&&o.toString()===s&&(n.retry=o)}}return n.data=n.data?.replace(/\n$/,""),n}class TP{constructor(t={}){this.options=t}incomplete="";feed(t){this.incomplete+=t;const n=this.incomplete.lastIndexOf(`
|
|
93
|
-
|
|
94
|
-
`);if(n===-1)return;const r=this.incomplete.slice(0,n).split(/\n\n/);this.incomplete=this.incomplete.slice(n+2);for(const a of r){const i=yP(`${a}
|
|
95
|
-
|
|
96
|
-
`);this.options.onEvent&&this.options.onEvent(i)}}end(){if(this.incomplete)throw new xP("Event Iterator ended before complete")}}class SP extends TransformStream{constructor(){let t;super({start(n){t=new TP({onEvent:r=>{n.enqueue(r)}})},transform(n){t.feed(n)},flush(){t.end()}})}}function zS(e){if(e.includes(`
|
|
97
|
-
`))throw new hu("Event's id must not contain a newline character")}function vP(e){if(e.includes(`
|
|
98
|
-
`))throw new hu("Event's event must not contain a newline character")}function HS(e){if(!Number.isInteger(e)||e<0)throw new hu("Event's retry must be a integer and >= 0")}function GS(e){if(e.includes(`
|
|
99
|
-
`))throw new hu("Event's comment must not contain a newline character")}function wP(e){const t=e?.split(/\n/)??[];let n="";for(const r of t)n+=`data: ${r}
|
|
100
|
-
`;return n}function AP(e){let t="";for(const n of e??[])GS(n),t+=`: ${n}
|
|
101
|
-
`;return t}function To(e){let t="";return t+=AP(e.comments),e.event!==void 0&&(vP(e.event),t+=`event: ${e.event}
|
|
102
|
-
`),e.retry!==void 0&&(HS(e.retry),t+=`retry: ${e.retry}
|
|
103
|
-
`),e.id!==void 0&&(zS(e.id),t+=`id: ${e.id}
|
|
104
|
-
`),t+=wP(e.data),t+=`
|
|
105
|
-
`,t}const WS=Symbol("ORPC_EVENT_SOURCE_META");function ls(e,t){if(t.id===void 0&&t.retry===void 0&&!t.comments?.length)return e;if(t.id!==void 0&&zS(t.id),t.retry!==void 0&&HS(t.retry),t.comments!==void 0)for(const n of t.comments)GS(n);return new Proxy(e,{get(n,r,a){return r===WS?t:Reflect.get(n,r,a)}})}function cl(e){return ha(e)?Reflect.get(e,WS):void 0}function NP(e,t="inline"){const n=e.replace(/[^\x20-\x7E]/g,"_").replace(/"/g,'\\"'),r=encodeURIComponent(e).replace(/['()*]/g,a=>`%${a.charCodeAt(0).toString(16).toUpperCase()}`).replace(/%(7C|60|5E)/g,(a,i)=>String.fromCharCode(Number.parseInt(i,16)));return`${t}; filename="${n}"; filename*=utf-8''${r}`}function _P(e){const t=e.match(/filename\*=(UTF-8'')?([^;]*)/i);if(t&&typeof t[2]=="string")return fP(t[2]);const n=e.match(/filename="((?:\\"|[^"])*)"/i);if(n&&typeof n[1]=="string")return n[1].replace(/\\"/g,'"')}function XE(e,t){const n={...e};for(const r in t)Array.isArray(t[r])?n[r]=[...ul(n[r]),...t[r]]:t[r]!==void 0&&(Array.isArray(n[r])?n[r]=[...n[r],t[r]]:n[r]!==void 0?n[r]=[n[r],t[r]]:n[r]=t[r]);return n}function QE(e,t){const n=async r=>{let a=await t.error(r);if(a!==r){const i=cl(r);i&&ha(a)&&(a=ls(a,i))}return a};return new nb(async()=>{const{done:r,value:a}=await(async()=>{try{return await e.next()}catch(s){throw await n(s)}})();let i=await t.value(a,r);if(i!==a){const s=cl(a);s&&ha(i)&&(i=ls(i,s))}return{done:r,value:i}},async()=>{try{await e.return?.()}catch(r){throw await n(r)}})}function CP(e){return{...e,context:e.context??{}}}function VS(e,t={}){const n=t.path??[],r=async(...[i,s={}])=>await e.call(n,i,CP(s)),a=new Proxy(r,{get(i,s){return typeof s!="string"?Reflect.get(i,s):VS(e,{...t,path:[...n,s]})}});return jS(a)}function qS(e,t){return{...e,...t}}class ab{"~orpc";constructor(t){if(t.route?.successStatus&&ws(t.route.successStatus))throw new Error("[ContractProcedure] Invalid successStatus.");if(Object.values(t.errorMap).some(n=>n&&n.status&&!ws(n.status)))throw new Error("[ContractProcedure] Invalid error status code.");this["~orpc"]=t}}function dd(e){return e instanceof ab?!0:(typeof e=="object"||typeof e=="function")&&e!==null&&"~orpc"in e&&typeof e["~orpc"]=="object"&&e["~orpc"]!==null&&"errorMap"in e["~orpc"]&&"route"in e["~orpc"]&&"meta"in e["~orpc"]}function kP(e,t={}){const r=e?.pipeThrough(new TextDecoderStream).pipeThrough(new SP)?.getReader();let a,i=!1;return new nb(async()=>{a??=tb("consume_event_iterator_stream");try{for(;;){if(r===void 0)return{done:!0,value:void 0};const{done:s,value:o}=await ai(a,()=>r.read());if(s){if(i)throw new tP("Stream was cancelled");return{done:!0,value:void 0}}switch(o.event){case"message":{let u=Wo(o.data);return ha(u)&&(u=ls(u,o)),a?.addEvent("message"),{done:!1,value:u}}case"error":{let u=new As({data:Wo(o.data)});throw u=ls(u,o),a?.addEvent("error"),u}case"done":{let u=Wo(o.data);return ha(u)&&(u=ls(u,o)),a?.addEvent("done"),{done:!0,value:u}}default:a?.addEvent("maybe_keepalive")}}}catch(s){throw s instanceof As||ma(a,s,t),s}},async s=>{try{s!=="next"&&(i=!0,a?.addEvent("cancelled")),await ai(a,()=>r?.cancel())}catch(o){throw ma(a,o,t),o}finally{a?.end()}})}function IP(e,t={}){const n=t.eventIteratorKeepAliveEnabled??!0,r=t.eventIteratorKeepAliveInterval??5e3,a=t.eventIteratorKeepAliveComment??"",i=t.eventIteratorInitialCommentEnabled??!0,s=t.eventIteratorInitialComment??"";let o=!1,u,c;return new ReadableStream({start(d){c=tb("stream_event_iterator"),i&&d.enqueue(To({comments:[s]}))},async pull(d){try{n&&(u=setInterval(()=>{d.enqueue(To({comments:[a]})),c?.addEvent("keepalive")},r));const f=await ai(c,()=>e.next());if(clearInterval(u),o)return;const m=cl(f.value);if(!f.done||f.value!==void 0||m!==void 0){const b=f.done?"done":"message";d.enqueue(To({...m,event:b,data:ud(f.value)})),c?.addEvent(b)}f.done&&(d.close(),c?.end())}catch(f){if(clearInterval(u),o)return;f instanceof As?(d.enqueue(To({...cl(f),event:"error",data:ud(f.data)})),c?.addEvent("error"),d.close()):(ma(c,f),d.error(f)),c?.end()}},async cancel(){try{o=!0,clearInterval(u),c?.addEvent("cancelled"),await ai(c,()=>e.return?.())}catch(d){throw ma(c,d),d}finally{c?.end()}}}).pipeThrough(new TextEncoderStream)}function RP(e,t={}){return qi({name:"parse_standard_body",signal:t.signal},async()=>{const n=e.headers.get("content-disposition");if(typeof n=="string"){const i=_P(n)??"blob",s=await e.blob();return new File([s],i,{type:s.type})}const r=e.headers.get("content-type");if(!r||r.startsWith("application/json")){const i=await e.text();return Wo(i)}if(r.startsWith("multipart/form-data"))return await e.formData();if(r.startsWith("application/x-www-form-urlencoded")){const i=await e.text();return new URLSearchParams(i)}if(r.startsWith("text/event-stream"))return kP(e.body,t);if(r.startsWith("text/plain"))return await e.text();const a=await e.blob();return new File([a],"blob",{type:a.type})})}function DP(e,t,n={}){if(e instanceof ReadableStream)return e;const r=t.get("content-disposition");if(t.delete("content-type"),t.delete("content-disposition"),e!==void 0)return e instanceof Blob?(t.set("content-type",e.type),t.set("content-length",e.size.toString()),t.set("content-disposition",r??NP(e instanceof File?e.name:"blob")),e):e instanceof FormData||e instanceof URLSearchParams?e:Ss(e)?(t.set("content-type","text/event-stream"),IP(e,n)):(t.set("content-type","application/json"),ud(e))}function YS(e,t={}){return e.forEach((n,r)=>{Array.isArray(t[r])?t[r].push(n):t[r]!==void 0?t[r]=[t[r],n]:t[r]=n}),t}function OP(e,t=new Headers){for(const[n,r]of Object.entries(e))if(Array.isArray(r))for(const a of r)t.append(n,a);else r!==void 0&&t.append(n,r);return t}function LP(e,t={}){const n=OP(e.headers),r=DP(e.body,n,t);return new Request(e.url,{signal:e.signal,method:e.method,headers:n,body:r})}function FP(e,t={}){return{body:nP(()=>RP(e,t)),status:e.status,get headers(){const n=YS(e.headers);return Object.defineProperty(this,"headers",{value:n,writable:!0}),n},set headers(n){Object.defineProperty(this,"headers",{value:n,writable:!0})}}}class ZS{plugins;constructor(t=[]){this.plugins=[...t].sort((n,r)=>(n.order??0)-(r.order??0))}init(t){for(const n of this.plugins)n.init?.(t)}}class MP{constructor(t,n,r={}){this.codec=t,this.sender=n,new ZS(r.plugins).init(r),this.interceptors=ul(r.interceptors),this.clientInterceptors=ul(r.clientInterceptors)}interceptors;clientInterceptors;call(t,n,r){return qi({name:`${qE}.${t.join("/")}`,signal:r.signal},a=>(a?.setAttribute("rpc.system",qE),a?.setAttribute("rpc.method",t.join(".")),Ss(n)&&(n=YE({name:"consume_event_iterator_input",signal:r.signal},n)),ld(this.interceptors,{...r,path:t,input:n},async({path:i,input:s,...o})=>{const u=mu();let c;const p=u?.trace.getActiveSpan()??a;p&&u&&(c=u?.trace.setSpan(u.context.active(),p));const d=await qi({name:"encode_request",context:c},()=>this.codec.encode(i,s,o)),f=await ld(this.clientInterceptors,{...o,input:s,path:i,request:d},({input:b,path:E,request:x,...y})=>qi({name:"send_request",signal:y.signal,context:c},()=>this.sender.call(x,y,E,b))),m=await qi({name:"decode_response",context:c},()=>this.codec.decode(f,o,i,s));return Ss(m)?YE({name:"consume_event_iterator_output",signal:o.signal},m):m})))}}function JE(e){return`/${e.map(encodeURIComponent).join("/")}`}function PP(e){return typeof e.forEach=="function"?YS(e):e}function jP(e){return Object.entries(rb).find(([,t])=>t.status===e)?.[0]??"MALFORMED_ORPC_ERROR_RESPONSE"}function BP(e,t){return{...e,...t}}function UP(e,t){return{...e,...t}}function $P(e,t){return e.path?{...e,path:`${t}${e.path}`}:e}function zP(e,t){return{...e,tags:[...t,...e.tags??[]]}}function HP(e,t){return e?`${e}${t}`:t}function GP(e,t){return e?[...e,...t]:t}function WP(e,t){let n=e;return t.prefix&&(n=$P(n,t.prefix)),t.tags?.length&&(n=zP(n,t.tags)),n}function KS(e,t){if(dd(e))return new ab({...e["~orpc"],errorMap:qS(t.errorMap,e["~orpc"].errorMap),route:WP(e["~orpc"].route,t)});if(typeof e!="object"||e===null)return e;const n={};for(const r in e)n[r]=KS(e[r],t);return n}class Qn extends ab{constructor(t){super(t),this["~orpc"].prefix=t.prefix,this["~orpc"].tags=t.tags}$meta(t){return new Qn({...this["~orpc"],meta:t})}$route(t){return new Qn({...this["~orpc"],route:t})}$input(t){return new Qn({...this["~orpc"],inputSchema:t})}errors(t){return new Qn({...this["~orpc"],errorMap:qS(this["~orpc"].errorMap,t)})}meta(t){return new Qn({...this["~orpc"],meta:BP(this["~orpc"].meta,t)})}route(t){return new Qn({...this["~orpc"],route:UP(this["~orpc"].route,t)})}input(t){return new Qn({...this["~orpc"],inputSchema:t})}output(t){return new Qn({...this["~orpc"],outputSchema:t})}prefix(t){return new Qn({...this["~orpc"],prefix:HP(this["~orpc"].prefix,t)})}tag(...t){return new Qn({...this["~orpc"],tags:GP(this["~orpc"].tags,t)})}router(t){return KS(t,this["~orpc"])}}const Ft=new Qn({errorMap:{},route:{},meta:{}}),VP={defaultMethod:"POST",defaultSuccessStatus:200,defaultSuccessDescription:"OK",defaultInputStructure:"compact",defaultOutputStructure:"compact"};function So(e,t){return t===void 0?VP[e]:t}var ex;function re(e,t,n){function r(o,u){if(o._zod||Object.defineProperty(o,"_zod",{value:{def:u,constr:s,traits:new Set},enumerable:!1}),o._zod.traits.has(e))return;o._zod.traits.add(e),t(o,u);const c=s.prototype,p=Object.keys(c);for(let d=0;d<p.length;d++){const f=p[d];f in o||(o[f]=c[f].bind(o))}}const a=n?.Parent??Object;class i extends a{}Object.defineProperty(i,"name",{value:e});function s(o){var u;const c=n?.Parent?new i:this;r(c,o),(u=c._zod).deferred??(u.deferred=[]);for(const p of c._zod.deferred)p();return c}return Object.defineProperty(s,"init",{value:r}),Object.defineProperty(s,Symbol.hasInstance,{value:o=>n?.Parent&&o instanceof n.Parent?!0:o?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}class Qa extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class XS extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(ex=globalThis).__zod_globalConfig??(ex.__zod_globalConfig={});const ib=globalThis.__zod_globalConfig;function Ir(e){return ib}function QS(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,a])=>t.indexOf(+r)===-1).map(([r,a])=>a)}function pd(e,t){return typeof t=="bigint"?t.toString():t}function gu(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function sb(e){return e==null}function ob(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function qP(e,t){const n=e/t,r=Math.round(n),a=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<a?0:n-r}const tx=Symbol("evaluating");function kt(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==tx)return r===void 0&&(r=tx,r=n()),r},set(a){Object.defineProperty(e,t,{value:a})},configurable:!0})}function Ca(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function na(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function nx(e){return JSON.stringify(e)}function YP(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const JS="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ns(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const ZP=gu(()=>{if(ib.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function ii(e){if(Ns(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Ns(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function ev(e){return ii(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const KP=new Set(["string","number","symbol"]);function si(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ra(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function $e(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function XP(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const QP={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function JP(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const i=na(e._zod.def,{get shape(){const s={};for(const o in t){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(s[o]=n.shape[o])}return Ca(this,"shape",s),s},checks:[]});return ra(e,i)}function ej(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const i=na(e._zod.def,{get shape(){const s={...e._zod.def.shape};for(const o in t){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&delete s[o]}return Ca(this,"shape",s),s},checks:[]});return ra(e,i)}function tj(e,t){if(!ii(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const i=e._zod.def.shape;for(const s in t)if(Object.getOwnPropertyDescriptor(i,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const a=na(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return Ca(this,"shape",i),i}});return ra(e,a)}function nj(e,t){if(!ii(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=na(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return Ca(this,"shape",r),r}});return ra(e,n)}function rj(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=na(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return Ca(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return ra(e,n)}function aj(e,t,n){const a=t._zod.def.checks;if(a&&a.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const s=na(t._zod.def,{get shape(){const o=t._zod.def.shape,u={...o};if(n)for(const c in n){if(!(c in o))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(u[c]=e?new e({type:"optional",innerType:o[c]}):o[c])}else for(const c in o)u[c]=e?new e({type:"optional",innerType:o[c]}):o[c];return Ca(this,"shape",u),u},checks:[]});return ra(t,s)}function ij(e,t,n){const r=na(t._zod.def,{get shape(){const a=t._zod.def.shape,i={...a};if(n)for(const s in n){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(i[s]=new e({type:"nonoptional",innerType:a[s]}))}else for(const s in a)i[s]=new e({type:"nonoptional",innerType:a[s]});return Ca(this,"shape",i),i}});return ra(t,r)}function Ga(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function sj(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function Wa(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function vo(e){return typeof e=="string"?e:e?.message}function Rr(e,t,n){const r=e.message?e.message:vo(e.inst?._zod.def?.error?.(e))??vo(t?.error?.(e))??vo(n.customError?.(e))??vo(n.localeError?.(e))??"Invalid input",{inst:a,continue:i,input:s,...o}=e;return o.path??(o.path=[]),o.message=r,t?.reportInput&&(o.input=s),o}function lb(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function _s(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const tv=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,pd,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},nv=re("$ZodError",tv),rv=re("$ZodError",tv,{Parent:Error});function oj(e,t=n=>n.message){const n={},r=[];for(const a of e.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):r.push(t(a));return{formErrors:r,fieldErrors:n}}function lj(e,t=n=>n.message){const n={_errors:[]},r=(a,i=[])=>{for(const s of a.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(o=>r({issues:o},[...i,...s.path]));else if(s.code==="invalid_key")r({issues:s.issues},[...i,...s.path]);else if(s.code==="invalid_element")r({issues:s.issues},[...i,...s.path]);else{const o=[...i,...s.path];if(o.length===0)n._errors.push(t(s));else{let u=n,c=0;for(;c<o.length;){const p=o[c];c===o.length-1?(u[p]=u[p]||{_errors:[]},u[p]._errors.push(t(s))):u[p]=u[p]||{_errors:[]},u=u[p],c++}}}};return r(e),n}const ub=e=>(t,n,r,a)=>{const i=r?{...r,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw new Qa;if(s.issues.length){const o=new(a?.Err??e)(s.issues.map(u=>Rr(u,i,Ir())));throw JS(o,a?.callee),o}return s.value},cb=e=>async(t,n,r,a)=>{const i=r?{...r,async:!0}:{async:!0};let s=t._zod.run({value:n,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){const o=new(a?.Err??e)(s.issues.map(u=>Rr(u,i,Ir())));throw JS(o,a?.callee),o}return s.value},bu=e=>(t,n,r)=>{const a=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},a);if(i instanceof Promise)throw new Qa;return i.issues.length?{success:!1,error:new(e??nv)(i.issues.map(s=>Rr(s,a,Ir())))}:{success:!0,data:i.value}},uj=bu(rv),Eu=e=>async(t,n,r)=>{const a=r?{...r,async:!0}:{async:!0};let i=t._zod.run({value:n,issues:[]},a);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(s=>Rr(s,a,Ir())))}:{success:!0,data:i.value}},cj=Eu(rv),dj=e=>(t,n,r)=>{const a=r?{...r,direction:"backward"}:{direction:"backward"};return ub(e)(t,n,a)},pj=e=>(t,n,r)=>ub(e)(t,n,r),fj=e=>async(t,n,r)=>{const a=r?{...r,direction:"backward"}:{direction:"backward"};return cb(e)(t,n,a)},mj=e=>async(t,n,r)=>cb(e)(t,n,r),hj=e=>(t,n,r)=>{const a=r?{...r,direction:"backward"}:{direction:"backward"};return bu(e)(t,n,a)},gj=e=>(t,n,r)=>bu(e)(t,n,r),bj=e=>async(t,n,r)=>{const a=r?{...r,direction:"backward"}:{direction:"backward"};return Eu(e)(t,n,a)},Ej=e=>async(t,n,r)=>Eu(e)(t,n,r),xj=/^[cC][0-9a-z]{6,}$/,yj=/^[0-9a-z]+$/,Tj=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Sj=/^[0-9a-vA-V]{20}$/,vj=/^[A-Za-z0-9]{27}$/,wj=/^[a-zA-Z0-9_-]{21}$/,Aj=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Nj=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,rx=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,_j=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Cj="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function kj(){return new RegExp(Cj,"u")}const Ij=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Rj=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Dj=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Oj=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Lj=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,av=/^[A-Za-z0-9_-]*$/,Fj=/^https?$/,Mj=/^\+[1-9]\d{6,14}$/,iv="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Pj=new RegExp(`^${iv}$`);function sv(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function jj(e){return new RegExp(`^${sv(e)}$`)}function Bj(e){const t=sv({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${iv}T(?:${r})$`)}const Uj=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},$j=/^-?\d+$/,ov=/^-?\d+(?:\.\d+)?$/,zj=/^(?:true|false)$/i,Hj=/^[^A-Z]*$/,Gj=/^[^a-z]*$/,Hn=re("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),lv={number:"number",bigint:"bigint",object:"date"},uv=re("$ZodCheckLessThan",(e,t)=>{Hn.init(e,t);const n=lv[typeof t.value];e._zod.onattach.push(r=>{const a=r._zod.bag,i=(t.inclusive?a.maximum:a.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?a.maximum=t.value:a.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),cv=re("$ZodCheckGreaterThan",(e,t)=>{Hn.init(e,t);const n=lv[typeof t.value];e._zod.onattach.push(r=>{const a=r._zod.bag,i=(t.inclusive?a.minimum:a.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?a.minimum=t.value:a.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Wj=re("$ZodCheckMultipleOf",(e,t)=>{Hn.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):qP(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Vj=re("$ZodCheckNumberFormat",(e,t)=>{Hn.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[a,i]=QP[t.format];e._zod.onattach.push(s=>{const o=s._zod.bag;o.format=t.format,o.minimum=a,o.maximum=i,n&&(o.pattern=$j)}),e._zod.check=s=>{const o=s.value;if(n){if(!Number.isInteger(o)){s.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:o,inst:e});return}if(!Number.isSafeInteger(o)){o>0?s.issues.push({input:o,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):s.issues.push({input:o,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}o<a&&s.issues.push({origin:"number",input:o,code:"too_small",minimum:a,inclusive:!0,inst:e,continue:!t.abort}),o>i&&s.issues.push({origin:"number",input:o,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),qj=re("$ZodCheckMaxLength",(e,t)=>{var n;Hn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!sb(a)&&a.length!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<a&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const a=r.value;if(a.length<=t.maximum)return;const s=lb(a);r.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),Yj=re("$ZodCheckMinLength",(e,t)=>{var n;Hn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!sb(a)&&a.length!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>a&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const a=r.value;if(a.length>=t.minimum)return;const s=lb(a);r.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),Zj=re("$ZodCheckLengthEquals",(e,t)=>{var n;Hn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!sb(a)&&a.length!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag;a.minimum=t.length,a.maximum=t.length,a.length=t.length}),e._zod.check=r=>{const a=r.value,i=a.length;if(i===t.length)return;const s=lb(a),o=i>t.length;r.issues.push({origin:s,...o?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),xu=re("$ZodCheckStringFormat",(e,t)=>{var n,r;Hn.init(e,t),e._zod.onattach.push(a=>{const i=a._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:t.format,input:a.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Kj=re("$ZodCheckRegex",(e,t)=>{xu.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Xj=re("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Hj),xu.init(e,t)}),Qj=re("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Gj),xu.init(e,t)}),Jj=re("$ZodCheckIncludes",(e,t)=>{Hn.init(e,t);const n=si(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(a=>{const i=a._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=a=>{a.value.includes(t.includes,t.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:a.value,inst:e,continue:!t.abort})}}),e8=re("$ZodCheckStartsWith",(e,t)=>{Hn.init(e,t);const n=new RegExp(`^${si(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const a=r._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),t8=re("$ZodCheckEndsWith",(e,t)=>{Hn.init(e,t);const n=new RegExp(`.*${si(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const a=r._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),n8=re("$ZodCheckOverwrite",(e,t)=>{Hn.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class r8{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
|
|
106
|
-
`).filter(s=>s),a=Math.min(...r.map(s=>s.length-s.trimStart().length)),i=r.map(s=>s.slice(a)).map(s=>" ".repeat(this.indent*2)+s);for(const s of i)this.content.push(s)}compile(){const t=Function,n=this?.args,a=[...(this?.content??[""]).map(i=>` ${i}`)];return new t(...n,a.join(`
|
|
107
|
-
`))}}const a8={major:4,minor:4,patch:3},qt=re("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=a8;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const a of r)for(const i of a._zod.onattach)i(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const a=(s,o,u)=>{let c=Ga(s),p;for(const d of o){if(d._zod.def.when){if(sj(s)||!d._zod.def.when(s))continue}else if(c)continue;const f=s.issues.length,m=d._zod.check(s);if(m instanceof Promise&&u?.async===!1)throw new Qa;if(p||m instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await m,s.issues.length!==f&&(c||(c=Ga(s,f)))});else{if(s.issues.length===f)continue;c||(c=Ga(s,f))}}return p?p.then(()=>s):s},i=(s,o,u)=>{if(Ga(s))return s.aborted=!0,s;const c=a(o,r,u);if(c instanceof Promise){if(u.async===!1)throw new Qa;return c.then(p=>e._zod.parse(p,u))}return e._zod.parse(c,u)};e._zod.run=(s,o)=>{if(o.skipChecks)return e._zod.parse(s,o);if(o.direction==="backward"){const c=e._zod.parse({value:s.value,issues:[]},{...o,skipChecks:!0});return c instanceof Promise?c.then(p=>i(p,s,o)):i(c,s,o)}const u=e._zod.parse(s,o);if(u instanceof Promise){if(o.async===!1)throw new Qa;return u.then(c=>a(c,r,o))}return a(u,r,o)}}kt(e,"~standard",()=>({validate:a=>{try{const i=uj(e,a);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return cj(e,a).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),db=re("$ZodString",(e,t)=>{qt.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Uj(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Gt=re("$ZodStringFormat",(e,t)=>{xu.init(e,t),db.init(e,t)}),i8=re("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Nj),Gt.init(e,t)}),s8=re("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=rx(r))}else t.pattern??(t.pattern=rx());Gt.init(e,t)}),o8=re("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=_j),Gt.init(e,t)}),l8=re("$ZodURL",(e,t)=>{Gt.init(e,t),e._zod.check=n=>{try{const r=n.value.trim();if(!t.normalize&&t.protocol?.source===Fj.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}const a=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(a.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=a.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),u8=re("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=kj()),Gt.init(e,t)}),c8=re("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=wj),Gt.init(e,t)}),d8=re("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=xj),Gt.init(e,t)}),p8=re("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=yj),Gt.init(e,t)}),f8=re("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Tj),Gt.init(e,t)}),m8=re("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Sj),Gt.init(e,t)}),h8=re("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=vj),Gt.init(e,t)}),g8=re("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Bj(t)),Gt.init(e,t)}),b8=re("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Pj),Gt.init(e,t)}),E8=re("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=jj(t)),Gt.init(e,t)}),x8=re("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Aj),Gt.init(e,t)}),y8=re("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Ij),Gt.init(e,t),e._zod.bag.format="ipv4"}),T8=re("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Rj),Gt.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),S8=re("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Dj),Gt.init(e,t)}),v8=re("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Oj),Gt.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[a,i]=r;if(!i)throw new Error;const s=Number(i);if(`${s}`!==i)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${a}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function dv(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const w8=re("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Lj),Gt.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{dv(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function A8(e){if(!av.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return dv(n)}const N8=re("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=av),Gt.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{A8(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),_8=re("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Mj),Gt.init(e,t)});function C8(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const a=JSON.parse(atob(r));return!("typ"in a&&a?.typ!=="JWT"||!a.alg||t&&(!("alg"in a)||a.alg!==t))}catch{return!1}}const k8=re("$ZodJWT",(e,t)=>{Gt.init(e,t),e._zod.check=n=>{C8(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),pv=re("$ZodNumber",(e,t)=>{qt.init(e,t),e._zod.pattern=e._zod.bag.pattern??ov,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const a=n.value;if(typeof a=="number"&&!Number.isNaN(a)&&Number.isFinite(a))return n;const i=typeof a=="number"?Number.isNaN(a)?"NaN":Number.isFinite(a)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:a,inst:e,...i?{received:i}:{}}),n}}),I8=re("$ZodNumberFormat",(e,t)=>{Vj.init(e,t),pv.init(e,t)}),R8=re("$ZodBoolean",(e,t)=>{qt.init(e,t),e._zod.pattern=zj,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const a=n.value;return typeof a=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:a,inst:e}),n}}),D8=re("$ZodUnknown",(e,t)=>{qt.init(e,t),e._zod.parse=n=>n}),O8=re("$ZodNever",(e,t)=>{qt.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function ax(e,t,n){e.issues.length&&t.issues.push(...Wa(n,e.issues)),t.value[n]=e.value}const L8=re("$ZodArray",(e,t)=>{qt.init(e,t),e._zod.parse=(n,r)=>{const a=n.value;if(!Array.isArray(a))return n.issues.push({expected:"array",code:"invalid_type",input:a,inst:e}),n;n.value=Array(a.length);const i=[];for(let s=0;s<a.length;s++){const o=a[s],u=t.element._zod.run({value:o,issues:[]},r);u instanceof Promise?i.push(u.then(c=>ax(c,n,s))):ax(u,n,s)}return i.length?Promise.all(i).then(()=>n):n}});function dl(e,t,n,r,a,i){const s=n in r;if(e.issues.length){if(a&&i&&!s)return;t.issues.push(...Wa(n,e.issues))}if(!s&&!a){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?s&&(t.value[n]=void 0):t.value[n]=e.value}function fv(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=XP(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function mv(e,t,n,r,a,i){const s=[],o=a.keySet,u=a.catchall._zod,c=u.def.type,p=u.optin==="optional",d=u.optout==="optional";for(const f in t){if(f==="__proto__"||o.has(f))continue;if(c==="never"){s.push(f);continue}const m=u.run({value:t[f],issues:[]},r);m instanceof Promise?e.push(m.then(b=>dl(b,n,f,t,p,d))):dl(m,n,f,t,p,d)}return s.length&&n.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}const F8=re("$ZodObject",(e,t)=>{if(qt.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const o=t.shape;Object.defineProperty(t,"shape",{get:()=>{const u={...o};return Object.defineProperty(t,"shape",{value:u}),u}})}const r=gu(()=>fv(t));kt(e._zod,"propValues",()=>{const o=t.shape,u={};for(const c in o){const p=o[c]._zod;if(p.values){u[c]??(u[c]=new Set);for(const d of p.values)u[c].add(d)}}return u});const a=Ns,i=t.catchall;let s;e._zod.parse=(o,u)=>{s??(s=r.value);const c=o.value;if(!a(c))return o.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),o;o.value={};const p=[],d=s.shape;for(const f of s.keys){const m=d[f],b=m._zod.optin==="optional",E=m._zod.optout==="optional",x=m._zod.run({value:c[f],issues:[]},u);x instanceof Promise?p.push(x.then(y=>dl(y,o,f,c,b,E))):dl(x,o,f,c,b,E)}return i?mv(p,c,o,u,r.value,e):p.length?Promise.all(p).then(()=>o):o}}),M8=re("$ZodObjectJIT",(e,t)=>{F8.init(e,t);const n=e._zod.parse,r=gu(()=>fv(t)),a=f=>{const m=new r8(["shape","payload","ctx"]),b=r.value,E=v=>{const w=nx(v);return`shape[${w}]._zod.run({ value: input[${w}], issues: [] }, ctx)`};m.write("const input = payload.value;");const x=Object.create(null);let y=0;for(const v of b.keys)x[v]=`key_${y++}`;m.write("const newResult = {};");for(const v of b.keys){const w=x[v],R=nx(v),N=f[v],T=N?._zod?.optin==="optional",_=N?._zod?.optout==="optional";m.write(`const ${w} = ${E(v)};`),T&&_?m.write(`
|
|
108
|
-
if (${w}.issues.length) {
|
|
109
|
-
if (${R} in input) {
|
|
110
|
-
payload.issues = payload.issues.concat(${w}.issues.map(iss => ({
|
|
111
|
-
...iss,
|
|
112
|
-
path: iss.path ? [${R}, ...iss.path] : [${R}]
|
|
113
|
-
})));
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
if (${w}.value === undefined) {
|
|
118
|
-
if (${R} in input) {
|
|
119
|
-
newResult[${R}] = undefined;
|
|
120
|
-
}
|
|
121
|
-
} else {
|
|
122
|
-
newResult[${R}] = ${w}.value;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
`):T?m.write(`
|
|
126
|
-
if (${w}.issues.length) {
|
|
127
|
-
payload.issues = payload.issues.concat(${w}.issues.map(iss => ({
|
|
128
|
-
...iss,
|
|
129
|
-
path: iss.path ? [${R}, ...iss.path] : [${R}]
|
|
130
|
-
})));
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
if (${w}.value === undefined) {
|
|
134
|
-
if (${R} in input) {
|
|
135
|
-
newResult[${R}] = undefined;
|
|
136
|
-
}
|
|
137
|
-
} else {
|
|
138
|
-
newResult[${R}] = ${w}.value;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
`):m.write(`
|
|
142
|
-
const ${w}_present = ${R} in input;
|
|
143
|
-
if (${w}.issues.length) {
|
|
144
|
-
payload.issues = payload.issues.concat(${w}.issues.map(iss => ({
|
|
145
|
-
...iss,
|
|
146
|
-
path: iss.path ? [${R}, ...iss.path] : [${R}]
|
|
147
|
-
})));
|
|
148
|
-
}
|
|
149
|
-
if (!${w}_present && !${w}.issues.length) {
|
|
150
|
-
payload.issues.push({
|
|
151
|
-
code: "invalid_type",
|
|
152
|
-
expected: "nonoptional",
|
|
153
|
-
input: undefined,
|
|
154
|
-
path: [${R}]
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
if (${w}_present) {
|
|
159
|
-
if (${w}.value === undefined) {
|
|
160
|
-
newResult[${R}] = undefined;
|
|
161
|
-
} else {
|
|
162
|
-
newResult[${R}] = ${w}.value;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
`)}m.write("payload.value = newResult;"),m.write("return payload;");const S=m.compile();return(v,w)=>S(f,v,w)};let i;const s=Ns,o=!ib.jitless,c=o&&ZP.value,p=t.catchall;let d;e._zod.parse=(f,m)=>{d??(d=r.value);const b=f.value;return s(b)?o&&c&&m?.async===!1&&m.jitless!==!0?(i||(i=a(t.shape)),f=i(f,m),p?mv([],b,f,m,d,e):f):n(f,m):(f.issues.push({expected:"object",code:"invalid_type",input:b,inst:e}),f)}});function ix(e,t,n,r){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const a=e.filter(i=>!Ga(i));return a.length===1?(t.value=a[0].value,a[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(s=>Rr(s,r,Ir())))}),t)}const hv=re("$ZodUnion",(e,t)=>{qt.init(e,t),kt(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),kt(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),kt(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),kt(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){const r=t.options.map(a=>a._zod.pattern);return new RegExp(`^(${r.map(a=>ob(a.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,a)=>{if(n)return n(r,a);let i=!1;const s=[];for(const o of t.options){const u=o._zod.run({value:r.value,issues:[]},a);if(u instanceof Promise)s.push(u),i=!0;else{if(u.issues.length===0)return u;s.push(u)}}return i?Promise.all(s).then(o=>ix(o,r,e,a)):ix(s,r,e,a)}}),P8=re("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,hv.init(e,t);const n=e._zod.parse;kt(e._zod,"propValues",()=>{const a={};for(const i of t.options){const s=i._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(const[o,u]of Object.entries(s)){a[o]||(a[o]=new Set);for(const c of u)a[o].add(c)}}return a});const r=gu(()=>{const a=t.options,i=new Map;for(const s of a){const o=s._zod.propValues?.[t.discriminator];if(!o||o.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(const u of o){if(i.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);i.set(u,s)}}return i});e._zod.parse=(a,i)=>{const s=a.value;if(!Ns(s))return a.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),a;const o=r.value.get(s?.[t.discriminator]);return o?o._zod.run(a,i):t.unionFallback||i.direction==="backward"?n(a,i):(a.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(r.value.keys()),input:s,path:[t.discriminator],inst:e}),a)}}),j8=re("$ZodIntersection",(e,t)=>{qt.init(e,t),e._zod.parse=(n,r)=>{const a=n.value,i=t.left._zod.run({value:a,issues:[]},r),s=t.right._zod.run({value:a,issues:[]},r);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([u,c])=>sx(n,u,c)):sx(n,i,s)}});function fd(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(ii(e)&&ii(t)){const n=Object.keys(t),r=Object.keys(e).filter(i=>n.indexOf(i)!==-1),a={...e,...t};for(const i of r){const s=fd(e[i],t[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};a[i]=s.data}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const a=e[r],i=t[r],s=fd(a,i);if(!s.valid)return{valid:!1,mergeErrorPath:[r,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function sx(e,t,n){const r=new Map;let a;for(const o of t.issues)if(o.code==="unrecognized_keys"){a??(a=o);for(const u of o.keys)r.has(u)||r.set(u,{}),r.get(u).l=!0}else e.issues.push(o);for(const o of n.issues)if(o.code==="unrecognized_keys")for(const u of o.keys)r.has(u)||r.set(u,{}),r.get(u).r=!0;else e.issues.push(o);const i=[...r].filter(([,o])=>o.l&&o.r).map(([o])=>o);if(i.length&&a&&e.issues.push({...a,keys:i}),Ga(e))return e;const s=fd(t.value,n.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}const B8=re("$ZodRecord",(e,t)=>{qt.init(e,t),e._zod.parse=(n,r)=>{const a=n.value;if(!ii(a))return n.issues.push({expected:"record",code:"invalid_type",input:a,inst:e}),n;const i=[],s=t.keyType._zod.values;if(s){n.value={};const o=new Set;for(const c of s)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){o.add(typeof c=="number"?c.toString():c);const p=t.keyType._zod.run({value:c,issues:[]},r);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(p.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:p.issues.map(m=>Rr(m,r,Ir())),input:c,path:[c],inst:e});continue}const d=p.value,f=t.valueType._zod.run({value:a[c],issues:[]},r);f instanceof Promise?i.push(f.then(m=>{m.issues.length&&n.issues.push(...Wa(c,m.issues)),n.value[d]=m.value})):(f.issues.length&&n.issues.push(...Wa(c,f.issues)),n.value[d]=f.value)}let u;for(const c in a)o.has(c)||(u=u??[],u.push(c));u&&u.length>0&&n.issues.push({code:"unrecognized_keys",input:a,inst:e,keys:u})}else{n.value={};for(const o of Reflect.ownKeys(a)){if(o==="__proto__"||!Object.prototype.propertyIsEnumerable.call(a,o))continue;let u=t.keyType._zod.run({value:o,issues:[]},r);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof o=="string"&&ov.test(o)&&u.issues.length){const d=t.keyType._zod.run({value:Number(o),issues:[]},r);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(u=d)}if(u.issues.length){t.mode==="loose"?n.value[o]=a[o]:n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(d=>Rr(d,r,Ir())),input:o,path:[o],inst:e});continue}const p=t.valueType._zod.run({value:a[o],issues:[]},r);p instanceof Promise?i.push(p.then(d=>{d.issues.length&&n.issues.push(...Wa(o,d.issues)),n.value[u.value]=d.value})):(p.issues.length&&n.issues.push(...Wa(o,p.issues)),n.value[u.value]=p.value)}}return i.length?Promise.all(i).then(()=>n):n}}),U8=re("$ZodEnum",(e,t)=>{qt.init(e,t);const n=QS(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(a=>KP.has(typeof a)).map(a=>typeof a=="string"?si(a):a.toString()).join("|")})$`),e._zod.parse=(a,i)=>{const s=a.value;return r.has(s)||a.issues.push({code:"invalid_value",values:n,input:s,inst:e}),a}}),$8=re("$ZodLiteral",(e,t)=>{if(qt.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?si(r):r?si(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,a)=>{const i=r.value;return n.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}}),z8=re("$ZodTransform",(e,t)=>{qt.init(e,t),e._zod.optin="optional",e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new XS(e.constructor.name);const a=t.transform(n.value,n);if(r.async)return(a instanceof Promise?a:Promise.resolve(a)).then(s=>(n.value=s,n.fallback=!0,n));if(a instanceof Promise)throw new Qa;return n.value=a,n.fallback=!0,n}});function ox(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const gv=re("$ZodOptional",(e,t)=>{qt.init(e,t),e._zod.optin="optional",e._zod.optout="optional",kt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),kt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${ob(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const a=n.value,i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(s=>ox(s,a)):ox(i,a)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),H8=re("$ZodExactOptional",(e,t)=>{gv.init(e,t),kt(e._zod,"values",()=>t.innerType._zod.values),kt(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),G8=re("$ZodNullable",(e,t)=>{qt.init(e,t),kt(e._zod,"optin",()=>t.innerType._zod.optin),kt(e._zod,"optout",()=>t.innerType._zod.optout),kt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${ob(n.source)}|null)$`):void 0}),kt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),W8=re("$ZodDefault",(e,t)=>{qt.init(e,t),e._zod.optin="optional",kt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(i=>lx(i,t)):lx(a,t)}});function lx(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const V8=re("$ZodPrefault",(e,t)=>{qt.init(e,t),e._zod.optin="optional",kt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),q8=re("$ZodNonOptional",(e,t)=>{qt.init(e,t),kt(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(i=>ux(i,e)):ux(a,e)}});function ux(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Y8=re("$ZodCatch",(e,t)=>{qt.init(e,t),e._zod.optin="optional",kt(e._zod,"optout",()=>t.innerType._zod.optout),kt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(i=>(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(s=>Rr(s,r,Ir()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(i=>Rr(i,r,Ir()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),bv=re("$ZodPipe",(e,t)=>{qt.init(e,t),kt(e._zod,"values",()=>t.in._zod.values),kt(e._zod,"optin",()=>t.in._zod.optin),kt(e._zod,"optout",()=>t.out._zod.optout),kt(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const i=t.out._zod.run(n,r);return i instanceof Promise?i.then(s=>wo(s,t.in,r)):wo(i,t.in,r)}const a=t.in._zod.run(n,r);return a instanceof Promise?a.then(i=>wo(i,t.out,r)):wo(a,t.out,r)}});function wo(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}const Z8=re("$ZodPreprocess",(e,t)=>{bv.init(e,t)}),K8=re("$ZodReadonly",(e,t)=>{qt.init(e,t),kt(e._zod,"propValues",()=>t.innerType._zod.propValues),kt(e._zod,"values",()=>t.innerType._zod.values),kt(e._zod,"optin",()=>t.innerType?._zod?.optin),kt(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(cx):cx(a)}});function cx(e){return e.value=Object.freeze(e.value),e}const X8=re("$ZodCustom",(e,t)=>{Hn.init(e,t),qt.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,a=t.fn(r);if(a instanceof Promise)return a.then(i=>dx(i,n,r,e));dx(a,n,r,e)}});function dx(e,t,n,r){if(!e){const a={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(a.params=r._zod.def.params),t.issues.push(_s(a))}}var px;class Q8{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const a={...r,...this._map.get(t)};return Object.keys(a).length?a:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function J8(){return new Q8}(px=globalThis).__zod_globalRegistry??(px.__zod_globalRegistry=J8());const Yi=globalThis.__zod_globalRegistry;function eB(e,t){return new e({type:"string",...$e(t)})}function tB(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...$e(t)})}function fx(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...$e(t)})}function nB(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...$e(t)})}function rB(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...$e(t)})}function aB(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...$e(t)})}function iB(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...$e(t)})}function sB(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...$e(t)})}function oB(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...$e(t)})}function lB(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...$e(t)})}function uB(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...$e(t)})}function cB(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...$e(t)})}function dB(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...$e(t)})}function pB(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...$e(t)})}function fB(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...$e(t)})}function mB(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...$e(t)})}function hB(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...$e(t)})}function gB(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...$e(t)})}function bB(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...$e(t)})}function EB(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...$e(t)})}function xB(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...$e(t)})}function yB(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...$e(t)})}function TB(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...$e(t)})}function SB(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...$e(t)})}function vB(e,t){return new e({type:"string",format:"date",check:"string_format",...$e(t)})}function wB(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...$e(t)})}function AB(e,t){return new e({type:"string",format:"duration",check:"string_format",...$e(t)})}function NB(e,t){return new e({type:"number",checks:[],...$e(t)})}function _B(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...$e(t)})}function CB(e,t){return new e({type:"boolean",...$e(t)})}function kB(e){return new e({type:"unknown"})}function IB(e,t){return new e({type:"never",...$e(t)})}function mx(e,t){return new uv({check:"less_than",...$e(t),value:e,inclusive:!1})}function pc(e,t){return new uv({check:"less_than",...$e(t),value:e,inclusive:!0})}function hx(e,t){return new cv({check:"greater_than",...$e(t),value:e,inclusive:!1})}function fc(e,t){return new cv({check:"greater_than",...$e(t),value:e,inclusive:!0})}function gx(e,t){return new Wj({check:"multiple_of",...$e(t),value:e})}function Ev(e,t){return new qj({check:"max_length",...$e(t),maximum:e})}function pl(e,t){return new Yj({check:"min_length",...$e(t),minimum:e})}function xv(e,t){return new Zj({check:"length_equals",...$e(t),length:e})}function RB(e,t){return new Kj({check:"string_format",format:"regex",...$e(t),pattern:e})}function DB(e){return new Xj({check:"string_format",format:"lowercase",...$e(e)})}function OB(e){return new Qj({check:"string_format",format:"uppercase",...$e(e)})}function LB(e,t){return new Jj({check:"string_format",format:"includes",...$e(t),includes:e})}function FB(e,t){return new e8({check:"string_format",format:"starts_with",...$e(t),prefix:e})}function MB(e,t){return new t8({check:"string_format",format:"ends_with",...$e(t),suffix:e})}function Si(e){return new n8({check:"overwrite",tx:e})}function PB(e){return Si(t=>t.normalize(e))}function jB(){return Si(e=>e.trim())}function BB(){return Si(e=>e.toLowerCase())}function UB(){return Si(e=>e.toUpperCase())}function $B(){return Si(e=>YP(e))}function zB(e,t,n){return new e({type:"array",element:t,...$e(n)})}function HB(e,t,n){return new e({type:"custom",check:"custom",fn:t,...$e(n)})}function GB(e,t){const n=WB(r=>(r.addIssue=a=>{if(typeof a=="string")r.issues.push(_s(a,r.value,n._zod.def));else{const i=a;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),r.issues.push(_s(i))}},e(r.value,r)),t);return n}function WB(e,t){const n=new Hn({check:"custom",...$e(t)});return n._zod.check=e,n}function yv(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Yi,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function rn(e,t,n={path:[],schemaPath:[]}){var r;const a=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;const s={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,s);const o=e._zod.toJSONSchema?.();if(o)s.schema=o;else{const p={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,p);else{const f=s.schema,m=t.processors[a.type];if(!m)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);m(e,t,f,p)}const d=e._zod.parent;d&&(s.ref||(s.ref=d),rn(d,t,p),t.seen.get(d).isParent=!0)}const u=t.metadataRegistry.get(e);return u&&Object.assign(s.schema,u),t.io==="input"&&On(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&"_prefault"in s.schema&&((r=s.schema).default??(r.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function Tv(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const s of e.seen.entries()){const o=e.metadataRegistry.get(s[0])?.id;if(o){const u=r.get(o);if(u&&u!==s[0])throw new Error(`Duplicate schema id "${o}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(o,s[0])}}const a=s=>{const o=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const d=e.external.registry.get(s[0])?.id,f=e.external.uri??(b=>b);if(d)return{ref:f(d)};const m=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=m,{defId:m,ref:`${f("__shared")}#/${o}/${m}`}}if(s[1]===n)return{ref:"#"};const c=`#/${o}/`,p=s[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:c+p}},i=s=>{if(s[1].schema.$ref)return;const o=s[1],{ref:u,defId:c}=a(s);o.def={...o.schema},c&&(o.defId=c);const p=o.schema;for(const d in p)delete p[d];p.$ref=u};if(e.cycles==="throw")for(const s of e.seen.entries()){const o=s[1];if(o.cycle)throw new Error(`Cycle detected: #/${o.cycle?.join("/")}/<root>
|
|
167
|
-
|
|
168
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const s of e.seen.entries()){const o=s[1];if(t===s[0]){i(s);continue}if(e.external){const c=e.external.registry.get(s[0])?.id;if(t!==s[0]&&c){i(s);continue}}if(e.metadataRegistry.get(s[0])?.id){i(s);continue}if(o.cycle){i(s);continue}if(o.count>1&&e.reused==="ref"){i(s);continue}}}function Sv(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=o=>{const u=e.seen.get(o);if(u.ref===null)return;const c=u.def??u.schema,p={...c},d=u.ref;if(u.ref=null,d){r(d);const m=e.seen.get(d),b=m.schema;if(b.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(b)):Object.assign(c,b),Object.assign(c,p),o._zod.parent===d)for(const x in c)x==="$ref"||x==="allOf"||x in p||delete c[x];if(b.$ref&&m.def)for(const x in c)x==="$ref"||x==="allOf"||x in m.def&&JSON.stringify(c[x])===JSON.stringify(m.def[x])&&delete c[x]}const f=o._zod.parent;if(f&&f!==d){r(f);const m=e.seen.get(f);if(m?.schema.$ref&&(c.$ref=m.schema.$ref,m.def))for(const b in c)b==="$ref"||b==="allOf"||b in m.def&&JSON.stringify(c[b])===JSON.stringify(m.def[b])&&delete c[b]}e.override({zodSchema:o,jsonSchema:c,path:u.path??[]})};for(const o of[...e.seen.entries()].reverse())r(o[0]);const a={};if(e.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const o=e.external.registry.get(t)?.id;if(!o)throw new Error("Schema is missing an `id` property");a.$id=e.external.uri(o)}Object.assign(a,n.def??n.schema);const i=e.metadataRegistry.get(t)?.id;i!==void 0&&a.id===i&&delete a.id;const s=e.external?.defs??{};for(const o of e.seen.entries()){const u=o[1];u.def&&u.defId&&(u.def.id===u.defId&&delete u.def.id,s[u.defId]=u.def)}e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?a.$defs=s:a.definitions=s);try{const o=JSON.parse(JSON.stringify(a));return Object.defineProperty(o,"~standard",{value:{...t["~standard"],jsonSchema:{input:fl(t,"input",e.processors),output:fl(t,"output",e.processors)}},enumerable:!1,writable:!1}),o}catch{throw new Error("Error converting schema to JSON.")}}function On(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return On(r.element,n);if(r.type==="set")return On(r.valueType,n);if(r.type==="lazy")return On(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return On(r.innerType,n);if(r.type==="intersection")return On(r.left,n)||On(r.right,n);if(r.type==="record"||r.type==="map")return On(r.keyType,n)||On(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:On(r.in,n)||On(r.out,n);if(r.type==="object"){for(const a in r.shape)if(On(r.shape[a],n))return!0;return!1}if(r.type==="union"){for(const a of r.options)if(On(a,n))return!0;return!1}if(r.type==="tuple"){for(const a of r.items)if(On(a,n))return!0;return!!(r.rest&&On(r.rest,n))}return!1}const VB=(e,t={})=>n=>{const r=yv({...n,processors:t});return rn(e,r),Tv(r,e),Sv(r,e)},fl=(e,t,n={})=>r=>{const{libraryOptions:a,target:i}=r??{},s=yv({...a??{},target:i,io:t,processors:n});return rn(e,s),Tv(s,e),Sv(s,e)},qB={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},YB=(e,t,n,r)=>{const a=n;a.type="string";const{minimum:i,maximum:s,format:o,patterns:u,contentEncoding:c}=e._zod.bag;if(typeof i=="number"&&(a.minLength=i),typeof s=="number"&&(a.maxLength=s),o&&(a.format=qB[o]??o,a.format===""&&delete a.format,o==="time"&&delete a.format),c&&(a.contentEncoding=c),u&&u.size>0){const p=[...u];p.length===1?a.pattern=p[0].source:p.length>1&&(a.allOf=[...p.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},ZB=(e,t,n,r)=>{const a=n,{minimum:i,maximum:s,format:o,multipleOf:u,exclusiveMaximum:c,exclusiveMinimum:p}=e._zod.bag;typeof o=="string"&&o.includes("int")?a.type="integer":a.type="number";const d=typeof p=="number"&&p>=(i??Number.NEGATIVE_INFINITY),f=typeof c=="number"&&c<=(s??Number.POSITIVE_INFINITY),m=t.target==="draft-04"||t.target==="openapi-3.0";d?m?(a.minimum=p,a.exclusiveMinimum=!0):a.exclusiveMinimum=p:typeof i=="number"&&(a.minimum=i),f?m?(a.maximum=c,a.exclusiveMaximum=!0):a.exclusiveMaximum=c:typeof s=="number"&&(a.maximum=s),typeof u=="number"&&(a.multipleOf=u)},KB=(e,t,n,r)=>{n.type="boolean"},XB=(e,t,n,r)=>{n.not={}},QB=(e,t,n,r)=>{},JB=(e,t,n,r)=>{const a=e._zod.def,i=QS(a.entries);i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),n.enum=i},eU=(e,t,n,r)=>{const a=e._zod.def,i=[];for(const s of a.values)if(s===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(s))}else i.push(s);if(i.length!==0)if(i.length===1){const s=i[0];n.type=s===null?"null":typeof s,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[s]:n.const=s}else i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),i.every(s=>typeof s=="boolean")&&(n.type="boolean"),i.every(s=>s===null)&&(n.type="null"),n.enum=i},tU=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},nU=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},rU=(e,t,n,r)=>{const a=n,i=e._zod.def,{minimum:s,maximum:o}=e._zod.bag;typeof s=="number"&&(a.minItems=s),typeof o=="number"&&(a.maxItems=o),a.type="array",a.items=rn(i.element,t,{...r,path:[...r.path,"items"]})},aU=(e,t,n,r)=>{const a=n,i=e._zod.def;a.type="object",a.properties={};const s=i.shape;for(const c in s)a.properties[c]=rn(s[c],t,{...r,path:[...r.path,"properties",c]});const o=new Set(Object.keys(s)),u=new Set([...o].filter(c=>{const p=i.shape[c]._zod;return t.io==="input"?p.optin===void 0:p.optout===void 0}));u.size>0&&(a.required=Array.from(u)),i.catchall?._zod.def.type==="never"?a.additionalProperties=!1:i.catchall?i.catchall&&(a.additionalProperties=rn(i.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(a.additionalProperties=!1)},iU=(e,t,n,r)=>{const a=e._zod.def,i=a.inclusive===!1,s=a.options.map((o,u)=>rn(o,t,{...r,path:[...r.path,i?"oneOf":"anyOf",u]}));i?n.oneOf=s:n.anyOf=s},sU=(e,t,n,r)=>{const a=e._zod.def,i=rn(a.left,t,{...r,path:[...r.path,"allOf",0]}),s=rn(a.right,t,{...r,path:[...r.path,"allOf",1]}),o=c=>"allOf"in c&&Object.keys(c).length===1,u=[...o(i)?i.allOf:[i],...o(s)?s.allOf:[s]];n.allOf=u},oU=(e,t,n,r)=>{const a=n,i=e._zod.def;a.type="object";const s=i.keyType,u=s._zod.bag?.patterns;if(i.mode==="loose"&&u&&u.size>0){const p=rn(i.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});a.patternProperties={};for(const d of u)a.patternProperties[d.source]=p}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(a.propertyNames=rn(i.keyType,t,{...r,path:[...r.path,"propertyNames"]})),a.additionalProperties=rn(i.valueType,t,{...r,path:[...r.path,"additionalProperties"]});const c=s._zod.values;if(c){const p=[...c].filter(d=>typeof d=="string"||typeof d=="number");p.length>0&&(a.required=p)}},lU=(e,t,n,r)=>{const a=e._zod.def,i=rn(a.innerType,t,r),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=a.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},uU=(e,t,n,r)=>{const a=e._zod.def;rn(a.innerType,t,r);const i=t.seen.get(e);i.ref=a.innerType},cU=(e,t,n,r)=>{const a=e._zod.def;rn(a.innerType,t,r);const i=t.seen.get(e);i.ref=a.innerType,n.default=JSON.parse(JSON.stringify(a.defaultValue))},dU=(e,t,n,r)=>{const a=e._zod.def;rn(a.innerType,t,r);const i=t.seen.get(e);i.ref=a.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},pU=(e,t,n,r)=>{const a=e._zod.def;rn(a.innerType,t,r);const i=t.seen.get(e);i.ref=a.innerType;let s;try{s=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=s},fU=(e,t,n,r)=>{const a=e._zod.def,i=a.in._zod.traits.has("$ZodTransform"),s=t.io==="input"?i?a.out:a.in:a.out;rn(s,t,r);const o=t.seen.get(e);o.ref=s},mU=(e,t,n,r)=>{const a=e._zod.def;rn(a.innerType,t,r);const i=t.seen.get(e);i.ref=a.innerType,n.readOnly=!0},vv=(e,t,n,r)=>{const a=e._zod.def;rn(a.innerType,t,r);const i=t.seen.get(e);i.ref=a.innerType},hU=re("ZodISODateTime",(e,t)=>{g8.init(e,t),Zt.init(e,t)});function gU(e){return SB(hU,e)}const bU=re("ZodISODate",(e,t)=>{b8.init(e,t),Zt.init(e,t)});function EU(e){return vB(bU,e)}const xU=re("ZodISOTime",(e,t)=>{E8.init(e,t),Zt.init(e,t)});function yU(e){return wB(xU,e)}const TU=re("ZodISODuration",(e,t)=>{x8.init(e,t),Zt.init(e,t)});function SU(e){return AB(TU,e)}const vU=(e,t)=>{nv.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>lj(e,n)},flatten:{value:n=>oj(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,pd,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,pd,2)}},isEmpty:{get(){return e.issues.length===0}}})},ir=re("ZodError",vU,{Parent:Error}),wU=ub(ir),AU=cb(ir),NU=bu(ir),_U=Eu(ir),CU=dj(ir),kU=pj(ir),IU=fj(ir),RU=mj(ir),DU=hj(ir),OU=gj(ir),LU=bj(ir),FU=Ej(ir),bx=new WeakMap;function Qs(e,t,n){const r=Object.getPrototypeOf(e);let a=bx.get(r);if(a||(a=new Set,bx.set(r,a)),!a.has(t)){a.add(t);for(const i in n){const s=n[i];Object.defineProperty(r,i,{configurable:!0,enumerable:!1,get(){const o=s.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:o}),o},set(o){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:o})}})}}}const Yt=re("ZodType",(e,t)=>(qt.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:fl(e,"input"),output:fl(e,"output")}}),e.toJSONSchema=VB(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,r)=>wU(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>NU(e,n,r),e.parseAsync=async(n,r)=>AU(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>_U(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>CU(e,n,r),e.decode=(n,r)=>kU(e,n,r),e.encodeAsync=async(n,r)=>IU(e,n,r),e.decodeAsync=async(n,r)=>RU(e,n,r),e.safeEncode=(n,r)=>DU(e,n,r),e.safeDecode=(n,r)=>OU(e,n,r),e.safeEncodeAsync=async(n,r)=>LU(e,n,r),e.safeDecodeAsync=async(n,r)=>FU(e,n,r),Qs(e,"ZodType",{check(...n){const r=this.def;return this.clone(na(r,{checks:[...r.checks??[],...n.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,r){return ra(this,n,r)},brand(){return this},register(n,r){return n.add(this,r),this},refine(n,r){return this.check(C7(n,r))},superRefine(n,r){return this.check(k7(n,r))},overwrite(n){return this.check(Si(n))},optional(){return Tx(this)},exactOptional(){return h7(this)},nullable(){return Sx(this)},nullish(){return Tx(Sx(this))},nonoptional(n){return T7(this,n)},array(){return Et(this)},or(n){return o7([this,n])},and(n){return d7(this,n)},transform(n){return vx(this,_v(n))},default(n){return E7(this,n)},prefault(n){return y7(this,n)},catch(n){return v7(this,n)},pipe(n){return vx(this,n)},readonly(){return N7(this)},describe(n){const r=this.clone();return Yi.add(r,{description:n}),r},meta(...n){if(n.length===0)return Yi.get(this);const r=this.clone();return Yi.add(r,n[0]),r},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return Yi.get(e)?.description},configurable:!0}),e)),wv=re("_ZodString",(e,t)=>{db.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(r,a,i)=>YB(e,r,a);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Qs(e,"_ZodString",{regex(...r){return this.check(RB(...r))},includes(...r){return this.check(LB(...r))},startsWith(...r){return this.check(FB(...r))},endsWith(...r){return this.check(MB(...r))},min(...r){return this.check(pl(...r))},max(...r){return this.check(Ev(...r))},length(...r){return this.check(xv(...r))},nonempty(...r){return this.check(pl(1,...r))},lowercase(r){return this.check(DB(r))},uppercase(r){return this.check(OB(r))},trim(){return this.check(jB())},normalize(...r){return this.check(PB(...r))},toLowerCase(){return this.check(BB())},toUpperCase(){return this.check(UB())},slugify(){return this.check($B())}})}),MU=re("ZodString",(e,t)=>{db.init(e,t),wv.init(e,t),e.email=n=>e.check(tB(PU,n)),e.url=n=>e.check(sB(jU,n)),e.jwt=n=>e.check(TB(JU,n)),e.emoji=n=>e.check(oB(BU,n)),e.guid=n=>e.check(fx(Ex,n)),e.uuid=n=>e.check(nB(Ao,n)),e.uuidv4=n=>e.check(rB(Ao,n)),e.uuidv6=n=>e.check(aB(Ao,n)),e.uuidv7=n=>e.check(iB(Ao,n)),e.nanoid=n=>e.check(lB(UU,n)),e.guid=n=>e.check(fx(Ex,n)),e.cuid=n=>e.check(uB($U,n)),e.cuid2=n=>e.check(cB(zU,n)),e.ulid=n=>e.check(dB(HU,n)),e.base64=n=>e.check(EB(KU,n)),e.base64url=n=>e.check(xB(XU,n)),e.xid=n=>e.check(pB(GU,n)),e.ksuid=n=>e.check(fB(WU,n)),e.ipv4=n=>e.check(mB(VU,n)),e.ipv6=n=>e.check(hB(qU,n)),e.cidrv4=n=>e.check(gB(YU,n)),e.cidrv6=n=>e.check(bB(ZU,n)),e.e164=n=>e.check(yB(QU,n)),e.datetime=n=>e.check(gU(n)),e.date=n=>e.check(EU(n)),e.time=n=>e.check(yU(n)),e.duration=n=>e.check(SU(n))});function V(e){return eB(MU,e)}const Zt=re("ZodStringFormat",(e,t)=>{Gt.init(e,t),wv.init(e,t)}),PU=re("ZodEmail",(e,t)=>{o8.init(e,t),Zt.init(e,t)}),Ex=re("ZodGUID",(e,t)=>{i8.init(e,t),Zt.init(e,t)}),Ao=re("ZodUUID",(e,t)=>{s8.init(e,t),Zt.init(e,t)}),jU=re("ZodURL",(e,t)=>{l8.init(e,t),Zt.init(e,t)}),BU=re("ZodEmoji",(e,t)=>{u8.init(e,t),Zt.init(e,t)}),UU=re("ZodNanoID",(e,t)=>{c8.init(e,t),Zt.init(e,t)}),$U=re("ZodCUID",(e,t)=>{d8.init(e,t),Zt.init(e,t)}),zU=re("ZodCUID2",(e,t)=>{p8.init(e,t),Zt.init(e,t)}),HU=re("ZodULID",(e,t)=>{f8.init(e,t),Zt.init(e,t)}),GU=re("ZodXID",(e,t)=>{m8.init(e,t),Zt.init(e,t)}),WU=re("ZodKSUID",(e,t)=>{h8.init(e,t),Zt.init(e,t)}),VU=re("ZodIPv4",(e,t)=>{y8.init(e,t),Zt.init(e,t)}),qU=re("ZodIPv6",(e,t)=>{T8.init(e,t),Zt.init(e,t)}),YU=re("ZodCIDRv4",(e,t)=>{S8.init(e,t),Zt.init(e,t)}),ZU=re("ZodCIDRv6",(e,t)=>{v8.init(e,t),Zt.init(e,t)}),KU=re("ZodBase64",(e,t)=>{w8.init(e,t),Zt.init(e,t)}),XU=re("ZodBase64URL",(e,t)=>{N8.init(e,t),Zt.init(e,t)}),QU=re("ZodE164",(e,t)=>{_8.init(e,t),Zt.init(e,t)}),JU=re("ZodJWT",(e,t)=>{k8.init(e,t),Zt.init(e,t)}),Av=re("ZodNumber",(e,t)=>{pv.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(r,a,i)=>ZB(e,r,a),Qs(e,"ZodNumber",{gt(r,a){return this.check(hx(r,a))},gte(r,a){return this.check(fc(r,a))},min(r,a){return this.check(fc(r,a))},lt(r,a){return this.check(mx(r,a))},lte(r,a){return this.check(pc(r,a))},max(r,a){return this.check(pc(r,a))},int(r){return this.check(xx(r))},safe(r){return this.check(xx(r))},positive(r){return this.check(hx(0,r))},nonnegative(r){return this.check(fc(0,r))},negative(r){return this.check(mx(0,r))},nonpositive(r){return this.check(pc(0,r))},multipleOf(r,a){return this.check(gx(r,a))},step(r,a){return this.check(gx(r,a))},finite(){return this}});const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function xe(e){return NB(Av,e)}const e7=re("ZodNumberFormat",(e,t)=>{I8.init(e,t),Av.init(e,t)});function xx(e){return _B(e7,e)}const t7=re("ZodBoolean",(e,t)=>{R8.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>KB(e,n,r)});function Qr(e){return CB(t7,e)}const n7=re("ZodUnknown",(e,t)=>{D8.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>QB()});function oi(){return kB(n7)}const r7=re("ZodNever",(e,t)=>{O8.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>XB(e,n,r)});function a7(e){return IB(r7,e)}const i7=re("ZodArray",(e,t)=>{L8.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>rU(e,n,r,a),e.element=t.element,Qs(e,"ZodArray",{min(n,r){return this.check(pl(n,r))},nonempty(n){return this.check(pl(1,n))},max(n,r){return this.check(Ev(n,r))},length(n,r){return this.check(xv(n,r))},unwrap(){return this.element}})});function Et(e,t){return zB(i7,e,t)}const s7=re("ZodObject",(e,t)=>{M8.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>aU(e,n,r,a),kt(e,"shape",()=>t.shape),Qs(e,"ZodObject",{keyof(){return nt(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:oi()})},loose(){return this.clone({...this._zod.def,catchall:oi()})},strict(){return this.clone({...this._zod.def,catchall:a7()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return tj(this,n)},safeExtend(n){return nj(this,n)},merge(n){return rj(this,n)},pick(n){return JP(this,n)},omit(n){return ej(this,n)},partial(...n){return aj(Cv,this,n[0])},required(...n){return ij(kv,this,n[0])}})});function Ae(e,t){const n={type:"object",shape:e??{},...$e(t)};return new s7(n)}const Nv=re("ZodUnion",(e,t)=>{hv.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>iU(e,n,r,a),e.options=t.options});function o7(e,t){return new Nv({type:"union",options:e,...$e(t)})}const l7=re("ZodDiscriminatedUnion",(e,t)=>{Nv.init(e,t),P8.init(e,t)});function u7(e,t,n){return new l7({type:"union",options:t,discriminator:e,...$e(n)})}const c7=re("ZodIntersection",(e,t)=>{j8.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>sU(e,n,r,a)});function d7(e,t){return new c7({type:"intersection",left:e,right:t})}const yx=re("ZodRecord",(e,t)=>{B8.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>oU(e,n,r,a),e.keyType=t.keyType,e.valueType=t.valueType});function yu(e,t,n){return!t||!t._zod?new yx({type:"record",keyType:V(),valueType:e,...$e(t)}):new yx({type:"record",keyType:e,valueType:t,...$e(n)})}const md=re("ZodEnum",(e,t)=>{U8.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(r,a,i)=>JB(e,r,a),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,a)=>{const i={};for(const s of r)if(n.has(s))i[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new md({...t,checks:[],...$e(a),entries:i})},e.exclude=(r,a)=>{const i={...t.entries};for(const s of r)if(n.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new md({...t,checks:[],...$e(a),entries:i})}});function nt(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new md({type:"enum",entries:n,...$e(t)})}const p7=re("ZodLiteral",(e,t)=>{$8.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>eU(e,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function lr(e,t){return new p7({type:"literal",values:Array.isArray(e)?e:[e],...$e(t)})}const f7=re("ZodTransform",(e,t)=>{z8.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>nU(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new XS(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(_s(i,n.value,t));else{const s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=e),n.issues.push(_s(s))}};const a=t.transform(n.value,n);return a instanceof Promise?a.then(i=>(n.value=i,n.fallback=!0,n)):(n.value=a,n.fallback=!0,n)}});function _v(e){return new f7({type:"transform",transform:e})}const Cv=re("ZodOptional",(e,t)=>{gv.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>vv(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function Tx(e){return new Cv({type:"optional",innerType:e})}const m7=re("ZodExactOptional",(e,t)=>{H8.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>vv(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function h7(e){return new m7({type:"optional",innerType:e})}const g7=re("ZodNullable",(e,t)=>{G8.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>lU(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function Sx(e){return new g7({type:"nullable",innerType:e})}const b7=re("ZodDefault",(e,t)=>{W8.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>cU(e,n,r,a),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function E7(e,t){return new b7({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():ev(t)}})}const x7=re("ZodPrefault",(e,t)=>{V8.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>dU(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function y7(e,t){return new x7({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():ev(t)}})}const kv=re("ZodNonOptional",(e,t)=>{q8.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>uU(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function T7(e,t){return new kv({type:"nonoptional",innerType:e,...$e(t)})}const S7=re("ZodCatch",(e,t)=>{Y8.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>pU(e,n,r,a),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function v7(e,t){return new S7({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Iv=re("ZodPipe",(e,t)=>{bv.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>fU(e,n,r,a),e.in=t.in,e.out=t.out});function vx(e,t){return new Iv({type:"pipe",in:e,out:t})}const w7=re("ZodPreprocess",(e,t)=>{Iv.init(e,t),Z8.init(e,t)}),A7=re("ZodReadonly",(e,t)=>{K8.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>mU(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function N7(e){return new A7({type:"readonly",innerType:e})}const _7=re("ZodCustom",(e,t)=>{X8.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>tU(e,n)});function C7(e,t={}){return HB(_7,e,t)}function k7(e,t){return GB(e,t)}function mc(e,t){return new w7({type:"pipe",in:_v(e),out:t})}const ka=["backlog","todo","wip","testing","blocked","done","cancelled"],vi=["backlog","active","verifying","blocked","done","cancelled"],I7={backlog:"📋",todo:"🔲",wip:"🚧",testing:"🧪",blocked:"🚫",done:"✅",cancelled:"⛔"};function pb(e){try{return I7[Dv(e)]??""}catch{return""}}const Tu=["P0","P1","P2","P3"],R7=["simple","standard","complex","research","refine","plan","unit","review","docs"],Rv=["task","issue","review","meta","brainstorm"],Su=["standard","feature-impl","issue","review","meta","brainstorm"],fb=/^[A-Z][1-9]*$/,D7={completed:"done",complete:"done","in-progress":"wip","in progress":"wip",in_progress:"wip",dropped:"cancelled",cancel:"cancelled",canceled:"cancelled",new:"backlog",pending:"backlog",blocked:"blocked",wip:"wip",testing:"testing",done:"done",cancelled:"cancelled",backlog:"backlog",todo:"todo"};function Dv(e){const t=e.trim().toLowerCase(),n=D7[t];if(n===void 0)throw new Error(`Unknown task status: ${JSON.stringify(e)} (allowed: ${ka.join(", ")})`);return n}const ml=V().min(1).refine(e=>!Number.isNaN(Date.parse(e)),{message:"must be an ISO 8601 timestamp"}),Ov=V().regex(fb,{message:"feature id must match ^[A-Z][1-9]*$ (DD-14)"}).nullable().optional(),Lv=V().regex(/^\d{4}$/,{message:"parent_wbs must be a 4-digit WBS string"}).nullable().optional();Ae({schema_version:lr(1),name:V().min(1),description:V().optional(),status:mc(e=>{if(typeof e=="string")try{return Dv(e)}catch{}return e},nt(ka)),type:nt(Rv).optional().default("task"),template:nt(Su).optional(),profile:nt(R7).optional(),feature_id:Ov,parent_wbs:Lv,priority:nt(Tu).optional(),tags:Et(V()).optional(),dependencies:Et(V()).optional(),ac_numbering:lr("task-local").optional(),ac_altitude:nt(["graduating","task-local"]).optional(),done_forced:mc(e=>typeof e=="string"?e==="true":e,Qr().optional()),done_reason:V().optional(),feature_link_declined:mc(e=>typeof e=="string"?e==="true":e,Qr().optional()),created_at:ml,updated_at:ml});Ae({schema_version:lr(1),id:V().regex(fb,{message:"feature id must match ^[A-Z][1-9]*$ (DD-14)"}),name:V().min(1),status:nt(vi),priority:nt(Tu).optional(),tags:Et(V()).optional(),created_at:ml,updated_at:ml});const O7=Ae({name:V().min(1,"name is required"),background:V().optional(),requirements:V().optional(),design:V().optional(),plan:V().optional(),acceptance_criteria:V().optional(),feature_id:Ov,parent_wbs:Lv,priority:nt(Tu).optional(),tags:Et(V()).optional(),template:nt(Su).optional()}).strict();Et(O7).min(1,"batch must contain at least one task");const L7=["NOT_FOUND","VALIDATION_FAILED","GUARD_DENIED","LOCK_TIMEOUT","CONFLICT","INTERNAL_ERROR"];function Bt(e){return Ae({ok:lr(!0),data:e})}Ae({ok:lr(!1),error:Ae({code:nt(L7),message:V(),details:oi().optional()})});Ae({nextCursor:V().optional(),hasMore:Qr(),limit:xe().int().positive()});const qn=V().regex(fb,{message:"feature id must match ^[A-Z][1-9]*$ (DD-14)"}),F7=Ae({id:qn,name:V().min(1),status:nt(vi),priority:nt(Tu).optional(),parentId:qn.nullable().optional(),wbsCount:xe().int().nonnegative().optional()}),M7=Bt(Et(F7)),P7=Bt(Ae({id:qn,name:V(),status:nt(vi),frontmatter:yu(V(),oi()),content:V(),filePath:V()})),j7=Ae({id:qn}),B7=Ae({name:V().min(1),parentId:qn.optional()}),U7=Bt(Ae({id:V(),filePath:V()})),$7=Ae({id:qn,toStatus:nt(vi),actor:V().optional()}),z7=Bt(Ae({id:V(),status:nt(vi)})),H7=Ae({id:qn,body:V(),actor:V().optional()}),G7=Bt(Ae({})),W7=nt(["brainstorm","plan"]),V7=nt(["claude","codex","gemini","pi","opencode","antigravity","openclaw"]),q7=Ae({id:qn,action:W7,channel:V7.optional(),skipDeps:Qr().optional()}),Y7=Ae({runId:V(),action:V(),status:lr("queued")}),Z7=Bt(Y7),K7=Ae({id:qn,name:V().min(1)}),X7=Bt(Ae({id:V(),filePath:V()})),Q7=Ae({id:qn,title:V().min(1)}),J7=Bt(Ae({wbs:V(),filePath:V()})),e9=Ae({id:qn,wbs:V().regex(/^\d{4}$/)}),t9=Bt(Ae({})),Fv=nt(["pull","push"]),n9=Ae({id:qn,direction:Fv}),r9=Bt(Ae({direction:Fv,affectedTasks:xe().int().nonnegative(),applied:Qr(),newStatus:V().optional()})),a9={list:Ft.route({method:"GET",path:"/features",summary:"List features",tags:["feature"]}).output(M7),show:Ft.route({method:"GET",path:"/features/{id}",summary:"Show feature detail",tags:["feature"]}).input(j7).output(P7),create:Ft.route({method:"POST",path:"/features",summary:"Create a feature",tags:["feature"]}).input(B7).output(U7),transition:Ft.route({method:"PATCH",path:"/features/{id}/status",summary:"Transition feature status",tags:["feature"]}).input($7).output(z7),refresh:Ft.route({method:"POST",path:"/features/refresh",summary:"Refresh feature index and kanban",tags:["feature"]}).output(Bt(Ae({rebuilt:xe().int().nonnegative()}))),check:Ft.route({method:"POST",path:"/features/{id}/check",summary:"Run the four-layer feature check",tags:["feature"]}).input(Ae({id:qn})).output(Bt(Ae({id:V(),status:V(),pass:Qr(),findings:Et(Ae({layer:nt(["L1","L2","L3","L4"]),severity:nt(["error","warning","info"]),section:V(),message:V()})),requiredSections:Et(V()),missingSections:Et(V())}))),body:Ft.route({method:"PATCH",path:"/features/{id}/body",summary:"Update feature body",tags:["feature"]}).input(H7).output(G7),action:Ft.route({method:"POST",path:"/features/{id}/action",summary:"Run a feature workflow action",tags:["feature"]}).input(q7).output(Z7),children:Ft.route({method:"POST",path:"/features/{id}/children",summary:"Create a child feature",tags:["feature"]}).input(K7).output(X7),tasks:Ft.route({method:"POST",path:"/features/{id}/tasks",summary:"Create a task linked to feature",tags:["feature"]}).input(Q7).output(J7),link:Ft.route({method:"PATCH",path:"/features/{id}/link",summary:"Link an existing task to feature",tags:["feature"]}).input(e9).output(t9),sync:Ft.route({method:"POST",path:"/features/{id}/sync",summary:"Sync feature status with linked tasks",tags:["feature"]}).input(n9).output(r9)},i9=nt(["24h","7d","30d","all","custom"]),s9=nt(["auto","5m","10m","30m","1h","4h","1d"]),o9=nt(["model","source","tool","skill"]),hl=Ae({range:i9.default("30d"),from:V().datetime().optional(),to:V().datetime().optional(),sources:Et(V()).optional(),models:Et(V()).optional(),tools:Et(V()).optional(),skills:Et(V()).optional(),bucket:s9.default("auto"),dimension:o9.default("model")}),Mv=Ae({billedTokens:xe(),cacheSavedTokens:xe(),cacheReadTokens:xe(),freshInputTokens:xe(),outputTokens:xe()}),wx=Ae({totalBilledTokens:xe(),cacheSavedTokens:xe(),cacheSavedPercent:xe(),sessionsCount:xe(),toolCallsCount:xe(),errorRate:xe()}),l9=Ae({day:V(),totalBilledTokens:xe(),cacheSavedTokens:xe(),sessionsCount:xe(),toolCallsCount:xe(),cacheHitRatio:xe()}),Ax=Ae({bucketStart:V(),cacheHitRatio:xe(),series:yu(V(),xe())}),Nx=Ae({id:V(),label:V(),color:V(),tokens:xe(),share:xe()}),u9=Ae({id:V(),count:xe(),errors:xe(),errorRate:xe()}),c9=Ae({id:V(),label:V(),color:V(),count:xe()}),d9=Ae({hitRatio:xe(),savedTokens:xe(),totalRead:xe()}),p9=Ae({kpis:wx,timeSeries:Et(Ax),topModels:Et(Nx),topSources:Et(Nx),topTools:Et(u9),skillsUsed:Et(c9),cacheEfficiency:d9,kpiTrend:Et(l9),previousKpis:wx.nullable(),skillTimeSeries:Et(Ax)}),f9=Bt(p9),m9=nt(["read","write","bash","search","run","user","assistant","unknown"]),h9=nt(["measured","inferred","unmeasured"]),g9=nt(["exact","estimated"]),b9=u7("mode",[Ae({mode:lr("session"),source:V().min(1),sessionId:V().min(1)}),Ae({mode:lr("consolidated"),filter:hl.optional(),taskWbs:V().optional(),runId:V().optional()})]),E9=Ae({seq:xe(),eventType:nt(["message","tool"]),kind:m9,title:V(),toolName:V().nullable(),durationMs:xe().nullable(),durationSource:h9,tokens:xe(),freshInputTokens:xe(),cacheReadTokens:xe(),outputTokens:xe(),promptTokens:Mv.nullable(),exitCode:xe().nullable(),payload:V().nullable(),agent:V(),model:V()}),x9=Ae({key:V(),sessionId:V(),turnIndex:xe(),timestamp:V().nullable(),source:V(),model:V(),correlationExactness:g9.nullable(),totalDurationMs:xe(),totalTokens:xe(),operationCount:xe(),events:Et(E9)}),y9=Ae({sessionId:V().nullable(),source:V().nullable(),model:V().nullable(),start:V().nullable(),end:V().nullable(),durationMs:xe(),tokens:Mv,messageCount:xe(),toolCallCount:xe(),sessionCount:xe()}),T9=Ae({mode:nt(["session","consolidated"]),scope:y9,truncated:Qr(),blocks:Et(x9)}),S9=Bt(T9),v9=Ae({id:V(),source:V(),model:V(),modelDetail:V().optional(),start:V(),durationMs:xe(),messages:xe(),toolCalls:xe(),billedTokens:xe(),cacheReadTokens:xe(),freshInputTokens:xe(),outputTokens:xe(),topTool:V(),state:V()}),w9=Ae({items:Et(v9),total:xe(),page:xe(),pageSize:xe()}),A9=Bt(w9),N9=Ae({filter:hl.optional(),page:xe().int().min(1).default(1),pageSize:xe().int().min(1).max(100).default(20),sortBy:nt(["start","duration","messages","toolCalls","billedTokens","cacheRead","freshInput"]).default("start"),sortDir:nt(["asc","desc"]).default("desc")}),_9=Ae({tool:V(),argsHint:V(),sessionId:V(),repeats:xe(),fromSeq:xe(),toSeq:xe(),wastedTokens:xe()}),C9=Ae({sessionId:V(),timestamp:V(),freshTokens:xe(),reason:V()}),k9=Ae({id:V(),source:V(),model:V(),tokens:xe(),durationMs:xe()}),_x=Ae({stepIndex:xe(),sessionId:V(),toolName:V(),tokens:xe(),durationMs:xe().optional(),agent:V(),model:V()}),I9=Ae({model:V(),speedMsMean:xe(),cacheRatio:xe(),reliability:xe(),outputRatio:xe()}),R9=Ae({loops:Et(_9),cacheWaste:Et(C9),heavySessions:Et(k9),largestTokenSteps:Et(_x),slowSteps:Et(_x),modelComparison:Et(I9)}),D9=Bt(R9),O9=Ae({date:V(),tokens:xe(),sessions:xe()}),L9=Ae({id:V(),name:V(),color:V(),importPath:V(),filePattern:V(),filesCount:xe(),sizeMb:xe().nullable(),sessionCount:xe(),totalTokens:xe(),cacheSavedTokens:xe(),freshTokens:xe(),toolCalls:xe(),firstDate:V().nullable(),lastDate:V().nullable(),heatmapDays:Et(O9),maxDailyTokens:xe()}),F9=Ae({agentId:V(),agentName:V(),path:V(),matchPattern:V(),fileCount:xe(),status:nt(["active","empty","missing"])}),M9=Ae({totalFiles:xe(),corpusSizeBytes:xe(),dateCoverage:Ae({from:V().nullable(),to:V().nullable()}),totalSessions:xe(),lastImportedAt:V().nullable()}),P9=Ae({overview:M9,agents:Et(L9),roots:Et(F9)}),j9=Bt(P9),B9=Ae({mode:nt(["full","incremental"]).default("incremental")}),U9=Ae({runId:V(),status:V(),message:V()}),$9=Bt(U9),z9={getSummary:Ft.route({method:"POST",path:"/history/summary",summary:"Get conversation history analytics summary",tags:["history"]}).input(hl.optional()).output(f9),getTimeline:Ft.route({method:"POST",path:"/history/timeline",summary:"Get chronological session or consolidated execution timeline",tags:["history"]}).input(b9).output(S9),getSessions:Ft.route({method:"POST",path:"/history/sessions",summary:"List and filter conversation sessions",tags:["history"]}).input(N9).output(A9),getInsights:Ft.route({method:"POST",path:"/history/insights",summary:"Get conversation forensic insights and loops",tags:["history"]}).input(hl.optional()).output(D9),getSources:Ft.route({method:"GET",path:"/history/sources",summary:"Get all-time agent sources overview and heatmaps",tags:["history"]}).output(j9),triggerImport:Ft.route({method:"POST",path:"/history/import",summary:"Trigger history transcript import and analysis",tags:["history"]}).input(B9).output($9)},H9=Bt(Ae({eventName:V(),occurredAt:V().datetime(),actor:V().nullable().optional(),payload:yu(V(),oi())})),G9={stream:Ft.route({method:"GET",path:"/events/planning",summary:"Stream planning events (SSE)",tags:["events"]}).output(H9)},W9=Ae({wbs:V().regex(/^\d{4}$/),name:V().min(1),status:nt(ka),priority:V().optional(),featureId:V().nullable().optional(),parentWbs:V().regex(/^\d{4}$/).nullable().optional(),type:nt(Rv).optional(),filePath:V(),updatedAt:V().optional()}),V9=Bt(Et(W9)),q9=Ae({folder:V().optional(),status:V().optional(),parent:V().optional()}),Y9=Bt(Ae({wbs:V(),name:V(),status:nt(ka),frontmatter:yu(V(),oi()),content:V(),filePath:V()})),Z9=Ae({wbs:V().regex(/^\d{4}$/)}),K9=Ae({title:V().min(1),featureId:V().optional(),parentWbs:V().regex(/^\d{4}$/).optional(),folder:V().optional(),template:nt(Su).optional()}),X9=Bt(Ae({wbs:V(),filePath:V()})),Q9=Ae({wbs:V().regex(/^\d{4}$/),toStatus:nt(ka),actor:V().optional()}),J9=Bt(Ae({wbs:V(),status:nt(ka)})),e$=Ae({wbs:V().regex(/^\d{4}$/),body:V(),actor:V().optional()}),t$=Bt(Ae({wbs:V(),filePath:V()})),n$=nt(["claude","codex","gemini","pi","opencode","antigravity","openclaw"]),r$=nt(["refine","plan","run","verify","decompose","evaluate"]),a$=Ae({wbs:V().regex(/^\d{4}$/),action:r$,channel:n$.optional(),skipDeps:Qr().optional()}),i$=Bt(Ae({runId:V(),action:V(),status:lr("queued")})),s$=Ae({path:V(),label:V().optional()}),o$=Bt(Et(s$)).extend({activeFolder:V().optional()}),l$={list:Ft.route({method:"GET",path:"/tasks",summary:"List tasks",tags:["task"]}).input(q9).output(V9),folders:Ft.route({method:"GET",path:"/tasks/folders",summary:"List configured task folders",tags:["task"]}).output(o$),show:Ft.route({method:"GET",path:"/tasks/{wbs}",summary:"Show task detail",tags:["task"]}).input(Z9).output(Y9),create:Ft.route({method:"POST",path:"/tasks",summary:"Create a task",tags:["task"]}).input(K9).output(X9),transition:Ft.route({method:"PATCH",path:"/tasks/{wbs}/status",summary:"Transition task status",tags:["task"]}).input(Q9).output(J9),body:Ft.route({method:"PATCH",path:"/tasks/{wbs}/body",summary:"Update task body",tags:["task"]}).input(e$).output(t$),action:Ft.route({method:"POST",path:"/tasks/{wbs}/actions",summary:"Run a task action",tags:["task"]}).input(a$).output(i$)},u$=Ae({status:lr("ok"),timestamp:V(),service:lr("spur"),version:V()}),c$={health:Ft.route({method:"GET",path:"/health",summary:"Read application health",tags:["system"]}).output(u$),task:{...l$},feature:{...a9},history:{...z9},...G9};class d$ extends ZS{initRuntimeAdapter(t){for(const n of this.plugins)n.initRuntimeAdapter?.(t)}}class p${fetch;toFetchRequestOptions;adapterInterceptors;constructor(t){new d$(t.plugins).initRuntimeAdapter(t),this.fetch=t.fetch??globalThis.fetch.bind(globalThis),this.toFetchRequestOptions=t,this.adapterInterceptors=ul(t.adapterInterceptors)}async call(t,n,r,a){const i=LP(t,this.toFetchRequestOptions),s=await ld(this.adapterInterceptors,{...n,request:i,path:r,input:a,init:{redirect:"manual"}},({request:u,path:c,input:p,init:d,...f})=>this.fetch(u,d,f,c,p));return FP(s,{signal:i.signal})}}class f${maxArrayIndex;constructor(t={}){this.maxArrayIndex=t.maxBracketNotationArrayIndex??9999}serialize(t,n=[],r=[]){if(Array.isArray(t))t.forEach((a,i)=>{this.serialize(a,[...n,i],r)});else if(Yr(t))for(const a in t)this.serialize(t[a],[...n,a],r);else r.push([this.stringifyPath(n),t]);return r}deserialize(t){if(t.length===0)return{};const n=new WeakSet,r={value:[]};for(const[a,i]of t){const s=this.parsePath(a);let o=r,u="value";s.forEach((c,p)=>{!Array.isArray(o[u])&&!Yr(o[u])&&(o[u]=[]),p!==s.length-1?Array.isArray(o[u])&&!Cx(c,this.maxArrayIndex)&&(n.has(o[u])?(n.delete(o[u]),o[u]=kx(o[u])):o[u]=hc(o[u])):Array.isArray(o[u])&&(c===""?o[u].length&&!n.has(o[u])&&(o[u]=hc(o[u])):n.has(o[u])?(n.delete(o[u]),o[u]=kx(o[u])):Cx(c,this.maxArrayIndex)||(o[u]=hc(o[u]))),o=o[u],u=c}),Array.isArray(o)&&u===""?(n.add(o),o.push(i)):u in o?Array.isArray(o[u])?o[u].push(i):o[u]=[o[u],i]:o[u]=i}return r.value}stringifyPath(t){return t.map(n=>n.toString().replace(/[\\[\]]/g,r=>{switch(r){case"\\":return"\\\\";case"[":return"\\[";case"]":return"\\]";default:return r}})).reduce((n,r,a)=>a===0?r:`${n}[${r}]`,"")}parsePath(t){const n=[];let r=!1,a="",i=0;for(let s=0;s<t.length;s++){const o=t[s],u=t[s+1];r&&o==="]"&&(u===void 0||u==="[")&&i%2===0?(u===void 0&&(r=!1),n.push(a),a="",s++):n.length===0&&o==="["&&i%2===0?(r=!0,n.push(a),a=""):o==="\\"?i++:(a+="\\".repeat(i/2)+o,i=0)}return r||n.length===0?[t]:n}}function Cx(e,t){return/^0$|^[1-9]\d*$/.test(e)&&Number(e)<=t}function hc(e){const t=new PS;return e.forEach((n,r)=>{t[r]=n}),t}function kx(e){const t=new PS;return t[""]=e.length===1?e[0]:e,t}class m${customSerializers;constructor(t={}){this.customSerializers=t.customJsonSerializers??[]}serialize(t,n={value:!1}){for(const r of this.customSerializers)if(r.condition(t))return this.serialize(r.serialize(t),n);if(t instanceof Blob)return n.value=!0,[t,n.value];if(t instanceof Set)return this.serialize(Array.from(t),n);if(t instanceof Map)return this.serialize(Array.from(t.entries()),n);if(Array.isArray(t))return[t.map(a=>a===void 0?null:this.serialize(a,n)[0]),n.value];if(Yr(t)){const r={};for(const a in t)a==="toJSON"&&typeof t[a]=="function"||(r[a]=this.serialize(t[a],n)[0]);return[r,n.value]}return typeof t=="bigint"||t instanceof RegExp||t instanceof URL?[t.toString(),n.value]:t instanceof Date?[Number.isNaN(t.getTime())?null:t.toISOString(),n.value]:Number.isNaN(t)?[null,n.value]:[t,n.value]}}function hd(e){return`/${e.replace(/\/{2,}/g,"/").replace(/^\/|\/$/g,"")}`}function Ix(e){return e?hd(e).match(/\/\{[^}]+\}/g)?.map(t=>({raw:t,name:t.match(/\{\+?([^}]+)\}/)[1]})):void 0}class h${constructor(t,n,r){this.contract=t,this.serializer=n,this.baseUrl=r.url,this.headers=r.headers??{},this.customErrorResponseBodyDecoder=r.customErrorResponseBodyDecoder}baseUrl;headers;customErrorResponseBodyDecoder;async encode(t,n,r){let a=PP(await KE(this.headers,r,t,n));r.lastEventId!==void 0&&(a=XE(a,{"last-event-id":r.lastEventId}));const i=await KE(this.baseUrl,r,t,n),s=ZE(this.contract,t);if(!dd(s))throw new Error(`[StandardOpenapiLinkCodec] expect a contract procedure at ${t.join(".")}`);return So("defaultInputStructure",s["~orpc"].route.inputStructure)==="compact"?this.#e(s,t,n,r,i,a):this.#t(s,t,n,r,i,a)}#e(t,n,r,a,i,s){let o=hd(t["~orpc"].route.path??JE(n)),u=r;const c=Ix(o);if(c?.length){if(!Yr(r))throw new TypeError(`[StandardOpenapiLinkCodec] Invalid input shape for "compact" structure when has dynamic params at ${n.join(".")}.`);const f={...r};for(const m of c){const b=r[m.name];o=o.replace(m.raw,`/${encodeURIComponent(`${this.serializer.serialize(b)}`)}`),delete f[m.name]}u=Object.keys(f).length?f:void 0}const p=So("defaultMethod",t["~orpc"].route.method),d=new URL(i);if(d.pathname=`${d.pathname.replace(/\/$/,"")}${o}`,p==="GET"){const f=this.serializer.serialize(u,{outputFormat:"URLSearchParams"});for(const[m,b]of f)d.searchParams.append(m,b);return{url:d,method:p,headers:s,body:void 0,signal:a.signal}}return{url:d,method:p,headers:s,body:this.serializer.serialize(u),signal:a.signal}}#t(t,n,r,a,i,s){let o=hd(t["~orpc"].route.path??JE(n));const u=Ix(o);if(!Yr(r)&&r!==void 0)throw new TypeError(`[StandardOpenapiLinkCodec] Invalid input shape for "detailed" structure at ${n.join(".")}.`);if(u?.length){if(!Yr(r?.params))throw new TypeError(`[StandardOpenapiLinkCodec] Invalid input.params shape for "detailed" structure when has dynamic params at ${n.join(".")}.`);for(const f of u){const m=r.params[f.name];o=o.replace(f.raw,`/${encodeURIComponent(`${this.serializer.serialize(m)}`)}`)}}let c=s;if(r?.headers!==void 0){if(!Yr(r.headers))throw new TypeError(`[StandardOpenapiLinkCodec] Invalid input.headers shape for "detailed" structure at ${n.join(".")}.`);c=XE(r.headers,s)}const p=So("defaultMethod",t["~orpc"].route.method),d=new URL(i);if(d.pathname=`${d.pathname.replace(/\/$/,"")}${o}`,r?.query!==void 0){const f=this.serializer.serialize(r.query,{outputFormat:"URLSearchParams"});for(const[m,b]of f)d.searchParams.append(m,b)}return p==="GET"?{url:d,method:p,headers:c,body:void 0,signal:a.signal}:{url:d,method:p,headers:c,body:this.serializer.serialize(r?.body),signal:a.signal}}async decode(t,n,r){const a=!ws(t.status),i=await(async()=>{let u=!1;try{const c=await t.body();return u=!0,this.serializer.deserialize(c)}catch(c){throw u?new Error("Invalid OpenAPI response format.",{cause:c}):new Error("Cannot parse response body, please check the response body and content-type.",{cause:c})}})();if(!a){const u=this.customErrorResponseBodyDecoder?.(i,t);throw u??(US(i)?$S(i):new vs(jP(t.status),{status:t.status,data:{...t,body:i}}))}const s=ZE(this.contract,r);if(!dd(s))throw new Error(`[StandardOpenapiLinkCodec] expect a contract procedure at ${r.join(".")}`);return So("defaultOutputStructure",s["~orpc"].route.outputStructure)==="compact"?i:{status:t.status,headers:t.headers,body:i}}}class g${constructor(t,n){this.jsonSerializer=t,this.bracketNotation=n}serialize(t,n={}){return Ss(t)&&!n.outputFormat?QE(t,{value:async r=>this.#e(r,{outputFormat:"plain"}),error:async r=>new As({data:this.#e(EP(r).toJSON(),{outputFormat:"plain"}),cause:r})}):this.#e(t,n)}#e(t,n){const[r,a]=this.jsonSerializer.serialize(t);if(n.outputFormat==="plain")return r;if(n.outputFormat==="URLSearchParams"){const s=new URLSearchParams;for(const[o,u]of this.bracketNotation.serialize(r))(typeof u=="string"||typeof u=="number"||typeof u=="boolean")&&s.append(o,u.toString());return s}if(r instanceof Blob||r===void 0||!a)return r;const i=new FormData;for(const[s,o]of this.bracketNotation.serialize(r))typeof o=="string"||typeof o=="number"||typeof o=="boolean"?i.append(s,o.toString()):o instanceof Blob&&i.append(s,o);return i}deserialize(t){return t instanceof URLSearchParams||t instanceof FormData?this.bracketNotation.deserialize(Array.from(t.entries())):Ss(t)?QE(t,{value:async n=>n,error:async n=>n instanceof As&&US(n.data)?$S(n.data,{cause:n}):n}):t}}class b$ extends MP{constructor(t,n,r){const a=new m$(r),i=new f$({maxBracketNotationArrayIndex:4294967294}),s=new g$(a,i),o=new h$(t,s,r);super(o,n,r)}}class E$ extends b${constructor(t,n){const r=new p$(n);super(t,r,n)}}function At(e=void 0,t=globalThis.location?.origin,n=!1){return e||(t&&t!=="null"?new URL("/api",t).toString():"http://localhost:3000/api")}function vt(e,t=1e4){const n=new AbortController,r=setTimeout(()=>n.abort(),t),a=e.signal;a&&a.addEventListener("abort",()=>n.abort(),{once:!0});const i=new Request(e,{signal:n.signal});return fetch(i).finally(()=>clearTimeout(r))}function x$(e){return vt(e)}function y$(e){typeof globalThis<"u"&&globalThis.dispatchEvent&&globalThis.dispatchEvent(new CustomEvent("api-error",{detail:{message:e instanceof Error?e.message:String(e)}}))}const yn=VS(new E$(c$,{url:At(),fetch:x$,adapterInterceptors:[uP(y$)]})),Nr=()=>`${At()}/features`;async function T$(e){const t=await vt(new Request(Nr(),{signal:e}));if(!t.ok)throw new Error(`feature list fetch failed: ${t.status}`);const r=await t.json();if(!r.ok||!Array.isArray(r.data))throw new Error("feature list: invalid response shape");return r.data}async function Rx(e,t){const n=await vt(new Request(`${Nr()}/${encodeURIComponent(e)}`,{signal:t}));if(!n.ok)throw new Error(`feature show fetch failed: ${n.status}`);const a=await n.json();if(!a.ok||!a.data)throw new Error("feature show: invalid response shape");return a.data}async function S$(e,t,n){const r=await vt(new Request(`${Nr()}/${encodeURIComponent(e)}/status`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({id:e,toStatus:t}),signal:n})),a=await r.json();if(!r.ok){const s=a;throw new Error(s.error?.message??`transition failed: ${r.status}`)}return a.data?.status??t}async function v$(e,t){const n=await vt(new Request(`${Nr()}/${encodeURIComponent(e.id)}/body`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(e),signal:t}));if(!n.ok){const a=await n.json();throw new Error(a.error?.message??`body update failed: ${n.status}`)}}async function w$(e,t){const n=await vt(new Request(`${Nr()}/${encodeURIComponent(e.id)}/action`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e),signal:t}));if(!n.ok){const i=await n.json();throw new Error(i.error?.message??`action dispatch failed: ${n.status}`)}return await n.json()}async function Pv(e,t){const n=await vt(new Request(`${Nr()}/${encodeURIComponent(e.id)}/children`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e),signal:t}));if(!n.ok){const i=await n.json();throw new Error(i.error?.message??`create child failed: ${n.status}`)}return await n.json()}async function A$(e,t){const n=await vt(new Request(Nr(),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({name:e}),signal:t}));if(!n.ok){const s=await n.json();throw new Error(s.error?.message??`create feature failed: ${n.status}`)}const a=await n.json();if(!a.ok||!a.data)throw new Error("create feature: invalid response shape");return a.data}async function N$(e,t){const n=await vt(new Request(`${Nr()}/${encodeURIComponent(e.id)}/tasks`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e),signal:t}));if(!n.ok){const i=await n.json();throw new Error(i.error?.message??`create task failed: ${n.status}`)}return await n.json()}async function _$(e,t){const n=await vt(new Request(`${Nr()}/${encodeURIComponent(e.id)}/link`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(e),signal:t}));if(!n.ok){const i=await n.json();throw new Error(i.error?.message??`link task failed: ${n.status}`)}return await n.json()}async function C$(e,t){const n=await vt(new Request(`${Nr()}/${encodeURIComponent(e.id)}/sync`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e),signal:t}));if(!n.ok){const i=await n.json();throw new Error(i.error?.message??`sync failed: ${n.status}`)}return await n.json()}const k$=(function(){const t=typeof document<"u"&&document.createElement("link").relList;return t&&t.supports&&t.supports("modulepreload")?"modulepreload":"preload"})(),I$=function(e){return"/"+e},Dx={},jv=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let u=function(c){return Promise.all(c.map(p=>Promise.resolve(p).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),o=s?.nonce||s?.getAttribute("nonce");a=u(n.map(c=>{if(c=I$(c),c in Dx)return;Dx[c]=!0;const p=c.endsWith(".css"),d=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const f=document.createElement("link");if(f.rel=p?"stylesheet":k$,p||(f.as="script"),f.crossOrigin="",f.href=c,o&&f.setAttribute("nonce",o),document.head.appendChild(f),p)return new Promise((m,b)=>{f.addEventListener("load",m),f.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(s){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s}return a.then(s=>{for(const o of s||[])o.status==="rejected"&&i(o.reason);return t().catch(i)})};function Ox(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function R$(e){if(Array.isArray(e))return e}function D$(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(u=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);u=!0);}catch(p){c=!0,a=p}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function O$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
169
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L$(e,t){return R$(e)||D$(e,t)||F$(e,t)||O$()}function F$(e,t){if(e){if(typeof e=="string")return Ox(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ox(e,t):void 0}}const Bv=Object.entries,Lx=Object.setPrototypeOf,M$=Object.isFrozen,P$=Object.getPrototypeOf,j$=Object.getOwnPropertyDescriptor;let Tn=Object.freeze,vn=Object.seal,Ua=Object.create,Uv=typeof Reflect<"u"&&Reflect,gd=Uv.apply,bd=Uv.construct;Tn||(Tn=function(t){return t});vn||(vn=function(t){return t});gd||(gd=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),i=2;i<r;i++)a[i-2]=arguments[i];return t.apply(n,a)});bd||(bd=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return new t(...r)});const $i=an(Array.prototype.forEach),B$=an(Array.prototype.lastIndexOf),Fx=an(Array.prototype.pop),Fa=an(Array.prototype.push),U$=an(Array.prototype.splice),Wr=Array.isArray,Zi=an(String.prototype.toLowerCase),gc=an(String.prototype.toString),Mx=an(String.prototype.match),zi=an(String.prototype.replace),Px=an(String.prototype.indexOf),$$=an(String.prototype.trim),z$=an(Number.prototype.toString),H$=an(Boolean.prototype.toString),jx=typeof BigInt>"u"?null:an(BigInt.prototype.toString),Bx=typeof Symbol>"u"?null:an(Symbol.prototype.toString),dn=an(Object.prototype.hasOwnProperty),Hi=an(Object.prototype.toString),xn=an(RegExp.prototype.test),ia=G$(TypeError);function an(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return gd(e,t,r)}}function G$(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return bd(e,n)}}function yt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Zi;if(Lx&&Lx(e,null),!Wr(t))return e;let r=t.length;for(;r--;){let a=t[r];if(typeof a=="string"){const i=n(a);i!==a&&(M$(t)||(t[r]=i),a=i)}e[a]=!0}return e}function W$(e){for(let t=0;t<e.length;t++)dn(e,t)||(e[t]=null);return e}function Ln(e){const t=Ua(null);for(const r of Bv(e)){var n=L$(r,2);const a=n[0],i=n[1];dn(e,a)&&(Wr(i)?t[a]=W$(i):i&&typeof i=="object"&&i.constructor===Object?t[a]=Ln(i):t[a]=i)}return t}function V$(e){switch(typeof e){case"string":return e;case"number":return z$(e);case"boolean":return H$(e);case"bigint":return jx?jx(e):"0";case"symbol":return Bx?Bx(e):"Symbol()";case"undefined":return Hi(e);case"function":case"object":{if(e===null)return Hi(e);const t=e,n=Er(t,"toString");if(typeof n=="function"){const r=n(t);return typeof r=="string"?r:Hi(r)}return Hi(e)}default:return Hi(e)}}function Er(e,t){for(;e!==null;){const r=j$(e,t);if(r){if(r.get)return an(r.get);if(typeof r.value=="function")return an(r.value)}e=P$(e)}function n(){return null}return n}function q$(e){try{return xn(e,""),!0}catch{return!1}}const Ux=Tn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),bc=Tn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ec=Tn(["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"]),Y$=Tn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),xc=Tn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Z$=Tn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),$x=Tn(["#text"]),zx=Tn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),yc=Tn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Hx=Tn(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),No=Tn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),K$=vn(/{{[\w\W]*|^[\w\W]*}}/g),X$=vn(/<%[\w\W]*|^[\w\W]*%>/g),Q$=vn(/\${[\w\W]*/g),J$=vn(/^data-[\-\w.\u00B7-\uFFFF]+$/),ez=vn(/^aria-[\-\w]+$/),Gx=vn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),tz=vn(/^(?:\w+script|data):/i),nz=vn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),rz=vn(/^html$/i),az=vn(/^[a-z][.\w]*(-[.\w]+)+$/i),Wx=vn(/<[/\w!]/g),iz=vn(/<[/\w]/g),sz=vn(/<\/no(script|embed|frames)/i),oz=vn(/\/>/i),gr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},lz=function(){return typeof window>"u"?null:window},uz=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const a="data-tt-policy-suffix";n&&n.hasAttribute(a)&&(r=n.getAttribute(a));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Vx=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},jr=function(t,n,r,a){return dn(t,n)&&Wr(t[n])?yt(a.base?Ln(a.base):{},t[n],a.transform):r};function $v(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lz();const t=ve=>$v(ve);if(t.version="3.4.11",t.removed=[],!e||!e.document||e.document.nodeType!==gr.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const r=n,a=r.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,s=e.Node,o=e.Element,u=e.NodeFilter,c=e.NamedNodeMap;c===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const p=e.DOMParser,d=e.trustedTypes,f=o.prototype,m=Er(f,"cloneNode"),b=Er(f,"remove"),E=Er(f,"nextSibling"),x=Er(f,"childNodes"),y=Er(f,"parentNode"),S=Er(f,"shadowRoot"),v=Er(f,"attributes"),w=s&&s.prototype?Er(s.prototype,"nodeType"):null,R=s&&s.prototype?Er(s.prototype,"nodeName"):null;if(typeof i=="function"){const ve=n.createElement("template");ve.content&&ve.content.ownerDocument&&(n=ve.content.ownerDocument)}let N,T="",_,L=!1,C=0;const $=function(){if(C>0)throw ia('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},I=function(M){$(),C++;try{return N.createHTML(M)}finally{C--}},P=function(M){$(),C++;try{return N.createScriptURL(M)}finally{C--}},W=function(){return L||(_=uz(d,a),L=!0),_},U=n,ne=U.implementation,z=U.createNodeIterator,se=U.createDocumentFragment,pe=U.getElementsByTagName,D=r.importNode;let Q=Vx();t.isSupported=typeof Bv=="function"&&typeof y=="function"&&ne&&ne.createHTMLDocument!==void 0;const de=K$,O=X$,Ce=Q$,De=J$,J=ez,_e=tz,fe=nz,X=az;let Ge=Gx,ge=null;const me=yt({},[...Ux,...bc,...Ec,...xc,...$x]);let Te=null;const Se=yt({},[...zx,...yc,...Hx,...No]);let oe=Object.seal(Ua(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),qe=null,at=null;const ft=Object.seal(Ua(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Dt=!0,xt=!0,Ut=!1,Kt=!0,ot=!1,Oe=!0,Qe=!1,Y=!1,ie=null,ee=null,ue=!1,Be=!1,Ye=!1,mt=!1,Ot=!0,Nt=!1;const Pt="user-content-";let ae=!0,Ne=!1,ze={},Me=null;const Ct=yt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Qt=null;const Le=yt({},["audio","video","img","source","image","track"]);let ht=null;const Xe=yt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),It="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",H="http://www.w3.org/1999/xhtml";let Re=H,et=!1,Ke=null;const $t=yt({},[It,Je,H],gc),j=Tn(["mi","mo","mn","ms","mtext"]);let G=yt({},j);const Z=Tn(["annotation-xml"]);let le=yt({},Z);const be=yt({},["title","style","font","a","script"]);let Ie=null;const ke=["application/xhtml+xml","text/html"],Fe="text/html";let we=null,Pe=null;const Ve=n.createElement("form"),Ue=function(M){return M instanceof RegExp||M instanceof Function},gt=function(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Pe&&Pe===M)return;(!M||typeof M!="object")&&(M={}),M=Ln(M),Ie=ke.indexOf(M.PARSER_MEDIA_TYPE)===-1?Fe:M.PARSER_MEDIA_TYPE,we=Ie==="application/xhtml+xml"?gc:Zi,ge=jr(M,"ALLOWED_TAGS",me,{transform:we}),Te=jr(M,"ALLOWED_ATTR",Se,{transform:we}),Ke=jr(M,"ALLOWED_NAMESPACES",$t,{transform:gc}),ht=jr(M,"ADD_URI_SAFE_ATTR",Xe,{transform:we,base:Xe}),Qt=jr(M,"ADD_DATA_URI_TAGS",Le,{transform:we,base:Le}),Me=jr(M,"FORBID_CONTENTS",Ct,{transform:we}),qe=jr(M,"FORBID_TAGS",Ln({}),{transform:we}),at=jr(M,"FORBID_ATTR",Ln({}),{transform:we}),ze=dn(M,"USE_PROFILES")?M.USE_PROFILES&&typeof M.USE_PROFILES=="object"?Ln(M.USE_PROFILES):M.USE_PROFILES:!1,Dt=M.ALLOW_ARIA_ATTR!==!1,xt=M.ALLOW_DATA_ATTR!==!1,Ut=M.ALLOW_UNKNOWN_PROTOCOLS||!1,Kt=M.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ot=M.SAFE_FOR_TEMPLATES||!1,Oe=M.SAFE_FOR_XML!==!1,Qe=M.WHOLE_DOCUMENT||!1,Be=M.RETURN_DOM||!1,Ye=M.RETURN_DOM_FRAGMENT||!1,mt=M.RETURN_TRUSTED_TYPE||!1,ue=M.FORCE_BODY||!1,Ot=M.SANITIZE_DOM!==!1,Nt=M.SANITIZE_NAMED_PROPS||!1,ae=M.KEEP_CONTENT!==!1,Ne=M.IN_PLACE||!1,Ge=q$(M.ALLOWED_URI_REGEXP)?M.ALLOWED_URI_REGEXP:Gx,Re=typeof M.NAMESPACE=="string"?M.NAMESPACE:H,G=dn(M,"MATHML_TEXT_INTEGRATION_POINTS")&&M.MATHML_TEXT_INTEGRATION_POINTS&&typeof M.MATHML_TEXT_INTEGRATION_POINTS=="object"?Ln(M.MATHML_TEXT_INTEGRATION_POINTS):yt({},j),le=dn(M,"HTML_INTEGRATION_POINTS")&&M.HTML_INTEGRATION_POINTS&&typeof M.HTML_INTEGRATION_POINTS=="object"?Ln(M.HTML_INTEGRATION_POINTS):yt({},Z);const K=dn(M,"CUSTOM_ELEMENT_HANDLING")&&M.CUSTOM_ELEMENT_HANDLING&&typeof M.CUSTOM_ELEMENT_HANDLING=="object"?Ln(M.CUSTOM_ELEMENT_HANDLING):Ua(null);if(oe=Ua(null),dn(K,"tagNameCheck")&&Ue(K.tagNameCheck)&&(oe.tagNameCheck=K.tagNameCheck),dn(K,"attributeNameCheck")&&Ue(K.attributeNameCheck)&&(oe.attributeNameCheck=K.attributeNameCheck),dn(K,"allowCustomizedBuiltInElements")&&typeof K.allowCustomizedBuiltInElements=="boolean"&&(oe.allowCustomizedBuiltInElements=K.allowCustomizedBuiltInElements),vn(oe),ot&&(xt=!1),Ye&&(Be=!0),ze&&(ge=yt({},$x),Te=Ua(null),ze.html===!0&&(yt(ge,Ux),yt(Te,zx)),ze.svg===!0&&(yt(ge,bc),yt(Te,yc),yt(Te,No)),ze.svgFilters===!0&&(yt(ge,Ec),yt(Te,yc),yt(Te,No)),ze.mathMl===!0&&(yt(ge,xc),yt(Te,Hx),yt(Te,No))),ft.tagCheck=null,ft.attributeCheck=null,dn(M,"ADD_TAGS")&&(typeof M.ADD_TAGS=="function"?ft.tagCheck=M.ADD_TAGS:Wr(M.ADD_TAGS)&&(ge===me&&(ge=Ln(ge)),yt(ge,M.ADD_TAGS,we))),dn(M,"ADD_ATTR")&&(typeof M.ADD_ATTR=="function"?ft.attributeCheck=M.ADD_ATTR:Wr(M.ADD_ATTR)&&(Te===Se&&(Te=Ln(Te)),yt(Te,M.ADD_ATTR,we))),dn(M,"ADD_URI_SAFE_ATTR")&&Wr(M.ADD_URI_SAFE_ATTR)&&yt(ht,M.ADD_URI_SAFE_ATTR,we),dn(M,"FORBID_CONTENTS")&&Wr(M.FORBID_CONTENTS)&&(Me===Ct&&(Me=Ln(Me)),yt(Me,M.FORBID_CONTENTS,we)),dn(M,"ADD_FORBID_CONTENTS")&&Wr(M.ADD_FORBID_CONTENTS)&&(Me===Ct&&(Me=Ln(Me)),yt(Me,M.ADD_FORBID_CONTENTS,we)),ae&&(ge["#text"]=!0),Qe&&yt(ge,["html","head","body"]),ge.table&&(yt(ge,["tbody"]),delete qe.tbody),M.TRUSTED_TYPES_POLICY){if(typeof M.TRUSTED_TYPES_POLICY.createHTML!="function")throw ia('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof M.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ia('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const ye=N;N=M.TRUSTED_TYPES_POLICY;try{T=I("")}catch(je){throw N=ye,je}}else M.TRUSTED_TYPES_POLICY===null?(N=void 0,T=""):(N===void 0&&(N=W()),N&&typeof T=="string"&&(T=I("")));Tn&&Tn(M),Pe=M},bt=yt({},[...bc,...Ec,...Y$]),Jt=yt({},[...xc,...Z$]),en=function(M,K,ye){return K.namespaceURI===H?M==="svg":K.namespaceURI===It?M==="svg"&&(ye==="annotation-xml"||G[ye]):!!bt[M]},bn=function(M,K,ye){return K.namespaceURI===H?M==="math":K.namespaceURI===Je?M==="math"&&le[ye]:!!Jt[M]},_t=function(M,K,ye){return K.namespaceURI===Je&&!le[ye]||K.namespaceURI===It&&!G[ye]?!1:!Jt[M]&&(be[M]||!bt[M])},jn=function(M){let K=y(M);(!K||!K.tagName)&&(K={namespaceURI:Re,tagName:"template"});const ye=Zi(M.tagName),je=Zi(K.tagName);return Ke[M.namespaceURI]?M.namespaceURI===Je?en(ye,K,je):M.namespaceURI===It?bn(ye,K,je):M.namespaceURI===H?_t(ye,K,je):!!(Ie==="application/xhtml+xml"&&Ke[M.namespaceURI]):!1},_n=function(M){Fa(t.removed,{element:M});try{y(M).removeChild(M)}catch{if(b(M),!y(M))throw ia("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Lr=function(M){const K=x(M);if(K){const je=[];$i(K,it=>{Fa(je,it)}),$i(je,it=>{try{b(it)}catch{}})}const ye=v(M);if(ye)for(let je=ye.length-1;je>=0;--je){const it=ye[je],St=it&&it.name;if(typeof St=="string")try{M.removeAttribute(St)}catch{}}},Cn=function(M,K){try{Fa(t.removed,{attribute:K.getAttributeNode(M),from:K})}catch{Fa(t.removed,{attribute:null,from:K})}if(K.removeAttribute(M),M==="is")if(Be||Ye)try{_n(K)}catch{}else try{K.setAttribute(M,"")}catch{}},Zn=function(M){const K=v(M);if(K)for(let ye=K.length-1;ye>=0;--ye){const je=K[ye],it=je&&je.name;if(!(typeof it!="string"||Te[we(it)]))try{M.removeAttribute(it)}catch{}}},_i=function(M){const K=[M];for(;K.length>0;){const ye=K.pop();(w?w(ye):ye.nodeType)===gr.element&&Zn(ye);const it=x(ye);if(it)for(let St=it.length-1;St>=0;--St)K.push(it[St])}},Fr=function(M){let K=null,ye=null;if(ue)M="<remove></remove>"+M;else{const St=Mx(M,/^[\r\n\t ]+/);ye=St&&St[0]}Ie==="application/xhtml+xml"&&Re===H&&(M='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+M+"</body></html>");const je=N?I(M):M;if(Re===H)try{K=new p().parseFromString(je,Ie)}catch{}if(!K||!K.documentElement){K=ne.createDocument(Re,"template",null);try{K.documentElement.innerHTML=et?T:je}catch{}}const it=K.body||K.documentElement;return M&&ye&&it.insertBefore(n.createTextNode(ye),it.childNodes[0]||null),Re===H?pe.call(K,Qe?"html":"body")[0]:Qe?K.documentElement:it},mr=function(M){return z.call(M.ownerDocument||M,M,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},_r=function(M){return M=zi(M,de," "),M=zi(M,O," "),M=zi(M,Ce," "),M},Mr=function(M){var K;M.normalize();const ye=z.call(M.ownerDocument||M,M,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let je=ye.nextNode();for(;je;)je.data=_r(je.data),je=ye.nextNode();const it=(K=M.querySelectorAll)===null||K===void 0?void 0:K.call(M,"template");it&&$i(it,St=>{Wt(St.content)&&Mr(St.content)})},lt=function(M){const K=R?R(M):null;return typeof K!="string"||we(K)!=="form"?!1:typeof M.nodeName!="string"||typeof M.textContent!="string"||typeof M.removeChild!="function"||M.attributes!==v(M)||typeof M.removeAttribute!="function"||typeof M.setAttribute!="function"||typeof M.namespaceURI!="string"||typeof M.insertBefore!="function"||typeof M.hasChildNodes!="function"||M.nodeType!==w(M)||M.childNodes!==x(M)},Wt=function(M){if(!w||typeof M!="object"||M===null)return!1;try{return w(M)===gr.documentFragment}catch{return!1}},Kn=function(M){if(!w||typeof M!="object"||M===null)return!1;try{return typeof w(M)=="number"}catch{return!1}};function En(ve,M,K){ve.length!==0&&$i(ve,ye=>{ye.call(t,M,K,Pe)})}const zt=function(M,K){return!!(Oe&&M.hasChildNodes()&&!Kn(M.firstElementChild)&&xn(Wx,M.textContent)&&xn(Wx,M.innerHTML)||Oe&&M.namespaceURI===H&&K==="style"&&Kn(M.firstElementChild)||M.nodeType===gr.processingInstruction||Oe&&M.nodeType===gr.comment&&xn(iz,M.data))},Ia=function(M,K){if(!qe[K]&&Rb(K)&&(oe.tagNameCheck instanceof RegExp&&xn(oe.tagNameCheck,K)||oe.tagNameCheck instanceof Function&&oe.tagNameCheck(K)))return!1;if(ae&&!Me[K]){const ye=y(M),je=x(M);if(je&&ye){const it=je.length;for(let St=it-1;St>=0;--St){const ln=Ne?je[St]:m(je[St],!0);ye.insertBefore(ln,E(M))}}}return _n(M),!0},Ci=function(M){if(En(Q.beforeSanitizeElements,M,null),lt(M))return _n(M),!0;const K=we(R?R(M):M.nodeName);if(En(Q.uponSanitizeElement,M,{tagName:K,allowedTags:ge}),zt(M,K))return _n(M),!0;if(qe[K]||!(ft.tagCheck instanceof Function&&ft.tagCheck(K))&&!ge[K])return Ia(M,K);if((w?w(M):M.nodeType)===gr.element&&!jn(M)||(K==="noscript"||K==="noembed"||K==="noframes")&&xn(sz,M.innerHTML))return _n(M),!0;if(ot&&M.nodeType===gr.text){const je=_r(M.textContent);M.textContent!==je&&(Fa(t.removed,{element:M.cloneNode()}),M.textContent=je)}return En(Q.afterSanitizeElements,M,null),!1},ro=function(M,K,ye){if(at[K]||Ot&&(K==="id"||K==="name")&&(ye in n||ye in Ve))return!1;const je=Te[K]||ft.attributeCheck instanceof Function&&ft.attributeCheck(K,M);if(!(xt&&xn(De,K))){if(!(Dt&&xn(J,K))){if(je){if(!ht[K]){if(!xn(Ge,zi(ye,fe,""))){if(!((K==="src"||K==="xlink:href"||K==="href")&&M!=="script"&&Px(ye,"data:")===0&&Qt[M])){if(!(Ut&&!xn(_e,zi(ye,fe,"")))){if(ye)return!1}}}}}else if(!(Rb(M)&&(oe.tagNameCheck instanceof RegExp&&xn(oe.tagNameCheck,M)||oe.tagNameCheck instanceof Function&&oe.tagNameCheck(M))&&(oe.attributeNameCheck instanceof RegExp&&xn(oe.attributeNameCheck,K)||oe.attributeNameCheck instanceof Function&&oe.attributeNameCheck(K,M))||K==="is"&&oe.allowCustomizedBuiltInElements&&(oe.tagNameCheck instanceof RegExp&&xn(oe.tagNameCheck,ye)||oe.tagNameCheck instanceof Function&&oe.tagNameCheck(ye))))return!1}}return!0},Ww=yt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Rb=function(M){return!Ww[Zi(M)]&&xn(X,M)},Vw=function(M,K,ye,je){if(N&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!ye)switch(d.getAttributeType(M,K)){case"TrustedHTML":return I(je);case"TrustedScriptURL":return P(je)}return je},qw=function(M,K,ye,je){try{ye?M.setAttributeNS(ye,K,je):M.setAttribute(K,je),lt(M)?_n(M):Fx(t.removed)}catch{Cn(K,M)}},Db=function(M){En(Q.beforeSanitizeAttributes,M,null);const K=M.attributes;if(!K||lt(M))return;const ye={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Te,forceKeepAttr:void 0};let je=K.length;const it=we(M.nodeName);for(;je--;){const St=K[je],ln=St.name,tn=St.namespaceURI,Xn=St.value,sr=we(ln),ku=Xn;let Dn=ln==="value"?ku:$$(ku);if(ye.attrName=sr,ye.attrValue=Dn,ye.keepAttr=!0,ye.forceKeepAttr=void 0,En(Q.uponSanitizeAttribute,M,ye),Dn=ye.attrValue,Nt&&(sr==="id"||sr==="name")&&Px(Dn,Pt)!==0&&(Cn(ln,M),Dn=Pt+Dn),Oe&&xn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Dn)){Cn(ln,M);continue}if(sr==="attributename"&&Mx(Dn,"href")){Cn(ln,M);continue}if(!ye.forceKeepAttr){if(!ye.keepAttr){Cn(ln,M);continue}if(!Kt&&xn(oz,Dn)){Cn(ln,M);continue}if(ot&&(Dn=_r(Dn)),!ro(it,sr,Dn)){Cn(ln,M);continue}Dn=Vw(it,sr,tn,Dn),Dn!==ku&&qw(M,ln,tn,Dn)}}En(Q.afterSanitizeAttributes,M,null)},ao=function(M){let K=null;const ye=mr(M);for(En(Q.beforeSanitizeShadowDOM,M,null);K=ye.nextNode();)if(En(Q.uponSanitizeShadowNode,K,null),Ci(K),Db(K),Wt(K.content)&&ao(K.content),(w?w(K):K.nodeType)===gr.element){const it=S(K);Wt(it)&&(Cu(it),ao(it))}En(Q.afterSanitizeShadowDOM,M,null)},Cu=function(M){const K=[{node:M,shadow:null}];for(;K.length>0;){const ye=K.pop();if(ye.shadow){ao(ye.shadow);continue}const je=ye.node,St=(w?w(je):je.nodeType)===gr.element,ln=x(je);if(ln)for(let tn=ln.length-1;tn>=0;--tn)K.push({node:ln[tn],shadow:null});if(St){const tn=R?R(je):null;if(typeof tn=="string"&&we(tn)==="template"){const Xn=je.content;Wt(Xn)&&K.push({node:Xn,shadow:null})}}if(St){const tn=S(je);Wt(tn)&&K.push({node:null,shadow:tn},{node:tn,shadow:null})}}};return t.sanitize=function(ve){let M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=null,ye=null,je=null,it=null;if(et=!ve,et&&(ve="<!-->"),typeof ve!="string"&&!Kn(ve)&&(ve=V$(ve),typeof ve!="string"))throw ia("dirty is not a string, aborting");if(!t.isSupported)return ve;Y?(ge=ie,Te=ee):gt(M),(Q.uponSanitizeElement.length>0||Q.uponSanitizeAttribute.length>0)&&(ge=Ln(ge)),Q.uponSanitizeAttribute.length>0&&(Te=Ln(Te)),t.removed=[];const St=Ne&&typeof ve!="string"&&Kn(ve);if(St){const Xn=R?R(ve):ve.nodeName;if(typeof Xn=="string"){const sr=we(Xn);if(!ge[sr]||qe[sr])throw ia("root node is forbidden and cannot be sanitized in-place")}if(lt(ve))throw ia("root node is clobbered and cannot be sanitized in-place");try{Cu(ve)}catch(sr){throw Lr(ve),sr}}else if(Kn(ve))K=Fr("<!---->"),ye=K.ownerDocument.importNode(ve,!0),ye.nodeType===gr.element&&ye.nodeName==="BODY"||ye.nodeName==="HTML"?K=ye:K.appendChild(ye),Cu(ye);else{if(!Be&&!ot&&!Qe&&ve.indexOf("<")===-1)return N&&mt?I(ve):ve;if(K=Fr(ve),!K)return Be?null:mt?T:""}K&&ue&&_n(K.firstChild);const ln=mr(St?ve:K);try{for(;je=ln.nextNode();)Ci(je),Db(je),Wt(je.content)&&ao(je.content)}catch(Xn){throw St&&Lr(ve),Xn}if(St)return $i(t.removed,Xn=>{Xn.element&&_i(Xn.element)}),ot&&Mr(ve),ve;if(Be){if(ot&&Mr(K),Ye)for(it=se.call(K.ownerDocument);K.firstChild;)it.appendChild(K.firstChild);else it=K;return(Te.shadowroot||Te.shadowrootmode)&&(it=D.call(r,it,!0)),it}let tn=Qe?K.outerHTML:K.innerHTML;return Qe&&ge["!doctype"]&&K.ownerDocument&&K.ownerDocument.doctype&&K.ownerDocument.doctype.name&&xn(rz,K.ownerDocument.doctype.name)&&(tn="<!DOCTYPE "+K.ownerDocument.doctype.name+`>
|
|
170
|
-
`+tn),ot&&(tn=_r(tn)),N&&mt?I(tn):tn},t.setConfig=function(){let ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};gt(ve),Y=!0,ie=ge,ee=Te},t.clearConfig=function(){Pe=null,Y=!1,ie=null,ee=null,N=_,T=""},t.isValidAttribute=function(ve,M,K){Pe||gt({});const ye=we(ve),je=we(M);return ro(ye,je,K)},t.addHook=function(ve,M){typeof M=="function"&&dn(Q,ve)&&Fa(Q[ve],M)},t.removeHook=function(ve,M){if(dn(Q,ve)){if(M!==void 0){const K=B$(Q[ve],M);return K===-1?void 0:U$(Q[ve],K,1)[0]}return Fx(Q[ve])}},t.removeHooks=function(ve){dn(Q,ve)&&(Q[ve]=[])},t.removeAllHooks=function(){Q=Vx()},t}var cz=$v();function dz({code:e}){const t=g.useId().replace(/:/g,""),n=g.useRef(null),[r,a]=g.useState(null),[i,s]=g.useState(!1);return g.useEffect(()=>{let o=!1;return(async()=>{try{const u=(await jv(async()=>{const{default:d}=await import("./mermaid.core.DmtMJcmL.js").then(f=>f.aH);return{default:d}},__vite__mapDeps([0,1]))).default;u.initialize({startOnLoad:!1,theme:"dark",securityLevel:"strict"});const c=await u.render(`mermaid-${t}`,e),p=cz.sanitize(c.svg,{USE_PROFILES:{svg:!0,svgFilters:!0}});o||a(p)}catch{o||s(!0)}})(),()=>{o=!0}},[e,t]),g.useEffect(()=>{n.current&&(n.current.innerHTML=r??"")},[r]),i?l.jsx("pre",{children:l.jsx("code",{children:e})}):l.jsx("div",{ref:n,className:"mermaid-diagram flex justify-center","data-testid":"mermaid-diagram"})}function pz(e){return(e??"").match(/language-(\w+)/)?.[1]??null}function Ed(e){return e==null||typeof e=="boolean"?"":typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(Ed).join(""):typeof e=="object"&&"props"in e?Ed(e.props.children):""}function fz({className:e,children:t,...n}){return pz(e)==="mermaid"?l.jsx(dz,{code:Ed(t).trim()}):l.jsx("code",{className:e,...n,children:t})}function mz({source:e}){return l.jsx(ol.Markdown,{source:e,wrapperElement:{"data-color-mode":"light"},components:{code:fz}})}function gl({targetVar:e,onResizeEnd:t,direction:n="horizontal",invert:r=!1}){const a=g.useRef(null),i=g.useCallback(o=>{o.preventDefault();const u=document.documentElement,p=getComputedStyle(u).getPropertyValue(e).trim(),d=parseFloat(p)||0;a.current={x:o.clientX,y:o.clientY,w:d},o.target.setPointerCapture(o.pointerId);const f=b=>{if(!a.current)return;const E=n==="horizontal"?b.clientX-a.current.x:b.clientY-a.current.y,x=r?-E:E,y=Math.max(0,a.current.w+x);u.style.setProperty(e,`${y}px`)},m=()=>{if(!a.current)return;const b=getComputedStyle(u).getPropertyValue(e).trim(),E=parseFloat(b)||a.current.w;t(Math.round(E)),a.current=null,window.removeEventListener("pointermove",f),window.removeEventListener("pointerup",m)};window.addEventListener("pointermove",f),window.addEventListener("pointerup",m,{once:!0})},[e,t,n,r]),s=n==="horizontal";return l.jsx("hr",{"data-testid":`resize-handle-${s?"h":"v"}`,"aria-orientation":s?"vertical":"horizontal","aria-label":s?"Resize sidebar":"Resize panel",tabIndex:0,className:"resize-handle shrink-0 bg-spur-border hover:bg-spur-accent cursor-col-resize transition-colors border-0",style:{width:s?4:"100%",height:s?"100%":4,margin:0},onPointerDown:i})}const qx="spur:new-task-panel-width",Yx=384,Tc=384;function Zx({id:e,label:t,placeholder:n,value:r,mode:a,onChange:i,onModeChange:s,disabled:o}){return l.jsxs("div",{children:[l.jsxs("div",{className:"flex items-center justify-between gap-2 mb-1.5",children:[l.jsxs("label",{htmlFor:e,className:"text-xs font-semibold text-spur-text-muted uppercase tracking-wide",children:[t," ",l.jsx("span",{className:"text-spur-text-muted font-normal",children:"(optional, markdown)"})]}),l.jsxs("fieldset",{className:"flex items-center gap-1",children:[l.jsxs("legend",{className:"sr-only",children:[t," mode"]}),l.jsx(We,{type:"button",variant:a==="edit"?"primary":"ghost",size:"xs",onClick:()=>s("edit"),disabled:o,"aria-pressed":a==="edit",children:"Edit"}),l.jsx(We,{type:"button",variant:a==="preview"?"primary":"ghost",size:"xs",onClick:()=>s("preview"),disabled:o,"aria-pressed":a==="preview",children:"Preview"})]})]}),a==="edit"?l.jsx("div",{className:"min-h-40","data-testid":`${e}-editor`,children:l.jsx(ol,{value:r,onChange:u=>i(u??""),height:160,textareaProps:{id:e,placeholder:n,disabled:o,"aria-label":t},"data-color-mode":"dark"})}):l.jsx("div",{className:"min-h-40 rounded border border-spur-border bg-spur-bg p-3 text-sm text-spur-text overflow-y-auto","data-testid":`${e}-preview`,children:r.trim()?l.jsx(ol.Markdown,{source:r,"data-color-mode":"dark"}):l.jsx("p",{className:"text-xs text-spur-text-muted",children:n})})]})}function zv({open:e,onClose:t,onCreated:n,folder:r,featureId:a}){const[i,s]=g.useState(""),[o,u]=g.useState(""),[c,p]=g.useState(""),[d,f]=g.useState("edit"),[m,b]=g.useState("edit"),[E,x]=g.useState("standard"),[y,S]=g.useState(!1),[v,w]=g.useState(""),[R,N]=g.useState(!1),[T,_]=g.useState(()=>{if(typeof window>"u")return Yx;try{const I=Number.parseFloat(window.localStorage.getItem(qx)??"");if(Number.isFinite(I)&&I>0)return Math.max(Tc,Math.min(I,window.innerWidth*.9))}catch{}return Yx}),L=R&&i.trim()===""?"Name is required":"";g.useEffect(()=>{document.documentElement.style.setProperty("--new-task-panel-w",`${T}px`)},[T]);const C=()=>{y||(s(""),u(""),p(""),f("edit"),b("edit"),x("standard"),w(""),N(!1),t())},$=async()=>{N(!0);const I=i.trim();if(I!==""){S(!0),w("");try{const W=(await yn.task.create({title:I,folder:r,template:E,featureId:a})).data.wbs,U=[];if(o.trim()&&U.push(`### Background
|
|
171
|
-
${o.trim()}`),c.trim()&&U.push(`### Requirements
|
|
172
|
-
${c.trim()}`),U.length>0)try{await yn.task.body({wbs:W,body:U.join(`
|
|
173
|
-
|
|
174
|
-
`)})}catch(ne){const z=ne instanceof Error?ne.message:"Body seeding failed";typeof window<"u"&&window.dispatchEvent(new CustomEvent("api-error",{detail:{message:`Task created but body seeding failed: ${z}`}}))}C(),n()}catch(P){const W=P instanceof Error?P.message:"Create failed";w(W),typeof window<"u"&&window.dispatchEvent(new CustomEvent("api-error",{detail:{message:W}}))}finally{S(!1)}}};return e?l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"fixed inset-0 bg-black/40 z-40",onClick:C,"aria-hidden":"true"}),l.jsxs("div",{className:"fixed inset-y-0 right-0 max-w-[90vw] bg-spur-surface border-l border-spur-border z-50 flex shadow-2xl",style:{width:T,minWidth:Tc},role:"dialog","aria-label":"New Task",children:[l.jsx(gl,{targetVar:"--new-task-panel-w",onResizeEnd:I=>{const P=typeof window<"u"?window.innerWidth*.9:I,W=Math.max(Tc,Math.min(I,P));_(W);try{window.localStorage.setItem(qx,String(W))}catch{}},direction:"horizontal",invert:!0}),l.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[l.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-spur-border shrink-0",children:[l.jsx("h2",{className:"text-sm font-semibold text-spur-text",children:"New Task"}),l.jsx(We,{variant:"ghost",size:"sm",className:"text-spur-text-muted",onClick:C,"aria-label":"Close",disabled:y,children:"✕"})]}),l.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:[l.jsxs("div",{children:[l.jsxs("label",{htmlFor:"new-task-name",className:"text-xs font-semibold text-spur-text-muted uppercase tracking-wide block mb-1.5",children:["Name ",l.jsx("span",{className:"text-spur-error",children:"*"})]}),l.jsx(Ts,{id:"new-task-name",type:"text",variant:"bordered",size:"sm",error:!!L,className:"w-full bg-spur-bg text-spur-text",placeholder:"Task name",value:i,onChange:I=>{s(I.target.value),R||N(!0)},onBlur:()=>N(!0),disabled:y}),L&&l.jsx("p",{className:"text-xs text-spur-error mt-1",children:L})]}),l.jsxs("div",{children:[l.jsx("label",{htmlFor:"new-task-template",className:"text-xs font-semibold text-spur-text-muted uppercase tracking-wide block mb-1.5",children:"Template"}),l.jsx(Kr,{id:"new-task-template",variant:"bordered",size:"sm",className:"w-full bg-spur-bg text-spur-text",value:E,onChange:I=>x(I.target.value),disabled:y,children:Su.map(I=>l.jsx("option",{value:I,children:I},I))})]}),l.jsx(Zx,{id:"new-task-background",label:"Background",placeholder:"Why this task exists…",value:o,mode:d,onChange:u,onModeChange:f,disabled:y}),l.jsx(Zx,{id:"new-task-requirements",label:"Requirements",placeholder:"What must be done…",value:c,mode:m,onChange:p,onModeChange:b,disabled:y}),v&&l.jsx("div",{className:"text-xs text-spur-error bg-spur-error/10 border border-spur-error/20 rounded p-2",children:v})]}),l.jsxs("div",{className:"flex items-center justify-end gap-2 p-4 border-t border-spur-border shrink-0",children:[l.jsx(We,{variant:"ghost",size:"sm",className:"text-spur-text-muted",onClick:C,disabled:y,children:"Cancel"}),l.jsx(We,{variant:"primary",size:"sm",onClick:$,disabled:y,children:y?"Creating…":"Create Task"})]})]})]})]}):null}const hz=5e3,gz=()=>`${At()}/events/planning`,bz=async(e={})=>yn.task.list(e);class Hv{state={tasks:[],loading:!0,error:null,connected:!1};listeners=[];interval;eventSource;refCount=0;listFn;constructor(t=bz){this.listFn=t}getState=()=>this.state;setListFn=t=>{t!==this.listFn&&(this.listFn=t,this.refresh())};subscribe=t=>(this.listeners.push(t),this.refCount++,this.refCount===1&&(this.refresh(),this.interval=setInterval(this.refresh,hz),this.connectSSE()),()=>{this.listeners=this.listeners.filter(n=>n!==t),this.refCount--,this.refCount===0&&(this.interval&&(clearInterval(this.interval),this.interval=void 0),this.disconnectSSE())});refresh=async()=>{try{const t=await this.listFn();this.state={tasks:t.data??[],loading:!1,error:null,connected:this.state.connected}}catch(t){this.state={...this.state,loading:!1,error:t}}this.emit()};setTasks=t=>{const n=typeof t=="function"?t(this.state.tasks):t;this.state={...this.state,tasks:n},this.emit()};handleSSEOpen=()=>{this.state={...this.state,connected:!0},this.emit()};handleSSEMessage=()=>{this.refresh()};handleSSEError=()=>{this.state={...this.state,connected:!1},this.emit()};async connectSSE(){if(this.eventSource||typeof EventSource>"u")return;const t=new EventSource(gz());this.eventSource=t,t.onopen=this.handleSSEOpen,t.onmessage=this.handleSSEMessage,t.onerror=this.handleSSEError}disconnectSSE(){this.eventSource&&(this.eventSource.close(),this.eventSource=void 0,this.state={...this.state,connected:!1})}emit(){for(const t of this.listeners)t()}}let Sc=null;function Ez(){return Sc||(Sc=new Hv),Sc}function Gv(e){const t=g.useRef(null);e&&!t.current&&(t.current=new Hv(e));const n=t.current??Ez();return g.useEffect(()=>{e&&t.current&&t.current.setListFn(e)},[e]),{...g.useSyncExternalStore(n.subscribe,n.getState),setTasks:n.setTasks}}function xz({progress:e,isDismissed:t,onDismiss:n,onReopen:r}){const{status:a,runId:i,action:s,error:o}=e,u=g.useRef(null);if(g.useEffect(()=>{a==="failed"&&t&&i&&u.current!==i&&(u.current=i,typeof window<"u"&&window.dispatchEvent(new CustomEvent("api-error",{detail:{message:o||`Action ${s||"job"} failed`}})))},[a,t,i,s,o]),a==="idle"||!i)return null;const c=a==="queued"||a==="running";if(t)return c?l.jsx("div",{className:"fixed bottom-4 right-4 z-40",children:l.jsxs("button",{type:"button",onClick:r,className:"flex items-center gap-2 px-3 py-1.5 bg-spur-bg border border-spur-border hover:border-spur-primary text-spur-text text-xs rounded-full shadow-md font-medium transition-colors",children:[l.jsx("span",{className:"w-2 h-2 rounded-full bg-blue-500 animate-pulse"}),l.jsxs("span",{children:[s?`${s.charAt(0).toUpperCase()}${s.slice(1)}`:"Action"," (",a,")"]}),l.jsx("span",{className:"text-spur-text-muted",children:"⤢"})]})}):null;const p=a==="succeeded"?"success":a==="failed"?"error":a==="running"?"accent":"warning";return l.jsxs("div",{className:"fixed bottom-4 right-4 z-40 w-80 p-4 bg-spur-bg border border-spur-border rounded-lg shadow-xl backdrop-blur flex flex-col gap-3",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-sm font-semibold text-spur-text",children:s?`${s.charAt(0).toUpperCase()}${s.slice(1)}`:"Action"}),l.jsx(Rt,{variant:p,children:a})]}),l.jsx("button",{type:"button",onClick:n,className:"text-spur-text-muted hover:text-spur-text text-base font-bold leading-none p-1","aria-label":"Dismiss progress panel",children:"×"})]}),l.jsxs("div",{className:"text-xs text-spur-text-muted font-mono truncate",children:["ID: ",i]}),c&&l.jsxs("div",{className:"flex items-center gap-2 text-xs text-spur-text",children:[l.jsx(_a,{className:"w-3.5 h-3.5"}),l.jsx("span",{children:a==="queued"?"Enqueued in job runner...":"Running agent slash command..."})]}),a==="succeeded"&&l.jsx("div",{className:"text-xs text-green-400 font-medium",children:"✓ Action completed successfully."}),a==="failed"&&l.jsxs("div",{className:"text-xs text-red-400 font-medium break-words",children:["✕ ",o||"Action job failed."]}),!c&&l.jsx("div",{className:"flex justify-end pt-1",children:l.jsx(We,{variant:"outline",size:"sm",onClick:n,children:"Close"})})]})}const yz={backlog:["brainstorm","plan","add-child","add-task","start","cancel"],active:["add-child","add-task","link-task","sync-status","verify","block","cancel"],verifying:["sync-status","complete","rework","cancel"],blocked:["add-child","add-task","unblock","cancel"],done:[],cancelled:[]},br={brainstorm:"Brainstorm",plan:"Plan","add-child":"+ Child","add-task":"+ Task","link-task":"Link Task","sync-status":"Sync",start:"Start",verify:"Verify",complete:"Complete",rework:"Rework",block:"Block",unblock:"Unblock",cancel:"Cancel"},Tz={start:"primary",verify:"primary",complete:"primary",unblock:"primary",brainstorm:"secondary",plan:"secondary","add-child":"secondary","add-task":"secondary","link-task":"secondary","sync-status":"secondary",block:"hazard",rework:"hazard",cancel:"hazard"},Sz={start:!0,verify:!0,complete:!0,rework:!0,block:!0,unblock:!0,cancel:!0},vz={start:"active",verify:"verifying",complete:"done",rework:"active",block:"blocked",unblock:"active",cancel:"cancelled"};function Wv({open:e,parentId:t,onClose:n,onCreated:r}){const[a,i]=g.useState(""),[s,o]=g.useState(!1),[u,c]=g.useState(""),[p,d]=g.useState(!1),f=p&&a.trim()===""?"Name is required":"",m=()=>{i(""),d(!1),c(""),n()},b=async()=>{d(!0);const E=a.trim();if(E!==""){o(!0),c("");try{t?await Pv({id:t,name:E}):await A$(E),m(),r()}catch(x){const y=x instanceof Error?x.message:"Create failed";c(y)}finally{o(!1)}}};return e?l.jsx("div",{className:"fixed inset-y-0 right-0 z-40 flex","data-new-feature-panel":!0,children:l.jsxs("div",{className:"w-96 border-l border-spur-border bg-spur-surface shadow-xl flex flex-col",children:[l.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-spur-border shrink-0",children:[l.jsx("h3",{className:"text-sm font-semibold text-spur-text",children:t?"New Child Feature":"New Feature"}),l.jsx(We,{variant:"ghost",size:"xs",onClick:m,"aria-label":"Close panel",children:"✕"})]}),l.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:[t&&l.jsxs("div",{className:"text-xs text-spur-text-muted",children:["Parent: ",l.jsx("span",{className:"font-mono text-spur-accent",children:t})]}),l.jsxs("div",{children:[l.jsx("label",{htmlFor:"new-feature-name",className:"block text-xs font-medium text-spur-text mb-1",children:"Feature Name *"}),l.jsx(Ts,{id:"new-feature-name",value:a,onChange:E=>{i(E.target.value),p||d(!0)},onKeyDown:E=>{E.key==="Enter"&&a.trim()&&b()},placeholder:"e.g. Authentication module",disabled:s}),f&&l.jsx("p",{className:"text-xs text-red-500 mt-1",children:f}),u&&l.jsx("p",{className:"text-xs text-red-500 mt-1",children:u})]}),l.jsx("div",{className:"text-xs text-spur-text-muted",children:t?`The feature ID will be auto-allocated (next free digit under ${t}).`:"The feature ID will be auto-allocated (next free letter A–Z)."})]}),l.jsxs("div",{className:"flex items-center justify-end gap-2 px-4 py-3 border-t border-spur-border shrink-0",children:[l.jsx(We,{variant:"ghost",size:"xs",onClick:m,disabled:s,children:"Cancel"}),l.jsx(We,{variant:"primary",size:"xs",onClick:b,disabled:s||a.trim()==="",loading:s,children:"Create Feature"})]})]})}):null}const Vv={backlog:{status:"backlog",label:"Backlog",colorClass:"text-spur-text-muted",Icon:({className:e="w-3.5 h-3.5",ariaLabel:t})=>l.jsx("svg",{className:`inline-block shrink-0 ${e}`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.75",role:"img","aria-label":t,children:l.jsx("rect",{x:"3",y:"3",width:"10",height:"10",rx:"2.5",strokeDasharray:"2 2"})})},active:{status:"active",label:"Active",colorClass:"text-spur-accent",Icon:({className:e="w-3.5 h-3.5",ariaLabel:t})=>l.jsx("svg",{className:`inline-block shrink-0 ${e}`,viewBox:"0 0 16 16",fill:"currentColor",role:"img","aria-label":t,children:l.jsx("circle",{cx:"8",cy:"8",r:"4.5"})})},verifying:{status:"verifying",label:"Verifying",colorClass:"text-spur-warning",Icon:({className:e="w-3.5 h-3.5",ariaLabel:t})=>l.jsxs("svg",{className:`inline-block shrink-0 ${e}`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.75",role:"img","aria-label":t,children:[l.jsx("path",{d:"M1.5 8s2.5-4 6.5-4 6.5 4 6.5 4-2.5 4-6.5 4-6.5-4-6.5-4z"}),l.jsx("circle",{cx:"8",cy:"8",r:"2"})]})},blocked:{status:"blocked",label:"Blocked",colorClass:"text-spur-error",Icon:({className:e="w-3.5 h-3.5",ariaLabel:t})=>l.jsxs("svg",{className:`inline-block shrink-0 ${e}`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",role:"img","aria-label":t,children:[l.jsx("path",{d:"M8 2.5l5.5 10.5H2.5L8 2.5z"}),l.jsx("path",{d:"M8 6v3"}),l.jsx("circle",{cx:"8",cy:"11.5",r:"0.5",fill:"currentColor"})]})},done:{status:"done",label:"Done",colorClass:"text-spur-success",Icon:({className:e="w-3.5 h-3.5",ariaLabel:t})=>l.jsx("svg",{className:`inline-block shrink-0 ${e}`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",role:"img","aria-label":t,children:l.jsx("path",{d:"M3.5 8.5l3.5 3.5 5.5-7"})})},cancelled:{status:"cancelled",label:"Cancelled",colorClass:"text-spur-text-faint",Icon:({className:e="w-3.5 h-3.5",ariaLabel:t})=>l.jsxs("svg",{className:`inline-block shrink-0 ${e}`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",role:"img","aria-label":t,children:[l.jsx("path",{d:"M5.5 2.5h5l3 3v5l-3 3h-5l-3-3v-5l3-3z"}),l.jsx("path",{d:"M6.25 6.25l3.5 3.5M9.75 6.25l-3.5 3.5"})]})}};function qv(e){const t=Vv[e.toLowerCase()];return t?t.label:`Unknown status: ${e}`}function mb({status:e,className:t}){const n=e.toLowerCase(),r=Vv[n];if(r){const a=r.Icon;return l.jsx(a,{className:`${r.colorClass} ${t??"w-3.5 h-3.5"}`,ariaLabel:r.label})}return l.jsx("svg",{className:`inline-block shrink-0 text-spur-text-muted ${t??"w-3.5 h-3.5"}`,viewBox:"0 0 16 16",fill:"currentColor",role:"img","aria-label":qv(e),children:l.jsx("circle",{cx:"8",cy:"8",r:"4"})})}function Yv(e){return e?e.startsWith("feature.")||e.startsWith("queue.job."):!1}function wz(e){if(!e||typeof e!="object")return null;const t=e;if(typeof t.jobId=="string"&&t.jobId.length>0)return t.jobId;if(typeof t.runId=="string"&&t.runId.length>0)return t.runId;if(t.job&&typeof t.job=="object"){const n=t.job;if(typeof n.id=="string"&&n.id.length>0)return n.id;if(typeof n.jobId=="string"&&n.jobId.length>0)return n.jobId}return null}function Az(e,t){return t?wz(e)===t:!1}const vc={status:"idle"};function Nz(e,t,n){if(e.status==="idle"||!e.runId||!Az(n,e.runId))return e;switch(t){case"queue.job.enqueued":case"queue.job.created":return{...e,status:"queued"};case"queue.job.started":case"queue.job.running":return{...e,status:"running"};case"queue.job.completed":return{...e,status:"succeeded"};case"queue.job.failed":{const r=n&&typeof n=="object"&&typeof n.error=="string"?n.error:"Job failed";return{...e,status:"failed",error:r}}default:return e}}const _z=()=>`${At()}/events/planning`;function Cz(e){const[t,n]=g.useState(vc);g.useEffect(()=>{e&&n(vc)},[e]);const r=g.useCallback((i,s)=>{n({status:"queued",runId:i,action:s})},[]),a=g.useCallback(()=>{n(vc)},[]);return g.useEffect(()=>{if(typeof EventSource>"u"||!t.runId)return;const i=new EventSource(_z());return i.onmessage=s=>{try{const o=JSON.parse(s.data),u=o.eventName;if(!Yv(u)||!u)return;n(c=>Nz(c,u,o.payload))}catch{}},()=>{i.close()}},[t.runId]),{progress:t,trackAction:r,clearProgress:a}}function kz({featureId:e,onClose:t,refreshKey:n=0,childFeatures:r=[],onSelectFeature:a}){const[i,s]=g.useState(null),[o,u]=g.useState(""),[c,p]=g.useState(""),[d,f]=g.useState("preview"),[m,b]=g.useState(!1),[E,x]=g.useState(!1),[y,S]=g.useState(null),[v,w]=g.useState({}),[R,N]=g.useState(!1),[T,_]=g.useState(null),[L,C]=g.useState(null),[$,I]=g.useState(!1),[P,W]=g.useState(null),[U,ne]=g.useState(null),[z,se]=g.useState(""),[pe,D]=g.useState("claude"),[Q,de]=g.useState("push"),[O,Ce]=g.useState(!1),[De,J]=g.useState(!1),{progress:_e,trackAction:fe}=Cz(e),[X,Ge]=g.useState(!1),ge=g.useRef(null),me=g.useRef(d);me.current=d,g.useEffect(()=>{if(!R||$||P||U)return;const H=Re=>{Re.key==="Escape"&&N(!1)};return document.addEventListener("keydown",H),()=>document.removeEventListener("keydown",H)},[R,$,P,U]);const{tasks:Te}=Gv(),Se=(Te??[]).filter(H=>H.featureId===e),oe=g.useRef(0),qe=g.useCallback(()=>++oe.current,[]),at=g.useCallback(H=>H===oe.current,[]),ft=g.useCallback(async()=>{const H=qe(),Re=await Rx(e);return at(H)?Re:null},[e,qe,at]),Dt=g.useCallback((H,Re)=>{if(s(H),ge.current=H.id,w(H.frontmatter),Re?.body!==!1){const et=Iz(H.content);u(et),p(et)}},[]),xt=g.useCallback(async H=>{const Re=await ft();return Re&&(Dt(Re,H),b(!1)),Re},[ft,Dt]),Ut=g.useCallback((H,Re)=>{const et=H instanceof Error?H.message:Re;C({kind:"error",message:et}),typeof window<"u"&&window.dispatchEvent(new CustomEvent("api-error",{detail:{message:et}}))},[]),Kt=g.useMemo(()=>({featureId:e,generation:n}),[e,n]);g.useEffect(()=>{const{featureId:H}=Kt;if(!H){s(null),ge.current=null,u(""),p(""),f("preview"),S(null),C(null);return}const Re=ge.current===H,et=Re&&me.current==="edit";Re||(f("preview"),b(!0)),S(null);const Ke=qe();(async()=>{try{const $t=await Rx(H);if(!at(Ke))return;Dt($t,{body:!et})}catch($t){if(!at(Ke))return;S($t instanceof Error?$t.message:"Failed to load feature")}finally{at(Ke)&&b(!1)}})()},[Kt,qe,at,Dt]);const ot=async()=>{Ce(!1);try{await xt({body:!1})}catch{}},Oe=async()=>{J(!1);try{await xt()}catch{}};if(y)return l.jsx("div",{className:"flex items-center justify-center h-full p-4",children:l.jsx("p",{className:"text-sm text-red-500",children:y})});if(!i)return l.jsx("div",{className:"flex items-center justify-center h-full text-spur-text-muted text-sm",children:"Select a feature to view details"});const Qe=()=>{p(o),f("edit")},Y=()=>{p(o),f("preview")},ie=async()=>{x(!0);try{await v$({id:e,body:c}),u(c),f("preview"),await xt()}catch(H){p(o),f("preview");const Re=H instanceof Error?H.message:"Save failed";typeof window<"u"&&window.dispatchEvent(new CustomEvent("api-error",{detail:{message:Re}}))}finally{x(!1)}},ee=H=>{if(!T){if(C(null),Sz[H]){Be(H);return}if(H==="brainstorm"||H==="plan"){W(H);return}if(H==="add-child"){J(!0);return}if(H==="add-task"){Ce(!0);return}if(H==="link-task"){ne(H),se("");return}if(H==="sync-status"){W("sync-status");return}}},ue=async H=>{const Re=vz[H];if(Re){_(H),C(null);try{const et=await S$(e,Re);s(Ke=>Ke&&{...Ke,status:et}),await xt({body:!1}),C({kind:"ok",message:`${br[H]??H}: status is now ${et}.`})}catch(et){Ut(et,"Transition failed")}finally{_(null)}}},Be=async H=>{if(H==="cancel"){I(!0);return}await ue(H)},Ye=async()=>{I(!1),await ue("cancel")},mt=async()=>{const H=U;if(!(!H||!z.trim())){ne(null),_(H),C(null);try{H==="add-child"?await Pv({id:e,name:z.trim()}):H==="add-task"?await N$({id:e,title:z.trim()}):H==="link-task"&&await _$({id:e,wbs:z.trim()}),await xt({body:!1}),C({kind:"ok",message:`${br[H]??H} completed.`})}catch(Re){Ut(Re,"Action failed")}finally{_(null)}}},Ot=async()=>{if(!P)return;const H=P;W(null),_(H),C(null);try{if(H==="sync-status"){const Re=await C$({id:e,direction:Q});await xt({body:!1});const et=Re.data?.applied,Ke=Re.data?.newStatus;C({kind:"ok",message:et?`Sync applied${Ke?`: status is now ${Ke}`:""}.`:"Sync finished — no status change was needed."})}else{const Re=await w$({id:e,action:H,channel:pe});Re?.data?.runId&&(fe(Re.data.runId,H),Ge(!1)),await xt({body:!1}),C({kind:"ok",message:`${br[H]??H} dispatched on ${pe}.`})}}catch(Re){Ut(Re,"Action failed")}finally{_(null)}},Nt=H=>{if(!H)return"";try{const Re=new Date(H);return Number.isNaN(Re.getTime())?"":Re.toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}catch{return""}},Pt=H=>{if(!H)return"";try{const Re=new Date(H);if(Number.isNaN(Re.getTime()))return"";const et=Date.now()-Re.getTime(),Ke=Math.floor(et/864e5);return Ke===0?"today":Ke===1?"yesterday":Ke<30?`${Ke}d ago`:Ke<365?`${Math.floor(Ke/30)}mo ago`:`${Math.floor(Ke/365)}y ago`}catch{return""}},ae=Array.isArray(v.tags)?v.tags:[],Ne=Nt(v.created_at),ze=Pt(v.created_at),Me=Nt(v.updated_at),Ct=Pt(v.updated_at),Qt=H=>{window.location.assign(`/board/tasks/${H}`)},Le=yz[i.status]??[],ht=H=>Tz[H]??"secondary",Xe=Le.filter(H=>ht(H)==="primary"),It=Le.filter(H=>ht(H)==="secondary"),Je=Le.filter(H=>ht(H)==="hazard");return l.jsxs("div",{className:"relative flex flex-col h-full",children:[l.jsxs("div",{className:"flex items-start justify-between gap-3 p-3 border-b border-spur-border shrink-0",children:[l.jsxs("div",{className:"flex flex-col gap-1 overflow-hidden",children:[l.jsxs("h3",{className:"text-sm font-semibold text-spur-text truncate",children:[i.id," — ",i.name]}),l.jsxs("div",{className:"flex flex-wrap items-center gap-1","data-testid":"header-chips",children:[l.jsx("span",{className:"px-2 py-0.5 rounded-full border border-spur-border text-xs text-spur-text-muted","data-testid":"status-pill",children:i.status}),typeof i.frontmatter.priority=="string"&&l.jsx("span",{className:"px-2 py-0.5 rounded-full bg-spur-accent/15 text-xs text-spur-accent",children:i.frontmatter.priority}),ae.map(H=>l.jsx("span",{className:"px-2 py-0.5 rounded-full border border-spur-border text-xs text-spur-text-muted",children:H},H))]})]}),l.jsxs("div",{className:"flex flex-wrap items-center justify-end gap-1 shrink-0",children:[[["primary",Xe],["secondary",It]].map(([H,Re])=>Re.map(et=>l.jsx(We,{variant:H==="primary"?"primary":"outline",size:"xs",onClick:()=>ee(et),disabled:T!==null,"aria-busy":T===et,"aria-label":br[et],"data-action-tier":H,children:T===et?"…":br[et]},et))),Je.length>0&&l.jsx("div",{className:"flex items-center gap-1 border-l border-spur-border pl-1.5 ml-1.5",children:Je.map(H=>l.jsx(We,{variant:"ghost",size:"xs",className:"text-spur-error",onClick:()=>ee(H),disabled:T!==null,"aria-busy":T===H,"aria-label":br[H],"data-action-tier":"hazard",children:T===H?"…":br[H]},H))}),d==="preview"?l.jsx(We,{variant:"ghost",size:"xs",className:"text-spur-text-muted hover:text-spur-accent",onClick:Qe,disabled:m,"aria-label":"Edit body",children:"Edit"}):l.jsxs(l.Fragment,{children:[l.jsx(We,{variant:"primary",size:"xs",onClick:ie,disabled:E,"aria-label":"Save body",children:E?"Saving…":"Save"}),l.jsx(We,{variant:"ghost",size:"xs",className:"text-spur-text-muted hover:text-spur-accent",onClick:Y,disabled:E,"aria-label":"Cancel edit",children:"Cancel"})]}),l.jsx(We,{variant:"ghost",size:"xs",className:"text-spur-text-muted",onClick:()=>N(H=>!H),"aria-expanded":R,"aria-controls":"feature-metadata-panel","data-testid":"metadata-toggle",children:"ℹ Metadata"}),t&&l.jsx(We,{variant:"ghost",size:"xs",className:"text-spur-text-muted",onClick:t,"aria-label":"Close detail",children:"✕"})]})]}),L&&l.jsx("div",{role:"status","data-testid":"action-feedback","data-kind":L.kind,className:`px-3 py-1.5 text-xs border-b border-spur-border shrink-0 ${L.kind==="error"?"bg-spur-error/10 text-spur-error":"bg-spur-success/10 text-spur-success"}`,children:L.message}),l.jsx("div",{className:"flex-1 flex flex-col overflow-hidden p-3","data-testid":"feature-body-section",children:m?l.jsxs("div",{className:"flex items-center gap-2 text-sm text-spur-text-muted",children:[l.jsx(_a,{size:"xs",className:"text-spur-accent"}),"Loading body…"]}):d==="edit"?l.jsx("div",{className:"flex-1 min-h-0 w-full","data-testid":"body-editor",children:l.jsx(ol,{value:c,onChange:H=>p(H??""),height:"100%","data-color-mode":"light"})}):l.jsx("div",{className:"flex-1 overflow-y-auto w-full","data-testid":"body-preview",children:l.jsx(mz,{source:o})})}),$&&l.jsx("div",{role:"dialog","aria-modal":"true","aria-label":"Confirm cancel feature",tabIndex:-1,className:"fixed inset-0 z-50 flex items-center justify-center bg-black/40",onClick:H=>{H.target===H.currentTarget&&I(!1)},onKeyDown:H=>{H.key==="Escape"&&I(!1)},children:l.jsxs("div",{className:"bg-spur-surface border border-spur-border rounded-lg shadow-xl p-4 mx-4 max-w-xs w-full",children:[l.jsxs("p",{className:"text-sm text-spur-text mb-4",children:["Cancel feature ",l.jsx("strong",{children:e}),"? This marks it as cancelled and cannot be undone from the board."]}),l.jsxs("div",{className:"flex justify-end gap-2",children:[l.jsx(We,{variant:"ghost",size:"xs",onClick:()=>I(!1),children:"Keep"}),l.jsx(We,{variant:"error",size:"xs",onClick:Ye,children:"Cancel feature"})]})]})}),P&&l.jsx("div",{role:"dialog","aria-modal":"true","aria-label":`Configure ${P} action`,tabIndex:-1,className:"fixed inset-0 z-50 flex items-center justify-center bg-black/40",onClick:H=>{H.target===H.currentTarget&&W(null)},onKeyDown:H=>{H.key==="Escape"&&W(null)},children:l.jsxs("div",{className:"bg-spur-surface border border-spur-border rounded-lg shadow-xl p-4 mx-4 max-w-sm w-full",children:[P==="sync-status"?l.jsxs(l.Fragment,{children:[l.jsx("h4",{className:"text-sm font-semibold text-spur-text mb-3",children:"Sync Status — Direction"}),l.jsx("div",{className:"space-y-3",children:l.jsxs(Kr,{variant:"bordered",size:"sm",className:"w-full bg-spur-bg text-spur-text",value:Q,onChange:H=>de(H.target.value),children:[l.jsx("option",{value:"push",children:"Push (feature → tasks)"}),l.jsx("option",{value:"pull",children:"Pull (tasks → feature)"})]})})]}):l.jsxs(l.Fragment,{children:[l.jsxs("h4",{className:"text-sm font-semibold text-spur-text mb-3",children:[br[P]," — Select Channel"]}),l.jsxs("div",{className:"space-y-3",children:[l.jsx(Kr,{variant:"bordered",size:"sm",className:"w-full bg-spur-bg text-spur-text",value:pe,onChange:H=>D(H.target.value),children:["claude","codex","gemini","pi","opencode","antigravity","openclaw"].map(H=>l.jsx("option",{value:H,children:H},H))}),l.jsxs("label",{htmlFor:"skip-deps",className:"flex items-center gap-2 cursor-pointer",children:[l.jsx(eb,{id:"skip-deps",size:"xs",checked:!1,onChange:()=>{}}),l.jsx("span",{className:"text-xs text-spur-text",children:"Skip dependencies"})]})]})]}),l.jsxs("div",{className:"flex justify-end gap-2 mt-4",children:[l.jsx(We,{variant:"ghost",size:"xs",onClick:()=>W(null),children:"Cancel"}),l.jsx(We,{variant:"primary",size:"xs",onClick:Ot,children:T===P?"Dispatching…":"Dispatch"})]})]})}),U&&l.jsx("div",{role:"dialog","aria-modal":"true","aria-label":`${br[U]} input`,tabIndex:-1,className:"fixed inset-0 z-50 flex items-center justify-center bg-black/40",onClick:H=>{H.target===H.currentTarget&&ne(null)},onKeyDown:H=>{H.key==="Escape"&&ne(null)},children:l.jsxs("div",{className:"bg-spur-surface border border-spur-border rounded-lg shadow-xl p-4 mx-4 max-w-sm w-full",children:[l.jsx("h4",{className:"text-sm font-semibold text-spur-text mb-3",children:br[U]}),U==="link-task"?l.jsxs(Kr,{variant:"bordered",size:"sm",className:"w-full bg-spur-bg text-spur-text",value:z,onChange:H=>se(H.target.value),children:[l.jsx("option",{value:"",children:"— Select a task —"}),(Te??[]).filter(H=>H.featureId!==e).map(H=>l.jsxs("option",{value:H.wbs,children:[H.wbs," — ",H.name]},H.wbs))]}):l.jsx("input",{type:"text",className:"w-full px-3 py-2 rounded border border-spur-border bg-spur-bg text-sm text-spur-text focus:outline-none focus:border-spur-accent",placeholder:"Enter child feature name",value:z,onChange:H=>se(H.target.value),onKeyDown:H=>{H.key==="Enter"&&z.trim()&&mt()}}),l.jsxs("div",{className:"flex justify-end gap-2 mt-4",children:[l.jsx(We,{variant:"ghost",size:"xs",onClick:()=>ne(null),children:"Cancel"}),l.jsx(We,{variant:"primary",size:"xs",onClick:mt,disabled:!z.trim()||T===U,children:T===U?"…":"Create"})]})]})}),l.jsx(zv,{open:O,onClose:()=>Ce(!1),onCreated:ot,folder:["docs","tasks2"].join("/"),featureId:e}),l.jsx(Wv,{open:De,parentId:e,onClose:()=>J(!1),onCreated:Oe}),l.jsx(xz,{progress:_e,isDismissed:X,onDismiss:()=>Ge(!0),onReopen:()=>Ge(!1)}),l.jsx("aside",{id:"feature-metadata-panel","data-testid":"feature-metadata-panel","aria-label":"Feature metadata","aria-hidden":!R,className:`absolute inset-y-0 right-0 z-30 w-80 max-w-full flex flex-col overflow-hidden border-l border-spur-border bg-base-200 shadow-xl transition-transform duration-200 ${R?"translate-x-0":"translate-x-full"}`,children:R&&l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-spur-border bg-base-300/60 shrink-0",children:[l.jsxs("span",{className:"text-xs font-semibold text-spur-text flex items-center gap-1.5",children:[l.jsx("span",{children:"ℹ"})," Metadata"]}),l.jsx(We,{variant:"ghost",size:"xs",className:"text-spur-text-muted hover:text-spur-accent h-5 w-5 p-0 text-xs flex items-center justify-center",onClick:()=>N(!1),"aria-label":"Close metadata",title:"Close metadata",children:"✕"})]}),l.jsxs("div",{className:"flex-1 overflow-y-auto p-3 space-y-3",children:[l.jsxs("div",{children:[l.jsx("span",{className:"text-xs text-spur-text-muted block mb-1.5",children:"Status"}),l.jsx("span",{className:"text-sm text-spur-text","data-testid":"metadata-status",children:i.status})]}),(Ne||Me)&&l.jsxs("div",{className:"space-y-1.5",children:[l.jsx("span",{className:"text-xs text-spur-text-muted block",children:"Dates"}),Ne&&l.jsxs("div",{className:"flex items-center gap-1.5 text-xs",children:[l.jsx("span",{className:"text-spur-text-muted w-14 shrink-0",children:"Created"}),l.jsx("span",{className:"text-spur-text",children:Ne}),l.jsxs("span",{className:"text-spur-text-muted",children:["(",ze,")"]})]}),Me&&l.jsxs("div",{className:"flex items-center gap-1.5 text-xs",children:[l.jsx("span",{className:"text-spur-text-muted w-14 shrink-0",children:"Updated"}),l.jsx("span",{className:"text-spur-text",children:Me}),l.jsxs("span",{className:"text-spur-text-muted",children:["(",Ct,")"]})]})]}),ae.length>0&&l.jsxs("div",{children:[l.jsx("span",{className:"text-xs text-spur-text-muted block mb-1.5",children:"Tags"}),l.jsx("div",{className:"flex flex-wrap gap-1",children:ae.map(H=>l.jsx(Rt,{variant:"outline",size:"xs",className:"text-spur-text-muted",children:H},H))})]}),l.jsxs("div",{className:"flex items-center gap-1.5 text-xs",children:[l.jsx("span",{className:"text-spur-text-muted w-14 shrink-0",children:"File"}),l.jsx("span",{className:"text-spur-text font-mono truncate",children:i.filePath})]}),r.length>0&&l.jsxs("div",{children:[l.jsxs("span",{className:"text-xs text-spur-text-muted block mb-1.5",children:["Child features (",r.length,")"]}),l.jsx("div",{className:"space-y-1",children:r.map(H=>l.jsxs("button",{type:"button",onClick:()=>a?.(H.id),className:"flex items-center gap-2 w-full text-xs text-left hover:underline cursor-pointer","aria-label":`Open child feature ${H.id}: ${H.name}`,children:[l.jsx("span",{className:"shrink-0 text-[13px]",title:H.status,children:l.jsx(mb,{status:H.status})}),l.jsx("span",{className:"font-mono text-spur-accent shrink-0",children:H.id}),l.jsx("span",{className:"text-spur-text truncate flex-1 min-w-0",children:H.name})]},H.id))})]}),l.jsxs("div",{children:[l.jsxs("span",{className:"text-xs text-spur-text-muted block mb-1.5",children:["Linked Tasks (",Se.length,")"]}),Se.length===0?l.jsx("span",{className:"text-xs text-spur-text-muted italic",children:"No linked tasks"}):l.jsx("div",{className:"space-y-1",children:Se.map(H=>l.jsxs("div",{className:"flex items-center gap-2 w-full text-xs",children:[l.jsx("span",{className:"shrink-0 text-[13px]",title:H.status,children:pb(H.status)}),l.jsxs("button",{type:"button",onClick:()=>Qt(H.wbs),className:"flex items-center gap-2 flex-1 min-w-0 text-left hover:underline cursor-pointer","aria-label":`Go to task ${H.wbs}: ${H.name}`,children:[l.jsx("span",{className:"font-mono text-spur-accent shrink-0",children:H.wbs}),l.jsx("span",{className:"text-spur-text truncate",children:H.name})]}),l.jsx("span",{className:"px-1.5 py-0.5 rounded-full border border-spur-border text-[10px] text-spur-text-muted shrink-0",children:H.status})]},H.wbs))})]})]})]})})]})}function Iz(e){const t=e.match(/^---\n[\s\S]*?\n---\n/);return t?e.slice(t[0].length):e}function Zv(e,t){return e.id.localeCompare(t.id)}function Rz({features:e,selectedId:t,onSelect:n}){const[r,a]=g.useState(()=>new Set),i=g.useCallback(u=>{a(c=>{const p=new Set(c);return p.has(u)?p.delete(u):p.add(u),p})},[]),s=e.filter(u=>u.id.length===1).slice().sort(Zv),o=Kv(e);return l.jsx("ul",{className:"py-1","data-feature-tree":!0,children:s.map(u=>l.jsx(Xv,{feature:u,childrenMap:o,selectedId:t,onSelect:n,collapsedIds:r,onToggleFold:i,depth:0},u.id))})}function Kv(e){const t=new Map;for(const n of e){if(n.id.length<=1)continue;const r=n.id.slice(0,-1),a=t.get(r);a?a.push(n):t.set(r,[n])}for(const n of t.values())n.sort(Zv);return t}function Xv({feature:e,childrenMap:t,selectedId:n,onSelect:r,collapsedIds:a,onToggleFold:i,depth:s}){const o=t.get(e.id),u=o!==void 0&&o.length>0,c=a.has(e.id),p=e.id===n,d=`${s*16}px`;return l.jsxs("li",{children:[l.jsxs("div",{className:`w-full flex items-center transition-colors hover:bg-base-300 ${p?"bg-spur-accent/10 text-spur-accent font-semibold":"text-spur-text"}`,style:{paddingLeft:`calc(0.25rem + ${d})`},children:[u?l.jsx("button",{type:"button",onClick:f=>{f.stopPropagation(),i(e.id)},"aria-expanded":!c,"aria-controls":`feature-tree-children-${e.id}`,"aria-label":`${c?"Expand":"Collapse"} ${e.id}: ${e.name}`,className:"p-1 hover:bg-base-100 rounded text-spur-text-muted hover:text-spur-text text-[10px] flex items-center justify-center shrink-0 w-5 h-5 cursor-pointer",children:l.jsx("span",{className:`inline-block transition-transform duration-150 ${c?"":"rotate-90"}`,"aria-hidden":"true",children:"▶"})}):l.jsx("span",{className:"w-5 shrink-0","aria-hidden":"true"}),l.jsxs("button",{type:"button",onClick:()=>r(e.id),className:`flex-1 flex items-center gap-1.5 px-1.5 py-1 text-left text-sm truncate min-w-0 cursor-pointer ${p?"bg-spur-accent/10 text-spur-accent font-semibold":"text-spur-text"}`,children:[l.jsx(Y5,{position:"right",tip:qv(e.status),className:"flex! w-4 shrink-0 items-center justify-center","data-testid":"feature-tree-status",children:l.jsx(mb,{status:e.status})}),l.jsx("span",{className:"text-xs font-mono text-spur-text-muted shrink-0",children:e.id}),l.jsx("span",{className:"flex-1 truncate",children:e.name})]})]}),u&&!c&&l.jsx("ul",{id:`feature-tree-children-${e.id}`,children:o.map(f=>l.jsx(Xv,{feature:f,childrenMap:t,selectedId:n,onSelect:r,collapsedIds:a,onToggleFold:i,depth:s+1},f.id))})]})}function Dz(){const[e,t]=g.useState(!1),[n,r]=g.useState(""),[a,i]=g.useState(null),s=()=>{r(""),i("Agent dispatch is not wired yet — this bar is UI only (F84 R6).")};return e?l.jsxs("div",{className:"fixed bottom-4 left-1/2 -translate-x-1/2 z-30 w-[calc(100vw-2rem)] max-w-[84rem] backdrop-blur-md bg-base-100/80 border border-spur-border shadow-2xl rounded-2xl p-2.5 flex flex-col gap-2","data-testid":"agent-bar",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(Rt,{variant:"outline",size:"sm",className:"shrink-0 font-mono",children:"agent · stub"}),l.jsx(V5,{rows:1,value:n,onChange:o=>r(o.target.value),placeholder:"Ask a coding agent to refine or implement this feature…","aria-label":"Agent prompt",className:"flex-1 min-h-9 resize-none bg-transparent","data-testid":"agent-bar-input"}),l.jsx(We,{variant:"primary",size:"sm",disabled:n.trim().length===0,onClick:s,children:"Send"}),l.jsx(We,{variant:"ghost",size:"sm",onClick:()=>t(!1),"aria-label":"Collapse agent prompt bar","aria-expanded":!0,children:"▾"})]}),a&&l.jsx("p",{role:"status",className:"px-1 text-xs text-spur-text-muted",children:a})]}):l.jsx(We,{variant:"ghost",className:"fixed bottom-6 right-6 z-30 h-12 w-12 rounded-full backdrop-blur-md bg-base-100/80 border border-spur-border shadow-2xl text-xl",onClick:()=>t(!0),"aria-label":"Open agent prompt bar","aria-expanded":!1,"data-testid":"agent-bar-dock",children:"✨"})}const Oz=()=>`${At()}/events/planning`;function Lz({className:e="w-3.5 h-3.5"}){return l.jsx("svg",{className:`inline-block shrink-0 ${e}`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:l.jsx("polygon",{points:"1.5 2.5 14.5 2.5 9.5 8.5 9.5 13.5 6.5 13.5 6.5 8.5 1.5 2.5"})})}function Fz(){const[e,t]=g.useState(null),[n,r]=g.useState(null),[a,i]=g.useState(!1),[s,o]=g.useState("all"),[u,c]=g.useState(!0),[p,d]=g.useState(!1),[f,m]=g.useState(null),[b,E]=g.useState(0),x=g.useRef(null),y=g.useMemo(()=>Kv(e??[]),[e]),S=g.useCallback(async T=>{try{const _=await T$(T);t(_),m(null)}catch(_){if(T?.aborted)return;m(_ instanceof Error?_.message:String(_))}},[]);if(g.useEffect(()=>{const T=new AbortController;return S(T.signal),()=>T.abort()},[S]),g.useEffect(()=>{if(!p)return;const T=L=>{x.current&&!x.current.contains(L.target)&&d(!1)},_=L=>{L.key==="Escape"&&d(!1)};return document.addEventListener("mousedown",T),document.addEventListener("keydown",_),()=>{document.removeEventListener("mousedown",T),document.removeEventListener("keydown",_)}},[p]),g.useEffect(()=>{if(typeof EventSource>"u")return;const T=new EventSource(Oz());return T.onmessage=_=>{try{const C=JSON.parse(_.data).eventName;if(!Yv(C))return;S(),n&&(C==="feature.updated"||C==="feature.transitioned"||C==="queue.job.completed")&&E($=>$+1)}catch{}},()=>T.close()},[S,n]),f)return l.jsxs("div",{className:"p-4 text-sm text-error",role:"alert",children:["Failed to load features: ",f]});if(e===null)return l.jsx("div",{className:"flex items-center justify-center h-full text-spur-text-muted text-sm",children:"Loading features…"});const v=()=>{i(!1),S()},R=(T=>{if(s==="all")return T;const _=s.toLowerCase(),L=new Set;for(const C of T)if(C.status.toLowerCase()===_){L.add(C.id);let $=C.id;for(;$.length>1;)$=$.slice(0,-1),L.add($)}return T.filter(C=>L.has(C.id))})(e),N=n?y.get(n)??[]:[];return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"relative h-full w-full p-4 overflow-hidden","data-features-shell":!0,children:[l.jsxs("div",{id:"feature-tree-dock",hidden:!u,className:"absolute left-4 top-4 bottom-4 z-20 w-72 lg:w-80 flex flex-col overflow-hidden rounded-lg border border-spur-border bg-base-200 shadow-xl",children:[l.jsx("div",{className:"flex items-center justify-between px-3 py-2 border-b border-spur-border bg-base-300/60 shrink-0",children:l.jsxs("span",{className:"text-xs font-semibold text-spur-text flex items-center gap-1.5",children:[l.jsx("span",{children:"🌳"})," Feature Tree"]})}),l.jsx("div",{className:"flex-1 overflow-y-auto p-1",children:e.length===0?l.jsx("div",{className:"p-3 text-xs text-spur-text-muted italic",children:"No features found."}):R.length===0?l.jsxs("div",{className:"p-3 text-xs text-spur-text-muted italic",children:['No features match status filter "',s,'".']}):l.jsx(Rz,{features:R,selectedId:n,onSelect:r})})]}),l.jsxs("div",{className:"flex flex-col h-full w-full max-w-[1600px] mx-auto gap-3","data-features-workspace":!0,children:[l.jsxs("header",{className:"flex flex-wrap items-center justify-between gap-4 border-b border-spur-border pb-3 shrink-0",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("span",{className:"text-2xl","aria-hidden":"true",children:"🎯"}),l.jsxs("div",{children:[l.jsx("h1",{className:"text-xl font-bold tracking-tight text-spur-text",children:"Features"}),l.jsx("p",{className:"text-xs text-spur-text-muted",children:"Hierarchical feature roadmap, acceptance criteria, and lifecycle progression"})]})]}),l.jsxs("div",{className:"flex items-center gap-1","data-features-actions":!0,children:[l.jsx(We,{variant:"ghost",size:"xs",className:"text-spur-text-muted hover:text-spur-accent",onClick:()=>c(T=>!T),"aria-label":u?"Collapse feature tree":"Expand feature tree","aria-expanded":u,"aria-controls":"feature-tree-dock",title:u?"Collapse feature tree":"Expand feature tree",children:u?"◧":"▶"}),l.jsxs("div",{className:"relative",ref:x,children:[l.jsxs(We,{variant:"ghost",size:"xs",className:`relative text-spur-text-muted hover:text-spur-accent flex items-center gap-1 ${s!=="all"?"text-spur-accent font-semibold":""}`,onClick:()=>d(T=>!T),"aria-label":"Filter features by status","aria-expanded":p,title:"Filter features by status",children:[l.jsx(Lz,{className:"w-3.5 h-3.5"}),s!=="all"&&l.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-spur-accent shrink-0","aria-hidden":"true"})]}),p&&l.jsxs("div",{className:"absolute right-0 top-full mt-1 z-20 w-44 rounded-md shadow-lg bg-base-100 border border-spur-border py-1 text-xs","data-filter-menu":!0,children:[l.jsxs("div",{className:"px-2.5 py-1 font-semibold text-spur-text-muted border-b border-spur-border flex items-center justify-between",children:[l.jsx("span",{children:"Filter by Status"}),s!=="all"&&l.jsx("button",{type:"button",onClick:()=>{o("all"),d(!1)},className:"text-[10px] text-spur-accent hover:underline",children:"Reset"})]}),l.jsxs("button",{type:"button",onClick:()=>{o("all"),d(!1)},className:`w-full text-left px-3 py-1.5 flex items-center gap-2 hover:bg-base-200 ${s==="all"?"font-semibold text-spur-accent bg-spur-accent/10":"text-spur-text"}`,children:[l.jsx("span",{className:"flex-1",children:"All"}),s==="all"&&l.jsx("span",{children:"✓"})]}),vi.map(T=>l.jsxs("button",{type:"button",onClick:()=>{o(T),d(!1)},className:`w-full text-left px-3 py-1.5 flex items-center gap-2 hover:bg-base-200 capitalize ${s===T?"font-semibold text-spur-accent bg-spur-accent/10":"text-spur-text"}`,children:[l.jsx(mb,{status:T}),l.jsx("span",{className:"flex-1 capitalize",children:T}),s===T&&l.jsx("span",{children:"✓"})]},T))]})]}),l.jsx(We,{variant:"ghost",size:"xs",className:"text-spur-text-muted hover:text-spur-accent",onClick:()=>i(!0),"aria-label":"Add root feature",title:"Add root feature",children:"+"})]})]}),l.jsx("div",{className:"w-full flex-1 min-h-0 overflow-hidden rounded-lg border border-spur-border bg-base-100 relative","data-testid":"detail-workspace",children:l.jsx("div",{className:"w-full h-full overflow-y-auto",children:n?l.jsx(kz,{featureId:n,refreshKey:b,onClose:()=>r(null),childFeatures:N,onSelectFeature:r}):l.jsx("div",{className:"flex items-center justify-center h-full text-sm text-spur-text-muted italic",children:"Select a feature to view details"})})})]})]}),l.jsx(Wv,{open:a,parentId:"",onClose:()=>i(!1),onCreated:v}),l.jsx(Dz,{})]})}const Mz={id:"features",name:"Feature Board",icon:"🏷️",route:"features",component:Fz,sidebarLabel:"Features"},Pz=Object.freeze(Object.defineProperty({__proto__:null,module:Mz},Symbol.toStringTag,{value:"Module"})),li=({id:e})=>{const t={width:16,height:16,viewBox:"0 0 24 24",role:"img","aria-label":`${e} icon`};switch(e){case"claude":return l.jsxs("svg",{...t,fill:"none",stroke:"currentColor",strokeWidth:"2.3",strokeLinecap:"round",children:[l.jsx("title",{children:"Claude Code icon"}),l.jsx("path",{d:"M12 2.5v19M2.5 12h19M5.3 5.3l13.4 13.4M5.3 18.7l13.4-13.4"})]});case"codex":return l.jsxs("svg",{...t,fill:"currentColor",children:[l.jsx("title",{children:"Codex icon"}),l.jsx("path",{d:"M21.5 9.8a5.5 5.5 0 0 0-.5-4.2 5.6 5.6 0 0 0-4.6-2.8 5.6 5.6 0 0 0-4.2 1.4A5.5 5.5 0 0 0 7.8 3a5.6 5.6 0 0 0-4.5 3.3 5.5 5.5 0 0 0 .7 4.2 5.5 5.5 0 0 0-.7 4.2 5.6 5.6 0 0 0 4.5 3.3c.3.7.8 1.3 1.4 1.8a5.6 5.6 0 0 0 6.8-.4 5.5 5.5 0 0 0 4.4-1.4 5.6 5.6 0 0 0 1.4-4.2 5.5 5.5 0 0 0-.5-4.2zm-8.5 11.2a3.7 3.7 0 0 1-2.4-.9l2.7-1.6a1 1 0 0 0 .5-.9v-3.7l3.1 1.8v3.6a3.7 3.7 0 0 1-3.9 1.7zm-7.6-3.8a3.7 3.7 0 0 1-.4-2.5l2.7 1.6a1 1 0 0 0 1 0l3.2-1.8v3.6L6.8 20a3.7 3.7 0 0 1-1.4-2.8zm-1.3-8.3a3.7 3.7 0 0 1 2-1.6v3.2a1 1 0 0 0 .5.9l3.2 1.8-3.1 1.8-3.1-1.8a3.7 3.7 0 0 1 .5-4.3zm12.6 1.8l-3.2-1.8 3.1-1.8 3.1 1.8a3.7 3.7 0 0 1-.5 4.3 3.7 3.7 0 0 1-2 1.6v-3.2a1 1 0 0 0-.5-.9zm2.2 4.5l-2.7-1.6a1 1 0 0 0-1 0l-3.2 1.8V11.8l3.1-1.8 3.1 1.8a3.7 3.7 0 0 1 .7 4.4zm-7-1.3l-2.7-1.6 2.7-1.6 2.7 1.6-2.7 1.6z"})]});case"agy":return l.jsxs("svg",{...t,fill:"currentColor",children:[l.jsx("title",{children:"Antigravity CLI icon"}),l.jsx("path",{d:"M12 1.5C12 7.3 7.3 12 1.5 12c5.8 0 10.5 4.7 10.5 10.5 0-5.8 4.7-10.5 10.5-10.5-5.8 0-10.5-4.7-10.5-10.5z"})]});case"omp":return l.jsxs("svg",{...t,fill:"none",stroke:"currentColor",strokeWidth:"2.3",strokeLinecap:"round",children:[l.jsx("title",{children:"OMP icon"}),l.jsx("circle",{cx:"12",cy:"12",r:"9"}),l.jsx("path",{d:"M10 8.5l5 3.5-5 3.5z"})]});case"openclaw":return l.jsxs("svg",{...t,fill:"none",stroke:"currentColor",strokeWidth:"2.3",strokeLinecap:"round",children:[l.jsx("title",{children:"OpenClaw icon"}),l.jsx("path",{d:"M12 2C6.5 2 2 6.5 2 12c0 3.8 2.1 7.1 5.2 8.8L6 22l3.8-1.2C10.5 21.5 11.2 22 12 22c5.5 0 10-4.5 10-10S17.5 2 12 2zM8 11.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0zm5 0a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0z"})]});case"hermes":return l.jsxs("svg",{...t,fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",children:[l.jsx("title",{children:"Hermes icon"}),l.jsx("path",{d:"M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z"})]});case"grok":return l.jsxs("svg",{...t,fill:"currentColor",children:[l.jsx("title",{children:"Grok Build icon"}),l.jsx("path",{d:"M18.2 3H21l-6.5 7.4L22 21h-5.8l-4.5-5.9L6.5 21H3.6l6.9-7.9L3 3h5.9l4.1 5.4L18.2 3zm-1 16.3h1.5L8.7 4.6H7.1l10.1 14.7z"})]});case"opencode":return l.jsxs("svg",{...t,fill:"none",stroke:"currentColor",strokeWidth:"2.3",strokeLinecap:"round",children:[l.jsx("title",{children:"OpenCode icon"}),l.jsx("polyline",{points:"16 18 22 12 16 6"}),l.jsx("polyline",{points:"8 6 2 12 8 18"})]});case"pi":return l.jsxs("svg",{...t,fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",children:[l.jsx("title",{children:"Pi icon"}),l.jsx("path",{d:"M4 6h16M9 6v13M15 6v11a2 2 0 0 0 2 2"})]});default:return null}},jz=new Set(["claude","codex","agy","omp","openclaw","hermes","grok","opencode","pi"]),Bz=(e,t)=>e.includes(t)?e.filter(n=>n!==t):[...e,t],_o=({label:e,unconstrainedLabel:t,options:n,selected:r,onChange:a,open:i,onOpenChange:s,showIcon:o=!1})=>{const u=g.useRef(null),[c,p]=g.useState("");g.useEffect(()=>{if(!i)return;const x=y=>{u.current&&!u.current.contains(y.target)&&s(!1)};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[i,s]);const d=c.trim().toLowerCase(),f=d?n.filter(x=>x.label.toLowerCase().includes(d)||x.id.toLowerCase().includes(d)):n,m=x=>a(x.length>0?x:void 0),b=x=>{if(x.key==="Escape"){x.stopPropagation(),s(!1);return}if(x.key!=="ArrowDown"&&x.key!=="ArrowUp")return;x.preventDefault();const y=Array.from(u.current?.querySelectorAll('input[type="checkbox"]')??[]);if(y.length===0)return;const S=y.indexOf(document.activeElement);(x.key==="ArrowDown"?y[(S+1+y.length)%y.length]:y[(S-1+y.length)%y.length])?.focus()},E=r.length===0?t:`${r.length} selected`;return l.jsxs("div",{ref:u,className:"relative",children:[l.jsxs("button",{type:"button","aria-haspopup":"dialog","aria-expanded":i,className:"px-2.5 py-1 text-xs rounded border border-base-content/20 hover:bg-base-content/10 font-medium text-base-content",onClick:()=>s(!i),children:[e,": ",E]}),i&&l.jsxs("div",{role:"dialog","aria-label":`Filter by ${e}`,onKeyDown:b,className:"absolute left-0 mt-1 z-20 p-2 shadow-lg bg-base-300 rounded-lg border border-base-content/10 w-60 text-xs flex flex-col gap-1.5",children:[l.jsx("input",{type:"search","aria-label":`Search ${e}`,value:c,onChange:x=>p(x.target.value),placeholder:"Search…",className:"px-2 py-1 rounded border border-base-content/20 bg-base-100 text-base-content focus:outline-none focus:border-primary"}),l.jsxs("div",{className:"flex items-center justify-between gap-2 text-[10px]",children:[l.jsx("button",{type:"button",className:"text-primary hover:underline cursor-pointer",onClick:()=>m(f.map(x=>x.id)),children:"Select all"}),l.jsx("button",{type:"button",className:"text-error/80 hover:text-error underline cursor-pointer",onClick:()=>a(void 0),children:"Clear all"})]}),l.jsxs("div",{className:"flex flex-col gap-0.5 max-h-56 overflow-y-auto",children:[f.map(x=>l.jsxs("label",{className:"flex items-center gap-2 cursor-pointer py-1 px-1.5 hover:bg-base-200 rounded",children:[o&&l.jsx("span",{className:"w-3.5 inline-flex items-center justify-center shrink-0",children:jz.has(x.id)?l.jsx(li,{id:x.id}):l.jsx("span",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:x.color??"#5e6ad2"}})}),l.jsx("span",{className:"font-mono text-[11px] flex-1 truncate",children:x.label}),l.jsx("input",{type:"checkbox",className:"h-3.5 w-3.5 rounded border-base-content/30 text-primary",checked:r.includes(x.id),onChange:()=>m(Bz(r,x.id))})]},x.id)),f.length===0&&l.jsx("span",{className:"text-base-content/50 px-1.5 py-1",children:"No matches"})]})]})]})},Uz=({filter:e,onChange:t,sourceOptions:n=[],modelOptions:r=[],toolOptions:a=[],skillOptions:i=[],scope:s})=>{const[o,u]=g.useState(null),c=f=>{t({...e,range:f})},p=(f,m)=>{const E=(e[f]||[]).filter(x=>x!==m);t({...e,[f]:E.length>0?E:void 0})},d=(f,m)=>{t({...e,[f]:m})};return l.jsxs("div",{className:"flex flex-col gap-2.5 p-3.5 bg-base-200/50 rounded-xl border border-base-content/10 mb-4",children:[l.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[l.jsxs("div",{className:"flex items-center gap-1.5 bg-base-300 p-1 rounded-lg",children:[["24h","7d","30d","all"].map(f=>l.jsx("button",{type:"button",className:`px-2.5 py-1 text-xs rounded font-medium transition-colors ${e.range===f?"bg-primary text-primary-content font-bold":"text-base-content/70 hover:bg-base-content/10"}`,onClick:()=>c(f),children:f.toUpperCase()},f)),l.jsx("button",{type:"button",className:`px-2.5 py-1 text-xs rounded font-medium transition-colors ${e.range==="custom"?"bg-primary text-primary-content font-bold":"text-base-content/70 hover:bg-base-content/10"}`,onClick:()=>c("custom"),children:"Custom"})]}),s&&l.jsxs("div",{className:"flex items-center gap-2 text-xs text-base-content/70 font-mono","data-testid":"history-filter-scope",children:[l.jsx("span",{children:s.rangeLabel}),l.jsx("span",{"aria-hidden":"true",children:"·"}),l.jsx("span",{children:s.sessionCount===void 0?"… sessions":s.sessionCount===null?"— sessions":`${s.sessionCount} sessions`}),s.sourceCount!==void 0&&l.jsxs(l.Fragment,{children:[l.jsx("span",{"aria-hidden":"true",children:"·"}),l.jsx("span",{children:e.sources?.length?`${e.sources.length} sources selected`:`${s.sourceCount} sources available`})]})]})]}),e.range==="custom"&&l.jsxs("div",{className:"flex items-center gap-3 pt-1",children:[l.jsxs("label",{className:"text-xs text-base-content/70 flex items-center gap-1",children:["From:",l.jsx("input",{type:"datetime-local",className:"px-2 py-1 text-xs rounded border border-base-content/20 bg-base-300 text-base-content",value:e.from?e.from.slice(0,16):"",onChange:f=>t({...e,from:f.target.value?new Date(f.target.value).toISOString():void 0})})]}),l.jsxs("label",{className:"text-xs text-base-content/70 flex items-center gap-1",children:["To:",l.jsx("input",{type:"datetime-local",className:"px-2 py-1 text-xs rounded border border-base-content/20 bg-base-300 text-base-content",value:e.to?e.to.slice(0,16):"",onChange:f=>t({...e,to:f.target.value?new Date(f.target.value).toISOString():void 0})})]})]}),l.jsxs("div",{className:"flex flex-wrap items-center gap-2 pt-1 border-t border-base-content/10",children:[l.jsx(_o,{label:"Agents",unconstrainedLabel:"All",options:n,selected:e.sources??[],onChange:f=>d("sources",f),open:o==="sources",onOpenChange:f=>u(f?"sources":null),showIcon:!0}),l.jsx(_o,{label:"Models",unconstrainedLabel:"Any",options:r,selected:e.models??[],onChange:f=>d("models",f),open:o==="models",onOpenChange:f=>u(f?"models":null)}),l.jsx(_o,{label:"Tools",unconstrainedLabel:"Any",options:a,selected:e.tools??[],onChange:f=>d("tools",f),open:o==="tools",onOpenChange:f=>u(f?"tools":null)}),l.jsx(_o,{label:"Skills",unconstrainedLabel:"Any",options:i,selected:e.skills??[],onChange:f=>d("skills",f),open:o==="skills",onOpenChange:f=>u(f?"skills":null)}),l.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 ml-auto",children:[e.sources?.map(f=>l.jsxs("div",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-base-300 border border-base-content/10 text-base-content gap-1",children:[l.jsx("span",{className:"capitalize",children:f}),l.jsx("button",{type:"button",onClick:()=>p("sources",f),className:"hover:text-error",children:"×"})]},f)),e.models?.map(f=>l.jsxs("div",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-base-300 border border-base-content/10 text-base-content font-mono text-[10px] gap-1",children:[l.jsx("span",{children:f}),l.jsx("button",{type:"button",onClick:()=>p("models",f),className:"hover:text-error",children:"×"})]},f)),e.tools?.map(f=>l.jsxs("div",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-base-300 border border-base-content/10 text-base-content font-mono text-[10px] gap-1",children:[l.jsx("span",{children:f}),l.jsx("button",{type:"button",onClick:()=>p("tools",f),className:"hover:text-error",children:"×"})]},f)),e.skills?.map(f=>l.jsxs("div",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-base-300 border border-base-content/10 text-base-content font-mono text-[10px] gap-1",children:[l.jsx("span",{children:f}),l.jsx("button",{type:"button",onClick:()=>p("skills",f),className:"hover:text-error",children:"×"})]},f)),((e.sources?.length??0)>0||(e.models?.length??0)>0||(e.tools?.length??0)>0||(e.skills?.length??0)>0)&&l.jsx("button",{type:"button",className:"text-xs text-error/80 hover:text-error underline ml-1 cursor-pointer",onClick:()=>t({range:e.range,bucket:e.bucket}),children:"Clear all"})]})]})]})};function Ze(e){if(!Number.isFinite(e)||e===0)return"0";const t=Math.abs(e);return t>=1e6?`${(e/1e6).toFixed(1)}M`:t>=1e3?`${(e/1e3).toFixed(1)}K`:Math.round(e).toLocaleString()}function Qv(e){return e===0?"0":Math.abs(e)>=1e6?`${Math.round(e/1e6)}M`:Math.abs(e)>=1e3?`${Math.round(e/1e3)}K`:Math.round(e).toString()}function fn(e){return Math.round(e).toLocaleString()}function Zr(e,t=1){return`${e.toFixed(t)}%`}function Jv(e){if(e<1)return"<1m";if(e<60)return`${Math.round(e)}m`;const t=Math.floor(e/60);return`${t}h ${Math.round(e-t*60)}m`}function xd(e){return e<1e3?`${Math.round(e)}ms`:e<6e4?`${(e/1e3).toFixed(1)}s`:`${Math.floor(e/6e4)}m ${Math.round(e%6e4/1e3)}s`}function yd(e,t=4){if(e<=0)return[0,1];const n=e/t,r=10**Math.floor(Math.log10(n)),a=n/r,i=(a<=1?1:a<=2?2:a<=2.5?2.5:a<=5?5:10)*r,s=[];for(let u=0;u<=e*1.0001+i/2;u+=i)s.push(u);const o=s[s.length-1];return o!==void 0&&o<e&&s.push(o+i),s}const $z=({buckets:e,series:t,lineColor:n="#22d3ee",height:r=260})=>{const a=g.useRef(null),[i,s]=g.useState(1e3),[o,u]=g.useState(null);g.useEffect(()=>{if(!a.current)return;const U=a.current;(()=>{const se=U.clientWidth;se>0&&s(se)})();const z=new ResizeObserver(se=>{for(const pe of se){const D=Math.round(pe.contentRect.width);D>0&&s(D)}});return z.observe(U),()=>z.disconnect()},[]);const c=i,p=54,d=50,f=16,m=26,b=Math.max(60,c-p-d),E=r-f-m,x=e.map(U=>t.reduce((ne,z)=>ne+(U.v[z.id]||0),0)),y=Math.max(1,...x),S=yd(y,4),v=S[S.length-1]||y,w=U=>f+E-U/v*E,R=U=>f+E-Math.max(0,Math.min(100,U))/100*E,N=b/Math.max(1,e.length),T=Math.max(2,N*.85),_=U=>p+U*N+N/2,L=Math.max(2,Math.floor(b/70)),C=Math.max(1,Math.ceil(e.length/L)),$=e.map((U,ne)=>U.lineValue!==void 0?{x:_(ne),y:R(U.lineValue)}:null).filter(U=>U!==null),I=$.length>1?$.map((U,ne)=>`${ne===0?"M":"L"}${U.x.toFixed(1)},${U.y.toFixed(1)}`).join(" "):"",P=U=>{const ne=U.currentTarget.getBoundingClientRect();if(ne.width<=0)return;const se=(U.clientX-ne.left)/ne.width*c-p;if(se>=0&&se<=b){const pe=Math.floor(se/N);if(pe>=0&&pe<e.length){u(pe);return}}u(null)},W=o!==null?Math.max(110,Math.min(c-110,_(o))):c/2;return l.jsxs("div",{ref:a,className:"relative w-full overflow-hidden",children:[l.jsxs("svg",{viewBox:`0 0 ${c} ${r}`,width:"100%",height:r,className:"w-full block select-none",role:"img","aria-label":"Stacked column token chart with cache hit ratio overlay",onMouseMove:P,onMouseLeave:()=>u(null),children:[S.map(U=>l.jsxs("g",{children:[l.jsx("line",{x1:p,x2:p+b,y1:w(U),y2:w(U),stroke:"currentColor",strokeOpacity:.1}),l.jsx("text",{x:p-8,y:w(U)+3.5,textAnchor:"end",className:"text-[10px] fill-base-content/60",children:Qv(U)})]},U)),[0,25,50,75,100].map(U=>l.jsxs("text",{x:p+b+8,y:R(U)+3.5,textAnchor:"start",fill:n,className:"text-[10px] opacity-80",children:[U,"%"]},U)),o!==null&&l.jsx("rect",{x:p+o*N,y:f,width:N,height:E,fill:"currentColor",fillOpacity:.04,rx:2}),e.map((U,ne)=>{const z=p+ne*N+(N-T)/2;let se=0;return l.jsxs("g",{opacity:o===null||o===ne?1:.45,children:[t.slice().reverse().map(pe=>{const D=U.v[pe.id]||0;if(D<=0)return null;const Q=w(se+D),de=w(se)-Q,O=Math.max(1,de);return se+=D,l.jsx("rect",{x:z,y:Q,width:T,height:O,fill:pe.color,rx:1},pe.id)}),ne%C===0&&l.jsx("text",{x:_(ne),y:r-6,textAnchor:"middle",className:"text-[10px] fill-base-content/60",children:U.label})]},U.id??`${U.label}-${ne}`)}),I&&l.jsxs(l.Fragment,{children:[l.jsx("path",{d:I,fill:"none",stroke:"currentColor",strokeWidth:4,strokeOpacity:.2,strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:I,fill:"none",stroke:n,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]}),o!==null&&e[o]?.lineValue!==void 0&&l.jsx("circle",{cx:_(o),cy:R(e[o]?.lineValue??0),r:4.5,fill:n,stroke:"#1f2937",strokeWidth:2})]}),o!==null&&e[o]&&l.jsxs("div",{className:"absolute top-2 bg-base-300 border border-base-content/15 shadow-xl rounded-lg px-3 py-2 text-xs pointer-events-none z-20 flex flex-col gap-1 min-w-[180px] backdrop-blur-sm",style:{left:`${W}px`,transform:"translateX(-50%)"},children:[l.jsx("div",{className:"font-semibold text-base-content/90 border-b border-base-content/10 pb-1",children:e[o]?.label}),t.filter(U=>(e[o]?.v[U.id]??0)>0).map(U=>l.jsxs("div",{className:"flex justify-between items-center gap-2",children:[l.jsxs("span",{className:"flex items-center gap-1.5",children:[l.jsx("span",{className:"w-2 h-2 rounded-full",style:{background:U.color}}),U.label]}),l.jsx("span",{className:"font-mono",children:Ze(e[o]?.v[U.id]??0)})]},U.id)),l.jsxs("div",{className:"flex justify-between items-center font-bold pt-1 border-t border-base-content/10",children:[l.jsx("span",{children:"Total"}),l.jsx("span",{className:"font-mono",children:Ze(x[o]??0)})]}),e[o]?.lineValue!==void 0&&l.jsxs("div",{className:"flex justify-between items-center text-cyan-400",children:[l.jsx("span",{children:"Cache Hit Ratio"}),l.jsxs("span",{className:"font-mono",children:[e[o]?.lineValue,"%"]})]})]})]})},zz=({buckets:e,series:t,height:n=200})=>{const r=g.useRef(null),[a,i]=g.useState(540);g.useEffect(()=>{if(!r.current)return;const w=r.current;(()=>{const T=w.clientWidth;T>0&&i(T)})();const N=new ResizeObserver(T=>{for(const _ of T){const L=Math.round(_.contentRect.width);L>0&&i(L)}});return N.observe(w),()=>N.disconnect()},[]);const s=a,o=46,u=12,c=10,p=24,d=Math.max(60,s-o-u),f=n-c-p,m=e.length,b=e.map(w=>t.reduce((R,N)=>R+(w.v[N.id]||0),0)),E=yd(Math.max(1,...b),3).pop()||1,x=w=>o+(m<=1?d/2:w/(m-1)*d),y=w=>c+f-w/E*f,S=new Array(m).fill(0),v=t.map(w=>{const R=S.slice(),N=S.map((_,L)=>_+(e[L]?.v[w.id]||0));let T=`M${x(0)},${y(N[0]||0)}`;for(let _=1;_<m;_++)T+=`L${x(_)},${y(N[_]||0)}`;for(let _=m-1;_>=0;_--)T+=`L${x(_)},${y(R[_]||0)}`;T+="Z";for(let _=0;_<m;_++)S[_]=N[_]||0;return{id:w.id,color:w.color,d:T}});return l.jsx("div",{ref:r,className:"w-full overflow-hidden",children:l.jsxs("svg",{viewBox:`0 0 ${s} ${n}`,width:"100%",height:n,className:"w-full block select-none",role:"img","aria-label":"Stacked area chart",children:[yd(E,3).map(w=>l.jsxs("g",{children:[l.jsx("line",{x1:o,x2:o+d,y1:y(w),y2:y(w),stroke:"currentColor",strokeOpacity:.1}),l.jsx("text",{x:o-7,y:y(w)+3.5,textAnchor:"end",className:"text-[10px] fill-base-content/60",children:Qv(w)})]},w)),v.map(w=>l.jsx("path",{d:w.d,fill:w.color,opacity:.8},w.id)),e.map((w,R)=>R%Math.ceil(m/6)===0?l.jsx("text",{x:x(R),y:n-6,textAnchor:"middle",className:"text-[10px] fill-base-content/60",children:w.label},w.id??w.label):null)]})})},Hz=({points:e,color:t="#3987e5",height:n=190,valueFmt:r=Zr})=>{const a=g.useRef(null),[i,s]=g.useState(540);g.useEffect(()=>{if(!a.current)return;const w=a.current;(()=>{const T=w.clientWidth;T>0&&s(T)})();const N=new ResizeObserver(T=>{for(const _ of T){const L=Math.round(_.contentRect.width);L>0&&s(L)}});return N.observe(w),()=>N.disconnect()},[]);const o=i,u=44,c=12,p=14,d=24,f=Math.max(60,o-u-c),m=n-p-d,b=e.length,E=100,x=0,y=w=>u+(b<=1?f/2:w/(b-1)*f),S=w=>p+m-(w-x)/(E-x)*m;let v=`M${y(0)},${S(e[0]?.v??0)}`;for(let w=1;w<b;w++)v+=`L${y(w)},${S(e[w]?.v??0)}`;return l.jsx("div",{ref:a,className:"w-full overflow-hidden",children:l.jsxs("svg",{viewBox:`0 0 ${o} ${n}`,width:"100%",height:n,className:"w-full block select-none",role:"img","aria-label":"Line chart",children:[[0,25,50,75,100].map(w=>l.jsxs("g",{children:[l.jsx("line",{x1:u,x2:u+f,y1:S(w),y2:S(w),stroke:"currentColor",strokeOpacity:.1}),l.jsxs("text",{x:u-7,y:S(w)+3.5,textAnchor:"end",className:"text-[10px] fill-base-content/60",children:[w,"%"]})]},w)),l.jsx("path",{d:`${v}L${y(b-1)},${p+m}L${y(0)},${p+m}Z`,fill:t,opacity:.1}),l.jsx("path",{d:v,fill:"none",stroke:t,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),e.map((w,R)=>R%Math.ceil(b/6)===0||R===b-1?l.jsx("text",{x:y(R),y:n-6,textAnchor:"middle",className:"text-[10px] fill-base-content/60",children:w.label},w.id??w.label):null)]})})},Gz=({axes:e,series:t,height:n=260})=>{const i=n/2+4,s=Math.min(520/2-78,n/2-44),o=e.length,u=p=>-Math.PI/2+p/o*Math.PI*2,c=(p,d)=>[260+Math.cos(u(p))*s*d,i+Math.sin(u(p))*s*d];return l.jsxs("svg",{viewBox:`0 0 520 ${n}`,className:"w-full h-auto select-none",role:"img","aria-label":"Radar chart",children:[[.25,.5,.75,1].map(p=>{const d=`${e.map((f,m)=>{const[b,E]=c(m,p);return`${m===0?"M":"L"}${b?.toFixed(1)},${E?.toFixed(1)}`}).join(" ")}Z`;return l.jsx("path",{d,fill:"none",stroke:"currentColor",strokeOpacity:.15},p)}),e.map((p,d)=>{const[f,m]=c(d,1),[b,E]=c(d,1.2);return l.jsxs("g",{children:[l.jsx("line",{x1:260,y1:i,x2:f,y2:m,stroke:"currentColor",strokeOpacity:.2}),l.jsx("text",{x:b,y:(E??0)+3.5,textAnchor:Math.abs((b??0)-260)<6?"middle":(b??0)>260?"start":"end",className:"text-[11px] font-semibold fill-base-content/80",children:p})]},p)}),t.map(p=>{const d=`${p.values.map((f,m)=>{const[b,E]=c(m,Math.max(.04,f/100));return`${m===0?"M":"L"}${b?.toFixed(1)},${E?.toFixed(1)}`}).join(" ")}Z`;return l.jsxs("g",{children:[l.jsx("path",{d,fill:p.color,opacity:.15}),l.jsx("path",{d,fill:"none",stroke:p.color,strokeWidth:2,strokeLinejoin:"round"}),p.values.map((f,m)=>{const[b,E]=c(m,Math.max(.04,f/100));return l.jsx("circle",{cx:b,cy:E,r:3.5,fill:p.color,stroke:"#1f2937",strokeWidth:1.5},`${p.label}-${e[m]}`)})]},p.label)})]})},Kx=[0,.3,.5,.75,1],Wz=(e,t)=>{if(e<=0||t<=0)return 0;const n=e/t;return n<=.25?1:n<=.5?2:n<=.75?3:4},Vz=({days:e,color:t="#3987e5",maxDailyTokens:n=1})=>{const[r,a]=g.useState(null),i=[...e].sort((u,c)=>u.date.localeCompare(c.date)),s=[];for(let u=0;u<i.length;u+=7)s.push(i.slice(u,u+7));const o=u=>{const c=s[u]?.[0];if(!c)return"";const p=new Date(`${c.date}T00:00:00Z`).toLocaleString("en-US",{month:"short",timeZone:"UTC"});if(u===0)return p;const d=s[u-1]?.[0];return d&&d.date.slice(0,7)===c.date.slice(0,7)?"":p};return l.jsxs("section",{className:"relative flex flex-col gap-1.5 w-full","data-testid":"heatmap-calendar","aria-label":"Daily activity heatmap",onMouseLeave:()=>a(null),children:[r&&l.jsxs("div",{className:"absolute -top-1 pointer-events-none z-30 transform -translate-x-1/2 -translate-y-full flex flex-col items-center min-w-[140px] transition-all duration-75",style:{left:`${Math.max(20,Math.min(80,(r.colIdx+.5)/13*100))}%`},children:[l.jsxs("div",{className:"bg-base-100 border border-base-content/20 shadow-xl rounded-md px-2.5 py-1.5 text-[10px] font-mono text-center text-base-content backdrop-blur-md",children:[l.jsx("div",{className:"font-bold text-primary",children:r.date}),l.jsxs("div",{className:"text-base-content/90 font-medium",children:[l.jsx("span",{className:"text-base-content font-bold",children:Ze(r.tokens)})," tokens"]}),l.jsxs("div",{className:"text-base-content/60 text-[9px]",children:[r.sessions," ",r.sessions===1?"session":"sessions"]})]}),l.jsx("div",{className:"w-1.5 h-1.5 bg-base-100 border-r border-b border-base-content/20 transform rotate-45 -mt-0.5"})]}),l.jsxs("div",{className:"flex items-start gap-1 w-full",children:[l.jsx("div",{className:"w-5 shrink-0 pt-3 flex flex-col gap-[3px] text-[9px] font-mono text-base-content/50 select-none","aria-hidden":"true",children:["Mon","","Wed","","Fri","",""].map((u,c)=>l.jsx("div",{className:"w-full aspect-square flex items-center justify-end pr-1 leading-none",children:u},u||`weekday-${c}`))}),l.jsx("div",{className:"flex-1 w-full",style:{display:"grid",gridTemplateColumns:"repeat(13, minmax(0, 1fr))",gap:"3px"},children:s.map((u,c)=>{const p=u[0];return l.jsxs("div",{className:"flex flex-col gap-[3px]","data-testid":"heatmap-week",children:[l.jsx("div",{className:"h-3 text-[9px] leading-3 text-base-content/50 truncate font-mono",children:o(c)}),l.jsx("div",{className:"flex flex-col gap-[3px]",children:u.map(d=>{const f=Wz(d.tokens,n);return l.jsx("button",{type:"button",className:"w-full aspect-square rounded-[2px] p-0 border-0 transition-transform hover:scale-125 focus:scale-125 focus:outline-hidden cursor-pointer",style:f===0?{backgroundColor:"currentColor",opacity:.08}:{backgroundColor:t,opacity:Kx[f]},onMouseEnter:()=>a({...d,colIdx:c}),onFocus:()=>a({...d,colIdx:c}),onBlur:()=>a(null),title:`${d.date}: ${Ze(d.tokens)} tokens (${d.sessions} sessions)`,children:l.jsx("span",{className:"sr-only",children:`${d.date}: ${Ze(d.tokens)} tokens, ${d.sessions} sessions`})},d.date)})})]},p?.date??`week-${c}`)})})]}),l.jsx("div",{className:"flex items-center justify-end gap-1.5 pt-0.5",children:l.jsxs("div",{className:"flex items-center gap-1 text-[9px] font-mono text-base-content/50",children:[l.jsx("span",{children:"Less"}),Kx.map(u=>l.jsx("span",{className:"w-2.5 h-2.5 rounded-[2px] inline-block",style:u===0?{backgroundColor:"currentColor",opacity:.08}:{backgroundColor:t,opacity:u}},u)),l.jsx("span",{children:"More"})]})})]})},Td=({value:e,max:t,color:n="#3987e5",height:r=6})=>{const a=Math.max(0,Math.min(100,t>0?e/t*100:0));return l.jsx("div",{className:"w-full bg-base-300 rounded-full overflow-hidden",style:{height:r},children:l.jsx("div",{className:"h-full rounded-full transition-all duration-300",style:{width:`${a}%`,backgroundColor:n}})})},qz=({values:e,color:t="#3987e5",width:n=120,height:r=36})=>{const a=Math.max(...e,1),i=Math.min(...e,0),s=a-i||1,o=e.length,u=d=>o<=1?n/2:d/(o-1)*(n-4)+2,c=d=>r-3-(d-i)/s*(r-6);let p="";if(o>0){p=`M${u(0)},${c(e[0]??0)}`;for(let d=1;d<o;d++)p+=`L${u(d)},${c(e[d]??0)}`}return l.jsxs("svg",{viewBox:`0 0 ${n} ${r}`,className:"inline-block select-none overflow-visible",style:{width:n,height:r},role:"img","aria-label":"Trend sparkline",children:[o>1&&l.jsx("path",{d:p,fill:"none",stroke:t,strokeWidth:1.5,strokeLinecap:"round"}),o===1&&l.jsx("circle",{cx:u(0),cy:c(e[0]??0),r:2,fill:t})]})},ew=({data:e,loading:t,error:n,cacheHitTrend:r,onSelectSession:a})=>{const[i,s]=g.useState("model"),[o,u]=g.useState("asc");if(t)return l.jsx("div",{className:"flex items-center justify-center p-16",children:l.jsx("div",{className:"w-8 h-8 rounded-full border-4 border-primary border-t-transparent animate-spin"})});if(n)return l.jsx("div",{className:"p-4 rounded-lg bg-error/10 border border-error/20 text-error",children:l.jsxs("span",{children:["Failed to load insights: ",n]})});if(!e)return null;const{loops:c,cacheWaste:p,heavySessions:d,largestTokenSteps:f,slowSteps:m,modelComparison:b}=e,E=I=>{i===I?u(P=>P==="asc"?"desc":"asc"):(s(I),u(I==="model"?"asc":"desc"))},x=[...b].sort((I,P)=>{const W=o==="asc"?1:-1;return i==="model"?W*I.model.localeCompare(P.model):W*((I[i]??0)-(P[i]??0))}),y=I=>i!==I?l.jsx("span",{className:"opacity-30 ml-1 text-[10px]",children:"↕"}):l.jsx("span",{className:"text-primary ml-1 text-[10px]",children:o==="asc"?"▲":"▼"}),S=Math.max(1,...d.map(I=>I.tokens)),v=Math.max(1,...m.map(I=>I.durationMs??0)),w=["Speed","Cache Ratio","Reliability","Output Ratio"],R={"claude-opus-4.6":"#3987e5","claude-sonnet-4.6":"#199e70","gpt-5.6-sol":"#9085e9","grok-4.6":"#d95926",other:"#898781"},N=b.map(I=>I.speedMsMean),T=Math.min(...N),_=Math.max(...N),L=I=>_===T?100:Math.max(0,Math.min(100,Math.round((_-I)/(_-T)*100))),C=I=>Math.max(0,Math.min(100,Math.round(I*100))),$=b.map(I=>{const P=L(I.speedMsMean),W=C(I.cacheRatio),U=C(I.reliability),ne=C(I.outputRatio*5);return{label:I.model,color:R[I.model]??"#3987e5",values:[P,W,U,ne]}});return l.jsxs("div",{className:"flex flex-col gap-6",children:[l.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 p-5",children:[l.jsx("h4",{className:"font-bold text-sm mb-1",children:"Top Cache-Wasting Incidents"}),l.jsx("p",{className:"text-xs text-base-content/60 mb-3",children:"Steps that re-sent full context without cache hits"}),l.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-3 items-start",children:[(r?.length??0)>1&&l.jsx("div",{"data-testid":"cache-hit-trend-chart",children:l.jsx(Hz,{points:(r??[]).map(I=>({id:I.day,label:I.day.slice(5),v:I.cacheHitRatio})),color:"#22d3ee",height:140})}),l.jsx("div",{className:"overflow-x-auto",children:l.jsxs("table",{className:"w-full text-xs text-left font-mono",children:[l.jsx("thead",{children:l.jsxs("tr",{className:"border-b border-base-content/10 text-base-content/60",children:[l.jsx("th",{className:"py-1.5",children:"Session"}),l.jsx("th",{className:"py-1.5",children:"Fresh Tokens"}),l.jsx("th",{className:"py-1.5",children:"Cause"})]})}),l.jsx("tbody",{children:p.map(I=>l.jsxs("tr",{className:"border-b border-base-content/5 hover:bg-base-300/30",children:[l.jsx("td",{className:"py-1.5",children:l.jsx("button",{type:"button",className:"text-primary hover:underline",onClick:()=>a?.(I.sessionId),children:I.sessionId})}),l.jsx("td",{className:"py-1.5 text-error font-bold",children:Ze(I.freshTokens)}),l.jsx("td",{className:"py-1.5 text-base-content/70",children:I.reason})]},`${I.sessionId}-${I.freshTokens}-${I.timestamp}`))})]})})]})]}),l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 p-5",children:[l.jsx("h4",{className:"font-bold text-sm mb-1",children:"Heaviest Token Sessions"}),l.jsx("p",{className:"text-xs text-base-content/60 mb-3",children:"Sessions consuming highest billed volume"}),l.jsx("div",{className:"flex flex-col gap-3",children:d.map(I=>l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsxs("div",{className:"flex justify-between text-xs font-mono",children:[l.jsxs("button",{type:"button",className:"text-primary hover:underline font-bold",onClick:()=>a?.(I.id,I.source),children:[I.id," (",I.source," · ",I.model,")"]}),l.jsx("span",{children:Ze(I.tokens)})]}),l.jsx(Td,{value:I.tokens,max:S,color:"#3987e5",height:6})]},I.id))})]})]}),l.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 p-5",children:[l.jsx("h4",{className:"font-bold text-sm mb-1",children:"Top Time-Consuming Steps"}),l.jsx("p",{className:"text-xs text-base-content/60 mb-3",children:"Longest tool execution durations"}),l.jsx("div",{className:"overflow-x-auto",children:l.jsxs("table",{className:"w-full text-xs text-left font-mono",children:[l.jsx("thead",{children:l.jsxs("tr",{className:"border-b border-base-content/10 text-base-content/60",children:[l.jsx("th",{className:"py-1.5",children:"Tool / Step"}),l.jsx("th",{className:"py-1.5",children:"Session"}),l.jsx("th",{className:"py-1.5 text-right",children:"Duration"}),l.jsx("th",{className:"py-1.5 text-right",children:"Tokens"})]})}),l.jsx("tbody",{children:m.map(I=>l.jsxs("tr",{className:"border-b border-base-content/5 hover:bg-base-300/30",children:[l.jsxs("td",{className:"py-1.5 font-bold",children:[I.toolName," ",l.jsxs("span",{className:"text-[10px] text-base-content/50",children:["#",I.stepIndex]})]}),l.jsx("td",{className:"py-1.5",children:l.jsx("button",{type:"button",className:"text-primary hover:underline",onClick:()=>a?.(I.sessionId,I.agent),children:I.sessionId})}),l.jsx("td",{className:"py-1.5 text-right text-amber-400 font-bold w-24",children:l.jsxs("div",{className:"flex flex-col items-end gap-1",children:[l.jsx("span",{children:xd(I.durationMs??0)}),l.jsx(Td,{value:I.durationMs??0,max:v,color:"#fbbf24",height:4})]})}),l.jsx("td",{className:"py-1.5 text-right",children:Ze(I.tokens)})]},`${I.sessionId}-${I.toolName}-${I.stepIndex}`))})]})})]}),l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 p-5",children:[l.jsx("h4",{className:"font-bold text-sm mb-1",children:"Largest Token Steps"}),l.jsx("p",{className:"text-xs text-base-content/60 mb-3",children:"Single tool calls with highest token load"}),l.jsx("div",{className:"overflow-x-auto",children:l.jsxs("table",{className:"w-full text-xs text-left font-mono",children:[l.jsx("thead",{children:l.jsxs("tr",{className:"border-b border-base-content/10 text-base-content/60",children:[l.jsx("th",{className:"py-1.5",children:"Tool / Step"}),l.jsx("th",{className:"py-1.5",children:"Session"}),l.jsx("th",{className:"py-1.5",children:"Agent / Model"}),l.jsx("th",{className:"py-1.5 text-right",children:"Tokens"})]})}),l.jsx("tbody",{children:f.map(I=>l.jsxs("tr",{className:"border-b border-base-content/5 hover:bg-base-300/30",children:[l.jsxs("td",{className:"py-1.5 font-bold",children:[I.toolName," ",l.jsxs("span",{className:"text-[10px] text-base-content/50",children:["#",I.stepIndex]})]}),l.jsx("td",{className:"py-1.5",children:l.jsx("button",{type:"button",className:"text-primary hover:underline",onClick:()=>a?.(I.sessionId,I.agent),children:I.sessionId})}),l.jsxs("td",{className:"py-1.5 text-xs text-base-content/70",children:[I.agent," · ",I.model]}),l.jsx("td",{className:"py-1.5 text-right text-primary font-bold",children:Ze(I.tokens)})]},`${I.sessionId}-${I.toolName}-${I.stepIndex}`))})]})})]})]}),l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 p-5",children:[l.jsx("h4",{className:"font-bold text-sm mb-1",children:"Model Multi-Axis Comparison"}),l.jsx("p",{className:"text-xs text-base-content/60 mb-4",children:"Speed, Cache ratio, Reliability, and Output ratio"}),l.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 items-center",children:[l.jsx("div",{className:"flex justify-center",children:l.jsx(Gz,{axes:w,series:$,height:280})}),l.jsx("div",{className:"overflow-x-auto",children:l.jsxs("table",{className:"w-full text-xs text-left font-mono",children:[l.jsx("thead",{children:l.jsxs("tr",{className:"border-b border-base-content/10 text-base-content/60",children:[l.jsxs("th",{className:"py-1.5 cursor-pointer select-none hover:text-base-content",onClick:()=>E("model"),children:["Model ",y("model")]}),l.jsxs("th",{className:"py-1.5 text-right cursor-pointer select-none hover:text-base-content",onClick:()=>E("speedMsMean"),children:["Mean Speed (ms) ",y("speedMsMean")]}),l.jsxs("th",{className:"py-1.5 text-right cursor-pointer select-none hover:text-base-content",onClick:()=>E("cacheRatio"),children:["Cache Ratio ",y("cacheRatio")]}),l.jsxs("th",{className:"py-1.5 text-right cursor-pointer select-none hover:text-base-content",onClick:()=>E("reliability"),children:["Reliability ",y("reliability")]}),l.jsxs("th",{className:"py-1.5 text-right cursor-pointer select-none hover:text-base-content",onClick:()=>E("outputRatio"),children:["Output Ratio ",y("outputRatio")]})]})}),l.jsx("tbody",{children:x.map(I=>l.jsxs("tr",{className:"border-b border-base-content/5 hover:bg-base-300/30",children:[l.jsxs("td",{className:"py-1.5 font-bold flex items-center gap-1.5",children:[l.jsx("span",{className:"w-2.5 h-2.5 rounded-full",style:{background:R[I.model]??"#3987e5"}}),I.model]}),l.jsx("td",{className:"py-1.5 text-right font-mono",children:fn(I.speedMsMean)}),l.jsx("td",{className:"py-1.5 text-right text-cyan-400 font-mono",children:Zr(I.cacheRatio*100)}),l.jsx("td",{className:"py-1.5 text-right text-emerald-400 font-mono",children:Zr(I.reliability*100)}),l.jsx("td",{className:"py-1.5 text-right font-mono",children:Zr(I.outputRatio*100)})]},I.model))})]})})]})]}),c.length>0&&l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-warning/30 p-5",children:[l.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[l.jsx("span",{className:"text-warning text-lg",children:"⚠️"}),l.jsx("h3",{className:"font-bold text-base",children:"Detected Execution Loops (Repeats ≥ 3)"})]}),l.jsx("p",{className:"text-xs text-base-content/60 mb-4",children:"Identified consecutive identical tool invocations without intervening state changes."}),l.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:c.map(I=>l.jsxs("div",{className:"p-4 bg-base-300/70 rounded-xl border border-base-content/10 flex flex-col justify-between gap-3",children:[l.jsxs("div",{children:[l.jsxs("div",{className:"flex justify-between items-center",children:[l.jsxs("span",{className:"px-2 py-0.5 rounded-full text-xs font-mono font-bold bg-warning/20 text-warning border border-warning/30",children:[I.tool," × ",I.repeats," repeats"]}),l.jsx("button",{type:"button",className:"text-xs font-mono text-primary hover:underline",onClick:()=>a?.(I.sessionId),children:I.sessionId})]}),l.jsx("div",{className:"font-mono text-xs text-base-content/80 mt-2",children:I.argsHint}),l.jsxs("div",{className:"text-[11px] text-base-content/50 mt-1",children:["Step sequence: #",I.fromSeq," → #",I.toSeq]})]}),l.jsxs("div",{className:"flex justify-between items-center text-xs font-mono pt-2 border-t border-base-content/10",children:[l.jsx("span",{className:"text-base-content/60",children:"Estimated Wasted Tokens:"}),l.jsx("span",{className:"text-error font-bold",children:Ze(I.wastedTokens)})]})]},`${I.tool}-${I.sessionId}-${I.fromSeq}`))})]})]})},tw=({data:e,loading:t,error:n,sortBy:r="start",sortDir:a="desc",page:i=1,pageSize:s=20,onSortChange:o,onPageChange:u,onSelectSession:c})=>{if(t)return l.jsx("div",{className:"flex items-center justify-center p-16",children:l.jsx("div",{className:"w-8 h-8 rounded-full border-4 border-primary border-t-transparent animate-spin"})});if(n)return l.jsx("div",{className:"p-4 rounded-lg bg-error/10 border border-error/20 text-error",children:l.jsxs("span",{children:["Failed to load sessions: ",n]})});if(!e)return null;const{items:p,total:d}=e,f=Math.max(1,Math.ceil(d/s)),m=b=>r!==b?null:l.jsx("span",{className:"ml-1 text-primary",children:a==="asc"?"▲":"▼"});return l.jsxs("div",{className:"flex flex-col gap-4",children:[l.jsx("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 overflow-hidden",children:l.jsx("div",{className:"overflow-x-auto",children:l.jsxs("table",{className:"w-full text-xs text-left font-mono",children:[l.jsx("thead",{children:l.jsxs("tr",{className:"bg-base-300/80 text-base-content/70 border-b border-base-content/10",children:[l.jsx("th",{className:"p-3",children:"Session ID"}),l.jsx("th",{className:"p-3",children:"Agent"}),l.jsx("th",{className:"p-3",children:"Model"}),l.jsxs("th",{className:"p-3 cursor-pointer hover:text-primary transition-colors",onClick:()=>o?.("start"),children:["Start Time ",m("start")]}),l.jsxs("th",{className:"p-3 cursor-pointer hover:text-primary transition-colors text-right",onClick:()=>o?.("duration"),children:["Duration ",m("duration")]}),l.jsxs("th",{className:"p-3 cursor-pointer hover:text-primary transition-colors text-right",onClick:()=>o?.("messages"),children:["Msgs ",m("messages")]}),l.jsxs("th",{className:"p-3 cursor-pointer hover:text-primary transition-colors text-right",onClick:()=>o?.("toolCalls"),children:["Tools ",m("toolCalls")]}),l.jsxs("th",{className:"p-3 cursor-pointer hover:text-primary transition-colors text-right",onClick:()=>o?.("billedTokens"),children:["Billed Tok ",m("billedTokens")]}),l.jsxs("th",{className:"p-3 cursor-pointer hover:text-primary transition-colors text-right",onClick:()=>o?.("cacheRead"),children:["Cache Read ",m("cacheRead")]}),l.jsxs("th",{className:"p-3 cursor-pointer hover:text-primary transition-colors text-right",onClick:()=>o?.("freshInput"),children:["Fresh Input ",m("freshInput")]}),l.jsx("th",{className:"p-3",children:"Top Tool"}),l.jsx("th",{className:"p-3 text-center",children:"State"})]})}),l.jsx("tbody",{children:p.length===0?l.jsx("tr",{children:l.jsx("td",{colSpan:12,className:"text-center py-8 text-base-content/50",children:"No sessions matching the current filter."})}):p.map(b=>l.jsxs("tr",{className:"border-b border-base-content/5 hover:bg-primary/10 cursor-pointer transition-colors",onClick:()=>c?.(b.source,b.id),title:"Click to view execution timeline",children:[l.jsx("td",{className:"p-3 font-bold text-primary",children:l.jsx("span",{className:"font-mono text-xs",title:b.id,children:b.id.length>18?`${b.id.slice(0,16)}…`:b.id})}),l.jsx("td",{className:"p-3",children:l.jsx("span",{className:"px-1.5 py-0.5 rounded text-[10px] bg-base-300 uppercase font-mono text-base-content",children:b.source})}),l.jsx("td",{className:"p-3 text-base-content/70",children:b.model}),l.jsx("td",{className:"p-3",children:b.start.slice(0,19).replace("T"," ")}),l.jsx("td",{className:"p-3 text-right font-semibold tabular-nums",children:Jv(b.durationMs/6e4)}),l.jsx("td",{className:"p-3 text-right tabular-nums",children:fn(b.messages)}),l.jsx("td",{className:"p-3 text-right tabular-nums",children:fn(b.toolCalls)}),l.jsx("td",{className:"p-3 text-right font-bold text-primary tabular-nums",children:Ze(b.billedTokens)}),l.jsx("td",{className:"p-3 text-right text-emerald-400 tabular-nums",children:Ze(b.cacheReadTokens)}),l.jsx("td",{className:"p-3 text-right text-base-content/70 tabular-nums",children:Ze(b.freshInputTokens)}),l.jsx("td",{className:"p-3",children:l.jsx("span",{className:"px-1.5 py-0.5 rounded text-[10px] border border-base-content/20 font-mono",children:b.topTool})}),l.jsx("td",{className:"p-3 text-center",children:l.jsx("span",{className:`px-1.5 py-0.5 rounded text-[10px] font-mono ${b.state==="error"?"bg-error/20 text-error font-bold":"bg-emerald-500/20 text-emerald-400 font-bold"}`,children:b.state})})]},`${b.source}:::${b.id}`))})]})})}),l.jsxs("div",{className:"flex flex-wrap justify-between items-center gap-3 px-1 text-xs",children:[l.jsxs("span",{className:"text-base-content/70",children:["Showing ",(i-1)*s+1,"–",Math.min(i*s,d)," of ",d," sessions"]}),l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx("button",{type:"button",className:"px-2.5 py-1 text-xs rounded border border-base-content/20 hover:bg-base-content/10 font-medium disabled:opacity-40",disabled:i<=1,onClick:()=>u?.(i-1),children:"« Prev"}),l.jsxs("span",{className:"px-2.5 py-1 text-xs font-mono text-base-content/70",children:["Page ",i," / ",f]}),l.jsx("button",{type:"button",className:"px-2.5 py-1 text-xs rounded border border-base-content/20 hover:bg-base-content/10 font-medium disabled:opacity-40",disabled:i>=f,onClick:()=>u?.(i+1),children:"Next »"})]})]})]})},nw=({data:e,loading:t,error:n,onTriggerImport:r})=>{const[a,i]=g.useState(!1),[s,o]=g.useState(null),u=async()=>{i(!0),o("Running import & analytics rollup...");try{const f=await r?.("incremental");o(f?.message??"Import queued.")}catch(f){o(`Import failed: ${f instanceof Error?f.message:String(f)}`)}finally{i(!1)}};if(t)return l.jsx("div",{className:"flex items-center justify-center p-16",children:l.jsx("div",{className:"w-8 h-8 rounded-full border-4 border-primary border-t-transparent animate-spin"})});if(n)return l.jsx("div",{className:"p-4 rounded-lg bg-error/10 border border-error/20 text-error",children:l.jsxs("span",{children:["Failed to load sources registry: ",n]})});if(!e)return null;const{overview:c,agents:p,roots:d}=e;return l.jsxs("div",{className:"flex flex-col gap-6",children:[l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 p-5 flex flex-col md:flex-row justify-between items-start md:items-center gap-4",children:[l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-xl",children:"🗄️"}),l.jsx("h3",{className:"font-bold text-base",children:"Transcripts Corpus & Ingestion Registry"})]}),l.jsxs("div",{className:"flex flex-wrap gap-4 text-xs font-mono text-base-content/70 mt-1",children:[l.jsxs("span",{children:["Files: ",l.jsx("strong",{className:"text-base-content",children:fn(c.totalFiles)})]}),l.jsxs("span",{children:["Corpus Size:"," ",l.jsxs("strong",{className:"text-base-content",children:[(c.corpusSizeBytes/(1024*1024)).toFixed(1)," MB"]})]}),l.jsxs("span",{children:["Total Sessions:"," ",l.jsx("strong",{className:"text-base-content",children:fn(c.totalSessions)})]}),l.jsxs("span",{children:["Coverage:"," ",l.jsxs("strong",{className:"text-base-content",children:[c.dateCoverage.from?.slice(0,10)??"N/A"," →"," ",c.dateCoverage.to?.slice(0,10)??"N/A"]})]}),l.jsxs("span",{children:["Last Import:"," ",l.jsx("strong",{className:"text-base-content",children:c.lastImportedAt?new Date(c.lastImportedAt).toLocaleString():"never imported"})]})]})]}),l.jsxs("div",{className:"flex flex-col items-end gap-1.5",children:[l.jsx("button",{type:"button",className:"px-4 py-2 rounded-lg bg-primary text-primary-content font-medium text-xs hover:bg-primary/90 transition-colors disabled:opacity-50",disabled:a,onClick:u,children:a?"Importing...":"🔄 Import & Analyze"}),s&&l.jsx("span",{className:"text-[11px] font-mono text-info","aria-live":"polite",children:s})]})]}),l.jsxs("div",{children:[l.jsx("h4",{className:"font-bold text-sm mb-3",children:"Agent Activity (90-Day Daily Heatmaps)"}),l.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4",children:p.map(f=>l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 hover:border-base-content/30 transition-all p-4 flex flex-col justify-between gap-3",children:[l.jsxs("div",{className:"flex justify-between items-start",children:[l.jsxs("div",{className:"flex items-center gap-2.5",children:[l.jsxs("div",{className:"relative group",children:[l.jsx("button",{type:"button",className:"w-7 h-7 rounded-lg flex items-center justify-center text-white shadow-xs focus:outline-2 focus:outline-offset-2 focus:outline-primary",style:{background:f.color},"aria-label":`${f.name} source metrics`,"aria-describedby":`source-tooltip-${f.id}`,children:l.jsx(li,{id:f.id})}),l.jsxs("div",{id:`source-tooltip-${f.id}`,role:"tooltip",className:"pointer-events-none absolute z-20 left-0 top-9 w-64 rounded-lg border border-base-content/15 bg-base-100 p-3 text-[11px] font-mono shadow-xl opacity-0 transition-opacity group-hover:opacity-100 group-focus-within:opacity-100",children:[l.jsxs("div",{className:"mb-2 font-bold text-sm",children:[f.name," Summary"]}),l.jsxs("div",{className:"grid grid-cols-2 gap-x-3 gap-y-1",children:[l.jsx("span",{className:"text-base-content/60",children:"Imported Files"}),l.jsx("strong",{className:"text-right",children:fn(f.filesCount)}),l.jsx("span",{className:"text-base-content/60",children:"Sessions"}),l.jsx("strong",{className:"text-right",children:fn(f.sessionCount)}),l.jsx("span",{className:"text-base-content/60",children:"Total Tokens"}),l.jsx("strong",{className:"text-right",children:Ze(f.totalTokens)}),l.jsx("span",{className:"text-base-content/60",children:"Cache Saved"}),l.jsx("strong",{className:"text-right",children:Ze(f.cacheSavedTokens)}),l.jsx("span",{className:"text-base-content/60",children:"Tool Calls"}),l.jsx("strong",{className:"text-right",children:fn(f.toolCalls)}),l.jsx("span",{className:"text-base-content/60",children:"Date Range"}),l.jsxs("strong",{className:"text-right",children:[f.firstDate?.slice(0,10)??"N/A"," →"," ",f.lastDate?.slice(0,10)??"N/A"]})]})]})]}),l.jsxs("div",{children:[l.jsx("div",{className:"font-bold text-sm",children:f.name}),l.jsx("div",{className:"text-[10px] font-mono text-base-content/60",children:f.importPath})]})]}),l.jsxs("span",{className:"px-2 py-0.5 rounded-full text-xs font-mono font-bold bg-base-300 border border-base-content/10 text-base-content",children:[Ze(f.totalTokens)," tok"]})]}),l.jsxs("div",{className:"bg-base-300/60 p-2 rounded-lg border border-base-content/5",children:[l.jsxs("div",{className:"text-[10px] font-mono text-base-content/50 mb-1 flex justify-between",children:[l.jsx("span",{children:"90 days ago"}),l.jsx("span",{children:"Today"})]}),l.jsx(Vz,{days:f.heatmapDays,color:f.color,maxDailyTokens:f.maxDailyTokens})]}),l.jsxs("div",{className:"grid grid-cols-3 gap-2 pt-2 border-t border-base-content/10 font-mono text-[11px]",children:[l.jsxs("div",{children:[l.jsx("span",{className:"text-base-content/50 block text-[10px]",children:"Sessions"}),l.jsx("span",{className:"font-semibold",children:fn(f.sessionCount)})]}),l.jsxs("div",{children:[l.jsx("span",{className:"text-base-content/50 block text-[10px]",children:"Tool Calls"}),l.jsx("span",{className:"font-semibold",children:fn(f.toolCalls)})]}),l.jsxs("div",{children:[l.jsx("span",{className:"text-base-content/50 block text-[10px]",children:"Cache Saved"}),l.jsx("span",{className:"font-semibold text-emerald-400",children:Ze(f.cacheSavedTokens)})]})]})]},f.id))})]}),l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 p-5",children:[l.jsx("h4",{className:"font-bold text-sm mb-3",children:"Source Directories & Import Roots"}),l.jsx("div",{className:"overflow-x-auto",children:l.jsxs("table",{className:"w-full text-xs text-left font-mono",children:[l.jsx("thead",{children:l.jsxs("tr",{className:"border-b border-base-content/10 text-base-content/60",children:[l.jsx("th",{className:"py-1.5",children:"Agent"}),l.jsx("th",{className:"py-1.5",children:"Filesystem Path"}),l.jsx("th",{className:"py-1.5",children:"Match Pattern"}),l.jsx("th",{className:"py-1.5 text-right",children:"Files Count"}),l.jsx("th",{className:"py-1.5 text-center",children:"Status"})]})}),l.jsx("tbody",{children:d.map(f=>l.jsxs("tr",{className:"border-b border-base-content/5 hover:bg-base-300/30",children:[l.jsx("td",{className:"py-1.5 font-bold",children:f.agentName}),l.jsx("td",{className:"py-1.5 text-base-content/80",children:f.path}),l.jsx("td",{className:"py-1.5 text-base-content/60",children:f.matchPattern}),l.jsx("td",{className:"py-1.5 text-right font-semibold",children:fn(f.fileCount)}),l.jsx("td",{className:"py-1.5 text-center",children:l.jsx("span",{className:"px-1.5 py-0.5 rounded text-[10px] bg-emerald-500/20 text-emerald-400 uppercase font-bold",children:f.status})})]},f.agentId))})]})})]})]})},Yz=["auto","5m","10m","30m","1h","4h","1d"],Zz=(e,t)=>t===void 0||t===0?null:(e-t)/Math.abs(t)*100,Sd=({current:e,previous:t,invert:n=!1})=>{const r=Zz(e,t);if(r===null)return l.jsx("span",{className:"text-[10px] text-base-content/40",children:"No prior baseline"});const a=r>=0,i=n?!a:a;return l.jsxs("span",{className:`px-1.5 py-0.5 rounded text-[10px] font-bold font-mono ${i?"bg-emerald-500/15 text-emerald-400":"bg-error/15 text-error"}`,children:[a?"↑ +":"↓ ",Math.abs(r).toFixed(1),"% vs previous period"]})},Co=({label:e,value:t,sub:n,trend:r,trendColor:a,current:i,previous:s,invert:o,badge:u})=>l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 p-4",children:[l.jsxs("div",{className:"flex justify-between items-center",children:[l.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider text-base-content/60",children:e}),u]}),l.jsxs("div",{className:"flex items-end justify-between gap-2 mt-1",children:[l.jsxs("div",{children:[l.jsx("div",{className:"text-2xl font-bold font-mono text-primary",children:t}),l.jsxs("div",{className:"flex items-center gap-1.5 mt-1",children:[l.jsx(Sd,{current:i,previous:s,invert:o}),l.jsx("span",{className:"text-xs text-base-content/60",children:n})]})]}),r.length>1&&l.jsx(qz,{values:r,color:a,width:100,height:34})]})]}),rw=({data:e,loading:t,error:n,dimension:r="model",onDimensionChange:a,bucket:i="auto",onBucketChange:s,loopSummary:o})=>{const[u,c]=g.useState("chart");if(t)return l.jsx("div",{className:"flex items-center justify-center p-16",children:l.jsx("div",{className:"w-8 h-8 rounded-full border-4 border-primary border-t-transparent animate-spin"})});if(n)return l.jsx("div",{className:"p-4 rounded-lg bg-error/10 border border-error/20 text-error",children:l.jsxs("span",{children:["Failed to load history summary: ",n]})});if(!e)return null;const{kpis:p,previousKpis:d,kpiTrend:f,timeSeries:m,topModels:b,topSources:E,topTools:x,skillsUsed:y,skillTimeSeries:S,cacheEfficiency:v}=e,w=d??void 0,R={billed:f.map(z=>z.totalBilledTokens),cacheSaved:f.map(z=>z.cacheSavedTokens),sessions:f.map(z=>z.sessionsCount),toolCalls:f.map(z=>z.toolCallsCount)};let N=[];if(r==="model")N=b.map(z=>({id:z.id,label:z.label,color:z.color}));else if(r==="source")N=E.map(z=>({id:z.id,label:z.label,color:z.color}));else if(r==="tool"){const z=["#199e70","#3987e5","#d95926","#9085e9","#c98500","#ec4899","#8b5cf6"];N=x.slice(0,6).map((se,pe)=>({id:se.id,label:se.id,color:z[pe%z.length]??"#3987e5"}))}else N=y.map(z=>({id:z.id,label:z.label,color:z.color}));const T=m.map(z=>{const se=z.bucketStart.slice(5,10);return{id:z.bucketStart,label:se,v:z.series,lineValue:z.cacheHitRatio}}),_=S.map(z=>({id:z.bucketStart,label:z.bucketStart.slice(5,10),v:z.series})),L=Math.max(...x.map(z=>z.count),1),C=p.sessionsCount>0?p.totalBilledTokens/p.sessionsCount:0,$=p.toolCallsCount>0?p.totalBilledTokens/p.toolCallsCount:0,I=w&&w.sessionsCount>0?w.totalBilledTokens/w.sessionsCount:void 0,P=w&&w.toolCallsCount>0?w.totalBilledTokens/w.toolCallsCount:void 0,W=Math.max(0,v.totalRead-v.savedTokens),U=Math.max(0,p.totalBilledTokens-W),ne=S.reduce((z,se)=>{for(const[pe,D]of Object.entries(se.series))z[pe]=(z[pe]??0)+D;return z},{});return l.jsxs("div",{className:"flex flex-col gap-6",children:[l.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[l.jsx(Co,{label:"Total Billed Tokens",value:Ze(p.totalBilledTokens),sub:`Fresh ${Ze(W)} · Output ${Ze(U)}`,trend:R.billed,trendColor:"#3987e5",current:p.totalBilledTokens,previous:w?.totalBilledTokens}),l.jsx(Co,{label:"Cache-Saved Tokens",value:Ze(p.cacheSavedTokens),sub:`Share ${Zr(p.cacheSavedPercent)} · Hit ${Zr(v.hitRatio)}`,trend:R.cacheSaved,trendColor:"#22d3ee",current:p.cacheSavedTokens,previous:w?.cacheSavedTokens,badge:l.jsxs("span",{className:"px-2 py-0.5 rounded-full text-xs font-bold bg-emerald-500/20 text-emerald-400 border border-emerald-500/30",children:[p.cacheSavedPercent,"% saved"]})}),l.jsx(Co,{label:"Sessions",value:fn(p.sessionsCount),sub:`${fn(p.sessionsCount>0?p.toolCallsCount/p.sessionsCount:0)} calls / session`,trend:R.sessions,trendColor:"#9085e9",current:p.sessionsCount,previous:w?.sessionsCount}),l.jsx(Co,{label:"Tool Calls",value:fn(p.toolCallsCount),sub:`${Ze($)} billed / step`,trend:R.toolCalls,trendColor:"#c98500",current:p.toolCallsCount,previous:w?.toolCallsCount,badge:l.jsxs("span",{className:"px-2 py-0.5 rounded-full text-xs font-mono bg-amber-500/20 text-amber-400 border border-amber-500/30",children:[Zr(p.errorRate)," err"]})})]}),l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 p-5",children:[l.jsxs("div",{className:"flex flex-wrap justify-between items-center gap-3 pb-2 border-b border-base-content/10",children:[l.jsxs("div",{children:[l.jsx("h3",{className:"font-bold text-base",children:"Token Activity & Cache Hit Ratio"}),l.jsx("p",{className:"text-xs text-base-content/60",children:"Stacked token bars (left) with Cache Hit % line overlay (right)"})]}),l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsxs("fieldset",{className:"flex items-center bg-base-300 p-0.5 rounded-lg text-xs border-0",children:[l.jsx("legend",{className:"sr-only",children:"Bucket interval"}),Yz.map(z=>l.jsx("button",{type:"button","aria-pressed":i===z,className:`px-2 py-1 rounded font-medium transition-colors ${i===z?"bg-base-100 text-base-content font-bold shadow-sm":"text-base-content/60 hover:bg-base-content/10"}`,onClick:()=>s?.(z),children:z},z))]}),l.jsx("div",{className:"flex items-center bg-base-300 p-0.5 rounded-lg text-xs",children:["chart","table"].map(z=>l.jsx("button",{type:"button","aria-pressed":u===z,className:`px-2.5 py-1 rounded font-medium transition-colors ${u===z?"bg-base-100 text-base-content font-bold shadow-sm":"text-base-content/60 hover:bg-base-content/10"}`,onClick:()=>c(z),children:z==="chart"?"Chart":"Table"},z))}),l.jsx("div",{className:"flex items-center bg-base-300 p-0.5 rounded-lg text-xs",children:["model","source","tool","skill"].map(z=>l.jsxs("button",{type:"button","aria-pressed":r===z,className:`px-2.5 py-1 text-xs rounded font-medium transition-colors ${r===z?"bg-primary text-primary-content font-bold":"text-base-content/70 hover:bg-base-content/10"}`,onClick:()=>a?.(z),children:["By ",z.charAt(0).toUpperCase()+z.slice(1)]},z))})]})]}),l.jsx("div",{className:"pt-3",children:u==="chart"?l.jsx($z,{buckets:T,series:N,height:260}):l.jsx("div",{className:"overflow-x-auto max-h-80 overflow-y-auto",children:l.jsxs("table",{className:"w-full text-xs text-left font-mono","data-testid":"summary-bucket-table",children:[l.jsx("thead",{className:"sticky top-0 bg-base-200",children:l.jsxs("tr",{className:"border-b border-base-content/10 text-base-content/60",children:[l.jsx("th",{className:"py-1.5 pr-2",children:"Bucket"}),N.map(z=>l.jsx("th",{className:"py-1.5 pr-2 text-right",children:l.jsxs("span",{className:"inline-flex items-center gap-1",children:[l.jsx("span",{className:"w-2 h-2 rounded-full inline-block",style:{background:z.color}}),z.label]})},z.id)),l.jsx("th",{className:"py-1.5 pr-2 text-right",children:"Total"}),l.jsx("th",{className:"py-1.5 text-right",children:"Cache Hit %"})]})}),l.jsx("tbody",{children:T.map(z=>{const se=Object.values(z.v).reduce((pe,D)=>pe+D,0);return l.jsxs("tr",{className:"border-b border-base-content/5",children:[l.jsx("td",{className:"py-1.5 pr-2 font-bold",children:(z.id??z.label).slice(0,16).replace("T"," ")}),N.map(pe=>l.jsx("td",{className:"py-1.5 pr-2 text-right tabular-nums",children:z.v[pe.id]!==void 0?Ze(z.v[pe.id]??0):"—"},pe.id)),l.jsx("td",{className:"py-1.5 pr-2 text-right tabular-nums font-bold",children:Ze(se)}),l.jsx("td",{className:"py-1.5 text-right tabular-nums",children:z.lineValue!==void 0?`${z.lineValue.toFixed(1)}%`:"—"})]},z.id??z.label)})})]})})})]}),l.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 p-5",children:[l.jsx("h4",{className:"font-bold text-sm mb-3",children:"Top Models by Billed Tokens"}),l.jsx("div",{className:"flex flex-col gap-3",children:b.map(z=>l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsxs("div",{className:"flex justify-between text-xs font-mono",children:[l.jsxs("span",{className:"flex items-center gap-1.5",children:[l.jsx("span",{className:"w-2.5 h-2.5 rounded-full",style:{background:z.color}}),z.label]}),l.jsxs("span",{children:[Ze(z.tokens)," (",z.share,"%)"]})]}),l.jsx("div",{className:"w-full bg-base-300 h-2 rounded-full overflow-hidden",children:l.jsx("div",{className:"h-full rounded-full",style:{width:`${z.share}%`,background:z.color}})})]},z.id))})]}),l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 p-5",children:[l.jsx("h4",{className:"font-bold text-sm mb-3",children:"Top Agent Sources by Billed Tokens"}),l.jsx("div",{className:"flex flex-col gap-3",children:E.map(z=>l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsxs("div",{className:"flex justify-between text-xs",children:[l.jsxs("span",{className:"flex items-center gap-1.5 font-medium",children:[l.jsx("span",{className:"w-2.5 h-2.5 rounded-full",style:{background:z.color}}),z.label]}),l.jsxs("span",{className:"font-mono",children:[Ze(z.tokens)," (",z.share,"%)"]})]}),l.jsx("div",{className:"w-full bg-base-300 h-2 rounded-full overflow-hidden",children:l.jsx("div",{className:"h-full rounded-full",style:{width:`${z.share}%`,background:z.color}})})]},z.id))})]}),l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 p-5",children:[l.jsx("h4",{className:"font-bold text-sm mb-2",children:"Top Tools & Error Rates"}),l.jsx("div",{className:"overflow-x-auto",children:l.jsxs("table",{className:"w-full text-xs text-left font-mono",children:[l.jsx("thead",{children:l.jsxs("tr",{className:"border-b border-base-content/10 text-base-content/60",children:[l.jsx("th",{className:"py-1.5",children:"Tool"}),l.jsx("th",{className:"py-1.5",children:"Share"}),l.jsx("th",{className:"py-1.5 text-right",children:"Calls"}),l.jsx("th",{className:"py-1.5 text-right",children:"Errors"}),l.jsx("th",{className:"py-1.5 text-right",children:"Error Rate"})]})}),l.jsx("tbody",{children:x.map(z=>l.jsxs("tr",{className:"border-b border-base-content/5 hover:bg-base-300/30",children:[l.jsx("td",{className:"py-1.5 font-bold",children:z.id}),l.jsx("td",{className:"py-1.5 w-28",children:l.jsx(Td,{value:z.count,max:L,color:"#3987e5"})}),l.jsx("td",{className:"py-1.5 text-right tabular-nums",children:fn(z.count)}),l.jsx("td",{className:"py-1.5 text-right tabular-nums",children:z.errors>0?fn(z.errors):"0"}),l.jsx("td",{className:"py-1.5 text-right",children:l.jsx("span",{className:`px-1.5 py-0.5 rounded text-[10px] ${z.errorRate>1?"bg-error/20 text-error font-bold":"bg-base-300 text-base-content/70"}`,children:Zr(z.errorRate)})})]},z.id))})]})})]}),l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 p-5 flex flex-col gap-4",children:[l.jsxs("div",{children:[l.jsx("h4",{className:"font-bold text-sm mb-2",children:"Cache Efficiency Overview"}),l.jsxs("div",{className:"bg-base-300/60 p-3.5 rounded-xl border border-base-content/5 mb-4",children:[l.jsxs("div",{className:"flex justify-between items-center mb-1.5 text-xs font-semibold",children:[l.jsx("span",{children:"Global Cache Hit Ratio"}),l.jsxs("span",{className:"text-cyan-400 font-mono text-sm",children:[v.hitRatio,"%"]})]}),l.jsx("div",{className:"w-full bg-base-100 h-2.5 rounded-full overflow-hidden",children:l.jsx("div",{className:"h-full bg-cyan-400 rounded-full",style:{width:`${v.hitRatio}%`}})}),l.jsxs("div",{className:"flex justify-between text-[11px] text-base-content/60 mt-2 font-mono",children:[l.jsxs("span",{children:["Saved: ",Ze(v.savedTokens)]}),l.jsxs("span",{children:["Total Read: ",Ze(v.totalRead)]})]})]}),l.jsxs("div",{className:"grid grid-cols-2 gap-3 text-xs font-mono",children:[l.jsxs("div",{className:"flex flex-col gap-0.5",children:[l.jsx("span",{className:"text-base-content/60 text-[10px] uppercase tracking-wider",children:"Avg Billed / Session"}),l.jsx("span",{className:"font-bold",children:Ze(C)}),l.jsx(Sd,{current:C,previous:I,invert:!0})]}),l.jsxs("div",{className:"flex flex-col gap-0.5",children:[l.jsx("span",{className:"text-base-content/60 text-[10px] uppercase tracking-wider",children:"Avg Billed / Step"}),l.jsx("span",{className:"font-bold",children:Ze($)}),l.jsx(Sd,{current:$,previous:P,invert:!0})]}),l.jsxs("div",{className:"flex flex-col gap-0.5",children:[l.jsx("span",{className:"text-base-content/60 text-[10px] uppercase tracking-wider",children:"Loop Detection Findings"}),l.jsxs("span",{className:"font-bold",children:[fn(o?.redundantCalls??0)," redundant"]}),l.jsxs("span",{className:"text-[10px] text-base-content/60",children:[Ze(o?.wastedTokens??0)," wasted"]})]})]})]}),y.length>0&&l.jsxs("div",{children:[l.jsx("h5",{className:"font-bold text-xs mb-2",children:"Skills Invocation Mix"}),l.jsx(zz,{buckets:_,series:Kz(y),height:150}),l.jsx("div",{className:"flex flex-wrap gap-2 mt-2",children:y.map(z=>l.jsxs("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full bg-base-300 border border-base-content/10 gap-1.5 font-mono text-[11px]",children:[l.jsx("span",{className:"w-2 h-2 rounded-full",style:{background:z.color}}),l.jsxs("span",{children:[z.label,":"]}),l.jsxs("span",{className:"font-bold",children:[Ze(ne[z.id]??0)," tokens"]})]},z.id))})]})]})]})]})},Kz=e=>e.map(t=>({id:t.id,label:t.label,color:t.color})),Xz=({blocks:e,start:t,end:n,onJumpToTime:r})=>{const a=g.useId(),{bins:i,maxBinTokens:s,maxBinOperations:o,startMs:u,endMs:c,hasValidRange:p}=g.useMemo(()=>{if(!t||!n||e.length===0)return{bins:[],maxBinTokens:0,maxBinOperations:0,startMs:0,endMs:0,hasValidRange:!1};const d=Date.parse(t),f=Date.parse(n);if(Number.isNaN(d)||Number.isNaN(f)||f<d)return{bins:[],maxBinTokens:0,maxBinOperations:0,startMs:0,endMs:0,hasValidRange:!1};const m=96,E=Math.max(1,f-d)/m,x=Array.from({length:m},(v,w)=>({index:w,timeMs:d+w*E,tokens:0,operations:0}));for(const v of e){if(!v.timestamp)continue;const w=Date.parse(v.timestamp);if(Number.isNaN(w)||w<d||w>f)continue;const R=Math.min(m-1,Math.max(0,Math.floor((w-d)/E))),N=x[R];N&&(N.tokens+=v.totalTokens,N.operations+=v.operationCount)}const y=Math.max(1,...x.map(v=>v.tokens)),S=Math.max(1,...x.map(v=>v.operations));return{bins:x,maxBinTokens:y,maxBinOperations:S,startMs:d,endMs:f,hasValidRange:!0}},[e,t,n]);return!p||i.length===0?null:l.jsxs("div",{"data-testid":"timeline-scrubber",className:"flex flex-col gap-1.5 p-3 bg-base-200/80 rounded-xl border border-base-content/10 font-mono text-xs",children:[l.jsxs("div",{className:"flex items-center justify-between text-[11px] text-base-content/60 px-1",children:[l.jsxs("span",{children:["Timeline Activity (",i.length," bins)"]}),l.jsxs("span",{children:["Peak: ",Ze(s)]})]}),l.jsx("div",{className:"relative h-10 w-full bg-base-300/60 rounded-lg overflow-hidden flex items-end p-1",children:l.jsx("svg",{viewBox:"0 0 96 32",preserveAspectRatio:"none",className:"w-full h-full text-primary/70","aria-hidden":"true",children:i.map(d=>{const f=d.operations>0?Math.max(2,Math.round(d.operations/o*30)):0,m=d.tokens>0?.35+d.tokens/s*.65:.25,b=32-f;return l.jsx("rect",{x:d.index,y:b,width:"0.85",height:f,fill:"currentColor",fillOpacity:m,"data-operations":d.operations,"data-tokens":d.tokens,className:"hover:text-cyan-400 transition-colors",children:l.jsx("title",{children:`${new Date(d.timeMs).toISOString()} · ${Ze(d.tokens)} · ${d.operations} ops`})},d.index)})})}),l.jsx("label",{htmlFor:a,className:"sr-only",children:"Timeline scrub slider"}),l.jsx("input",{id:a,type:"range",min:u,max:c,defaultValue:u,"aria-label":"Timeline navigation scrubber","data-testid":"timeline-scrubber-range",className:"w-full range range-xs range-primary cursor-pointer accent-primary",onInput:d=>{const f=Number(d.currentTarget.value);Number.isFinite(f)&&r?.(new Date(f).toISOString())}})]})},Ma=(e,t)=>`${e}:${t}`,Pa=(e,t)=>JSON.stringify([e,t]),sa=e=>e.replace(/[^a-zA-Z0-9_-]/g,"-"),bl=(e,t,n)=>e+t+n,Qz=(e,t)=>{const n=e+t;return n>0?t/n*100:0},vd=e=>e.length<=12?e:`${e.slice(0,8)}…${e.slice(-4)}`,Jz=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],aw=e=>{if(!e)return"—";const t=new Date(e);if(Number.isNaN(t.getTime()))return e;const n=Jz[t.getUTCMonth()],r=t.getUTCDate(),a=String(t.getUTCHours()).padStart(2,"0"),i=String(t.getUTCMinutes()).padStart(2,"0");return`${n} ${r} ${a}:${i}`},wd=e=>{if(!e)return"—";const t=new Date(e);if(Number.isNaN(t.getTime()))return e.slice(11,19)||e;const n=String(t.getUTCHours()).padStart(2,"0"),r=String(t.getUTCMinutes()).padStart(2,"0"),a=String(t.getUTCSeconds()).padStart(2,"0");return`${n}:${r}:${a}`},Xx=e=>`${vd(e.id)} · ${e.source} · ${aw(e.start)} · ${Ze(e.tokenLoad)}`,eH=e=>{const t=e.payload?.trim();return t&&t.length>0?t:e.title},Qx=e=>e.split(/\r?\n/).map(n=>n.trim()).find(n=>n.length>0)??e,Jx=e=>e.kind==="assistant"||e.eventType==="message"&&e.kind!=="user",tH=e=>{const t=(e.toolName||e.kind||"").toLowerCase();return t.includes("glob")?{label:e.toolName||"glob",color:"#6366f1"}:t.includes("grep")?{label:e.toolName||"grep",color:"#a855f7"}:t.includes("edit")||t.includes("write")||t.includes("patch")?{label:e.toolName||"edit",color:"#eab308"}:t.includes("read")||t.includes("view")||t.includes("list")?{label:e.toolName||"read",color:"#10b981"}:t.includes("bash")||t.includes("exec")||t.includes("command")||t.includes("terminal")?{label:e.toolName||"bash",color:"#3b82f6"}:t.includes("search")||t.includes("find")?{label:e.toolName||"search",color:"#a855f7"}:t.includes("run")?{label:e.toolName||"run",color:"#f59e0b"}:{label:e.toolName||e.kind,color:"#64748b"}},nH=()=>l.jsxs("svg",{width:14,height:14,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",role:"img","aria-label":"User icon",children:[l.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),l.jsx("circle",{cx:"12",cy:"7",r:"4"})]}),rH=({promptTokens:e,fullText:t,tooltipId:n})=>{const[r,a]=g.useState(!1),i=e?.freshInputTokens??0,s=e?.cacheReadTokens??0,o=e?.outputTokens??0,u=bl(i,s,o),c=t.length>0?t.split(/\r?\n/).length:0,p=t.length;return l.jsxs("div",{className:"relative inline-flex items-center z-20",children:[l.jsx("button",{type:"button","aria-label":"Show user prompt token breakdown","aria-describedby":n,"data-testid":`timeline-user-badge-${n}`,className:"p-1 rounded bg-base-300 text-cyan-400 shrink-0 hover:bg-base-content/10 focus:outline-none focus-visible:ring-1 focus-visible:ring-primary transition-colors cursor-pointer",onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),onFocus:()=>a(!0),onBlur:()=>a(!1),onKeyDown:d=>{d.key==="Escape"&&a(!1)},children:l.jsx(nH,{})}),l.jsxs("div",{id:n,role:"tooltip","data-testid":n,className:`absolute left-0 top-full z-50 mt-1.5 w-56 p-2 rounded-lg bg-base-300 border border-base-content/20 shadow-2xl text-[11px] font-mono leading-relaxed pointer-events-none ${r?"block":"hidden"}`,children:[l.jsx("div",{className:"font-bold text-base-content mb-1",children:"User Prompt Telemetry"}),l.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-2 gap-y-0.5 text-base-content/80",children:[l.jsx("span",{className:"text-base-content/60",children:"Lines / chars:"}),l.jsxs("span",{children:[c," lines (",p," chars)"]}),l.jsx("span",{className:"text-base-content/60",children:"📥 Fresh input:"}),l.jsx("span",{children:Ze(i)}),l.jsx("span",{className:"text-base-content/60",children:"💾 Cache read:"}),l.jsx("span",{className:"text-cyan-400",children:Ze(s)}),l.jsx("span",{className:"text-base-content/60",children:"📤 Output:"}),l.jsx("span",{children:Ze(o)}),l.jsx("span",{className:"text-base-content/60 border-t border-base-content/10 pt-0.5",children:"⚡ Turn load:"}),l.jsx("span",{className:"font-bold border-t border-base-content/10 pt-0.5 text-primary",children:Ze(u)})]})]})]})},ey=({agentId:e,model:t,timestamp:n,tooltipId:r})=>{const[a,i]=g.useState(!1);return l.jsxs("div",{className:"relative inline-flex items-center z-20",children:[l.jsx("button",{type:"button","aria-label":`Show ${e} metadata`,"aria-describedby":r,"data-testid":`timeline-agent-badge-${r}`,className:"inline-flex items-center justify-center p-1 rounded hover:bg-base-content/10 text-base-content focus:outline-none focus-visible:ring-1 focus-visible:ring-primary transition-colors cursor-pointer",onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),onFocus:()=>i(!0),onBlur:()=>i(!1),onKeyDown:s=>{s.key==="Escape"&&i(!1)},children:l.jsx(li,{id:e})}),l.jsxs("div",{id:r,role:"tooltip","data-testid":r,className:`absolute left-0 top-full z-50 mt-1.5 w-56 p-2 rounded-lg bg-base-300 border border-base-content/20 shadow-2xl text-[11px] font-mono leading-relaxed pointer-events-none ${a?"block":"hidden"}`,children:[l.jsxs("div",{className:"font-bold text-base-content mb-1 flex items-center gap-1.5",children:[l.jsx(li,{id:e}),l.jsx("span",{children:e})]}),l.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-2 gap-y-0.5 text-base-content/80",children:[l.jsx("span",{className:"text-base-content/60",children:"Model:"}),l.jsx("span",{className:"truncate",children:t}),l.jsx("span",{className:"text-base-content/60",children:"Timestamp:"}),l.jsx("span",{className:"truncate",children:wd(n)})]})]})]})},aH=({title:e,freshInputTokens:t,cacheReadTokens:n,outputTokens:r,color:a,tooltipId:i})=>{const[s,o]=g.useState(!1),u=bl(t,n,r);return l.jsxs("div",{className:"relative inline-flex items-center z-20",children:[l.jsx("button",{type:"button","aria-describedby":i,"data-testid":`timeline-tool-badge-${i}`,className:"px-1.5 py-0.5 rounded text-[10.5px] font-mono font-medium truncate max-w-[140px] sm:max-w-[200px] border focus:outline-none focus-visible:ring-1 focus-visible:ring-primary transition-colors cursor-pointer",style:{color:a,backgroundColor:`${a}18`,borderColor:`${a}40`},onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),onFocus:()=>o(!0),onBlur:()=>o(!1),onKeyDown:c=>{c.key==="Escape"&&o(!1)},children:e}),l.jsxs("div",{id:i,role:"tooltip","data-testid":i,className:`absolute left-0 top-full z-50 mt-1.5 w-52 p-2 rounded-lg bg-base-300 border border-base-content/20 shadow-2xl text-[11px] font-mono leading-relaxed pointer-events-none ${s?"block":"hidden"}`,children:[l.jsx("div",{className:"font-bold text-base-content mb-1",children:"Token Breakdown"}),l.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-2 gap-y-0.5 text-base-content/80",children:[l.jsx("span",{className:"text-base-content/60",children:"📥 Fresh input:"}),l.jsx("span",{children:Ze(t)}),l.jsx("span",{className:"text-base-content/60",children:"💾 Cache read:"}),l.jsx("span",{className:"text-cyan-400",children:Ze(n)}),l.jsx("span",{className:"text-base-content/60",children:"📤 Output:"}),l.jsx("span",{children:Ze(r)}),l.jsx("span",{className:"text-base-content/60 border-t border-base-content/10 pt-0.5",children:"⚡ Total:"}),l.jsx("span",{className:"font-bold border-t border-base-content/10 pt-0.5 text-primary",children:Ze(u)})]})]})]})},iw=({data:e,loading:t,error:n,mode:r="session",sessionId:a,availableSessions:i=[],onSelectSession:s,onModeChange:o,consolidatedTaskWbs:u="",consolidatedRunId:c="",onConsolidatedScopeSubmit:p})=>{const d=e?.scope.sessionId,f=e?.scope.source,[m,b]=g.useState({}),[E,x]=g.useState(!0),[y,S]=g.useState(!0),[v,w]=g.useState(!0),[R,N]=g.useState(u),[T,_]=g.useState(c),L=d&&f?Pa(f,d):"consolidated",C=m[L]||{},$=J=>{b(_e=>({..._e,[L]:J(_e[L]||{})}))},I=(J,_e)=>{const fe=Ma(J,_e);$(X=>({...X,[fe]:!X[fe]}))};if(t)return l.jsx("div",{className:"flex items-center justify-center p-16",children:l.jsx("div",{className:"w-8 h-8 rounded-full border-4 border-primary border-t-transparent animate-spin motion-reduce:animate-none"})});if(n)return l.jsx("div",{className:"p-4 rounded-lg bg-error/10 border border-error/20 text-error",children:l.jsxs("span",{children:["Failed to load timeline: ",n]})});if(!e)return l.jsx("div",{className:"p-4 rounded-lg bg-info/10 border border-info/20 text-info",children:l.jsx("span",{children:"No timeline data available."})});const{scope:P,blocks:W,truncated:U}=e,ne=bl(P.tokens.freshInputTokens,P.tokens.cacheReadTokens,P.tokens.outputTokens),z=Qz(P.tokens.freshInputTokens,P.tokens.cacheReadTokens),se=W.map(J=>{const _e=J.events.filter(fe=>Jx(fe)?!E:fe.kind==="unknown"||fe.agent==="unknown"?!y:!(v&&!fe.payload?.trim()&&(fe.durationMs===null||fe.durationMs===0)&&bl(fe.freshInputTokens,fe.cacheReadTokens,fe.outputTokens)===0));return{...J,events:_e}}).filter(J=>J.events.length>0),pe=se.flatMap(J=>J.events.filter(_e=>!!_e.payload?.trim()).map(_e=>Ma(J.key,_e.seq))),D=pe.length>0&&pe.every(J=>C[J]),Q=()=>$(()=>D?{}:Object.fromEntries(pe.map(J=>[J,!0]))),de=i.findIndex(J=>J.id===P.sessionId&&J.source===P.source),O=de>0?i[de-1]:void 0,Ce=de>=0&&de<i.length-1?i[de+1]:void 0,De=J=>{const _e=Date.parse(J),fe=se.find(X=>{const Ge=X.timestamp?Date.parse(X.timestamp):Number.NaN;return Number.isFinite(Ge)&&Ge>=_e})??se.at(-1);fe&&document.getElementById(`timeline-block-${sa(fe.key)}`)?.scrollIntoView({behavior:"smooth",block:"center"})};return l.jsxs("div",{className:"flex flex-col gap-6",children:[l.jsxs("div",{className:"bg-base-200 rounded-xl shadow-sm border border-base-content/10 p-5 flex flex-col gap-4",children:[l.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4",children:[l.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[l.jsx("h3",{className:"text-base font-bold tracking-tight",children:"Conversation"}),l.jsxs("fieldset",{className:"inline-flex border border-base-content/20 rounded-lg p-0.5 bg-base-300 font-mono text-xs",children:[l.jsx("legend",{className:"sr-only",children:"Timeline mode"}),l.jsx("button",{type:"button","data-testid":"timeline-mode-session","aria-pressed":r==="session",className:`px-2.5 py-1 rounded-md transition-colors ${r==="session"?"bg-primary text-primary-content font-bold":"text-base-content/70 hover:text-base-content"}`,onClick:()=>o?.("session"),children:"Single Session"}),l.jsx("button",{type:"button","data-testid":"timeline-mode-consolidated","aria-pressed":r==="consolidated",className:`px-2.5 py-1 rounded-md transition-colors ${r==="consolidated"?"bg-primary text-primary-content font-bold":"text-base-content/70 hover:text-base-content"}`,onClick:()=>o?.("consolidated"),children:"Consolidated"})]})]}),l.jsxs("div",{className:"flex flex-wrap items-center gap-2 sm:gap-3",children:[r==="session"?l.jsxs(l.Fragment,{children:[l.jsxs("label",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"sr-only",children:"Session"}),l.jsx("select",{"aria-label":"Select Session","data-testid":"timeline-session-select",className:"px-3 py-1.5 min-h-[44px] text-xs rounded-lg border border-base-content/20 bg-base-300 font-mono text-base-content max-w-xs focus:outline-none focus-visible:ring-2 focus-visible:ring-primary",value:P.source&&P.sessionId?Pa(P.source,P.sessionId):"",onChange:J=>{const _e=i.find(fe=>Pa(fe.source,fe.id)===J.target.value);_e&&s?.(_e.source,_e.id)},children:i.length>0?i.map(J=>l.jsx("option",{value:Pa(J.source,J.id),children:Xx(J)},Pa(J.source,J.id))):l.jsx("option",{value:P.source&&P.sessionId?Pa(P.source,P.sessionId):"",children:P.sessionId?Xx({id:P.sessionId,source:P.source??"unknown",start:P.start??"",tokenLoad:ne}):"No session selected"})})]}),l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx("button",{type:"button","aria-label":"Previous session",disabled:!O,className:"px-3 py-2 min-h-[44px] min-w-[44px] inline-flex items-center justify-center text-xs font-mono rounded-lg border border-base-content/20 bg-base-300 text-base-content/80 disabled:opacity-40 disabled:cursor-not-allowed hover:bg-base-content/10 transition-colors focus-visible:ring-2 focus-visible:ring-primary",onClick:()=>O&&s?.(O.source,O.id),children:"←"}),l.jsx("button",{type:"button","aria-label":"Next session",disabled:!Ce,className:"px-3 py-2 min-h-[44px] min-w-[44px] inline-flex items-center justify-center text-xs font-mono rounded-lg border border-base-content/20 bg-base-300 text-base-content/80 disabled:opacity-40 disabled:cursor-not-allowed hover:bg-base-content/10 transition-colors focus-visible:ring-2 focus-visible:ring-primary",onClick:()=>Ce&&s?.(Ce.source,Ce.id),children:"→"})]})]}):l.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[l.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 rounded-lg bg-base-300 border border-base-content/20 text-xs font-mono",children:[l.jsx("span",{className:"text-base-content/60",children:"Scope:"}),l.jsxs("span",{className:"font-semibold text-primary",children:[P.sessionCount," sessions"]})]}),l.jsxs("form",{className:"flex flex-wrap items-end gap-2",onSubmit:J=>{J.preventDefault(),p?.({taskWbs:R.trim(),runId:T.trim()})},children:[l.jsxs("label",{className:"flex flex-col gap-1 text-[10px] font-mono text-base-content/60",children:["Task WBS",l.jsx("input",{type:"text",value:R,onInput:J=>N(J.currentTarget.value),className:"min-h-[44px] w-28 rounded-lg border border-base-content/20 bg-base-300 px-2 text-xs text-base-content focus:outline-none focus-visible:ring-2 focus-visible:ring-primary"})]}),l.jsxs("label",{className:"flex flex-col gap-1 text-[10px] font-mono text-base-content/60",children:["Run ID",l.jsx("input",{type:"text",value:T,onInput:J=>_(J.currentTarget.value),className:"min-h-[44px] w-40 rounded-lg border border-base-content/20 bg-base-300 px-2 text-xs text-base-content focus:outline-none focus-visible:ring-2 focus-visible:ring-primary"})]}),l.jsx("button",{type:"submit",className:"min-h-[44px] rounded-lg bg-primary px-3 text-xs font-semibold text-primary-content focus-visible:ring-2 focus-visible:ring-primary",children:"Apply scope"})]})]}),l.jsx("button",{type:"button","aria-pressed":D,disabled:pe.length===0,className:"px-3.5 py-2 min-h-[44px] rounded-lg text-xs font-semibold border border-primary/30 text-primary hover:bg-primary/10 disabled:opacity-40 disabled:cursor-not-allowed transition-colors focus-visible:ring-2 focus-visible:ring-primary",onClick:Q,children:D?"Collapse all":"Expand all"}),l.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-xs font-mono text-base-content/80",children:[l.jsxs("label",{className:"inline-flex items-center gap-1.5 cursor-pointer select-none",children:[l.jsx("input",{type:"checkbox","data-testid":"timeline-filter-assistant",className:"w-3.5 h-3.5 rounded border border-base-content/30 accent-primary focus-visible:ring-1 focus-visible:ring-primary",checked:E,onChange:J=>x(J.target.checked)}),l.jsx("span",{children:"Hide assistant"})]}),l.jsxs("label",{className:"inline-flex items-center gap-1.5 cursor-pointer select-none",children:[l.jsx("input",{type:"checkbox","data-testid":"timeline-filter-unknown",className:"w-3.5 h-3.5 rounded border border-base-content/30 accent-primary focus-visible:ring-1 focus-visible:ring-primary",checked:y,onChange:J=>S(J.target.checked)}),l.jsx("span",{children:"Hide unknown"})]}),l.jsxs("label",{className:"inline-flex items-center gap-1.5 cursor-pointer select-none",children:[l.jsx("input",{type:"checkbox","data-testid":"timeline-filter-empty",className:"w-3.5 h-3.5 rounded border border-base-content/30 accent-primary focus-visible:ring-1 focus-visible:ring-primary",checked:v,onChange:J=>w(J.target.checked)}),l.jsx("span",{children:"Hide other empty"})]})]})]})]}),l.jsxs("div",{"data-testid":"timeline-metadata-strip",className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 lg:grid-cols-9 gap-3 pt-3 border-t border-base-content/10 text-xs font-mono",children:[l.jsxs("div",{className:"flex flex-col",children:[l.jsx("span",{className:"text-[10px] uppercase tracking-wider text-base-content/60",children:r==="session"?"SESSION":"SESSIONS"}),l.jsx("span",{className:"font-semibold truncate",title:P.sessionId??`${P.sessionCount} sessions`,children:P.sessionId?vd(P.sessionId):`${P.sessionCount} total`})]}),l.jsxs("div",{className:"flex flex-col",children:[l.jsx("span",{className:"text-[10px] uppercase tracking-wider text-base-content/60",children:"AGENT"}),l.jsx("span",{className:"inline-flex items-center gap-1 font-semibold truncate",children:P.source?l.jsxs(l.Fragment,{children:[l.jsx(li,{id:P.source}),P.source]}):"multiple"})]}),l.jsxs("div",{className:"flex flex-col",children:[l.jsx("span",{className:"text-[10px] uppercase tracking-wider text-base-content/60",children:"MODEL"}),l.jsxs("span",{className:"inline-flex items-center gap-1.5 truncate",children:[l.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary/70 shrink-0"}),P.model??"multiple"]})]}),l.jsxs("div",{className:"flex flex-col",children:[l.jsx("span",{className:"text-[10px] uppercase tracking-wider text-base-content/60",children:"STARTED"}),l.jsx("span",{className:"truncate",children:aw(P.start)})]}),l.jsxs("div",{className:"flex flex-col",children:[l.jsx("span",{className:"text-[10px] uppercase tracking-wider text-base-content/60",children:"DURATION"}),l.jsx("span",{className:"font-semibold truncate",children:Jv(P.durationMs/6e4)})]}),l.jsxs("div",{className:"flex flex-col",children:[l.jsx("span",{className:"text-[10px] uppercase tracking-wider text-base-content/60",children:"TOTAL TOKENS"}),l.jsx("span",{className:"font-bold text-primary truncate",children:Ze(ne)})]}),l.jsxs("div",{className:"flex flex-col",children:[l.jsx("span",{className:"text-[10px] uppercase tracking-wider text-base-content/60",children:"CACHE READ"}),l.jsxs("span",{className:"font-semibold text-cyan-400 truncate",children:[z.toFixed(1),"%"]})]}),l.jsxs("div",{className:"flex flex-col",children:[l.jsx("span",{className:"text-[10px] uppercase tracking-wider text-base-content/60",children:"OUTPUT TOKENS"}),l.jsx("span",{className:"truncate",children:Ze(P.tokens.outputTokens)})]}),l.jsxs("div",{className:"flex flex-col",children:[l.jsx("span",{className:"text-[10px] uppercase tracking-wider text-base-content/60",children:"TOOL CALLS"}),l.jsx("span",{className:"truncate",children:fn(P.toolCallCount)})]})]}),l.jsx(Xz,{blocks:se,start:P.start,end:P.end,onJumpToTime:De})]}),U&&l.jsxs("div",{"data-testid":"timeline-truncated-banner",className:"p-3 rounded-lg bg-info/10 border border-info/20 text-info font-mono text-xs flex items-center gap-2",children:[l.jsx("span",{children:"ℹ️"}),l.jsx("span",{children:"Showing newest 5,000 events. Apply a narrower filter or time window to inspect earlier events."})]}),l.jsx("div",{"data-testid":"timeline-rail",className:"relative py-2 sm:py-4 before:absolute before:left-2 sm:before:left-[136px] before:top-0 before:bottom-0 before:w-px before:bg-gradient-to-b before:from-transparent before:via-base-content/20 before:to-transparent flex flex-col gap-3",children:se.map(J=>{const _e=J.events.filter(X=>X.kind==="user"),fe=J.events.filter(X=>X.kind!=="user");return l.jsxs("div",{id:`timeline-block-${sa(J.key)}`,"data-testid":`timeline-block-${J.key}`,className:"flex flex-col gap-2.5",children:[r==="consolidated"&&l.jsxs("div",{className:"flex items-center gap-2 pl-6 sm:pl-[144px] pt-2 pb-1 font-mono text-xs text-base-content/70",children:[l.jsx(li,{id:J.source}),l.jsx("span",{className:"font-bold text-base-content",children:J.source}),l.jsxs("span",{children:["· ",vd(J.sessionId)]}),l.jsxs("span",{children:["· Turn #",J.turnIndex]}),J.correlationExactness&&l.jsx("span",{"data-testid":`timeline-exactness-${J.key}`,className:`px-1.5 py-0.2 rounded text-[10px] font-bold ${J.correlationExactness==="exact"?"bg-emerald-500/10 text-emerald-400 border border-emerald-500/20":"bg-amber-500/10 text-amber-400 border border-amber-500/20"}`,children:J.correlationExactness})]}),_e.map(X=>{const Ge=eH(X),ge=X.payload?.trim()??"",me=Qx(Ge),Te=!!X.payload?.trim(),Se=!!C[Ma(J.key,X.seq)],oe=sa(`timeline-user-drawer-${J.key}-${X.seq}`),qe=sa(`user-tt-${J.key}-${X.seq}`);return l.jsxs("div",{className:"relative flex flex-col sm:grid sm:grid-cols-[136px_minmax(0,1fr)] py-1","data-testid":`timeline-user-event-${J.key}-${X.seq}`,children:[l.jsxs("div",{className:"hidden sm:flex flex-col items-end justify-center pr-4 font-mono text-[10.5px] text-base-content/70",children:[l.jsx("span",{className:"font-semibold text-base-content/90",children:wd(J.timestamp)}),l.jsxs("span",{className:"text-[10px] text-base-content/50",children:["📥 ",Ze(X.freshInputTokens)," in"]})]}),l.jsx("span",{"data-timeline-node":"prompt",className:"absolute left-[3.5px] sm:left-[131.5px] top-1/2 -translate-y-1/2 w-[9px] h-[9px] rounded-full bg-cyan-400 ring-4 ring-base-100 z-10","aria-hidden":"true"}),l.jsx("div",{className:"pl-6 sm:pl-5 min-w-0 flex justify-end",children:l.jsxs("div",{className:"w-[80%] max-w-none bg-base-100 rounded-lg border border-primary/20 hover:border-primary/40 transition-colors p-2 sm:px-3 sm:py-2 flex flex-col gap-1",children:[l.jsxs("div",{className:"flex items-center justify-between gap-2 min-h-[32px]",children:[l.jsxs("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[l.jsx(rH,{promptTokens:X.promptTokens,fullText:ge,tooltipId:qe}),l.jsx("span",{className:"font-mono text-xs font-semibold text-base-content/90 truncate min-w-0",children:me})]}),l.jsx("div",{className:"flex items-center gap-2 shrink-0 font-mono text-[11px] text-base-content/60",children:Te?l.jsx("button",{type:"button","aria-label":Se?"Collapse full user prompt":"Expand full user prompt","aria-expanded":Se,"aria-controls":oe,onClick:()=>I(J.key,X.seq),className:"p-1 min-h-[44px] min-w-[44px] sm:min-h-0 sm:min-w-0 inline-flex items-center justify-center text-base-content/60 hover:text-base-content transition-colors cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-primary rounded",children:l.jsx("span",{className:`text-xs font-mono transition-transform duration-150 ${Se?"rotate-90":""}`,"aria-hidden":"true",children:"›"})}):null})]}),Se&&Te&&l.jsx("div",{id:oe,className:"mt-1 p-3 bg-[#0d141f] text-slate-100 rounded-md font-mono text-xs whitespace-pre-wrap overflow-x-auto border border-white/10",children:Ge})]})})]},Ma(J.key,X.seq))}),fe.map(X=>{const Ge=tH(X),ge=!!C[Ma(J.key,X.seq)],me=!!X.payload?.trim(),Te=sa(`timeline-op-drawer-${J.key}-${X.seq}`),Se=sa(`agent-tt-${J.key}-${X.seq}`),oe=sa(`tool-tt-${J.key}-${X.seq}`),qe=Jx(X);return l.jsxs("div",{className:"relative flex flex-col sm:grid sm:grid-cols-[136px_minmax(0,1fr)] py-1 hover:z-30 focus-within:z-30","data-testid":`timeline-op-event-${J.key}-${X.seq}`,children:[l.jsxs("div",{className:"hidden sm:flex flex-col items-end justify-center pr-4 font-mono text-[10.5px] text-base-content/70",children:[l.jsx("span",{className:"font-semibold text-base-content/90",children:wd(J.timestamp)}),X.durationSource==="measured"&&X.durationMs!==null?l.jsxs("span",{"data-testid":`timeline-step-duration-${J.key}-${X.seq}`,className:X.durationMs>=5e3?"font-bold text-amber-400":"text-base-content/60",children:["⏱ ",xd(X.durationMs)]}):X.durationSource==="inferred"&&X.durationMs!==null?l.jsxs("span",{"data-testid":`timeline-step-duration-${J.key}-${X.seq}`,title:"Inferred from next event timestamp within session",className:"text-base-content/60 italic",children:["⏱ ~",xd(X.durationMs)]}):l.jsx("span",{"data-testid":`timeline-step-duration-${J.key}-${X.seq}`,title:"Unmeasured (gap > 10m or last event)",className:"text-base-content/40",children:"⏱ —"})]}),l.jsx("span",{"data-timeline-node":"operation",className:"absolute left-[3.5px] sm:left-[131.5px] top-1/2 -translate-y-1/2 w-[9px] h-[9px] rounded-full ring-4 ring-base-100 z-10",style:{backgroundColor:Ge.color},"aria-hidden":"true"}),l.jsx("div",{className:"pl-6 sm:pl-5 min-w-0 flex justify-start",children:qe?l.jsxs("div",{className:"w-[80%] max-w-none bg-base-100 rounded-lg border border-base-content/10 border-l-[3px] border-l-primary/70 transition-colors relative",children:[l.jsxs("div",{className:"flex items-center justify-between gap-2 px-2.5 py-1.5 min-h-[38px]",children:[l.jsxs("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[l.jsx(ey,{agentId:X.agent||J.source,model:X.model||J.model,timestamp:J.timestamp,tooltipId:Se}),l.jsx("span",{className:"font-mono text-xs text-base-content/60 truncate",children:X.model}),l.jsx("span",{className:"font-mono text-xs text-base-content/90 truncate min-w-0",children:Qx(X.payload||X.title)})]}),l.jsxs("div",{className:"flex items-center gap-2 shrink-0 font-mono text-[11px] text-base-content/60",children:[l.jsxs("span",{children:["📤 ",Ze(X.outputTokens)]}),me?l.jsx("button",{type:"button","aria-label":ge?"Collapse response":"Expand response","aria-expanded":ge,"aria-controls":Te,onClick:()=>I(J.key,X.seq),className:"p-1 min-h-[44px] min-w-[44px] sm:min-h-0 sm:min-w-0 inline-flex items-center justify-center text-base-content/60 hover:text-base-content transition-colors cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-primary rounded",children:l.jsx("span",{className:`text-xs font-mono transition-transform duration-150 ${ge?"rotate-90":""}`,"aria-hidden":"true",children:"›"})}):null]})]}),ge&&X.payload&&l.jsx("div",{id:Te,className:"p-3 bg-[#0d141f] text-slate-100 font-mono text-xs whitespace-pre-wrap overflow-x-auto rounded-b-lg border-t border-base-content/10",children:X.payload})]}):l.jsxs("div",{className:"w-[80%] max-w-none bg-base-100 rounded-lg border border-base-content/10 border-l-[3px] transition-colors relative",style:{borderLeftColor:Ge.color},children:[l.jsxs("div",{className:"flex items-center justify-between gap-2 px-2.5 py-1.5 min-h-[38px]",children:[l.jsxs("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[l.jsx(ey,{agentId:X.agent||J.source,model:X.model||J.model,timestamp:J.timestamp,tooltipId:Se}),l.jsx(aH,{title:Ge.label,freshInputTokens:X.freshInputTokens,cacheReadTokens:X.cacheReadTokens,outputTokens:X.outputTokens,color:Ge.color,tooltipId:oe}),X.title&&X.title.trim().length>0?l.jsx("span",{className:"font-mono text-xs font-semibold text-base-content/90 truncate min-w-0",title:X.title,children:X.title}):null]}),l.jsxs("div",{className:"flex items-center gap-2 shrink-0 font-mono",children:[X.exitCode!==null&&l.jsxs("span",{className:`px-1.5 py-0.5 rounded text-[10px] font-bold ${X.exitCode===0?"bg-emerald-500/20 text-emerald-400 border border-emerald-500/30":"bg-error/20 text-error border border-error/30"}`,children:["EXIT_CODE=",X.exitCode]}),me?l.jsx("button",{type:"button","aria-label":ge?"Collapse operation payload":"Expand operation payload","aria-expanded":ge,"aria-controls":Te,onClick:()=>I(J.key,X.seq),className:"p-1 min-h-[44px] min-w-[44px] sm:min-h-0 sm:min-w-0 inline-flex items-center justify-center text-base-content/60 hover:text-base-content transition-colors cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-primary rounded",children:l.jsx("span",{className:`text-xs font-mono transition-transform duration-150 ${ge?"rotate-90":""}`,"aria-hidden":"true",children:"›"})}):null]})]}),ge&&X.payload&&l.jsx("div",{id:Te,className:"p-3 bg-[#0d141f] text-slate-100 font-mono text-xs whitespace-pre-wrap overflow-x-auto rounded-b-lg border-t border-base-content/10",children:X.payload})]})})]},Ma(J.key,X.seq))})]},J.key)})})]})},iH=[{id:"summary",label:"Summary",component:rw},{id:"timeline",label:"Timeline",component:iw},{id:"sessions",label:"Sessions",component:tw},{id:"insights",label:"Insights",component:ew},{id:"sources",label:"Sources",component:nw}],ko=(e,t)=>{const n=new Map;for(const r of e)n.set(r.id,r);for(const r of t??[])n.has(r)||n.set(r,{id:r,label:r});return[...n.values()]},sH=e=>e.range==="24h"?"Last 24h":e.range==="7d"?"Last 7d":e.range==="30d"?"Last 30d":e.range==="all"?"All time":`${e.from?.slice(0,10)??"…"} → ${e.to?.slice(0,10)??"…"}`,wc=e=>e instanceof Error?e.message:String(e),oH=()=>{const[e,t]=g.useState("summary"),[n,r]=g.useState({range:"30d",bucket:"auto",dimension:"model"}),[a,i]=g.useState("session"),[s,o]=g.useState(null),[u,c]=g.useState({taskWbs:"",runId:""}),[p,d]=g.useState(1),[f,m]=g.useState("start"),[b,E]=g.useState("desc"),[x,y]=g.useState(void 0),[S,v]=g.useState(void 0),[w,R]=g.useState(void 0),[N,T]=g.useState(void 0),[_,L]=g.useState(void 0),[C,$]=g.useState([]),[I,P]=g.useState(!1),[W,U]=g.useState(!0),[ne,z]=g.useState(null),[se,pe]=g.useState(!0),[D,Q]=g.useState(null),[de,O]=g.useState(!0),[Ce,De]=g.useState(null),[J,_e]=g.useState(!1),[fe,X]=g.useState(null),[Ge,ge]=g.useState(!1),[me,Te]=g.useState(null);g.useEffect(()=>{let ee=!0;return U(!0),z(null),pe(!0),Q(null),(async()=>{const[ue,Be]=await Promise.allSettled([yn.history.getSummary(n),yn.history.getInsights(n)]);ee&&(ue.status==="fulfilled"&&ue.value?.data?y(ue.value.data):z("Failed to load summary"),Be.status==="fulfilled"&&Be.value?.data?T(Be.value.data):Q("Failed to load insights"),U(!1),pe(!1))})(),()=>{ee=!1}},[n]),g.useEffect(()=>{let ee=!0;return O(!0),De(null),(async()=>{try{const ue=await yn.history.getSources();if(!ee)return;ue?.data?L(ue.data):De("Failed to load sources")}catch(ue){ee&&De(wc(ue))}finally{ee&&O(!1)}})(),()=>{ee=!1}},[]),g.useEffect(()=>{if(e!=="timeline")return;let ee=!0;return P(!0),(async()=>{try{const ue=await yn.history.getSessions({filter:n,page:1,pageSize:100,sortBy:"start",sortDir:"desc"});if(!ee)return;const Be=(ue?.data?.items??[]).map(mt=>({id:mt.id,source:mt.source,model:mt.model,start:mt.start,tokenLoad:mt.freshInputTokens+mt.cacheReadTokens+mt.outputTokens}));$(Be);const Ye=Be[0];Ye&&!s&&o({source:Ye.source,id:Ye.id})}catch{ee&&$([])}finally{ee&&P(!1)}})(),()=>{ee=!1}},[e,n,s]),g.useEffect(()=>{if(e!=="sessions")return;let ee=!0;return _e(!0),X(null),(async()=>{try{const ue=await yn.history.getSessions({filter:n,page:p,pageSize:20,sortBy:f,sortDir:b});if(!ee)return;ue?.data?R(ue.data):X("Failed to load sessions")}catch(ue){ee&&X(wc(ue))}finally{ee&&_e(!1)}})(),()=>{ee=!1}},[e,n,p,f,b]),g.useEffect(()=>{if(e!=="timeline")return;if(a==="session"&&!s){const ue=C[0];!I&&ue&&o({source:ue.source,id:ue.id});return}let ee=!0;return ge(!0),Te(null),(async()=>{try{const ue=a==="session"&&s?await yn.history.getTimeline({mode:"session",source:s.source,sessionId:s.id}):await yn.history.getTimeline({mode:"consolidated",filter:n,...u.taskWbs?{taskWbs:u.taskWbs}:{},...u.runId?{runId:u.runId}:{}});if(!ee)return;ue?.data?v(ue.data):Te("Failed to load timeline")}catch(ue){ee&&Te(wc(ue))}finally{ee&&ge(!1)}})(),()=>{ee=!1}},[e,a,s,n,I,C,u]);const Se=(ee,ue)=>{o({source:ee,id:ue}),i("session"),t("timeline")},oe=(ee,ue)=>{const Be=ue?{source:ue,id:ee}:w?.items.find(Ye=>Ye.id===ee)??C.find(Ye=>Ye.id===ee);Be&&Se(Be.source,Be.id)},qe=async ee=>(await yn.history.triggerImport({mode:ee})).data,at=ne?"—":W||x===void 0?"…":String(x.kpis.sessionsCount),ft=D?"—":se||N===void 0?"…":String(N.loops.length),Dt=Ce?"—":de||_===void 0?"…":String(_.agents.length),xt={summary:null,timeline:null,sessions:at,insights:ft,sources:Dt},Ut=Ce?"—":de?"…":_?.overview.lastImportedAt?new Date(_.overview.lastImportedAt).toLocaleString():"never imported",Kt=N?{count:N.loops.length,redundantCalls:N.loops.reduce((ee,ue)=>ee+Math.max(0,ue.repeats-1),0),wastedTokens:N.loops.reduce((ee,ue)=>ee+ue.wastedTokens,0)}:void 0,ot=ko(_?.agents.map(ee=>({id:ee.id,label:ee.name,color:ee.color}))??[],n.sources),Oe=ko(x?.topModels.map(ee=>({id:ee.id,label:ee.label,color:ee.color}))??[],n.models),Qe=ko(x?.topTools.map(ee=>({id:ee.id,label:ee.id}))??[],n.tools),Y=ko(x?.skillsUsed.map(ee=>({id:ee.id,label:ee.label,color:ee.color}))??[],n.skills),ie={rangeLabel:sH(n),sessionCount:ne?null:W&&x===void 0?void 0:x?.kpis.sessionsCount,sourceCount:n.sources?.length??_?.agents.length};return l.jsxs("div",{className:"flex flex-col gap-4 p-4 max-w-[1600px] mx-auto w-full",children:[l.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4 border-b border-base-content/10 pb-3",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("span",{className:"text-2xl",children:"📊"}),l.jsxs("div",{children:[l.jsx("h1",{className:"text-xl font-bold tracking-tight",children:"History"}),l.jsx("p",{className:"text-xs text-base-content/60",children:"Transcript telemetry, session traces, and prompt cache analytics"}),l.jsxs("p",{className:"livechip mt-1 inline-flex items-center gap-1.5 rounded-full border border-base-content/10 px-2 py-0.5 text-xs text-base-content/60 font-mono","data-testid":"history-last-import",role:"status",children:[l.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${Ce?"bg-error":"bg-emerald-400 animate-pulse"}`,"aria-hidden":"true"}),"last import ",Ut]})]})]}),l.jsx("div",{className:"flex items-center gap-1 bg-base-300 p-1 rounded-xl",children:iH.map(ee=>l.jsxs("button",{type:"button",className:`px-3 py-1.5 text-xs font-semibold rounded-lg transition-all ${e===ee.id?"bg-primary text-primary-content font-bold shadow-sm":"text-base-content/70 hover:bg-base-content/10"}`,onClick:()=>t(ee.id),children:[ee.label,xt[ee.id]!==null&&l.jsx("span",{className:"ml-1.5 px-1.5 py-0.5 rounded-full text-[10px] font-mono bg-base-content/10","data-testid":`history-badge-${ee.id}`,children:xt[ee.id]})]},ee.id))})]}),e!=="sources"&&l.jsx(Uz,{filter:n,onChange:r,sourceOptions:ot,modelOptions:Oe,toolOptions:Qe,skillOptions:Y,scope:ie}),l.jsxs("div",{className:"mt-2",children:[e==="summary"&&l.jsx(rw,{data:x,loading:W,error:ne,dimension:n.dimension??"model",onDimensionChange:ee=>r(ue=>({...ue,dimension:ee})),bucket:n.bucket??"auto",onBucketChange:ee=>r(ue=>({...ue,bucket:ee})),loopSummary:Kt}),e==="timeline"&&l.jsx(iw,{data:S,loading:Ge,error:me,mode:a,sessionId:s?.id,sessionSource:s?.source,availableSessions:C,onSelectSession:Se,onModeChange:i,consolidatedTaskWbs:u.taskWbs,consolidatedRunId:u.runId,onConsolidatedScopeSubmit:c}),e==="sessions"&&l.jsx(tw,{data:w,loading:J,error:fe,sortBy:f,sortDir:b,page:p,pageSize:20,onSortChange:ee=>{f===ee?E(ue=>ue==="asc"?"desc":"asc"):(m(ee),E("desc"))},onPageChange:d,onSelectSession:Se}),e==="insights"&&l.jsx(ew,{data:N,loading:se,error:D,cacheHitTrend:x?.kpiTrend??[],onSelectSession:oe}),e==="sources"&&l.jsx(nw,{data:_,loading:de,error:Ce,onTriggerImport:qe})]})]})},lH={id:"history",name:"History",icon:"📊",route:"history",component:oH,sidebarLabel:"History",order:3},uH=Object.freeze(Object.defineProperty({__proto__:null,module:lH},Symbol.toStringTag,{value:"Module"}));function cH(e){if(!e||typeof e!="object"||!("teams"in e))return null;const t=e.teams;if(!Array.isArray(t))return null;const n=[];for(const r of t){if(!r||typeof r!="object")continue;const a=r;if(typeof a.teamId!="string"||typeof a.name!="string"||!Array.isArray(a.members))continue;const i=[];for(const s of a.members){if(!s||typeof s!="object")continue;const o=s;typeof o.id!="string"||typeof o.type!="string"||typeof o.status!="string"||i.push({id:o.id,type:o.type,status:o.status,...typeof o.model=="string"&&o.model.length>0?{model:o.model}:{},...typeof o.autoStart=="boolean"?{autoStart:o.autoStart}:{},...typeof o.pid=="number"?{pid:o.pid}:{},...typeof o.role=="string"&&o.role.length>0?{role:o.role}:{},...typeof o.executor=="string"&&o.executor.length>0?{executor:o.executor}:{}})}n.push({teamId:a.teamId,name:a.name,workDir:typeof a.workDir=="string"?a.workDir:null,isCurrentProject:a.isCurrentProject===!0,members:i})}return n}const dH=()=>`${At()}/team/teams`,pH=5e3;function wi(){const[e,t]=g.useState([]),[n,r]=g.useState(null),a=g.useRef(!0),i=g.useCallback(async()=>{try{const s=await vt(new Request(dH()));if(!s.ok)throw new Error(`teams fetch failed: ${s.status}`);const o=await s.json(),u=cH(o);u&&a.current&&(t(u),r(null))}catch(s){a.current&&r(s instanceof Error?s.message:String(s))}},[]);return g.useEffect(()=>{a.current=!0,i();const s=setInterval(i,pH);return()=>{a.current=!1,clearInterval(s)}},[i]),{teams:e,error:n,reload:i}}const fH=(e=50)=>`${At()}/messages?limit=${e}`,mH=()=>`${At()}/events/planning`,hH=new Set(["message.sent","message.replied"]);function ty(e,t){if(e&&typeof e=="object"){const n=e;return{agentId:typeof n.agentId=="string"&&n.agentId.length>0?n.agentId:t,...typeof n.teamId=="string"&&n.teamId?{teamId:n.teamId}:{},...typeof n.teamName=="string"&&n.teamName?{teamName:n.teamName}:{},...typeof n.memberLabel=="string"&&n.memberLabel?{memberLabel:n.memberLabel}:{},...typeof n.agentType=="string"&&n.agentType?{agentType:n.agentType}:{}}}return{agentId:t}}function gH(e){if(!e||typeof e!="object"||!("messages"in e))return null;const t=e.messages;if(!Array.isArray(t))return null;const n=[];for(const r of t){if(!r||typeof r!="object")continue;const a=r;if(typeof a.id!="string"||typeof a.toId!="string"||typeof a.body!="string"||typeof a.status!="string"||typeof a.createdAt!="string")continue;const i=a.fromId===null||a.fromId===void 0?null:typeof a.fromId=="string"?a.fromId:null;n.push({id:a.id,fromId:i,toId:a.toId,body:a.body,status:a.status,createdAt:a.createdAt,inReplyTo:typeof a.inReplyTo=="string"?a.inReplyTo:null,hasReply:a.hasReply===!0,replyCount:typeof a.replyCount=="number"&&Number.isFinite(a.replyCount)?a.replyCount:0,...i!==null?{from:ty(a.from,i)}:{},to:ty(a.to,a.toId)})}return n}function sw(e,t){return e.filter(n=>n.to.teamId===t||n.from?.teamId===t)}function hb(){const[e,t]=g.useState(null),[n,r]=g.useState(null),a=g.useCallback(async i=>{try{const s=await vt(new Request(fH(),{signal:i}));if(!s.ok)throw new Error(`messages fetch failed: ${s.status}`);const o=gH(await s.json());o&&t(o)}catch(s){if(i?.aborted)return;r(s instanceof Error?s.message:String(s))}},[]);return g.useEffect(()=>{const i=new AbortController;a(i.signal);const s=setInterval(()=>{a(i.signal)},1e4);return()=>{i.abort(),clearInterval(s)}},[a]),g.useEffect(()=>{if(typeof EventSource>"u")return;const i=new AbortController,s=new EventSource(mH());return s.onmessage=o=>{try{const u=JSON.parse(o.data);if(u===null||typeof u!="object")return;const c=u.eventName;typeof c=="string"&&hH.has(c)&&a(i.signal)}catch{}},()=>{i.abort(),s.close()}},[a]),{messages:e,error:n}}function gb({messages:e}){return e.length===0?l.jsx("div",{className:"p-4 text-sm text-spur-text-muted italic","data-message-feed-empty":!0,children:"No messages yet."}):l.jsx("ul",{className:"flex-1 overflow-y-auto p-2 space-y-1",children:e.map(t=>{const n=t.from?[t.from.memberLabel??t.from.agentId,t.from.agentType].filter(Boolean).join(" · "):t.fromId??"system",r=[t.to.memberLabel??t.to.agentId,t.to.agentType].filter(Boolean).join(" · "),a=t.from?.teamName,i=t.to.teamName,s=t.status==="injected"?"injected":t.status==="queued"?"queued":null;return l.jsxs("li",{className:"p-2 bg-spur-surface-2 border border-spur-border rounded-xl text-sm",children:[l.jsxs("div",{className:"flex items-center gap-2 text-spur-text-muted text-xs",children:[l.jsxs("span",{"data-message-route":!0,className:"truncate",children:[a&&l.jsxs("span",{className:"text-xs opacity-70",children:[a," / "]}),l.jsx("span",{children:n}),l.jsx("span",{className:"mx-1",children:"→"}),i&&l.jsxs("span",{className:"text-xs opacity-70",children:[i," / "]}),l.jsx("span",{children:r})]}),s&&l.jsx("span",{className:`text-xs px-1 rounded ${s==="injected"?"bg-success/20 text-success":"bg-warning/20 text-warning"}`,"data-message-delivery":!0,children:s}),l.jsx("span",{className:`text-xs ${t.hasReply?"text-info":"text-spur-text-muted"}`,"data-message-reply-badge":!0,"data-message-reply-state":t.hasReply?"replied":"awaiting",children:t.hasReply?t.replyCount>1?`Replied (${t.replyCount})`:"Replied":"Awaiting reply"}),l.jsx("span",{className:"ml-auto font-mono text-xs text-spur-text-muted",children:t.createdAt})]}),l.jsx("p",{className:"text-spur-text mt-1 whitespace-pre-wrap break-words",children:t.body})]},t.id)})})}function bH({teamId:e}){const{messages:t,error:n}=hb();if(n)return l.jsxs("div",{className:"p-4 text-sm text-error",role:"alert",children:["Failed to load messages: ",n]});if(t===null)return l.jsx("div",{className:"p-4 text-sm text-spur-text-muted",children:"Loading messages…"});const r=e?sw(t,e):t;return l.jsxs("div",{className:"flex flex-col h-full overflow-hidden bg-spur-bg","data-all-tab":!0,children:[l.jsx("div",{className:"px-4 py-2 border-b border-spur-border bg-spur-surface shrink-0",children:l.jsx("span",{className:"text-xs font-semibold text-spur-text-muted uppercase tracking-wide",children:e?`Message · ${e}`:"Message · all teams"})}),l.jsx(gb,{messages:r})]})}function EH(e,t){return e.filter(n=>n.fromId===t||n.toId===t)}function xH({agentId:e}){const{messages:t,error:n}=hb();if(n)return l.jsxs("div",{className:"p-4 text-sm text-error",role:"alert",children:["Failed to load messages: ",n]});if(t===null)return l.jsx("div",{className:"p-4 text-sm text-spur-text-muted",children:"Loading messages…"});const r=EH(t,e);return l.jsxs("div",{className:"flex flex-col h-full overflow-hidden bg-spur-bg","data-agent-tab":!0,children:[l.jsxs("div",{className:"px-4 py-2 border-b border-spur-border bg-spur-surface shrink-0 flex items-center gap-2",children:[l.jsx("span",{className:"text-xs font-semibold text-spur-text-muted uppercase tracking-wide",children:"Messages"}),l.jsx("span",{className:"font-mono text-xs text-spur-text-muted",children:e})]}),l.jsx(gb,{messages:r})]})}const ny="supervisor";function yH(e){return e.fromId===ny||e.toId===ny}function TH({teamId:e}){const{messages:t,error:n}=hb();if(n)return l.jsxs("div",{className:"p-4 text-sm text-error",role:"alert",children:["Failed to load messages: ",n]});if(t===null)return l.jsx("div",{className:"p-4 text-sm text-spur-text-muted",children:"Loading messages…"});const r=t.filter(yH),a=e?sw(r,e):r;return l.jsxs("div",{className:"flex flex-col h-full overflow-hidden bg-spur-bg","data-supervisor-tab":!0,children:[l.jsx("div",{className:"px-4 py-2 border-b border-spur-border bg-spur-surface shrink-0",children:l.jsx("span",{className:"text-xs font-semibold text-spur-text-muted uppercase tracking-wide",children:"Message · supervisor"})}),l.jsx(gb,{messages:a})]})}const SH=[{id:"all",label:"All"},{id:"supervisor",label:"Supervisor"}],El="agent-";function vH(e,t,n){if(e==="all")return l.jsx(bH,{teamId:n});if(e==="supervisor")return l.jsx(TH,{teamId:n});if(e.startsWith(El)){const r=e.slice(El.length);if(t.includes(r))return l.jsx(xH,{agentId:r})}return null}function ow({teamId:e}){const{teams:t}=wi(),[n,r]=g.useState(""),[a,i]=g.useState("all");g.useEffect(()=>{e||!n&&t.length>0&&r(t[0]?.teamId??"")},[e,t,n]);const s=e??n,o=t.find(d=>d.teamId===s)??t[0]??null,u=o?o.members.map(d=>d.id):[],c=a==="all"||a==="supervisor"||u.includes(a.slice(El.length))?a:"all",p=g.useMemo(()=>{const d=u.map(f=>({id:`${El}${f}`,label:f}));return[...SH,...d]},[u]);return l.jsxs("div",{className:"inbox flex flex-col h-full overflow-hidden bg-spur-bg","data-inbox-shell":!0,children:[l.jsxs("div",{className:"px-4 py-2 border-b border-spur-border bg-spur-surface shrink-0 flex items-center justify-between",children:[l.jsx("span",{className:"text-xs font-semibold text-spur-text-muted uppercase tracking-wide",children:"Inbox"}),!e&&t.length>0&&l.jsxs("label",{className:"flex items-center gap-1 text-xs",htmlFor:"inbox-team-select",children:[l.jsx("span",{className:"text-spur-text-muted",children:"Team"}),l.jsxs(Kr,{id:"inbox-team-select",variant:"bordered",size:"sm",value:o?.teamId??"",onChange:d=>{r(d.target.value),i("all")},"data-inbox-team-select":!0,children:[l.jsx("option",{value:"",children:"Select team…"}),t.map(d=>l.jsx("option",{value:d.teamId,children:d.name},d.teamId))]})]})]}),l.jsx("div",{role:"tablist","aria-label":"Inbox tabs",className:"flex items-center gap-1 px-2 py-1 border-b border-spur-border bg-spur-surface shrink-0",children:p.map(d=>{const f=d.id===c;return l.jsx("button",{type:"button",role:"tab","aria-selected":f,"aria-controls":`inbox-tab-panel-${d.id}`,id:`inbox-tab-${d.id}`,onClick:()=>i(d.id),className:`px-3 py-1 rounded-lg text-xs font-medium transition-colors ${f?"bg-spur-accent text-white":"text-spur-text-muted hover:text-spur-text hover:bg-spur-surface-3"}`,"data-inbox-tab":!0,children:d.label},d.id)})}),l.jsx("div",{role:"tabpanel",id:`inbox-tab-panel-${c}`,"aria-labelledby":`inbox-tab-${c}`,className:"flex-1 overflow-hidden",children:vH(c,u,e)})]})}const wH={id:"inbox",name:"Inbox",icon:"💬",route:"inbox",component:ow,sidebarLabel:"Inbox",order:1},AH=Object.freeze(Object.defineProperty({__proto__:null,module:wH},Symbol.toStringTag,{value:"Module"})),NH=["30s","5m","1h","24h","7d","all"],lw={"30s":3e4,"5m":5*6e4,"1h":60*6e4,"24h":1440*6e4,"7d":10080*6e4,all:null};function uw(e,t=Date.now()){const n=lw[e];if(n!=null)return new Date(t-n).toISOString()}function _H(e){return e.selectedPrefixes.size>0||e.searchQuery.trim()!==""||e.searchScope!=="all"||e.severity!=="all"||e.tierFilter!=="all"||e.runId.trim()!==""}function ry({label:e,value:t,onChange:n,options:r}){return l.jsxs("fieldset",{className:"flex items-center gap-0.5 bg-base-100 border border-base-content/20 rounded-md p-0.5","aria-label":e,children:[l.jsx("legend",{className:"sr-only",children:e}),r.map(a=>{const i=a.value===t;return l.jsxs("label",{className:`flex-1 text-[11px] text-center px-2 py-0.5 rounded cursor-pointer transition-all ${i?"bg-primary text-primary-content font-bold shadow-xs":"text-base-content/70 hover:bg-base-content/10"}`,children:[l.jsx("input",{type:"radio",name:`segmented-${e}`,value:a.value,checked:i,onChange:()=>n(a.value),className:"sr-only"}),a.label]},a.value)})]})}function CH({timeRange:e,onTimeRangeChange:t,filters:n,onFiltersChange:r,onClearFilters:a,prefixOptions:i,getPrefixColor:s,liveEnabled:o,onToggleLive:u,shownCount:c,totalCount:p,actions:d}){const f=g.useMemo(()=>{let E=0;return n.selectedPrefixes.size>0&&(E+=n.selectedPrefixes.size),n.searchQuery.trim()!==""&&(E+=1),n.severity!=="all"&&(E+=1),n.tierFilter!=="all"&&(E+=1),n.runId.trim()!==""&&(E+=1),E},[n]),m=_H(n),b=E=>{r(x=>{const y=new Set(x.selectedPrefixes);return y.has(E)?y.delete(E):y.add(E),{...x,selectedPrefixes:y}})};return l.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 px-4 py-2 border-b border-base-content/10 bg-base-100 shrink-0",children:[l.jsxs("fieldset",{className:"flex items-center gap-1 bg-base-200 p-1 rounded-lg border-0 m-0","aria-label":"Time range presets",children:[l.jsx("legend",{className:"sr-only",children:"Time range presets"}),NH.map(E=>{const x=e===E;return l.jsx("button",{type:"button",onClick:()=>t(E),"aria-pressed":x,className:`px-2.5 py-1 text-xs font-semibold rounded-md transition-all cursor-pointer ${x?"bg-primary text-primary-content font-bold shadow-sm":"text-base-content/70 hover:bg-base-content/10"}`,children:E==="all"?"All":E},E)})]}),l.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[l.jsxs("span",{"aria-live":"polite",className:"text-xs font-mono text-base-content/60 whitespace-nowrap","data-testid":"observability-result-count",children:[c," of ",p," shown"]}),l.jsxs("details",{className:"relative inline-block","data-testid":"observability-filter-disclosure",children:[l.jsxs("summary",{className:"px-2.5 py-1 text-xs font-medium rounded-lg border border-base-content/20 bg-base-200 text-base-content/80 hover:bg-base-300 transition-colors cursor-pointer list-none flex items-center gap-1.5 focus:outline-none focus:ring-2 focus:ring-primary/40","aria-label":"Toggle filter panel",children:[l.jsx("span",{children:"🔍 Filter"}),f>0&&l.jsx("span",{className:"px-1.5 py-0.2 rounded-full text-[10px] font-bold bg-primary text-primary-content",children:f})]}),l.jsxs("div",{className:"absolute right-0 top-full z-30 p-3 shadow-xl bg-base-200 border border-base-content/10 rounded-xl w-80 sm:w-96 mt-2 flex flex-col gap-3",children:[l.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-base-content/10",children:[l.jsx("span",{className:"text-xs font-bold uppercase tracking-wide text-base-content/70",children:"Filters"}),m&&l.jsx("button",{type:"button",onClick:a,className:"text-xs text-error hover:underline cursor-pointer","aria-label":"Clear all filters",children:"Clear all"})]}),l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsx("label",{htmlFor:"filter-search-input",className:"text-[11px] font-semibold text-base-content/60",children:"Search"}),l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsxs("select",{value:n.searchScope,onChange:E=>r(x=>({...x,searchScope:E.target.value})),className:"bg-base-100 border border-base-content/20 rounded px-2 py-1 text-xs text-base-content focus:outline-none focus:ring-2 focus:ring-primary/40 cursor-pointer","aria-label":"Search scope",children:[l.jsx("option",{value:"all",children:"all"}),l.jsx("option",{value:"name",children:"name"}),l.jsx("option",{value:"actor",children:"actor"}),l.jsx("option",{value:"payload",children:"payload"})]}),l.jsx(Ts,{id:"filter-search-input",size:"sm",variant:"bordered",placeholder:`Search ${n.searchScope}…`,value:n.searchQuery,onChange:E=>r(x=>({...x,searchQuery:E.target.value})),className:"flex-1 input-xs","aria-label":`Search ${n.searchScope}`})]})]}),l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsx("span",{className:"text-[11px] font-semibold text-base-content/60",children:"Severity"}),l.jsx(ry,{label:"Severity",value:n.severity,onChange:E=>r(x=>({...x,severity:E})),options:[{value:"all",label:"All"},{value:"info",label:"Info"},{value:"warning",label:"Warning"},{value:"error",label:"Error"}]})]}),l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsx("span",{className:"text-[11px] font-semibold text-base-content/60",children:"Tier"}),l.jsx(ry,{label:"Tier",value:n.tierFilter,onChange:E=>r(x=>({...x,tierFilter:E})),options:[{value:"all",label:"All"},{value:"default",label:"Default"},{value:"diagnostic",label:"Diagnostic"}]})]}),i.length>0&&l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsx("span",{className:"text-[11px] font-semibold text-base-content/60",children:"Prefix"}),l.jsxs("fieldset",{className:"flex flex-wrap items-center gap-1.5 border-0 p-0 m-0","aria-label":"Filter by prefix",children:[l.jsx("legend",{className:"sr-only",children:"Filter by prefix"}),i.map(E=>{const x=n.selectedPrefixes.has(E),y=s(E);return l.jsxs("button",{type:"button",role:"switch","aria-checked":x,"aria-label":`Prefix ${E}${x?" (selected)":""}`,onClick:()=>b(E),className:`px-2 py-0.5 rounded-full text-[11px] font-mono border transition-colors cursor-pointer ${x?`${y} border-current bg-base-100 font-bold`:"text-base-content/60 border-base-content/20 hover:bg-base-100"}`,children:[E,".*"]},E)})]})]}),l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsx("label",{htmlFor:"filter-run-id-input",className:"text-[11px] font-semibold text-base-content/60",children:"Run ID"}),l.jsx(Ts,{id:"filter-run-id-input",size:"sm",variant:"bordered",placeholder:"Filter by run id…",value:n.runId,onChange:E=>r(x=>({...x,runId:E.target.value})),className:"w-full input-xs","aria-label":"Filter by run id"})]})]})]}),l.jsx("button",{type:"button",onClick:u,className:`px-2.5 py-1 text-xs font-semibold rounded-lg border transition-all cursor-pointer flex items-center gap-1.5 ${o?"border-emerald-500/40 bg-emerald-500/10 text-emerald-500 hover:bg-emerald-500/20":"border-amber-500/40 bg-amber-500/10 text-amber-500 hover:bg-amber-500/20"}`,"aria-label":o?"Pause live event stream":"Resume live event stream","aria-pressed":o,children:l.jsx("span",{children:o?"⏸ Pause Live":"▶ Resume Live"})}),d]})]})}var Va=Zw();const Ja=[{key:"time",label:"Time",description:"Event timestamp",defaultVisible:!0,sortable:!0,colWidth:"w-36"},{key:"severity",label:"Severity",description:"Diagnostic severity level",defaultVisible:!0,sortable:!0,colWidth:"w-24"},{key:"event",label:"Event",description:"Event name with domain prefix",defaultVisible:!0,sortable:!0,colWidth:"w-[15%]"},{key:"summary",label:"Summary",description:"Rendered human summary",defaultVisible:!0,sortable:!0,colWidth:"w-[20%]"},{key:"correlation",label:"Correlation",description:"Entity or run correlation identifier",defaultVisible:!0,sortable:!0,colWidth:"w-[16%]"},{key:"outcome",label:"Outcome",description:"Execution result or state change",defaultVisible:!0,sortable:!0,colWidth:"w-28"},{key:"agent",label:"Agent",description:"Target or actor agent role",defaultVisible:!1,sortable:!0,colWidth:"w-28"},{key:"producer",label:"Producer",description:"Subsystem or source package",defaultVisible:!1,sortable:!1,colWidth:"w-[16%]"},{key:"action",label:"Action",description:"Action link or remediation command",defaultVisible:!1,sortable:!1,colWidth:"w-[15%]"},{key:"actor",label:"Actor",description:"Originating user or system actor",defaultVisible:!1,sortable:!1,colWidth:"w-24"}],kH=new Set(Ja.map(e=>e.key)),Xr=["time","severity","event","summary","correlation","outcome"],cw="spur:observability:columns:v1";function IH(e){if(!Array.isArray(e)||e.length===0)return[...Xr];const t=new Set;for(const n of e)typeof n=="string"&&kH.has(n)&&t.add(n);return t.size===0?[...Xr]:Ja.filter(n=>t.has(n.key)).map(n=>n.key)}function RH(e){try{const t=e??(typeof window<"u"?window.localStorage:void 0);if(!t)return[...Xr];const n=t.getItem(cw);if(!n)return[...Xr];const r=JSON.parse(n);return IH(r)}catch{return[...Xr]}}function ay(e,t){try{const n=t??(typeof window<"u"?window.localStorage:void 0);if(!n)return;n.setItem(cw,JSON.stringify(e))}catch{}}function DH({visibleColumns:e,onVisibleColumnsChange:t}){const n=g.useMemo(()=>new Set(e),[e]),r=i=>{const s=new Set(n);if(s.has(i)){if(s.size<=1)return;s.delete(i)}else s.add(i);const o=Ja.filter(u=>s.has(u.key)).map(u=>u.key);t(o),ay(o)},a=()=>{const i=[...Xr];t(i),ay(i)};return l.jsxs("details",{className:"relative inline-block","data-testid":"observability-column-customizer",children:[l.jsxs("summary",{className:"px-2.5 py-1 text-xs font-medium rounded-lg border border-base-content/20 bg-base-200 text-base-content/80 hover:bg-base-300 transition-colors cursor-pointer list-none flex items-center gap-1.5 focus:outline-none focus:ring-2 focus:ring-primary/40","aria-label":"Customize visible columns",children:[l.jsx("span",{children:"📊 Columns"}),l.jsxs("span",{className:"text-[10px] text-base-content/60 font-mono",children:["(",e.length,"/",Ja.length,")"]})]}),l.jsxs("div",{className:"absolute right-0 top-full z-30 p-3 shadow-xl bg-base-200 border border-base-content/10 rounded-xl w-64 mt-2 flex flex-col gap-2",children:[l.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-base-content/10",children:[l.jsx("span",{className:"text-xs font-bold uppercase tracking-wide text-base-content/70",children:"Columns"}),l.jsx("button",{type:"button",onClick:a,className:"text-xs text-primary hover:underline cursor-pointer","aria-label":"Reset columns to default",children:"Reset defaults"})]}),l.jsxs("fieldset",{className:"flex flex-col gap-1.5 border-0 p-0 m-0","aria-label":"Visible columns",children:[l.jsx("legend",{className:"sr-only",children:"Select visible columns"}),Ja.map(i=>{const s=n.has(i.key),o=s&&n.size===1,u=`observability-col-${i.key}`;return l.jsxs("label",{htmlFor:u,className:`flex items-center justify-between px-2 py-1 rounded-md text-xs transition-colors ${o?"opacity-60 cursor-not-allowed":"hover:bg-base-100 cursor-pointer text-base-content/90"}`,children:[l.jsxs("span",{className:"flex items-center gap-2",children:[l.jsx(eb,{id:u,size:"xs",variant:"primary",checked:s,disabled:o,onChange:()=>r(i.key),"aria-label":i.label}),l.jsx("span",{className:"font-medium",children:i.label})]}),i.defaultVisible&&l.jsx("span",{className:"text-[10px] text-base-content/50 uppercase",children:"default"})]},i.key)})]})]})]})}const OH=()=>`${At()}/events/planning`,Ad=100;function xl(e){const t=`${At()}/events/history`,n=[],r=e.limit??Ad;return n.push(`limit=${r}`),e.prefix&&n.push(`prefix=${encodeURIComponent(e.prefix)}`),e.names&&n.push(`names=${encodeURIComponent(e.names)}`),e.actor&&n.push(`actor=${encodeURIComponent(e.actor)}`),e.runId&&n.push(`runId=${encodeURIComponent(e.runId)}`),e.since&&n.push(`since=${encodeURIComponent(e.since)}`),e.cursor&&n.push(`cursor=${encodeURIComponent(e.cursor)}`),`${t}?${n.join("&")}`}const LH={workflow:"text-cyan-400",task:"text-emerald-400",feature:"text-emerald-400",agent:"text-amber-400",rule:"text-rose-400",message:"text-sky-400",process:"text-violet-400",queue:"text-orange-400",bus:"text-pink-400",api:"text-teal-400"},iy="text-spur-text-muted";function dw(e){return e?LH[e]??iy:iy}const Ac={selectedPrefixes:new Set,searchQuery:"",searchScope:"all",severity:"all",tierFilter:"all",runId:""};function FH(){const e=g.useRef([]),[t,n]=g.useState(0);g.useEffect(()=>{const a=window.setInterval(()=>{const i=Date.now()-6e4,s=e.current.filter(o=>o>=i);e.current=s,n(s.length)},1e3);return()=>window.clearInterval(a)},[]);const r=g.useCallback(()=>{const a=Date.now(),i=a-6e4,s=e.current.filter(o=>o>=i);s.push(a),e.current=s,n(s.length)},[]);return{rate:t,recordEvent:r}}function yl(e){if(e===null||typeof e!="object"||!("events"in e)||!("count"in e))return null;const t=e.events;if(!Array.isArray(t))return null;const n=e.count;if(typeof n!="number")return null;const r=e.nextCursor,a=typeof r=="string"?r:null,i=e.hasMore,s=typeof i=="boolean"?i:!1,o=[];for(const p of t){const d=MH(p);d&&o.push(d)}const u=e.catalog,c=Array.isArray(u)?PH(u):void 0;return{events:o,count:n,nextCursor:a,hasMore:s,...c?{catalog:c}:{}}}function MH(e){if(e===null||typeof e!="object")return null;const t=e;if(typeof t.id!="string"||typeof t.eventName!="string"||typeof t.occurredAt!="string")return null;const n=typeof t.prefix=="string"?t.prefix:void 0,r=typeof t.renderer=="string"?t.renderer:void 0,a=t.actor;if(a!==null&&typeof a!="string")return null;const i=t.payload,s=typeof t.runId=="string"?t.runId:t.runId===null?null:void 0,o=typeof t.entityKind=="string"?t.entityKind:t.entityKind===null?null:void 0,u=typeof t.entityId=="string"?t.entityId:t.entityId===null?null:void 0,c=typeof t.sequence=="number"&&Number.isFinite(t.sequence)?t.sequence:t.sequence===null?null:void 0,p={id:t.id,eventName:t.eventName,occurredAt:t.occurredAt,actor:a,...n?{prefix:n}:{},...r?{renderer:r}:{}};if(i===null)return{...p,payload:null,view:ga(t.eventName,null),...Tl(s,o,u,c)};if(typeof i!="object")return null;const d=i,f=d.schemaVersion===2?d:void 0;return{...p,payload:pw(d),...f?{envelope:f}:{},view:ga(t.eventName,d),...Tl(s,o,u,c)}}function Tl(e,t,n,r){const a={};return e!==void 0&&(a.runId=e),t!==void 0&&(a.entityKind=t),n!==void 0&&(a.entityId=n),r!==void 0&&(a.sequence=r),a}function PH(e){const t=[];for(const n of e){if(n===null||typeof n!="object")return;const r=n;if(typeof r.name!="string"||typeof r.prefix!="string"||typeof r.source!="string"||typeof r.renderer!="string")return;const a=typeof r.tier=="string"?r.tier:void 0,i={name:r.name,prefix:r.prefix,source:r.source,renderer:r.renderer,...a!==void 0?{tier:a}:{}};t.push(i)}return t}function jH(e){if(e===null||typeof e!="object")return null;const t=e;if(typeof t.eventName!="string"||t.eventName.length===0||typeof t.occurredAt!="string")return null;const n=typeof t.prefix=="string"?t.prefix:void 0,r=typeof t.renderer=="string"?t.renderer:void 0,a=t.actor;if(a!==null&&typeof a!="string")return null;const i=t.payload;if(i!==null&&typeof i!="object")return null;const s=i,o=s?.schemaVersion===2?s:void 0,u=pw(s),c=t.runId??u?.runId,p=t.entityKind??u?.entityKind,d=t.entityId??u?.entityId,f=t.sequence??u?.sequence,m=typeof c=="string"?c:c===null?null:void 0,b=typeof p=="string"?p:p===null?null:void 0,E=typeof d=="string"?d:d===null?null:void 0,x=typeof f=="number"&&Number.isFinite(f)?f:f===null?null:void 0;return{eventName:t.eventName,occurredAt:t.occurredAt,actor:a,...n?{prefix:n}:{},...r?{renderer:r}:{},payload:u,...o?{envelope:o}:{},view:ga(t.eventName,s),...Tl(m,b,E,x)}}function ga(e,t){const n=BH(e);if(t?.schemaVersion!==2)return n;const r=$r(t.context),a=$r(t.presentation),i=$r(r?.project),s=$r(r?.producer),o=$r(r?.correlation);if(!r||!a||!i||!s||!o)return n;const u=a.severity==="info"||a.severity==="warning"||a.severity==="error"?a.severity:"warning",c=Array.isArray(a.fields)?a.fields.flatMap(S=>{const v=$r(S),w=pn(v?.label,64),R=pn(v?.value,256);return w&&R?[{label:w,value:R}]:[]}).slice(0,8):[],p=[],d=(S,v)=>{const w=pn(v,128);w&&p.push({label:S,value:w})};d("Run",o.runId),d("Execution",o.executionId),d("Action",o.actionId),d("Entity",$H(o.entityKind,o.entityId)),d("Job",o.jobId),typeof o.sequence=="number"&&Number.isFinite(o.sequence)&&p.push({label:"Sequence",value:String(o.sequence)});const f=pn(s.package,128)??"unavailable",m=pn(s.subsystem,128),b=UH(a.action),E=pn(a.actionLabel,128)??"unavailable",x=pn(a.agent,128),y=pn(a.correlators,512);return{severity:u,summary:pn(a.summary,512)??"unavailable",description:pn(a.description,512)??"Description unavailable.",fields:c,projectName:pn(i.name,128)??"unavailable",projectRoot:pn(i.root,256)??"unavailable",producer:m?`${f} / ${m}`:f,correlation:y??"unavailable",correlationFields:p,outcome:pn(a.outcome,128)??"unavailable",action:b,actionLabel:E,agent:x}}function BH(e){return{severity:"warning",summary:"unavailable",description:`Canonical context unavailable for ${pn(e,128)??"unknown"}.`,fields:[],projectName:"unavailable",projectRoot:"unavailable",producer:"unavailable",correlation:"unavailable",correlationFields:[],outcome:"unavailable",action:null,actionLabel:"unavailable",agent:null}}function UH(e){const t=$r(e);if(!t||t.kind!=="command"&&t.kind!=="filter"&&t.kind!=="path")return null;const n=pn(t.label,128),r=pn(t.value,256);return n&&r?{label:n,kind:t.kind,value:r}:null}function pn(e,t){return typeof e!="string"||e.length===0?null:e.length<=t?e:`${e.slice(0,t-1)}…`}function $H(e,t){const n=pn(e,64),r=pn(t,128);return n&&r?`${n}:${r}`:n??r}const zH=["Entity","Run","Execution","Action","Job"];function HH(e,t){for(const n of zH){const r=t.correlationFields.find(a=>a.label===n);if(r!==void 0&&r.value!=="")return`${e.eventName} · ${r.value}`}return e.id!==""&&!e.id.startsWith("live-")?`${e.eventName} · ${e.id}`:e.eventName}function $r(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)?e:null}function pw(e){return e?.schemaVersion!==2?e:$r(e.data)}const GH=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function sy(e){const t=new Date(e);if(Number.isNaN(t.getTime()))return e;const n=GH[t.getMonth()],r=t.getDate(),a=String(t.getHours()).padStart(2,"0"),i=String(t.getMinutes()).padStart(2,"0"),s=String(t.getSeconds()).padStart(2,"0");return`${n} ${r} ${a}:${i}:${s}`}function Nd(e){return typeof e!="number"||!Number.isFinite(e)?null:e<1e3?`${e}ms`:`${(e/1e3).toFixed(1)}s`}function wt(e){return e&&e!=="unavailable"?e:"-"}function WH(e,t="all"){const n={};e.selectedPrefixes&&e.selectedPrefixes.size===1&&(n.prefix=[...e.selectedPrefixes][0]);const r=e.searchQuery?.trim()??"";r!==""&&e.searchScope==="name"&&(n.names=r),r!==""&&e.searchScope==="actor"&&(n.actor=r),e.runId&&e.runId.trim()!==""&&(n.runId=e.runId.trim());const a=e.timeWindow&&e.timeWindow!=="all"?e.timeWindow:t,i=uw(a);return i&&(n.since=i),n}function oy(e,t,n,r="all"){if(t.selectedPrefixes.size>=1){const a=e.prefix??e.eventName.split(".")[0]??e.eventName;if(!t.selectedPrefixes.has(a))return!1}if(t.tierFilter!=="all"){const a=n.get(e.eventName);if(a!==t.tierFilter&&!(t.tierFilter==="default"&&a===void 0))return!1}if(t.severity!=="all"&&(e.view??ga(e.eventName,e.payload??null)).severity!==t.severity)return!1;if(t.searchQuery.trim()!==""){const a=t.searchQuery.toLowerCase();let i=!1;if((t.searchScope==="name"||t.searchScope==="all")&&(i=i||e.eventName.toLowerCase().includes(a)),(t.searchScope==="actor"||t.searchScope==="all")&&(i=i||(e.actor?.toLowerCase().includes(a)??!1)),t.searchScope==="payload"&&e.payload&&(i=i||JSON.stringify(e.payload).toLowerCase().includes(a)),!i)return!1}if(r!=="all"){const a=lw[r];if(a!=null){const i=Date.now()-a,s=new Date(e.occurredAt).getTime();if(Number.isNaN(s)||s<i)return!1}}return!(t.runId.trim()!==""&&e.runId!==t.runId.trim())}const bb={key:"time",direction:"desc"};function VH(e,t=bb){const n=e.map((r,a)=>({row:r,idx:a}));return n.sort((r,a)=>{let i=0;const s=r.row.view??ga(r.row.eventName,r.row.payload??null),o=a.row.view??ga(a.row.eventName,a.row.payload??null);switch(t.key){case"time":{const u=Date.parse(r.row.occurredAt),c=Date.parse(a.row.occurredAt),p=Number.isNaN(u)?-1/0:u,d=Number.isNaN(c)?-1/0:c;i=p-d;break}case"severity":{const u=c=>c==="info"?0:c==="warning"?1:2;i=u(s.severity)-u(o.severity);break}case"event":{i=r.row.eventName.localeCompare(a.row.eventName);break}case"summary":{i=(s.summary??"").localeCompare(o.summary??"");break}case"correlation":{i=(s.correlation??"").localeCompare(o.correlation??"");break}case"agent":{i=(s.agent??"").localeCompare(o.agent??"");break}case"outcome":{i=(s.outcome??"").localeCompare(o.outcome??"");break}default:i=0}return i!==0?t.direction==="asc"?i:-i:r.idx-a.idx}),n.map(r=>r.row)}function Io({value:e,label:t}){const[n,r]=g.useState("idle"),a=async i=>{i.preventDefault(),i.stopPropagation();try{typeof navigator<"u"&&navigator.clipboard?.writeText?(await navigator.clipboard.writeText(e),r("copied"),setTimeout(()=>r("idle"),1500)):(r("failed"),setTimeout(()=>r("idle"),2e3))}catch{r("failed"),setTimeout(()=>r("idle"),2e3)}};return!e||e==="-"||e==="unavailable"?null:l.jsxs("button",{type:"button",onClick:a,className:"inline-flex items-center justify-center p-0.5 rounded text-base-content/40 hover:text-base-content hover:bg-base-content/10 transition-colors cursor-pointer shrink-0 text-[10px] focus:outline-none focus:ring-1 focus:ring-primary/40",title:n==="copied"?"Copied":n==="failed"?"Copy failed":`Copy ${t}`,"aria-label":n==="copied"?`Copied ${t}`:n==="failed"?`Copy ${t} failed`:`Copy ${t}`,children:[l.jsx("span",{"aria-hidden":"true",children:n==="copied"?"✓":n==="failed"?"!":"📋"}),l.jsx("span",{className:"sr-only","aria-live":"polite",children:n==="copied"?`${t} copied`:n==="failed"?`${t} copy failed`:""})]})}function qH({onLivenessChange:e,timeRange:t,onTimeRangeChange:n}={}){const[r,a]=g.useState("all"),i=t??r,s=n??a,[o,u]=g.useState(()=>RH()),[c,p]=g.useState(bb),d=g.useCallback(ge=>{p(me=>me.key===ge?{key:ge,direction:me.direction==="asc"?"desc":"asc"}:{key:ge,direction:"asc"})},[]),[f,m]=g.useState(!0),[b,E]=g.useState([]),[x,y]=g.useState([]),[S,v]=g.useState("idle"),[w,R]=g.useState(null),[N,T]=g.useState(null),[_,L]=g.useState(!1),[C,$]=g.useState(!1),[I,P]=g.useState(Ac),[W,U]=g.useState(Ac),[ne,z]=g.useState("connecting"),{rate:se,recordEvent:pe}=FH();g.useEffect(()=>{e?.({status:f?ne:"paused",rate:se,lastEventAt:b[0]?.occurredAt??null})},[f,ne,se,b,e]);const D=g.useMemo(()=>{const ge=new Map;for(const me of x)me.tier&&ge.set(me.name,me.tier);return ge},[x]);g.useEffect(()=>{const ge=window.setTimeout(()=>{U(I)},250);return()=>window.clearTimeout(ge)},[I]);const Q=g.useMemo(()=>WH(W,i),[W,i]),de=g.useRef(0);g.useEffect(()=>{const ge=++de.current,me=new AbortController;return v("loading"),R(null),(async()=>{try{const Te=await vt(new Request(xl({...Q,limit:Ad}),{signal:me.signal}));if(!Te.ok){const qe=await Te.json().catch(()=>null),at=qe?.code;throw at==="UNKNOWN_PREFIX"||at==="MALFORMED_CURSOR"?new Error(`${at}: ${qe.error??Te.status}`):new Error(`history fetch failed: ${Te.status}`)}const Se=await Te.json(),oe=yl(Se);if(!oe)throw new Error("history response failed schema validation");if(ge!==de.current)return;E(oe.events),oe.catalog&&y(oe.catalog),T(oe.nextCursor),L(oe.hasMore),v("loaded")}catch(Te){if(me.signal.aborted||ge!==de.current)return;R(Te instanceof Error?Te.message:String(Te)),v("error")}})(),()=>me.abort()},[Q]);const O=g.useCallback(async()=>{if(!(!_||C||N===null)){$(!0);try{const ge=await vt(new Request(xl({...Q,limit:Ad,cursor:N})));if(!ge.ok)throw new Error(`history fetch failed: ${ge.status}`);const me=await ge.json(),Te=yl(me);if(!Te)throw new Error("history response failed schema validation");E(Se=>{const oe=new Set(Se.map(at=>at.id)),qe=Te.events.filter(at=>!oe.has(at.id));return[...Se,...qe]}),Te.catalog&&y(Te.catalog),T(Te.nextCursor),L(Te.hasMore)}catch(ge){R(ge instanceof Error?ge.message:String(ge))}finally{$(!1)}}},[_,C,N,Q]),Ce=g.useRef(I);Ce.current=I;const De=g.useRef(D);De.current=D;const J=g.useRef(i);J.current=i,g.useEffect(()=>{if(!f||typeof EventSource>"u")return;z("connecting");const ge=new EventSource(OH());return ge.onopen=()=>{z("live")},ge.onerror=()=>{z("errored")},ge.onmessage=me=>{try{const Te=JSON.parse(me.data),Se=jH(Te);if(!Se||Se.eventName==="connected")return;const oe=Ce.current,qe=De.current,at=J.current;if(!oy({eventName:Se.eventName,occurredAt:Se.occurredAt,actor:Se.actor,...Se.prefix?{prefix:Se.prefix}:{},payload:Se.payload,view:Se.view,...Se.runId!==void 0?{runId:Se.runId}:{}},oe,qe,at))return;const ft={id:`live-${Se.occurredAt}-${Se.eventName}`,eventName:Se.eventName,occurredAt:Se.occurredAt,actor:Se.actor,...Se.prefix?{prefix:Se.prefix}:{},...Se.renderer?{renderer:Se.renderer}:{},payload:Se.payload,...Se.envelope?{envelope:Se.envelope}:{},view:Se.view,...Tl(Se.runId,Se.entityKind,Se.entityId,Se.sequence)};E(Dt=>[ft,...Dt]),pe()}catch{}},()=>ge.close()},[f,pe]);const _e=g.useMemo(()=>Array.from(new Set([...x.map(ge=>ge.prefix),...b.map(ge=>ge.prefix??ge.eventName.split(".")[0]??ge.eventName)])).sort(),[x,b]),fe=g.useCallback(()=>{P(Ac)},[]),X=g.useMemo(()=>b.filter(ge=>oy(ge,I,D,i)),[b,I,D,i]),Ge=g.useMemo(()=>VH(X,c),[X,c]);return S==="error"?l.jsxs("div",{className:"p-4 text-sm text-error",role:"alert",children:["Failed to load event history: ",w]}):S==="idle"||S==="loading"?l.jsxs("div",{className:"flex items-center justify-center h-32 text-spur-text-muted text-sm",children:[l.jsx(_a,{size:"sm"})," Loading event history…"]}):l.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[l.jsx(CH,{timeRange:i,onTimeRangeChange:s,filters:I,onFiltersChange:P,onClearFilters:fe,prefixOptions:_e,getPrefixColor:dw,liveEnabled:f,onToggleLive:()=>m(ge=>!ge),shownCount:X.length,totalCount:b.length,actions:l.jsx(DH,{visibleColumns:o,onVisibleColumnsChange:u})}),Ge.length===0?l.jsx("div",{className:"p-4 text-sm text-spur-text-muted italic flex-1 overflow-y-auto",children:b.length===0?"No system events yet. New events from the planning bus will appear here in real time.":"No events match the active filters."}):l.jsx(ZH,{rows:Ge,catalog:x,visibleColumns:o,sortState:c,onSortChange:d}),_&&l.jsx("div",{className:"px-4 py-2 border-t border-spur-border bg-base-100 shrink-0 flex justify-center",children:l.jsx("button",{type:"button",onClick:O,disabled:C,"data-load-older":!0,className:"text-[11px] text-spur-text-muted hover:text-spur-text px-3 py-1 rounded border border-spur-border/40 hover:border-spur-text/40 transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-wait focus:outline-none focus:ring-2 focus:ring-spur-text/40",children:C?"Loading…":"Load older"})})]})}function YH(e){const[t,n]=g.useState(()=>typeof window>"u"||typeof window.matchMedia!="function"?!1:window.matchMedia(e).matches);return g.useEffect(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;const r=window.matchMedia(e),a=()=>n(r.matches);return r.addEventListener("change",a),()=>r.removeEventListener("change",a)},[e]),t}function ZH({rows:e,catalog:t,visibleColumns:n=Xr,sortState:r=bb,onSortChange:a=()=>{}}){const i=g.useMemo(()=>{const u=new Map;for(const c of t)c.tier&&u.set(c.name,c.tier);return u},[t]),s=YH("(max-width: 639px)"),o=g.useMemo(()=>new Map(Ja.map(u=>[u.key,u])),[]);return l.jsx("section",{className:"flex-1 overflow-y-auto min-w-0","data-system-events-tab":!0,"aria-label":"System events",children:l.jsxs("table",{className:`w-full ${s?"min-w-0":"min-w-[1000px]"} text-xs border-separate border-spacing-0 table-fixed`,children:[l.jsx("colgroup",{children:s?l.jsxs(l.Fragment,{children:[l.jsx("col",{className:"w-24"}),l.jsx("col",{className:"w-full"})]}):n.map(u=>l.jsx("col",{className:o.get(u)?.colWidth??"w-24"},u))}),l.jsx("thead",{className:"sticky top-0 z-10 bg-base-200",children:l.jsx("tr",{className:"text-left text-spur-text-muted uppercase tracking-wide text-[10px]",children:s?l.jsxs(l.Fragment,{children:[l.jsx("th",{scope:"col",className:"font-semibold px-3 py-1.5 border-b border-spur-border",children:"Time"}),l.jsx("th",{scope:"col",className:"font-semibold px-3 py-1.5 border-b border-spur-border",children:"Event"})]}):n.map(u=>{const c=o.get(u);if(!c)return null;const p=r.key===u,d=p?r.direction==="asc"?" ▲":" ▼":"",f=p?r.direction==="asc"?"ascending":"descending":"none";return c.sortable?l.jsx("th",{scope:"col","aria-sort":f,className:"font-semibold px-3 py-1.5 border-b border-spur-border select-none",children:l.jsxs("button",{type:"button",onClick:()=>a(u),className:"flex items-center gap-1 uppercase tracking-wide text-[10px] font-semibold text-spur-text-muted hover:text-spur-text transition-colors cursor-pointer bg-transparent border-0 p-0 focus:outline-none focus:ring-1 focus:ring-primary/40 rounded",children:[l.jsx("span",{children:c.label}),d&&l.jsx("span",{"aria-hidden":"true",children:d})]})},u):l.jsx("th",{scope:"col",className:"font-semibold px-3 py-1.5 border-b border-spur-border",children:c.label},u)})})}),l.jsx("tbody",{children:e.map(u=>l.jsx(KH,{event:u,tier:i.get(u.eventName)??"default",compact:s,visibleColumns:n},u.id))})]})})}const Nc="system-events-payload-tooltip-pin";function _c({severity:e}){const t=g.useMemo(()=>{switch(e){case"error":return{icon:"✕",badgeClass:"bg-error/15 text-error border-error/30"};case"warning":return{icon:"▲",badgeClass:"bg-warning/15 text-warning border-warning/30"};default:return{icon:"●",badgeClass:"bg-base-content/10 text-base-content/70 border-base-content/20"}}},[e]);return l.jsxs("span",{className:`inline-flex items-center gap-1 px-1.5 py-0.5 rounded-full text-[10px] font-semibold border ${t.badgeClass} whitespace-nowrap`,children:[l.jsx("span",{"aria-hidden":"true",children:t.icon}),l.jsx("span",{children:e})]})}function KH({event:e,tier:t,compact:n,visibleColumns:r=Xr}){const a=e.prefix??e.eventName.split(".")[0]??e.eventName,i=g.useMemo(()=>e.view??ga(e.eventName,e.payload??null),[e.eventName,e.payload,e.view]),s=dw(a),[o,u]=g.useState(!1),[c,p]=g.useState(!1),[d,f]=g.useState(!1),[m,b]=g.useState(null),E=g.useRef(null),x=g.useRef(null),y=g.useRef(0),S=g.useRef(null),v=wt(e.actor),w=c||d,R=g.useCallback(()=>{S.current!==null&&(clearTimeout(S.current),S.current=null)},[]),N=g.useCallback(()=>{f(!1),b(null)},[]),T=g.useCallback((P,W)=>{y.current=performance.now()+400,f(!0),p(!1),R();const U=Number.isFinite(P)&&P>0?P:8,ne=Number.isFinite(W)&&W>0?W:8;b({x:U,y:ne}),window.dispatchEvent(new CustomEvent(Nc,{detail:{id:e.id}}))},[e.id,R]),_=g.useCallback((P,W,U)=>{const ne=P.getBoundingClientRect(),z=W&&W>0?W:ne.left,se=U&&U>0?U+4:ne.bottom+6;T(z,se)},[T]);g.useEffect(()=>{const P=W=>{W.detail?.id!==e.id&&N()};return window.addEventListener(Nc,P),()=>window.removeEventListener(Nc,P)},[e.id,N]),g.useEffect(()=>{if(!d)return;const P=U=>{performance.now()<y.current||E.current?.contains(U.target)||x.current?.contains(U.target)||N()},W=U=>{U.key==="Escape"&&(N(),U.stopPropagation())};return document.addEventListener("pointerdown",P,!0),document.addEventListener("keydown",W,!0),()=>{document.removeEventListener("pointerdown",P,!0),document.removeEventListener("keydown",W,!0)}},[d,N]),g.useEffect(()=>()=>{R()},[R]);const L=g.useCallback(()=>u(P=>!P),[]),C=g.useCallback(P=>{if(P.key==="Escape"){if(d){N(),P.stopPropagation();return}u(!1),P.stopPropagation()}},[d,N]),$=w?l.jsxs("div",{ref:E,id:`system-event-tooltip-${e.id}`,role:"tooltip","data-testid":"system-event-payload-tooltip","data-pinned":d?"true":"false",className:d?"pointer-events-auto fixed z-50 rounded shadow-lg p-2.5 text-[11px] min-w-[min(400px,90vw)] max-w-[min(840px,95vw)] whitespace-normal border border-[#30363d] bg-[#0d1117] text-[#c9d1d9] select-text cursor-text":"pointer-events-auto absolute left-0 top-full mt-1 z-30 rounded shadow-lg p-2.5 text-[11px] min-w-[min(400px,90vw)] max-w-[min(840px,95vw)] whitespace-normal border border-[#30363d] bg-[#0d1117] text-[#c9d1d9]",style:d&&m?{top:m.y,left:m.x}:void 0,onMouseEnter:()=>{R(),p(!0)},onMouseLeave:()=>{d||(R(),S.current=setTimeout(()=>p(!1),150))},onFocusCapture:()=>p(!0),onBlurCapture:P=>{!d&&!P.currentTarget.contains(P.relatedTarget)&&p(!1)},onPointerDown:P=>{d&&P.stopPropagation()},children:[l.jsxs("div",{className:"flex items-center justify-between gap-2 mb-1.5",children:[l.jsx("div",{className:"text-[11px] font-sans font-semibold text-[#c9d1d9] truncate","data-testid":"system-event-tooltip-title",children:HH(e,i)}),l.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[!d&&l.jsx("button",{type:"button","data-testid":"system-event-payload-tooltip-pin",className:"text-[10px] text-[#c9d1d9] hover:text-white px-1.5 py-0.5 rounded border border-[#30363d] bg-[#21262d] cursor-pointer",onClick:P=>{P.stopPropagation(),P.preventDefault();const W=x.current;W?_(W):T(P.clientX,P.clientY)},children:"Pin"}),d&&l.jsx("button",{type:"button","data-testid":"system-event-payload-tooltip-close",className:"text-[10px] text-[#8b949e] hover:text-[#c9d1d9] px-1 rounded border border-[#30363d] cursor-pointer",onClick:P=>{P.stopPropagation(),N()},children:"close"})]})]}),l.jsx("p",{className:"mb-2 text-spur-text leading-relaxed","data-testid":"system-event-description",children:i.description}),l.jsxs("dl",{className:"grid grid-cols-[auto_minmax(0,1fr)] gap-x-3 gap-y-1 max-h-80 overflow-y-auto",children:[l.jsx("dt",{className:"text-spur-text-muted",children:"Summary"}),l.jsx("dd",{className:"break-words",children:wt(i.summary)}),l.jsx("dt",{className:"text-spur-text-muted",children:"Severity"}),l.jsx("dd",{children:l.jsx(_c,{severity:i.severity})}),i.fields.map(P=>l.jsxs("div",{className:"contents",children:[l.jsx("dt",{className:"text-spur-text-muted",children:P.label}),l.jsx("dd",{className:"font-mono break-all",children:wt(P.value)})]},P.label+P.value)),l.jsx("dt",{className:"text-spur-text-muted",children:"Producer"}),l.jsx("dd",{className:"font-mono break-all",children:wt(i.producer)}),i.correlationFields.length>0?i.correlationFields.map(P=>l.jsxs("div",{className:"contents",children:[l.jsx("dt",{className:"text-spur-text-muted",children:P.label}),l.jsx("dd",{className:"font-mono break-all",children:wt(P.value)})]},`correlation-${P.label}`)):l.jsxs(l.Fragment,{children:[l.jsx("dt",{className:"text-spur-text-muted",children:"Correlation"}),l.jsx("dd",{className:"font-mono",children:"-"})]}),l.jsx("dt",{className:"text-spur-text-muted",children:"Outcome"}),l.jsx("dd",{className:"font-mono break-all",children:wt(i.outcome)})]}),i.action&&l.jsxs("div",{className:"mt-2 border-t border-[#30363d] pt-2","data-testid":"system-event-remediation",children:[l.jsx("div",{className:"text-spur-text-muted",children:i.action.label}),l.jsx("code",{className:"block mt-0.5 font-mono break-all select-text",children:i.action.value})]}),l.jsx("div",{className:"mt-2 border-t border-[#30363d] pt-1.5 text-[10px] text-[#8b949e] font-sans","data-testid":"system-event-tooltip-footer",children:d?"Select to copy · Esc or outside click to close":"Click event name or Pin to lock for copy"})]}):null,I=P=>{switch(P){case"time":return l.jsx("td",{className:"px-3 py-1 border-b border-spur-border/40 font-mono text-spur-text-muted whitespace-nowrap align-middle",children:sy(e.occurredAt)},"time");case"severity":return l.jsx("td",{className:"px-3 py-1 border-b border-spur-border/40 align-middle text-[10px]",children:l.jsx(_c,{severity:i.severity})},"severity");case"event":return l.jsx("td",{className:"px-3 py-1 border-b border-spur-border/40 relative align-middle min-w-0",children:l.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[l.jsx("button",{type:"button","aria-expanded":o,"aria-controls":`detail-${e.id}`,"aria-label":`${o?"Collapse":"Expand"} detail for ${e.eventName}`,onClick:L,onKeyDown:C,className:"inline-flex items-center justify-center w-4 h-4 text-spur-text-muted hover:text-spur-text text-[10px] transition-colors cursor-pointer focus:outline-none focus:ring-2 focus:ring-spur-text/40 shrink-0",children:o?"▾":"▸"}),l.jsxs("div",{className:"relative min-w-0 max-w-full flex items-center gap-1",children:[l.jsx("button",{ref:x,type:"button",className:`font-mono font-semibold truncate block max-w-full text-left cursor-pointer bg-transparent border-0 p-0 ${s}`,"data-testid":"system-event-name","aria-label":`Context for ${e.eventName}. Hover to preview; click to pin for select and copy.`,"aria-describedby":w?`system-event-tooltip-${e.id}`:void 0,onMouseEnter:()=>{R(),p(!0)},onFocus:()=>{R(),p(!0)},onBlur:W=>{!d&&!E.current?.contains(W.relatedTarget)&&p(!1)},onMouseLeave:()=>{R(),S.current=setTimeout(()=>{d||p(!1)},200)},onClick:W=>{W.preventDefault(),W.stopPropagation(),!d&&_(W.currentTarget,W.clientX,W.clientY)},onKeyDown:W=>{if(W.key==="Enter"||W.key===" "){if(W.preventDefault(),d)return;_(W.currentTarget)}},children:e.eventName}),l.jsx(Io,{value:e.eventName,label:"event name"}),!d&&$]})]})},"event");case"summary":return l.jsx("td",{className:"px-3 py-1 border-b border-spur-border/40 text-spur-text align-middle truncate",title:wt(i.summary),children:wt(i.summary)},"summary");case"correlation":return l.jsx("td",{className:"px-3 py-1 border-b border-spur-border/40 font-mono text-[10px] text-spur-text-muted align-middle",children:l.jsxs("div",{className:"flex items-center gap-1 min-w-0",children:[l.jsx("span",{className:"truncate",title:wt(i.correlation),children:wt(i.correlation)}),i.correlation&&i.correlation!=="unavailable"&&l.jsx(Io,{value:i.correlation,label:"correlation"})]})},"correlation");case"outcome":return l.jsx("td",{className:"px-3 py-1 border-b border-spur-border/40 font-mono text-[10px] text-spur-text-muted align-middle truncate",title:wt(i.outcome),children:wt(i.outcome)},"outcome");case"agent":return l.jsx("td",{className:"px-3 py-1 border-b border-spur-border/40 font-mono text-[10px] text-spur-text-muted align-middle truncate",title:i.agent??"",children:i.agent??""},"agent");case"producer":return l.jsx("td",{className:"px-3 py-1 border-b border-spur-border/40 font-mono text-[10px] text-spur-text-muted align-middle truncate",title:wt(i.producer),children:wt(i.producer)},"producer");case"action":return l.jsx("td",{className:"px-3 py-1 border-b border-spur-border/40 font-mono text-[10px] text-spur-text-muted align-middle truncate",title:wt(i.actionLabel),children:wt(i.actionLabel)},"action");case"actor":return l.jsx("td",{className:"px-3 py-1 border-b border-spur-border/40 font-mono text-[10px] text-spur-text-muted align-middle truncate",title:v,children:v},"actor")}};return l.jsxs(l.Fragment,{children:[l.jsx("tr",{className:"group hover:bg-base-200/60 transition-colors",style:{height:n?void 0:28},children:n?l.jsxs(l.Fragment,{children:[l.jsx("td",{className:"px-3 py-1 border-b border-spur-border/40 font-mono text-spur-text-muted whitespace-nowrap align-middle",children:sy(e.occurredAt)}),l.jsx("td",{className:"px-3 py-1 border-b border-spur-border/40 relative align-middle min-w-0",children:l.jsxs("div",{className:"flex flex-col gap-0.5 min-w-0",children:[l.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[l.jsx("button",{type:"button","aria-expanded":o,"aria-controls":`detail-${e.id}`,"aria-label":`${o?"Collapse":"Expand"} detail for ${e.eventName}`,onClick:L,onKeyDown:C,className:"inline-flex items-center justify-center w-4 h-4 text-spur-text-muted hover:text-spur-text text-[10px] transition-colors cursor-pointer focus:outline-none focus:ring-2 focus:ring-spur-text/40 shrink-0",children:o?"▾":"▸"}),l.jsxs("div",{className:"relative min-w-0 max-w-full flex items-center gap-1",children:[l.jsx("button",{ref:x,type:"button",className:`font-mono font-semibold truncate block max-w-full text-left cursor-pointer bg-transparent border-0 p-0 ${s}`,"data-testid":"system-event-name","aria-label":`Context for ${e.eventName}. Hover to preview; click to pin for select and copy.`,"aria-describedby":w?`system-event-tooltip-${e.id}`:void 0,onMouseEnter:()=>{R(),p(!0)},onFocus:()=>{R(),p(!0)},onBlur:P=>{!d&&!E.current?.contains(P.relatedTarget)&&p(!1)},onMouseLeave:()=>{R(),S.current=setTimeout(()=>{d||p(!1)},200)},onClick:P=>{P.preventDefault(),P.stopPropagation(),!d&&_(P.currentTarget,P.clientX,P.clientY)},onKeyDown:P=>{if(P.key==="Enter"||P.key===" "){if(P.preventDefault(),d)return;_(P.currentTarget)}},children:e.eventName}),l.jsx(Io,{value:e.eventName,label:"event name"}),!d&&$]})]}),l.jsxs("div",{className:"flex flex-col gap-0.5 text-[10px] text-spur-text-muted min-w-0",children:[l.jsx(_c,{severity:i.severity}),l.jsx("span",{className:"truncate text-spur-text",title:wt(i.summary),children:wt(i.summary)}),l.jsx("span",{className:"truncate",title:wt(i.producer),children:wt(i.producer)}),l.jsx("span",{className:"truncate",title:wt(i.correlation),children:wt(i.correlation)}),i.agent&&l.jsxs("span",{className:"truncate font-mono",title:i.agent,children:["agent: ",i.agent]}),l.jsxs("span",{className:"truncate",children:["outcome: ",wt(i.outcome)]}),l.jsxs("span",{className:"truncate",title:wt(i.actionLabel),children:["action: ",wt(i.actionLabel)]})]})]})})]}):r.map(P=>I(P))}),o&&l.jsx("tr",{children:l.jsx("td",{colSpan:n?2:r.length,className:"px-3 py-2 border-b border-spur-border/40 bg-base-300/40",children:l.jsxs("section",{id:`detail-${e.id}`,"aria-label":`Detail for ${e.eventName}`,onKeyDown:C,tabIndex:-1,className:"flex flex-col gap-2 text-[11px] text-spur-text max-w-full",children:[l.jsxs("div",{className:"flex flex-wrap gap-x-4 gap-y-1 font-mono text-[10px]",children:[l.jsxs("span",{children:[l.jsx("span",{className:"text-spur-text-muted",children:"project:"})," ",wt(i.projectName)]}),l.jsxs("span",{children:[l.jsx("span",{className:"text-spur-text-muted",children:"root:"})," ",wt(i.projectRoot)]}),l.jsxs("span",{children:[l.jsx("span",{className:"text-spur-text-muted",children:"producer:"})," ",wt(i.producer)]}),l.jsxs("span",{children:[l.jsx("span",{className:"text-spur-text-muted",children:"correlation:"})," ",wt(i.correlation)]}),e.runId&&l.jsxs("span",{className:"inline-flex items-center gap-1",children:[l.jsx("span",{className:"text-spur-text-muted",children:"runId:"})," ",e.runId," ",l.jsx(Io,{value:e.runId,label:"run ID"})]}),l.jsxs("span",{children:[l.jsx("span",{className:"text-spur-text-muted",children:"agent:"})," ",i.agent||"-"]}),l.jsxs("span",{children:[l.jsx("span",{className:"text-spur-text-muted",children:"actor:"})," ",v]}),l.jsxs("span",{children:[l.jsx("span",{className:"text-spur-text-muted",children:"prefix:"})," ",a]}),l.jsxs("span",{children:[l.jsx("span",{className:"text-spur-text-muted",children:"tier:"})," ",t]}),l.jsxs("span",{children:[l.jsx("span",{className:"text-spur-text-muted",children:"outcome:"})," ",wt(i.outcome)]})]}),i.fields.length>0&&l.jsx("dl",{className:"space-y-0.5",children:i.fields.map(P=>l.jsxs("div",{className:"flex gap-2",children:[l.jsxs("dt",{className:"text-spur-text-muted shrink-0",children:[P.label,":"]}),l.jsx("dd",{className:"font-mono break-all",children:wt(P.value)})]},P.label+P.value))}),l.jsxs("div",{className:"border-t border-spur-border/40 pt-1",children:[l.jsx("div",{className:"text-spur-text-muted text-[10px] mb-0.5",children:"payload (redacted):"}),l.jsx("pre",{className:"font-mono text-[10px] text-spur-text-muted overflow-x-auto whitespace-pre-wrap break-all",children:e.envelope?JSON.stringify(e.envelope,null,2):"-"})]}),l.jsx("button",{type:"button",onClick:()=>u(!1),className:"self-start text-[10px] text-spur-text-muted hover:text-error px-2 py-0.5 rounded border border-spur-border/40 hover:border-error/40 transition-colors cursor-pointer focus:outline-none focus:ring-2 focus:ring-spur-text/40",children:"Close (Esc)"})]})})}),d&&$&&typeof document<"u"?Va.createPortal($,document.body):null]})}const XH=At(),QH=`${XH}/jobs/stats`,ly=50;function JH(e){if(e===null||typeof e!="object")return null;const t=e.stats;if(t===null||typeof t!="object")return null;const n=t;return typeof n.pending!="number"||typeof n.processing!="number"||typeof n.completed!="number"||typeof n.failed!="number"?null:{stats:{pending:n.pending,processing:n.processing,completed:n.completed,failed:n.failed}}}function fw(e){switch(e.split(".").pop()??""){case"enqueued":return"pending";case"retrying":return"retrying";case"completed":return"completed";case"failed":return"failed";case"executed":return"executed";default:return null}}function Sl(e,t){const n={};if(!t)return n;const r=s=>{const o=t[s];return typeof o=="string"&&o.length>0?o:void 0},a=s=>{const o=t[s];return typeof o=="number"&&Number.isFinite(o)?o:void 0},i=e.split(".").pop()??"";return n.durationMs=a("durationMs"),i==="executed"?(n.name=r("name"),n.error=r("error")):(n.jobId=r("jobId"),n.type=r("type"),(i==="failed"||i==="retrying")&&(n.attempt=a("attempt")),i==="failed"&&(n.error=r("error"))),n}function mw(e){switch(e){case"completed":case"executed":return"success";case"retrying":return"warning";case"failed":return"error";default:return"neutral"}}function eG(e,t){const n=[];let r=0,a=0;for(;r<e.length&&a<t.length;){const i=e[r],s=t[a];if(i&&s&&i.occurredAt>=s.occurredAt)n.push(i),r++;else if(s)n.push(s),a++;else if(i)n.push(i),r++;else break}for(;r<e.length;){const i=e[r];i&&n.push(i),r++}for(;a<t.length;){const i=t[a];i&&n.push(i),a++}return n}function tG(e){const t=[],n=new Map;for(const r of e){const i=r.eventName.startsWith("queue.job.")?Sl(r.eventName,r.payload).jobId:void 0;if(i!==void 0){const s=n.get(i);if(s)s.events.push(r);else{const o={kind:"thread",jobId:i,events:[r]};n.set(i,o),t.push(o)}}else t.push({kind:"standalone",row:r})}return t}function nG(e){if(e.length<2)return null;const t=Date.parse(e[0]?.occurredAt??""),n=Date.parse(e.at(-1)?.occurredAt??"");return!Number.isFinite(t)||!Number.isFinite(n)?null:Math.max(0,t-n)}function rG({timeRange:e="all"}={}){const[t,n]=g.useState(null),[r,a]=g.useState(null),i=g.useRef(0);if(g.useEffect(()=>{const o=new AbortController,u=++i.current;return a(null),n(null),(async()=>{try{const c=uw(e),p=xl({prefix:"queue",limit:ly,...c?{since:c}:{}}),d=xl({prefix:"scheduler",limit:ly,...c?{since:c}:{}}),[f,m,b]=await Promise.all([vt(new Request(QH,{signal:o.signal})),vt(new Request(p,{signal:o.signal})),vt(new Request(d,{signal:o.signal}))]);if(!f.ok)throw new Error(`job stats fetch failed: ${f.status}`);if(!m.ok)throw new Error(`queue history fetch failed: ${m.status}`);if(!b.ok)throw new Error(`scheduler history fetch failed: ${b.status}`);const E=JH(await f.json()),x=yl(await m.json()),y=yl(await b.json());if(!E)throw new Error("job stats response failed schema validation");if(!x)throw new Error("queue history response failed schema validation");if(!y)throw new Error("scheduler history response failed schema validation");const S=eG(x.events,y.events);if(o.signal.aborted||u!==i.current)return;n({stats:E.stats,events:S})}catch(c){if(o.signal.aborted||u!==i.current)return;a(c instanceof Error?c.message:String(c))}})(),()=>o.abort()},[e]),r)return l.jsxs("div",{className:"p-4 text-sm text-error",role:"alert",children:["Failed to load jobs: ",r]});if(t===null)return l.jsxs("div",{className:"flex items-center justify-center h-32 text-spur-text-muted text-sm",children:[l.jsx(_a,{size:"sm"})," Loading jobs…"]});const s=[["Pending",t.stats.pending,"text-spur-text"],["Processing",t.stats.processing,"text-info"],["Completed",t.stats.completed,"text-success"],["Failed",t.stats.failed,"text-error"]];return l.jsxs("div",{className:"flex flex-col h-full overflow-hidden","data-jobs-tab":!0,children:[l.jsxs("div",{className:"p-3 border-b border-spur-border bg-base-200 shrink-0 space-y-2",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx("span",{className:"text-xs font-semibold text-spur-text uppercase tracking-wide",children:"Current Queue State"}),l.jsx("span",{className:"text-[11px] text-spur-text-muted",children:"Live aggregate counters from queue engine"})]}),l.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-2",children:s.map(([o,u,c])=>l.jsx(Ks,{variant:"compact",className:"bg-base-100 border border-spur-border shadow-xs",children:l.jsxs(Xs,{className:"p-3 gap-1",children:[l.jsx("span",{className:"text-[10px] uppercase text-spur-text-muted font-semibold tracking-wider",children:o}),l.jsx("span",{className:`text-xl font-semibold tabular-nums font-mono ${c}`,children:u})]})},o))})]}),l.jsxs("div",{className:"px-4 py-2.5 border-b border-spur-border bg-base-200 shrink-0 flex items-center justify-between flex-wrap gap-2",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-xs font-semibold text-spur-text uppercase tracking-wide",children:"Recent Job Events"}),l.jsx(Rt,{variant:"outline",size:"xs",className:"font-mono",children:e==="all"?"All time":`Last ${e}`})]}),l.jsxs("span",{className:"text-xs text-spur-text-muted font-mono",children:[t.events.length," event(s)"]})]}),t.events.length===0?l.jsxs("div",{className:"p-8 text-center text-sm text-spur-text-muted italic","data-jobs-empty":!0,children:["No job events ",e==="all"?"recorded yet":`in the last ${e}`," — queue and scheduler have not processed events in this window."]}):l.jsx("ul",{className:"flex-1 overflow-y-auto p-3 space-y-2",children:tG(t.events).map(o=>o.kind==="thread"?l.jsx(iG,{item:o},`thread-${o.jobId}`):l.jsx(aG,{row:o.row},o.row.id))})]})}function aG({row:e}){const t=g.useMemo(()=>Sl(e.eventName,e.payload),[e.eventName,e.payload]),n=fw(e.eventName),r=e.eventName.startsWith("scheduler."),a=r?t.name??"scheduler":t.jobId??"job",i=r?"scheduler":t.type??"unknown",s=t.durationMs!==void 0?Nd(t.durationMs):null;return l.jsx("li",{children:l.jsx(Ks,{variant:"compact",className:"bg-base-200 border border-spur-border",children:l.jsxs(Xs,{className:"p-3 gap-1",children:[l.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[n!==null&&l.jsx(Rt,{variant:mw(n),size:"xs",children:n}),l.jsx("span",{className:"text-xs font-mono text-spur-text font-semibold",children:a}),l.jsx(Rt,{variant:"outline",size:"xs",children:i}),l.jsx("span",{className:"text-[10px] text-spur-text-muted ml-auto font-mono",children:e.occurredAt})]}),l.jsxs("div",{className:"flex items-center gap-3 flex-wrap text-[11px] text-spur-text-muted",children:[t.attempt!==void 0&&l.jsxs("span",{children:["attempt ",l.jsx("span",{className:"font-mono text-spur-text",children:t.attempt})]}),l.jsxs("span",{children:["duration ",l.jsx("span",{className:"font-mono text-spur-text",children:s??"unavailable"})]}),t.error!==void 0&&l.jsx("span",{className:"text-error truncate max-w-md",title:t.error,children:t.error}),!r&&t.type===void 0&&l.jsx("span",{className:"italic",children:"unknown job type"})]}),e.payload!==null&&Object.keys(e.payload).length>0&&l.jsxs("details",{className:"mt-1",children:[l.jsx("summary",{className:"text-[10px] text-spur-text-muted cursor-pointer select-none",children:"raw payload"}),l.jsx("pre",{className:"text-[10px] text-spur-text-muted bg-base-300 rounded p-2 overflow-x-auto mt-1",children:JSON.stringify(e.payload,null,2)})]})]})})})}function iG({item:e}){const t=e.events[0],n=g.useMemo(()=>t?Sl(t.eventName,t.payload):null,[t]);if(!t||!n)return null;const r=fw(t.eventName),a=nG(e.events),i=n.durationMs!==void 0?Nd(n.durationMs):a!==null?Nd(a):null;return l.jsx("li",{children:l.jsx(Ks,{variant:"compact",className:"bg-base-200 border border-spur-border",children:l.jsxs(Xs,{className:"p-3 gap-1",children:[l.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[r!==null&&l.jsx(Rt,{variant:mw(r),size:"xs",children:r}),l.jsx("span",{className:"text-xs font-mono text-spur-text font-semibold",children:e.jobId}),n.type!==void 0&&l.jsx(Rt,{variant:"outline",size:"xs",children:n.type}),l.jsx("span",{className:"text-[10px] text-spur-text-muted ml-auto font-mono",children:t.occurredAt})]}),l.jsxs("div",{className:"flex items-center gap-3 flex-wrap text-[11px] text-spur-text-muted",children:[n.attempt!==void 0&&l.jsxs("span",{children:["attempt ",l.jsx("span",{className:"font-mono text-spur-text",children:n.attempt})]}),l.jsxs("span",{children:["duration ",l.jsx("span",{className:"font-mono text-spur-text",children:i??"unavailable"})]}),n.error!==void 0&&l.jsx("span",{className:"text-error truncate max-w-md",title:n.error,children:n.error}),l.jsxs("span",{className:"italic",children:[e.events.length," event(s)"]})]}),e.events.length>1&&l.jsxs("details",{className:"mt-1",children:[l.jsxs("summary",{className:"text-[10px] text-spur-text-muted cursor-pointer select-none",children:["event sequence (",e.events.length,")"]}),l.jsx("ol",{className:"mt-1 space-y-1",children:e.events.map(s=>{const o=Sl(s.eventName,s.payload);return l.jsxs("li",{className:"text-[10px] text-spur-text-muted flex items-center gap-2",children:[l.jsx("span",{className:"font-mono",children:s.occurredAt}),l.jsx("span",{children:s.eventName}),o.attempt!==void 0&&l.jsxs("span",{children:["attempt ",o.attempt]})]},s.id)})})]}),t.payload!==null&&Object.keys(t.payload).length>0&&l.jsxs("details",{className:"mt-1",children:[l.jsx("summary",{className:"text-[10px] text-spur-text-muted cursor-pointer select-none",children:"raw payload"}),l.jsx("pre",{className:"text-[10px] text-spur-text-muted bg-base-300 rounded p-2 overflow-x-auto mt-1",children:JSON.stringify(t.payload,null,2)})]})]})})})}function uy(e){if(e===null||typeof e!="object")return null;const t=e;return typeof t.inputTokens!="number"||typeof t.outputTokens!="number"||typeof t.cacheReadTokens!="number"||typeof t.cacheCreationTokens!="number"||typeof t.records!="number"||typeof t.recordsWithUsage!="number"?null:{inputTokens:t.inputTokens,outputTokens:t.outputTokens,cacheReadTokens:t.cacheReadTokens,cacheCreationTokens:t.cacheCreationTokens,records:t.records,recordsWithUsage:t.recordsWithUsage}}function sG(e){if(e===null||typeof e!="object")return null;const t=e;return!(t.role===null||typeof t.role=="string")||typeof t.totalRuns!="number"||typeof t.matchedRuns!="number"||typeof t.unmeasured!="boolean"?null:{role:t.role,totalRuns:t.totalRuns,matchedRuns:t.matchedRuns,exact:uy(t.exact),estimated:uy(t.estimated),unmeasured:t.unmeasured}}function oG(e){if(e===null||typeof e!="object")return null;const t=e;return!(t.role===null||typeof t.role=="string")||typeof t.executor!="string"||!(t.source===null||typeof t.source=="string")||typeof t.runs!="number"||typeof t.escalations!="number"?null:{role:t.role,executor:t.executor,source:t.source,runs:t.runs,escalations:t.escalations}}function lG(e){if(e===null||typeof e!="object")return null;const t=e,n=t.routing,r=t.tokens;if(n===null||typeof n!="object"||r===null||typeof r!="object")return null;const a=n,i=r,s=a.window;if(s===null||typeof s!="object")return null;const o=s;if(typeof o.since!="string"||typeof o.until!="string"||!Array.isArray(a.pairs)||!Array.isArray(i.roles))return null;const u=[];for(const p of a.pairs){const d=oG(p);d&&u.push(d)}const c=[];for(const p of i.roles){const d=sG(p);d&&c.push(d)}return{window:{since:o.since,until:o.until},pairs:u,roles:c}}function uG(e){switch(e){case"explicit":return"pinned";case"role":return"resolved";case"default":return"default";case null:return"—";default:return e}}const cG=new Intl.NumberFormat("en-US");function qa(e){return cG.format(e)}function cy({label:e,totals:t}){return l.jsxs("div",{"data-token-bucket":e,className:"text-xs",children:[l.jsx(Rt,{size:"xs",variant:e==="estimated"?"warning":"success",children:e}),l.jsxs("dl",{className:"grid grid-cols-2 gap-x-4 gap-y-0.5 mt-1",children:[l.jsx("dt",{className:"text-spur-text-muted",children:"input"}),l.jsx("dd",{className:"tabular-nums text-right",children:qa(t.inputTokens)}),l.jsx("dt",{className:"text-spur-text-muted",children:"cache read"}),l.jsx("dd",{className:"tabular-nums text-right",children:qa(t.cacheReadTokens)}),l.jsx("dt",{className:"text-spur-text-muted",children:"cache write"}),l.jsx("dd",{className:"tabular-nums text-right",children:qa(t.cacheCreationTokens)}),l.jsx("dt",{className:"text-spur-text-muted",children:"output"}),l.jsx("dd",{className:"tabular-nums text-right",children:qa(t.outputTokens)})]})]})}function dG({role:e}){const t=e.role??"—";return l.jsxs("div",{className:"bg-base-100 border border-spur-border rounded-md p-3","data-role-attribution":t,children:[l.jsxs("div",{className:"flex items-center justify-between gap-2",children:[l.jsx("span",{className:"text-sm font-semibold text-spur-text",children:t}),l.jsxs("span",{className:"text-[10px] text-spur-text-muted tabular-nums",children:["matched ",e.matchedRuns," of ",e.totalRuns," runs"]})]}),e.unmeasured?l.jsxs("div",{className:"mt-1 text-xs","data-unmeasured":!0,children:[l.jsx(Rt,{size:"xs",variant:"ghost",children:"unmeasured"}),l.jsx("span",{className:"ml-1 text-spur-text-muted",children:"no token data recorded for this role — not a measured zero"})]}):l.jsxs("div",{className:"mt-2 flex flex-wrap gap-4",children:[e.exact?l.jsx(cy,{label:"exact",totals:e.exact}):null,e.estimated?l.jsx(cy,{label:"estimated",totals:e.estimated}):null]})]})}function pG(){const[e,t]=g.useState(null),[n,r]=g.useState(null);if(g.useEffect(()=>{const i=new AbortController;return(async()=>{try{const s=await vt(new Request(`${At()}/observability/routing-summary`,{signal:i.signal}));if(!s.ok)throw new Error(`routing summary fetch failed: ${s.status}`);const o=lG(await s.json());if(!o)throw new Error("routing summary response failed schema validation");t(o)}catch(s){if(i.signal.aborted)return;r(s instanceof Error?s.message:String(s))}})(),()=>i.abort()},[]),n)return l.jsxs("div",{className:"p-4 text-sm text-error",role:"alert",children:["Failed to load routing summary: ",n]});if(e===null)return l.jsxs("div",{className:"flex items-center justify-center h-32 text-spur-text-muted text-sm",children:[l.jsx(_a,{size:"sm"})," Loading routing summary…"]});const a=e.pairs.length===0&&e.roles.length===0;return l.jsxs("div",{className:"flex flex-col h-full overflow-hidden","data-routing-tab":!0,children:[l.jsxs("div",{className:"px-4 py-2 border-b border-spur-border bg-base-200 shrink-0 flex items-baseline justify-between",children:[l.jsx("span",{className:"text-xs font-semibold text-spur-text uppercase tracking-wide",children:"Routing & token consumption"}),l.jsxs("span",{className:"text-[10px] text-spur-text-muted tabular-nums","data-covered-window":!0,children:["covered ",e.window.since," → ",e.window.until]})]}),a?l.jsx("div",{className:"flex-1 flex items-center justify-center p-4","data-routing-empty":!0,children:l.jsx("div",{className:"text-sm text-spur-text-muted italic",children:"No routing attribution has been recorded in the covered window — nothing to show yet."})}):l.jsxs("div",{className:"flex-1 overflow-y-auto p-3 space-y-4",children:[e.pairs.length>0?l.jsxs("section",{className:"bg-base-100 border border-spur-border rounded-md","data-routing-table":!0,children:[l.jsxs("div",{className:"px-3 py-2 border-b border-spur-border",children:[l.jsx("span",{className:"text-xs font-semibold text-spur-text uppercase tracking-wide",children:"Role → executor"}),l.jsx("span",{className:"ml-2 text-[10px] text-spur-text-muted",children:"runs and escalations per pair; pinned and role-resolved counted separately"})]}),l.jsxs("table",{className:"table table-sm w-full",children:[l.jsx("thead",{children:l.jsxs("tr",{className:"text-[10px] uppercase text-spur-text-muted",children:[l.jsx("th",{children:"Role"}),l.jsx("th",{children:"Executor"}),l.jsx("th",{children:"Source"}),l.jsx("th",{className:"text-right",children:"Runs"}),l.jsx("th",{className:"text-right",children:"Escalations"})]})}),l.jsx("tbody",{children:e.pairs.map(i=>l.jsxs("tr",{children:[l.jsx("td",{className:"text-sm text-spur-text",children:i.role??"—"}),l.jsx("td",{className:"text-sm text-spur-text",children:i.executor}),l.jsx("td",{children:l.jsx(Rt,{size:"xs",variant:i.source==="explicit"?"warning":"ghost",children:uG(i.source)})}),l.jsx("td",{className:"text-right tabular-nums text-spur-text",children:qa(i.runs)}),l.jsx("td",{className:"text-right tabular-nums text-spur-text",children:qa(i.escalations)})]},`${i.role??""}:${i.executor}:${i.source??""}`))})]}),l.jsx("div",{className:"px-3 py-1.5 border-t border-spur-border text-[10px] text-spur-text-muted",children:"“—” role groups pure pins (no role recorded); escalations count runs that started too cheap on this executor."})]}):null,e.roles.length>0?l.jsxs("section",{"data-token-section":!0,children:[l.jsxs("div",{className:"px-1 pb-1.5",children:[l.jsx("span",{className:"text-xs font-semibold text-spur-text uppercase tracking-wide",children:"Token consumption by role"}),l.jsx("span",{className:"ml-2 text-[10px] text-spur-text-muted",children:"input, cache read, cache write, output — token totals only"})]}),l.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-2",children:e.roles.map(i=>l.jsx(dG,{role:i},i.role??"pin"))})]}):null]})]})}const Cc=[{id:"system-events",label:"System Events",component:qH},{id:"jobs",label:"Jobs",component:rG},{id:"routing",label:"Routing",component:pG}];function fG(){const[e,t]=g.useState(Cc[0]?.id??""),[n,r]=g.useState("all"),[a,i]=g.useState({status:"connecting",rate:0,lastEventAt:null}),o=Cc.find(m=>m.id===e)?.component,u=g.useCallback(m=>{i(m)},[]),c=e==="system-events",p=c?a.status:"idle",d=c?a.status==="live"?`live tail · ${a.rate} evt/60s`:a.status==="connecting"?"connecting…":a.status==="paused"?"live tail paused":"stream error":"live tail idle",f=p==="live"?"bg-emerald-400 animate-pulse":p==="connecting"?"bg-amber-400":p==="errored"?"bg-error":"bg-base-content/40";return l.jsxs("div",{className:"flex flex-col gap-4 p-4 max-w-[1600px] mx-auto w-full h-full overflow-hidden","data-observability-shell":!0,children:[l.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4 border-b border-base-content/10 pb-3 shrink-0",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("span",{className:"text-2xl",children:"📡"}),l.jsxs("div",{children:[l.jsx("h1",{className:"text-xl font-bold tracking-tight",children:"Observability"}),l.jsx("p",{className:"text-xs text-base-content/60",children:"System event streams, queue execution telemetry, and routing attribution"}),l.jsxs("p",{className:"livechip mt-1 inline-flex items-center gap-1.5 rounded-full border border-base-content/10 px-2 py-0.5 text-xs text-base-content/60 font-mono","data-testid":"observability-liveness-chip",role:"status","aria-live":"polite",children:[l.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${f}`,"aria-hidden":"true"}),d,c&&a.lastEventAt&&l.jsxs(l.Fragment,{children:[" · last ",l.jsx("time",{dateTime:a.lastEventAt,children:new Date(a.lastEventAt).toLocaleTimeString()})]})]})]})]}),l.jsx("div",{role:"tablist","aria-label":"Observability tabs",className:"flex items-center gap-1 bg-base-300 p-1 rounded-xl",children:Cc.map(m=>{const b=m.id===e;return l.jsx("button",{type:"button",role:"tab","aria-selected":b,"aria-controls":`observability-tab-panel-${m.id}`,id:`observability-tab-${m.id}`,onClick:()=>t(m.id),className:`px-3 py-1.5 text-xs font-semibold rounded-lg transition-all cursor-pointer ${b?"bg-primary text-primary-content font-bold shadow-sm":"text-base-content/70 hover:bg-base-content/10"}`,children:m.label},m.id)})})]}),l.jsx("div",{role:"tabpanel",id:`observability-tab-panel-${e}`,"aria-labelledby":`observability-tab-${e}`,className:"flex-1 overflow-hidden min-h-0 flex flex-col",children:o?l.jsx(o,{onLivenessChange:u,timeRange:n,onTimeRangeChange:r}):null})]})}const mG={id:"observability",name:"Observability",icon:"🛰️",route:"observability",component:fG,sidebarLabel:"Observability",order:0},hG=Object.freeze(Object.defineProperty({__proto__:null,module:mG},Symbol.toStringTag,{value:"Module"})),vu=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ai(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Eb(e){return"nodeType"in e}function Pn(e){var t,n;return e?Ai(e)?e:Eb(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function xb(e){const{Document:t}=Pn(e);return e instanceof t}function Js(e){return Ai(e)?!1:e instanceof Pn(e).HTMLElement}function hw(e){return e instanceof Pn(e).SVGElement}function Ni(e){return e?Ai(e)?e.document:Eb(e)?xb(e)?e:Js(e)||hw(e)?e.ownerDocument:document:document:document}const Dr=vu?g.useLayoutEffect:g.useEffect;function wu(e){const t=g.useRef(e);return Dr(()=>{t.current=e}),g.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return t.current==null?void 0:t.current(...r)},[])}function gG(){const e=g.useRef(null),t=g.useCallback((r,a)=>{e.current=setInterval(r,a)},[]),n=g.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Cs(e,t){t===void 0&&(t=[e]);const n=g.useRef(e);return Dr(()=>{n.current!==e&&(n.current=e)},t),n}function eo(e,t){const n=g.useRef();return g.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function vl(e){const t=wu(e),n=g.useRef(null),r=g.useCallback(a=>{a!==n.current&&t?.(a,n.current),n.current=a},[]);return[n,r]}function wl(e){const t=g.useRef();return g.useEffect(()=>{t.current=e},[e]),t.current}let kc={};function Au(e,t){return g.useMemo(()=>{if(t)return t;const n=kc[e]==null?0:kc[e]+1;return kc[e]=n,e+"-"+n},[e,t])}function gw(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return r.reduce((i,s)=>{const o=Object.entries(s);for(const[u,c]of o){const p=i[u];p!=null&&(i[u]=p+e*c)}return i},{...t})}}const ei=gw(1),Al=gw(-1);function bG(e){return"clientX"in e&&"clientY"in e}function yb(e){if(!e)return!1;const{KeyboardEvent:t}=Pn(e.target);return t&&e instanceof t}function EG(e){if(!e)return!1;const{TouchEvent:t}=Pn(e.target);return t&&e instanceof t}function Nl(e){if(EG(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return bG(e)?{x:e.clientX,y:e.clientY}:null}const ui=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[ui.Translate.toString(e),ui.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),dy="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function xG(e){return e.matches(dy)?e:e.querySelector(dy)}const yG={display:"none"};function TG(e){let{id:t,value:n}=e;return tt.createElement("div",{id:t,style:yG},n)}function SG(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const a={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return tt.createElement("div",{id:t,style:a,role:"status","aria-live":r,"aria-atomic":!0},n)}function vG(){const[e,t]=g.useState("");return{announce:g.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const bw=g.createContext(null);function wG(e){const t=g.useContext(bw);g.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function AG(){const[e]=g.useState(()=>new Set),t=g.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[g.useCallback(r=>{let{type:a,event:i}=r;e.forEach(s=>{var o;return(o=s[a])==null?void 0:o.call(s,i)})},[e]),t]}const NG={draggable:`
|
|
175
|
-
To pick up a draggable item, press the space bar.
|
|
176
|
-
While dragging, use the arrow keys to move the item.
|
|
177
|
-
Press space again to drop the item in its new position, or press escape to cancel.
|
|
178
|
-
`},_G={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function CG(e){let{announcements:t=_G,container:n,hiddenTextDescribedById:r,screenReaderInstructions:a=NG}=e;const{announce:i,announcement:s}=vG(),o=Au("DndLiveRegion"),[u,c]=g.useState(!1);if(g.useEffect(()=>{c(!0)},[]),wG(g.useMemo(()=>({onDragStart(d){let{active:f}=d;i(t.onDragStart({active:f}))},onDragMove(d){let{active:f,over:m}=d;t.onDragMove&&i(t.onDragMove({active:f,over:m}))},onDragOver(d){let{active:f,over:m}=d;i(t.onDragOver({active:f,over:m}))},onDragEnd(d){let{active:f,over:m}=d;i(t.onDragEnd({active:f,over:m}))},onDragCancel(d){let{active:f,over:m}=d;i(t.onDragCancel({active:f,over:m}))}}),[i,t])),!u)return null;const p=tt.createElement(tt.Fragment,null,tt.createElement(TG,{id:r,value:a.draggable}),tt.createElement(SG,{id:o,announcement:s}));return n?Va.createPortal(p,n):p}var sn;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(sn||(sn={}));function _l(){}function py(e,t){return g.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function kG(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return g.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const ur=Object.freeze({x:0,y:0});function IG(e,t){const n=Nl(e);if(!n)return"0 0";const r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}function RG(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function DG(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function OG(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),a=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),s=a-r,o=i-n;if(r<a&&n<i){const u=t.width*t.height,c=e.width*e.height,p=s*o,d=p/(u+c-p);return Number(d.toFixed(4))}return 0}const LG=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const a=[];for(const i of r){const{id:s}=i,o=n.get(s);if(o){const u=OG(o,t);u>0&&a.push({id:s,data:{droppableContainer:i,value:u}})}}return a.sort(RG)};function FG(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Ew(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:ur}function MG(e){return function(n){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return a.reduce((s,o)=>({...s,top:s.top+e*o.y,bottom:s.bottom+e*o.y,left:s.left+e*o.x,right:s.right+e*o.x}),{...n})}}const PG=MG(1);function xw(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function jG(e,t,n){const r=xw(t);if(!r)return e;const{scaleX:a,scaleY:i,x:s,y:o}=r,u=e.left-s-(1-a)*parseFloat(n),c=e.top-o-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),p=a?e.width/a:e.width,d=i?e.height/i:e.height;return{width:p,height:d,top:c,right:u+p,bottom:c+d,left:u}}const BG={ignoreTransform:!1};function to(e,t){t===void 0&&(t=BG);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:p}=Pn(e).getComputedStyle(e);c&&(n=jG(n,c,p))}const{top:r,left:a,width:i,height:s,bottom:o,right:u}=n;return{top:r,left:a,width:i,height:s,bottom:o,right:u}}function fy(e){return to(e,{ignoreTransform:!0})}function UG(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function $G(e,t){return t===void 0&&(t=Pn(e).getComputedStyle(e)),t.position==="fixed"}function zG(e,t){t===void 0&&(t=Pn(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const i=t[a];return typeof i=="string"?n.test(i):!1})}function Tb(e,t){const n=[];function r(a){if(t!=null&&n.length>=t||!a)return n;if(xb(a)&&a.scrollingElement!=null&&!n.includes(a.scrollingElement))return n.push(a.scrollingElement),n;if(!Js(a)||hw(a)||n.includes(a))return n;const i=Pn(e).getComputedStyle(a);return a!==e&&zG(a,i)&&n.push(a),$G(a,i)?n:r(a.parentNode)}return e?r(e):n}function yw(e){const[t]=Tb(e,1);return t??null}function Ic(e){return!vu||!e?null:Ai(e)?e:Eb(e)?xb(e)||e===Ni(e).scrollingElement?window:Js(e)?e:null:null}function Tw(e){return Ai(e)?e.scrollX:e.scrollLeft}function Sw(e){return Ai(e)?e.scrollY:e.scrollTop}function _d(e){return{x:Tw(e),y:Sw(e)}}var mn;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(mn||(mn={}));function vw(e){return!vu||!e?!1:e===document.scrollingElement}function ww(e){const t={x:0,y:0},n=vw(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},a=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,s=e.scrollTop>=r.y,o=e.scrollLeft>=r.x;return{isTop:a,isLeft:i,isBottom:s,isRight:o,maxScroll:r,minScroll:t}}const HG={x:.2,y:.2};function GG(e,t,n,r,a){let{top:i,left:s,right:o,bottom:u}=n;r===void 0&&(r=10),a===void 0&&(a=HG);const{isTop:c,isBottom:p,isLeft:d,isRight:f}=ww(e),m={x:0,y:0},b={x:0,y:0},E={height:t.height*a.y,width:t.width*a.x};return!c&&i<=t.top+E.height?(m.y=mn.Backward,b.y=r*Math.abs((t.top+E.height-i)/E.height)):!p&&u>=t.bottom-E.height&&(m.y=mn.Forward,b.y=r*Math.abs((t.bottom-E.height-u)/E.height)),!f&&o>=t.right-E.width?(m.x=mn.Forward,b.x=r*Math.abs((t.right-E.width-o)/E.width)):!d&&s<=t.left+E.width&&(m.x=mn.Backward,b.x=r*Math.abs((t.left+E.width-s)/E.width)),{direction:m,speed:b}}function WG(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:s}=window;return{top:0,left:0,right:i,bottom:s,width:i,height:s}}const{top:t,left:n,right:r,bottom:a}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:a,width:e.clientWidth,height:e.clientHeight}}function Aw(e){return e.reduce((t,n)=>ei(t,_d(n)),ur)}function VG(e){return e.reduce((t,n)=>t+Tw(n),0)}function qG(e){return e.reduce((t,n)=>t+Sw(n),0)}function Nw(e,t){if(t===void 0&&(t=to),!e)return;const{top:n,left:r,bottom:a,right:i}=t(e);yw(e)&&(a<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const YG=[["x",["left","right"],VG],["y",["top","bottom"],qG]];class Sb{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Tb(n),a=Aw(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,s,o]of YG)for(const u of s)Object.defineProperty(this,u,{get:()=>{const c=o(r),p=a[i]-c;return this.rect[u]+p},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class us{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var a;(a=this.target)==null||a.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function ZG(e){const{EventTarget:t}=Pn(e);return e instanceof t?e:Ni(e)}function Rc(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var er;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(er||(er={}));function my(e){e.preventDefault()}function KG(e){e.stopPropagation()}var Lt;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Lt||(Lt={}));const _w={start:[Lt.Space,Lt.Enter],cancel:[Lt.Esc],end:[Lt.Space,Lt.Enter,Lt.Tab]},XG=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Lt.Right:return{...n,x:n.x+25};case Lt.Left:return{...n,x:n.x-25};case Lt.Down:return{...n,y:n.y+25};case Lt.Up:return{...n,y:n.y-25}}};class vb{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new us(Ni(n)),this.windowListeners=new us(Pn(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(er.Resize,this.handleCancel),this.windowListeners.add(er.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(er.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&Nw(r),n(ur)}handleKeyDown(t){if(yb(t)){const{active:n,context:r,options:a}=this.props,{keyboardCodes:i=_w,coordinateGetter:s=XG,scrollBehavior:o="smooth"}=a,{code:u}=t;if(i.end.includes(u)){this.handleEnd(t);return}if(i.cancel.includes(u)){this.handleCancel(t);return}const{collisionRect:c}=r.current,p=c?{x:c.left,y:c.top}:ur;this.referenceCoordinates||(this.referenceCoordinates=p);const d=s(t,{active:n,context:r.current,currentCoordinates:p});if(d){const f=Al(d,p),m={x:0,y:0},{scrollableAncestors:b}=r.current;for(const E of b){const x=t.code,{isTop:y,isRight:S,isLeft:v,isBottom:w,maxScroll:R,minScroll:N}=ww(E),T=WG(E),_={x:Math.min(x===Lt.Right?T.right-T.width/2:T.right,Math.max(x===Lt.Right?T.left:T.left+T.width/2,d.x)),y:Math.min(x===Lt.Down?T.bottom-T.height/2:T.bottom,Math.max(x===Lt.Down?T.top:T.top+T.height/2,d.y))},L=x===Lt.Right&&!S||x===Lt.Left&&!v,C=x===Lt.Down&&!w||x===Lt.Up&&!y;if(L&&_.x!==d.x){const $=E.scrollLeft+f.x,I=x===Lt.Right&&$<=R.x||x===Lt.Left&&$>=N.x;if(I&&!f.y){E.scrollTo({left:$,behavior:o});return}I?m.x=E.scrollLeft-$:m.x=x===Lt.Right?E.scrollLeft-R.x:E.scrollLeft-N.x,m.x&&E.scrollBy({left:-m.x,behavior:o});break}else if(C&&_.y!==d.y){const $=E.scrollTop+f.y,I=x===Lt.Down&&$<=R.y||x===Lt.Up&&$>=N.y;if(I&&!f.x){E.scrollTo({top:$,behavior:o});return}I?m.y=E.scrollTop-$:m.y=x===Lt.Down?E.scrollTop-R.y:E.scrollTop-N.y,m.y&&E.scrollBy({top:-m.y,behavior:o});break}}this.handleMove(t,ei(Al(d,this.referenceCoordinates),m))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}vb.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=_w,onActivation:a}=t,{active:i}=n;const{code:s}=e.nativeEvent;if(r.start.includes(s)){const o=i.activatorNode.current;return o&&e.target!==o?!1:(e.preventDefault(),a?.({event:e.nativeEvent}),!0)}return!1}}];function hy(e){return!!(e&&"distance"in e)}function gy(e){return!!(e&&"delay"in e)}class wb{constructor(t,n,r){var a;r===void 0&&(r=ZG(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:i}=t,{target:s}=i;this.props=t,this.events=n,this.document=Ni(s),this.documentListeners=new us(this.document),this.listeners=new us(r),this.windowListeners=new us(Pn(s)),this.initialCoordinates=(a=Nl(i))!=null?a:ur,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(er.Resize,this.handleCancel),this.windowListeners.add(er.DragStart,my),this.windowListeners.add(er.VisibilityChange,this.handleCancel),this.windowListeners.add(er.ContextMenu,my),this.documentListeners.add(er.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(gy(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(hy(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:a}=this.props;a(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(er.Click,KG,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(er.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:a,props:i}=this,{onMove:s,options:{activationConstraint:o}}=i;if(!a)return;const u=(n=Nl(t))!=null?n:ur,c=Al(a,u);if(!r&&o){if(hy(o)){if(o.tolerance!=null&&Rc(c,o.tolerance))return this.handleCancel();if(Rc(c,o.distance))return this.handleStart()}if(gy(o)&&Rc(c,o.tolerance))return this.handleCancel();this.handlePending(o,c);return}t.cancelable&&t.preventDefault(),s(u)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===Lt.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const QG={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Ab extends wb{constructor(t){const{event:n}=t,r=Ni(n.target);super(t,QG,r)}}Ab.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];const JG={move:{name:"mousemove"},end:{name:"mouseup"}};var Cd;(function(e){e[e.RightClick=2]="RightClick"})(Cd||(Cd={}));class eW extends wb{constructor(t){super(t,JG,Ni(t.event.target))}}eW.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Cd.RightClick?!1:(r?.({event:n}),!0)}}];const Dc={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class tW extends wb{constructor(t){super(t,Dc)}static setup(){return window.addEventListener(Dc.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Dc.move.name,t)};function t(){}}}tW.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:a}=n;return a.length>1?!1:(r?.({event:n}),!0)}}];var cs;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(cs||(cs={}));var Cl;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Cl||(Cl={}));function nW(e){let{acceleration:t,activator:n=cs.Pointer,canScroll:r,draggingRect:a,enabled:i,interval:s=5,order:o=Cl.TreeOrder,pointerCoordinates:u,scrollableAncestors:c,scrollableAncestorRects:p,delta:d,threshold:f}=e;const m=aW({delta:d,disabled:!i}),[b,E]=gG(),x=g.useRef({x:0,y:0}),y=g.useRef({x:0,y:0}),S=g.useMemo(()=>{switch(n){case cs.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case cs.DraggableRect:return a}},[n,a,u]),v=g.useRef(null),w=g.useCallback(()=>{const N=v.current;if(!N)return;const T=x.current.x*y.current.x,_=x.current.y*y.current.y;N.scrollBy(T,_)},[]),R=g.useMemo(()=>o===Cl.TreeOrder?[...c].reverse():c,[o,c]);g.useEffect(()=>{if(!i||!c.length||!S){E();return}for(const N of R){if(r?.(N)===!1)continue;const T=c.indexOf(N),_=p[T];if(!_)continue;const{direction:L,speed:C}=GG(N,_,S,t,f);for(const $ of["x","y"])m[$][L[$]]||(C[$]=0,L[$]=0);if(C.x>0||C.y>0){E(),v.current=N,b(w,s),x.current=C,y.current=L;return}}x.current={x:0,y:0},y.current={x:0,y:0},E()},[t,w,r,E,i,s,JSON.stringify(S),JSON.stringify(m),b,c,R,p,JSON.stringify(f)])}const rW={x:{[mn.Backward]:!1,[mn.Forward]:!1},y:{[mn.Backward]:!1,[mn.Forward]:!1}};function aW(e){let{delta:t,disabled:n}=e;const r=wl(t);return eo(a=>{if(n||!r||!a)return rW;const i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[mn.Backward]:a.x[mn.Backward]||i.x===-1,[mn.Forward]:a.x[mn.Forward]||i.x===1},y:{[mn.Backward]:a.y[mn.Backward]||i.y===-1,[mn.Forward]:a.y[mn.Forward]||i.y===1}}},[n,t,r])}function iW(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return eo(a=>{var i;return t==null?null:(i=r??a)!=null?i:null},[r,t])}function sW(e,t){return g.useMemo(()=>e.reduce((n,r)=>{const{sensor:a}=r,i=a.activators.map(s=>({eventName:s.eventName,handler:t(s.handler,r)}));return[...n,...i]},[]),[e,t])}var ks;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(ks||(ks={}));var kd;(function(e){e.Optimized="optimized"})(kd||(kd={}));const by=new Map;function oW(e,t){let{dragging:n,dependencies:r,config:a}=t;const[i,s]=g.useState(null),{frequency:o,measure:u,strategy:c}=a,p=g.useRef(e),d=x(),f=Cs(d),m=g.useCallback(function(y){y===void 0&&(y=[]),!f.current&&s(S=>S===null?y:S.concat(y.filter(v=>!S.includes(v))))},[f]),b=g.useRef(null),E=eo(y=>{if(d&&!n)return by;if(!y||y===by||p.current!==e||i!=null){const S=new Map;for(let v of e){if(!v)continue;if(i&&i.length>0&&!i.includes(v.id)&&v.rect.current){S.set(v.id,v.rect.current);continue}const w=v.node.current,R=w?new Sb(u(w),w):null;v.rect.current=R,R&&S.set(v.id,R)}return S}return y},[e,i,n,d,u]);return g.useEffect(()=>{p.current=e},[e]),g.useEffect(()=>{d||m()},[n,d]),g.useEffect(()=>{i&&i.length>0&&s(null)},[JSON.stringify(i)]),g.useEffect(()=>{d||typeof o!="number"||b.current!==null||(b.current=setTimeout(()=>{m(),b.current=null},o))},[o,d,m,...r]),{droppableRects:E,measureDroppableContainers:m,measuringScheduled:i!=null};function x(){switch(c){case ks.Always:return!1;case ks.BeforeDragging:return n;default:return!n}}}function Nb(e,t){return eo(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function lW(e,t){return Nb(e,t)}function uW(e){let{callback:t,disabled:n}=e;const r=wu(t),a=g.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,n]);return g.useEffect(()=>()=>a?.disconnect(),[a]),a}function Nu(e){let{callback:t,disabled:n}=e;const r=wu(t),a=g.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[n]);return g.useEffect(()=>()=>a?.disconnect(),[a]),a}function cW(e){return new Sb(to(e),e)}function Ey(e,t,n){t===void 0&&(t=cW);const[r,a]=g.useState(null);function i(){a(u=>{if(!e)return null;if(e.isConnected===!1){var c;return(c=u??n)!=null?c:null}const p=t(e);return JSON.stringify(u)===JSON.stringify(p)?u:p})}const s=uW({callback(u){if(e)for(const c of u){const{type:p,target:d}=c;if(p==="childList"&&d instanceof HTMLElement&&d.contains(e)){i();break}}}}),o=Nu({callback:i});return Dr(()=>{i(),e?(o?.observe(e),s?.observe(document.body,{childList:!0,subtree:!0})):(o?.disconnect(),s?.disconnect())},[e]),r}function dW(e){const t=Nb(e);return Ew(e,t)}const xy=[];function pW(e){const t=g.useRef(e),n=eo(r=>e?r&&r!==xy&&e&&t.current&&e.parentNode===t.current.parentNode?r:Tb(e):xy,[e]);return g.useEffect(()=>{t.current=e},[e]),n}function fW(e){const[t,n]=g.useState(null),r=g.useRef(e),a=g.useCallback(i=>{const s=Ic(i.target);s&&n(o=>o?(o.set(s,_d(s)),new Map(o)):null)},[]);return g.useEffect(()=>{const i=r.current;if(e!==i){s(i);const o=e.map(u=>{const c=Ic(u);return c?(c.addEventListener("scroll",a,{passive:!0}),[c,_d(c)]):null}).filter(u=>u!=null);n(o.length?new Map(o):null),r.current=e}return()=>{s(e),s(i)};function s(o){o.forEach(u=>{const c=Ic(u);c?.removeEventListener("scroll",a)})}},[a,e]),g.useMemo(()=>e.length?t?Array.from(t.values()).reduce((i,s)=>ei(i,s),ur):Aw(e):ur,[e,t])}function yy(e,t){t===void 0&&(t=[]);const n=g.useRef(null);return g.useEffect(()=>{n.current=null},t),g.useEffect(()=>{const r=e!==ur;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?Al(e,n.current):ur}function mW(e){g.useEffect(()=>{if(!vu)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n?.()}},e.map(t=>{let{sensor:n}=t;return n}))}function hW(e,t){return g.useMemo(()=>e.reduce((n,r)=>{let{eventName:a,handler:i}=r;return n[a]=s=>{i(s,t)},n},{}),[e,t])}function Cw(e){return g.useMemo(()=>e?UG(e):null,[e])}const Ty=[];function gW(e,t){t===void 0&&(t=to);const[n]=e,r=Cw(n?Pn(n):null),[a,i]=g.useState(Ty);function s(){i(()=>e.length?e.map(u=>vw(u)?r:new Sb(t(u),u)):Ty)}const o=Nu({callback:s});return Dr(()=>{o?.disconnect(),s(),e.forEach(u=>o?.observe(u))},[e]),a}function kw(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Js(t)?t:e}function bW(e){let{measure:t}=e;const[n,r]=g.useState(null),a=g.useCallback(c=>{for(const{target:p}of c)if(Js(p)){r(d=>{const f=t(p);return d?{...d,width:f.width,height:f.height}:f});break}},[t]),i=Nu({callback:a}),s=g.useCallback(c=>{const p=kw(c);i?.disconnect(),p&&i?.observe(p),r(p?t(p):null)},[t,i]),[o,u]=vl(s);return g.useMemo(()=>({nodeRef:o,rect:n,setRef:u}),[n,o,u])}const EW=[{sensor:Ab,options:{}},{sensor:vb,options:{}}],xW={current:{}},Vo={draggable:{measure:fy},droppable:{measure:fy,strategy:ks.WhileDragging,frequency:kd.Optimized},dragOverlay:{measure:to}};class ds extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const yW={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ds,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:_l},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Vo,measureDroppableContainers:_l,windowRect:null,measuringScheduled:!1},Iw={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:_l,draggableNodes:new Map,over:null,measureDroppableContainers:_l},no=g.createContext(Iw),Rw=g.createContext(yW);function TW(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ds}}}function SW(e,t){switch(t.type){case sn.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case sn.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case sn.DragEnd:case sn.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case sn.RegisterDroppable:{const{element:n}=t,{id:r}=n,a=new ds(e.droppable.containers);return a.set(r,n),{...e,droppable:{...e.droppable,containers:a}}}case sn.SetDroppableDisabled:{const{id:n,key:r,disabled:a}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const s=new ds(e.droppable.containers);return s.set(n,{...i,disabled:a}),{...e,droppable:{...e.droppable,containers:s}}}case sn.UnregisterDroppable:{const{id:n,key:r}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;const i=new ds(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function vW(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:a}=g.useContext(no),i=wl(r),s=wl(n?.id);return g.useEffect(()=>{if(!t&&!r&&i&&s!=null){if(!yb(i)||document.activeElement===i.target)return;const o=a.get(s);if(!o)return;const{activatorNode:u,node:c}=o;if(!u.current&&!c.current)return;requestAnimationFrame(()=>{for(const p of[u.current,c.current]){if(!p)continue;const d=xG(p);if(d){d.focus();break}}})}},[r,t,a,s,i]),null}function Dw(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((a,i)=>i({transform:a,...r}),n):n}function wW(e){return g.useMemo(()=>({draggable:{...Vo.draggable,...e?.draggable},droppable:{...Vo.droppable,...e?.droppable},dragOverlay:{...Vo.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function AW(e){let{activeNode:t,measure:n,initialRect:r,config:a=!0}=e;const i=g.useRef(!1),{x:s,y:o}=typeof a=="boolean"?{x:a,y:a}:a;Dr(()=>{if(!s&&!o||!t){i.current=!1;return}if(i.current||!r)return;const c=t?.node.current;if(!c||c.isConnected===!1)return;const p=n(c),d=Ew(p,r);if(s||(d.x=0),o||(d.y=0),i.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const f=yw(c);f&&f.scrollBy({top:d.y,left:d.x})}},[t,s,o,r,n])}const _u=g.createContext({...ur,scaleX:1,scaleY:1});var zr;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(zr||(zr={}));const NW=g.memo(function(t){var n,r,a,i;let{id:s,accessibility:o,autoScroll:u=!0,children:c,sensors:p=EW,collisionDetection:d=LG,measuring:f,modifiers:m,...b}=t;const E=g.useReducer(SW,void 0,TW),[x,y]=E,[S,v]=AG(),[w,R]=g.useState(zr.Uninitialized),N=w===zr.Initialized,{draggable:{active:T,nodes:_,translate:L},droppable:{containers:C}}=x,$=T!=null?_.get(T):null,I=g.useRef({initial:null,translated:null}),P=g.useMemo(()=>{var Le;return T!=null?{id:T,data:(Le=$?.data)!=null?Le:xW,rect:I}:null},[T,$]),W=g.useRef(null),[U,ne]=g.useState(null),[z,se]=g.useState(null),pe=Cs(b,Object.values(b)),D=Au("DndDescribedBy",s),Q=g.useMemo(()=>C.getEnabled(),[C]),de=wW(f),{droppableRects:O,measureDroppableContainers:Ce,measuringScheduled:De}=oW(Q,{dragging:N,dependencies:[L.x,L.y],config:de.droppable}),J=iW(_,T),_e=g.useMemo(()=>z?Nl(z):null,[z]),fe=Qt(),X=lW(J,de.draggable.measure);AW({activeNode:T!=null?_.get(T):null,config:fe.layoutShiftCompensation,initialRect:X,measure:de.draggable.measure});const Ge=Ey(J,de.draggable.measure,X),ge=Ey(J?J.parentElement:null),me=g.useRef({activatorEvent:null,active:null,activeNode:J,collisionRect:null,collisions:null,droppableRects:O,draggableNodes:_,draggingNode:null,draggingNodeRect:null,droppableContainers:C,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Te=C.getNodeFor((n=me.current.over)==null?void 0:n.id),Se=bW({measure:de.dragOverlay.measure}),oe=(r=Se.nodeRef.current)!=null?r:J,qe=N?(a=Se.rect)!=null?a:Ge:null,at=!!(Se.nodeRef.current&&Se.rect),ft=dW(at?null:Ge),Dt=Cw(oe?Pn(oe):null),xt=pW(N?Te??J:null),Ut=gW(xt),Kt=Dw(m,{transform:{x:L.x-ft.x,y:L.y-ft.y,scaleX:1,scaleY:1},activatorEvent:z,active:P,activeNodeRect:Ge,containerNodeRect:ge,draggingNodeRect:qe,over:me.current.over,overlayNodeRect:Se.rect,scrollableAncestors:xt,scrollableAncestorRects:Ut,windowRect:Dt}),ot=_e?ei(_e,L):null,Oe=fW(xt),Qe=yy(Oe),Y=yy(Oe,[Ge]),ie=ei(Kt,Qe),ee=qe?PG(qe,Kt):null,ue=P&&ee?d({active:P,collisionRect:ee,droppableRects:O,droppableContainers:Q,pointerCoordinates:ot}):null,Be=DG(ue,"id"),[Ye,mt]=g.useState(null),Ot=at?Kt:ei(Kt,Y),Nt=FG(Ot,(i=Ye?.rect)!=null?i:null,Ge),Pt=g.useRef(null),ae=g.useCallback((Le,ht)=>{let{sensor:Xe,options:It}=ht;if(W.current==null)return;const Je=_.get(W.current);if(!Je)return;const H=Le.nativeEvent,Re=new Xe({active:W.current,activeNode:Je,event:H,options:It,context:me,onAbort(Ke){if(!_.get(Ke))return;const{onDragAbort:j}=pe.current,G={id:Ke};j?.(G),S({type:"onDragAbort",event:G})},onPending(Ke,$t,j,G){if(!_.get(Ke))return;const{onDragPending:le}=pe.current,be={id:Ke,constraint:$t,initialCoordinates:j,offset:G};le?.(be),S({type:"onDragPending",event:be})},onStart(Ke){const $t=W.current;if($t==null)return;const j=_.get($t);if(!j)return;const{onDragStart:G}=pe.current,Z={activatorEvent:H,active:{id:$t,data:j.data,rect:I}};Va.unstable_batchedUpdates(()=>{G?.(Z),R(zr.Initializing),y({type:sn.DragStart,initialCoordinates:Ke,active:$t}),S({type:"onDragStart",event:Z}),ne(Pt.current),se(H)})},onMove(Ke){y({type:sn.DragMove,coordinates:Ke})},onEnd:et(sn.DragEnd),onCancel:et(sn.DragCancel)});Pt.current=Re;function et(Ke){return async function(){const{active:j,collisions:G,over:Z,scrollAdjustedTranslate:le}=me.current;let be=null;if(j&&le){const{cancelDrop:Ie}=pe.current;be={activatorEvent:H,active:j,collisions:G,delta:le,over:Z},Ke===sn.DragEnd&&typeof Ie=="function"&&await Promise.resolve(Ie(be))&&(Ke=sn.DragCancel)}W.current=null,Va.unstable_batchedUpdates(()=>{y({type:Ke}),R(zr.Uninitialized),mt(null),ne(null),se(null),Pt.current=null;const Ie=Ke===sn.DragEnd?"onDragEnd":"onDragCancel";if(be){const ke=pe.current[Ie];ke?.(be),S({type:Ie,event:be})}})}}},[_]),Ne=g.useCallback((Le,ht)=>(Xe,It)=>{const Je=Xe.nativeEvent,H=_.get(It);if(W.current!==null||!H||Je.dndKit||Je.defaultPrevented)return;const Re={active:H};Le(Xe,ht.options,Re)===!0&&(Je.dndKit={capturedBy:ht.sensor},W.current=It,ae(Xe,ht))},[_,ae]),ze=sW(p,Ne);mW(p),Dr(()=>{Ge&&w===zr.Initializing&&R(zr.Initialized)},[Ge,w]),g.useEffect(()=>{const{onDragMove:Le}=pe.current,{active:ht,activatorEvent:Xe,collisions:It,over:Je}=me.current;if(!ht||!Xe)return;const H={active:ht,activatorEvent:Xe,collisions:It,delta:{x:ie.x,y:ie.y},over:Je};Va.unstable_batchedUpdates(()=>{Le?.(H),S({type:"onDragMove",event:H})})},[ie.x,ie.y]),g.useEffect(()=>{const{active:Le,activatorEvent:ht,collisions:Xe,droppableContainers:It,scrollAdjustedTranslate:Je}=me.current;if(!Le||W.current==null||!ht||!Je)return;const{onDragOver:H}=pe.current,Re=It.get(Be),et=Re&&Re.rect.current?{id:Re.id,rect:Re.rect.current,data:Re.data,disabled:Re.disabled}:null,Ke={active:Le,activatorEvent:ht,collisions:Xe,delta:{x:Je.x,y:Je.y},over:et};Va.unstable_batchedUpdates(()=>{mt(et),H?.(Ke),S({type:"onDragOver",event:Ke})})},[Be]),Dr(()=>{me.current={activatorEvent:z,active:P,activeNode:J,collisionRect:ee,collisions:ue,droppableRects:O,draggableNodes:_,draggingNode:oe,draggingNodeRect:qe,droppableContainers:C,over:Ye,scrollableAncestors:xt,scrollAdjustedTranslate:ie},I.current={initial:qe,translated:ee}},[P,J,ue,ee,_,oe,qe,O,C,Ye,xt,ie]),nW({...fe,delta:L,draggingRect:ee,pointerCoordinates:ot,scrollableAncestors:xt,scrollableAncestorRects:Ut});const Me=g.useMemo(()=>({active:P,activeNode:J,activeNodeRect:Ge,activatorEvent:z,collisions:ue,containerNodeRect:ge,dragOverlay:Se,draggableNodes:_,droppableContainers:C,droppableRects:O,over:Ye,measureDroppableContainers:Ce,scrollableAncestors:xt,scrollableAncestorRects:Ut,measuringConfiguration:de,measuringScheduled:De,windowRect:Dt}),[P,J,Ge,z,ue,ge,Se,_,C,O,Ye,Ce,xt,Ut,de,De,Dt]),Ct=g.useMemo(()=>({activatorEvent:z,activators:ze,active:P,activeNodeRect:Ge,ariaDescribedById:{draggable:D},dispatch:y,draggableNodes:_,over:Ye,measureDroppableContainers:Ce}),[z,ze,P,Ge,y,D,_,Ye,Ce]);return tt.createElement(bw.Provider,{value:v},tt.createElement(no.Provider,{value:Ct},tt.createElement(Rw.Provider,{value:Me},tt.createElement(_u.Provider,{value:Nt},c)),tt.createElement(vW,{disabled:o?.restoreFocus===!1})),tt.createElement(CG,{...o,hiddenTextDescribedById:D}));function Qt(){const Le=U?.autoScrollEnabled===!1,ht=typeof u=="object"?u.enabled===!1:u===!1,Xe=N&&!Le&&!ht;return typeof u=="object"?{...u,enabled:Xe}:{enabled:Xe}}}),_W=g.createContext(null),Sy="button",CW="Draggable";function kW(e){let{id:t,data:n,disabled:r=!1,attributes:a}=e;const i=Au(CW),{activators:s,activatorEvent:o,active:u,activeNodeRect:c,ariaDescribedById:p,draggableNodes:d,over:f}=g.useContext(no),{role:m=Sy,roleDescription:b="draggable",tabIndex:E=0}=a??{},x=u?.id===t,y=g.useContext(x?_u:_W),[S,v]=vl(),[w,R]=vl(),N=hW(s,t),T=Cs(n);Dr(()=>(d.set(t,{id:t,key:i,node:S,activatorNode:w,data:T}),()=>{const L=d.get(t);L&&L.key===i&&d.delete(t)}),[d,t]);const _=g.useMemo(()=>({role:m,tabIndex:E,"aria-disabled":r,"aria-pressed":x&&m===Sy?!0:void 0,"aria-roledescription":b,"aria-describedby":p.draggable}),[r,m,E,x,b,p.draggable]);return{active:u,activatorEvent:o,activeNodeRect:c,attributes:_,isDragging:x,listeners:r?void 0:N,node:S,over:f,setNodeRef:v,setActivatorNodeRef:R,transform:y}}function IW(){return g.useContext(Rw)}const RW="Droppable",DW={timeout:25};function OW(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:a}=e;const i=Au(RW),{active:s,dispatch:o,over:u,measureDroppableContainers:c}=g.useContext(no),p=g.useRef({disabled:n}),d=g.useRef(!1),f=g.useRef(null),m=g.useRef(null),{disabled:b,updateMeasurementsFor:E,timeout:x}={...DW,...a},y=Cs(E??r),S=g.useCallback(()=>{if(!d.current){d.current=!0;return}m.current!=null&&clearTimeout(m.current),m.current=setTimeout(()=>{c(Array.isArray(y.current)?y.current:[y.current]),m.current=null},x)},[x]),v=Nu({callback:S,disabled:b||!s}),w=g.useCallback((_,L)=>{v&&(L&&(v.unobserve(L),d.current=!1),_&&v.observe(_))},[v]),[R,N]=vl(w),T=Cs(t);return g.useEffect(()=>{!v||!R.current||(v.disconnect(),d.current=!1,v.observe(R.current))},[R,v]),g.useEffect(()=>(o({type:sn.RegisterDroppable,element:{id:r,key:i,disabled:n,node:R,rect:f,data:T}}),()=>o({type:sn.UnregisterDroppable,key:i,id:r})),[r]),g.useEffect(()=>{n!==p.current.disabled&&(o({type:sn.SetDroppableDisabled,id:r,key:i,disabled:n}),p.current.disabled=n)},[r,i,n,o]),{active:s,rect:f,isOver:u?.id===r,node:R,over:u,setNodeRef:N}}function LW(e){let{animation:t,children:n}=e;const[r,a]=g.useState(null),[i,s]=g.useState(null),o=wl(n);return!n&&!r&&o&&a(o),Dr(()=>{if(!i)return;const u=r?.key,c=r?.props.id;if(u==null||c==null){a(null);return}Promise.resolve(t(c,i)).then(()=>{a(null)})},[t,r,i]),tt.createElement(tt.Fragment,null,n,r?g.cloneElement(r,{ref:s}):null)}const FW={x:0,y:0,scaleX:1,scaleY:1};function MW(e){let{children:t}=e;return tt.createElement(no.Provider,{value:Iw},tt.createElement(_u.Provider,{value:FW},t))}const PW={position:"fixed",touchAction:"none"},jW=e=>yb(e)?"transform 250ms ease":void 0,BW=g.forwardRef((e,t)=>{let{as:n,activatorEvent:r,adjustScale:a,children:i,className:s,rect:o,style:u,transform:c,transition:p=jW}=e;if(!o)return null;const d=a?c:{...c,scaleX:1,scaleY:1},f={...PW,width:o.width,height:o.height,top:o.top,left:o.left,transform:ui.Transform.toString(d),transformOrigin:a&&r?IG(r,o):void 0,transition:typeof p=="function"?p(r):p,...u};return tt.createElement(n,{className:s,style:f,ref:t},i)}),UW=e=>t=>{let{active:n,dragOverlay:r}=t;const a={},{styles:i,className:s}=e;if(i!=null&&i.active)for(const[o,u]of Object.entries(i.active))u!==void 0&&(a[o]=n.node.style.getPropertyValue(o),n.node.style.setProperty(o,u));if(i!=null&&i.dragOverlay)for(const[o,u]of Object.entries(i.dragOverlay))u!==void 0&&r.node.style.setProperty(o,u);return s!=null&&s.active&&n.node.classList.add(s.active),s!=null&&s.dragOverlay&&r.node.classList.add(s.dragOverlay),function(){for(const[u,c]of Object.entries(a))n.node.style.setProperty(u,c);s!=null&&s.active&&n.node.classList.remove(s.active)}},$W=e=>{let{transform:{initial:t,final:n}}=e;return[{transform:ui.Transform.toString(t)},{transform:ui.Transform.toString(n)}]},zW={duration:250,easing:"ease",keyframes:$W,sideEffects:UW({styles:{active:{opacity:"0"}}})};function HW(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:a}=e;return wu((i,s)=>{if(t===null)return;const o=n.get(i);if(!o)return;const u=o.node.current;if(!u)return;const c=kw(s);if(!c)return;const{transform:p}=Pn(s).getComputedStyle(s),d=xw(p);if(!d)return;const f=typeof t=="function"?t:GW(t);return Nw(u,a.draggable.measure),f({active:{id:i,data:o.data,node:u,rect:a.draggable.measure(u)},draggableNodes:n,dragOverlay:{node:s,rect:a.dragOverlay.measure(c)},droppableContainers:r,measuringConfiguration:a,transform:d})})}function GW(e){const{duration:t,easing:n,sideEffects:r,keyframes:a}={...zW,...e};return i=>{let{active:s,dragOverlay:o,transform:u,...c}=i;if(!t)return;const p={x:o.rect.left-s.rect.left,y:o.rect.top-s.rect.top},d={scaleX:u.scaleX!==1?s.rect.width*u.scaleX/o.rect.width:1,scaleY:u.scaleY!==1?s.rect.height*u.scaleY/o.rect.height:1},f={x:u.x-p.x,y:u.y-p.y,...d},m=a({...c,active:s,dragOverlay:o,transform:{initial:u,final:f}}),[b]=m,E=m[m.length-1];if(JSON.stringify(b)===JSON.stringify(E))return;const x=r?.({active:s,dragOverlay:o,...c}),y=o.node.animate(m,{duration:t,easing:n,fill:"forwards"});return new Promise(S=>{y.onfinish=()=>{x?.(),S()}})}}let vy=0;function WW(e){return g.useMemo(()=>{if(e!=null)return vy++,vy},[e])}const VW=tt.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:a,transition:i,modifiers:s,wrapperElement:o="div",className:u,zIndex:c=999}=e;const{activatorEvent:p,active:d,activeNodeRect:f,containerNodeRect:m,draggableNodes:b,droppableContainers:E,dragOverlay:x,over:y,measuringConfiguration:S,scrollableAncestors:v,scrollableAncestorRects:w,windowRect:R}=IW(),N=g.useContext(_u),T=WW(d?.id),_=Dw(s,{activatorEvent:p,active:d,activeNodeRect:f,containerNodeRect:m,draggingNodeRect:x.rect,over:y,overlayNodeRect:x.rect,scrollableAncestors:v,scrollableAncestorRects:w,transform:N,windowRect:R}),L=Nb(f),C=HW({config:r,draggableNodes:b,droppableContainers:E,measuringConfiguration:S}),$=L?x.setRef:void 0;return tt.createElement(MW,null,tt.createElement(LW,{animation:C},d&&T?tt.createElement(BW,{key:T,id:d.id,ref:$,as:o,activatorEvent:p,adjustScale:t,className:u,transition:i,rect:L,style:{zIndex:c,...a},transform:_},n):null))}),qW=6e4;function YW(e,t){const n=new Date(e).getTime(),r=t-n,a=Math.floor(r/1e3);if(a<60)return"just now";const i=Math.floor(a/60);if(i<60)return`${i}m ago`;const s=Math.floor(i/60);if(s<24)return`${s}h ago`;const o=Math.floor(s/24);return o<30?`${o}d ago`:`${Math.floor(o/30)}mo ago`}function Ow({task:e,onClick:t}){const{attributes:n,listeners:r,setNodeRef:a,transform:i,isDragging:s}=kW({id:e.wbs,data:{task:e}}),[o,u]=g.useState(Date.now());g.useEffect(()=>{const p=setInterval(()=>u(Date.now()),qW);return()=>clearInterval(p)},[]);const c=i?{transform:ui.Transform.toString(i),zIndex:s?50:void 0}:void 0;return l.jsx(Ks,{variant:"compact",asChild:!0,className:`bg-spur-surface-2 hover:bg-spur-surface-3 rounded-xl border border-spur-border cursor-pointer transition-colors w-full text-left ${s?"opacity-30":""}`,children:l.jsx("button",{ref:a,type:"button",style:c,onClick:()=>t(e.wbs),...r,...n,"aria-roledescription":"draggable card",children:l.jsxs(Xs,{className:"p-3 gap-1",children:[l.jsxs("div",{className:"flex items-center justify-between gap-2",children:[l.jsx("span",{className:"text-xs font-mono text-spur-text-muted",children:e.wbs}),e.priority&&l.jsx(Rt,{variant:"outline",size:"xs",children:e.priority})]}),l.jsx("p",{className:"text-sm font-medium text-spur-text leading-snug",children:e.name}),l.jsxs("div",{className:"flex gap-1 flex-wrap items-center",children:[e.type&&e.type!=="task"&&l.jsx(Rt,{variant:"outline",size:"xs",children:e.type}),e.featureId&&l.jsx(Rt,{variant:"outline",size:"xs",children:e.featureId}),e.updatedAt&&l.jsx("span",{className:"text-xs font-mono text-spur-text-muted ml-auto",title:e.updatedAt,children:YW(e.updatedAt,o)})]})]})})})}function ZW({status:e,label:t,tasks:n,onCardClick:r,sortDir:a,onSortToggle:i}){const{setNodeRef:s,isOver:o}=OW({id:e,data:{status:e}});return l.jsxs("section",{ref:s,"aria-label":`${t} column`,className:`flex flex-col flex-1 min-w-[16rem] rounded-xl border transition-colors duration-200 ${o?"bg-spur-surface-2 border-spur-accent shadow-lg":"bg-spur-surface border-spur-border"}`,children:[l.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-spur-border shrink-0",children:[l.jsxs("span",{className:"text-xs font-semibold text-spur-text uppercase tracking-wide",children:[pb(e)," ",t]}),l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx(Rt,{variant:"ghost",size:"sm",children:n.length}),i&&l.jsx(We,{variant:"ghost",size:"xs",className:"px-1",onClick:i,"aria-label":`Sort ${t} by WBS`,title:`Sort ${t}: ${a==="asc"?"WBS ↓":a==="desc"?"WBS ↑":"none"}`,children:a==="asc"?"↓":a==="desc"?"↑":"⇅"})]})]}),l.jsxs("div",{className:"flex-1 overflow-y-auto p-2 space-y-2 min-h-[4rem]",children:[n.map(u=>l.jsx(Ow,{task:u,onClick:r},u.wbs)),n.length===0&&l.jsx("div",{className:"flex items-center justify-center h-16 text-xs text-spur-text-muted italic",children:"No tasks"})]})]})}const KW=[{key:"feature",field:"featureId",label:"Filter by feature",placeholder:"Feature"},{key:"parent",field:"parentWbs",label:"Filter by parent WBS",placeholder:"Parent WBS"},{key:"assignee",field:"assignee",label:"Filter by assignee",placeholder:"Assignee"}];function XW({filters:e,onChange:t}){const n=r=>{t(r.currentTarget.dataset.key,r.currentTarget.value||null)};return l.jsx("div",{className:"flex flex-wrap items-center gap-2 px-4 py-2 border-b border-spur-border",children:KW.map(r=>l.jsx(Ts,{"aria-label":r.label,"data-key":r.key,type:"text",placeholder:r.placeholder,variant:"bordered",size:"xs",className:"w-28",value:e[r.field]??"",onChange:n},r.key))})}const QW=g.lazy(()=>jv(()=>import("./TaskDetail.D2N60cfE.js"),__vite__mapDeps([2,1]))),wy=ka,Ay="docs/tasks",Ny="spur:detail-width";function JW(e,t){return t?e.filter(n=>!(t.status&&n.status!==t.status||t.featureId&&n.featureId!==t.featureId||t.parentWbs&&n.parentWbs!==t.parentWbs)):e}function eV({onSelectTask:e,filters:t,onFilterChange:n}){const[r,a]=g.useState({}),[i,s]=g.useState(new Set(["blocked","cancelled"])),[o,u]=g.useState(Ay),[c,p]=g.useState([{path:Ay,label:"Primary"}]),[d,f]=g.useState(null),[m,b]=g.useState(()=>{const Q=typeof window<"u"?Math.min(1728,window.innerWidth*.8):1728;if(typeof window>"u")return Q;try{const de=Number.parseFloat(window.localStorage.getItem(Ny)??"");if(Number.isFinite(de)&&de>0)return Math.min(de,window.innerWidth*.8)}catch{}return Q}),E=g.useCallback(()=>yn.task.list({folder:o}),[o]),{tasks:x,loading:y,error:S,connected:v,setTasks:w}=Gv(E),[R,N]=g.useState(!1),[T,_]=g.useState(null);g.useEffect(()=>{typeof yn.task.folders=="function"&&yn.task.folders({}).then(Q=>{const{data:de,activeFolder:O}=Q,Ce=O??de?.[0]?.path;de&&Ce!==void 0&&(p(de),u(Ce))}).catch(()=>{})},[]),g.useEffect(()=>{document.documentElement.style.setProperty("--detail-w",`${m}px`)},[m]),g.useEffect(()=>{if(!d)return;const Q=de=>{de.key==="Escape"&&f(null)};return window.addEventListener("keydown",Q),()=>window.removeEventListener("keydown",Q)},[d]);const L=ar();g.useEffect(()=>{const Q=L.pathname.split("/"),de=Q.indexOf("tasks"),O=de>=0?Q[de+1]:void 0;O&&/^\d{4}$/.test(O)&&f(O)},[L.pathname]);const C=py(Ab,{activationConstraint:{distance:5}}),$=py(vb),I=kG(C,$),P=async()=>{try{const Q=await E();w(Q.data??[])}catch{}},W=JW(x,t),U=Q=>{a(de=>{const O={...de};return de[Q]==="asc"?O[Q]="desc":de[Q]==="desc"?delete O[Q]:O[Q]="asc",O})},ne=Q=>{s(de=>{const O=new Set(de);return O.has(Q)?O.delete(Q):O.add(Q),O})},z=Q=>{const de=W.filter(Ce=>Ce.status===Q),O=r[Q]??"desc";return[...de].sort((Ce,De)=>{const J=Ce.wbs.localeCompare(De.wbs);return O==="asc"?J:-J})},se=Q=>x.find(de=>de.wbs===Q),pe=Q=>{_(String(Q.active.id))},D=Q=>{_(null);const{active:de,over:O}=Q;if(!O)return;const Ce=String(de.id),De=String(O.id),J=se(Ce);if(!J||J.status===De)return;const _e=[...x];w(fe=>fe.map(X=>X.wbs===Ce?{...X,status:De}:X)),yn.task.transition({wbs:Ce,toStatus:De}).catch(fe=>{w(_e);const X=fe instanceof Error?fe.message:"Transition failed";typeof window<"u"&&window.dispatchEvent(new CustomEvent("api-error",{detail:{message:X}}))})};return y?l.jsx("div",{className:"flex items-center justify-center h-full",children:l.jsx(_a,{size:"lg",className:"text-spur-accent"})}):S?l.jsx("div",{className:"flex items-center justify-center h-full",children:l.jsxs("div",{className:"text-center text-spur-text-muted",children:[l.jsx("p",{className:"text-lg font-semibold",children:"Failed to load tasks"}),l.jsx("p",{className:"text-sm",children:S.message})]})}):l.jsxs(NW,{sensors:I,onDragStart:pe,onDragEnd:D,children:[l.jsxs("div",{className:"flex flex-col h-full",children:[l.jsxs("div",{className:"flex items-center gap-2 px-4 pt-3 pb-1 shrink-0",children:[n&&l.jsx(XW,{filters:t??{},onChange:n}),l.jsxs("div",{className:"flex items-center gap-1.5",title:v?"Live updates active":"Polling (stream disconnected)",children:[l.jsx("span",{className:`inline-block w-2 h-2 rounded-full ${v?"bg-spur-success":"bg-spur-error"}`}),l.jsx("span",{className:"text-xs text-spur-text-muted",children:v?"Live":"Polling"})]}),l.jsx("span",{className:"text-xs text-spur-text-muted",children:"|"}),l.jsx(Kr,{variant:"ghost",size:"xs",className:"text-xs",value:o,onChange:Q=>u(Q.target.value),"aria-label":"Task folder",children:c.map(Q=>l.jsx("option",{value:Q.path,children:Q.label?`${Q.label} (${Q.path})`:Q.path},Q.path))}),l.jsx("span",{className:"text-xs text-spur-text-muted",children:"|"}),l.jsx("div",{className:"flex-1"}),wy.map(Q=>l.jsxs("label",{htmlFor:`kanban-col-toggle-${Q}`,className:"flex items-center gap-1 cursor-pointer",children:[l.jsx(eb,{id:`kanban-col-toggle-${Q}`,size:"xs",checked:!i.has(Q),onChange:()=>ne(Q)}),l.jsxs("span",{className:"text-[10px] text-spur-text-muted",children:[pb(Q)," ",Q]})]},Q)),l.jsx("span",{className:"text-xs text-spur-text-muted",children:"|"}),l.jsx(We,{variant:"primary",size:"sm",onClick:()=>N(!0),children:"+ New Task"})]}),l.jsx("div",{className:"flex gap-3 overflow-x-auto h-full p-4",children:wy.filter(Q=>!i.has(Q)).map(Q=>l.jsx(ZW,{status:Q,label:Q,tasks:z(Q),onCardClick:de=>{f(de),e(de)},sortDir:r[Q],onSortToggle:()=>U(Q)},Q))}),l.jsx(zv,{open:R,onClose:()=>N(!1),onCreated:P,folder:o}),d&&l.jsxs(l.Fragment,{children:[l.jsx("button",{type:"button","aria-label":"Close task detail",className:"fixed inset-0 z-50 bg-black/40 border-0 p-0 cursor-default",onClick:()=>f(null)}),l.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"Task detail",className:"fixed top-0 right-0 h-full z-50 bg-spur-surface border-l border-spur-border shadow-2xl flex",style:{width:"var(--detail-w)",minWidth:"36rem",maxWidth:"80vw"},children:[l.jsx(gl,{targetVar:"--detail-w",onResizeEnd:Q=>{const de=Math.max(576,Math.min(Q,window.innerWidth*.8));b(de);try{window.localStorage.setItem(Ny,String(de))}catch{}},direction:"horizontal",invert:!0}),l.jsx("div",{className:"flex flex-col flex-1 overflow-hidden",children:l.jsx("div",{className:"flex-1 overflow-y-auto","data-testid":"detail-body",children:(()=>{const Q=x.find(de=>de.wbs===d);return Q?l.jsx(g.Suspense,{fallback:l.jsx("div",{className:"flex items-center justify-center h-32 text-spur-text-muted text-sm",children:"Loading detail..."}),children:l.jsx(QW,{task:Q,onClose:()=>f(null),onTransition:(de,O)=>{w(Ce=>Ce.map(De=>De.wbs===de?{...De,status:O}:De)),yn.task.transition({wbs:de,toStatus:O}).catch(Ce=>{const De=Ce instanceof Error?Ce.message:"Transition failed";typeof window<"u"&&window.dispatchEvent(new CustomEvent("api-error",{detail:{message:De}}))})}})}):null})()})})]})]})]}),l.jsx(VW,{dropAnimation:null,children:T?(()=>{const Q=se(T);return Q?l.jsx("div",{className:"opacity-90",children:l.jsx(Ow,{task:Q,onClick:()=>{}})}):null})():null})]})}function tV(){const[e,t]=E_(),n=ar(),r=Ll(),a=g.useMemo(()=>{const u=n.pathname.split("/"),c=u.indexOf("tasks"),p=c>=0?u[c+1]:void 0;return p&&/^\d{4}$/.test(p)?p:e.get("selected")},[n.pathname,e]),i=g.useMemo(()=>{const u={},c=e.get("status"),p=e.get("feature"),d=e.get("parent"),f=e.get("assignee");return c&&(u.status=c),p&&(u.featureId=p),d&&(u.parentWbs=d),f&&(u.assignee=f),u},[e]);return{selected:a,filters:i,selectTask:u=>{const c=new URLSearchParams(e);c.delete("selected");const p=c.toString(),d=u?`/board/tasks/${u}`:"/board/tasks";r(`${d}${p?`?${p}`:""}`,{replace:!0})},setFilter:(u,c)=>{t(p=>{const d=new URLSearchParams(p);return c?d.set(u,c):d.delete(u),d},{replace:!0})}}}function nV(e,t){yn.task.transition({wbs:e,toStatus:t}).catch(n=>{const r=n instanceof Error?n.message:"Transition failed";typeof window<"u"&&window.dispatchEvent(new CustomEvent("api-error",{detail:{message:r}}))})}function _b(){const{filters:e,selectTask:t,setFilter:n}=tV();return l.jsx("div",{className:"task-kanban flex flex-col h-full",children:l.jsx("div",{"data-kanban-board":!0,className:"flex-1 overflow-hidden",children:l.jsx(eV,{onSelectTask:t,filters:e,onFilterChange:n})})})}const rV={id:"tasks",name:"Tasks",icon:"📋",route:"tasks",component:_b},aV=Object.freeze(Object.defineProperty({__proto__:null,TaskKanbanView:_b,module:rV,transition:nV},Symbol.toStringTag,{value:"Module"}));function Lw(e){const t=new Map;for(const n of e)for(const r of n.members)t.set(r.id,{teamId:n.teamId,memberLabel:r.id,agentType:r.type});return t}function Fw(e,t){if(e.teamId&&e.memberLabel&&e.agentType)return e;const n=e.memberLabel??e.actor;if(!n)return e;const r=t.get(n);return r?{...e,teamId:e.teamId??r.teamId,memberLabel:e.memberLabel??r.memberLabel,agentType:e.agentType??r.agentType}:e}const Id=100;function Mw(e,t){const n=[t,...e??[]];return n.length>Id&&(n.length=Id),n}const Pw=()=>`${At()}/events/history?limit=${Id}`,jw=()=>`${At()}/events/planning`,iV=["agent.","message.","team.","supervisor.","process."];function sV(e){return iV.some(t=>e.startsWith(t))}function Cb(e){if(e===null||typeof e!="object")return null;const t=e;if(typeof t.eventName!="string"||typeof t.occurredAt!="string"||!sV(t.eventName))return null;const n=t.payload!==null&&typeof t.payload=="object"?t.payload:null,r=n&&typeof n.teamId=="string"&&n.teamId.length>0?n.teamId:void 0,a=n&&typeof n.agentType=="string"&&n.agentType.length>0?n.agentType:void 0,i=n&&typeof n.memberLabel=="string"&&n.memberLabel.length>0?n.memberLabel:n&&typeof n.agentId=="string"&&n.agentId.length>0?n.agentId:void 0,s=typeof t.actor=="string"&&t.actor.length>0?t.actor:n&&typeof n.agentId=="string"&&n.agentId.length>0?n.agentId:null;return{id:typeof t.id=="string"?t.id:`${t.eventName}-${t.occurredAt}`,eventName:t.eventName,occurredAt:t.occurredAt,actor:s,...r?{teamId:r}:{},...i?{memberLabel:i}:{},...a?{agentType:a}:{}}}function Bw(e){if(e===null||typeof e!="object"||!("events"in e))return null;const t=e.events;if(!Array.isArray(t))return null;const n=[];for(const r of t){const a=Cb(r);a&&n.push(a)}return n}function oV({teamId:e}){const[t,n]=g.useState(null),[r,a]=g.useState(null),{teams:i}=wi(),s=g.useMemo(()=>Lw(i),[i]),o=g.useCallback(async()=>{try{const c=await vt(new Request(Pw()));if(!c.ok)throw new Error(`events fetch failed: ${c.status}`);const p=Bw(await c.json());if(!p)throw new Error("events response failed schema validation");n(p)}catch(c){a(c instanceof Error?c.message:String(c))}},[]);g.useEffect(()=>{o()},[o]),g.useEffect(()=>{if(typeof EventSource>"u")return;const c=new EventSource(jw());return c.onmessage=p=>{try{const d=Cb(JSON.parse(p.data));d&&n(f=>Mw(f,d))}catch{}},()=>c.close()},[]);const u=g.useMemo(()=>t===null?null:t.map(c=>Fw(c,s)).filter(c=>!e||c.teamId===e),[t,s,e]);return r?l.jsxs("div",{className:"p-4 text-sm text-error",role:"alert",children:["Failed to load activity: ",r]}):u===null?l.jsx("div",{className:"p-4 text-sm text-spur-text-muted",children:"Loading activity…"}):l.jsx("div",{className:"flex flex-col h-full overflow-y-auto","data-activity-tab":!0,children:u.length===0?l.jsx("div",{className:"p-4 text-sm text-spur-text-muted italic",children:"No team activity yet."}):l.jsxs("table",{className:"w-full text-xs",children:[l.jsx("thead",{className:"sticky top-0 bg-base-200",children:l.jsxs("tr",{className:"text-left text-spur-text-muted",children:[l.jsx("th",{className:"px-3 py-1 font-medium",children:"Time"}),l.jsx("th",{className:"px-3 py-1 font-medium",children:"Event"}),l.jsx("th",{className:"px-3 py-1 font-medium",children:"Team"}),l.jsx("th",{className:"px-3 py-1 font-medium",children:"Member"}),l.jsx("th",{className:"px-3 py-1 font-medium",children:"Agent"}),l.jsx("th",{className:"px-3 py-1 font-medium",children:"Actor"})]})}),l.jsx("tbody",{children:u.map(c=>l.jsxs("tr",{className:"border-t border-spur-border","data-activity-row":c.eventName,children:[l.jsx("td",{className:"px-3 py-1 font-mono text-spur-text-muted",children:c.occurredAt}),l.jsx("td",{className:"px-3 py-1 text-spur-text",children:c.eventName}),l.jsx("td",{className:"px-3 py-1 font-mono text-spur-text-muted",children:c.teamId??"—"}),l.jsx("td",{className:"px-3 py-1 text-spur-text-muted",children:c.memberLabel??"—"}),l.jsx("td",{className:"px-3 py-1 text-spur-text-muted",children:c.agentType??"—"}),l.jsx("td",{className:"px-3 py-1 text-spur-text-muted",children:c.actor??"system"})]},c.id))})]})})}const lV=3e3,uV=()=>`${At()}/team/processes`;function cV(e,t){const n=e.map(i=>({key:`sup:${i.agentId}`,label:i.agentId,agentId:i.agentId,pid:i.pid,status:i.status,startedAt:i.startedAt,source:"supervisor",teamId:i.teamId??null})),r=new Set(e.map(i=>i.agentId)),a=new Set(e.map(i=>i.pid).filter(i=>i!=null));for(const i of t)i.agentId&&r.has(i.agentId)||i.pid!=null&&a.has(i.pid)||n.push({key:`reg:${i.id}`,label:i.label||i.command,agentId:i.agentId??void 0,pid:i.pid,status:i.status,startedAt:i.startedAt,source:i.source,teamId:i.teamId??null});return n}function dV(e,t){return e.filter(n=>{if(t.runningOnly&&n.status!=="running")return!1;if(t.source==="other"){if(n.source==="supervisor"||n.source==="one-shot")return!1}else if(t.source!=="all"&&n.source!==t.source)return!1;if(t.team==="unassigned"){if(n.teamId!=null)return!1}else if(t.team!=="all"&&n.teamId!==t.team)return!1;return!0})}function _y({filters:e,onFilters:t,teamIds:n,totalCount:r,shownCount:a}){return l.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-2 text-xs","data-processes-filters":!0,children:[l.jsxs("label",{className:"flex items-center gap-1","data-processes-filter-running":!0,children:[l.jsx("input",{type:"checkbox",checked:e.runningOnly,onChange:i=>t({...e,runningOnly:i.target.checked}),"data-processes-filter-running-input":!0}),l.jsx("span",{children:"Running only"})]}),l.jsxs("label",{className:"flex items-center gap-1",children:[l.jsx("span",{children:"Source"}),l.jsxs("select",{value:e.source,onChange:i=>t({...e,source:i.target.value}),className:"border border-spur-border rounded px-1 py-0.5 bg-spur-bg text-spur-text","data-processes-filter-source":!0,"aria-label":"Source filter",children:[l.jsx("option",{value:"all",children:"all"}),l.jsx("option",{value:"supervisor",children:"supervisor"}),l.jsx("option",{value:"one-shot",children:"one-shot"}),l.jsx("option",{value:"other",children:"other"})]})]}),l.jsxs("label",{className:"flex items-center gap-1",children:[l.jsx("span",{children:"Team"}),l.jsxs("select",{value:e.team,onChange:i=>t({...e,team:i.target.value}),className:"border border-spur-border rounded px-1 py-0.5 bg-spur-bg text-spur-text","data-processes-filter-team":!0,"aria-label":"Team filter",children:[l.jsx("option",{value:"all",children:"all teams"}),l.jsx("option",{value:"unassigned",children:"unassigned"}),n.map(i=>l.jsx("option",{value:i,children:i},i))]})]}),l.jsx("button",{type:"button",className:"border border-spur-border rounded px-2 py-0.5 text-spur-text hover:bg-base-200 transition-colors cursor-pointer",onClick:()=>t({runningOnly:!1,source:"all",team:"all"}),"data-processes-filter-clear":!0,children:"Clear"}),l.jsxs("span",{className:"text-spur-text-muted","data-processes-filter-count":!0,children:[a,"/",r," shown"]})]})}function pV({teamId:e}){const[t,n]=g.useState(null),[r,a]=g.useState(null),[i,s]=g.useState({runningOnly:!1,source:"all",team:"all"}),o=g.useRef(!0),u=g.useCallback(async b=>{try{const E=await vt(new Request(uV(),{signal:b}));if(!E.ok)throw new Error(`processes fetch failed: ${E.status}`);const y=await E.json();o.current&&(n({processes:y.processes??[],count:y.count??0,executions:y.executions??[],executionsCount:y.executionsCount??0}),a(null))}catch(E){if(b.aborted)return;o.current&&a(E instanceof Error?E.message:String(E))}},[]);g.useEffect(()=>{o.current=!0;let b=null;const E=()=>{b?.abort(),b=new AbortController,u(b.signal)};E();const x=setInterval(E,lV);return()=>{o.current=!1,b?.abort(),clearInterval(x)}},[u]);const c=g.useMemo(()=>t?cV(t.processes,t.executions):[],[t]),p=g.useMemo(()=>{const b=e?c.filter(E=>E.teamId===e):c;return dV(b,i)},[c,i,e]),d=g.useMemo(()=>{const b=new Set;for(const E of t?.processes??[])E.teamId&&b.add(E.teamId);for(const E of t?.executions??[])E.teamId&&b.add(E.teamId);return[...b].sort()},[t]);if(r&&(!t||c.length===0))return l.jsxs("div",{className:"p-4 text-sm text-error",role:"alert","data-processes-tab-error":!0,children:["Failed to load processes: ",r]});if(!t)return l.jsx("div",{className:"p-4","data-processes-tab-loading":!0,children:l.jsx(_a,{size:"sm"})});if(c.length===0)return l.jsxs("div",{className:"p-4 text-sm text-spur-text-muted","data-processes-tab-empty":!0,children:["No processes. Start a team agent from the Terminal tab or via"," ",l.jsx("code",{className:"font-mono",children:"spur team start"}),"."]});if(p.length===0)return l.jsxs("div",{className:"p-3 overflow-auto h-full","data-processes-tab":!0,"data-processes-tab-filtered-empty":!0,children:[l.jsx(_y,{filters:i,onFilters:s,teamIds:d,totalCount:c.length,shownCount:0}),l.jsx("div",{className:"p-4 text-sm text-spur-text-muted","data-processes-tab-no-matches":!0,children:"No processes match the current filters. Adjust or clear filters to see rows."})]});const f=t.processes.length,m=Math.max(0,c.length-f);return l.jsxs("div",{className:"p-3 overflow-auto h-full","data-processes-tab":!0,children:[l.jsx(_y,{filters:i,onFilters:s,teamIds:d,totalCount:c.length,shownCount:p.length}),l.jsxs("div",{className:"flex items-center gap-2 mb-2 text-xs text-spur-text-muted",children:[l.jsxs("span",{"data-processes-header":!0,children:["Process watch list (",c.length,f>0||m>0?` · ${f} supervised${m>0?` · ${m} other`:""}`:"",")"]}),l.jsx("span",{className:"italic",children:"— ProcessExecutor registry (ts-runtime)"})]}),l.jsxs("table",{className:"table table-xs",children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{children:"Name"}),l.jsx("th",{children:"Source"}),l.jsx("th",{children:"Team"}),l.jsx("th",{children:"PID"}),l.jsx("th",{children:"Status"}),l.jsx("th",{children:"Started"})]})}),l.jsx("tbody",{children:p.map(b=>{const E=b.status==="running";return l.jsxs("tr",{"data-processes-row":b.key,children:[l.jsx("td",{className:"font-mono text-xs",children:b.label}),l.jsx("td",{className:"text-xs text-spur-text-muted","data-process-source":b.source,children:b.source}),l.jsx("td",{className:"font-mono text-xs text-spur-text-muted","data-process-team":b.teamId??"",children:b.teamId??"—"}),l.jsx("td",{className:"font-mono text-xs text-spur-text-muted",children:b.pid??"—"}),l.jsx("td",{children:l.jsx(Rt,{variant:E?"success":"ghost",size:"xs",children:b.status})}),l.jsx("td",{className:"text-xs text-spur-text-muted",children:new Date(b.startedAt).toLocaleTimeString()})]},b.key)})})]})]})}const fV=e=>`${At()}/team/agents/${encodeURIComponent(e)}/start`,mV=e=>`${At()}/team/agents/${encodeURIComponent(e)}/stop`,hV=e=>`${At()}/team/${encodeURIComponent(e)}/up`,gV=e=>`${At()}/team/${encodeURIComponent(e)}/down`;function bV(e){if(e<0)return"-";const t=Math.floor(e/1e3),n=Math.floor(t/86400),r=Math.floor(t%86400/3600),a=Math.floor(t%3600/60),i=t%60;return n>0?`${n}d ${r}h ${a}m`:r>0?`${r}h ${a}m`:a>0?`${a}m ${i}s`:`${i}s`}function Cy(e){try{return new Date(e).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit"})}catch{return e}}function EV(e){const t=new Map;for(const n of e){if(!n.teamId||!n.memberLabel)continue;const r=`${n.teamId}:${n.memberLabel}`;let a=t.get(r);a||(a={startedAt:null,lastActivity:null},t.set(r,a)),n.eventName==="team.member.started"&&(!a.startedAt||n.occurredAt>a.startedAt)&&(a.startedAt=n.occurredAt),(!a.lastActivity||n.occurredAt>a.lastActivity.time)&&(a.lastActivity={time:n.occurredAt,eventName:n.eventName})}return t}function xV({teamId:e}){const{teams:t,error:n,reload:r}=wi(),[a,i]=g.useState(null),[s,o]=g.useState(null),[u,c]=g.useState(!1),[p,d]=g.useState(null),[f,m]=g.useState(null),[b,E]=g.useState(null),[x,y]=g.useState(()=>Date.now()),S=g.useMemo(()=>e?t.filter(_=>_.teamId===e):t,[t,e]),v=g.useMemo(()=>Lw(S),[S]);g.useEffect(()=>{let _=!1;return(async()=>{try{const L=await vt(new Request(Pw()));if(_)return;if(!L.ok)throw new Error(`events fetch failed: ${L.status}`);const C=Bw(await L.json());if(_)return;if(!C)throw new Error("events response failed schema validation");i(C)}catch(L){if(_)return;o(L instanceof Error?L.message:String(L))}})(),()=>{_=!0}},[]),g.useEffect(()=>{if(typeof EventSource>"u")return;const _=new EventSource(jw());return _.onmessage=L=>{try{const C=Cb(JSON.parse(L.data));C&&i($=>Mw($,C))}catch{}},()=>_.close()},[]),g.useEffect(()=>{const _=setInterval(()=>y(Date.now()),1e3);return()=>clearInterval(_)},[]);const w=g.useMemo(()=>a===null?null:a.map(_=>Fw(_,v)).filter(_=>!e||_.teamId===e),[a,v,e]),R=g.useMemo(()=>w===null?new Map:EV(w),[w]),N=g.useCallback(async(_,L)=>{c(!0),d(null);try{const C=L?mV(_):fV(_),$=await vt(new Request(C,{method:"POST"}));if(!$.ok){const I=await $.json().catch(()=>null),P=I&&typeof I=="object"&&"error"in I&&typeof I.error=="string"?I.error:`request failed (${$.status})`;d(P)}}catch(C){d(C instanceof Error?C.message:String(C))}finally{c(!1),r()}},[r]),T=g.useCallback(async(_,L)=>{c(!0),d(null);try{const C=L==="up"?hV(_):gV(_),$=await vt(new Request(C,{method:"POST"}));if(!$.ok){const I=await $.json().catch(()=>null),P=I&&typeof I=="object"&&"error"in I&&typeof I.error=="string"?I.error:`request failed (${$.status})`;d(P)}}catch(C){d(C instanceof Error?C.message:String(C))}finally{c(!1),r()}},[r]);return l.jsxs("div",{className:"flex flex-col h-full overflow-y-auto","data-supervisor-tab":!0,children:[n&&S.length===0?l.jsxs("div",{className:"p-4 text-sm text-error",role:"alert","data-supervisor-tab-error":!0,children:["Failed to load teams: ",n,". Event-derived activity remains available below."]}):n&&l.jsxs("div",{className:"px-3 py-1 text-xs text-error bg-error/10 border-b border-error/30",role:"alert","data-supervisor-roster-error":!0,children:["Roster feed error: ",n,". Showing last-known state."]}),S.length===0&&!n&&l.jsx("div",{className:"p-4 text-sm text-spur-text-muted","data-supervisor-tab-loading":!0,children:"Loading teams…"}),p&&l.jsx("div",{className:"px-3 py-1 text-xs text-error",role:"alert","data-supervisor-action-error":!0,children:p}),s&&l.jsxs("div",{className:"px-3 py-1 text-xs text-warning",role:"alert","data-supervisor-event-error":!0,children:["Activity feed error: ",s,". Live updates may be delayed."]}),l.jsx("div",{className:"p-2 space-y-2",children:S.map(_=>l.jsx(Ks,{variant:"compact",className:"bg-base-200 border border-spur-border",children:l.jsxs(Xs,{className:"p-3 gap-2",children:[l.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[l.jsx("span",{className:"text-sm font-semibold text-spur-text",children:_.name}),l.jsx(Rt,{variant:"outline",size:"xs",children:_.teamId}),l.jsxs("span",{className:"text-[10px] text-spur-text-muted",children:[_.members.length," member(s)"]}),l.jsxs("div",{className:"ml-auto flex items-center gap-1",children:[l.jsx(We,{type:"button",variant:"ghost",size:"xs",disabled:u,onClick:()=>{T(_.teamId,"up")},"data-supervisor-team-up":_.teamId,children:"Up"}),l.jsx(We,{type:"button",variant:"ghost",size:"xs",disabled:u,onClick:()=>E(_.teamId),"data-supervisor-team-down":_.teamId,children:"Down"})]})]}),_.members.length===0?l.jsx("div",{className:"text-xs text-spur-text-muted italic py-2","data-supervisor-empty-roster":_.teamId,children:"No members configured for this team."}):l.jsx("ul",{className:"space-y-1",children:_.members.map(L=>{const C=L.status==="running",$=`${_.teamId}:${L.id}`,I=R.get($),P=C&&I?.startedAt?bV(x-Date.parse(I.startedAt)):"-",W=I?.lastActivity??null;return l.jsxs("li",{className:"text-xs flex items-center gap-2 flex-wrap py-1 border-b border-spur-border/50 last:border-b-0","data-supervisor-member-row":L.id,children:[l.jsx(Rt,{variant:C?"success":"ghost",size:"xs",children:L.status}),l.jsx("span",{className:"font-mono text-spur-text",children:L.id}),l.jsx(Rt,{variant:"outline",size:"xs",children:L.type}),l.jsx(Rt,{variant:L.role!==void 0?"accent":"ghost",size:"xs","data-supervisor-member-role":L.id,children:L.role??"unset"}),l.jsxs("span",{className:"text-[10px] text-spur-text-muted font-mono","data-supervisor-uptime":L.id,children:["up ",P]}),W?l.jsxs("span",{className:"text-[10px] text-spur-text-muted","data-supervisor-last-activity":L.id,children:["last: ",Cy(W.time)," (",W.eventName,")"]}):l.jsx("span",{className:"text-[10px] text-spur-text-muted","data-supervisor-last-activity":L.id,children:"last: -"}),l.jsx(We,{type:"button",variant:C?"ghost":"primary",size:"xs",disabled:u,className:"ml-auto",onClick:()=>{C?m(L.id):N(L.id,!1)},"data-supervisor-toggle":L.id,children:C?"Stop":"Start"})]},L.id)})})]})},_.teamId))}),w!==null&&l.jsxs("section",{className:"border-t border-spur-border bg-base-300/40","aria-label":"Recent team activity","data-supervisor-activity":!0,children:[l.jsx("div",{className:"px-3 py-2 text-[10px] uppercase tracking-wide font-semibold text-spur-text-muted",children:"Recent team activity"}),w.length===0?l.jsx("div",{className:"px-3 pb-3 text-xs text-spur-text-muted italic",children:"No team activity yet."}):l.jsx("ul",{className:"px-3 pb-3 space-y-1",children:w.slice(0,20).map(_=>l.jsxs("li",{className:"flex items-center gap-2 flex-wrap text-[10px] text-spur-text-muted","data-supervisor-activity-row":_.eventName,children:[l.jsx("span",{className:"font-mono",children:Cy(_.occurredAt)}),l.jsx(Rt,{variant:"outline",size:"xs",children:_.eventName}),_.teamId&&l.jsx("span",{children:_.teamId}),_.memberLabel&&l.jsx("span",{className:"font-mono",children:_.memberLabel}),_.actor&&l.jsx("span",{children:_.actor})]},_.id))})]}),l.jsxs(ll,{open:f!==null,variant:"warning",onClose:()=>m(null),"data-stop-confirm-modal":!0,children:[l.jsx("h3",{className:"text-lg font-bold text-warning",children:"Stop member?"}),l.jsxs("p",{className:"py-3 text-sm text-spur-text",children:["Stopping ",l.jsx("span",{className:"font-mono",children:f})," will terminate its running process. Input to this member will be disabled until it is restarted."]}),l.jsxs("div",{className:"flex justify-end gap-2",children:[l.jsx(We,{type:"button",variant:"ghost",size:"sm",onClick:()=>m(null),"data-stop-confirm-cancel":!0,children:"Cancel"}),l.jsx(We,{type:"button",variant:"warning",size:"sm",disabled:u,onClick:()=>{if(!f)return;const _=f;m(null),N(_,!0)},"data-stop-confirm-confirm":!0,children:"Stop"})]})]}),l.jsxs(ll,{open:b!==null,variant:"warning",onClose:()=>E(null),"data-down-confirm-modal":!0,children:[l.jsx("h3",{className:"text-lg font-bold text-warning",children:"Bring team down?"}),l.jsxs("p",{className:"py-3 text-sm text-spur-text",children:["This will stop all running members of ",l.jsx("span",{className:"font-mono",children:b}),"."]}),l.jsxs("div",{className:"flex justify-end gap-2",children:[l.jsx(We,{type:"button",variant:"ghost",size:"sm",onClick:()=>E(null),"data-down-confirm-cancel":!0,children:"Cancel"}),l.jsx(We,{type:"button",variant:"warning",size:"sm",disabled:u,onClick:()=>{if(!b)return;const _=b;E(null),T(_,"down")},"data-down-confirm-confirm":!0,children:"Bring Down"})]})]})]})}const Ro=1e3,Oc=[1e3,2e3,4e3,8e3,15e3],yV=15e3;function TV(e){if(e===null||typeof e!="object")return null;const t=e;if(typeof t.stream!="string"||typeof t.ts!="string"||typeof t.line!="string")return null;const n=t.stream;if(n!=="stdout"&&n!=="stderr"&&n!=="meta")return null;const r=t.seq;return r!==void 0&&typeof r!="number"?null:{stream:n,ts:t.ts,line:t.line,...r!==void 0?{seq:r}:{}}}function SV(e){return e<0?Oc[0]:e>=Oc.length?yV:Oc[e]}function ky(e,t,n){if(t.seq===void 0){const a=[...e,t];return a.length>Ro&&a.splice(0,a.length-Ro),{frames:a,lastSeq:n}}if(t.seq<=n)return{frames:e,lastSeq:n};const r=[...e,t];return r.length>Ro&&r.splice(0,r.length-Ro),{frames:r,lastSeq:t.seq}}const vV=(e,t)=>t!==void 0?`${At()}/team/processes/${encodeURIComponent(e)}/stream?sinceSeq=${t}`:`${At()}/team/processes/${encodeURIComponent(e)}/stream`,wV=3e3;function AV(e){if(e===null||typeof e!="object")return null;const t=e;if(!Array.isArray(t.processes))return null;const n=[];for(const r of t.processes){if(r===null||typeof r!="object")return null;const a=r;if(typeof a.agentId!="string"||typeof a.status!="string"||typeof a.startedAt!="string"||typeof a.pid!="number")return null;const i=a.exitCode;if(i!==null&&typeof i!="number")return null;n.push({agentId:a.agentId,pid:a.pid,status:a.status,startedAt:a.startedAt,exitCode:i})}return n}const NV=e=>`${At()}/team/processes/${encodeURIComponent(e)}/stdin`,_V=()=>`${At()}/messages`,CV=()=>`${At()}/team/processes`;function kV({agentId:e}){const[t,n]=g.useState([]),[r,a]=g.useState("unknown"),[i,s]=g.useState(""),[o,u]=g.useState(null),[c,p]=g.useState(!1),d=g.useRef(-1),f=g.useRef(null),m=g.useRef(void 0),b=g.useRef(0),E=g.useRef(!0),x=g.useRef(null),y=g.useCallback(async N=>{try{const T=await vt(new Request(CV(),{signal:N}));if(!T.ok)return;const _=await T.json(),L=AV(_);if(!L)return;const C=L.find($=>$.agentId===e);C&&E.current&&a(C.status)}catch{}},[e]);g.useEffect(()=>{E.current=!0;let N=null;const T=()=>{N?.abort(),N=new AbortController,y(N.signal)};T();const _=setInterval(T,wV);return()=>{E.current=!1,N?.abort(),clearInterval(_)}},[y]);const S=g.useCallback(()=>{if(!E.current)return;const N=new EventSource(vV(e,d.current>-1?d.current:void 0));f.current=N,N.onmessage=T=>{try{const _=JSON.parse(T.data),L=TV(_);if(!L)return;n(C=>{const $=ky(C,L,d.current);return d.current=$.lastSeq,$.frames}),b.current=0,p(!0)}catch{}},N.onerror=()=>{if(N.close(),f.current=null,p(!1),!E.current)return;const T=SV(b.current);b.current+=1,m.current=setTimeout(S,T)}},[e]);g.useEffect(()=>(S(),()=>{E.current=!1,f.current?.close(),f.current=null,m.current&&clearTimeout(m.current)}),[S]),g.useEffect(()=>{x.current&&t.length>0&&(x.current.scrollTop=x.current.scrollHeight)},[t]);const v=g.useCallback(async()=>{const N=i;if(N.length===0)return;u(null);const T={stream:"meta",ts:new Date().toISOString(),line:`> ${N}`};n(_=>ky(_,T,d.current).frames);try{const _=await vt(new Request(NV(e),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({line:N})}));if(vt(new Request(_V(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({from:"terminal",to:e,body:N})})).catch(()=>{}),!_.ok){const C=(await _.json().catch(()=>null))?.error??`stdin POST failed: ${_.status}`;u(C);return}s("")}catch(_){u(_ instanceof Error?_.message:String(_))}},[e,i]),w=r==="running",R=N=>{N.key==="Enter"&&w&&(N.preventDefault(),v())};return l.jsxs("div",{className:"flex flex-col h-full overflow-hidden","data-member-terminal":e,children:[l.jsxs("div",{className:"px-4 py-2 border-b border-spur-border bg-base-200 shrink-0 flex items-center gap-2",children:[l.jsx("span",{className:"text-xs font-semibold text-spur-text uppercase tracking-wide",children:"Terminal"}),l.jsx("span",{className:"font-mono text-xs text-spur-text-muted",children:e}),l.jsx(Rt,{variant:w?"success":"ghost",size:"xs","data-terminal-status":!0,children:r}),l.jsx("span",{className:"text-[10px] text-spur-text-muted","data-terminal-connected":!0,children:c?"connected":"reconnecting…"})]}),!w&&l.jsxs("div",{className:"px-4 py-1 text-xs text-warning border-b border-spur-border",role:"status","data-status-banner":!0,children:["Member is ",r," — input disabled."]}),l.jsx("pre",{ref:x,className:"flex-1 overflow-y-auto p-2 text-xs font-mono leading-snug bg-base-100","data-terminal-output":!0,children:t.length===0?l.jsxs("span",{className:"text-spur-text-muted italic",children:["Waiting for output from ",e,"…"]}):t.map((N,T)=>l.jsx("div",{className:N.stream==="stderr"?"text-error":N.stream==="meta"?"text-spur-text-muted italic":"text-spur-text","data-stream":N.stream,children:N.line},N.seq??`meta-${T}`))}),o&&l.jsx("div",{className:"px-4 py-1 text-xs text-error border-t border-spur-border",role:"alert","data-input-error":!0,children:o}),l.jsx("div",{className:"flex items-center gap-2 px-2 py-2 border-t border-spur-border bg-base-200 shrink-0",children:l.jsx("input",{type:"text",value:i,onChange:N=>s(N.target.value),onKeyDown:R,disabled:!w,placeholder:w?"Type a line and press Enter…":"Input disabled (member not running)",className:"flex-1 input input-sm font-mono","data-terminal-input":!0})})]})}const IV=e=>`${At()}/team/agents/${encodeURIComponent(e)}/start`,RV=e=>`${At()}/team/agents/${encodeURIComponent(e)}/stop`,DV=e=>`${At()}/team/${encodeURIComponent(e)}/up`,OV=e=>`${At()}/team/${encodeURIComponent(e)}/down`,kb="spur:board:teams:lastTerminal";function LV(){try{const e=globalThis.localStorage?.getItem(kb);if(!e)return null;const t=JSON.parse(e);if(t&&typeof t=="object"&&"teamId"in t&&"memberId"in t&&typeof t.teamId=="string"&&typeof t.memberId=="string"){const n=t;return{teamId:n.teamId,memberId:n.memberId}}}catch{}return null}function FV(e){try{globalThis.localStorage?.setItem(kb,JSON.stringify(e))}catch{}}function MV(){try{globalThis.localStorage?.removeItem(kb)}catch{}}function PV({teamId:e}){const{teams:t,error:n,reload:r}=wi(),[a,i]=g.useState(""),[s,o]=g.useState(""),[u,c]=g.useState(null),[p,d]=g.useState(null),[f,m]=g.useState(null),[b,E]=g.useState(!1),[x]=g.useState({done:!1}),y=g.useMemo(()=>e?t.filter(L=>L.teamId===e):t,[t,e]),S=e??a;g.useEffect(()=>{if(x.done||y.length===0)return;x.done=!0;const L=LV();if(!L)return;const C=y.find(I=>I.teamId===L.teamId),$=C?.members.find(I=>I.id===L.memberId);if(!C||!$){MV();return}i(L.teamId),o(L.memberId)},[y,x]);const v=y.find(L=>L.teamId===S),w=v?.members.find(L=>L.id===s)??null;g.useEffect(()=>{s&&v&&!v.members.some(L=>L.id===s)&&o("")},[s,v]),g.useEffect(()=>{S&&s&&FV({teamId:S,memberId:s})},[S,s]);const R=g.useCallback(async(L,C)=>{E(!0);try{const $=C?RV(L):IV(L),I=await vt(new Request($,{method:"POST"}));if(!I.ok){const P=await I.json().catch(()=>null),W=P&&typeof P=="object"&&"error"in P&&typeof P.error=="string"?P.error:`request failed (${I.status})`;c(W)}}catch($){c($ instanceof Error?$.message:String($))}finally{E(!1),r()}},[r]),N=g.useCallback(async(L,C)=>{E(!0),c(null);try{const $=C==="up"?DV(L):OV(L),I=await vt(new Request($,{method:"POST"}));if(!I.ok){const P=await I.json().catch(()=>null),W=P&&typeof P=="object"&&"error"in P&&typeof P.error=="string"?P.error:`request failed (${I.status})`;c(W)}}catch($){c($ instanceof Error?$.message:String($))}finally{E(!1),r()}},[r]),T=g.useCallback(L=>{o(L)},[]);if(n&&y.length===0)return l.jsxs("div",{className:"p-4 text-sm text-error",role:"alert","data-terminal-tab-error":!0,children:["Failed to load teams: ",n]});if(y.length===0)return l.jsxs("div",{className:"p-4 text-sm text-spur-text-muted","data-terminal-tab-empty":!0,children:["No teams defined in ",l.jsx("code",{className:"font-mono",children:".spur/config.yaml"}),". Configure"," ",l.jsx("code",{className:"font-mono",children:"agent.team"})," entries to open a terminal."]});const _=w?.status==="running";return l.jsxs("div",{className:"flex flex-col h-full overflow-hidden","data-terminal-tab":!0,children:[l.jsxs("div",{className:"px-3 py-2 border-b border-spur-border bg-base-200 shrink-0 flex items-center justify-between","data-terminal-toolbar":!0,children:[l.jsxs("div",{className:"flex items-center gap-2","data-terminal-focus":!0,children:[l.jsxs("label",{className:"flex items-center gap-1 text-xs",htmlFor:"terminal-team-select",children:[l.jsx("span",{className:"text-spur-text-muted",children:"Team"}),l.jsxs(Kr,{id:"terminal-team-select",variant:"bordered",size:"sm",disabled:!!e,value:S,onChange:L=>{i(L.target.value),o("")},"data-terminal-team-select":!0,children:[!e&&l.jsx("option",{value:"",children:"Select team…"}),y.map(L=>l.jsx("option",{value:L.teamId,children:L.name},L.teamId))]})]}),l.jsxs("label",{className:"flex items-center gap-1 text-xs",htmlFor:"terminal-member-select",children:[l.jsx("span",{className:"text-spur-text-muted",children:"Member"}),l.jsxs(Kr,{id:"terminal-member-select",variant:"bordered",size:"sm",value:s,onChange:L=>o(L.target.value),disabled:!v,"data-terminal-member-select":!0,children:[l.jsx("option",{value:"",children:"Select member…"}),v?.members.map(L=>l.jsxs("option",{value:L.id,children:[L.id," · ",L.type]},L.id))]})]}),w?.model?l.jsx("span",{className:"text-xs text-spur-text-muted font-mono","data-terminal-model":!0,children:w.model}):null,w&&l.jsxs(l.Fragment,{children:[l.jsx(Rt,{variant:_?"success":"ghost",size:"xs","data-terminal-status-badge":!0,children:w.status}),l.jsx(We,{type:"button",variant:_?"warning":"primary",size:"xs",disabled:b,onClick:()=>{_?d(w.id):R(w.id,!1)},"data-terminal-toggle-btn":!0,children:_?"Stop":"Start"})]})]}),l.jsxs("div",{className:"flex items-center gap-2","data-terminal-roster":!0,children:[v?.members.map(L=>l.jsx("button",{type:"button",title:`${L.id} · ${L.type}`,onClick:()=>T(L.id),className:"cursor-pointer p-0 bg-transparent border-0","data-terminal-roster-chip":!0,children:l.jsx(Rt,{variant:L.id===s?"accent":L.status==="running"?"success":"ghost",size:"xs",children:L.id})},L.id)),l.jsx("div",{className:"border-l border-spur-border mx-1 h-5","aria-hidden":"true"}),l.jsx(We,{type:"button",variant:"ghost",size:"xs",disabled:b||!v,onClick:()=>v&&N(v.teamId,"up"),"data-terminal-up-btn":!0,children:"Up"}),l.jsx(We,{type:"button",variant:"ghost",size:"xs",disabled:b||!v,onClick:()=>v&&m(v.teamId),"data-terminal-down-btn":!0,children:"Down"})]})]}),u&&l.jsx("div",{className:"px-3 py-1 text-xs text-error",role:"alert","data-terminal-tab-action-error":!0,children:u}),s&&w?l.jsx(kV,{agentId:s}):l.jsx("div",{className:"p-4 text-sm text-spur-text-muted italic","data-terminal-tab-prompt":!0,children:"Choose a team and member above to open a terminal."}),l.jsxs(ll,{open:p!==null,variant:"warning",onClose:()=>d(null),"data-stop-confirm-modal":!0,children:[l.jsx("h3",{className:"text-lg font-bold text-warning",children:"Stop member?"}),l.jsxs("p",{className:"py-3 text-sm text-spur-text",children:["Stopping ",l.jsx("span",{className:"font-mono",children:p})," will terminate its running process. Input to this member will be disabled until it is restarted."]}),l.jsxs("div",{className:"flex justify-end gap-2",children:[l.jsx(We,{type:"button",variant:"ghost",size:"sm",onClick:()=>d(null),"data-stop-confirm-cancel":!0,children:"Cancel"}),l.jsx(We,{type:"button",variant:"warning",size:"sm",disabled:b,onClick:()=>{if(!p)return;const L=p;d(null),R(L,!0)},"data-stop-confirm-confirm":!0,children:"Stop"})]})]}),l.jsxs(ll,{open:f!==null,variant:"warning",onClose:()=>m(null),"data-down-confirm-modal":!0,children:[l.jsx("h3",{className:"text-lg font-bold text-warning",children:"Bring team down?"}),l.jsxs("p",{className:"py-3 text-sm text-spur-text",children:["This will stop all running members of ",l.jsx("span",{className:"font-mono",children:f}),"."]}),l.jsxs("div",{className:"flex justify-end gap-2",children:[l.jsx(We,{type:"button",variant:"ghost",size:"sm",onClick:()=>m(null),"data-down-confirm-cancel":!0,children:"Cancel"}),l.jsx(We,{type:"button",variant:"warning",size:"sm",disabled:b,onClick:()=>{if(!f)return;const L=f;m(null),N(L,"down")},"data-down-confirm-confirm":!0,children:"Bring Down"})]})]})]})}const Iy=[{id:"supervisor",label:"Supervisor",component:xV},{id:"terminal",label:"Terminal",component:PV},{id:"processes",label:"Process",component:pV},{id:"activity",label:"Activity",component:oV}];function Uw({teamId:e}){const[t,n]=g.useState("supervisor"),a=Iy.find(i=>i.id===t)?.component;return l.jsxs("div",{className:"flex flex-col h-full overflow-hidden","data-teams-shell":!0,children:[l.jsx("div",{role:"tablist","aria-label":"Teams tabs",className:"flex items-center gap-1 px-2 py-1 border-b border-spur-border bg-base-200 shrink-0",children:Iy.map(i=>{const s=i.id===t;return l.jsx("button",{type:"button",role:"tab","aria-selected":s,"aria-controls":`teams-tab-panel-${i.id}`,id:`teams-tab-${i.id}`,onClick:()=>n(i.id),className:`px-3 py-1 rounded text-xs font-medium transition-colors ${s?"bg-spur-accent text-white":"text-spur-text-muted hover:text-spur-text hover:bg-base-300"}`,children:i.label},i.id)})}),l.jsx("div",{role:"tabpanel",id:`teams-tab-panel-${t}`,"aria-labelledby":`teams-tab-${t}`,className:"flex-1 overflow-hidden",children:a?l.jsx(a,{teamId:e}):null})]})}const jV={id:"teams",name:"Teams",icon:"👥",route:"teams",component:Uw,sidebarLabel:"Teams",order:2},BV=Object.freeze(Object.defineProperty({__proto__:null,module:jV},Symbol.toStringTag,{value:"Module"}));function UV(e){try{return new Date(e).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit"})}catch{return e}}function $V({teamId:e}){const{teams:t}=wi(),n=e?t.find(r=>r.teamId===e):t.find(r=>r.isCurrentProject);return n?l.jsxs("div",{className:"flex flex-col h-full overflow-y-auto bg-spur-bg","data-workspace-overview":!0,children:[l.jsxs("div",{className:"px-4 py-3 border-b border-spur-border bg-spur-surface",children:[l.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[l.jsx("span",{className:"text-sm font-semibold text-spur-text","data-workspace-overview-name":!0,children:n.name}),l.jsx(Rt,{variant:"outline",size:"xs",children:n.teamId}),l.jsx(Rt,{variant:n.isCurrentProject?"success":"ghost",size:"xs",children:"current project"})]}),n.workDir&&l.jsx("div",{className:"mt-1 font-mono text-xs text-spur-text-muted","data-workspace-overview-workdir":!0,children:n.workDir})]}),l.jsxs("div",{className:"p-3",children:[l.jsx("div",{className:"text-[10px] uppercase tracking-wide font-semibold text-spur-text-muted mb-2",children:"Members"}),n.members.length===0?l.jsx("div",{className:"text-xs text-spur-text-muted italic","data-workspace-overview-no-members":!0,children:"No members materialized for this team yet."}):l.jsx("ul",{className:"space-y-1",children:n.members.map(r=>l.jsxs("li",{className:"text-xs flex items-center gap-2 py-1 border-b border-spur-border/50 last:border-b-0","data-workspace-overview-member":r.id,children:[l.jsx(Rt,{variant:r.status==="running"?"success":"ghost",size:"xs",children:r.status}),l.jsx("span",{className:"font-mono text-spur-text",children:r.id}),l.jsx(Rt,{variant:"outline",size:"xs",children:r.type}),r.model&&l.jsx("span",{className:"font-mono text-[10px] text-spur-text-muted",children:r.model})]},r.id))}),l.jsxs("div",{className:"mt-3 text-[10px] text-spur-text-faint",children:["Last refresh: ",UV(new Date().toISOString())]})]})]}):l.jsx("div",{className:"p-4 text-sm text-spur-text-muted","data-workspace-overview-empty":!0,children:"No team selected for this workspace."})}const Ry=[{id:"overview",label:"Overview",component:$V},{id:"team",label:"Team",component:Uw},{id:"inbox",label:"Inbox",component:ow},{id:"tasks",label:"Tasks",component:_b}];function zV(){const{teams:e}=wi(),t=g.useMemo(()=>e.filter(c=>c.isCurrentProject),[e]),[n,r]=g.useState(""),[a,i]=g.useState("overview");g.useEffect(()=>{!n&&t.length>0&&r(t[0]?.teamId??"")},[t,n]);const s=t.find(c=>c.teamId===n)??null,u=Ry.find(c=>c.id===a)?.component;return t.length===0?l.jsxs("div",{className:"workspace flex flex-col h-full items-center justify-center gap-3 p-6 bg-spur-bg","data-workspace-empty":!0,children:[l.jsx("div",{className:"text-sm font-semibold text-spur-text",children:"No project-local team"}),l.jsxs("p",{className:"text-xs text-spur-text-muted max-w-sm text-center",children:["No configured team resolves to this project's working directory. Add an"," ",l.jsx("code",{className:"font-mono",children:"agent.team"})," entry in"," ",l.jsx("code",{className:"font-mono",children:".spur/config.yaml"})," whose"," ",l.jsx("code",{className:"font-mono",children:"work_dir"})," points at the current project to compose a Workspace."]})]}):l.jsxs("div",{className:"workspace flex flex-col h-full overflow-hidden bg-spur-bg","data-workspace-shell":!0,children:[l.jsxs("div",{className:"px-4 py-2 border-b border-spur-border bg-spur-surface shrink-0 flex items-center gap-2",children:[l.jsx("span",{className:"text-xs font-semibold text-spur-text-muted uppercase tracking-wide",children:"Workspace"}),l.jsx("select",{value:s?.teamId??"",onChange:c=>{r(c.target.value),i("overview")},"aria-label":"Workspace team","data-workspace-team-select":!0,className:"border border-spur-border rounded px-1 py-0.5 bg-spur-bg text-spur-text text-xs",children:t.map(c=>l.jsx("option",{value:c.teamId,children:c.name},c.teamId))})]}),l.jsx("div",{role:"tablist","aria-label":"Workspace tabs",className:"flex items-center gap-1 px-2 py-1 border-b border-spur-border bg-spur-surface shrink-0",children:Ry.map(c=>{const p=c.id===a;return l.jsx("button",{type:"button",role:"tab","aria-selected":p,"aria-controls":`workspace-tab-panel-${c.id}`,id:`workspace-tab-${c.id}`,onClick:()=>i(c.id),className:`px-3 py-1 rounded-lg text-xs font-medium transition-colors ${p?"bg-spur-accent text-white":"text-spur-text-muted hover:text-spur-text hover:bg-spur-surface-3"}`,"data-workspace-tab":!0,children:c.label},c.id)})}),l.jsx("div",{role:"tabpanel",id:`workspace-tab-panel-${a}`,"aria-labelledby":`workspace-tab-${a}`,className:"flex-1 overflow-hidden",children:u?l.jsx(u,{teamId:s?.teamId}):null})]})}const HV={id:"workspace",name:"Workspace",icon:"🧩",route:"workspace",component:zV,sidebarLabel:"Workspace",order:0},GV=Object.freeze(Object.defineProperty({__proto__:null,module:HV},Symbol.toStringTag,{value:"Module"}));function $w(e){return e===null||typeof e!="object"?null:"module"in e&&Dy(e.module)?e.module:"default"in e&&Dy(e.default)?e.default:null}function Dy(e){return e===null||typeof e!="object"?!1:"id"in e&&typeof e.id=="string"&&"name"in e&&typeof e.name=="string"&&"icon"in e&&typeof e.icon=="string"&&"route"in e&&typeof e.route=="string"&&"component"in e&&typeof e.component=="function"}function zw(e,t){const n=typeof e.order=="number",r=typeof t.order=="number";return n&&r?e.order-t.order:n?-1:r?1:0}function WV(e){const t=[],n=e("./*/index.{ts,tsx}",{eager:!0});for(const r of Object.values(n)){const a=$w(r);a&&t.push(a)}return t.sort((r,a)=>r.id.localeCompare(a.id)),t.sort(zw),t}function VV(){try{return WV(()=>Object.assign({"./features/index.tsx":Pz,"./history/index.tsx":uH,"./inbox/index.tsx":AH,"./observability/index.tsx":hG,"./task-kanban/index.tsx":aV,"./teams/index.tsx":BV,"./workspace/index.tsx":GV}))}catch(a){if(typeof require!="function")throw a}const e=require("node:fs"),t=require("node:path"),n=require("node:url"),r=typeof __dirname<"u"?__dirname:t.dirname(n.fileURLToPath(import.meta.url));return qV(r,{readdirSync:(a,i)=>e.readdirSync(a,i),tryRequire:a=>require(a)})}function qV(e,t){const n=require("node:path"),r=[];let a=[];try{a=t.readdirSync(e,{withFileTypes:!0})}catch{return r}const i=a.filter(s=>s.isDirectory()).map(s=>s.name).sort((s,o)=>s.localeCompare(o));for(const s of i)for(const o of["tsx","ts"]){const u=n.join(e,s,`index.${o}`);try{const c=t.tryRequire(u),p=$w(c);if(p){r.push(p);break}}catch{}}return r.sort(zw),r}function YV(e,t){const n=new Set(t?.disabled??[]),r=e.slice(),a=new Set(n);function i(){return r.filter(s=>!a.has(s.id))}return ZV(r),{get modules(){return i()},getModule(s){return i().find(o=>o.id===s)},get defaultModule(){return i()[0]},disableModule(s){a.add(s)},enableModule(s){a.delete(s)},getEnabledModules(){return i().map(s=>s.id)},registerModuleRoot(s){}}}function ZV(e){const t=new Map,n=new Map;for(const r of e){const a=t.get(r.id);if(a!==void 0)throw new Error(`Duplicate module id "${r.id}" discovered in two sources: ${a} and ${Do(r)}`);t.set(r.id,Do(r));const i=n.get(r.route);if(i!==void 0)throw new Error(`Duplicate module route "${r.route}" discovered in two sources: ${i} and ${Do(r)}`);n.set(r.route,Do(r))}}function Do(e){return e.id}const Ib=YV(VV(),{disabled:X5}),Hw=Ib.modules;function KV(e){return Ib.getModule(e)}const Oo=Ib.defaultModule;function XV(){const[e,t]=g.useState([]);return g.useEffect(()=>{if(typeof window>"u")return;const n=r=>{const i=r.detail?.message||"An error occurred",s=`${Date.now()}-${Math.random().toString(36).slice(2,7)}`;t(o=>[...o,{id:s,message:i}]),setTimeout(()=>{t(o=>o.filter(u=>u.id!==s))},5e3)};return window.addEventListener("api-error",n),()=>{window.removeEventListener("api-error",n)}},[]),e.length===0?null:l.jsx("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col gap-2 max-w-md w-full px-4 pointer-events-none",children:e.map(n=>l.jsxs("div",{className:"pointer-events-auto flex items-center justify-between gap-3 p-3 bg-red-950/90 border border-red-500/40 text-red-200 text-sm rounded-md shadow-lg backdrop-blur",role:"alert",children:[l.jsx("span",{className:"flex-1 break-words",children:n.message}),l.jsx("button",{type:"button",className:"text-red-400 hover:text-red-100 text-base font-bold leading-none px-1",onClick:()=>t(r=>r.filter(a=>a.id!==n.id)),"aria-label":"Close error toast",children:"×"})]},n.id))})}function QV({currentName:e}){const[t,n]=g.useState(!1),[r,a]=g.useState([]),[i,s]=g.useState(null),[o,u]=g.useState(null),c=g.useRef(null);g.useEffect(()=>{if(!t)return;const d=new AbortController;return vt(new Request(`${At()}/projects`,{signal:d.signal})).then(async f=>{if(!f.ok)return;const m=await f.json();a(m.projects??[])}).catch(()=>{u("Failed to load projects")}),()=>d.abort()},[t]),g.useEffect(()=>{if(!t)return;const d=m=>{m.key==="Escape"&&n(!1)},f=m=>{c.current&&!c.current.contains(m.target)&&n(!1)};return document.addEventListener("keydown",d),document.addEventListener("mousedown",f),()=>{document.removeEventListener("keydown",d),document.removeEventListener("mousedown",f)}},[t]);const p=async d=>{if(d.current){n(!1);return}if(d.running&&d.port>0){window.location.href=`http://localhost:${d.port}/board`;return}s(d.name);try{const f=await vt(new Request(`${At()}/projects/start`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({name:d.name,path:d.path})}));if(!f.ok)throw new Error("Failed to start project");const m=await f.json();window.location.href=m.url||`http://localhost:${m.port}/board`}catch(f){u(f instanceof Error?f.message:"Start failed"),s(null)}};return l.jsxs("div",{className:"relative min-w-0 flex-1",ref:c,children:[l.jsxs("button",{type:"button",onClick:()=>n(d=>!d),"aria-haspopup":"listbox","aria-expanded":t,"aria-label":"Switch project",title:e,"data-testid":"project-switcher-trigger",className:"flex w-full items-center justify-between gap-1 rounded-md px-1.5 py-1 text-left text-sm font-semibold text-spur-text hover:bg-spur-border/30 focus-visible:outline focus-visible:outline-2 focus-visible:outline-spur-accent",children:[l.jsx("span",{className:"font-semibold truncate",children:e}),l.jsx("svg",{className:`h-4 w-4 shrink-0 transition-transform ${t?"rotate-180":""}`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:l.jsx("path",{d:"M4 6l4 4 4-4"})})]}),t&&l.jsxs("div",{role:"listbox","aria-label":"Registered projects","data-testid":"project-switcher-menu",className:"absolute left-0 top-full z-50 mt-1 w-64 rounded-md border border-spur-border bg-spur-surface p-1 shadow-lg",children:[l.jsx("div",{className:"px-2 py-1 text-xs font-medium text-spur-text-muted border-b border-spur-border/50 mb-1",children:"Projects"}),r.length===0?l.jsx("div",{className:"px-2 py-1.5 text-xs text-spur-text-muted",children:o||"No projects registered"}):r.map(d=>l.jsxs("button",{type:"button",role:"option","aria-selected":d.current,disabled:i===d.name,onClick:()=>p(d),"data-testid":`project-item-${d.name}`,className:`flex w-full items-center justify-between rounded px-2 py-1.5 text-xs text-left transition-colors ${d.current?"bg-spur-accent/15 text-spur-accent font-medium":"text-spur-text hover:bg-spur-border/30"}`,children:[l.jsxs("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[l.jsx("span",{className:`h-2 w-2 rounded-full shrink-0 ${d.running?"bg-green-500":"bg-gray-400"}`,title:d.running?`Running on port ${d.port}`:"Stopped"}),l.jsx("span",{className:"truncate",children:d.name})]}),i===d.name?l.jsx("span",{className:"text-[10px] text-spur-accent animate-pulse",children:"Starting..."}):d.current?l.jsx("span",{className:"text-[10px] font-semibold text-spur-accent",children:"current"}):d.running?l.jsxs("span",{className:"text-[10px] text-spur-text-muted",children:[":",d.port]}):l.jsx("span",{className:"text-[10px] text-spur-text-muted",children:"stopped"})]},d.path))]})]})}const Gw="spur-theme";function JV(){try{const e=localStorage.getItem(Gw);if(e==="light"||e==="dark")return e}catch{}return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function eq(e){document.documentElement.setAttribute("data-theme",e);try{localStorage.setItem(Gw,e)}catch{}}function tq(e){const t=e==="dark"?"light":"dark";return eq(t),t}function nq(){const[e,t]=g.useState(JV);g.useEffect(()=>{const r=window.matchMedia("(prefers-color-scheme: dark)"),a=i=>{if(!(()=>{try{return localStorage.getItem("spur-theme")}catch{return null}})()){const o=i.matches?"dark":"light";t(o),document.documentElement.setAttribute("data-theme",o)}};return r.addEventListener("change",a),()=>r.removeEventListener("change",a)},[]);const n=g.useCallback(()=>t(tq),[]);return l.jsx(We,{variant:"ghost",size:"sm",onClick:n,className:"text-spur-text-muted","aria-label":e==="dark"?"Switch to light mode":"Switch to dark mode",children:e==="dark"?"☀️":"🌙"})}const rq="Modules";function aq(){const[e,t]=g.useState(rq);return g.useEffect(()=>{const n=new AbortController;return vt(new Request(`${At()}/project`,{signal:n.signal})).then(async r=>{if(!r.ok)return;const a=await r.json();a.name&&t(a.name)}).catch(()=>{}),()=>n.abort()},[]),e}function iq({direction:e}){const t=e==="expand";return l.jsx("svg",{className:"h-4 w-4 shrink-0",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:t?l.jsx("path",{d:"M6 3l5 5-5 5"}):l.jsx("path",{d:"M10 3L5 8l5 5"})})}function Oy({collapsed:e,onToggle:t}){const n=e?"Expand sidebar":"Collapse sidebar";return l.jsx("button",{type:"button",onClick:t,"aria-label":n,title:n,"data-testid":e?"sidebar-expand":"sidebar-collapse",className:"flex h-8 w-8 items-center justify-center rounded-md text-spur-text-muted hover:bg-spur-accent/20 hover:text-spur-accent focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-spur-accent",children:l.jsx(iq,{direction:e?"expand":"collapse"})})}function sq({collapsed:e,onToggle:t,onMobileClose:n}){const r=aq();return l.jsxs("aside",{className:"flex flex-col bg-spur-surface border-r border-spur-border overflow-hidden",children:[e?l.jsx("div",{className:"flex items-center justify-center border-b border-spur-border shrink-0 py-1",children:l.jsx(Oy,{collapsed:!0,onToggle:t})}):l.jsxs("div",{className:"flex items-center justify-between gap-1 p-3 border-b border-spur-border shrink-0",children:[l.jsx(QV,{currentName:r}),l.jsxs("div",{className:"flex items-center gap-0.5 shrink-0",children:[l.jsx(Oy,{collapsed:!1,onToggle:t}),l.jsx(nq,{}),n&&l.jsx(We,{variant:"ghost",size:"sm",className:"text-spur-text-muted md:hidden",onClick:n,"aria-label":"Close navigation",children:"✕"})]})]}),l.jsx("nav",{className:"flex-1 overflow-y-auto",children:Hw.map(a=>l.jsxs(c1,{to:`/board/${a.route}`,className:({isActive:i})=>`flex items-center gap-2 px-3 py-2 text-sm transition-colors ${i?"bg-spur-accent/20 text-spur-accent":"text-spur-text-muted hover:text-spur-text hover:bg-spur-border/30"} ${e?"justify-center py-3":""}`,title:e?a.name:void 0,children:[l.jsx("span",{className:"text-lg",children:a.icon}),!e&&l.jsx("span",{children:a.sidebarLabel??a.name})]},a.id))})]})}function oq({children:e,mobileHeader:t}){return l.jsxs("main",{className:"flex flex-col overflow-hidden bg-spur-bg",children:[t,l.jsx("div",{className:"flex-1 overflow-auto",children:e})]})}function lq({collapsed:e,onToggle:t,onMobileClose:n,children:r,actions:a}){return l.jsxs("aside",{className:"flex flex-col bg-spur-surface border-l border-spur-border overflow-hidden",children:[n&&l.jsx("div",{className:"hidden max-md:flex items-center justify-center py-2 shrink-0",children:l.jsx("div",{className:"w-10 h-1 rounded-full bg-spur-border"})}),l.jsxs("div",{className:"flex items-center justify-between p-3 border-b border-spur-border shrink-0",children:[!e&&l.jsx("span",{className:"text-sm font-semibold text-spur-text",children:r?"Context":""}),l.jsx("div",{className:"flex items-center gap-1",children:a}),l.jsxs("div",{className:"flex items-center gap-1",children:[n&&l.jsx(We,{variant:"ghost",size:"sm",className:"text-spur-text-muted md:hidden",onClick:n,"aria-label":"Close panel",children:"✕"}),l.jsx(We,{variant:"ghost",size:"sm",className:"text-spur-text-muted hidden md:inline-flex",onClick:t,"aria-label":e?"Expand panel":"Collapse panel",children:e?"◀":"▶"})]})]}),!e&&l.jsx("div",{className:"flex-1 overflow-y-auto p-3",children:r})]})}const uq=g.createContext(void 0);function cq(){const[e,t]=g.useState(()=>Z5()),[n,r]=g.useState(!1),[a,i]=g.useState(!1),s=ar(),o=(()=>{const S=s.pathname.split("/"),v=S.indexOf("board"),w=v>=0?S[v+1]:void 0;return KV(w??"")})();g.useLayoutEffect(()=>{const S=document.documentElement;S.style.setProperty("--sidebar-w",`${e.sidebarWidth}px`),S.style.setProperty("--rightpanel-w",`${e.rightPanelWidth}px`)},[e.sidebarWidth,e.rightPanelWidth]);const u=g.useCallback(S=>K5(S),[]),c=g.useCallback(()=>{t(S=>{const v={...S,sidebarCollapsed:!S.sidebarCollapsed};return u(v),v})},[u]),p=g.useCallback(()=>{t(S=>{const v={...S,rightPanelCollapsed:!S.rightPanelCollapsed};return u(v),v})},[u]),d=g.useCallback(S=>t(v=>{const w={...v,sidebarWidth:S};return u(w),w}),[u]),f=g.useCallback(S=>t(v=>{const w={...v,rightPanelWidth:S};return u(w),w}),[u]),m=g.useCallback(()=>{r(!1),i(!1)},[]),b=g.useCallback(S=>{S.key==="Escape"&&m()},[m]),E=o?.rightPanelComponent;g.useLayoutEffect(()=>{E&&e.rightPanelCollapsed&&t(S=>({...S,rightPanelCollapsed:!1}))},[E,e.rightPanelCollapsed]);const x=l.jsxs("div",{className:"mobile-bar",children:[l.jsx(We,{variant:"ghost",size:"sm",className:"text-spur-text",onClick:()=>r(!0),"aria-label":"Open navigation",children:"☰"}),l.jsx("span",{className:"text-sm font-semibold text-spur-text",children:o?.name??"Spur"}),l.jsx(We,{variant:"ghost",size:"sm",className:"text-spur-text",onClick:()=>i(!0),"aria-label":"Open panel",children:"◧"})]}),y=n||a;return l.jsxs(l.Fragment,{children:[y&&l.jsx("div",{className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:m,onKeyDown:b,"aria-hidden":"true"}),l.jsx("div",{className:"board-layout","data-sidebar-collapsed":String(e.sidebarCollapsed),"data-rightpanel-collapsed":String(e.rightPanelCollapsed),"data-mobile-sidebar-open":String(n),"data-mobile-panel-open":String(a),children:l.jsxs(uq.Provider,{value:o,children:[l.jsx(sq,{collapsed:e.sidebarCollapsed,onToggle:c,onMobileClose:m}),l.jsx(gl,{targetVar:"--sidebar-w",onResizeEnd:d}),l.jsx(oq,{mobileHeader:x,children:l.jsx(UN,{})}),l.jsx(gl,{targetVar:"--rightpanel-w",onResizeEnd:f}),l.jsx(lq,{collapsed:e.rightPanelCollapsed,onToggle:p,onMobileClose:m,children:E?l.jsx(E,{}):null})]})}),l.jsx(XV,{})]})}const dq=[{path:"/board",element:l.jsx(cq,{}),children:[{index:!0,element:l.jsx(l0,{to:Oo?Oo.route:"/board",replace:!0})},...Hw.flatMap(e=>[{path:e.route,element:l.jsx(e.component,{})},{path:`${e.route}/*`,element:l.jsx(e.component,{})}])]},{path:"/",element:l.jsx(l0,{to:Oo?`/board/${Oo.route}`:"/board",replace:!0})}];function pq(){return p_(dq)}function mq(){const[e]=g.useState(pq);return l.jsx(PN,{router:e})}export{Rt as B,eb as C,_a as L,ol as M,Kr as S,jv as _,mq as a,We as b,mz as c,yn as d,l as j,cz as p,pb as t,Gv as u};
|